Commit 1c4daabd by 无尘

feat: 增加路由

parent eb7c61e2
.m-b-20[data-v-036c3cd4]{margin-bottom:20px}.common-bottom-border[data-v-2de688f2]{cursor:pointer;padding-bottom:2px;border-bottom:1px dashed #2f54eb}.app-market-body .app-market-list[data-v-2de688f2]{width:100%;height:119px;background:#f5f7fa;padding:18px 26px;-webkit-box-sizing:border-box;box-sizing:border-box}
\ No newline at end of file
.line-h-22[data-v-31b63e3a]{line-height:22px}.line-h-20[data-v-31b63e3a]{line-height:20px}.app-auth-body[data-v-31b63e3a]{width:100%}.app-auth-body .app-auth-head[data-v-31b63e3a]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start;text-align:left;padding:0 20px;height:46px;color:#fff;background-color:#fff;-webkit-box-shadow:0 4px 6px 0 rgba(221,227,237,.29);box-shadow:0 4px 6px 0 rgba(221,227,237,.29)}.app-auth-body .app-auth-head img[data-v-31b63e3a]{width:22px}.app-auth-body .app-auth-head .web-name[data-v-31b63e3a]{padding-left:10px;font-size:16px;font-weight:600;color:#303133;line-height:22px;background:-webkit-gradient(linear,right top,left top,from(#5b4adb),to(#2da8ff));background:linear-gradient(270deg,#5b4adb,#2da8ff);-webkit-background-clip:text;-webkit-text-fill-color:transparent}.app-auth-body .app-auth-info[data-v-31b63e3a]{width:100%}.app-auth-body .app-auth-info .app-info-body[data-v-31b63e3a]{width:498px;min-height:374px;margin:50px auto;padding:20px 30px;background:#fff;-webkit-box-shadow:0 5px 9px 0 hsla(0,0%,87.1%,.28);box-shadow:0 5px 9px 0 hsla(0,0%,87.1%,.28);-webkit-box-sizing:border-box;box-sizing:border-box}.app-auth-body .app-auth-info .app-info-body .app-info-title[data-v-31b63e3a]{font-size:16px;font-weight:600;color:#303133;line-height:22px}.app-auth-body .app-auth-info .app-info-body .app-info-detail[data-v-31b63e3a]{min-height:227px;margin-top:25px;padding:15px 20px;-webkit-box-sizing:border-box;box-sizing:border-box;border:1px solid #e4e7ed}.app-auth-body .app-auth-info .app-info-body .app-info-detail .app-top[data-v-31b63e3a]{border-bottom:1px solid #ebecf0;padding-bottom:15px}.app-auth-body .app-auth-info .app-info-body .app-info-detail .app-img[data-v-31b63e3a]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;width:42px;height:42px;max-width:42px;max-height:42px;border-radius:6px}.app-auth-body .app-auth-info .app-info-body .app-info-detail .app-img img[data-v-31b63e3a]{max-width:42px;max-height:42px;border-radius:6px}.app-auth-body .app-auth-info .app-info-body .app-info-detail .app-name[data-v-31b63e3a]{font-weight:600}.app-auth-body .app-auth-info .app-info-body .app-info-detail .auth-rights .auth-rights-title[data-v-31b63e3a]{padding:10px 0}.app-auth-body .app-auth-info .app-info-body .app-info-detail .auth-rights ul li[data-v-31b63e3a]{line-height:20px;margin-bottom:5px}.app-auth-body .app-info-btn[data-v-31b63e3a]{margin-top:30px;text-align:right}
\ No newline at end of file
.line-h-22[data-v-1b9a02d6]{line-height:22px}.line-h-20[data-v-1b9a02d6]{line-height:20px}.app-auth-body[data-v-1b9a02d6]{width:100%}.app-auth-body .app-auth-head[data-v-1b9a02d6]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start;text-align:left;padding:0 20px;height:46px;color:#fff;background-color:#fff;-webkit-box-shadow:0 4px 6px 0 rgba(221,227,237,.29);box-shadow:0 4px 6px 0 rgba(221,227,237,.29)}.app-auth-body .app-auth-head img[data-v-1b9a02d6]{width:22px}.app-auth-body .app-auth-head .web-name[data-v-1b9a02d6]{padding-left:10px;font-size:16px;font-weight:600;color:#303133;line-height:22px;background:-webkit-gradient(linear,right top,left top,from(#5b4adb),to(#2da8ff));background:linear-gradient(270deg,#5b4adb,#2da8ff);-webkit-background-clip:text;-webkit-text-fill-color:transparent}.app-auth-body .app-auth-info[data-v-1b9a02d6]{width:100%}.app-auth-body .app-auth-info .app-info-body[data-v-1b9a02d6]{width:498px;min-height:374px;margin:50px auto;padding:20px 30px;background:#fff;-webkit-box-shadow:0 5px 9px 0 hsla(0,0%,87.1%,.28);box-shadow:0 5px 9px 0 hsla(0,0%,87.1%,.28);-webkit-box-sizing:border-box;box-sizing:border-box}.app-auth-body .app-auth-info .app-info-body .app-info-title[data-v-1b9a02d6]{font-size:16px;font-weight:500;color:#303133;line-height:22px}.app-auth-body .app-auth-info .app-info-body .app-info-detail[data-v-1b9a02d6]{min-height:227px;margin-top:25px;padding:15px 20px;-webkit-box-sizing:border-box;box-sizing:border-box;border:1px solid #e4e7ed}.app-auth-body .app-auth-info .app-info-body .app-info-detail .app-top[data-v-1b9a02d6]{border-bottom:1px solid #ebecf0;padding-bottom:15px}.app-auth-body .app-auth-info .app-info-body .app-info-detail .app-img[data-v-1b9a02d6]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;width:42px;height:42px;max-width:42px;max-height:42px;border-radius:6px}.app-auth-body .app-auth-info .app-info-body .app-info-detail .app-img img[data-v-1b9a02d6]{max-width:42px;max-height:42px;border-radius:6px}.app-auth-body .app-auth-info .app-info-body .app-info-detail .auth-rights .auth-rights-title[data-v-1b9a02d6]{padding:10px 0}.app-auth-body .app-auth-info .app-info-body .app-info-detail .auth-rights ul li[data-v-1b9a02d6]{line-height:20px;margin-bottom:5px}.app-auth-body .app-info-btn[data-v-1b9a02d6]{margin-top:30px;text-align:right}
\ No newline at end of file
<!DOCTYPE html><html lang=cn><head><title>好办</title><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta name=viewport content="width=device-width,initial-scale=1"><link rel=icon href=favicon.ico><link rel=stylesheet type=text/css href=//web-1251519181.file.myqcloud.com/custom-element/custom-element.1.0.44.css><link rel=stylesheet type=text/css href=static/fonts/iconfont.css><script src=//web-1251519181.file.myqcloud.com/lib-4.0/vue/2.6.10/vue.min.js></script><link href=css/chunk-064f007c.c42ef571.css rel=prefetch><link href=css/chunk-0903084f.e3cb6255.css rel=prefetch><link href=css/chunk-0ed4435a.761e43b8.css rel=prefetch><link href=css/chunk-1151956e.aaa899bc.css rel=prefetch><link href=css/chunk-17931de2.e4a1a8fe.css rel=prefetch><link href=css/chunk-2226ce36.8a534ad3.css rel=prefetch><link href=css/chunk-2351fb9b.6efba3e1.css rel=prefetch><link href=css/chunk-26acaa95.5adb463c.css rel=prefetch><link href=css/chunk-2a14ad6e.0c2c155f.css rel=prefetch><link href=css/chunk-30f81def.134f322f.css rel=prefetch><link href=css/chunk-322df9a5.10b34206.css rel=prefetch><link href=css/chunk-33b3e2c8.6eab9710.css rel=prefetch><link href=css/chunk-35e6f8fc.3d737ced.css rel=prefetch><link href=css/chunk-37259986.34356bc6.css rel=prefetch><link href=css/chunk-39362334.c233899e.css rel=prefetch><link href=css/chunk-3cc1a93d.711b18df.css rel=prefetch><link href=css/chunk-3f1829d1.16a1600a.css rel=prefetch><link href=css/chunk-40e8a9a0.fd78a14e.css rel=prefetch><link href=css/chunk-46528954.bcfa2b34.css rel=prefetch><link href=css/chunk-4b898c1e.07d02776.css rel=prefetch><link href=css/chunk-4ba4add0.79f70516.css rel=prefetch><link href=css/chunk-4ce37d2f.537607db.css rel=prefetch><link href=css/chunk-4d075cf6.54d39216.css rel=prefetch><link href=css/chunk-4d1ad1c2.79f70516.css rel=prefetch><link href=css/chunk-4d95ae81.d3090a82.css rel=prefetch><link href=css/chunk-51ddeb1e.4e4abc57.css rel=prefetch><link href=css/chunk-5b656bce.2537900b.css rel=prefetch><link href=css/chunk-65356317.e5109ba3.css rel=prefetch><link href=css/chunk-65c4a434.2dfafbb8.css rel=prefetch><link href=css/chunk-6a8ab2e1.da760c16.css rel=prefetch><link href=css/chunk-6dfc1c36.effcfd5e.css rel=prefetch><link href=css/chunk-71f736dd.43dd04ad.css rel=prefetch><link href=css/chunk-7c18fb37.93e19818.css rel=prefetch><link href=css/chunk-7cbff464.979068dd.css rel=prefetch><link href=css/chunk-90312de2.905f9ee1.css rel=prefetch><link href=css/chunk-97c8b0bc.ea5a58ea.css rel=prefetch><link href=css/chunk-9c5b2680.4c8ff257.css rel=prefetch><link href=css/chunk-b073f330.b7424a51.css rel=prefetch><link href=css/chunk-b8247f22.5db2345a.css rel=prefetch><link href=css/chunk-b9a7d4fe.5f411485.css rel=prefetch><link href=css/chunk-ba1c12aa.813bfa0b.css rel=prefetch><link href=css/chunk-cfbefc9a.fb5c154c.css rel=prefetch><link href=css/chunk-d1beccba.0cb562a2.css rel=prefetch><link href=css/chunk-d89f0a84.1733d953.css rel=prefetch><link href=css/chunk-f53cd680.dd1c4193.css rel=prefetch><link href=js/chunk-064f007c.83536496.js rel=prefetch><link href=js/chunk-06fd5be4.f87d090c.js rel=prefetch><link href=js/chunk-0903084f.b12716a8.js rel=prefetch><link href=js/chunk-0ed4435a.17275935.js rel=prefetch><link href=js/chunk-1151956e.b71b69f3.js rel=prefetch><link href=js/chunk-17931de2.beaf9c5d.js rel=prefetch><link href=js/chunk-2226ce36.dc0c4215.js rel=prefetch><link href=js/chunk-2351fb9b.8f3632bd.js rel=prefetch><link href=js/chunk-26acaa95.098e9cb4.js rel=prefetch><link href=js/chunk-2a14ad6e.65c0d4cc.js rel=prefetch><link href=js/chunk-30f81def.a0edba2e.js rel=prefetch><link href=js/chunk-322df9a5.02885655.js rel=prefetch><link href=js/chunk-33b3e2c8.48d72465.js rel=prefetch><link href=js/chunk-35e6f8fc.66c03cc6.js rel=prefetch><link href=js/chunk-37259986.f844e1c7.js rel=prefetch><link href=js/chunk-39362334.14f738ff.js rel=prefetch><link href=js/chunk-3cc1a93d.a35140bd.js rel=prefetch><link href=js/chunk-3f1829d1.da93c71c.js rel=prefetch><link href=js/chunk-40e8a9a0.d917443c.js rel=prefetch><link href=js/chunk-46528954.e859a6c4.js rel=prefetch><link href=js/chunk-4b898c1e.bf0c6e1a.js rel=prefetch><link href=js/chunk-4ba4add0.53d6fdf8.js rel=prefetch><link href=js/chunk-4ce37d2f.b0318763.js rel=prefetch><link href=js/chunk-4d075cf6.52c31e5a.js rel=prefetch><link href=js/chunk-4d1ad1c2.27beaca0.js rel=prefetch><link href=js/chunk-4d95ae81.0dc8458c.js rel=prefetch><link href=js/chunk-51ddeb1e.8bcdc89b.js rel=prefetch><link href=js/chunk-5b656bce.55fc2edf.js rel=prefetch><link href=js/chunk-65356317.f739b51f.js rel=prefetch><link href=js/chunk-65c4a434.d6cdbc32.js rel=prefetch><link href=js/chunk-6a8ab2e1.f324b176.js rel=prefetch><link href=js/chunk-6dfc1c36.3daf41cf.js rel=prefetch><link href=js/chunk-71f736dd.09e92760.js rel=prefetch><link href=js/chunk-7c18fb37.3ecac0cc.js rel=prefetch><link href=js/chunk-7cbff464.ebade338.js rel=prefetch><link href=js/chunk-90312de2.67391246.js rel=prefetch><link href=js/chunk-97c8b0bc.e5eba857.js rel=prefetch><link href=js/chunk-9c5b2680.851afa33.js rel=prefetch><link href=js/chunk-b073f330.adc0d87e.js rel=prefetch><link href=js/chunk-b8247f22.6a7951f4.js rel=prefetch><link href=js/chunk-b9a7d4fe.e626626b.js rel=prefetch><link href=js/chunk-ba1c12aa.7f20ac59.js rel=prefetch><link href=js/chunk-cfbefc9a.97ea3130.js rel=prefetch><link href=js/chunk-d1beccba.236cf84e.js rel=prefetch><link href=js/chunk-d89f0a84.afcf6432.js rel=prefetch><link href=js/chunk-f53cd680.9b043873.js rel=prefetch><link href=css/app.2c65bb5b.css rel=preload as=style><link href=css/chunk-vendors.635bc84a.css rel=preload as=style><link href=js/app.8f232fc9.js rel=preload as=script><link href=js/chunk-vendors.4c362ba8.js rel=preload as=script><link href=css/chunk-vendors.635bc84a.css rel=stylesheet><link href=css/app.2c65bb5b.css rel=stylesheet></head><body class=damolish><noscript><strong>We're sorry but damolish doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id=app></div><script src=//web-1251519181.file.myqcloud.com/lib-4.0/vuex/3.0.1/vuex.js></script><script src=//web-1251519181.file.myqcloud.com/lib-4.0/axios/0.19.0/axios.min.js></script><script src=//web-1251519181.file.myqcloud.com/components/pagination.1.0.8.js></script><script src=//web-1251519181.file.myqcloud.com/components/perm-button.1.0.0.js></script><script src=//web-1251519181.file.myqcloud.com/components/transfer.1.0.24.js></script><script src=js/chunk-vendors.4c362ba8.js></script><script src=js/app.8f232fc9.js></script></body></html> <!DOCTYPE html><html lang=cn><head><title>好办</title><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta name=viewport content="width=device-width,initial-scale=1"><link rel=icon href=favicon.ico><link rel=stylesheet type=text/css href=//web-1251519181.file.myqcloud.com/custom-element/custom-element.1.0.44.css><link rel=stylesheet type=text/css href=static/fonts/iconfont.css><script src=//web-1251519181.file.myqcloud.com/lib-4.0/vue/2.6.10/vue.min.js></script><link href=css/chunk-0211a924.01dc1438.css rel=prefetch><link href=css/chunk-064f007c.c42ef571.css rel=prefetch><link href=css/chunk-0903084f.e3cb6255.css rel=prefetch><link href=css/chunk-0ed4435a.761e43b8.css rel=prefetch><link href=css/chunk-1151956e.aaa899bc.css rel=prefetch><link href=css/chunk-17931de2.e4a1a8fe.css rel=prefetch><link href=css/chunk-1d20d659.fdd654c1.css rel=prefetch><link href=css/chunk-2226ce36.8a534ad3.css rel=prefetch><link href=css/chunk-2351fb9b.6efba3e1.css rel=prefetch><link href=css/chunk-26acaa95.5adb463c.css rel=prefetch><link href=css/chunk-2a14ad6e.0c2c155f.css rel=prefetch><link href=css/chunk-30f81def.134f322f.css rel=prefetch><link href=css/chunk-322df9a5.10b34206.css rel=prefetch><link href=css/chunk-33b3e2c8.6eab9710.css rel=prefetch><link href=css/chunk-35e6f8fc.3d737ced.css rel=prefetch><link href=css/chunk-37259986.34356bc6.css rel=prefetch><link href=css/chunk-39362334.c233899e.css rel=prefetch><link href=css/chunk-3f1829d1.16a1600a.css rel=prefetch><link href=css/chunk-40e8a9a0.fd78a14e.css rel=prefetch><link href=css/chunk-46b49004.9e62b55b.css rel=prefetch><link href=css/chunk-48e8e9e2.7e55b210.css rel=prefetch><link href=css/chunk-4b898c1e.07d02776.css rel=prefetch><link href=css/chunk-4ba4add0.79f70516.css rel=prefetch><link href=css/chunk-4ce37d2f.537607db.css rel=prefetch><link href=css/chunk-4d075cf6.54d39216.css rel=prefetch><link href=css/chunk-4d1ad1c2.79f70516.css rel=prefetch><link href=css/chunk-4d95ae81.d3090a82.css rel=prefetch><link href=css/chunk-51ddeb1e.4e4abc57.css rel=prefetch><link href=css/chunk-5b656bce.2537900b.css rel=prefetch><link href=css/chunk-65356317.e5109ba3.css rel=prefetch><link href=css/chunk-65c4a434.2dfafbb8.css rel=prefetch><link href=css/chunk-6a8ab2e1.da760c16.css rel=prefetch><link href=css/chunk-6dfc1c36.effcfd5e.css rel=prefetch><link href=css/chunk-71f736dd.43dd04ad.css rel=prefetch><link href=css/chunk-7c18fb37.93e19818.css rel=prefetch><link href=css/chunk-7cbff464.979068dd.css rel=prefetch><link href=css/chunk-97c8b0bc.ea5a58ea.css rel=prefetch><link href=css/chunk-9c5b2680.4c8ff257.css rel=prefetch><link href=css/chunk-b073f330.b7424a51.css rel=prefetch><link href=css/chunk-b8247f22.5db2345a.css rel=prefetch><link href=css/chunk-b9a7d4fe.5f411485.css rel=prefetch><link href=css/chunk-ba1c12aa.813bfa0b.css rel=prefetch><link href=css/chunk-cfbefc9a.fb5c154c.css rel=prefetch><link href=css/chunk-d1beccba.0cb562a2.css rel=prefetch><link href=css/chunk-d89f0a84.1733d953.css rel=prefetch><link href=css/chunk-f53cd680.dd1c4193.css rel=prefetch><link href=js/chunk-0211a924.7b4cd270.js rel=prefetch><link href=js/chunk-064f007c.83536496.js rel=prefetch><link href=js/chunk-06fd5be4.f87d090c.js rel=prefetch><link href=js/chunk-0903084f.52a8862b.js rel=prefetch><link href=js/chunk-0ed4435a.17275935.js rel=prefetch><link href=js/chunk-1151956e.b71b69f3.js rel=prefetch><link href=js/chunk-17931de2.beaf9c5d.js rel=prefetch><link href=js/chunk-1d20d659.d0b5f178.js rel=prefetch><link href=js/chunk-2226ce36.dc0c4215.js rel=prefetch><link href=js/chunk-2351fb9b.8f3632bd.js rel=prefetch><link href=js/chunk-26acaa95.098e9cb4.js rel=prefetch><link href=js/chunk-2a14ad6e.65c0d4cc.js rel=prefetch><link href=js/chunk-30f81def.a0edba2e.js rel=prefetch><link href=js/chunk-322df9a5.02885655.js rel=prefetch><link href=js/chunk-33b3e2c8.48d72465.js rel=prefetch><link href=js/chunk-35e6f8fc.66c03cc6.js rel=prefetch><link href=js/chunk-37259986.f844e1c7.js rel=prefetch><link href=js/chunk-39362334.14f738ff.js rel=prefetch><link href=js/chunk-3f1829d1.da93c71c.js rel=prefetch><link href=js/chunk-40e8a9a0.1dd1b0ff.js rel=prefetch><link href=js/chunk-46b49004.313864bb.js rel=prefetch><link href=js/chunk-48e8e9e2.ba1374ed.js rel=prefetch><link href=js/chunk-4b898c1e.bf0c6e1a.js rel=prefetch><link href=js/chunk-4ba4add0.53d6fdf8.js rel=prefetch><link href=js/chunk-4ce37d2f.b0318763.js rel=prefetch><link href=js/chunk-4d075cf6.52c31e5a.js rel=prefetch><link href=js/chunk-4d1ad1c2.27beaca0.js rel=prefetch><link href=js/chunk-4d95ae81.0dc8458c.js rel=prefetch><link href=js/chunk-51ddeb1e.8bcdc89b.js rel=prefetch><link href=js/chunk-5b656bce.55fc2edf.js rel=prefetch><link href=js/chunk-65356317.f739b51f.js rel=prefetch><link href=js/chunk-65c4a434.d6cdbc32.js rel=prefetch><link href=js/chunk-6a8ab2e1.6eee5d80.js rel=prefetch><link href=js/chunk-6dfc1c36.3daf41cf.js rel=prefetch><link href=js/chunk-71f736dd.09e92760.js rel=prefetch><link href=js/chunk-7c18fb37.3ecac0cc.js rel=prefetch><link href=js/chunk-7cbff464.ebade338.js rel=prefetch><link href=js/chunk-97c8b0bc.e5eba857.js rel=prefetch><link href=js/chunk-9c5b2680.851afa33.js rel=prefetch><link href=js/chunk-b073f330.adc0d87e.js rel=prefetch><link href=js/chunk-b8247f22.6a7951f4.js rel=prefetch><link href=js/chunk-b8e861d4.bff00f9b.js rel=prefetch><link href=js/chunk-b9a7d4fe.f914e4a5.js rel=prefetch><link href=js/chunk-ba1c12aa.7f20ac59.js rel=prefetch><link href=js/chunk-cfbefc9a.97ea3130.js rel=prefetch><link href=js/chunk-d1beccba.236cf84e.js rel=prefetch><link href=js/chunk-d89f0a84.d317d2ac.js rel=prefetch><link href=js/chunk-f53cd680.9b043873.js rel=prefetch><link href=css/app.2c65bb5b.css rel=preload as=style><link href=css/chunk-vendors.635bc84a.css rel=preload as=style><link href=js/app.6c01e3d1.js rel=preload as=script><link href=js/chunk-vendors.4c362ba8.js rel=preload as=script><link href=css/chunk-vendors.635bc84a.css rel=stylesheet><link href=css/app.2c65bb5b.css rel=stylesheet></head><body class=damolish><noscript><strong>We're sorry but damolish doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id=app></div><script src=//web-1251519181.file.myqcloud.com/lib-4.0/vuex/3.0.1/vuex.js></script><script src=//web-1251519181.file.myqcloud.com/lib-4.0/axios/0.19.0/axios.min.js></script><script src=//web-1251519181.file.myqcloud.com/components/pagination.1.0.8.js></script><script src=//web-1251519181.file.myqcloud.com/components/perm-button.1.0.0.js></script><script src=//web-1251519181.file.myqcloud.com/components/transfer.1.0.24.js></script><script src=js/chunk-vendors.4c362ba8.js></script><script src=js/app.6c01e3d1.js></script></body></html>
\ No newline at end of file \ No newline at end of file
(function(e){function n(n){for(var c,a,o=n[0],i=n[1],d=n[2],s=0,h=[];s<o.length;s++)a=o[s],Object.prototype.hasOwnProperty.call(r,a)&&r[a]&&h.push(r[a][0]),r[a]=0;for(c in i)Object.prototype.hasOwnProperty.call(i,c)&&(e[c]=i[c]);f&&f(n);while(h.length)h.shift()();return u.push.apply(u,d||[]),t()}function t(){for(var e,n=0;n<u.length;n++){for(var t=u[n],c=!0,a=1;a<t.length;a++){var o=t[a];0!==r[o]&&(c=!1)}c&&(u.splice(n--,1),e=i(i.s=t[0]))}return e}var c={},a={app:0},r={app:0},u=[];function o(e){return i.p+"js/"+({}[e]||e)+"."+{"chunk-064f007c":"83536496","chunk-06fd5be4":"f87d090c","chunk-0ed4435a":"17275935","chunk-65c4a434":"d6cdbc32","chunk-51ddeb1e":"8bcdc89b","chunk-f53cd680":"9b043873","chunk-0903084f":"52a8862b","chunk-17931de2":"beaf9c5d","chunk-2226ce36":"dc0c4215","chunk-2351fb9b":"8f3632bd","chunk-26acaa95":"098e9cb4","chunk-2a14ad6e":"65c0d4cc","chunk-30f81def":"a0edba2e","chunk-322df9a5":"02885655","chunk-33b3e2c8":"48d72465","chunk-35e6f8fc":"66c03cc6","chunk-37259986":"f844e1c7","chunk-39362334":"14f738ff","chunk-3f1829d1":"da93c71c","chunk-40e8a9a0":"1dd1b0ff","chunk-48e8e9e2":"ba1374ed","chunk-4b898c1e":"bf0c6e1a","chunk-4ba4add0":"53d6fdf8","chunk-4ce37d2f":"b0318763","chunk-4d075cf6":"52c31e5a","chunk-4d1ad1c2":"27beaca0","chunk-4d95ae81":"0dc8458c","chunk-5b656bce":"55fc2edf","chunk-65356317":"f739b51f","chunk-6a8ab2e1":"6eee5d80","chunk-6dfc1c36":"3daf41cf","chunk-71f736dd":"09e92760","chunk-1151956e":"b71b69f3","chunk-46b49004":"313864bb","chunk-7c18fb37":"3ecac0cc","chunk-7cbff464":"ebade338","chunk-97c8b0bc":"e5eba857","chunk-9c5b2680":"851afa33","chunk-b073f330":"adc0d87e","chunk-b8247f22":"6a7951f4","chunk-b8e861d4":"bff00f9b","chunk-0211a924":"7b4cd270","chunk-1d20d659":"d0b5f178","chunk-b9a7d4fe":"f914e4a5","chunk-ba1c12aa":"7f20ac59","chunk-cfbefc9a":"97ea3130","chunk-d1beccba":"236cf84e","chunk-d89f0a84":"d317d2ac"}[e]+".js"}function i(n){if(c[n])return c[n].exports;var t=c[n]={i:n,l:!1,exports:{}};return e[n].call(t.exports,t,t.exports,i),t.l=!0,t.exports}i.e=function(e){var n=[],t={"chunk-064f007c":1,"chunk-0ed4435a":1,"chunk-65c4a434":1,"chunk-51ddeb1e":1,"chunk-f53cd680":1,"chunk-0903084f":1,"chunk-17931de2":1,"chunk-2226ce36":1,"chunk-2351fb9b":1,"chunk-26acaa95":1,"chunk-2a14ad6e":1,"chunk-30f81def":1,"chunk-322df9a5":1,"chunk-33b3e2c8":1,"chunk-35e6f8fc":1,"chunk-37259986":1,"chunk-39362334":1,"chunk-3f1829d1":1,"chunk-40e8a9a0":1,"chunk-48e8e9e2":1,"chunk-4b898c1e":1,"chunk-4ba4add0":1,"chunk-4ce37d2f":1,"chunk-4d075cf6":1,"chunk-4d1ad1c2":1,"chunk-4d95ae81":1,"chunk-5b656bce":1,"chunk-65356317":1,"chunk-6a8ab2e1":1,"chunk-6dfc1c36":1,"chunk-71f736dd":1,"chunk-1151956e":1,"chunk-46b49004":1,"chunk-7c18fb37":1,"chunk-7cbff464":1,"chunk-97c8b0bc":1,"chunk-9c5b2680":1,"chunk-b073f330":1,"chunk-b8247f22":1,"chunk-0211a924":1,"chunk-1d20d659":1,"chunk-b9a7d4fe":1,"chunk-ba1c12aa":1,"chunk-cfbefc9a":1,"chunk-d1beccba":1,"chunk-d89f0a84":1};a[e]?n.push(a[e]):0!==a[e]&&t[e]&&n.push(a[e]=new Promise((function(n,t){for(var c="css/"+({}[e]||e)+"."+{"chunk-064f007c":"c42ef571","chunk-06fd5be4":"31d6cfe0","chunk-0ed4435a":"761e43b8","chunk-65c4a434":"2dfafbb8","chunk-51ddeb1e":"4e4abc57","chunk-f53cd680":"dd1c4193","chunk-0903084f":"e3cb6255","chunk-17931de2":"e4a1a8fe","chunk-2226ce36":"8a534ad3","chunk-2351fb9b":"6efba3e1","chunk-26acaa95":"5adb463c","chunk-2a14ad6e":"0c2c155f","chunk-30f81def":"134f322f","chunk-322df9a5":"10b34206","chunk-33b3e2c8":"6eab9710","chunk-35e6f8fc":"3d737ced","chunk-37259986":"34356bc6","chunk-39362334":"c233899e","chunk-3f1829d1":"16a1600a","chunk-40e8a9a0":"fd78a14e","chunk-48e8e9e2":"7e55b210","chunk-4b898c1e":"07d02776","chunk-4ba4add0":"79f70516","chunk-4ce37d2f":"537607db","chunk-4d075cf6":"54d39216","chunk-4d1ad1c2":"79f70516","chunk-4d95ae81":"d3090a82","chunk-5b656bce":"2537900b","chunk-65356317":"e5109ba3","chunk-6a8ab2e1":"da760c16","chunk-6dfc1c36":"effcfd5e","chunk-71f736dd":"43dd04ad","chunk-1151956e":"aaa899bc","chunk-46b49004":"9e62b55b","chunk-7c18fb37":"93e19818","chunk-7cbff464":"979068dd","chunk-97c8b0bc":"ea5a58ea","chunk-9c5b2680":"4c8ff257","chunk-b073f330":"b7424a51","chunk-b8247f22":"5db2345a","chunk-b8e861d4":"31d6cfe0","chunk-0211a924":"01dc1438","chunk-1d20d659":"fdd654c1","chunk-b9a7d4fe":"5f411485","chunk-ba1c12aa":"813bfa0b","chunk-cfbefc9a":"fb5c154c","chunk-d1beccba":"0cb562a2","chunk-d89f0a84":"1733d953"}[e]+".css",r=i.p+c,u=document.getElementsByTagName("link"),o=0;o<u.length;o++){var d=u[o],s=d.getAttribute("data-href")||d.getAttribute("href");if("stylesheet"===d.rel&&(s===c||s===r))return n()}var h=document.getElementsByTagName("style");for(o=0;o<h.length;o++){d=h[o],s=d.getAttribute("data-href");if(s===c||s===r)return n()}var f=document.createElement("link");f.rel="stylesheet",f.type="text/css",f.onload=n,f.onerror=function(n){var c=n&&n.target&&n.target.src||r,u=new Error("Loading CSS chunk "+e+" failed.\n("+c+")");u.code="CSS_CHUNK_LOAD_FAILED",u.request=c,delete a[e],f.parentNode.removeChild(f),t(u)},f.href=r;var p=document.getElementsByTagName("head")[0];p.appendChild(f)})).then((function(){a[e]=0})));var c=r[e];if(0!==c)if(c)n.push(c[2]);else{var u=new Promise((function(n,t){c=r[e]=[n,t]}));n.push(c[2]=u);var d,s=document.createElement("script");s.charset="utf-8",s.timeout=120,i.nc&&s.setAttribute("nonce",i.nc),s.src=o(e);var h=new Error;d=function(n){s.onerror=s.onload=null,clearTimeout(f);var t=r[e];if(0!==t){if(t){var c=n&&("load"===n.type?"missing":n.type),a=n&&n.target&&n.target.src;h.message="Loading chunk "+e+" failed.\n("+c+": "+a+")",h.name="ChunkLoadError",h.type=c,h.request=a,t[1](h)}r[e]=void 0}};var f=setTimeout((function(){d({type:"timeout",target:s})}),12e4);s.onerror=s.onload=d,document.head.appendChild(s)}return Promise.all(n)},i.m=e,i.c=c,i.d=function(e,n,t){i.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:t})},i.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,n){if(1&n&&(e=i(e)),8&n)return e;if(4&n&&"object"===typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(i.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var c in e)i.d(t,c,function(n){return e[n]}.bind(null,c));return t},i.n=function(e){var n=e&&e.__esModule?function(){return e["default"]}:function(){return e};return i.d(n,"a",n),n},i.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},i.p="",i.oe=function(e){throw e};var d=window["webpackJsonp"]=window["webpackJsonp"]||[],s=d.push.bind(d);d.push=n,d=d.slice();for(var h=0;h<d.length;h++)n(d[h]);var f=s;u.push([0,"chunk-vendors"]),t()})({0:function(e,n,t){t("db4d"),e.exports=t("56d7")},"1a5d":function(e,n,t){var c={"./app-controls/app-detail.vue":["9bc6","chunk-40e8a9a0"],"./app-controls/app-list.vue":["4a78","chunk-0903084f"],"./app-controls/app-market.vue":["53b1","chunk-b8e861d4","chunk-1d20d659"],"./app-controls/index.vue":["b04c","chunk-4d1ad1c2"],"./apps/app-auth.vue":["c686","chunk-48e8e9e2"],"./apps/customer-app/clerk-tag.vue":["b5b0","chunk-06fd5be4","chunk-65c4a434","chunk-51ddeb1e"],"./apps/customer-app/crowd-scene.vue":["c7d7","chunk-06fd5be4","chunk-65c4a434","chunk-f53cd680"],"./apps/customer-app/customer-assign.vue":["12eb","chunk-d1beccba"],"./apps/customer-app/customer-data-set.vue":["3cf8","chunk-cfbefc9a"],"./apps/customer-app/customer-show-set.vue":["f766","chunk-9c5b2680"],"./apps/customer-app/data-dimension.vue":["55f3","chunk-06fd5be4","chunk-0ed4435a"],"./apps/customer-app/index.vue":["c3d9","chunk-5b656bce"],"./apps/index.vue":["7f2e","chunk-33b3e2c8"],"./business/audit-log.vue":["0912","chunk-2226ce36"],"./business/auth-merchant.vue":["56b3","chunk-26acaa95"],"./business/contacts.vue":["a269","chunk-b8e861d4","chunk-0211a924"],"./business/index.vue":["50c8","chunk-65356317"],"./business/new-auth-merchant.vue":["62a7","chunk-71f736dd","chunk-46b49004"],"./business/sync-log.vue":["b155","chunk-b9a7d4fe"],"./enterprise/admin-list.vue":["db80","chunk-17931de2"],"./enterprise/admin-list/role-list.vue":["0082","chunk-b073f330"],"./enterprise/edit-admin.vue":["7dc6","chunk-71f736dd","chunk-1151956e"],"./enterprise/edit-role.vue":["2249","chunk-3f1829d1"],"./enterprise/edit-role/menu-tree.vue":["a088","chunk-7cbff464"],"./enterprise/edit-store-role.vue":["a960","chunk-4ce37d2f"],"./enterprise/enterprise-set.vue":["b735","chunk-2a14ad6e"],"./enterprise/index.vue":["ea02","chunk-97c8b0bc"],"./enterprise/store-admin-list.vue":["2058","chunk-4d075cf6"],"./enterprise/super-admin.vue":["9b74","chunk-b8247f22"],"./error-page/403.vue":["5140","chunk-ba1c12aa"],"./error-page/404.vue":["1db4","chunk-2351fb9b"],"./error-page/500.vue":["721c","chunk-6dfc1c36"],"./error-page/gic-error.vue":["442d","chunk-37259986"],"./error-page/index.vue":["4cf1","chunk-7c18fb37"],"./index/index.vue":["37f9","chunk-35e6f8fc"],"./login/index.vue":["9ed6","chunk-39362334"],"./review-center/audit-config.vue":["daa8","chunk-4b898c1e"],"./review-center/audit-group-list.vue":["ff23","chunk-064f007c"],"./review-center/audit-item-list.vue":["727c","chunk-4d95ae81"],"./review-center/create-audit-group.vue":["ea11","chunk-322df9a5"],"./review-center/create-audit-item.vue":["e0c0","chunk-30f81def"],"./review-center/index.vue":["2cad","chunk-4ba4add0"],"./review-center/reviewed.vue":["dacc","chunk-d89f0a84"],"./review-center/unreview.vue":["1005","chunk-6a8ab2e1"]};function a(e){if(!t.o(c,e))return Promise.resolve().then((function(){var n=new Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n}));var n=c[e],a=n[0];return Promise.all(n.slice(1).map(t.e)).then((function(){return t(a)}))}a.keys=function(){return Object.keys(c)},a.id="1a5d",e.exports=a},"4f94":function(e,n,t){},"56d7":function(e,n,t){"use strict";t.r(n);t("456d"),t("ac6a"),t("cadf"),t("551c"),t("f751"),t("097d"),t("db4d");var c=t("1368"),a=t.n(c),r=(t("0fae"),t("4f94"),t("d31c"),t("8bbf")),u=t.n(r),o=t("8c4f"),i=t("cebe"),d=t.n(i),s=t("5c96"),h=t.n(s),f=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"dm-reset",attrs:{id:"app"}},[t("router-view")],1)},p=[],b={name:"App"},m=b,l=t("2877"),k=Object(l["a"])(m,f,p,!1,null,null,null),g=k.exports,v=t("e2b2"),w=t.n(v),y=function(e){t.e("chunk-7c18fb37").then(t.bind(null,"4cf1")).then((function(n){e(n)}))},x=[{path:"/",name:"/",redirect:"login"},{path:"/login",name:"登录",component:w()("login","index")},{path:"/index",name:"index",component:w()("index","index")},{path:"/contacts",name:"通讯录",redirect:"contactsList",component:w()("business","index"),children:[{path:"/contactsList",name:"通讯录",component:w()("business","contacts")},{path:"/syncLog",name:"通讯录日志",component:w()("business","sync-log")},{path:"/authMerchant",name:"授权商户",component:w()("business","auth-merchant")},{path:"/newAuthMerchant",name:"新增授权",component:w()("business","new-auth-merchant")},{path:"/auditLog",name:"审核日志",component:w()("business","audit-log")}]},{path:"/reviewCenter",name:"审核中心",redirect:"unreview",component:w()("review-center","index"),children:[{path:"/reviewed",name:"已审核",component:w()("review-center","reviewed")},{path:"/unreview",name:"未审核",component:w()("review-center","unreview")},{path:"/audit-group-list",meta:{title:"审核组列表"},component:w()("review-center","audit-group-list")},{path:"/create-audit-group",meta:{title:"新建、编辑审核组"},component:w()("review-center","create-audit-group")},{path:"/audit-item-list",meta:{title:"审核事项列表"},component:w()("review-center","audit-item-list")},{path:"/create-audit-item",meta:{title:"新建、编辑审核事项"},component:w()("review-center","create-audit-item")},{path:"/audit-config",meta:{title:"审核设置"},component:w()("review-center","audit-config")}]},{path:"/enterprise",name:"企业设置",redirect:"enterpriseSet",component:w()("enterprise","index"),children:[{path:"/enterpriseSet",name:"企业信息",component:w()("enterprise","enterprise-set")},{path:"/admin-list",name:"管理员",component:w()("enterprise","admin-list")},{path:"/edit-role",name:"新建、编辑角色",component:w()("enterprise","edit-role")},{path:"/edit-admin",name:"新建编辑管理员",component:w()("enterprise","edit-admin")},{path:"/store-admin-list",name:"门店角色",component:w()("enterprise","store-admin-list")},{path:"/edit-store-role",name:"编辑门店角色",component:w()("enterprise","edit-store-role")},{path:"/superAdmin",name:"超级管理员",component:w()("enterprise","super-admin")}]},{path:"/app-controls",meta:{title:"工作台"},redirect:"/app-list",component:w()("app-controls","index"),children:[{path:"/app-list",meta:{title:"服务应用"},component:w()("app-controls","app-list")},{path:"/app-detail",meta:{title:"服务应用详情"},component:w()("app-controls","app-detail")},{path:"/app-market",meta:{title:"服务市场"},component:w()("app-controls","app-market")}]},{path:"/apps",name:"企业应用",component:w()("apps","index"),children:[{path:"/my-customer",name:"我的顾客",component:w()("apps/customer-app","index"),children:[{path:"/data-dimension",name:"数据维度",component:w()("apps/customer-app","data-dimension")},{path:"/crowd-scene",name:"人群场景",component:w()("apps/customer-app","crowd-scene")},{path:"/customer-data-set",name:"顾客资料",component:w()("apps/customer-app","customer-data-set")},{path:"/clerk-tag",name:"导购标签",component:w()("apps/customer-app","clerk-tag")},{path:"/customer-assign",name:"顾客分配",component:w()("apps/customer-app","customer-assign")}]}]},{path:"/app-auth",name:"应用授权",component:w()("apps","app-auth")},{path:"/gic-error",name:"gic跳转失败页",component:w()("error-page","gic-error")},{path:"/403",name:"无权访问",component:y},{path:"/404",name:"error404",component:y},{path:"/500",name:"error500",component:y},{path:"*",redirect:"/404",hidden:!0}],M=o["a"].prototype.push;o["a"].prototype.push=function(e){return M.call(this,e).catch((function(e){return e}))};var O=new o["a"]({routes:x}),S=O,j=(t("c5f6"),t("3b2b"),t("a481"),t("6b54"),function(e,n){if(!e)return"";e=10===e.toString().length?1e3*e:e;var t=new Date(e),c={"M+":t.getMonth()+1,"D+":t.getDate(),W:"日一二三四五六".charAt(t.getDay()),"h+":t.getHours(),"m+":t.getMinutes(),"s+":t.getSeconds(),"q+":Math.floor((t.getMonth()+3)/3),S:t.getMilliseconds()};for(var a in/(Y+)/.test(n)&&(n=n.replace(RegExp.$1,(t.getFullYear()+"").substr(4-RegExp.$1.length))),c)new RegExp("("+a+")").test(n)&&(n=n.replace(RegExp.$1,1===RegExp.$1.length?c[a]:("00"+c[a]).substr((""+c[a]).length)));return n}),D=function(e){if(!e)return"";var n=new Date(e),t=n.getMonth()+1,c=n.getDate()<10?"0"+n.getDate():n.getDate(),a=t<10?"0"+t:t,r=n.getHours()<10?"0"+n.getHours():n.getHours(),u=n.getMinutes()<10?"0"+n.getMinutes():n.getMinutes(),o=n.getSeconds()<10?"0"+n.getSeconds():n.getSeconds();return"".concat(n.getFullYear(),"-").concat(a,"-").concat(c," ").concat(r,":").concat(u,":").concat(o)},E=function(e){if(!e)return"";var n=new Date(e),t=n.getMonth()+1,c=n.getDate()<10?"0"+n.getDate():n.getDate(),a=t<10?"0"+t:t,r=n.getHours()<10?"0"+n.getHours():n.getHours(),u=n.getMinutes()<10?"0"+n.getMinutes():n.getMinutes(),o=n.getSeconds()<10?"0"+n.getSeconds():n.getSeconds();return"".concat(n.getFullYear(),".").concat(a,".").concat(c," ").concat(r,":").concat(u,":").concat(o)},A=function(e){if(!e)return"";var n=new Date(e),t=n.getMonth()+1,c=t<10?"0"+t:t;return"".concat(n.getFullYear(),"-").concat(c)},P=function(e){if(!e)return"";var n=new Date(e),t=n.getMonth()+1,c=n.getDate()<10?"0"+n.getDate():n.getDate(),a=t<10?"0"+t:t;return"".concat(n.getFullYear(),"-").concat(a,"-").concat(c)},T=function(e){if(!e)return"";var n=new Date(e),t=n.getHours()<10?"0"+n.getHours():n.getHours(),c=n.getMinutes()<10?"0"+n.getMinutes():n.getMinutes(),a=n.getSeconds()<10?"0"+n.getSeconds():n.getSeconds();return"".concat(t,":").concat(c,":").concat(a)},C=function(e){if(!e)return"";var n=new Date,t=new Date(Number(e)).getTime()-n.getTime();if(t<0)return"";var c=Math.floor(t/864e5),a=t%864e5,r=Math.floor(a/36e5),u=a%36e5,o=Math.floor(u/6e4);return"".concat(c,"天").concat(r,"小时").concat(o,"分")},L=function(e){return e?(e=e.toString(),e.substr(0,3)+"****"+e.substr(7,11)):""},H=function(e){return e?(e=e.toString(),"**"+e.substr(e.length-1,e.length)):""},_=function(e){return e?(e=e.toString(),e.length>6?e.substr(0,5)+"...":e):""},F=function(e){if(!e)return"00:00:00";var n=e/1e3,t=Math.floor(n/60/60/24),c=24*t+Math.floor(n/60/60)%24<10?"0"+(24*t+Math.floor(n/60/60)%24):24*t+Math.floor(n/60/60)%24,a=Math.floor(n/60)%60<10?"0"+Math.floor(n/60)%60:Math.floor(n/60)%60,r=Math.floor(n)%60<10?"0"+Math.floor(n)%60:Math.floor(n)%60;return"".concat(c,":").concat(a,":").concat(r)},N={dateFormat:j,formatTimeStamp:D,timeStampToYm:A,timeStampToYmd:P,timeStampToHms:T,formatTimeYmdHms:E,formatPhoneNum:L,formatName:H,timeStampSpace:C,formatTime:F,formatWord:_},R=(t("4917"),t("6762"),t("2fdb"),t("96cf"),t("1da1")),Y=(t("5df3"),t("b775")),$=[],U=[],q={};function B(){var e=new Promise((function(e){Object(Y["a"])({url:"/hb-manage-web/list-staff-role-menu"}).then((function(e){U=I(e.result||[])})).finally(e)})),n=new Promise((function(e){Object(Y["a"])({url:"/hb-manage-web/list-staff-role-opeation"}).then((function(e){q=J(e.result||[])})).finally(e)}));return Promise.all([e,n])}function I(e){var n=[];return e.forEach((function(e){e.menuUrl&&n.push(e.menuUrl),Array.isArray(e.children)&&(n=n.concat(I(e.children)))})),n}function J(e){var n={};return e.forEach((function(e){n[e.menuCode]=!0})),n}function V(e){var n=[];return e.forEach((function(e){Array.isArray(e.children)&&(n=n.concat(V(e.children))),n.push(e.path)})),n}function W(e,n,t){var c=U.some((function(n){return n.indexOf("/#")>=0?n=="/#".concat(e.path):n==e.path}));if(c)return Object.assign(d.a.defaults.headers.common,{route:e.path.replace(/^\//,"")}),t();$.some((function(n){return n==e.path}))||0==U.length?t("/gic-error"):(Object.assign(d.a.defaults.headers.common,{route:U[0].replace(/^\//,"")}),t(U[0]))}function K(e){return!!q[e]}var z=function(e){var n=e.projectPath,t=e.whiteRoute,c=e.router,a=e.routes,r=e.createApp;window.addEventListener("load",Object(R["a"])(regeneratorRuntime.mark((function e(){var u,o;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(u=window.location.href,o=window.location.hash,-1!=u.indexOf("/login")||-1!=u.indexOf("/gic-error")){e.next=6;break}return Object.assign(d.a.defaults.headers.common,{project:n,route:o.includes("?")?o.match(/(?<=\#\/).*?(?=\?)/)[0]:o.match(/(?<=\#\/).*/)[0]}),e.next=6,B();case 6:Array.isArray(t)&&(U=U.concat(t)),Array.isArray(a)&&($=V(a)),c.beforeEach(W),"function"==typeof r&&r();case 10:case"end":return e.stop()}}),e)}))))},G=t("f121");a.a.polyfill(),window.Vue=u.a,u.a.use(o["a"]),u.a.use(h.a),d.a.defaults.withCredentials=!0,u.a.prototype.axios=d.a,u.a.prototype.$itemPerm=K,u.a.prototype.$itemCode=G["a"],u.a.config.devtools=!1,u.a.config.productionTip=!1,Object.keys(N).forEach((function(e){u.a.filter(e,N[e])})),z({projectPath:"haoban",whiteRoute:["/login","/contactsList","/apps","/gic-error","/403","/404","/500"],router:S,routes:x,createApp:function(){new u.a({router:S,render:function(e){return e(g)}}).$mount("#app")}})},"8bbf":function(e,n){e.exports=Vue},b775:function(e,n,t){"use strict";t.d(n,"a",(function(){return d}));var c=t("cebe"),a=t.n(c),r=t("4328"),u=t.n(r),o=t("5c96"),i=t("f121");a.a.defaults.baseURL=i["c"],a.a.defaults.withCredentials=!0;var d=function(e,n,t){n=Object.assign({},n),e=Object.assign({},e);var c={url:"",params:"",data:"",method:"get",useFormData:!1,useIntercept:!0,headers:{}};switch(Object.assign(c,e,t),c.useFormData&&(n=u.a.stringify(n)),c.method.toLowerCase()){case"get":c.params=n;break;case"post":c.data=n;break;default:c.data=n;break}return new Promise((function(e,n){a()(c).then((function(t){var a=t.data;return a.code==i["b"]?(window.location.href="".concat(i["c"],"/haoban-4/#/login"),n(a)):c.useIntercept&&a.code!=i["d"]?(Object(o["Message"])({message:a.message||"未知错误",type:"warning"}),n(a)):void e(a)})).catch((function(e){var t=e.response||{},c=t.data||{};Object(o["Message"])({message:c.message||"未知错误",type:"warning"}),n(e)}))}))}},cebe:function(e,n){e.exports=axios},d31c:function(e,n,t){},e2b2:function(e,n,t){e.exports=function(e,n){return function(c){t("1a5d")("./"+e+"/"+n+".vue").then((function(e){c(e)}))}}},f121:function(e,n,t){"use strict";function c(){var e=window.location.origin;return(e.indexOf("localhost")>=0||e.indexOf("192.168")>=0)&&(e="https://four.gicdev.com"),e}t.d(n,"c",(function(){return a})),t.d(n,"d",(function(){return r})),t.d(n,"b",(function(){return u})),t.d(n,"a",(function(){return o}));var a=c(),r="0000",u="0003",o={batchAudit:"batchAudit"}}});
\ No newline at end of file
(function(e){function n(n){for(var c,a,o=n[0],i=n[1],d=n[2],s=0,h=[];s<o.length;s++)a=o[s],Object.prototype.hasOwnProperty.call(r,a)&&r[a]&&h.push(r[a][0]),r[a]=0;for(c in i)Object.prototype.hasOwnProperty.call(i,c)&&(e[c]=i[c]);f&&f(n);while(h.length)h.shift()();return u.push.apply(u,d||[]),t()}function t(){for(var e,n=0;n<u.length;n++){for(var t=u[n],c=!0,a=1;a<t.length;a++){var o=t[a];0!==r[o]&&(c=!1)}c&&(u.splice(n--,1),e=i(i.s=t[0]))}return e}var c={},a={app:0},r={app:0},u=[];function o(e){return i.p+"js/"+({}[e]||e)+"."+{"chunk-064f007c":"83536496","chunk-06fd5be4":"f87d090c","chunk-0ed4435a":"17275935","chunk-65c4a434":"d6cdbc32","chunk-51ddeb1e":"8bcdc89b","chunk-f53cd680":"9b043873","chunk-0903084f":"b12716a8","chunk-17931de2":"beaf9c5d","chunk-2226ce36":"dc0c4215","chunk-2351fb9b":"8f3632bd","chunk-26acaa95":"098e9cb4","chunk-2a14ad6e":"65c0d4cc","chunk-30f81def":"a0edba2e","chunk-322df9a5":"02885655","chunk-33b3e2c8":"48d72465","chunk-35e6f8fc":"66c03cc6","chunk-37259986":"f844e1c7","chunk-39362334":"14f738ff","chunk-3cc1a93d":"a35140bd","chunk-3f1829d1":"da93c71c","chunk-40e8a9a0":"d917443c","chunk-4b898c1e":"bf0c6e1a","chunk-4ba4add0":"53d6fdf8","chunk-4ce37d2f":"b0318763","chunk-4d075cf6":"52c31e5a","chunk-4d1ad1c2":"27beaca0","chunk-4d95ae81":"0dc8458c","chunk-5b656bce":"55fc2edf","chunk-65356317":"f739b51f","chunk-6a8ab2e1":"f324b176","chunk-6dfc1c36":"3daf41cf","chunk-71f736dd":"09e92760","chunk-1151956e":"b71b69f3","chunk-46528954":"e859a6c4","chunk-7c18fb37":"3ecac0cc","chunk-7cbff464":"ebade338","chunk-90312de2":"67391246","chunk-97c8b0bc":"e5eba857","chunk-9c5b2680":"851afa33","chunk-b073f330":"adc0d87e","chunk-b8247f22":"6a7951f4","chunk-b9a7d4fe":"e626626b","chunk-ba1c12aa":"7f20ac59","chunk-cfbefc9a":"97ea3130","chunk-d1beccba":"236cf84e","chunk-d89f0a84":"afcf6432"}[e]+".js"}function i(n){if(c[n])return c[n].exports;var t=c[n]={i:n,l:!1,exports:{}};return e[n].call(t.exports,t,t.exports,i),t.l=!0,t.exports}i.e=function(e){var n=[],t={"chunk-064f007c":1,"chunk-0ed4435a":1,"chunk-65c4a434":1,"chunk-51ddeb1e":1,"chunk-f53cd680":1,"chunk-0903084f":1,"chunk-17931de2":1,"chunk-2226ce36":1,"chunk-2351fb9b":1,"chunk-26acaa95":1,"chunk-2a14ad6e":1,"chunk-30f81def":1,"chunk-322df9a5":1,"chunk-33b3e2c8":1,"chunk-35e6f8fc":1,"chunk-37259986":1,"chunk-39362334":1,"chunk-3cc1a93d":1,"chunk-3f1829d1":1,"chunk-40e8a9a0":1,"chunk-4b898c1e":1,"chunk-4ba4add0":1,"chunk-4ce37d2f":1,"chunk-4d075cf6":1,"chunk-4d1ad1c2":1,"chunk-4d95ae81":1,"chunk-5b656bce":1,"chunk-65356317":1,"chunk-6a8ab2e1":1,"chunk-6dfc1c36":1,"chunk-71f736dd":1,"chunk-1151956e":1,"chunk-46528954":1,"chunk-7c18fb37":1,"chunk-7cbff464":1,"chunk-90312de2":1,"chunk-97c8b0bc":1,"chunk-9c5b2680":1,"chunk-b073f330":1,"chunk-b8247f22":1,"chunk-b9a7d4fe":1,"chunk-ba1c12aa":1,"chunk-cfbefc9a":1,"chunk-d1beccba":1,"chunk-d89f0a84":1};a[e]?n.push(a[e]):0!==a[e]&&t[e]&&n.push(a[e]=new Promise((function(n,t){for(var c="css/"+({}[e]||e)+"."+{"chunk-064f007c":"c42ef571","chunk-06fd5be4":"31d6cfe0","chunk-0ed4435a":"761e43b8","chunk-65c4a434":"2dfafbb8","chunk-51ddeb1e":"4e4abc57","chunk-f53cd680":"dd1c4193","chunk-0903084f":"e3cb6255","chunk-17931de2":"e4a1a8fe","chunk-2226ce36":"8a534ad3","chunk-2351fb9b":"6efba3e1","chunk-26acaa95":"5adb463c","chunk-2a14ad6e":"0c2c155f","chunk-30f81def":"134f322f","chunk-322df9a5":"10b34206","chunk-33b3e2c8":"6eab9710","chunk-35e6f8fc":"3d737ced","chunk-37259986":"34356bc6","chunk-39362334":"c233899e","chunk-3cc1a93d":"711b18df","chunk-3f1829d1":"16a1600a","chunk-40e8a9a0":"fd78a14e","chunk-4b898c1e":"07d02776","chunk-4ba4add0":"79f70516","chunk-4ce37d2f":"537607db","chunk-4d075cf6":"54d39216","chunk-4d1ad1c2":"79f70516","chunk-4d95ae81":"d3090a82","chunk-5b656bce":"2537900b","chunk-65356317":"e5109ba3","chunk-6a8ab2e1":"da760c16","chunk-6dfc1c36":"effcfd5e","chunk-71f736dd":"43dd04ad","chunk-1151956e":"aaa899bc","chunk-46528954":"bcfa2b34","chunk-7c18fb37":"93e19818","chunk-7cbff464":"979068dd","chunk-90312de2":"905f9ee1","chunk-97c8b0bc":"ea5a58ea","chunk-9c5b2680":"4c8ff257","chunk-b073f330":"b7424a51","chunk-b8247f22":"5db2345a","chunk-b9a7d4fe":"5f411485","chunk-ba1c12aa":"813bfa0b","chunk-cfbefc9a":"fb5c154c","chunk-d1beccba":"0cb562a2","chunk-d89f0a84":"1733d953"}[e]+".css",r=i.p+c,u=document.getElementsByTagName("link"),o=0;o<u.length;o++){var d=u[o],s=d.getAttribute("data-href")||d.getAttribute("href");if("stylesheet"===d.rel&&(s===c||s===r))return n()}var h=document.getElementsByTagName("style");for(o=0;o<h.length;o++){d=h[o],s=d.getAttribute("data-href");if(s===c||s===r)return n()}var f=document.createElement("link");f.rel="stylesheet",f.type="text/css",f.onload=n,f.onerror=function(n){var c=n&&n.target&&n.target.src||r,u=new Error("Loading CSS chunk "+e+" failed.\n("+c+")");u.code="CSS_CHUNK_LOAD_FAILED",u.request=c,delete a[e],f.parentNode.removeChild(f),t(u)},f.href=r;var p=document.getElementsByTagName("head")[0];p.appendChild(f)})).then((function(){a[e]=0})));var c=r[e];if(0!==c)if(c)n.push(c[2]);else{var u=new Promise((function(n,t){c=r[e]=[n,t]}));n.push(c[2]=u);var d,s=document.createElement("script");s.charset="utf-8",s.timeout=120,i.nc&&s.setAttribute("nonce",i.nc),s.src=o(e);var h=new Error;d=function(n){s.onerror=s.onload=null,clearTimeout(f);var t=r[e];if(0!==t){if(t){var c=n&&("load"===n.type?"missing":n.type),a=n&&n.target&&n.target.src;h.message="Loading chunk "+e+" failed.\n("+c+": "+a+")",h.name="ChunkLoadError",h.type=c,h.request=a,t[1](h)}r[e]=void 0}};var f=setTimeout((function(){d({type:"timeout",target:s})}),12e4);s.onerror=s.onload=d,document.head.appendChild(s)}return Promise.all(n)},i.m=e,i.c=c,i.d=function(e,n,t){i.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:t})},i.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,n){if(1&n&&(e=i(e)),8&n)return e;if(4&n&&"object"===typeof e&&e&&e.__esModule)return e;var t=Object.create(null);if(i.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var c in e)i.d(t,c,function(n){return e[n]}.bind(null,c));return t},i.n=function(e){var n=e&&e.__esModule?function(){return e["default"]}:function(){return e};return i.d(n,"a",n),n},i.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},i.p="",i.oe=function(e){throw e};var d=window["webpackJsonp"]=window["webpackJsonp"]||[],s=d.push.bind(d);d.push=n,d=d.slice();for(var h=0;h<d.length;h++)n(d[h]);var f=s;u.push([0,"chunk-vendors"]),t()})({0:function(e,n,t){t("db4d"),e.exports=t("56d7")},"1a5d":function(e,n,t){var c={"./app-controls/app-detail.vue":["9bc6","chunk-40e8a9a0"],"./app-controls/app-list.vue":["4a78","chunk-0903084f"],"./app-controls/index.vue":["b04c","chunk-4d1ad1c2"],"./apps/app-auth.vue":["c686","chunk-90312de2"],"./apps/customer-app/clerk-tag.vue":["b5b0","chunk-06fd5be4","chunk-65c4a434","chunk-51ddeb1e"],"./apps/customer-app/crowd-scene.vue":["c7d7","chunk-06fd5be4","chunk-65c4a434","chunk-f53cd680"],"./apps/customer-app/customer-assign.vue":["12eb","chunk-d1beccba"],"./apps/customer-app/customer-data-set.vue":["3cf8","chunk-cfbefc9a"],"./apps/customer-app/customer-show-set.vue":["f766","chunk-9c5b2680"],"./apps/customer-app/data-dimension.vue":["55f3","chunk-06fd5be4","chunk-0ed4435a"],"./apps/customer-app/index.vue":["c3d9","chunk-5b656bce"],"./apps/index.vue":["7f2e","chunk-33b3e2c8"],"./business/audit-log.vue":["0912","chunk-2226ce36"],"./business/auth-merchant.vue":["56b3","chunk-26acaa95"],"./business/contacts.vue":["a269","chunk-3cc1a93d"],"./business/index.vue":["50c8","chunk-65356317"],"./business/new-auth-merchant.vue":["62a7","chunk-71f736dd","chunk-46528954"],"./business/sync-log.vue":["b155","chunk-b9a7d4fe"],"./enterprise/admin-list.vue":["db80","chunk-17931de2"],"./enterprise/admin-list/role-list.vue":["0082","chunk-b073f330"],"./enterprise/edit-admin.vue":["7dc6","chunk-71f736dd","chunk-1151956e"],"./enterprise/edit-role.vue":["2249","chunk-3f1829d1"],"./enterprise/edit-role/menu-tree.vue":["a088","chunk-7cbff464"],"./enterprise/edit-store-role.vue":["a960","chunk-4ce37d2f"],"./enterprise/enterprise-set.vue":["b735","chunk-2a14ad6e"],"./enterprise/index.vue":["ea02","chunk-97c8b0bc"],"./enterprise/store-admin-list.vue":["2058","chunk-4d075cf6"],"./enterprise/super-admin.vue":["9b74","chunk-b8247f22"],"./error-page/403.vue":["5140","chunk-ba1c12aa"],"./error-page/404.vue":["1db4","chunk-2351fb9b"],"./error-page/500.vue":["721c","chunk-6dfc1c36"],"./error-page/gic-error.vue":["442d","chunk-37259986"],"./error-page/index.vue":["4cf1","chunk-7c18fb37"],"./index/index.vue":["37f9","chunk-35e6f8fc"],"./login/index.vue":["9ed6","chunk-39362334"],"./review-center/audit-config.vue":["daa8","chunk-4b898c1e"],"./review-center/audit-group-list.vue":["ff23","chunk-064f007c"],"./review-center/audit-item-list.vue":["727c","chunk-4d95ae81"],"./review-center/create-audit-group.vue":["ea11","chunk-322df9a5"],"./review-center/create-audit-item.vue":["e0c0","chunk-30f81def"],"./review-center/index.vue":["2cad","chunk-4ba4add0"],"./review-center/reviewed.vue":["dacc","chunk-d89f0a84"],"./review-center/unreview.vue":["1005","chunk-6a8ab2e1"]};function a(e){if(!t.o(c,e))return Promise.resolve().then((function(){var n=new Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n}));var n=c[e],a=n[0];return Promise.all(n.slice(1).map(t.e)).then((function(){return t(a)}))}a.keys=function(){return Object.keys(c)},a.id="1a5d",e.exports=a},"4f94":function(e,n,t){},"56d7":function(e,n,t){"use strict";t.r(n);t("456d"),t("ac6a"),t("cadf"),t("551c"),t("f751"),t("097d"),t("db4d");var c=t("1368"),a=t.n(c),r=(t("0fae"),t("4f94"),t("d31c"),t("8bbf")),u=t.n(r),o=t("8c4f"),i=t("cebe"),d=t.n(i),s=t("5c96"),h=t.n(s),f=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"dm-reset",attrs:{id:"app"}},[t("router-view")],1)},p=[],m={name:"App"},b=m,l=t("2877"),k=Object(l["a"])(b,f,p,!1,null,null,null),g=k.exports,v=t("e2b2"),w=t.n(v),y=function(e){t.e("chunk-7c18fb37").then(t.bind(null,"4cf1")).then((function(n){e(n)}))},x=[{path:"/",name:"/",redirect:"login"},{path:"/login",name:"登录",component:w()("login","index")},{path:"/index",name:"index",component:w()("index","index")},{path:"/contacts",name:"通讯录",redirect:"contactsList",component:w()("business","index"),children:[{path:"/contactsList",name:"通讯录",component:w()("business","contacts")},{path:"/syncLog",name:"通讯录日志",component:w()("business","sync-log")},{path:"/authMerchant",name:"授权商户",component:w()("business","auth-merchant")},{path:"/newAuthMerchant",name:"新增授权",component:w()("business","new-auth-merchant")},{path:"/auditLog",name:"审核日志",component:w()("business","audit-log")}]},{path:"/reviewCenter",name:"审核中心",redirect:"unreview",component:w()("review-center","index"),children:[{path:"/reviewed",name:"已审核",component:w()("review-center","reviewed")},{path:"/unreview",name:"未审核",component:w()("review-center","unreview")},{path:"/audit-group-list",meta:{title:"审核组列表"},component:w()("review-center","audit-group-list")},{path:"/create-audit-group",meta:{title:"新建、编辑审核组"},component:w()("review-center","create-audit-group")},{path:"/audit-item-list",meta:{title:"审核事项列表"},component:w()("review-center","audit-item-list")},{path:"/create-audit-item",meta:{title:"新建、编辑审核事项"},component:w()("review-center","create-audit-item")},{path:"/audit-config",meta:{title:"审核设置"},component:w()("review-center","audit-config")}]},{path:"/enterprise",name:"企业设置",redirect:"enterpriseSet",component:w()("enterprise","index"),children:[{path:"/enterpriseSet",name:"企业信息",component:w()("enterprise","enterprise-set")},{path:"/admin-list",name:"管理员",component:w()("enterprise","admin-list")},{path:"/edit-role",name:"新建、编辑角色",component:w()("enterprise","edit-role")},{path:"/edit-admin",name:"新建编辑管理员",component:w()("enterprise","edit-admin")},{path:"/store-admin-list",name:"门店角色",component:w()("enterprise","store-admin-list")},{path:"/edit-store-role",name:"编辑门店角色",component:w()("enterprise","edit-store-role")},{path:"/superAdmin",name:"超级管理员",component:w()("enterprise","super-admin")}]},{path:"/app-controls",meta:{title:"工作台"},redirect:"/app-list",component:w()("app-controls","index"),children:[{path:"/app-list",meta:{title:"服务应用"},component:w()("app-controls","app-list")},{path:"/app-detail",meta:{title:"服务应用详情"},component:w()("app-controls","app-detail")}]},{path:"/apps",name:"企业应用",component:w()("apps","index"),children:[{path:"/my-customer",name:"我的顾客",component:w()("apps/customer-app","index"),children:[{path:"/data-dimension",name:"数据维度",component:w()("apps/customer-app","data-dimension")},{path:"/crowd-scene",name:"人群场景",component:w()("apps/customer-app","crowd-scene")},{path:"/customer-data-set",name:"顾客资料",component:w()("apps/customer-app","customer-data-set")},{path:"/clerk-tag",name:"导购标签",component:w()("apps/customer-app","clerk-tag")},{path:"/customer-assign",name:"顾客分配",component:w()("apps/customer-app","customer-assign")}]}]},{path:"/app-auth",name:"应用授权",component:w()("apps","app-auth")},{path:"/gic-error",name:"gic跳转失败页",component:w()("error-page","gic-error")},{path:"/403",name:"无权访问",component:y},{path:"/404",name:"error404",component:y},{path:"/500",name:"error500",component:y},{path:"*",redirect:"/404",hidden:!0}],M=o["a"].prototype.push;o["a"].prototype.push=function(e){return M.call(this,e).catch((function(e){return e}))};var O=new o["a"]({routes:x}),S=O,j=(t("c5f6"),t("3b2b"),t("a481"),t("6b54"),function(e,n){if(!e)return"";e=10===e.toString().length?1e3*e:e;var t=new Date(e),c={"M+":t.getMonth()+1,"D+":t.getDate(),W:"日一二三四五六".charAt(t.getDay()),"h+":t.getHours(),"m+":t.getMinutes(),"s+":t.getSeconds(),"q+":Math.floor((t.getMonth()+3)/3),S:t.getMilliseconds()};for(var a in/(Y+)/.test(n)&&(n=n.replace(RegExp.$1,(t.getFullYear()+"").substr(4-RegExp.$1.length))),c)new RegExp("("+a+")").test(n)&&(n=n.replace(RegExp.$1,1===RegExp.$1.length?c[a]:("00"+c[a]).substr((""+c[a]).length)));return n}),D=function(e){if(!e)return"";var n=new Date(e),t=n.getMonth()+1,c=n.getDate()<10?"0"+n.getDate():n.getDate(),a=t<10?"0"+t:t,r=n.getHours()<10?"0"+n.getHours():n.getHours(),u=n.getMinutes()<10?"0"+n.getMinutes():n.getMinutes(),o=n.getSeconds()<10?"0"+n.getSeconds():n.getSeconds();return"".concat(n.getFullYear(),"-").concat(a,"-").concat(c," ").concat(r,":").concat(u,":").concat(o)},E=function(e){if(!e)return"";var n=new Date(e),t=n.getMonth()+1,c=n.getDate()<10?"0"+n.getDate():n.getDate(),a=t<10?"0"+t:t,r=n.getHours()<10?"0"+n.getHours():n.getHours(),u=n.getMinutes()<10?"0"+n.getMinutes():n.getMinutes(),o=n.getSeconds()<10?"0"+n.getSeconds():n.getSeconds();return"".concat(n.getFullYear(),".").concat(a,".").concat(c," ").concat(r,":").concat(u,":").concat(o)},A=function(e){if(!e)return"";var n=new Date(e),t=n.getMonth()+1,c=t<10?"0"+t:t;return"".concat(n.getFullYear(),"-").concat(c)},P=function(e){if(!e)return"";var n=new Date(e),t=n.getMonth()+1,c=n.getDate()<10?"0"+n.getDate():n.getDate(),a=t<10?"0"+t:t;return"".concat(n.getFullYear(),"-").concat(a,"-").concat(c)},T=function(e){if(!e)return"";var n=new Date(e),t=n.getHours()<10?"0"+n.getHours():n.getHours(),c=n.getMinutes()<10?"0"+n.getMinutes():n.getMinutes(),a=n.getSeconds()<10?"0"+n.getSeconds():n.getSeconds();return"".concat(t,":").concat(c,":").concat(a)},C=function(e){if(!e)return"";var n=new Date,t=new Date(Number(e)).getTime()-n.getTime();if(t<0)return"";var c=Math.floor(t/864e5),a=t%864e5,r=Math.floor(a/36e5),u=a%36e5,o=Math.floor(u/6e4);return"".concat(c,"天").concat(r,"小时").concat(o,"分")},L=function(e){return e?(e=e.toString(),e.substr(0,3)+"****"+e.substr(7,11)):""},H=function(e){return e?(e=e.toString(),"**"+e.substr(e.length-1,e.length)):""},_=function(e){return e?(e=e.toString(),e.length>6?e.substr(0,5)+"...":e):""},F=function(e){if(!e)return"00:00:00";var n=e/1e3,t=Math.floor(n/60/60/24),c=24*t+Math.floor(n/60/60)%24<10?"0"+(24*t+Math.floor(n/60/60)%24):24*t+Math.floor(n/60/60)%24,a=Math.floor(n/60)%60<10?"0"+Math.floor(n/60)%60:Math.floor(n/60)%60,r=Math.floor(n)%60<10?"0"+Math.floor(n)%60:Math.floor(n)%60;return"".concat(c,":").concat(a,":").concat(r)},N={dateFormat:j,formatTimeStamp:D,timeStampToYm:A,timeStampToYmd:P,timeStampToHms:T,formatTimeYmdHms:E,formatPhoneNum:L,formatName:H,timeStampSpace:C,formatTime:F,formatWord:_},R=(t("4917"),t("6762"),t("2fdb"),t("96cf"),t("1da1")),Y=(t("5df3"),t("b775")),$=[],U=[],q={};function B(){var e=new Promise((function(e){Object(Y["a"])({url:"/hb-manage-web/list-staff-role-menu"}).then((function(e){U=I(e.result||[])})).finally(e)})),n=new Promise((function(e){Object(Y["a"])({url:"/hb-manage-web/list-staff-role-opeation"}).then((function(e){q=J(e.result||[])})).finally(e)}));return Promise.all([e,n])}function I(e){var n=[];return e.forEach((function(e){e.menuUrl&&n.push(e.menuUrl),Array.isArray(e.children)&&(n=n.concat(I(e.children)))})),n}function J(e){var n={};return e.forEach((function(e){n[e.menuCode]=!0})),n}function V(e){var n=[];return e.forEach((function(e){Array.isArray(e.children)&&(n=n.concat(V(e.children))),n.push(e.path)})),n}function W(e,n,t){var c=U.some((function(n){return n.indexOf("/#")>=0?n=="/#".concat(e.path):n==e.path}));if(c)return Object.assign(d.a.defaults.headers.common,{route:e.path.replace(/^\//,"")}),t();$.some((function(n){return n==e.path}))||0==U.length?t("/gic-error"):(Object.assign(d.a.defaults.headers.common,{route:U[0].replace(/^\//,"")}),t(U[0]))}function K(e){return!!q[e]}var z=function(e){var n=e.projectPath,t=e.whiteRoute,c=e.router,a=e.routes,r=e.createApp;window.addEventListener("load",Object(R["a"])(regeneratorRuntime.mark((function e(){var u,o;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(u=window.location.href,o=window.location.hash,-1!=u.indexOf("/login")||-1!=u.indexOf("/gic-error")){e.next=6;break}return Object.assign(d.a.defaults.headers.common,{project:n,route:o.includes("?")?o.match(/(?<=\#\/).*?(?=\?)/)[0]:o.match(/(?<=\#\/).*/)[0]}),e.next=6,B();case 6:Array.isArray(t)&&(U=U.concat(t)),Array.isArray(a)&&($=V(a)),c.beforeEach(W),"function"==typeof r&&r();case 10:case"end":return e.stop()}}),e)}))))},G=t("f121");a.a.polyfill(),window.Vue=u.a,u.a.use(o["a"]),u.a.use(h.a),d.a.defaults.withCredentials=!0,u.a.prototype.axios=d.a,u.a.prototype.$itemPerm=K,u.a.prototype.$itemCode=G["a"],u.a.config.devtools=!1,u.a.config.productionTip=!1,Object.keys(N).forEach((function(e){u.a.filter(e,N[e])})),z({projectPath:"haoban",whiteRoute:["/login","/contactsList","/apps","/gic-error","/403","/404","/500"],router:S,routes:x,createApp:function(){new u.a({router:S,render:function(e){return e(g)}}).$mount("#app")}})},"8bbf":function(e,n){e.exports=Vue},b775:function(e,n,t){"use strict";t.d(n,"a",(function(){return d}));var c=t("cebe"),a=t.n(c),r=t("4328"),u=t.n(r),o=t("5c96"),i=t("f121");a.a.defaults.baseURL=i["c"],a.a.defaults.withCredentials=!0;var d=function(e,n,t){n=Object.assign({},n),e=Object.assign({},e);var c={url:"",params:"",data:"",method:"get",useFormData:!1,useIntercept:!0,headers:{}};switch(Object.assign(c,e,t),c.useFormData&&(n=u.a.stringify(n)),c.method.toLowerCase()){case"get":c.params=n;break;case"post":c.data=n;break;default:c.data=n;break}return new Promise((function(e,n){a()(c).then((function(t){var a=t.data;return a.code==i["b"]?(window.location.href="".concat(i["c"],"/haoban-4/#/login"),n(a)):c.useIntercept&&a.code!=i["d"]?(Object(o["Message"])({message:a.message||"未知错误",type:"warning"}),n(a)):void e(a)})).catch((function(e){var t=e.response||{},c=t.data||{};Object(o["Message"])({message:c.message||"未知错误",type:"warning"}),n(e)}))}))}},cebe:function(e,n){e.exports=axios},d31c:function(e,n,t){},e2b2:function(e,n,t){e.exports=function(e,n){return function(c){t("1a5d")("./"+e+"/"+n+".vue").then((function(e){c(e)}))}}},f121:function(e,n,t){"use strict";function c(){var e=window.location.origin;return(e.indexOf("localhost")>=0||e.indexOf("192.168")>=0)&&(e="https://four.gicdev.com"),e}t.d(n,"c",(function(){return a})),t.d(n,"d",(function(){return r})),t.d(n,"b",(function(){return u})),t.d(n,"a",(function(){return o}));var a=c(),r="0000",u="0003",o={batchAudit:"batchAudit"}}});
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-0211a924"],{"05ca":function(t,e,a){"use strict";var n=a("8058"),r=a.n(n);r.a},"2bc8":function(t,e,a){"use strict";var n=a("f51e"),r=a.n(n);r.a},"35d7":function(t,e,a){},"4ab6":function(t,e,a){"use strict";var n=a("c3fd"),r=a.n(n);r.a},"5f7b":function(t,e,a){"use strict";var n=a("987b"),r=a.n(n);r.a},"6f17":function(t,e,a){"use strict";var n=a("8a5b"),r=a.n(n);r.a},"7a95":function(t,e,a){"use strict";var n=a("de45"),r=a.n(n);r.a},8058:function(t,e,a){},"87d3":function(t,e,a){},"8a5b":function(t,e,a){},"924b":function(t,e,a){"use strict";var n=a("35d7"),r=a.n(n);r.a},"987b":function(t,e,a){},a269:function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"contacts-wrap common-set-wrap"},[a("div",{staticClass:"right-content"},[a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"right-box",style:{"min-height":t.bgHeight}},[a("div",{staticClass:"apps-content flex",style:{"min-height":t.bgHeight}},[a("div",{staticClass:"apps-content-left border-box"},[a("div",{staticClass:"left-tree-body border-box"},[a("div",{staticClass:"left-tree-search flex"},[a("el-input",{staticClass:"w-225",attrs:{placeholder:"搜索部门",maxlength:"50",clearable:""},on:{clear:t.clearInput},nativeOn:{keyup:function(e){return function(e){return t.toInput(e,t.searchInput)}(e)}},model:{value:t.searchInput,callback:function(e){t.searchInput=e},expression:"searchInput"}}),a("el-tooltip",{attrs:{content:"授权商户",placement:"top"}},[a("div",{staticClass:"cursor-pointer flex flex-align-center flex-pack-center",on:{click:t.toManage}},[a("span",{staticClass:"iconfont iconshouquanyanzheng m-l-10 cursor-pointer"})])])],1),a("div",{staticClass:"help-body flex flex-space-between",on:{click:t.toRefreshMember}},[a("span",{staticClass:"font-12 color-2f54eb"},[t._v("刷新企业成员")]),a("span",{staticClass:"font-12 color-2f54eb iconfont iconshuaxin1"})]),a("div",{staticClass:"left-tree p-t-14"},[t.searchInput?t._e():a("contact-tree",{attrs:{"depart-obj":t.departObj,"item-data":t.wxData},on:{getSelectData:t.getSelectData},model:{value:t.wxData,callback:function(e){t.wxData=e},expression:"wxData"}}),t.searchInput?a("div",{staticClass:"contact-search-body"},[t.searchData.length?a("ul",t._l(t.searchData,(function(e,n){return a("li",{key:n+"gic",staticClass:"contact-li"},[a("div",{class:["li-cell cursor-pointer",t.departObj.departmentId==e.departmentId?"li-cell-active":""],on:{click:function(a){return t.selectSearch(e)}}},[a("div",{staticClass:"li-cell-p",style:{"margin-left":"20px"}},[a("span",{class:["font-14 p-r-10 iconfont iconqiye-tianchong",t.departObj.departmentId==e.departmentId?"color-2f54eb":"color-dedfe6"]}),a("span",{staticClass:"font-14 color-606266 span-departName"},[t._v(t._s(e.departmentName))])])])])})),0):t._e(),t.searchData.length?t._e():a("div",{staticClass:"no-search-data font-14 color-909399"},[t._v("暂无搜索结果")])]):t._e()],1)])]),a("div",{staticClass:"apps-content-right"},[a("div",{staticClass:"content-right-body border-box",staticStyle:{"min-height":"100%"}},[a("new-depart-member",{attrs:{"depart-obj":t.departObj},on:{changeDepart:t.changeDepart}})],1)])])])]),1==t.syncStatusData.syncStatus||2==t.syncStatusData.syncStatus||3==t.syncStatusData.syncStatus?a("sync-dialog",{attrs:{"sync-data":t.syncStatusData}}):t._e()],1)},r=[],s=(a("ac6a"),a("96cf"),a("1da1")),o=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ul",{},t._l(t.itemData,(function(e,n){return a("li",{key:n+"gic",staticClass:"contact-li"},[a("div",{class:["li-cell cursor-pointer",t.departObj.departmentId==e.departmentId?"li-cell-active":""],on:{click:function(a){return t.toggleExpand(e)}}},[a("div",{staticClass:"li-cell-p",style:{"margin-left":20*e.level+"px"}},[a("span",{class:["font-12 color-606266",1!=e.isStore&&e.hasSonNode?"":"color-fff",e.expand?"el-icon-caret-bottom":"el-icon-caret-right"]}),e.loading?a("span",{staticClass:"el-tree-node__loading-icon el-icon-loading"}):t._e(),a("span",{class:["font-14 p-r-10 iconfont iconqiye-tianchong",e.loading?"":"p-l-10",t.departObj.departmentId==e.departmentId?"color-2f54eb":"color-dedfe6"]}),a("span",{staticClass:"font-14 color-606266 span-departName"},[t._v(t._s(e.departmentName))])])]),e.expand?a("li-row",{attrs:{"depart-obj":t.departObj,"item-data":e.children},on:{getSelectData:t.getSelectData}}):t._e()],1)})),0)},i=[],l={name:"LiRow",components:{},props:{value:{type:[Object,Array],default:function(){return[]}},itemData:{type:[Object,Array],default:function(){return[]}},departObj:{type:Object,default:function(){return{departmentId:"",departmentName:"",wxDepartmentId:"",parentId:"",isStore:"",staffCount:"",bindFlag:"",loading:!1}}}},data:function(){return{rightOption:{group:{name:"people",pull:!0,put:!0},sort:!0}}},methods:{emitter:function(t){this.$emit("input",t)},toggleExpand:function(){var t=Object(s["a"])(regeneratorRuntime.mark((function t(e){var a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:a=this,e.expand=!e.expand,0!=e.isStore||e.children.length||(e.loading=!0,e.loading=!1),a.$emit("getSelectData",e),a.$forceUpdate();case 5:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}(),getSelectData:function(t){var e=this;e.selectData=t,e.$emit("getSelectData",t)}}},c=l,u=(a("05ca"),a("2877")),d=Object(u["a"])(c,o,i,!1,null,"6bf5b803",null),p=d.exports,f=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"depart-list-body"},[a("div",{staticClass:"depart-name-wrap flex flex-space-between"},[a("div",{staticClass:"depart-name"},[a("span",{staticClass:"font-16 p-r-10 iconfont iconqiye-tianchong color-303133"}),a("span",{staticClass:"font-16 color-303133 font-w-600"},[t._v(t._s(t.departObj.departmentName)+" ("+t._s(t.total)+"人)")])]),a("div",{staticClass:"flex"},[a("div",{staticClass:"flex flex-align-center flex-pack-center cursor-pointer font-12 color-909399 hover-303133",on:{click:t.toLog}},[t._v("变更日志")]),a("div",{staticClass:"flex flex-align-center flex-pack-center font-12 color-909399 cursor-pointer hover-303133 use-help-tip",on:{click:t.toShowTip}},[t._v("使用帮助")])])]),a("div",{staticClass:"m-t-20"},[a("div",{staticClass:"depart-condition-wrap flex flex-space-between "},[a("div",[a("el-input",{staticClass:"w-274",attrs:{placeholder:"搜索姓名/手机号码",maxlength:"50",clearable:""},on:{clear:t.clearInput},nativeOn:{keyup:function(e){return function(e){return t.toInput(e,t.searchInput)}(e)}},model:{value:t.searchInput,callback:function(e){t.searchInput=e},expression:"searchInput"}}),a("el-select",{staticClass:"m-l-10",attrs:{placeholder:"所有状态"},on:{change:t.changeStatus},model:{value:t.activeFlag,callback:function(e){t.activeFlag=e},expression:"activeFlag"}},t._l(t.statusOptions,(function(t){return a("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1)],1)]),a("div",{staticClass:"m-t-20"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],ref:"multipleTable",staticClass:"select-table",style:{width:"100%",minHeight:t.tableH},attrs:{data:t.tableData,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{label:"姓名","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.staffName||"--"))]}}])}),a("el-table-column",{attrs:{prop:"",label:"职务","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.postion||"--"))]}}])}),a("el-table-column",{attrs:{prop:"",label:"手机号码","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.nationCode)+"-"+t._s(e.row.phoneNumber))]}}])}),a("el-table-column",{attrs:{prop:"",label:""},scopedSlots:t._u([{key:"default",fn:function(t){return[a("span",{class:["inline-block iconfont iconhuaban",1==t.row.activeFlag?"color-2f54eb":"color-c0c4cc"]})]}}])},[a("template",{slot:"header"},[a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",placement:"right"}},[a("div",{attrs:{slot:"content"},slot:"content"},[t._v("\n 是否使用好办4.0小程序\n ")]),a("span",{staticStyle:{cursor:"pointer","padding-bottom":"2px","border-bottom":"1px dashed #2F54EB"}},[t._v("使用状态")])])],1)],2),a("el-table-column",{attrs:{prop:"",label:"绑定","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text"},on:{click:function(a){return t.showRelateDetail(e.row)}}},[t._v("查看详情")])]}}])},[a("template",{slot:"header"},[a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",placement:"right"}},[a("div",{attrs:{slot:"content"},slot:"content"},[t._v("员工绑定导购详情,因只能识别企业微信用户usrid且门店与部门不相绑定,"),a("br"),t._v("所以虽然在一个部门下,但是可能出现一个人绑定多个导购代码。"),a("br"),t._v("即一个用户对应多个导购代码")]),a("span",{staticStyle:{cursor:"pointer","padding-bottom":"2px","border-bottom":"1px dashed #2F54EB"}},[t._v("绑定详情")])])],1)],2),a("el-table-column",{attrs:{prop:"",label:"操作","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text"},on:{click:function(a){return t.showDetail(e.row)}}},[t._v("成员详情")])]}}])})],1),0!=t.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("dm-pagination",{attrs:{background:"","current-page":t.currentPage,"page-sizes":[10,20,30],"page-size":t.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1):t._e()],1)]),t.memberVisible?a("add-member",{attrs:{"default-depart":t.defaultDepart,"member-obj":t.memberObj},on:{refreshData:t.refreshData,changeObj:t.changeObj}}):t._e(),t.relateShow?a("related-table",{attrs:{"relate-row":t.relateRow},on:{closeTable:t.closeTable}}):t._e(),t.tipShow?a("help-tip",{on:{toCloseTip:t.toCloseTip}}):t._e()],1)},m=[],h=(a("456d"),a("d157")),b=a("e230"),g=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("el-dialog",{attrs:{width:"600px",title:t.partForm.staffId?"成员详情":"新增成员",visible:t.memberVisible,"append-to-body":"","before-close":t.handleClose},on:{"update:visible":function(e){t.memberVisible=e}}},[a("el-form",{ref:"form",staticClass:"dialog-form",attrs:{model:t.partForm,rules:t.rules,"label-width":"100px"}},[a("el-form-item",{attrs:{label:"姓名",prop:""}},[t._v("\n "+t._s(t.partForm.staffName||"--")+"\n ")]),a("el-form-item",{attrs:{label:"昵称"}},[t._v("\n "+t._s(t.partForm.nickName||"--")+"\n ")]),a("el-form-item",{attrs:{label:"账号"}},[t._v("\n "+t._s(t.partForm.wxUserId||"--")+"\n ")]),a("el-form-item",{attrs:{label:"性别",prop:""}},[t._v("\n "+t._s(1==t.partForm.sex?"男":2==t.partForm.sex?"女":"--")+"\n ")]),a("el-form-item",{attrs:{label:"手机号码",prop:""}},[t._v(" "+t._s(t.partForm.nationCode)+"-"+t._s(t.partForm.phoneNumber)+" ")]),a("el-form-item",{attrs:{label:"部门",prop:""}},[a("ul",t._l(t.partForm.departmentInfo,(function(e,n){return a("li",{key:n+"part",staticClass:" depart-cell color-2f54eb cursor-pointer",on:{click:function(a){return t.changeDepart(e)}}},[a("span",[t._v(t._s(e.chainName)+" / "+t._s(e.departmentName)+" "+t._s((t.partForm.departmentInfo.length,";")))])])})),0)]),a("el-form-item",{attrs:{label:"职务",prop:""}},[t._v("\n "+t._s(t.partForm.postion||"--")+"\n ")])],1)],1)},v=[],w=(a("a481"),a("a689")),y=a.n(w),_=b["a"].getStaffDetail,x={name:"AddMember",components:{},props:{memberObj:{type:[Object,Array],default:function(){return{}}},defaultDepart:{type:[Object,Array],default:function(){return[]}}},data:function(){var t=this,e=function(e,a,n){if(""===a)n(new Error("请输入手机号"));else{var r=new y.a("+"+t.partForm.nationCode+a);r.isValid()&&r.isMobile()?n():n(new Error("手机号格式不正确"))}},a=function(e,a,n){""===a&&2==t.partForm.syncPostionFlag?n(new Error("请输入对外职务名称")):n()};return{memberVisible:!0,rules:{staffName:[{required:!0,message:"请输入姓名",trigger:"blur"}],extendPostionDefine:[{required:!0,validator:a,trigger:"blur"}],phoneNumber:[{required:!0,validator:e,trigger:"blur"}],departmentInfo:[{type:"array",required:!0,message:"请选择部门",trigger:"change"}]},partForm:{staffId:"",staffName:"",nickName:"",nationCode:"86",phoneNumber:"",postion:"",activeFlag:!1,departmentInfo:[],departmentIds:"",sex:1,syncPostionFlag:1,extendPostion:"",extendPostionDefine:""}}},mounted:function(){var t=this;Object.keys(t.memberObj).length?(t.partForm=t.memberObj,t.partForm.departmentInfo=[],t.getData()):t.partForm.departmentInfo=t.defaultDepart||[]},methods:{changeDepart:function(t){var e=this;e.$emit("changeObj",t)},checkGroupIds:function(t){var e=this;e.partForm.departmentInfo=t},changeExtendPostion:function(t){var e=this;e.partForm.extendPostion=1==t?e.partForm.postion:""},handleClose:function(t){var e=this;e.$refs["form"].resetFields(),t(),e.$emit("refreshData","close")},cancel:function(){var t=this;t.$refs["form"].resetFields(),t.$emit("refreshData","close")},submitForm:function(t){var e=this;1==e.partForm.syncPostionFlag&&(e.partForm.extendPostion=e.partForm.postion),2==e.partForm.syncPostionFlag&&(e.partForm.extendPostion=e.partForm.extendPostionDefine)},getData:function(){var t=this,e={staffId:t.partForm.staffId};_(e).then((function(e){e.result.activeFlag=0!=e.result.activeFlag,2==e.result.syncPostionFlag&&(e.result.extendPostionDefine=e.result.extendPostion),e.result.departmentInfo&&e.result.departmentInfo.length&&e.result.departmentInfo.forEach((function(t){t.chainName=t.chainName.replace(/\//gi," / ")})),t.partForm=e.result})).catch((function(t){}))}},watch:{memberObj:function(t,e){var a=this;Object.keys(t).length?(a.partForm=t,a.partForm.departmentInfo=[],a.getData()):a.partForm.departmentInfo=a.defaultDepart||[]}}},S=x,D=(a("2bc8"),Object(u["a"])(S,g,v,!1,null,"1c710d86",null)),C=D.exports,k=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("el-dialog",{attrs:{title:"绑定详情",visible:t.dialogVisible,width:"995px","before-close":t.handleClose},on:{"update:visible":function(e){t.dialogVisible=e}}},[a("div",{staticClass:"overstore-tip"},[a("div",{staticClass:"flex flex-space-between"},[a("div"),a("el-button",{attrs:{type:"primary"},on:{click:t.toAddRelate}},[t._v("新建绑定")])],1)]),a("div",{staticClass:"m-t-20"},[a("el-table",{ref:"multipleTable",staticClass:"select-table",style:{width:"100%"},attrs:{height:"500",data:t.tableData,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{label:"导购code","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.clerkCode||"--"))]}}])}),a("el-table-column",{attrs:{prop:"",label:"导购姓名","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.clerkName||"--")+"\n ")]}}])}),a("el-table-column",{attrs:{prop:"",label:"导购手机号","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.nationCode||"--")+"-"+t._s(e.row.clerkPhoneNumber||"--")+"\n ")]}}])}),a("el-table-column",{attrs:{prop:"",label:"绑定商户","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.enterpriseName||"--")+"\n ")]}}])}),a("el-table-column",{attrs:{prop:"",label:"绑定门店","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.storeName||"--")+"\n ")]}}])}),a("el-table-column",{attrs:{prop:"",label:"绑定时间","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"color-606266 line-18"},[t._v(t._s(t._f("timeStampToYmd")(e.row.createTime)))]),a("div",{staticClass:"color-606266 line-18"},[t._v(t._s(t._f("timeStampToHms")(e.row.createTime)))])]}}])}),a("el-table-column",{attrs:{prop:"",label:"操作","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text"},on:{click:function(a){return t.toUnbind(e.row)}}},[t._v("解绑")])]}}])})],1)],1),t.addShow?a("add-relate",{attrs:{"depart-obj":t.relateRow},on:{refreshData:t.refreshData}}):t._e()],1)},I=[],O=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("el-dialog",{attrs:{width:"600px",title:"新增绑定",visible:t.departVisible,"append-to-body":"","before-close":t.handleClose},on:{"update:visible":function(e){t.departVisible=e}}},[a("el-form",{ref:"partForm",staticClass:"dialog-form",attrs:{model:t.partForm,rules:t.rules,"label-width":"0px"}},[a("el-form-item",{attrs:{label:"",prop:"salerName"}},[a("el-popover",{attrs:{placement:"bottom",title:"",width:"457"},model:{value:t.visible,callback:function(e){t.visible=e},expression:"visible"}},[a("div",{staticClass:"daily-store-select"},[a("div",{staticClass:"el-scrollbar define-search-select"},[a("div",{staticClass:"el-select-dropdown__wrap el-scrollbar__wrap",staticStyle:{overflow:"auto"}},[a("ul",{staticClass:"el-scrollbar__view el-select-dropdown__list"},[t._l(t.storeData,(function(e){return a("li",{key:e.clerkId,class:["el-select-dropdown__item",e.clerkId==t.selectId?"selected hover":""],on:{click:function(a){return t.checkStore(e)}}},[a("div",{staticClass:"flex flex-space-between"},[a("div",{staticStyle:{"line-height":"26px"}},[a("span",{staticClass:"block text-ellipsis"},[t._v(t._s(e.clerkName)+"("+t._s(e.clerkCode)+")")]),a("div",{staticClass:"text-ellipsis font-12 color-909399"},[t._v(t._s(e.storeName||"--"))])]),e.clerkId==t.selectId?a("span",{staticClass:"font-12 color-2f54eb el-icon-check flex-align-center",staticStyle:{display:"flex"}}):t._e(),1==e.bindFlag?a("span",{staticClass:"font-12 color-909399"},[t._v("已添加不能绑定")]):t._e(),1==e.bindFlag?a("el-button",{staticClass:"m-l-10",attrs:{type:"text"},on:{click:function(a){return a.stopPropagation(),t.toUnbind(e)}}},[t._v("解绑")]):t._e()],1)])})),t.storeData.length?t._e():a("li",{staticClass:"text-center"},[a("span",[t._v("暂无数据")])])],2)])])]),a("div",{staticClass:"show-select-num cursor-pointer w-558",attrs:{slot:"reference"},slot:"reference"},[a("div",{staticClass:"select-search-input"},[a("span",{staticClass:"el-icon-search"}),a("span",{staticClass:"p-l-5"},[t._v(t._s(t.partForm.salerName))]),a("el-input",{attrs:{placeholder:"请输入code/手机号搜索进行账号绑定",maxlength:"40"},on:{clear:t.clearSearch},nativeOn:{keyup:function(e){return function(e){return t.toInput(e)}(e)}},model:{value:t.searchSelect,callback:function(e){t.searchSelect=e},expression:"searchSelect"}})],1)])])],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:t.cancel}},[t._v("取消")]),a("el-button",{attrs:{type:"primary",loading:t.loading},on:{click:function(e){return t.submitForm("partForm")}}},[t._v("确定")])],1)],1)},j=[],F=a("5b4e"),T=b["a"].addStaffRelation,N=b["a"].delStaffRelation,R=b["a"].getClerkRelation,$={name:"AddRelate",components:{},props:{departObj:{type:[Object,Array],default:function(){return{}}}},data:function(){return{partForm:{salerName:""},rules:{salerName:[{required:!0,message:"请选择导购",trigger:"change"}]},searchSelect:"",storeData:[],selectId:"",departVisible:!0,loading:!1,visible:!1}},methods:{showPop:function(){var t=this;t.visible=!0},toUnbind:function(t){var e=this;e.$confirm("导购账号(".concat(t.clerkName,")已绑定").concat(t.bindStaffName,",是否确认解绑?"),"提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){e.visible=!0,e.postUnbind(t)})).catch((function(){e.visible=!0}))},postUnbind:function(t){var e=this,a={staffId:t.bindStaffId,clerkId:t.clerkId};N(a).then((function(t){"0000"==t.code?(F["a"].showmsg("解绑成功","success"),e.getData(),e.visible=!0):e.$message({message:t.message||"接口异常",type:"warning"})})).catch((function(t){}))},checkStore:function(t){var e=this;if(1==t.bindFlag)return!1;e.selectId=t.clerkId,e.partForm.salerName=t.clerkName,e.$set(e.partForm,"salerName",t.clerkName),e.$forceUpdate(),e.$nextTick((function(){e.$refs["partForm"].validate((function(t){if(t)return!1}))}))},toInput:Object(h["a"])((function(){var t=this;if(""==t.searchSelect.trim())return t.storeData=[],!1;t.getData()}),500),clearSearch:function(){var t=this;t.storeData=[]},handleClose:function(t){var e=this;e.$refs["partForm"].resetFields(),e.$emit("refreshData","close"),t()},cancel:function(){var t=this;t.$refs["partForm"].resetFields(),t.$emit("refreshData","close")},submitForm:Object(h["a"])((function(t){var e=this;e.loading=!0,e.$refs[t].validate((function(t){if(!t)return e.loading=!1,!1;e.postAdd()}))}),300),postAdd:function(){var t=this,e={staffId:t.departObj.staffId,clerkId:t.selectId};T(e).then((function(e){t.loading=!1,"0000"==e.code?(F["a"].showmsg("添加成功","success"),t.$emit("refreshData",t.partForm)):t.$message({message:e.message||"接口异常",type:"warning"})})).catch((function(e){t.loading=!1}))},getData:function(){var t=this,e={search:t.searchSelect};R(e).then((function(e){t.storeData=e.result||[]})).catch((function(t){}))}}},P=$,L=(a("924b"),Object(u["a"])(P,O,j,!1,null,"73006e0d",null)),E=L.exports,V=b["a"].getStaffRelation,z=b["a"].delStaffRelation,U={name:"RelatedTable",components:{addRelate:E},props:{relateRow:{type:Object,default:function(){return{}}}},data:function(){return{dialogVisible:!0,currentPage:1,pageSize:20,total:0,tableData:[],addShow:!1}},mounted:function(){var t=this;Object.keys(t.relateRow).length&&t.getTableList()},methods:{refreshData:function(t){var e=this;if(e.addShow=!1,"close"==t)return!1;e.getTableList()},cancel:function(){var t=this;t.$emit("closeTable","close")},toAddRelate:function(){var t=this;t.addShow=!0},toUnbind:function(t){var e=this;e.$confirm("导购账号(".concat(t.clerkName,")已绑定").concat(t.bindStaffName,",是否确认解绑?"),"提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){e.postUnbind(t)})).catch((function(){}))},postUnbind:function(t){var e=this,a={staffId:t.bindStaffId,clerkId:t.clerkId};z(a).then((function(t){e.getTableList(),"0000"==t.code?F["a"].showmsg("解绑成功","success"):e.$message({message:t.message||"未知错误",type:"warning"})})).catch((function(t){}))},handleClose:function(){var t=this;t.tableData=[],t.$emit("closeTable")},changeRoute:function(t){this.$router.push(t)},handleSizeChange:function(t){var e=this;e.currentPage=1,e.pageSize=t,e.getTableList()},handleCurrentChange:function(t){var e=this;e.currentPage=t,e.getTableList()},getTableList:function(){var t=this,e={staffId:t.relateRow.staffId};V(e).then((function(e){t.tableData=e.result||[]})).catch((function(t){}))}},watch:{relateRow:function(t,e){var a=this;Object.keys(t).length&&a.getTableList()}}},A=U,J=(a("7a95"),Object(u["a"])(A,k,I,!1,null,"1a9f3600",null)),M=J.exports,q=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("el-dialog",{attrs:{title:"查看帮助提示",visible:t.dialogVisible,width:"620px","before-close":t.handleClose},on:{"update:visible":function(e){t.dialogVisible=e}}},[a("div",{staticClass:"p-l-18"},[a("div",{staticClass:"m-b-12"},[t._v("1.好办通讯录展示企业通讯录所有成员及所绑定的导购账号;")]),a("div",{staticClass:"m-b-12"},[t._v("2.好办通讯录不能添加、删除、修改企业微信成员信息;")]),a("div",{staticClass:"m-b-12"},[t._v("3.好办通讯录不能添加、删除、修改导购信息;")]),a("div",{staticClass:"m-b-12"},[t._v("4.管理员可以在好办通讯录中查看成员绑定的导购信息及进行导购解绑,成员绑定导购账号")])])])},B=[],H={name:"HelpTip",data:function(){return{dialogVisible:!0}},methods:{handleClose:function(){var t=this;t.$emit("toCloseTip")}}},G=H,W=(a("6f17"),Object(u["a"])(G,q,B,!1,null,"8ce1bfec",null)),Y=W.exports,K=b["a"].getStaffList,Q={name:"DepartList",components:{addMember:C,relatedTable:M,helpTip:Y},props:{departObj:{type:Object,default:function(){return{departmentId:"",departmentName:"",wxDepartmentId:"",parentId:"",isStore:"",staffCount:"",bindFlag:""}}}},data:function(){return{searchInput:"",activeFlag:"",statusOptions:[{value:"",label:"所有状态"},{value:"0",label:"未激活"},{value:"1",label:"已激活"}],currentPage:1,pageSize:10,total:0,loading:!1,tableData:[],clerkOptions:[],memberVisible:!1,memberObj:{},defaultDepart:[],multipleSelection:[],modVisible:!1,navData:[],relateShow:!1,relateRow:{},tipShow:!1}},mounted:function(){var t=this;Object.keys(t.departObj)&&(t.currentPage=1,t.getTableList())},methods:{toLog:function(){window.open("/haoban-4/#/syncLog")},changeObj:function(t){var e=this;e.memberVisible=!1,e.$emit("changeDepart",t)},toShowTip:function(){var t=this;t.tipShow=!0},toCloseTip:function(){var t=this;t.tipShow=!1},showRelateDetail:function(t){var e=this;e.relateShow=!0,e.relateRow=t},closeTable:function(){var t=this;t.relateShow=!1,t.relateRow={}},changeDepart:function(t,e){var a=this;if(e==a.navData.length-1)return!1;a.$emit("changeDepart",t)},selectInit:function(t,e){return 1!=t.activeFlag},toInput:Object(h["a"])((function(t,e){var a=this;a.currentPage=1,a.getTableList()}),500),clearInput:function(){var t=this;t.currentPage=1,t.getTableList()},changeStatus:function(){var t=this;t.currentPage=1,t.getTableList()},showDetail:function(){var t=Object(s["a"])(regeneratorRuntime.mark((function t(e){var a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:a=this,a.memberObj=e,a.memberVisible=!0;case 3:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}(),refreshData:function(t){var e=this;if(e.memberVisible=!1,e.memberObj={},"close"==t)return!1;e.currentPage=1,e.getTableList()},handleSelectionChange:function(t){this.multipleSelection=t},handleSizeChange:function(t){var e=this;e.currentPage=1,e.pageSize=t,e.getTableList()},handleCurrentChange:function(t){var e=this;e.currentPage=t,e.getTableList()},getTableList:function(){var t=this;if(t.loading=!0,!t.departObj.departmentId)return t.loading=!1,!1;var e={departmentId:t.departObj.departmentId,activeFlag:t.activeFlag,search:t.searchInput||"",pageNum:t.currentPage,pageSize:t.pageSize};K(e).then((function(e){t.loading=!1,t.tableData=e.result.result||e.result.list||[],t.total=e.result.totalCount||e.result.total})).catch((function(e){t.loading=!1}))}},watch:{departObj:function(t,e){var a=this;Object.keys(t)&&(a.currentPage=1,a.getTableList())}}},X=Q,Z=(a("4ab6"),Object(u["a"])(X,f,m,!1,null,"282f16b9",null)),tt=Z.exports,et=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("el-dialog",{staticClass:"hide-header-dialog",attrs:{center:"",title:"",visible:t.dialogVisible,width:"600px","before-close":t.handleClose},on:{"update:visible":function(e){t.dialogVisible=e}}},[a("div",{staticClass:"m-b-20 text-center"},[a("div",{staticClass:"el-progress-bar",staticStyle:{width:"350px",margin:"0 auto"}},[a("div",{staticClass:"el-progress-bar__outer",staticStyle:{height:"8px"}},[a("div",{staticClass:"el-progress-bar__inner",staticStyle:{width:"100px"}})])]),a("div",{staticClass:"font-18 color-303133 m-t-25"},[t._v(t._s(1==t.syncData.syncStatus?"分组":2==t.syncData.syncStatus||3==t.syncData.syncStatus?"门店及成员":"")+"同步中…")]),a("div",{staticClass:"font-14 color-606266 m-t-10 line-h-20"},[t._v("通讯录同步需要一点时间,请耐心等待;")])])])},at=[],nt={name:"SyncDialog",props:{syncData:{type:Object,default:function(){return{syncStatus:"0"}}}},data:function(){return{dialogVisible:!0}},methods:{handleClose:function(t){var e=this;e.dialogVisible=!0}}},rt=nt,st=(a("5f7b"),Object(u["a"])(rt,et,at,!1,null,"49c6e388",null)),ot=st.exports,it=b["a"].getSyncCheck,lt=b["a"].refreshWx,ct=b["a"].getCompanyDepartList,ut={name:"ContactsPage",components:{contactTree:p,newDepartMember:tt,syncDialog:ot},data:function(){return{bgHeight:window.screen.availHeight-288+"px",navpath:[{name:"首页",path:"/index"},{name:"通讯录",path:""}],wxEnterpriseId:localStorage.getItem("haoBanUser")?JSON.parse(localStorage.getItem("haoBanUser")).wxEnterpriseId:"",loading:!0,refreshTag:!1,searchInput:"",searchData:[],wxData:[],wxDataCopy:[],selectData:{},departObj:{},syncStatusData:{syncStatus:0},syncTime:null}},beforeMount:function(){var t=Object(s["a"])(regeneratorRuntime.mark((function t(){var e;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e=this,t.next=3,e.getTableList();case 3:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),mounted:function(){var t=this;t.getSyncStatus(),t.syncTime=null,t.syncTime=window.setInterval((function(){t.getSyncStatus()}),3e3),t.$once("hook:beforeDestroy",(function(){clearInterval(t.syncTime)})),document.documentElement.style.backgroundColor="#f0f2f5"},beforeDestroy:function(){var t=this;window.clearInterval(t.syncTime),t.syncTime=null},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},methods:{getSyncStatus:function(){var t=this;it({}).then((function(e){t.syncStatusData=e.result||{},(!e.result||1!==e.result.syncStatus&&2!==e.result.syncStatus&&3!==e.result.syncStatus)&&(window.clearInterval(t.syncTime),t.syncTime=null),4==e.result.syncStatus&&t.getTableList()})).catch((function(t){}))},selectSearch:function(t){var e=this;e.departObj=t},toRefreshMember:Object(h["a"])((function(){var t=this;t.refreshTag=!0,lt({}).then((function(e){t.refreshTag=!1,t.getSyncStatus(),t.syncTime=null,t.syncTime=window.setInterval((function(){t.getSyncStatus()}),3e3),t.$once("hook:beforeDestroy",(function(){clearInterval(t.syncTime)}))})).catch((function(e){t.refreshTag=!1}))}),500),resetCheckData:function(t){var e=this;e.departObj=t},setParent:function(){var t=Object(s["a"])(regeneratorRuntime.mark((function t(e,a){var n,r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:n=this,r=0;case 2:if(!(r<a.length)){t.next=11;break}if(e.parentDepartmentId!=a[r].departmentId){t.next=8;break}if(a[r].expand=!0,0==a[r].parentDepartmentId){t.next=8;break}return t.next=8,n.setParent(a[r],a);case 8:r++,t.next=2;break;case 11:case"end":return t.stop()}}),t,this)})));function e(e,a){return t.apply(this,arguments)}return e}(),changeDepart:function(){var t=Object(s["a"])(regeneratorRuntime.mark((function t(e){var a,n,r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:a=this,a.departObj=e,a.searchInput="",a.departObj.expand=!0,n=JSON.parse(JSON.stringify(a.wxDataCopy)),r=0;case 6:if(!(r<n.length)){t.next=15;break}if(a.departObj.parentDepartmentId!=n[r].departmentId){t.next=12;break}if(n[r].expand=!0,0==n[r].parentDepartmentId){t.next=12;break}return t.next=12,a.setParent(n[r],n);case 12:r++,t.next=6;break;case 15:return t.next=17,a.treeData(JSON.parse(JSON.stringify(n)));case 17:a.wxData=t.sent,a.wxData[0].expand=!0;case 19:case"end":return t.stop()}}),t,this)})));function e(e){return t.apply(this,arguments)}return e}(),resetData:function(t){var e=this;e.selectData.departmentName=t,e.departObj.departmentName=t},toManage:function(){var t=this;t.$router.push("/authMerchant")},getSelectData:function(t){var e=this;e.selectData=t,e.departObj=t},getSearchSelectData:function(t){var e=this;t.loading=!1,e.departObj=t},changeRoute:function(t){this.$router.push(t)},toInput:Object(h["a"])((function(t,e){var a=this;if(!a.searchInput)return!1;a.searchData=[],a.getSearchData()}),500),clearInput:function(){var t=this;t.searchData=[]},getSearchData:function(){var t=this;t.loading=!0;var e=[];e=t.wxDataCopy.filter((function(e){return-1!=e.departmentName.indexOf(t.searchInput)})),t.searchData=e||[],t.loading=!1},treeData:function(t){var e=t.filter((function(e){var a=t.filter((function(t){return e.departmentId==t.parentDepartmentId}));return a.length>0?(e.hasSonNode=!0,e.children=a):e.hasSonNode=!1,0==e.parentDepartmentId}));return e},getTableList:function(){var t=this;t.loading=!0;var e={search:t.searchInput||""};ct(e).then(function(){var e=Object(s["a"])(regeneratorRuntime.mark((function e(a){var n,r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(n=[],r={},!a.result||!a.result.length){e.next=9;break}return a.result.forEach((function(t){t.loading=!1,t.expand=!1,t.children=[],t.label=t.departmentName,0==t.parentDepartmentId&&(r=t)})),e.next=6,t.treeData(JSON.parse(JSON.stringify(a.result)));case 6:n=e.sent,n[0].expand=!0,t.wxDataCopy=JSON.parse(JSON.stringify(a.result))||[];case 9:t.loading=!1,t.departObj=r,t.wxData=n||[];case 12:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){t.loading=!1}))}},watch:{$route:{handler:function(t,e){var a=this;window.clearInterval(a.syncTime),a.syncTime=null},deep:!0}}},dt=ut,pt=(a("c0d9"),Object(u["a"])(dt,n,r,!1,null,"6f5e4086",null));e["default"]=pt.exports},c0d9:function(t,e,a){"use strict";var n=a("87d3"),r=a.n(n);r.a},c3fd:function(t,e,a){},de45:function(t,e,a){},e230:function(t,e,a){"use strict";var n=a("71f6"),r={getSyncCheck:"/sync/sync-check",refreshWx:"/sync/sync-contact",getDepartmentList:"/department-list-level",getCompanyDepartList:"/contact/get-department-list",getStaffList:"/contact/get-staff-list",getStaffDetail:"/contact/staff-detail",getStaffRelation:"/bind/staff-clerk-relation",delStaffRelation:{url:"/bind/staff-unbind",method:"post",useFormData:!0,useIntercept:!1},addStaffRelation:{url:"/bind/staff-bind",method:"post",useFormData:!0,useIntercept:!1},getClerkRelation:"/bind/search-clerk-list",getWxEnterprise:"/auth-enterprise-list",getBindLog:"/bind/bind-log-list",getRefreshLog:"/sync/sync-task",getSyncFailDetail:"/sync-task-detail",getNationCode:"/get-nation-code-list",getGicGroup:"/gic-department-list",getGicStore:"/get-store-list"};r=Object(n["a"])(r,"/hb-manage-web"),e["a"]=r},f51e:function(t,e,a){}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-0903084f"],{"4a78":function(t,a,n){"use strict";n.r(a);var e=function(){var t=this,a=t.$createElement,n=t._self._c||a;return n("div",{staticClass:"app-list"},[n("h3",{staticClass:"page-title"},[t._v("好办应用")]),n("div",[t._l(t.appList,(function(a){return n("div",{key:a.applicationId,staticClass:"app-item"},[n("el-dropdown",{staticClass:"app-item-menu"},[n("i",{staticClass:"iconfont icongengduo1 menu-icon"}),n("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[n("el-dropdown-item",{nativeOn:{click:function(n){return t.toAppBack(a)}}},[t._v("进入")]),n("el-dropdown-item",{nativeOn:{click:function(n){return t.toAppDetail(a)}}},[t._v("应用详情")])],1)],1),n("div",{class:["app-logo",{"no-logo":!a.applicationLogo}]},[a.applicationLogo?n("img",{attrs:{src:a.applicationLogo,alt:""}}):t._e()]),n("div",{staticClass:"app-info"},[n("p",{staticClass:"app-name"},[t._v(t._s(a.applicationName))]),n("el-button",{staticClass:"to-buy",attrs:{type:"text"},on:{click:t.toBuy}},[t._v("去订购 "),n("i",{staticClass:"iconfont iconjiantouxiangyou"})])],1),n("span",{staticClass:"out-time-tip"},[t._v("已过期")])],1)})),n("div",{staticClass:"to-app-center",on:{click:t.toAppCenter}},[t._v("\n 前往服务市场 "),n("i",{staticClass:"iconfont iconjiantouxiangyou"})])],2)])},i=[],o=n("8e83"),c=n("5937"),s=n("5b4e"),p=o["a"].getAppList,u=c["a"].getRoleMenu,r={name:"AppList",data:function(){return{appList:[]}},created:function(){this.getAppList(),this.$emit("showTab","/app-list")},methods:{getAppList:function(){var t=this;p().then((function(a){t.appList=a.result||[]}))},toAppBack:function(t){var a=this,n={menuId:t.applicationId,appType:2};u(n).then((function(n){if(!n.result||!n.result.length)return s["a"].showmsg("该应用您无权限操作,请联系超级管理员!","warning"),!1;a.$router.push("/apps?applicationId=".concat(t.applicationId))})).catch((function(t){}))},toAppDetail:function(t){var a=t||{},n=a.applicationId;this.$router.push("/app-detail?appId=".concat(n))},toBuy:function(){alert("暂无跳转链接")},toAppCenter:function(){alert("暂无跳转链接")}}},l=r,d=(n("891b"),n("2877")),f=Object(d["a"])(l,e,i,!1,null,"a018f946",null);a["default"]=f.exports},5937:function(t,a,n){"use strict";var e=n("71f6"),i={getRoleMenu:"/list-staff-role-menu"};i=Object(e["a"])(i,"/hb-manage-web"),a["a"]=i},"5b4e":function(t,a,n){"use strict";var e=n("5c96");a["a"]={showmsg:function(t,a){Object(e["Message"])({duration:1e3,message:t||"接口异常",type:a})}}},"71f6":function(t,a,n){"use strict";n.d(a,"a",(function(){return i}));n("ac6a"),n("456d");var e=n("b775");function i(t,a){t=t||{};var n=Object.keys(t);return n.forEach((function(n){var i=t[n];"string"===typeof i&&(i={url:i}),i.url="".concat(a).concat(i.url),t[n]=function(t,a){return Object(e["a"])(i,t,a)}})),t}},8754:function(t,a,n){},"891b":function(t,a,n){"use strict";var e=n("8754"),i=n.n(e);i.a},"8e83":function(t,a,n){"use strict";var e=n("71f6"),i={getAppList:"/application-list",getAppDetail:"/application-detail",getMarketAccount:"/get-account-info",refreshMarketAccount:"/refesh-account-info",addMarketAccount:{url:"/bind-service-account",method:"post",useFormData:!0,useIntercept:!1},getAppAuthDetail:"/",postAuthRights:"/",postPhoneCode:{url:"/send-code",method:"post",useFormData:!0,useIntercept:!1},checkCode:{url:"/validate-code",method:"post",useFormData:!0,useIntercept:!1}};a["a"]=Object(e["a"])(i,"/hb-manage-web")}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-0903084f"],{"4a78":function(t,n,a){"use strict";a.r(n);var i=function(){var t=this,n=t.$createElement,a=t._self._c||n;return a("div",{staticClass:"app-list"},[a("h3",{staticClass:"page-title"},[t._v("好办应用")]),a("div",[t._l(t.appList,(function(n){return a("div",{key:n.applicationId,staticClass:"app-item"},[a("el-dropdown",{staticClass:"app-item-menu"},[a("i",{staticClass:"iconfont icongengduo1 menu-icon"}),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[a("el-dropdown-item",{nativeOn:{click:function(a){return t.toAppBack(n)}}},[t._v("进入")]),a("el-dropdown-item",{nativeOn:{click:function(a){return t.toAppDetail(n)}}},[t._v("应用详情")])],1)],1),a("div",{class:["app-logo",{"no-logo":!n.applicationLogo}]},[n.applicationLogo?a("img",{attrs:{src:n.applicationLogo,alt:""}}):t._e()]),a("div",{staticClass:"app-info"},[a("p",{staticClass:"app-name"},[t._v(t._s(n.applicationName))]),a("el-button",{staticClass:"to-buy",attrs:{type:"text"},on:{click:t.toBuy}},[t._v("去订购 "),a("i",{staticClass:"iconfont iconjiantouxiangyou"})])],1),a("span",{staticClass:"out-time-tip"},[t._v("已过期")])],1)})),a("div",{staticClass:"to-app-center",on:{click:t.toAppCenter}},[t._v("\n 前往服务市场 "),a("i",{staticClass:"iconfont iconjiantouxiangyou"})])],2)])},o=[],e=a("8e83"),c=a("5937"),s=a("5b4e"),p=e["a"].getAppList,u=c["a"].getRoleMenu,r={name:"AppList",data:function(){return{appList:[]}},created:function(){this.getAppList(),this.$emit("showTab","/app-list")},methods:{getAppList:function(){var t=this;p().then((function(n){t.appList=n.result||[]}))},toAppBack:function(t){var n=this,a={menuId:t.applicationId,appType:2};u(a).then((function(a){if(!a.result||!a.result.length)return s["a"].showmsg("该应用您无权限操作,请联系超级管理员!","warning"),!1;n.$router.push("/apps?applicationId=".concat(t.applicationId))})).catch((function(t){}))},toAppDetail:function(t){var n=t||{},a=n.applicationId;this.$router.push("/app-detail?appId=".concat(a))},toBuy:function(){alert("暂无跳转链接")},toAppCenter:function(){alert("暂无跳转链接")}}},l=r,f=(a("891b"),a("2877")),d=Object(f["a"])(l,i,o,!1,null,"a018f946",null);n["default"]=d.exports},5937:function(t,n,a){"use strict";var i=a("71f6"),o={getRoleMenu:"/list-staff-role-menu"};o=Object(i["a"])(o,"/hb-manage-web"),n["a"]=o},"5b4e":function(t,n,a){"use strict";var i=a("5c96");n["a"]={showmsg:function(t,n){Object(i["Message"])({duration:1e3,message:t||"接口异常",type:n})}}},"71f6":function(t,n,a){"use strict";a.d(n,"a",(function(){return o}));a("ac6a"),a("456d");var i=a("b775");function o(t,n){t=t||{};var a=Object.keys(t);return a.forEach((function(a){var o=t[a];"string"===typeof o&&(o={url:o}),o.url="".concat(n).concat(o.url),t[a]=function(t,n){return Object(i["a"])(o,t,n)}})),t}},8754:function(t,n,a){},"891b":function(t,n,a){"use strict";var i=a("8754"),o=a.n(i);o.a},"8e83":function(t,n,a){"use strict";var i=a("71f6"),o={getAppList:"/application-list",getAppDetail:"/application-detail"};n["a"]=Object(i["a"])(o,"/hb-manage-web")}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-1d20d659"],{"18e1":function(t,e,a){},"1a52":function(t,e,a){"use strict";var o=a("18e1"),n=a.n(o);n.a},5136:function(t,e,a){"use strict";var o=a("de8c"),n=a.n(o);n.a},"53b1":function(t,e,a){"use strict";a.r(e);var o=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"app-market-body"},[a("div",{staticClass:"app-market-account"},[a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"绑定服务市场账号后可购买应用。购买信息在服务市场可查看。",placement:"top-start"}},[a("span",{staticClass:"font-16 color-303133 font-w-600 common-bottom-border"},[t._v("服务市场账号")])]),a("el-button",{staticClass:"m-l-20",attrs:{type:"primary"},on:{click:t.addAcount}},[t._v("添加")]),a("el-button",{staticClass:"m-l-20",attrs:{type:"text",loading:t.loadRefesh},on:{click:t.refreshData}},[t._v("同步刷新 ")]),a("span",{staticClass:"font-12 color-909399 p-l-15"},[t._v("更新时间:"+t._s(t._f("formatTimeStamp")(t.marketAccount.updateTime)))])],1),a("div",{staticClass:"app-market-list"},[a("el-form",{ref:"form",attrs:{model:t.form,"label-width":"80px"}},[a("el-form-item",{attrs:{label:"账号"}},[t._v("\n "+t._s(t.marketAccount.id||"--")+"\n ")]),a("el-form-item",{attrs:{label:"绑定时间"}},[t._v("\n "+t._s(t._f("formatTimeStamp")(t.marketAccount.bindDate))+"\n ")]),a("el-form-item",{attrs:{label:"绑定人"}},[t._v("\n "+t._s(t.marketAccount.bindName||"")+"\n ")])],1)],1),t.showDialog?a("add-market-dialog",{on:{closeMarket:t.closeMarket}}):t._e()],1)},n=[],r=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("el-dialog",{attrs:{title:"绑定服务市场账号",visible:t.dialogVisible,width:"600px","before-close":t.handleClose},on:{"update:visible":function(e){t.dialogVisible=e}}},[a("div",{},[a("el-form",{ref:"ruleForm",attrs:{model:t.marketForm,"label-width":"80px"}},[a("el-form-item",{attrs:{label:"手机号"}},[a("country-mobile",{attrs:{"nation-code":t.marketForm.nationCode,"input-width":500,"limit-class":"limit-color",holder:"请输入"},on:{"update:nationCode":function(e){return t.$set(t.marketForm,"nationCode",e)},"update:nation-code":function(e){return t.$set(t.marketForm,"nationCode",e)}},model:{value:t.marketForm.phoneNumber,callback:function(e){t.$set(t.marketForm,"phoneNumber",e)},expression:"marketForm.phoneNumber"}})],1),a("el-form-item",{attrs:{label:"验证码"}},[a("el-input",{attrs:{placeholder:"请输入验证码"},model:{value:t.marketForm.code,callback:function(e){t.$set(t.marketForm,"code",e)},expression:"marketForm.code"}}),a("el-button",{staticClass:"m-l-35",attrs:{disabled:t.disableBtn,type:"text"},on:{click:function(e){return t.sendCode()}}},[t._v(t._s(t.disableBtn&&60==t.countNum||!t.disableBtn&&t.countNum?"获取验证码":t.countNum+"s"))])],1)],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:t.handleClose}},[t._v("取消")]),a("el-button",{attrs:{type:"primary",loading:t.loadBtn},on:{click:function(e){return t.submitForm("ruleForm")}}},[t._v("确认")])],1)])},s=[],i=a("d157"),c=a("8e83"),l=a("a689"),u=a.n(l),m=a("5b4e"),d=c["a"].addMarketAccount,f=c["a"].postPhoneCode,h=c["a"].checkCode,p={name:"AddMarketDialog",data:function(){return{dialogVisible:!0,loadBtn:!1,marketForm:{nationCode:"86",phoneNumber:"",code:""},disableBtn:!0,countNum:60}},methods:{countDown:function(){var t=this,e=setInterval((function(){if(0===t.countNum)return clearInterval(e),t.countNum=60,t.disableBtn=!1,!1;t.countNum--}),1e3)},sendCode:Object(i["a"])((function(){var t=this,e=t.marketForm,a=e.phoneNumber,o=e.nationCode;if(""==a)return m["a"].showmsg("手机号不能为空","warning"),!1;var n=new u.a("+"+o+a);if(!n.isValid()||!n.isMobile())return m["a"].showmsg("手机号格式不正确","warning"),!1;var r={phoneNumber:a,nationCode:o,type:1};f(r).then((function(e){if("0000"==e.code){t.disableBtn=!0,t.countDown();var n=String(a),r=n.substr(0,3)+"****"+n.substr(7,n.length-1);return m["a"].showmsg("已发送验证码到".concat(o||"86","-").concat(r),"success"),!1}m["a"].showmsg(e.message||"未知错误","warning")})).catch((function(t){}))}),300),checkCode:function(){var t=this,e=t.marketForm,a=e.phoneNumber,o=e.nationCode,n=e.code,r={phoneNumber:a,nationCode:o,type:1,code:n};return new Promise((function(e,a){h(r).then((function(t){if("0000"==t.code)return e(!0),!1;m["a"].showmsg(t.message||"未知错误","warning"),e(!1)})).catch((function(a){e(!1),t.$message.error({duration:1e3,message:a.message})}))}))},submitForm:Object(i["a"])((function(t){var e=this;e.$refs[t].validate((function(t){t&&e.postSave()}))}),300),postSave:function(){var t=this;t.loadBtn=!0;var e={};d(e).then((function(e){t.loadBtn=!1,"0000"==e.code?(m["a"].showmsg("操作成功","success"),t.$refs["ruleForm"].resetFields(),t.$emit("closeMarket",!0)):(m["a"].showmsg(e.message||"未知错误","warning"),t.$emit("closeMarket",!0))})).catch((function(e){t.loadBtn=!1}))},handleClose:function(){var t=this;t.$emit("closeMarket")}},watch:{marketForm:function(t){var e=this;t.phoneNumber&&(e.disableBtn=!1)}}},b=p,k=(a("5136"),a("2877")),g=Object(k["a"])(b,r,s,!1,null,"036c3cd4",null),v=g.exports,w=c["a"].getMarketAccount,C=c["a"].refreshMarketAccount,F={name:"",components:{AddMarketDialog:v},data:function(){return{wxEnterpriseId:localStorage.getItem("haoBanUser")?JSON.parse(localStorage.getItem("haoBanUser")).wxEnterpriseId:"",marketAccount:{id:"",bindDate:"",bindName:"",updateTime:""},loadRefesh:!1,showDialog:!1}},mounted:function(){var t=this;t.getMarket()},methods:{refreshData:function(){var t=this;t.refreshMarketData()},refreshMarketData:function(){var t=this;t.loadRefesh=!0;var e={wxEnterpriseId:t.wxEnterpriseId};C(e).then((function(e){t.loadRefesh=!1,m["a"].showmsg("刷新成功","success"),t.getMarket()})).catch((function(e){t.loadRefesh=!1}))},addAcount:function(){var t=this;t.showDialog=!0},closeMarket:function(t){var e=this;e.showDialog=!1,t&&e.getMarket()},getMarket:function(){var t=this,e={};w(e).then((function(e){e.result||(t.marketAccount=e.result||{})})).catch((function(t){}))}},watch:{}},_=F,A=(a("1a52"),Object(k["a"])(_,o,n,!1,null,"2de688f2",null));e["default"]=A.exports},"8e83":function(t,e,a){"use strict";var o=a("71f6"),n={getAppList:"/application-list",getAppDetail:"/application-detail",getMarketAccount:"/get-account-info",refreshMarketAccount:"/refesh-account-info",addMarketAccount:{url:"/bind-service-account",method:"post",useFormData:!0,useIntercept:!1},getAppAuthDetail:"/",postAuthRights:"/",postPhoneCode:{url:"/send-code",method:"post",useFormData:!0,useIntercept:!1},checkCode:{url:"/validate-code",method:"post",useFormData:!0,useIntercept:!1}};e["a"]=Object(o["a"])(n,"/hb-manage-web")},de8c:function(t,e,a){}}]);
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-40e8a9a0"],{"71f6":function(t,a,e){"use strict";e.d(a,"a",(function(){return n}));e("ac6a"),e("456d");var i=e("b775");function n(t,a){t=t||{};var e=Object.keys(t);return e.forEach((function(e){var n=t[e];"string"===typeof n&&(n={url:n}),n.url="".concat(a).concat(n.url),t[e]=function(t,a){return Object(i["a"])(n,t,a)}})),t}},"8e83":function(t,a,e){"use strict";var i=e("71f6"),n={getAppList:"/application-list",getAppDetail:"/application-detail",getMarketAccount:"/get-account-info",refreshMarketAccount:"/refesh-account-info",addMarketAccount:{url:"/bind-service-account",method:"post",useFormData:!0,useIntercept:!1},getAppAuthDetail:"/",postAuthRights:"/",postPhoneCode:{url:"/send-code",method:"post",useFormData:!0,useIntercept:!1},checkCode:{url:"/validate-code",method:"post",useFormData:!0,useIntercept:!1}};a["a"]=Object(i["a"])(n,"/hb-manage-web")},"9bc6":function(t,a,e){"use strict";e.r(a);var i=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"app-detail"},[e("el-form",{attrs:{"label-width":"90px"}},[e("h3",{staticClass:"model-title"},[t._v("应用信息")]),e("div",{staticClass:"app-info"},[e("div",{class:["app-logo",{"no-logo":!t.appData.applicationLogo}]},[t.appData.applicationLogo?e("img",{attrs:{src:t.appData.applicationLogo,alt:""}}):t._e()]),e("div",[e("p",{staticClass:"app-name"},[t._v(t._s(t.appData.applicationName||"--"))]),e("p",{staticClass:"app-desc"},[t._v(t._s(t.appData.applicationDesc))])])]),e("el-form-item",{staticStyle:{"margin-bottom":"10px"},attrs:{label:"版本"}},[t._v(t._s(t.appData.applicationVersion||"--"))]),e("el-form-item",{attrs:{label:"到期时间"}},[t._v("\n "+t._s(t.appData.overTime|t.timeStampToYmd||"--")+"\n "),e("el-tag",{staticStyle:{margin:"0 20px 0 10px"},attrs:{type:"danger"}},[t._v("已到期")]),e("el-button",{attrs:{type:"text"}},[t._v("去续费 "),e("i",{staticClass:"iconfont iconjiantouxiangyou"})])],1),e("h3",{staticClass:"model-title",staticStyle:{"margin-top":"40px"}},[t._v("应用设置")]),e("el-form-item",{attrs:{label:"可见范围"}},[e("h4",{staticClass:"sub-title"},[t._v("管理成员")]),e("div",{staticClass:"admin-list"},[t._l(t.appData.adminRange,(function(a){return e("el-tag",{key:a.roleId,attrs:{type:"info"}},[t._v(t._s(a.roleName))])})),0==t.appData.adminRange.length?e("span",{staticClass:"no-admin"},[t._v("暂无成员")]):t._e()],2),e("h4",{staticClass:"sub-title"},[t._v("门店成员")]),e("div",{staticClass:"admin-list"},[t._l(t.appData.storeAdminRange,(function(a){return e("el-tag",{key:a.roleId,attrs:{type:"info"}},[t._v(t._s(a.roleName))])})),0==t.appData.storeAdminRange.length?e("span",{staticClass:"no-admin"},[t._v("暂无成员")]):t._e()],2)])],1)],1)},n=[],p=e("8e83"),o=p["a"].getAppDetail,s={name:"AppDetail",data:function(){return{appData:{applicationName:"",applicationDesc:"",applicationVersion:"",overTime:"",adminRange:[],storeAdminRange:[],applicationLogo:""}}},created:function(){var t=this.$route.query.appId;t||this.$router.go(-1),this.$emit("showTab","/app-list"),this.getAppDetail(t)},methods:{getAppDetail:function(t){var a=this;o({applicationId:t}).then((function(t){var e=t.result||{},i=e.applicationName,n=e.applicationDesc,p=e.applicationVersion,o=e.overTime,s=e.adminRange,c=e.storeAdminRange,l=e.applicationLogo;Object.assign(a.appData,{applicationName:i,applicationDesc:n,applicationVersion:p,overTime:o,applicationLogo:l}),"string"==typeof s&&s.length>0&&(a.appData.adminRange=JSON.parse(s)),"string"==typeof c&&c.length>0&&(a.appData.storeAdminRange=JSON.parse(c))}))}}},c=s,l=(e("d265"),e("2877")),r=Object(l["a"])(c,i,n,!1,null,"c030ec20",null);a["default"]=r.exports},ab67:function(t,a,e){},d265:function(t,a,e){"use strict";var i=e("ab67"),n=e.n(i);n.a}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-40e8a9a0"],{"71f6":function(a,t,i){"use strict";i.d(t,"a",(function(){return n}));i("ac6a"),i("456d");var e=i("b775");function n(a,t){a=a||{};var i=Object.keys(a);return i.forEach((function(i){var n=a[i];"string"===typeof n&&(n={url:n}),n.url="".concat(t).concat(n.url),a[i]=function(a,t){return Object(e["a"])(n,a,t)}})),a}},"8e83":function(a,t,i){"use strict";var e=i("71f6"),n={getAppList:"/application-list",getAppDetail:"/application-detail"};t["a"]=Object(e["a"])(n,"/hb-manage-web")},"9bc6":function(a,t,i){"use strict";i.r(t);var e=function(){var a=this,t=a.$createElement,i=a._self._c||t;return i("div",{staticClass:"app-detail"},[i("el-form",{attrs:{"label-width":"90px"}},[i("h3",{staticClass:"model-title"},[a._v("应用信息")]),i("div",{staticClass:"app-info"},[i("div",{class:["app-logo",{"no-logo":!a.appData.applicationLogo}]},[a.appData.applicationLogo?i("img",{attrs:{src:a.appData.applicationLogo,alt:""}}):a._e()]),i("div",[i("p",{staticClass:"app-name"},[a._v(a._s(a.appData.applicationName||"--"))]),i("p",{staticClass:"app-desc"},[a._v(a._s(a.appData.applicationDesc))])])]),i("el-form-item",{staticStyle:{"margin-bottom":"10px"},attrs:{label:"版本"}},[a._v(a._s(a.appData.applicationVersion||"--"))]),i("el-form-item",{attrs:{label:"到期时间"}},[a._v("\n "+a._s(a.appData.overTime|a.timeStampToYmd||"--")+"\n "),i("el-tag",{staticStyle:{margin:"0 20px 0 10px"},attrs:{type:"danger"}},[a._v("已到期")]),i("el-button",{attrs:{type:"text"}},[a._v("去续费 "),i("i",{staticClass:"iconfont iconjiantouxiangyou"})])],1),i("h3",{staticClass:"model-title",staticStyle:{"margin-top":"40px"}},[a._v("应用设置")]),i("el-form-item",{attrs:{label:"可见范围"}},[i("h4",{staticClass:"sub-title"},[a._v("管理成员")]),i("div",{staticClass:"admin-list"},[a._l(a.appData.adminRange,(function(t){return i("el-tag",{key:t.roleId,attrs:{type:"info"}},[a._v(a._s(t.roleName))])})),0==a.appData.adminRange.length?i("span",{staticClass:"no-admin"},[a._v("暂无成员")]):a._e()],2),i("h4",{staticClass:"sub-title"},[a._v("门店成员")]),i("div",{staticClass:"admin-list"},[a._l(a.appData.storeAdminRange,(function(t){return i("el-tag",{key:t.roleId,attrs:{type:"info"}},[a._v(a._s(t.roleName))])})),0==a.appData.storeAdminRange.length?i("span",{staticClass:"no-admin"},[a._v("暂无成员")]):a._e()],2)])],1)],1)},n=[],p=i("8e83"),s=p["a"].getAppDetail,o={name:"AppDetail",data:function(){return{appData:{applicationName:"",applicationDesc:"",applicationVersion:"",overTime:"",adminRange:[],storeAdminRange:[],applicationLogo:""}}},created:function(){var a=this.$route.query.appId;a||this.$router.go(-1),this.$emit("showTab","/app-list"),this.getAppDetail(a)},methods:{getAppDetail:function(a){var t=this;s({applicationId:a}).then((function(a){var i=a.result||{},e=i.applicationName,n=i.applicationDesc,p=i.applicationVersion,s=i.overTime,o=i.adminRange,l=i.storeAdminRange,c=i.applicationLogo;Object.assign(t.appData,{applicationName:e,applicationDesc:n,applicationVersion:p,overTime:s,applicationLogo:c}),"string"==typeof o&&o.length>0&&(t.appData.adminRange=JSON.parse(o)),"string"==typeof l&&l.length>0&&(t.appData.storeAdminRange=JSON.parse(l))}))}}},l=o,c=(i("d265"),i("2877")),r=Object(c["a"])(l,e,n,!1,null,"c030ec20",null);t["default"]=r.exports},ab67:function(a,t,i){},d265:function(a,t,i){"use strict";var e=i("ab67"),n=i.n(e);n.a}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-46528954"],{"0ac0":function(t,e,a){},"220a":function(t,e,a){},2340:function(t,e,a){},"236e":function(t,e,a){},2581:function(t,e,a){},2802:function(t,e,a){"use strict";a("4917");e["a"]={getByteLen:function(t){for(var e=""==t||null==t?"":t,a=0,r=0;r<e.length;r++){var n=e.charAt(r);null!=n.match(/[^\x00-\xff]/gi)?a+=2:a+=1}return a},getZhLen:function(t){for(var e=""==t||null==t?"":t,a=0,r=0;r<e.length;r++){var n=e.charAt(r);null!=n.match(/[^\x00-\xff]/gi)?a+=1:a+=.5}return Math.ceil(a)},cutStr:function(t,e,a){for(var r=0,n=0;n<t.length;n++){var s=t.charAt(n);if(1==a&&(encodeURI(s).length>2?r+=1:r+=.5),2==a&&(r+=1),r>=e){var i=r==e?n+1:n;return t.substr(0,i)}}},getByteVal:function(t,e){for(var a=""==t||null==t?"":t,r="",n=0,s=0;s<a.length;s++){if(null!=a[s].match(/[^\x00-\xff]/gi)?n+=1:n+=.5,n>e)break;r+=a[s]}return r},getCharVal:function(t,e){for(var a=""==t||null==t?"":t,r="",n=0,s=0;s<a.length;s++){if(null!=a[s].match(/[^\x00-\xff]/gi)?n+=2:n+=1,n>e)break;r+=a[s]}return r},regPos:function(t){var e=/^\d+(\.\d+)?$/;return e.test(t)}}},"3d3b":function(t,e,a){},"5af5":function(t,e,a){"use strict";var r=a("2340"),n=a.n(r);n.a},"62a7":function(t,e,a){"use strict";a.r(e);var r=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"my-customer-wrap common-set-wrap"},[a("nav-crumb",{attrs:{navpath:t.navpath}}),a("div",{staticClass:"right-content"},[a("div",{staticClass:"right-box",staticStyle:{"min-height":"calc(100vh - 104px)"}},[a("div",{staticClass:"apps-content flex",staticStyle:{"min-height":"calc(100vh - 104px)"}},[a("div",{staticClass:"apps-content-right"},[a("div",{staticClass:"new-auth-body"},[2!=t.activeStep?a("div",[a("auth-step",{attrs:{"active-step":t.activeStep}})],1):t._e(),0==t.activeStep?a("div",{staticClass:"auth-tip-body"},[a("auth-tip",{staticClass:"m-t-30"}),a("el-form",{ref:"authForm",staticClass:"dialog-form m-t-20",attrs:{model:t.authForm,rules:t.rules,"label-width":"100px"}},[a("el-form-item",{attrs:{label:"选择商户",prop:"enterpriseId"}},[a("div",{staticClass:"el-input-group__prepend"},[t._v("GIC4.0")]),t.$route.query.enterpriseId?t._e():a("el-popover",{attrs:{placement:"bottom",title:"",trigger:"click","popper-class":"company-select-pop",width:"267"}},[a("div",{staticClass:"company-select"},[a("div",{staticClass:"el-scrollbar define-search-select"},[a("div",{staticClass:"el-select-dropdown__wrap el-scrollbar__wrap",staticStyle:{overflow:"auto"}},[a("ul",{staticClass:"el-scrollbar__view el-select-dropdown__list"},[t._l(t.searchArray,(function(e,r){return a("li",{key:r+"search",staticClass:"el-select-dropdown__item",on:{click:function(a){return t.getAdmin(e)}}},[a("div",{staticClass:"flex flex-space-between"},[a("div",{staticStyle:{"line-height":"26px"}},[a("span",{staticClass:"block text-ellipsis"},[t._v(t._s(e.enterpriseName||"--"))]),a("div",{staticClass:"text-ellipsis font-12 color-909399"},[t._v(t._s(e.companyName||"--"))])]),e.enterpriseId==t.authForm.enterpriseId?a("span",{staticClass:"font-12 color-2f54eb el-icon-check flex-align-center",staticStyle:{display:"flex"}}):t._e()])])})),t.searchArray.length?t._e():a("li",{staticClass:"el-select-dropdown__item text-center"},[t._v("暂无商户数据")])],2)])])]),a("div",{staticClass:"select-search-input cursor-pointer",attrs:{slot:"reference"},slot:"reference"},[a("div",[a("el-input",{staticClass:"w-267",attrs:{disabled:!!t.$route.query.enterpriseId,placeholder:"请搜索选择商户",maxlength:"50"},nativeOn:{keyup:function(e){return function(e){return t.querySearchAsync(e,t.searchSelect)}(e)}},model:{value:t.searchSelect,callback:function(e){t.searchSelect=e},expression:"searchSelect"}})],1)])]),t.$route.query.enterpriseId?a("div",{staticClass:"select-search-input"},[a("el-input",{staticClass:"w-267",attrs:{disabled:!!t.$route.query.enterpriseId,placeholder:"请搜索选择商户",maxlength:"50"},model:{value:t.authForm.enterpriseName,callback:function(e){t.$set(t.authForm,"enterpriseName",e)},expression:"authForm.enterpriseName"}})],1):t._e()],1),a("el-form-item",{attrs:{label:"门店绑定",prop:"bindRange"}},[a("div",{staticClass:"el-select store-item-content",on:{click:function(e){return t.showStore(1)}}},[t.authForm.bindStoreMode>0?a("div",{staticClass:"el-select__tags"},[a("span",{staticStyle:{display:"block"}},[t._l(t.authForm.bindRange,(function(e,r){return[a("span",{key:r+"bind",staticClass:"el-tag el-tag--info el-tag--small"},[a("span",{staticClass:"el-select__tags-text"},[t._v(t._s(e.storeInfoName||e.storeGroupName))]),a("i",{staticClass:"el-tag__close el-icon-close",on:{click:function(e){return e.stopPropagation(),t.delStore(r,t.authForm.bindRange)}}})])]}))],2)]):t._e(),0==t.authForm.bindStoreMode&&""!==t.authForm.bindStoreMode?a("span",{staticClass:"p-l-10 font-14 color-909399"},[t._v("已选全部")]):t._e()])]),a("el-form-item",{attrs:{label:"门店共享",prop:"shareRange"}},[a("div",{staticClass:"el-select store-item-content",on:{click:function(e){return t.showStore(2)}}},[t.authForm.shareStoreMode>0?a("div",{staticClass:"el-select__tags"},[a("span",{staticStyle:{display:"block"}},[t._l(t.authForm.shareRange,(function(e,r){return[a("span",{key:r+"bind",staticClass:"el-tag el-tag--info el-tag--small"},[a("span",{staticClass:"el-select__tags-text"},[t._v(t._s(e.storeInfoName||e.storeGroupName))]),a("i",{staticClass:"el-tag__close el-icon-close",on:{click:function(e){return e.stopPropagation(),t.delStore(r,t.authForm.shareRange)}}})])]}))],2)]):t._e(),0==t.authForm.shareStoreMode&&""!==t.authForm.shareStoreMode?a("span",{staticClass:"p-l-10 font-14 color-909399"},[t._v("已选全部")]):t._e()])]),a("el-form-item",[a("el-button",{on:{click:t.cancel}},[t._v("取消")]),a("el-button",{attrs:{disabled:!t.changeFlag||""===t.authForm.shareStoreMode&&""===t.authForm.bindStoreMode,type:"primary"},on:{click:function(e){return t.submitForm("authForm")}}},[t._v("下一步")])],1)],1)],1):t._e(),1==t.activeStep?a("div",{staticClass:"commit-success-body m-t-35"},[a("auth-commit",{attrs:{"admin-list":t.adminList,reason:t.authForm.auditReason},on:{changeStep:t.changeStep,returnStep:t.returnStep}})],1):t._e(),2==t.activeStep?a("div",{staticClass:"commit-success-body"},[a("auth-commit-success",{attrs:{"enterprise-id":t.authForm.enterpriseId}})],1):t._e()])])])])]),t.setVisible?a("store-auth-dialog",{attrs:{"enterprise-id":t.authForm.enterpriseId,"is-select-all":t.isSelectAll,"select-mode":t.selectMode,"range-data":t.rangeData,"bind-type":t.bindType},on:{closeSet:t.closeSet}}):t._e(),t.checkShow?a("check-name-dialog",{attrs:{"sync-data":t.syncData},on:{closeSet:t.closeCheckSet}}):t._e()],1)},n=[],s=(a("96cf"),a("1da1")),i=(a("ac6a"),a("29b6")),o=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("div",{class:["auth-step-body",0==t.active?"step-one":"step-two"]},[a("el-steps",{attrs:{active:t.active,"finish-status":"success"}},[a("el-step",{attrs:{title:"GIC商户授权",description:""}}),a("el-step",{attrs:{title:"审核员授权",description:""}})],1)],1)])},c=[],l={name:"AuthStep",components:{},props:{activeStep:{type:String,default:function(){return"0"}}},data:function(){return{active:"0"}},mounted:function(){var t=this;t.active=t.activeStep},watch:{activeStep:function(t){this.active=t}}},u=l,m=(a("de0b"),a("2877")),d=Object(m["a"])(u,o,c,!1,null,"c9703e40",null),h=d.exports,p=function(){var t=this,e=t.$createElement;t._self._c;return t._m(0)},f=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"auth-tip"},[a("div",{staticStyle:{width:"645px"}},[a("div",{staticClass:"el-alert el-alert--info flex flex-align-start",staticStyle:{width:"645px"},attrs:{role:"alert"}},[a("i",{staticClass:"el-alert__icon el-icon-info font-12 color-2f54eb"}),a("div",{staticClass:"el-alert__content"},[a("span",{staticClass:"el-alert__title color-606266 font-13"},[t._v("\n 商户授权须知:"),a("br"),t._v("\n 1. 商户授权可以是多个商户授权到1个企业下,但是需保证使用的服务号或小程序在同一开放平台"),a("br"),t._v("\n    下,否则绑定商户的客户获取的unionid会不一致,最终会无法识别企业微信客户与会员的绑定性;"),a("br"),t._v("\n 2. 商户绑定后,可选择部分门店绑定,如商户有100家门店,可授权其中50家;"),a("br"),t._v("\n 3. 绑定商户结束后,导购可通过企业微信好办小程序绑定导购账号后登录;"),a("br"),t._v("\n 4. 进行门店绑定后,请勿随意操作门店绑定范围,如果门店范围取消,会导致用户关联的导购账号"),a("br"),t._v("\n    解绑,"),a("span",{staticClass:"color-f5222d"},[t._v("如果24小时内未恢复范围,会永久解绑。")])])])])])])}],g={name:"AuthTip",data:function(){return{}}},v=g,b=(a("c8ff"),Object(m["a"])(v,p,f,!1,null,"6246f46e",null)),S=b.exports,y=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"auth-commit-success"},[t._m(0),a("div",{staticClass:"commit-success-text text-center font-14 color-303133 m-t-12"},[t._v("已提交管理员审核,请通知管理员及时审核")]),a("div",{staticClass:"commit-success-btn text-center m-t-28"},[a("el-button",{on:{click:function(e){return t.changeRoute("/authMerchant")}}},[t._v("返回授权列表")]),a("el-button",{on:{click:function(e){return t.changeRoute("/auditLog?enterpriseId="+t.enterpriseId)}}},[t._v("进入审核列表")])],1)])},_=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"commit-success-img text-center"},[a("span",{staticClass:"iconfont iconchenggong color-49c958 font-60"})])}],F={name:"AuthCommitSuccess",components:{},props:{enterpriseId:{type:String,default:""}},data:function(){return{}},methods:{changeRoute:function(t){this.$router.push(t)}}},C=F,N=(a("73ba"),Object(m["a"])(C,y,_,!1,null,"68854cb4",null)),R=N.exports,x=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"auth-commit-admin"},[a("common-alert-tip",{staticClass:"m-b-32",attrs:{width:"328px","tip-content":t.tipContent}}),a("el-form",{ref:"commitForm",staticClass:"dialog-form",attrs:{model:t.commitForm,rules:t.rules,"label-width":"100px"}},[a("el-form-item",{attrs:{label:"申请事项",prop:"commitName"}},[a("el-input",{staticClass:"w-198",attrs:{disabled:""},model:{value:t.commitForm.commitName,callback:function(e){t.$set(t.commitForm,"commitName",e)},expression:"commitForm.commitName"}})],1),a("el-form-item",{attrs:{label:"申请理由",prop:"auditReason"}},[a("limit-textarea",{attrs:{"input-width":298,"input-value":t.commitForm.auditReason,holder:"请输入申请理由","get-by-type":"word","max-length":50},on:{"update:inputValue":function(e){return t.$set(t.commitForm,"auditReason",e)},"update:input-value":function(e){return t.$set(t.commitForm,"auditReason",e)}}})],1),a("el-form-item",{attrs:{label:"审核人",prop:""}},[a("div",{staticClass:"flex flex-wrap audit-admin-body"},[t._l(t.commitForm.auditAdmin,(function(e,r){return[a("span",{key:r+"admin",staticClass:"audit-admin"},[t._v("\n "+t._s(t._f("formatWord")(e.clerkName))+"("+t._s(e.nationCode+"-"+e.phoneNumber)+")\n ")])]}))],2)]),a("el-form-item",[a("el-button",{on:{click:t.cancel}},[t._v("取消")]),a("el-button",{attrs:{type:"primary",loading:t.loadBtn},on:{click:function(e){return t.submitForm("commitForm")}}},[t._v("提交审核")])],1)],1)],1)},D=[],I=a("3081"),w=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"input-line-cell",style:{width:t.inputWidth+"px"}},[a("el-input",{style:{width:t.inputWidth+"px"},attrs:{placeholder:t.holder,type:"textarea",rows:3,disabled:t.disInput},on:{blur:function(e){return t.inputBlur()}},nativeOn:{keyup:function(e){return function(e){return t.toInput(e)}(e)}},model:{value:t.itemValue,callback:function(e){t.itemValue=e},expression:"itemValue"}}),a("span",{staticClass:"tip"},[a("span",{staticClass:"len_span"},[t._v(t._s(t.inputNum))]),t._v("/"+t._s(t.limitLength))])],1)},k=[],M=(a("c5f6"),a("2802")),$={name:"LimitTextarea",props:{inputValue:{type:String,default:""},maxLength:{type:Number,default:10},inputWidth:{type:Number,default:500},getByType:{type:String,default:"word"},holder:{type:String,default:"请输入"},disInput:{type:Boolean,default:!1}},data:function(){return{inputNum:0,limitLength:10,itemValue:""}},mounted:function(){var t=this;t.limitLength=t.maxLength,t.itemValue=t.inputValue||"","word"==t.getByType?t.inputNum=M["a"].getZhLen(t.inputValue):t.inputNum=M["a"].getByteLen(t.inputValue)},methods:{toInput:function(t){var e=this,a="";"word"==e.getByType?(a=M["a"].getByteVal(t.target.value,e.limitLength),e.itemValue=a,e.inputNum=M["a"].getZhLen(e.itemValue)):(a=M["a"].getCharVal(t.target.value,e.limitLength),e.itemValue=a,e.inputNum=M["a"].getByteLen(e.itemValue)),e.$emit("update:inputValue",e.itemValue)},inputBlur:function(){var t=this;t.$emit("update:inputValue",t.itemValue)}},watch:{maxLength:function(t,e){var a=this;a.limitLength=t},inputValue:function(t,e){var a=this;a.itemValue=t,"word"==a.getByType?a.inputNum=M["a"].getZhLen(a.itemValue):a.inputNum=M["a"].getByteLen(a.itemValue)}}},O=$,L=(a("8cfe"),Object(m["a"])(O,w,k,!1,null,"8106e482",null)),A=L.exports,V=a("d157"),J={name:"AuthCommit",components:{commonAlertTip:I["a"],limitTextarea:A},props:{reason:{type:String,default:""},adminList:{type:[Object,Array],default:function(){return[]}}},data:function(){return{tipContent:"提交商户绑定审核,经审核员同意后绑定成功",commitForm:{commitType:1,commitName:"商户授权",auditReason:this.reason||"",auditAdmin:[]},rules:{auditReason:[{required:!0,message:"请输入申请理由",trigger:"blur"}]},loadBtn:!1}},mounted:function(){var t=this;t.commitForm.auditAdmin=JSON.parse(JSON.stringify(t.adminList))},methods:{cancel:function(){var t=this;t.$emit("returnStep")},submitForm:Object(V["b"])((function(t){var e=this;e.loadBtn=!0,e.$refs[t].validate((function(t){if(!t)return e.loadBtn=!1,!1;e.toCommitPost()}))}),5e3),toCommitPost:function(){var t=this;t.$emit("changeStep",t.commitForm.auditReason),t.$nextTick((function(){t.loadBtn=!1}))},changeRoute:function(t){this.$router.push(t)}},watch:{adminList:function(t){var e=this;e.commitForm.auditAdmin=JSON.parse(JSON.stringify(t))}}},E=J,B=(a("9bff"),Object(m["a"])(E,x,D,!1,null,"1b25395e",null)),T=B.exports,j=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("el-dialog",{attrs:{width:"554px",title:1==t.bindType?"门店绑定":"门店共享",visible:t.setVisible,"append-to-body":"","before-close":t.handleClose},on:{"update:visible":function(e){t.setVisible=e}}},[a("div",{staticClass:"bind-store-body"},[a("div",{staticClass:"el-form-item el-form-item--large"},[a("label",{staticClass:"el-form-item__label",staticStyle:{width:"120px"},attrs:{for:"name"}},[t._v("\n 选择绑定门店\n ")]),a("div",{staticClass:"el-form-item__content",staticStyle:{"margin-left":"110px"}},[a("el-radio",{attrs:{disabled:1==t.isSelectAll&&1==t.bindType,label:"0"},on:{change:t.changeRange},model:{value:t.formData.sendRange,callback:function(e){t.$set(t.formData,"sendRange",e)},expression:"formData.sendRange"}},[t._v("所有门店")]),a("el-radio",{staticClass:"m-l-40 m-r-8",attrs:{label:"1"},on:{change:t.changeRange},model:{value:t.formData.sendRange,callback:function(e){t.$set(t.formData,"sendRange",e)},expression:"formData.sendRange"}},[t._v("选择分组")]),a("el-radio",{staticClass:"m-l-40 m-r-8",attrs:{label:"2"},on:{change:t.changeRange},model:{value:t.formData.sendRange,callback:function(e){t.$set(t.formData,"sendRange",e)},expression:"formData.sendRange"}},[t._v("选择门店")]),("1"!=t.formData.sendRange&&"2"!=t.formData.sendRange||t.formData.selectList.length)&&"null"!=String(t.formData.sendRange)&&""!==t.formData.sendRange?t._e():a("div",{staticClass:"el-form-item__error"},[t._v("请选择绑定门店")]),"1"==t.formData.sendRange?a("store-auth-group",{attrs:{"company-id":t.enterpriseId,"store-type":t.bindType,"select-group":t.selectGroupData},on:{checkGroupIds:t.checkGroupIds}}):t._e(),"2"==t.formData.sendRange?a("store-auth-store",{attrs:{"company-id":t.enterpriseId,"store-type":t.bindType,"select-store":t.selectStoreData},on:{checkStoreIds:t.checkStoreIds}}):t._e()],1)])]),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(e){return e.stopPropagation(),t.cancel(e)}}},[t._v("取消")]),a("el-button",{attrs:{type:"primary"},on:{click:function(e){return e.stopPropagation(),t.submitForm(e)}}},[t._v("确定")])],1)])},G=[],q=a("7ca9"),P=a("418e"),U={name:"StoreAuthDialog",components:{storeAuthGroup:q["a"],storeAuthStore:P["a"]},props:{isSelectAll:{type:[String,Number],default:"0"},enterpriseId:{type:String,default:""},bindType:{type:[String,Number],default:"1"},selectMode:{type:[String,Number],default:"0"},rangeData:{type:[Object,Array],default:function(){return[]}}},data:function(){return{setVisible:!0,formData:{sendRange:"0",selectList:[]},selectGroupData:[],selectStoreData:[]}},mounted:function(){var t=this;t.formData.sendRange=String(t.selectMode),t.selectGroupData=1==t.selectMode?JSON.parse(JSON.stringify(t.rangeData)):[],t.selectStoreData=2==t.selectMode?JSON.parse(JSON.stringify(t.rangeData)):[],t.formData.selectList=JSON.parse(JSON.stringify(t.rangeData))||[]},methods:{changeRange:function(t){var e=this;e.formData.sendRange=t,e.formData.selectList=[]},handleClose:function(t){var e=this;t(),e.$emit("closeSet","close"),e.selectGroupData=[],e.selectStoreData=[]},cancel:function(){var t=this;t.$emit("closeSet","close"),t.selectGroupData=[],t.selectStoreData=[]},checkGroupIds:function(t){var e=this;e.formData.selectList=JSON.parse(JSON.stringify(t))},checkStoreIds:function(t){var e=this;e.formData.selectList=JSON.parse(JSON.stringify(t))},submitForm:function(){var t=this;return"null"!=String(t.formData.sendRange)&&""!==t.formData.sendRange&&(!("1"==t.formData.sendRange&&!t.formData.selectList.length)&&(!("2"==t.formData.sendRange&&!t.formData.selectList.length)&&void t.$emit("closeSet",String(t.formData.sendRange),t.formData.selectList)))}},watch:{selectMode:function(t){var e=this;e.formData.sendRange=String(t)},rangeData:function(t){var e=this;e.selectGroupData=1==e.selectMode?JSON.parse(JSON.stringify(t)):[],e.selectStoreData=2==e.selectMode?JSON.parse(JSON.stringify(t)):[],e.formData.selectList=JSON.parse(JSON.stringify(t))||[]}}},W=U,Z=(a("f657"),Object(m["a"])(W,j,G,!1,null,"d61df484",null)),z=Z.exports,H=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("el-dialog",{staticClass:"check-name-dialog",attrs:{title:"提示",visible:t.dialogVisible,width:"416px","before-close":t.handleClose},on:{"update:visible":function(e){t.dialogVisible=e}}},[a("div",{staticClass:"m-b-20"},[a("div",{staticClass:"font-14 color-606266 m-b-10"},[t._v("首次授权商户需要校验GIC商户超级管理员姓名")]),a("el-form",{ref:"ruleForm",attrs:{model:t.ruleForm,rules:t.rules,"label-width":"110px"}},[a("el-form-item",{attrs:{label:"超级管理员",prop:"userName"}},[a("span",[t._v(t._s(t.firstName))]),a("el-input",{staticClass:"w-173 m-l-10",attrs:{maxlength:"50",placeholder:"输入姓名校验"},model:{value:t.ruleForm.userName,callback:function(e){t.$set(t.ruleForm,"userName",e)},expression:"ruleForm.userName"}})],1)],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(e){return e.stopPropagation(),t.cancel(e)}}},[t._v("取消")]),a("el-button",{attrs:{type:"primary",loading:t.loading},on:{click:function(e){return e.stopPropagation(),t.submitForm("ruleForm")}}},[t._v("确定")])],1)])},K=[],Q=a("21f4"),X=a("5b4e"),Y=Q["a"].getCheckName,tt=Q["a"].checkName,et={name:"CheckNameDialog",props:{syncData:{type:Object,default:function(){return{syncStatus:"0"}}}},data:function(){return{dialogVisible:!0,loading:!1,firstName:"",ruleForm:{userName:""},rules:{userName:[{required:!0,message:"请输入姓名",trigger:"blur"}]}}},mounted:function(){var t=this;t.getCheckNameData()},methods:{getCheckNameData:function(){var t=this,e={enterpriseId:t.syncData.enterpriseId};Y(e).then((function(e){t.firstName=e.result||""})).catch((function(t){}))},handleClose:function(){var t=this;t.ruleForm.userName="",t.$emit("closeSet","close")},cancel:function(){var t=this;t.ruleForm.userName="",t.$emit("closeSet","close")},submitForm:Object(V["a"])((function(t){var e=this;e.loading=!0,e.$refs[t].validate((function(t){if(!t)return e.loading=!1,!1;e.postCheck()}))}),300),postCheck:function(){var t=this,e={enterpriseId:t.syncData.enterpriseId,userName:t.firstName+t.ruleForm.userName};tt(e).then((function(e){t.loading=!1,"0000"==e.code?e.result?(X["a"].showmsg("校验成功","success"),t.ruleForm.userName="",t.$emit("closeSet","success")):X["a"].showmsg("校验失败","warning"):X["a"].showmsg(e.message||"接口异常","warning")})).catch((function(e){t.loading=!1}))}}},at=et,rt=(a("5af5"),Object(m["a"])(at,H,K,!1,null,"a960be2a",null)),nt=rt.exports,st=Q["a"].getAuthDetail,it=Q["a"].getEnterprise,ot=Q["a"].getEnterpriseDetail,ct=Q["a"].getGicAdmin,lt=Q["a"].postEnterpriseAuth,ut={name:"NewAuthMerchant",components:{navCrumb:i["a"],authStep:h,authTip:S,authCommitSuccess:R,authCommit:T,storeAuthDialog:z,checkNameDialog:nt},data:function(){return{navpath:[{name:"通讯录",path:"/contactsList"},{name:"授权商户",path:"/authMerchant"},{name:this.$route.query.enterpriseId?"编辑授权":"新建授权",path:""}],wxEnterpriseId:localStorage.getItem("haoBanUser")?JSON.parse(localStorage.getItem("haoBanUser")).wxEnterpriseId:"",auditorName:localStorage.getItem("haoBanUser")?JSON.parse(localStorage.getItem("haoBanUser")).staffName:"",activeStep:"0",brandOptions:[],searchSelect:"",searchArray:[],authForm:{storeRangeAuditId:"",enterpriseId:"",enterpriseName:"",bindRange:[],shareRange:[],shareStoreMode:"",bindStoreMode:"",auditReason:""},rules:{enterpriseId:[{required:!0,message:"请选择商户",trigger:"change"}]},checkShow:!1,syncData:{},isSelectAll:0,changeFlag:!1,setVisible:!1,selectMode:"0",rangeData:[],bindType:1,adminList:[]}},mounted:function(){var t=this;t.$route.query.enterpriseId&&t.getData(),document.documentElement.style.backgroundColor="#f0f2f5"},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},methods:{closeCheckSet:function(t){var e=this;if(e.checkShow=!1,"close"==t)return!1;e.authForm.enterpriseId=e.syncData.enterpriseId,e.authForm.enterpriseName=e.syncData.enterpriseName,e.$refs["authForm"].validate((function(t){return!!t&&void 0}))},closeSet:function(t,e){var a=this;if(a.setVisible=!1,"close"==t)return!1;a.selectMode=String(t),1==a.bindType?(a.authForm.bindStoreMode=String(t),a.authForm.bindRange=JSON.parse(JSON.stringify(e))):(a.authForm.shareStoreMode=String(t),a.authForm.shareRange=JSON.parse(JSON.stringify(e))),a.changeFlag=!0},showStore:function(t){var e=this;if(!e.authForm.enterpriseId)return!1;e.selectMode=1==t?e.authForm.bindStoreMode:e.authForm.shareStoreMode,e.rangeData=1==t?e.authForm.bindRange:e.authForm.shareRange,e.bindType=t,e.setVisible=!0,e.getEnterpriseData()},getSearchList:function(t){var e={enterpriseName:t};return""==t?[]:new Promise((function(t,a){it(e).then((function(e){"0000"==e.code?(e.result&&e.result.forEach((function(t){t.value=t.enterpriseName})),t(e.result)):t([])})).catch((function(e){t([])}))}))},querySearchAsync:function(){var t=Object(s["a"])(regeneratorRuntime.mark((function t(){var e,a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(e=this,""!=String(e.searchSelect).trim()){t.next=10;break}return e.authForm.enterpriseId="",e.searchArray=[],e.authForm.bindRange=[],e.authForm.shareRange=[],e.authForm.shareStoreMode="",e.authForm.bindStoreMode="",e.adminList=[],t.abrupt("return",!1);case 10:return t.next=12,e.getSearchList(e.searchSelect);case 12:a=t.sent,e.searchArray=a;case 14:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),returnStep:function(){var t=this;t.activeStep=0},cancel:function(){var t=this;t.$router.push("/authMerchant")},submitForm:function(t){var e=this;e.$refs[t].validate((function(t){if(!t)return!1;e.activeStep=1}))},delStore:function(t,e){var a=this;e.splice(t,1),a.changeFlag=!0,a.authForm.shareStoreMode=!a.authForm.shareRange.length&&a.authForm.shareStoreMode>0?"":String(a.authForm.shareStoreMode),a.authForm.bindStoreMode=!a.authForm.bindRange.length&&a.authForm.bindStoreMode>0?"":String(a.authForm.bindStoreMode)},getAdmin:function(t){var e=this;if(e.authForm.enterpriseId==t.enterpriseId)return!1;e.syncData=t,e.checkShow=!0,e.authForm.enterpriseId="",e.authForm.enterpriseName="",e.authForm.bindRange=[],e.authForm.shareRange=[],e.authForm.shareStoreMode="",e.authForm.bindStoreMode="",e.adminList=[],e.getAdminList(t.enterpriseId)},getAdminList:function(t){var e=this;ct({enterpriseId:t}).then((function(t){t.result&&t.result.length&&(e.adminList=t.result||[])})).catch((function(t){}))},changeStep:function(t){var e=this;e.authForm.auditReason=Object(V["c"])(t);var a={enterpriseId:e.authForm.enterpriseId,wxEnterpriseId:e.wxEnterpriseId,shareRange:e.authForm.shareStoreMode>0?1==e.authForm.shareStoreMode?e.authForm.shareRange.map((function(t){return t.storeGroupId})).join(","):e.authForm.shareRange.map((function(t){return t.storeInfoId})).join(","):"",bindRange:e.authForm.bindStoreMode>0?1==e.authForm.bindStoreMode?e.authForm.bindRange.map((function(t){return t.storeGroupId})).join(","):e.authForm.bindRange.map((function(t){return t.storeInfoId})).join(","):"",auditReason:e.authForm.auditReason,shareStoreMode:!e.authForm.shareRange.length&&e.authForm.shareStoreMode>0?"":String(e.authForm.shareStoreMode),bindStoreMode:!e.authForm.bindRange.length&&e.authForm.bindStoreMode>0?"":String(e.authForm.bindStoreMode),auditorName:e.auditorName};lt(a).then((function(t){"0000"==t.code?e.activeStep=2:e.$message({message:t.message||"接口异常",type:"warning"})})).catch((function(t){}))},changeRoute:function(t){this.$router.push(t)},getEnterpriseData:function(){var t=this;ot({enterpriseId:t.$route.query.enterpriseId||t.authForm.enterpriseId}).then((function(e){t.isSelectAll=e.result.bindFlag})).catch((function(t){}))},getData:function(){var t=this,e={enterpriseId:t.$route.query.enterpriseId,wxEnterpriseId:t.wxEnterpriseId};st(e).then((function(e){"0000"==e.code&&(e.result.bindRange?e.result.bindRange=JSON.parse(e.result.bindRange):e.result.bindRange=[],e.result.shareRange?e.result.shareRange=JSON.parse(e.result.shareRange):e.result.shareRange=[],t.authForm=e.result||{},t.getAdminList(e.result.enterpriseId))})).catch((function(t){}))}}},mt=ut,dt=(a("e5f3"),Object(m["a"])(mt,r,n,!1,null,"604ed84d",null));e["default"]=dt.exports},"73ba":function(t,e,a){"use strict";var r=a("2581"),n=a.n(r);n.a},"8cfe":function(t,e,a){"use strict";var r=a("236e"),n=a.n(r);n.a},"9bff":function(t,e,a){"use strict";var r=a("3d3b"),n=a.n(r);n.a},ada2:function(t,e,a){},c8ff:function(t,e,a){"use strict";var r=a("0ac0"),n=a.n(r);n.a},d744:function(t,e,a){},de0b:function(t,e,a){"use strict";var r=a("220a"),n=a.n(r);n.a},e5f3:function(t,e,a){"use strict";var r=a("ada2"),n=a.n(r);n.a},f657:function(t,e,a){"use strict";var r=a("d744"),n=a.n(r);n.a}}]); (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-46b49004"],{"0ac0":function(t,e,a){},"220a":function(t,e,a){},2340:function(t,e,a){},"236e":function(t,e,a){},2581:function(t,e,a){},2802:function(t,e,a){"use strict";a("4917");e["a"]={getByteLen:function(t){for(var e=""==t||null==t?"":t,a=0,r=0;r<e.length;r++){var n=e.charAt(r);null!=n.match(/[^\x00-\xff]/gi)?a+=2:a+=1}return a},getZhLen:function(t){for(var e=""==t||null==t?"":t,a=0,r=0;r<e.length;r++){var n=e.charAt(r);null!=n.match(/[^\x00-\xff]/gi)?a+=1:a+=.5}return Math.ceil(a)},cutStr:function(t,e,a){for(var r=0,n=0;n<t.length;n++){var s=t.charAt(n);if(1==a&&(encodeURI(s).length>2?r+=1:r+=.5),2==a&&(r+=1),r>=e){var i=r==e?n+1:n;return t.substr(0,i)}}},getByteVal:function(t,e){for(var a=""==t||null==t?"":t,r="",n=0,s=0;s<a.length;s++){if(null!=a[s].match(/[^\x00-\xff]/gi)?n+=1:n+=.5,n>e)break;r+=a[s]}return r},getCharVal:function(t,e){for(var a=""==t||null==t?"":t,r="",n=0,s=0;s<a.length;s++){if(null!=a[s].match(/[^\x00-\xff]/gi)?n+=2:n+=1,n>e)break;r+=a[s]}return r},regPos:function(t){var e=/^\d+(\.\d+)?$/;return e.test(t)}}},"3d3b":function(t,e,a){},"5af5":function(t,e,a){"use strict";var r=a("2340"),n=a.n(r);n.a},"62a7":function(t,e,a){"use strict";a.r(e);var r=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"my-customer-wrap common-set-wrap"},[a("nav-crumb",{attrs:{navpath:t.navpath}}),a("div",{staticClass:"right-content"},[a("div",{staticClass:"right-box",staticStyle:{"min-height":"calc(100vh - 104px)"}},[a("div",{staticClass:"apps-content flex",staticStyle:{"min-height":"calc(100vh - 104px)"}},[a("div",{staticClass:"apps-content-right"},[a("div",{staticClass:"new-auth-body"},[2!=t.activeStep?a("div",[a("auth-step",{attrs:{"active-step":t.activeStep}})],1):t._e(),0==t.activeStep?a("div",{staticClass:"auth-tip-body"},[a("auth-tip",{staticClass:"m-t-30"}),a("el-form",{ref:"authForm",staticClass:"dialog-form m-t-20",attrs:{model:t.authForm,rules:t.rules,"label-width":"100px"}},[a("el-form-item",{attrs:{label:"选择商户",prop:"enterpriseId"}},[a("div",{staticClass:"el-input-group__prepend"},[t._v("GIC4.0")]),t.$route.query.enterpriseId?t._e():a("el-popover",{attrs:{placement:"bottom",title:"",trigger:"click","popper-class":"company-select-pop",width:"267"}},[a("div",{staticClass:"company-select"},[a("div",{staticClass:"el-scrollbar define-search-select"},[a("div",{staticClass:"el-select-dropdown__wrap el-scrollbar__wrap",staticStyle:{overflow:"auto"}},[a("ul",{staticClass:"el-scrollbar__view el-select-dropdown__list"},[t._l(t.searchArray,(function(e,r){return a("li",{key:r+"search",staticClass:"el-select-dropdown__item",on:{click:function(a){return t.getAdmin(e)}}},[a("div",{staticClass:"flex flex-space-between"},[a("div",{staticStyle:{"line-height":"26px"}},[a("span",{staticClass:"block text-ellipsis"},[t._v(t._s(e.enterpriseName||"--"))]),a("div",{staticClass:"text-ellipsis font-12 color-909399"},[t._v(t._s(e.companyName||"--"))])]),e.enterpriseId==t.authForm.enterpriseId?a("span",{staticClass:"font-12 color-2f54eb el-icon-check flex-align-center",staticStyle:{display:"flex"}}):t._e()])])})),t.searchArray.length?t._e():a("li",{staticClass:"el-select-dropdown__item text-center"},[t._v("暂无商户数据")])],2)])])]),a("div",{staticClass:"select-search-input cursor-pointer",attrs:{slot:"reference"},slot:"reference"},[a("div",[a("el-input",{staticClass:"w-267",attrs:{disabled:!!t.$route.query.enterpriseId,placeholder:"请搜索选择商户",maxlength:"50"},nativeOn:{keyup:function(e){return function(e){return t.querySearchAsync(e,t.searchSelect)}(e)}},model:{value:t.searchSelect,callback:function(e){t.searchSelect=e},expression:"searchSelect"}})],1)])]),t.$route.query.enterpriseId?a("div",{staticClass:"select-search-input"},[a("el-input",{staticClass:"w-267",attrs:{disabled:!!t.$route.query.enterpriseId,placeholder:"请搜索选择商户",maxlength:"50"},model:{value:t.authForm.enterpriseName,callback:function(e){t.$set(t.authForm,"enterpriseName",e)},expression:"authForm.enterpriseName"}})],1):t._e()],1),a("el-form-item",{attrs:{label:"门店绑定",prop:"bindRange"}},[a("div",{staticClass:"el-select store-item-content",on:{click:function(e){return t.showStore(1)}}},[t.authForm.bindStoreMode>0?a("div",{staticClass:"el-select__tags"},[a("span",{staticStyle:{display:"block"}},[t._l(t.authForm.bindRange,(function(e,r){return[a("span",{key:r+"bind",staticClass:"el-tag el-tag--info el-tag--small"},[a("span",{staticClass:"el-select__tags-text"},[t._v(t._s(e.storeInfoName||e.storeGroupName))]),a("i",{staticClass:"el-tag__close el-icon-close",on:{click:function(e){return e.stopPropagation(),t.delStore(r,t.authForm.bindRange)}}})])]}))],2)]):t._e(),0==t.authForm.bindStoreMode&&""!==t.authForm.bindStoreMode?a("span",{staticClass:"p-l-10 font-14 color-909399"},[t._v("已选全部")]):t._e()])]),a("el-form-item",{attrs:{label:"门店共享",prop:"shareRange"}},[a("div",{staticClass:"el-select store-item-content",on:{click:function(e){return t.showStore(2)}}},[t.authForm.shareStoreMode>0?a("div",{staticClass:"el-select__tags"},[a("span",{staticStyle:{display:"block"}},[t._l(t.authForm.shareRange,(function(e,r){return[a("span",{key:r+"bind",staticClass:"el-tag el-tag--info el-tag--small"},[a("span",{staticClass:"el-select__tags-text"},[t._v(t._s(e.storeInfoName||e.storeGroupName))]),a("i",{staticClass:"el-tag__close el-icon-close",on:{click:function(e){return e.stopPropagation(),t.delStore(r,t.authForm.shareRange)}}})])]}))],2)]):t._e(),0==t.authForm.shareStoreMode&&""!==t.authForm.shareStoreMode?a("span",{staticClass:"p-l-10 font-14 color-909399"},[t._v("已选全部")]):t._e()])]),a("el-form-item",[a("el-button",{on:{click:t.cancel}},[t._v("取消")]),a("el-button",{attrs:{disabled:!t.changeFlag||""===t.authForm.shareStoreMode&&""===t.authForm.bindStoreMode,type:"primary"},on:{click:function(e){return t.submitForm("authForm")}}},[t._v("下一步")])],1)],1)],1):t._e(),1==t.activeStep?a("div",{staticClass:"commit-success-body m-t-35"},[a("auth-commit",{attrs:{"admin-list":t.adminList,reason:t.authForm.auditReason},on:{changeStep:t.changeStep,returnStep:t.returnStep}})],1):t._e(),2==t.activeStep?a("div",{staticClass:"commit-success-body"},[a("auth-commit-success",{attrs:{"enterprise-id":t.authForm.enterpriseId}})],1):t._e()])])])])]),t.setVisible?a("store-auth-dialog",{attrs:{"enterprise-id":t.authForm.enterpriseId,"is-select-all":t.isSelectAll,"select-mode":t.selectMode,"range-data":t.rangeData,"bind-type":t.bindType},on:{closeSet:t.closeSet}}):t._e(),t.checkShow?a("check-name-dialog",{attrs:{"sync-data":t.syncData},on:{closeSet:t.closeCheckSet}}):t._e()],1)},n=[],s=(a("96cf"),a("1da1")),i=(a("ac6a"),a("29b6")),o=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("div",{class:["auth-step-body",0==t.active?"step-one":"step-two"]},[a("el-steps",{attrs:{active:t.active,"finish-status":"success"}},[a("el-step",{attrs:{title:"GIC商户授权",description:""}}),a("el-step",{attrs:{title:"审核员授权",description:""}})],1)],1)])},c=[],l={name:"AuthStep",components:{},props:{activeStep:{type:String,default:function(){return"0"}}},data:function(){return{active:"0"}},mounted:function(){var t=this;t.active=t.activeStep},watch:{activeStep:function(t){this.active=t}}},u=l,m=(a("de0b"),a("2877")),d=Object(m["a"])(u,o,c,!1,null,"c9703e40",null),h=d.exports,p=function(){var t=this,e=t.$createElement;t._self._c;return t._m(0)},f=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"auth-tip"},[a("div",{staticStyle:{width:"645px"}},[a("div",{staticClass:"el-alert el-alert--info flex flex-align-start",staticStyle:{width:"645px"},attrs:{role:"alert"}},[a("i",{staticClass:"el-alert__icon el-icon-info font-12 color-2f54eb"}),a("div",{staticClass:"el-alert__content"},[a("span",{staticClass:"el-alert__title color-606266 font-13"},[t._v("\n 商户授权须知:"),a("br"),t._v("\n 1. 商户授权可以是多个商户授权到1个企业下,但是需保证使用的服务号或小程序在同一开放平台"),a("br"),t._v("\n    下,否则绑定商户的客户获取的unionid会不一致,最终会无法识别企业微信客户与会员的绑定性;"),a("br"),t._v("\n 2. 商户绑定后,可选择部分门店绑定,如商户有100家门店,可授权其中50家;"),a("br"),t._v("\n 3. 绑定商户结束后,导购可通过企业微信好办小程序绑定导购账号后登录;"),a("br"),t._v("\n 4. 进行门店绑定后,请勿随意操作门店绑定范围,如果门店范围取消,会导致用户关联的导购账号"),a("br"),t._v("\n    解绑,"),a("span",{staticClass:"color-f5222d"},[t._v("如果24小时内未恢复范围,会永久解绑。")])])])])])])}],g={name:"AuthTip",data:function(){return{}}},v=g,b=(a("c8ff"),Object(m["a"])(v,p,f,!1,null,"6246f46e",null)),S=b.exports,y=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"auth-commit-success"},[t._m(0),a("div",{staticClass:"commit-success-text text-center font-14 color-303133 m-t-12"},[t._v("已提交管理员审核,请通知管理员及时审核")]),a("div",{staticClass:"commit-success-btn text-center m-t-28"},[a("el-button",{on:{click:function(e){return t.changeRoute("/authMerchant")}}},[t._v("返回授权列表")]),a("el-button",{on:{click:function(e){return t.changeRoute("/auditLog?enterpriseId="+t.enterpriseId)}}},[t._v("进入审核列表")])],1)])},_=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"commit-success-img text-center"},[a("span",{staticClass:"iconfont iconchenggong color-49c958 font-60"})])}],F={name:"AuthCommitSuccess",components:{},props:{enterpriseId:{type:String,default:""}},data:function(){return{}},methods:{changeRoute:function(t){this.$router.push(t)}}},C=F,N=(a("73ba"),Object(m["a"])(C,y,_,!1,null,"68854cb4",null)),R=N.exports,x=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"auth-commit-admin"},[a("common-alert-tip",{staticClass:"m-b-32",attrs:{width:"328px","tip-content":t.tipContent}}),a("el-form",{ref:"commitForm",staticClass:"dialog-form",attrs:{model:t.commitForm,rules:t.rules,"label-width":"100px"}},[a("el-form-item",{attrs:{label:"申请事项",prop:"commitName"}},[a("el-input",{staticClass:"w-198",attrs:{disabled:""},model:{value:t.commitForm.commitName,callback:function(e){t.$set(t.commitForm,"commitName",e)},expression:"commitForm.commitName"}})],1),a("el-form-item",{attrs:{label:"申请理由",prop:"auditReason"}},[a("limit-textarea",{attrs:{"input-width":298,"input-value":t.commitForm.auditReason,holder:"请输入申请理由","get-by-type":"word","max-length":50},on:{"update:inputValue":function(e){return t.$set(t.commitForm,"auditReason",e)},"update:input-value":function(e){return t.$set(t.commitForm,"auditReason",e)}}})],1),a("el-form-item",{attrs:{label:"审核人",prop:""}},[a("div",{staticClass:"flex flex-wrap audit-admin-body"},[t._l(t.commitForm.auditAdmin,(function(e,r){return[a("span",{key:r+"admin",staticClass:"audit-admin"},[t._v("\n "+t._s(t._f("formatWord")(e.clerkName))+"("+t._s(e.nationCode+"-"+e.phoneNumber)+")\n ")])]}))],2)]),a("el-form-item",[a("el-button",{on:{click:t.cancel}},[t._v("取消")]),a("el-button",{attrs:{type:"primary",loading:t.loadBtn},on:{click:function(e){return t.submitForm("commitForm")}}},[t._v("提交审核")])],1)],1)],1)},D=[],I=a("3081"),w=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"input-line-cell",style:{width:t.inputWidth+"px"}},[a("el-input",{style:{width:t.inputWidth+"px"},attrs:{placeholder:t.holder,type:"textarea",rows:3,disabled:t.disInput},on:{blur:function(e){return t.inputBlur()}},nativeOn:{keyup:function(e){return function(e){return t.toInput(e)}(e)}},model:{value:t.itemValue,callback:function(e){t.itemValue=e},expression:"itemValue"}}),a("span",{staticClass:"tip"},[a("span",{staticClass:"len_span"},[t._v(t._s(t.inputNum))]),t._v("/"+t._s(t.limitLength))])],1)},k=[],M=(a("c5f6"),a("2802")),$={name:"LimitTextarea",props:{inputValue:{type:String,default:""},maxLength:{type:Number,default:10},inputWidth:{type:Number,default:500},getByType:{type:String,default:"word"},holder:{type:String,default:"请输入"},disInput:{type:Boolean,default:!1}},data:function(){return{inputNum:0,limitLength:10,itemValue:""}},mounted:function(){var t=this;t.limitLength=t.maxLength,t.itemValue=t.inputValue||"","word"==t.getByType?t.inputNum=M["a"].getZhLen(t.inputValue):t.inputNum=M["a"].getByteLen(t.inputValue)},methods:{toInput:function(t){var e=this,a="";"word"==e.getByType?(a=M["a"].getByteVal(t.target.value,e.limitLength),e.itemValue=a,e.inputNum=M["a"].getZhLen(e.itemValue)):(a=M["a"].getCharVal(t.target.value,e.limitLength),e.itemValue=a,e.inputNum=M["a"].getByteLen(e.itemValue)),e.$emit("update:inputValue",e.itemValue)},inputBlur:function(){var t=this;t.$emit("update:inputValue",t.itemValue)}},watch:{maxLength:function(t,e){var a=this;a.limitLength=t},inputValue:function(t,e){var a=this;a.itemValue=t,"word"==a.getByType?a.inputNum=M["a"].getZhLen(a.itemValue):a.inputNum=M["a"].getByteLen(a.itemValue)}}},O=$,L=(a("8cfe"),Object(m["a"])(O,w,k,!1,null,"8106e482",null)),A=L.exports,V=a("d157"),J={name:"AuthCommit",components:{commonAlertTip:I["a"],limitTextarea:A},props:{reason:{type:String,default:""},adminList:{type:[Object,Array],default:function(){return[]}}},data:function(){return{tipContent:"提交商户绑定审核,经审核员同意后绑定成功",commitForm:{commitType:1,commitName:"商户授权",auditReason:this.reason||"",auditAdmin:[]},rules:{auditReason:[{required:!0,message:"请输入申请理由",trigger:"blur"}]},loadBtn:!1}},mounted:function(){var t=this;t.commitForm.auditAdmin=JSON.parse(JSON.stringify(t.adminList))},methods:{cancel:function(){var t=this;t.$emit("returnStep")},submitForm:Object(V["b"])((function(t){var e=this;e.loadBtn=!0,e.$refs[t].validate((function(t){if(!t)return e.loadBtn=!1,!1;e.toCommitPost()}))}),5e3),toCommitPost:function(){var t=this;t.$emit("changeStep",t.commitForm.auditReason),t.$nextTick((function(){t.loadBtn=!1}))},changeRoute:function(t){this.$router.push(t)}},watch:{adminList:function(t){var e=this;e.commitForm.auditAdmin=JSON.parse(JSON.stringify(t))}}},E=J,B=(a("9bff"),Object(m["a"])(E,x,D,!1,null,"1b25395e",null)),T=B.exports,j=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("el-dialog",{attrs:{width:"554px",title:1==t.bindType?"门店绑定":"门店共享",visible:t.setVisible,"append-to-body":"","before-close":t.handleClose},on:{"update:visible":function(e){t.setVisible=e}}},[a("div",{staticClass:"bind-store-body"},[a("div",{staticClass:"el-form-item el-form-item--large"},[a("label",{staticClass:"el-form-item__label",staticStyle:{width:"120px"},attrs:{for:"name"}},[t._v("\n 选择绑定门店\n ")]),a("div",{staticClass:"el-form-item__content",staticStyle:{"margin-left":"110px"}},[a("el-radio",{attrs:{disabled:1==t.isSelectAll&&1==t.bindType,label:"0"},on:{change:t.changeRange},model:{value:t.formData.sendRange,callback:function(e){t.$set(t.formData,"sendRange",e)},expression:"formData.sendRange"}},[t._v("所有门店")]),a("el-radio",{staticClass:"m-l-40 m-r-8",attrs:{label:"1"},on:{change:t.changeRange},model:{value:t.formData.sendRange,callback:function(e){t.$set(t.formData,"sendRange",e)},expression:"formData.sendRange"}},[t._v("选择分组")]),a("el-radio",{staticClass:"m-l-40 m-r-8",attrs:{label:"2"},on:{change:t.changeRange},model:{value:t.formData.sendRange,callback:function(e){t.$set(t.formData,"sendRange",e)},expression:"formData.sendRange"}},[t._v("选择门店")]),("1"!=t.formData.sendRange&&"2"!=t.formData.sendRange||t.formData.selectList.length)&&"null"!=String(t.formData.sendRange)&&""!==t.formData.sendRange?t._e():a("div",{staticClass:"el-form-item__error"},[t._v("请选择绑定门店")]),"1"==t.formData.sendRange?a("store-auth-group",{attrs:{"company-id":t.enterpriseId,"store-type":t.bindType,"select-group":t.selectGroupData},on:{checkGroupIds:t.checkGroupIds}}):t._e(),"2"==t.formData.sendRange?a("store-auth-store",{attrs:{"company-id":t.enterpriseId,"store-type":t.bindType,"select-store":t.selectStoreData},on:{checkStoreIds:t.checkStoreIds}}):t._e()],1)])]),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(e){return e.stopPropagation(),t.cancel(e)}}},[t._v("取消")]),a("el-button",{attrs:{type:"primary"},on:{click:function(e){return e.stopPropagation(),t.submitForm(e)}}},[t._v("确定")])],1)])},G=[],q=a("7ca9"),P=a("418e"),U={name:"StoreAuthDialog",components:{storeAuthGroup:q["a"],storeAuthStore:P["a"]},props:{isSelectAll:{type:[String,Number],default:"0"},enterpriseId:{type:String,default:""},bindType:{type:[String,Number],default:"1"},selectMode:{type:[String,Number],default:"0"},rangeData:{type:[Object,Array],default:function(){return[]}}},data:function(){return{setVisible:!0,formData:{sendRange:"0",selectList:[]},selectGroupData:[],selectStoreData:[]}},mounted:function(){var t=this;t.formData.sendRange=String(t.selectMode),t.selectGroupData=1==t.selectMode?JSON.parse(JSON.stringify(t.rangeData)):[],t.selectStoreData=2==t.selectMode?JSON.parse(JSON.stringify(t.rangeData)):[],t.formData.selectList=JSON.parse(JSON.stringify(t.rangeData))||[]},methods:{changeRange:function(t){var e=this;e.formData.sendRange=t,e.formData.selectList=[]},handleClose:function(t){var e=this;t(),e.$emit("closeSet","close"),e.selectGroupData=[],e.selectStoreData=[]},cancel:function(){var t=this;t.$emit("closeSet","close"),t.selectGroupData=[],t.selectStoreData=[]},checkGroupIds:function(t){var e=this;e.formData.selectList=JSON.parse(JSON.stringify(t))},checkStoreIds:function(t){var e=this;e.formData.selectList=JSON.parse(JSON.stringify(t))},submitForm:function(){var t=this;return"null"!=String(t.formData.sendRange)&&""!==t.formData.sendRange&&(!("1"==t.formData.sendRange&&!t.formData.selectList.length)&&(!("2"==t.formData.sendRange&&!t.formData.selectList.length)&&void t.$emit("closeSet",String(t.formData.sendRange),t.formData.selectList)))}},watch:{selectMode:function(t){var e=this;e.formData.sendRange=String(t)},rangeData:function(t){var e=this;e.selectGroupData=1==e.selectMode?JSON.parse(JSON.stringify(t)):[],e.selectStoreData=2==e.selectMode?JSON.parse(JSON.stringify(t)):[],e.formData.selectList=JSON.parse(JSON.stringify(t))||[]}}},W=U,Z=(a("f657"),Object(m["a"])(W,j,G,!1,null,"d61df484",null)),z=Z.exports,H=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("el-dialog",{staticClass:"check-name-dialog",attrs:{title:"提示",visible:t.dialogVisible,width:"416px","before-close":t.handleClose},on:{"update:visible":function(e){t.dialogVisible=e}}},[a("div",{staticClass:"m-b-20"},[a("div",{staticClass:"font-14 color-606266 m-b-10"},[t._v("首次授权商户需要校验GIC商户超级管理员姓名")]),a("el-form",{ref:"ruleForm",attrs:{model:t.ruleForm,rules:t.rules,"label-width":"110px"}},[a("el-form-item",{attrs:{label:"超级管理员",prop:"userName"}},[a("span",[t._v(t._s(t.firstName))]),a("el-input",{staticClass:"w-173 m-l-10",attrs:{maxlength:"50",placeholder:"输入姓名校验"},model:{value:t.ruleForm.userName,callback:function(e){t.$set(t.ruleForm,"userName",e)},expression:"ruleForm.userName"}})],1)],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(e){return e.stopPropagation(),t.cancel(e)}}},[t._v("取消")]),a("el-button",{attrs:{type:"primary",loading:t.loading},on:{click:function(e){return e.stopPropagation(),t.submitForm("ruleForm")}}},[t._v("确定")])],1)])},K=[],Q=a("21f4"),X=a("5b4e"),Y=Q["a"].getCheckName,tt=Q["a"].checkName,et={name:"CheckNameDialog",props:{syncData:{type:Object,default:function(){return{syncStatus:"0"}}}},data:function(){return{dialogVisible:!0,loading:!1,firstName:"",ruleForm:{userName:""},rules:{userName:[{required:!0,message:"请输入姓名",trigger:"blur"}]}}},mounted:function(){var t=this;t.getCheckNameData()},methods:{getCheckNameData:function(){var t=this,e={enterpriseId:t.syncData.enterpriseId};Y(e).then((function(e){t.firstName=e.result||""})).catch((function(t){}))},handleClose:function(){var t=this;t.ruleForm.userName="",t.$emit("closeSet","close")},cancel:function(){var t=this;t.ruleForm.userName="",t.$emit("closeSet","close")},submitForm:Object(V["a"])((function(t){var e=this;e.loading=!0,e.$refs[t].validate((function(t){if(!t)return e.loading=!1,!1;e.postCheck()}))}),300),postCheck:function(){var t=this,e={enterpriseId:t.syncData.enterpriseId,userName:t.firstName+t.ruleForm.userName};tt(e).then((function(e){t.loading=!1,"0000"==e.code?e.result?(X["a"].showmsg("校验成功","success"),t.ruleForm.userName="",t.$emit("closeSet","success")):X["a"].showmsg("校验失败","warning"):X["a"].showmsg(e.message||"接口异常","warning")})).catch((function(e){t.loading=!1}))}}},at=et,rt=(a("5af5"),Object(m["a"])(at,H,K,!1,null,"a960be2a",null)),nt=rt.exports,st=Q["a"].getAuthDetail,it=Q["a"].getEnterprise,ot=Q["a"].getEnterpriseDetail,ct=Q["a"].getGicAdmin,lt=Q["a"].postEnterpriseAuth,ut={name:"NewAuthMerchant",components:{navCrumb:i["a"],authStep:h,authTip:S,authCommitSuccess:R,authCommit:T,storeAuthDialog:z,checkNameDialog:nt},data:function(){return{navpath:[{name:"通讯录",path:"/contactsList"},{name:"授权商户",path:"/authMerchant"},{name:this.$route.query.enterpriseId?"编辑授权":"新建授权",path:""}],wxEnterpriseId:localStorage.getItem("haoBanUser")?JSON.parse(localStorage.getItem("haoBanUser")).wxEnterpriseId:"",auditorName:localStorage.getItem("haoBanUser")?JSON.parse(localStorage.getItem("haoBanUser")).staffName:"",activeStep:"0",brandOptions:[],searchSelect:"",searchArray:[],authForm:{storeRangeAuditId:"",enterpriseId:"",enterpriseName:"",bindRange:[],shareRange:[],shareStoreMode:"",bindStoreMode:"",auditReason:""},rules:{enterpriseId:[{required:!0,message:"请选择商户",trigger:"change"}]},checkShow:!1,syncData:{},isSelectAll:0,changeFlag:!1,setVisible:!1,selectMode:"0",rangeData:[],bindType:1,adminList:[]}},mounted:function(){var t=this;t.$route.query.enterpriseId&&t.getData(),document.documentElement.style.backgroundColor="#f0f2f5"},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},methods:{closeCheckSet:function(t){var e=this;if(e.checkShow=!1,"close"==t)return!1;e.authForm.enterpriseId=e.syncData.enterpriseId,e.authForm.enterpriseName=e.syncData.enterpriseName,e.$refs["authForm"].validate((function(t){return!!t&&void 0}))},closeSet:function(t,e){var a=this;if(a.setVisible=!1,"close"==t)return!1;a.selectMode=String(t),1==a.bindType?(a.authForm.bindStoreMode=String(t),a.authForm.bindRange=JSON.parse(JSON.stringify(e))):(a.authForm.shareStoreMode=String(t),a.authForm.shareRange=JSON.parse(JSON.stringify(e))),a.changeFlag=!0},showStore:function(t){var e=this;if(!e.authForm.enterpriseId)return!1;e.selectMode=1==t?e.authForm.bindStoreMode:e.authForm.shareStoreMode,e.rangeData=1==t?e.authForm.bindRange:e.authForm.shareRange,e.bindType=t,e.setVisible=!0,e.getEnterpriseData()},getSearchList:function(t){var e={enterpriseName:t};return""==t?[]:new Promise((function(t,a){it(e).then((function(e){"0000"==e.code?(e.result&&e.result.forEach((function(t){t.value=t.enterpriseName})),t(e.result)):t([])})).catch((function(e){t([])}))}))},querySearchAsync:function(){var t=Object(s["a"])(regeneratorRuntime.mark((function t(){var e,a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(e=this,""!=String(e.searchSelect).trim()){t.next=10;break}return e.authForm.enterpriseId="",e.searchArray=[],e.authForm.bindRange=[],e.authForm.shareRange=[],e.authForm.shareStoreMode="",e.authForm.bindStoreMode="",e.adminList=[],t.abrupt("return",!1);case 10:return t.next=12,e.getSearchList(e.searchSelect);case 12:a=t.sent,e.searchArray=a;case 14:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),returnStep:function(){var t=this;t.activeStep=0},cancel:function(){var t=this;t.$router.push("/authMerchant")},submitForm:function(t){var e=this;e.$refs[t].validate((function(t){if(!t)return!1;e.activeStep=1}))},delStore:function(t,e){var a=this;e.splice(t,1),a.changeFlag=!0,a.authForm.shareStoreMode=!a.authForm.shareRange.length&&a.authForm.shareStoreMode>0?"":String(a.authForm.shareStoreMode),a.authForm.bindStoreMode=!a.authForm.bindRange.length&&a.authForm.bindStoreMode>0?"":String(a.authForm.bindStoreMode)},getAdmin:function(t){var e=this;if(e.authForm.enterpriseId==t.enterpriseId)return!1;e.syncData=t,e.checkShow=!0,e.authForm.enterpriseId="",e.authForm.enterpriseName="",e.authForm.bindRange=[],e.authForm.shareRange=[],e.authForm.shareStoreMode="",e.authForm.bindStoreMode="",e.adminList=[],e.getAdminList(t.enterpriseId)},getAdminList:function(t){var e=this;ct({enterpriseId:t}).then((function(t){t.result&&t.result.length&&(e.adminList=t.result||[])})).catch((function(t){}))},changeStep:function(t){var e=this;e.authForm.auditReason=Object(V["c"])(t);var a={enterpriseId:e.authForm.enterpriseId,wxEnterpriseId:e.wxEnterpriseId,shareRange:e.authForm.shareStoreMode>0?1==e.authForm.shareStoreMode?e.authForm.shareRange.map((function(t){return t.storeGroupId})).join(","):e.authForm.shareRange.map((function(t){return t.storeInfoId})).join(","):"",bindRange:e.authForm.bindStoreMode>0?1==e.authForm.bindStoreMode?e.authForm.bindRange.map((function(t){return t.storeGroupId})).join(","):e.authForm.bindRange.map((function(t){return t.storeInfoId})).join(","):"",auditReason:e.authForm.auditReason,shareStoreMode:!e.authForm.shareRange.length&&e.authForm.shareStoreMode>0?"":String(e.authForm.shareStoreMode),bindStoreMode:!e.authForm.bindRange.length&&e.authForm.bindStoreMode>0?"":String(e.authForm.bindStoreMode),auditorName:e.auditorName};lt(a).then((function(t){"0000"==t.code?e.activeStep=2:e.$message({message:t.message||"接口异常",type:"warning"})})).catch((function(t){}))},changeRoute:function(t){this.$router.push(t)},getEnterpriseData:function(){var t=this;ot({enterpriseId:t.$route.query.enterpriseId||t.authForm.enterpriseId}).then((function(e){t.isSelectAll=e.result.bindFlag})).catch((function(t){}))},getData:function(){var t=this,e={enterpriseId:t.$route.query.enterpriseId,wxEnterpriseId:t.wxEnterpriseId};st(e).then((function(e){"0000"==e.code&&(e.result.bindRange?e.result.bindRange=JSON.parse(e.result.bindRange):e.result.bindRange=[],e.result.shareRange?e.result.shareRange=JSON.parse(e.result.shareRange):e.result.shareRange=[],t.authForm=e.result||{},t.getAdminList(e.result.enterpriseId))})).catch((function(t){}))}}},mt=ut,dt=(a("e5f3"),Object(m["a"])(mt,r,n,!1,null,"604ed84d",null));e["default"]=dt.exports},"73ba":function(t,e,a){"use strict";var r=a("2581"),n=a.n(r);n.a},"8cfe":function(t,e,a){"use strict";var r=a("236e"),n=a.n(r);n.a},"9bff":function(t,e,a){"use strict";var r=a("3d3b"),n=a.n(r);n.a},ada2:function(t,e,a){},c8ff:function(t,e,a){"use strict";var r=a("0ac0"),n=a.n(r);n.a},d744:function(t,e,a){},de0b:function(t,e,a){"use strict";var r=a("220a"),n=a.n(r);n.a},e5f3:function(t,e,a){"use strict";var r=a("ada2"),n=a.n(r);n.a},f657:function(t,e,a){"use strict";var r=a("d744"),n=a.n(r);n.a}}]);
\ No newline at end of file \ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-48e8e9e2"],{6734:function(t,a,i){},ab67d:function(t,a,i){"use strict";var s=i("6734"),o=i.n(s);o.a},c686:function(t,a,i){"use strict";i.r(a);var s=function(){var t=this,a=t.$createElement,i=t._self._c||a;return i("div",{staticClass:"app-auth-body"},[t._m(0),i("div",{staticClass:"app-auth-info"},[i("div",{staticClass:"app-info-body"},[i("div",{staticClass:"app-info-title"},[t._v("应用授权")]),i("div",{staticClass:"app-info-detail"},[i("div",{staticClass:"flex app-top"},[i("div",{staticClass:"app-img"},[i("img",{attrs:{src:t.appInfo.iconUrl,alt:"app"}})]),i("div",{staticClass:"flex flex-column p-l-12 flex-space-between"},[i("div",{staticClass:"font-14 color-303133 line-h-22"},[t._v(t._s(t.appInfo.applicationName))]),i("div",{staticClass:"font-12 color-606266 line-h-20"},[t._v(t._s(t.appInfo.introduction))])])]),i("div",{staticClass:"auth-rights"},[i("div",{staticClass:"auth-rights-title font-14 color-909399"},[t._v("授权后将允许"+t._s(t.appInfo.applicationName||"")+"应用进行以下权限操作")]),i("div",[i("ul",t._l(t.rightsList,(function(a,s){return i("li",{key:s+"right",staticClass:"font-14 color-303133"},[t._v(t._s(a.rightsName))])})),0)])])]),i("div",{staticClass:"app-info-btn"},[i("el-checkbox",{staticClass:"p-r-10",model:{value:t.checkAuth,callback:function(a){t.checkAuth=a},expression:"checkAuth"}}),i("el-button",{attrs:{type:"text"},on:{click:t.toProtocol}},[t._v("授权同意《达摩授权服务协议》")]),i("el-button",{attrs:{disabled:!t.checkAuth,type:"primary"},on:{click:function(a){return a.stopPropagation(),t.toAuthRights(a)}}},[t._v("授权")])],1)])])])},o=[function(){var t=this,a=t.$createElement,s=t._self._c||a;return s("div",{staticClass:"app-auth-head"},[s("img",{attrs:{src:i("cf05"),alt:"logo"}}),s("span",{staticClass:"web-name"},[t._v("好办管理平台")])])}],n={name:"AppAuth",components:{},data:function(){return{appInfo:{appId:"",applicationName:"",introduction:"",iconUrl:"https://pic01-10001430.image.myqcloud.com/69918371857506304/1594638566081_O1zMw.jpg",rights:""},checkAuth:!1,rightsList:[]}},mounted:function(){var t=this;t.getAppData()},methods:{toProtocol:function(){window.open("/app-center/protocol","_blank","noopener")},toAuthRights:function(){var t=this;t.$router.push("/")},getAppData:function(){var t=this;t.appInfo={}}},watch:{}},c=n,e=(i("ab67d"),i("2877")),p=Object(e["a"])(c,s,o,!1,null,"31b63e3a",null);a["default"]=p.exports},cf05:function(t,a,i){t.exports=i.p+"img/logo.861ef5c7.png"}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-6a8ab2e1"],{1005:function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"unreview-wrap common-set-wrap"},[i("div",{staticClass:"right-content"},[i("div",{staticClass:"right-box",staticStyle:{"min-height":"calc(100vh - 86px)"}},[i("div",{staticClass:"reviewed-body-head flex flex-space-between"},[i("div",[i("el-input",{staticClass:"w-344",attrs:{maxlength:"50",placeholder:"请输入提交人姓名/账号/手机号","prefix-icon":"el-icon-search",clearable:""},on:{clear:t.clearSearch},nativeOn:{keyup:function(e){return function(e){return t.searchEnterFun(e,t.searchInput)}(e)}},model:{value:t.searchValue,callback:function(e){t.searchValue=e},expression:"searchValue"}}),i("el-select",{staticClass:"w-130 m-l-10",attrs:{placeholder:"全部事项"},on:{change:t.changeTableList},model:{value:t.auditType,callback:function(e){t.auditType=e},expression:"auditType"}},t._l(t.filterOptions,(function(t){return i("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1),i("el-select",{staticClass:"w-168 m-l-10",attrs:{placeholder:"全部品牌"},on:{change:t.changeTableList},model:{value:t.filterBrand,callback:function(e){t.filterBrand=e},expression:"filterBrand"}},[i("el-option",{attrs:{label:"全部品牌",value:""}}),t._l(t.brandOptions,(function(t){return i("el-option",{key:t.enterpriseId,attrs:{label:t.enterpriseName,value:t.enterpriseId}})}))],2)],1),i("dm-perm-button",{attrs:{disabled:t.$itemPerm(t.$itemCode.batchAudit),type:"primary"},on:{click:t.approveAll}},[t._v("批量同意")])],1),i("div",{staticClass:"reviewed-body-content"},[i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],ref:"multipleTable",staticStyle:{width:"100%"},attrs:{data:t.tableData,"tooltip-effect":"dark"},on:{"selection-change":t.handleSelectionChange}},[i("el-table-column",{attrs:{type:"selection",width:"55"}}),i("el-table-column",{attrs:{label:"审核事项"},scopedSlots:t._u([{key:"default",fn:function(e){return[1==e.row.auditType?i("span",[t._v("导购账号绑定")]):t._e(),3==e.row.auditType?i("span",[t._v("导购账号新增")]):t._e()]}}])}),i("el-table-column",{attrs:{label:"提交人","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[i("div",{staticClass:"flex"},[i("el-popover",{attrs:{placement:"top",width:"300",trigger:"hover"},on:{show:function(a){return t.showSingleInfo(e.row.submitStaffId)}}},[i("div",{staticClass:"apply-info-detail"},[i("div",{staticClass:"flex"},[i("div",{staticClass:"apply-info-img flex-align-center flex-pack-center bg-82c5ff "},[t.userData.headImg?i("img",{attrs:{src:t.userData.headImg,alt:"img"}}):i("img",{attrs:{src:a("6ce2"),alt:"img"}})]),i("div",{staticClass:"flex flex-column apply-info-right flex-pack-center"},[i("div",{staticClass:"apply-info-name"},[i("span",{staticClass:"font-14 color-303133"},[t._v(t._s(t.userData.staffName||"--"))]),i("span",{staticClass:"font-14 color-90939"},[t._v("( "+t._s(1==t.userData.sex?"男":2==t.userData.sex?"女":"--")+")")])])])]),i("div",{staticClass:"flex flex-space-between line-26 m-t-15"},[i("div",{staticClass:"font-14 color-606266"},[t._v("账号")]),i("div",{staticClass:"font-14 color-303133"},[t._v(t._s(t.userData.wxUserId||"--"))])]),i("div",{staticClass:"flex flex-space-between line-26"},[i("div",{staticClass:"font-14 color-606266"},[t._v("职务")]),i("div",{staticClass:"font-14 color-303133"},[t._v(t._s(t.userData.postion||"--"))])]),i("div",{staticClass:"flex flex-space-between line-26"},[i("div",{staticClass:"font-14 color-606266"},[t._v("手机号")]),i("div",{staticClass:"font-14 color-303133"},[t._v(t._s(t.userData.nationCode||"--")+"-"+t._s(t.userData.phoneNumber||"--"))])]),i("div",{staticClass:"flex flex-space-between line-26"},[i("div",{staticClass:"font-14 color-606266 w-m-100"},[t._v("部门")]),i("div",{staticClass:"font-14 color-303133"},[t._v(t._s(t.userData.departmentInfo.map((function(t){return t.departmentName})).join(";")||"--"))])])]),i("div",{attrs:{slot:"reference"},slot:"reference"},[i("div",{staticClass:"flex flex-align-center flex-pack-center bg-82c5ff table-head-pic cursor-pointer"},[e.row.submitHeadImg?i("img",{attrs:{src:e.row.submitHeadImg,alt:"img"}}):i("img",{attrs:{src:a("6ce2"),alt:"img"}})])])]),i("div",{staticClass:"flex flex-column apply-info hide-ellipsis"},[i("span",{staticClass:"font-14 color-606266 hide-ellipsis"},[t._v(t._s(e.row.submitStaffName||"--"))]),i("span",{staticClass:"font-12 color-909399 hide-ellipsis"},[t._v(t._s(e.row.submitWxUserId||"--"))])])],1)]}}])}),i("el-table-column",{attrs:{label:"详情","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.content||"--")+"\n ")]}}])}),i("el-table-column",{attrs:{label:"提交时间","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[i("div",{staticClass:"line-h-18"},[t._v(t._s(t._f("timeStampToYmd")(e.row.createTime)))]),i("div",{staticClass:"line-h-18"},[t._v(t._s(t._f("timeStampToHms")(e.row.createTime)))])]}}])}),i("el-table-column",{attrs:{label:"操作",width:"150"},scopedSlots:t._u([{key:"default",fn:function(e){return[i("el-button",{attrs:{type:"text"},on:{click:function(a){return t.handleClick(e.$index,e.row)}}},[t._v("同意")]),i("el-button",{attrs:{type:"text"},on:{click:function(a){return t.handleClick(e.$index,e.row,"refuse")}}},[t._v("拒绝")])]}}])})],1),0!=t.tableData.length?i("div",{staticClass:"block common-wrap__page text-right"},[i("dm-pagination",{attrs:{background:"","current-page":t.currentPage,"page-sizes":[20,40,60,80],"page-size":t.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1):t._e()],1)])]),i("store-change",{attrs:{"store-change-data":t.storeChangeData},model:{value:t.showStoreDialog,callback:function(e){t.showStoreDialog=e},expression:"showStoreDialog"}}),i("el-dialog",{staticClass:"approve-dialog",attrs:{title:"",visible:t.approveVisible,width:"422px"},on:{"update:visible":function(e){t.approveVisible=e}}},[i("div",{staticClass:"approve-body text-center"},[i("div",[i("i",{staticClass:"el-icon-success"}),i("span",{staticClass:"approve-icon-tip"},[t._v("同意")])]),i("div",{staticClass:"approve-tip"},[t._v("是否确认同意")])]),i("div",{staticClass:"approve-footer dialog-footer",staticStyle:{"text-align":"center"},attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:function(e){t.approveVisible=!1}}},[t._v("取 消")]),i("el-button",{attrs:{type:"primary"},on:{click:t.sendApprove}},[t._v("确 定")])],1)]),i("el-dialog",{staticClass:"refuse-dialog",attrs:{title:"提示",visible:t.refuseVisible,"before-close":t.cancelRefuse,width:"422px"},on:{"update:visible":function(e){t.refuseVisible=e}}},[i("div",[i("div",{staticClass:"refuse-tip"},[t._v("请输入拒绝理由")]),i("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:t.ruleForm,rules:t.rules}},[i("el-form-item",{attrs:{label:"",prop:"refuseReason"}},[i("el-input",{staticClass:"font-14",attrs:{type:"textarea",placeholder:"最多 50 个字",rows:3},model:{value:t.ruleForm.refuseReason,callback:function(e){t.$set(t.ruleForm,"refuseReason",e)},expression:"ruleForm.refuseReason"}})],1)],1)],1),i("div",{staticClass:"approve-footer dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:function(e){return t.cancelRefuse("ruleForm")}}},[t._v("取 消")]),i("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.sendRefuse("ruleForm")}}},[t._v("确 定")])],1)]),i("review-result-detail",{attrs:{"audit-ids":t.auditIds,"success-count":t.successCount,"fail-count":t.failCount,"table-list-data":t.tableListData,"detail-show":t.detailShow},on:{hideDetailDialog:t.hideDetailDialog}}),i("el-dialog",{attrs:{title:"提示",visible:t.dialogVisible,width:"30%"},on:{"update:visible":function(e){t.dialogVisible=e}}},[i("span",[t._v("共"+t._s(t.multipleSelection.length)+"条审核事项,是否批量同意?")]),i("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:function(e){t.dialogVisible=!1}}},[t._v("取 消")]),i("el-button",{attrs:{type:"primary",loading:t.loadBtn},on:{click:function(e){t.postAllApprove(t.multipleSelection.map((function(t){return t.auditId})).join(","))}}},[t._v("确 定")])],1)])],1)},n=[],s=(a("28a5"),a("6300")),l=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{directives:[{name:"show",rawName:"v-show",value:t.customDialog,expression:"customDialog"}]},[a("el-dialog",{staticClass:"edit-dialog",attrs:{title:"审核详情",visible:t.customDialog,width:"600px","before-close":t.handleClose},on:{"update:visible":function(e){t.customDialog=e}}},[a("div",{staticClass:"edit-dialog-body"},[a("div",{staticClass:"font-14 color-606266 m-b-8"},[t._v("共 "+t._s(t.multLength||"")+" 条审核事项, "+t._s(t.successCount||"0")+" 条成功, "),a("span",{staticClass:"color-f5222d"},[t._v(t._s(t.failCount||"0")+" ")]),t._v(" 条失败,失败详情如下:")]),a("el-table",{staticStyle:{width:"100%"},attrs:{data:t.tableData,height:"332"}},[a("el-table-column",{attrs:{prop:"publishRecordId",label:"审核事项","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[1==e.row.auditType?a("span",[t._v("导购账号绑定")]):t._e(),3==e.row.auditType?a("span",[t._v("导购账号新增")]):t._e()]}}])}),a("el-table-column",{attrs:{label:"商户","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.enterpriseName||"--")+"\n ")]}}])}),a("el-table-column",{attrs:{label:"提交人","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.submitStaffName||"--")+"\n ")]}}])}),a("el-table-column",{attrs:{label:"提交时间",width:"120"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"color-606266 line-18"},[t._v(t._s(t._f("timeStampToYmd")(e.row.createTime))+" "+t._s(e.row.createTime?"":"--"))]),a("div",{staticClass:"color-606266 line-18"},[t._v(t._s(t._f("timeStampToHms")(e.row.createTime))+" "+t._s(e.row.createTime?"":"--"))])]}}])}),a("el-table-column",{attrs:{label:"状态"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",{class:["span-dot",1==e.row.auditFlag?"bg-52c41a":"bg-f5222d"]}),1==e.row.auditFlag?a("span",[t._v("已同意")]):t._e()]}}])}),a("el-table-column",{attrs:{label:"结果"},scopedSlots:t._u([{key:"default",fn:function(e){return[2==e.row.statusFlag&&1==e.row.auditFlag?a("span",[t._v("成功")]):t._e(),2==e.row.auditFlag?a("span",[t._v("--")]):t._e(),1==e.row.statusFlag&&1==e.row.auditFlag?a("el-popover",{attrs:{placement:"top",width:"200",trigger:"hover",content:e.row.reason}},[a("span",{staticClass:"common-bottom-border",attrs:{slot:"reference"},slot:"reference"},[t._v("失败")])]):t._e()]}}])})],1)],1)])],1)},o=[],r=(a("c5f6"),a("96b6")),u=r["a"].getAuditDetail,c={name:"ReviewResultDetail",props:{detailShow:{type:Boolean,default:!1},auditIds:{type:String,default:function(){return""}},tableListData:{type:[Array,Object],default:function(){return[]}},failCount:{type:[String,Number],default:function(){return 0}},successCount:{type:[String,Number],default:function(){return 0}}},data:function(){return{customDialog:!1,tableData:[]}},mounted:function(){var t=this;t.customDialog=t.detailShow,t.auditIds&&(t.multLength=t.auditIds.split(",").length,t.tableData=JSON.parse(JSON.stringify(t.tableListData)))},methods:{handleClose:function(t){var e=this;t(),e.hideDialog()},customCancel:function(){var t=this;t.hideDialog()},hideDialog:function(){var t=this;t.customDialog=!1,t.$emit("hideDetailDialog")},getTableData:function(){var t=this,e={auditIds:t.auditIds};u(e).then((function(e){t.tableData=e.result.resultList||[],t.fail=e.result.fail,t.success=e.result.success})).catch((function(t){}))}},watch:{detailShow:function(t,e){var a=this;a.customDialog=t},auditIds:function(t,e){var a=this;t&&(a.multLength=t.split(",").length)},tableListData:function(t,e){var a=this;a.tableData=JSON.parse(JSON.stringify(t))}}},d=c,f=(a("f989"),a("2877")),p=Object(f["a"])(d,l,o,!1,null,"5fc372f8",null),g=p.exports,m=a("5b4e"),h=a("d157"),v=a("e230"),b=v["a"].getStaffDetail,w=r["a"].getReview,C=r["a"].getWxEnterprise,D=r["a"].postAudit,_=r["a"].postBatchApprove,y=r["a"].postRefuse,S=r["a"].getAuditDetail,x={name:"UnreviewPage",components:{storeChange:s["a"],reviewResultDetail:g},data:function(){return{wxEnterpriseId:localStorage.getItem("haoBanUser")?JSON.parse(localStorage.getItem("haoBanUser")).wxEnterpriseId:"",auditName:localStorage.getItem("haoBanUser")?JSON.parse(localStorage.getItem("haoBanUser")).staffName:"",auditType:"",filterBrand:"",brandOptions:[],searchValue:"",filterOptions:[{label:"全部事项",value:""},{label:"导购账号绑定",value:"1"},{label:"导购账号新增",value:"3"}],loading:!1,tableData:[],multipleSelection:[],currentPage:1,pageSize:20,total:0,selectId:"",ruleForm:{refuseReason:""},rules:{refuseReason:[{required:!0,message:"拒绝理由不能为空",trigger:"change"},{min:1,max:50,message:"长度在 1 到 50 个字",trigger:"change"}]},showStoreDialog:!1,storeChangeData:{beforeContent:[],afterContent:[]},approveVisible:!1,refuseVisible:!1,detailShow:!1,resultShow:!1,tableListData:[],resultText:"",failCount:0,successCount:0,userData:{staffName:"",phoneNumber:"",nationCode:"",postion:"",departmentInfo:[],headImg:"",wxUserId:"",sex:1},dialogVisible:!1,loadBtn:!1,timeFlag:null,loadingFull:""}},mounted:function(){var t=this;t.$emit("showTab","/unreview"),t.getTableList(),t.getBrandData()},beforeDestroy:function(){window.clearInterval(this.timeFlag),this.timeFlag=null},methods:{clearSearch:function(){var t=this;t.currentPage=1,t.getTableList()},changeTableList:function(){var t=this;t.currentPage=1,t.getTableList()},searchEnterFun:Object(h["a"])((function(t){var e=this,a=String(t.target.value).trim();if(!a)return!1;e.currentPage=1,e.getTableList()}),200),hideDetailDialog:function(){var t=this;t.detailShow=!1,t.currentPage=1,t.getTableList()},handleSelectionChange:function(t){var e=this;e.multipleSelection=t},handleSizeChange:function(t){var e=this;e.currentPage=1,e.pageSize=t,e.getTableList()},handleCurrentChange:function(t){var e=this;e.currentPage=t,e.getTableList()},handleClick:function(t,e,a){var i=this;if(i.selectId=e.auditId,a&&(i.refuseVisible=!0),a)return!1;i.$confirm("是否确认同意?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){i.sendApprove()})).catch((function(){i.selectId=""}))},sendApprove:Object(h["a"])((function(){var t=this;t.postApprove(t.selectId)}),500),postApprove:function(t){var e=this,a={auditId:t,auditName:e.auditName};D(a).then((function(t){"0000"==t.code?(m["a"].showmsg("操作成功","success"),e.approveVisible=!1,e.currentPage=1,e.getTableList(),e.$forceUpdate()):(e.currentPage=1,e.getTableList(),e.$message({message:t.message||"接口异常",type:"warning"}))})).catch((function(t){}))},approveAll:function(){var t=this,e=t.multipleSelection.length?t.multipleSelection.map((function(t){return t.auditId})).join(","):"";if(!e)return t.$message({message:"请至少选择一条审核事项",type:"warning"}),!1;t.dialogVisible=!0},postAllApprove:function(t){var e=this;e.loadBtn=!0;var a={auditIds:t,auditName:e.auditName};_(a).then((function(t){e.loadBtn=!1,"0000"==t.code?(e.dialogVisible=!1,e.$nextTick((function(){e.loadingFull=e.$loading({lock:!0,text:"数据处理中,请耐心等待",spinner:"el-icon-loading",background:"rgba(0, 0, 0, 0.7)"}),window.clearInterval(e.timeFlag),e.timeFlag=null,e.timeFlag=window.setInterval((function(){e.getDetailFlag()}),3e3),e.$once("hook:beforeDestroy",(function(){window.clearInterval(e.timeFlag),e.timeFlag=null}))}))):e.$message({message:t.message||"接口异常",type:"warning"})})).catch((function(t){e.loadBtn=!1}))},getDetailFlag:function(){var t=this,e={auditIds:t.multipleSelection.map((function(t){return t.auditId})).join(",")||""};S(e).then((function(e){e.result.auditResult?(t.auditIds=t.multipleSelection.map((function(t){return t.auditId})).join(","),t.loadingFull.close(),window.clearInterval(t.timeFlag),t.timeFlag=null,t.tableListData=e.result.resultList||[],t.failCount=e.result.fail||0,t.successCount=e.result.success||0,t.detailShow=!0,t.currentPage=1,t.getTableList()):(t.tableListData=[],t.detailShow=!1)})).catch((function(t){}))},cancelRefuse:function(t){var e=this;e.refuseVisible=!1,e.$refs["ruleForm"].resetFields()},sendRefuse:Object(h["a"])((function(t){var e=this;e.$refs[t].validate((function(t){if(!t)return!1;e.postRefuseData()}))}),500),postRefuseData:function(){var t=this,e={auditName:t.auditName,auditId:t.selectId,reason:Object(h["c"])(t.ruleForm.refuseReason)};y(e).then((function(e){"0000"==e.code?(m["a"].showmsg("操作成功","success"),t.refuseVisible=!1,t.$refs["ruleForm"].resetFields(),t.currentPage=1,t.getTableList()):(t.$message({message:e.message||"接口异常",type:"warning"}),t.currentPage=1,t.getTableList())})).catch((function(e){t.$message.error({duration:1e3,message:e.message})}))},showSingleInfo:function(t){var e=this,a={staffId:t};b(a).then((function(t){e.userData=t.result||{staffName:"",phoneNumber:"",nationCode:"",postion:"",departmentInfo:[],headImg:"",wxUserId:"",sex:1}})).catch((function(t){}))},showStoreChange:function(t){var e=this;e.storeChangeData={beforeContent:[],afterContent:[]},e.showStoreDialog=!0,e.storeChangeData={beforeContent:""!=t.oldValue?t.oldValue.split(","):[],afterContent:""!=t.newValue?t.newValue.split(","):[]}},getBrandData:function(){var t=this;C({wxEnterpriseId:t.wxEnterpriseId}).then((function(e){t.brandOptions=e.result||[]})).catch((function(t){}))},getTableList:function(){var t=this;t.loading=!0;var e={wxEnterpriseId:t.wxEnterpriseId,auditType:t.auditType,searchType:"0",search:t.searchValue,pageNum:t.currentPage,pageSize:t.pageSize,enterpriseId:t.filterBrand};w(e).then((function(e){t.loading=!1,t.tableData=e.result.result||[],t.total=e.result.totalCount})).catch((function(e){t.loading=!1}))}}},I=x,F=(a("1893"),Object(f["a"])(I,i,n,!1,null,"efea5cb2",null));e["default"]=F.exports},1893:function(t,e,a){"use strict";var i=a("7828"),n=a.n(i);n.a},"28a5":function(t,e,a){"use strict";var i=a("aae3"),n=a("cb7c"),s=a("ebd6"),l=a("0390"),o=a("9def"),r=a("5f1b"),u=a("520a"),c=a("79e5"),d=Math.min,f=[].push,p="split",g="length",m="lastIndex",h=4294967295,v=!c((function(){RegExp(h,"y")}));a("214f")("split",2,(function(t,e,a,c){var b;return b="c"=="abbc"[p](/(b)*/)[1]||4!="test"[p](/(?:)/,-1)[g]||2!="ab"[p](/(?:ab)*/)[g]||4!="."[p](/(.?)(.?)/)[g]||"."[p](/()()/)[g]>1||""[p](/.?/)[g]?function(t,e){var n=String(this);if(void 0===t&&0===e)return[];if(!i(t))return a.call(n,t,e);var s,l,o,r=[],c=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),d=0,p=void 0===e?h:e>>>0,v=new RegExp(t.source,c+"g");while(s=u.call(v,n)){if(l=v[m],l>d&&(r.push(n.slice(d,s.index)),s[g]>1&&s.index<n[g]&&f.apply(r,s.slice(1)),o=s[0][g],d=l,r[g]>=p))break;v[m]===s.index&&v[m]++}return d===n[g]?!o&&v.test("")||r.push(""):r.push(n.slice(d)),r[g]>p?r.slice(0,p):r}:"0"[p](void 0,0)[g]?function(t,e){return void 0===t&&0===e?[]:a.call(this,t,e)}:a,[function(a,i){var n=t(this),s=void 0==a?void 0:a[e];return void 0!==s?s.call(a,n,i):b.call(String(n),a,i)},function(t,e){var i=c(b,t,this,e,b!==a);if(i.done)return i.value;var u=n(t),f=String(this),p=s(u,RegExp),g=u.unicode,m=(u.ignoreCase?"i":"")+(u.multiline?"m":"")+(u.unicode?"u":"")+(v?"y":"g"),w=new p(v?u:"^(?:"+u.source+")",m),C=void 0===e?h:e>>>0;if(0===C)return[];if(0===f.length)return null===r(w,f)?[f]:[];var D=0,_=0,y=[];while(_<f.length){w.lastIndex=v?_:0;var S,x=r(w,v?f:f.slice(_));if(null===x||(S=d(o(w.lastIndex+(v?0:_)),f.length))===D)_=l(f,_,g);else{if(y.push(f.slice(D,_)),y.length===C)return y;for(var I=1;I<=x.length-1;I++)if(y.push(x[I]),y.length===C)return y;_=D=S}}return y.push(f.slice(D)),y}]}))},3236:function(t,e,a){"use strict";var i=a("910d"),n=a.n(i);n.a},"5b4e":function(t,e,a){"use strict";var i=a("5c96");e["a"]={showmsg:function(t,e){Object(i["Message"])({duration:1e3,message:t||"接口异常",type:e})}}},6300:function(t,e,a){"use strict";var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"custom-dialog-wrap"},[a("el-dialog",{attrs:{title:"门店图片变更",visible:t.customDialog,width:"600px","before-close":t.handleCardClose},on:{"update:visible":function(e){t.customDialog=e}}},[a("div",{staticClass:"dialog-content"},[a("el-row",[a("el-col",{attrs:{span:11}},[a("div",{staticClass:"grid-content bg-purple-dark"},[t._v("\n 变更前\n ")]),a("div",{staticClass:"data-body"},[a("div",{staticClass:"data-body-content flex flex-column"},[t._l(t.leftData,(function(t,e){return[a("img",{key:"img"+e,attrs:{src:t,alt:""}})]}))],2)])]),a("el-col",{attrs:{span:11}},[a("div",{staticClass:"grid-content bg-purple-dark"},[t._v("\n 变更后\n ")]),a("div",{staticClass:"data-body"},[a("div",{staticClass:"data-body-content flex flex-column"},[t._l(t.rightData,(function(t,e){return[a("img",{key:"img0"+e,attrs:{src:t,alt:""}})]}))],2)])])],1)],1)])],1)},n=[],s={name:"StoreChangeDialog",props:{value:{type:Boolean,default:!1},storeChangeData:{type:[Object,Array]}},data:function(){return{repProjectName:"haoban-web",customDialog:this.value,leftData:[],rightData:[]}},mounted:function(){var t=this;t.leftData=t.storeChangeData.beforeContent,t.rightData=t.storeChangeData.afterContent},methods:{handleCardClose:function(){var t=this;t.customCancel()},customCancel:function(){var t=this;t.customDialog=!1,t.$emit("input",t.customDialog)}},watch:{value:function(t,e){var a=this;a.customDialog=t},storeChangeData:function(t,e){var a=this;a.leftData=t.beforeContent,a.rightData=t.afterContent}}},l=s,o=(a("3236"),a("2877")),r=Object(o["a"])(l,i,n,!1,null,"19a03e61",null);e["a"]=r.exports},"6ce2":function(t,e,a){t.exports=a.p+"img/member.1eda5d6c.png"},"71f6":function(t,e,a){"use strict";a.d(e,"a",(function(){return n}));a("ac6a"),a("456d");var i=a("b775");function n(t,e){t=t||{};var a=Object.keys(t);return a.forEach((function(a){var n=t[a];"string"===typeof n&&(n={url:n}),n.url="".concat(e).concat(n.url),t[a]=function(t,e){return Object(i["a"])(n,t,e)}})),t}},7828:function(t,e,a){},"910d":function(t,e,a){},"96b6":function(t,e,a){"use strict";var i=a("71f6"),n={getReview:"/audit/audit-list",getWxEnterprise:"/auth-enterprise-list",getStaffInfo:"/get-staff-info",postAudit:{url:"/audit/agree",method:"post",useFormData:!0,useIntercept:!1},postBatchApprove:{url:"/audit/batch-agree",method:"post",useFormData:!0,useIntercept:!1},postRefuse:{url:"/audit/refuse",method:"post",useFormData:!0,useIntercept:!1},getAuditDetail:"/audit/batch-log-list",getAuditGroupList:"/auditGroup/audit-group-list",delAuditGroup:"/auditGroup/del-audit-group",auditGroupDetail:"/auditGroup/audit-group-detail",editAuditGroup:{url:"/auditGroup/edit-audit-group",method:"post",useFormData:!0},addAuditGroup:{url:"/auditGroup/add-audit-group",method:"post",useFormData:!0},getAdminList:"/auditGroup/select-manager-list",auditItemList:"/auditGroup/audit-item-list",delAuditItem:"/auditGroup/del-audit-item",addAuditItem:"/auditGroup/add-audit-item",editAuditItem:"/auditGroup/edit-audit-item",auditItemDetail:"/auditGroup/audit-item-detail",findAuditSetting:"/audit/find-audit-setting",saveAuditSetting:"/audit/save-audit-setting"};n=Object(i["a"])(n,"/hb-manage-web"),e["a"]=n},c5ad:function(t,e,a){},d157:function(t,e,a){"use strict";a.d(e,"a",(function(){return i})),a.d(e,"b",(function(){return n})),a.d(e,"c",(function(){return s}));a("c5f6"),a("a481"),a("28a5"),a("6b54");function i(t,e){var a,i=e||200;return function(){var e=this,n=arguments;a&&clearTimeout(a),a=setTimeout((function(){a=null,t.apply(e,n)}),i)}}function n(t,e){var a,i,n=e||200;return function(){var e=this,s=arguments,l=+new Date;a&&l-a<n?(clearTimeout(i),i=setTimeout((function(){a=l,t.apply(e,s)}),n)):(a=l,t.apply(e,s))}}function s(t){return t=t.replace(/\uD83C[\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F]|[\uD800-\uDBFF]|[\uDC00-\uDFFF]|[^\u0020-\u007E\u00A0-\u00BE\u2E80-\uA4CF\uF900-\uFAFF\uFE30-\uFE4F\uFF00-\uFFEF\u0080-\u009F\u2000-\u201f\u2026\u2022\u20ac\r\n]/g,""),unescape(escape(t).replace(/\%uD.{3}/g,""))}},e230:function(t,e,a){"use strict";var i=a("71f6"),n={getSyncCheck:"/sync/sync-check",refreshWx:"/sync/sync-contact",getDepartmentList:"/department-list-level",getCompanyDepartList:"/contact/get-department-list",getStaffList:"/contact/get-staff-list",getStaffDetail:"/contact/staff-detail",getStaffRelation:"/bind/staff-clerk-relation",delStaffRelation:{url:"/bind/staff-unbind",method:"post",useFormData:!0,useIntercept:!1},addStaffRelation:{url:"/bind/staff-bind",method:"post",useFormData:!0,useIntercept:!1},getClerkRelation:"/bind/search-clerk-list",getWxEnterprise:"/auth-enterprise-list",getBindLog:"/bind/bind-log-list",getRefreshLog:"/sync/sync-task",getSyncFailDetail:"/sync-task-detail",getNationCode:"/nationcode/get-nationcode-list",getGicGroup:"/gic-department-list",getGicStore:"/get-store-list"};n=Object(i["a"])(n,"/hb-manage-web"),e["a"]=n},f989:function(t,e,a){"use strict";var i=a("c5ad"),n=a.n(i);n.a}}]); (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-6a8ab2e1"],{1005:function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"unreview-wrap common-set-wrap"},[i("div",{staticClass:"right-content"},[i("div",{staticClass:"right-box",staticStyle:{"min-height":"calc(100vh - 86px)"}},[i("div",{staticClass:"reviewed-body-head flex flex-space-between"},[i("div",[i("el-input",{staticClass:"w-344",attrs:{maxlength:"50",placeholder:"请输入提交人姓名/账号/手机号","prefix-icon":"el-icon-search",clearable:""},on:{clear:t.clearSearch},nativeOn:{keyup:function(e){return function(e){return t.searchEnterFun(e,t.searchInput)}(e)}},model:{value:t.searchValue,callback:function(e){t.searchValue=e},expression:"searchValue"}}),i("el-select",{staticClass:"w-130 m-l-10",attrs:{placeholder:"全部事项"},on:{change:t.changeTableList},model:{value:t.auditType,callback:function(e){t.auditType=e},expression:"auditType"}},t._l(t.filterOptions,(function(t){return i("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1),i("el-select",{staticClass:"w-168 m-l-10",attrs:{placeholder:"全部品牌"},on:{change:t.changeTableList},model:{value:t.filterBrand,callback:function(e){t.filterBrand=e},expression:"filterBrand"}},[i("el-option",{attrs:{label:"全部品牌",value:""}}),t._l(t.brandOptions,(function(t){return i("el-option",{key:t.enterpriseId,attrs:{label:t.enterpriseName,value:t.enterpriseId}})}))],2)],1),i("dm-perm-button",{attrs:{disabled:t.$itemPerm(t.$itemCode.batchAudit),type:"primary"},on:{click:t.approveAll}},[t._v("批量同意")])],1),i("div",{staticClass:"reviewed-body-content"},[i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],ref:"multipleTable",staticStyle:{width:"100%"},attrs:{data:t.tableData,"tooltip-effect":"dark"},on:{"selection-change":t.handleSelectionChange}},[i("el-table-column",{attrs:{type:"selection",width:"55"}}),i("el-table-column",{attrs:{label:"审核事项"},scopedSlots:t._u([{key:"default",fn:function(e){return[1==e.row.auditType?i("span",[t._v("导购账号绑定")]):t._e(),3==e.row.auditType?i("span",[t._v("导购账号新增")]):t._e()]}}])}),i("el-table-column",{attrs:{label:"提交人","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[i("div",{staticClass:"flex"},[i("el-popover",{attrs:{placement:"top",width:"300",trigger:"hover"},on:{show:function(a){return t.showSingleInfo(e.row.submitStaffId)}}},[i("div",{staticClass:"apply-info-detail"},[i("div",{staticClass:"flex"},[i("div",{staticClass:"apply-info-img flex-align-center flex-pack-center bg-82c5ff "},[t.userData.headImg?i("img",{attrs:{src:t.userData.headImg,alt:"img"}}):i("img",{attrs:{src:a("6ce2"),alt:"img"}})]),i("div",{staticClass:"flex flex-column apply-info-right flex-pack-center"},[i("div",{staticClass:"apply-info-name"},[i("span",{staticClass:"font-14 color-303133"},[t._v(t._s(t.userData.staffName||"--"))]),i("span",{staticClass:"font-14 color-90939"},[t._v("( "+t._s(1==t.userData.sex?"男":2==t.userData.sex?"女":"--")+")")])])])]),i("div",{staticClass:"flex flex-space-between line-26 m-t-15"},[i("div",{staticClass:"font-14 color-606266"},[t._v("账号")]),i("div",{staticClass:"font-14 color-303133"},[t._v(t._s(t.userData.wxUserId||"--"))])]),i("div",{staticClass:"flex flex-space-between line-26"},[i("div",{staticClass:"font-14 color-606266"},[t._v("职务")]),i("div",{staticClass:"font-14 color-303133"},[t._v(t._s(t.userData.postion||"--"))])]),i("div",{staticClass:"flex flex-space-between line-26"},[i("div",{staticClass:"font-14 color-606266"},[t._v("手机号")]),i("div",{staticClass:"font-14 color-303133"},[t._v(t._s(t.userData.nationCode||"--")+"-"+t._s(t.userData.phoneNumber||"--"))])]),i("div",{staticClass:"flex flex-space-between line-26"},[i("div",{staticClass:"font-14 color-606266 w-m-100"},[t._v("部门")]),i("div",{staticClass:"font-14 color-303133"},[t._v(t._s(t.userData.departmentInfo.map((function(t){return t.departmentName})).join(";")||"--"))])])]),i("div",{attrs:{slot:"reference"},slot:"reference"},[i("div",{staticClass:"flex flex-align-center flex-pack-center bg-82c5ff table-head-pic cursor-pointer"},[e.row.submitHeadImg?i("img",{attrs:{src:e.row.submitHeadImg,alt:"img"}}):i("img",{attrs:{src:a("6ce2"),alt:"img"}})])])]),i("div",{staticClass:"flex flex-column apply-info hide-ellipsis"},[i("span",{staticClass:"font-14 color-606266 hide-ellipsis"},[t._v(t._s(e.row.submitStaffName||"--"))]),i("span",{staticClass:"font-12 color-909399 hide-ellipsis"},[t._v(t._s(e.row.submitWxUserId||"--"))])])],1)]}}])}),i("el-table-column",{attrs:{label:"详情","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.content||"--")+"\n ")]}}])}),i("el-table-column",{attrs:{label:"提交时间","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[i("div",{staticClass:"line-h-18"},[t._v(t._s(t._f("timeStampToYmd")(e.row.createTime)))]),i("div",{staticClass:"line-h-18"},[t._v(t._s(t._f("timeStampToHms")(e.row.createTime)))])]}}])}),i("el-table-column",{attrs:{label:"操作",width:"150"},scopedSlots:t._u([{key:"default",fn:function(e){return[i("el-button",{attrs:{type:"text"},on:{click:function(a){return t.handleClick(e.$index,e.row)}}},[t._v("同意")]),i("el-button",{attrs:{type:"text"},on:{click:function(a){return t.handleClick(e.$index,e.row,"refuse")}}},[t._v("拒绝")])]}}])})],1),0!=t.tableData.length?i("div",{staticClass:"block common-wrap__page text-right"},[i("dm-pagination",{attrs:{background:"","current-page":t.currentPage,"page-sizes":[20,40,60,80],"page-size":t.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1):t._e()],1)])]),i("store-change",{attrs:{"store-change-data":t.storeChangeData},model:{value:t.showStoreDialog,callback:function(e){t.showStoreDialog=e},expression:"showStoreDialog"}}),i("el-dialog",{staticClass:"approve-dialog",attrs:{title:"",visible:t.approveVisible,width:"422px"},on:{"update:visible":function(e){t.approveVisible=e}}},[i("div",{staticClass:"approve-body text-center"},[i("div",[i("i",{staticClass:"el-icon-success"}),i("span",{staticClass:"approve-icon-tip"},[t._v("同意")])]),i("div",{staticClass:"approve-tip"},[t._v("是否确认同意")])]),i("div",{staticClass:"approve-footer dialog-footer",staticStyle:{"text-align":"center"},attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:function(e){t.approveVisible=!1}}},[t._v("取 消")]),i("el-button",{attrs:{type:"primary"},on:{click:t.sendApprove}},[t._v("确 定")])],1)]),i("el-dialog",{staticClass:"refuse-dialog",attrs:{title:"提示",visible:t.refuseVisible,"before-close":t.cancelRefuse,width:"422px"},on:{"update:visible":function(e){t.refuseVisible=e}}},[i("div",[i("div",{staticClass:"refuse-tip"},[t._v("请输入拒绝理由")]),i("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:t.ruleForm,rules:t.rules}},[i("el-form-item",{attrs:{label:"",prop:"refuseReason"}},[i("el-input",{staticClass:"font-14",attrs:{type:"textarea",placeholder:"最多 50 个字",rows:3},model:{value:t.ruleForm.refuseReason,callback:function(e){t.$set(t.ruleForm,"refuseReason",e)},expression:"ruleForm.refuseReason"}})],1)],1)],1),i("div",{staticClass:"approve-footer dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:function(e){return t.cancelRefuse("ruleForm")}}},[t._v("取 消")]),i("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.sendRefuse("ruleForm")}}},[t._v("确 定")])],1)]),i("review-result-detail",{attrs:{"audit-ids":t.auditIds,"success-count":t.successCount,"fail-count":t.failCount,"table-list-data":t.tableListData,"detail-show":t.detailShow},on:{hideDetailDialog:t.hideDetailDialog}}),i("el-dialog",{attrs:{title:"提示",visible:t.dialogVisible,width:"30%"},on:{"update:visible":function(e){t.dialogVisible=e}}},[i("span",[t._v("共"+t._s(t.multipleSelection.length)+"条审核事项,是否批量同意?")]),i("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:function(e){t.dialogVisible=!1}}},[t._v("取 消")]),i("el-button",{attrs:{type:"primary",loading:t.loadBtn},on:{click:function(e){t.postAllApprove(t.multipleSelection.map((function(t){return t.auditId})).join(","))}}},[t._v("确 定")])],1)])],1)},n=[],s=(a("28a5"),a("6300")),l=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{directives:[{name:"show",rawName:"v-show",value:t.customDialog,expression:"customDialog"}]},[a("el-dialog",{staticClass:"edit-dialog",attrs:{title:"审核详情",visible:t.customDialog,width:"600px","before-close":t.handleClose},on:{"update:visible":function(e){t.customDialog=e}}},[a("div",{staticClass:"edit-dialog-body"},[a("div",{staticClass:"font-14 color-606266 m-b-8"},[t._v("共 "+t._s(t.multLength||"")+" 条审核事项, "+t._s(t.successCount||"0")+" 条成功, "),a("span",{staticClass:"color-f5222d"},[t._v(t._s(t.failCount||"0")+" ")]),t._v(" 条失败,失败详情如下:")]),a("el-table",{staticStyle:{width:"100%"},attrs:{data:t.tableData,height:"332"}},[a("el-table-column",{attrs:{prop:"publishRecordId",label:"审核事项","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[1==e.row.auditType?a("span",[t._v("导购账号绑定")]):t._e(),3==e.row.auditType?a("span",[t._v("导购账号新增")]):t._e()]}}])}),a("el-table-column",{attrs:{label:"商户","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.enterpriseName||"--")+"\n ")]}}])}),a("el-table-column",{attrs:{label:"提交人","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.submitStaffName||"--")+"\n ")]}}])}),a("el-table-column",{attrs:{label:"提交时间",width:"120"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"color-606266 line-18"},[t._v(t._s(t._f("timeStampToYmd")(e.row.createTime))+" "+t._s(e.row.createTime?"":"--"))]),a("div",{staticClass:"color-606266 line-18"},[t._v(t._s(t._f("timeStampToHms")(e.row.createTime))+" "+t._s(e.row.createTime?"":"--"))])]}}])}),a("el-table-column",{attrs:{label:"状态"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",{class:["span-dot",1==e.row.auditFlag?"bg-52c41a":"bg-f5222d"]}),1==e.row.auditFlag?a("span",[t._v("已同意")]):t._e()]}}])}),a("el-table-column",{attrs:{label:"结果"},scopedSlots:t._u([{key:"default",fn:function(e){return[2==e.row.statusFlag&&1==e.row.auditFlag?a("span",[t._v("成功")]):t._e(),2==e.row.auditFlag?a("span",[t._v("--")]):t._e(),1==e.row.statusFlag&&1==e.row.auditFlag?a("el-popover",{attrs:{placement:"top",width:"200",trigger:"hover",content:e.row.reason}},[a("span",{staticClass:"common-bottom-border",attrs:{slot:"reference"},slot:"reference"},[t._v("失败")])]):t._e()]}}])})],1)],1)])],1)},o=[],r=(a("c5f6"),a("96b6")),u=r["a"].getAuditDetail,c={name:"ReviewResultDetail",props:{detailShow:{type:Boolean,default:!1},auditIds:{type:String,default:function(){return""}},tableListData:{type:[Array,Object],default:function(){return[]}},failCount:{type:[String,Number],default:function(){return 0}},successCount:{type:[String,Number],default:function(){return 0}}},data:function(){return{customDialog:!1,tableData:[]}},mounted:function(){var t=this;t.customDialog=t.detailShow,t.auditIds&&(t.multLength=t.auditIds.split(",").length,t.tableData=JSON.parse(JSON.stringify(t.tableListData)))},methods:{handleClose:function(t){var e=this;t(),e.hideDialog()},customCancel:function(){var t=this;t.hideDialog()},hideDialog:function(){var t=this;t.customDialog=!1,t.$emit("hideDetailDialog")},getTableData:function(){var t=this,e={auditIds:t.auditIds};u(e).then((function(e){t.tableData=e.result.resultList||[],t.fail=e.result.fail,t.success=e.result.success})).catch((function(t){}))}},watch:{detailShow:function(t,e){var a=this;a.customDialog=t},auditIds:function(t,e){var a=this;t&&(a.multLength=t.split(",").length)},tableListData:function(t,e){var a=this;a.tableData=JSON.parse(JSON.stringify(t))}}},d=c,f=(a("f989"),a("2877")),p=Object(f["a"])(d,l,o,!1,null,"5fc372f8",null),g=p.exports,m=a("5b4e"),h=a("d157"),v=a("e230"),b=v["a"].getStaffDetail,w=r["a"].getReview,C=r["a"].getWxEnterprise,D=r["a"].postAudit,_=r["a"].postBatchApprove,y=r["a"].postRefuse,S=r["a"].getAuditDetail,x={name:"UnreviewPage",components:{storeChange:s["a"],reviewResultDetail:g},data:function(){return{wxEnterpriseId:localStorage.getItem("haoBanUser")?JSON.parse(localStorage.getItem("haoBanUser")).wxEnterpriseId:"",auditName:localStorage.getItem("haoBanUser")?JSON.parse(localStorage.getItem("haoBanUser")).staffName:"",auditType:"",filterBrand:"",brandOptions:[],searchValue:"",filterOptions:[{label:"全部事项",value:""},{label:"导购账号绑定",value:"1"},{label:"导购账号新增",value:"3"}],loading:!1,tableData:[],multipleSelection:[],currentPage:1,pageSize:20,total:0,selectId:"",ruleForm:{refuseReason:""},rules:{refuseReason:[{required:!0,message:"拒绝理由不能为空",trigger:"change"},{min:1,max:50,message:"长度在 1 到 50 个字",trigger:"change"}]},showStoreDialog:!1,storeChangeData:{beforeContent:[],afterContent:[]},approveVisible:!1,refuseVisible:!1,detailShow:!1,resultShow:!1,tableListData:[],resultText:"",failCount:0,successCount:0,userData:{staffName:"",phoneNumber:"",nationCode:"",postion:"",departmentInfo:[],headImg:"",wxUserId:"",sex:1},dialogVisible:!1,loadBtn:!1,timeFlag:null,loadingFull:""}},mounted:function(){var t=this;t.$emit("showTab","/unreview"),t.getTableList(),t.getBrandData()},beforeDestroy:function(){window.clearInterval(this.timeFlag),this.timeFlag=null},methods:{clearSearch:function(){var t=this;t.currentPage=1,t.getTableList()},changeTableList:function(){var t=this;t.currentPage=1,t.getTableList()},searchEnterFun:Object(h["a"])((function(t){var e=this,a=String(t.target.value).trim();if(!a)return!1;e.currentPage=1,e.getTableList()}),200),hideDetailDialog:function(){var t=this;t.detailShow=!1,t.currentPage=1,t.getTableList()},handleSelectionChange:function(t){var e=this;e.multipleSelection=t},handleSizeChange:function(t){var e=this;e.currentPage=1,e.pageSize=t,e.getTableList()},handleCurrentChange:function(t){var e=this;e.currentPage=t,e.getTableList()},handleClick:function(t,e,a){var i=this;if(i.selectId=e.auditId,a&&(i.refuseVisible=!0),a)return!1;i.$confirm("是否确认同意?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){i.sendApprove()})).catch((function(){i.selectId=""}))},sendApprove:Object(h["a"])((function(){var t=this;t.postApprove(t.selectId)}),500),postApprove:function(t){var e=this,a={auditId:t,auditName:e.auditName};D(a).then((function(t){"0000"==t.code?(m["a"].showmsg("操作成功","success"),e.approveVisible=!1,e.currentPage=1,e.getTableList(),e.$forceUpdate()):(e.currentPage=1,e.getTableList(),e.$message({message:t.message||"接口异常",type:"warning"}))})).catch((function(t){}))},approveAll:function(){var t=this,e=t.multipleSelection.length?t.multipleSelection.map((function(t){return t.auditId})).join(","):"";if(!e)return t.$message({message:"请至少选择一条审核事项",type:"warning"}),!1;t.dialogVisible=!0},postAllApprove:function(t){var e=this;e.loadBtn=!0;var a={auditIds:t,auditName:e.auditName};_(a).then((function(t){e.loadBtn=!1,"0000"==t.code?(e.dialogVisible=!1,e.$nextTick((function(){e.loadingFull=e.$loading({lock:!0,text:"数据处理中,请耐心等待",spinner:"el-icon-loading",background:"rgba(0, 0, 0, 0.7)"}),window.clearInterval(e.timeFlag),e.timeFlag=null,e.timeFlag=window.setInterval((function(){e.getDetailFlag()}),3e3),e.$once("hook:beforeDestroy",(function(){window.clearInterval(e.timeFlag),e.timeFlag=null}))}))):e.$message({message:t.message||"接口异常",type:"warning"})})).catch((function(t){e.loadBtn=!1}))},getDetailFlag:function(){var t=this,e={auditIds:t.multipleSelection.map((function(t){return t.auditId})).join(",")||""};S(e).then((function(e){e.result.auditResult?(t.auditIds=t.multipleSelection.map((function(t){return t.auditId})).join(","),t.loadingFull.close(),window.clearInterval(t.timeFlag),t.timeFlag=null,t.tableListData=e.result.resultList||[],t.failCount=e.result.fail||0,t.successCount=e.result.success||0,t.detailShow=!0,t.currentPage=1,t.getTableList()):(t.tableListData=[],t.detailShow=!1)})).catch((function(t){}))},cancelRefuse:function(t){var e=this;e.refuseVisible=!1,e.$refs["ruleForm"].resetFields()},sendRefuse:Object(h["a"])((function(t){var e=this;e.$refs[t].validate((function(t){if(!t)return!1;e.postRefuseData()}))}),500),postRefuseData:function(){var t=this,e={auditName:t.auditName,auditId:t.selectId,reason:Object(h["c"])(t.ruleForm.refuseReason)};y(e).then((function(e){"0000"==e.code?(m["a"].showmsg("操作成功","success"),t.refuseVisible=!1,t.$refs["ruleForm"].resetFields(),t.currentPage=1,t.getTableList()):(t.$message({message:e.message||"接口异常",type:"warning"}),t.currentPage=1,t.getTableList())})).catch((function(e){t.$message.error({duration:1e3,message:e.message})}))},showSingleInfo:function(t){var e=this,a={staffId:t};b(a).then((function(t){e.userData=t.result||{staffName:"",phoneNumber:"",nationCode:"",postion:"",departmentInfo:[],headImg:"",wxUserId:"",sex:1}})).catch((function(t){}))},showStoreChange:function(t){var e=this;e.storeChangeData={beforeContent:[],afterContent:[]},e.showStoreDialog=!0,e.storeChangeData={beforeContent:""!=t.oldValue?t.oldValue.split(","):[],afterContent:""!=t.newValue?t.newValue.split(","):[]}},getBrandData:function(){var t=this;C({wxEnterpriseId:t.wxEnterpriseId}).then((function(e){t.brandOptions=e.result||[]})).catch((function(t){}))},getTableList:function(){var t=this;t.loading=!0;var e={wxEnterpriseId:t.wxEnterpriseId,auditType:t.auditType,searchType:"0",search:t.searchValue,pageNum:t.currentPage,pageSize:t.pageSize,enterpriseId:t.filterBrand};w(e).then((function(e){t.loading=!1,t.tableData=e.result.result||[],t.total=e.result.totalCount})).catch((function(e){t.loading=!1}))}}},I=x,F=(a("1893"),Object(f["a"])(I,i,n,!1,null,"efea5cb2",null));e["default"]=F.exports},1893:function(t,e,a){"use strict";var i=a("7828"),n=a.n(i);n.a},"28a5":function(t,e,a){"use strict";var i=a("aae3"),n=a("cb7c"),s=a("ebd6"),l=a("0390"),o=a("9def"),r=a("5f1b"),u=a("520a"),c=a("79e5"),d=Math.min,f=[].push,p="split",g="length",m="lastIndex",h=4294967295,v=!c((function(){RegExp(h,"y")}));a("214f")("split",2,(function(t,e,a,c){var b;return b="c"=="abbc"[p](/(b)*/)[1]||4!="test"[p](/(?:)/,-1)[g]||2!="ab"[p](/(?:ab)*/)[g]||4!="."[p](/(.?)(.?)/)[g]||"."[p](/()()/)[g]>1||""[p](/.?/)[g]?function(t,e){var n=String(this);if(void 0===t&&0===e)return[];if(!i(t))return a.call(n,t,e);var s,l,o,r=[],c=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),d=0,p=void 0===e?h:e>>>0,v=new RegExp(t.source,c+"g");while(s=u.call(v,n)){if(l=v[m],l>d&&(r.push(n.slice(d,s.index)),s[g]>1&&s.index<n[g]&&f.apply(r,s.slice(1)),o=s[0][g],d=l,r[g]>=p))break;v[m]===s.index&&v[m]++}return d===n[g]?!o&&v.test("")||r.push(""):r.push(n.slice(d)),r[g]>p?r.slice(0,p):r}:"0"[p](void 0,0)[g]?function(t,e){return void 0===t&&0===e?[]:a.call(this,t,e)}:a,[function(a,i){var n=t(this),s=void 0==a?void 0:a[e];return void 0!==s?s.call(a,n,i):b.call(String(n),a,i)},function(t,e){var i=c(b,t,this,e,b!==a);if(i.done)return i.value;var u=n(t),f=String(this),p=s(u,RegExp),g=u.unicode,m=(u.ignoreCase?"i":"")+(u.multiline?"m":"")+(u.unicode?"u":"")+(v?"y":"g"),w=new p(v?u:"^(?:"+u.source+")",m),C=void 0===e?h:e>>>0;if(0===C)return[];if(0===f.length)return null===r(w,f)?[f]:[];var D=0,_=0,y=[];while(_<f.length){w.lastIndex=v?_:0;var S,x=r(w,v?f:f.slice(_));if(null===x||(S=d(o(w.lastIndex+(v?0:_)),f.length))===D)_=l(f,_,g);else{if(y.push(f.slice(D,_)),y.length===C)return y;for(var I=1;I<=x.length-1;I++)if(y.push(x[I]),y.length===C)return y;_=D=S}}return y.push(f.slice(D)),y}]}))},3236:function(t,e,a){"use strict";var i=a("910d"),n=a.n(i);n.a},"5b4e":function(t,e,a){"use strict";var i=a("5c96");e["a"]={showmsg:function(t,e){Object(i["Message"])({duration:1e3,message:t||"接口异常",type:e})}}},6300:function(t,e,a){"use strict";var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"custom-dialog-wrap"},[a("el-dialog",{attrs:{title:"门店图片变更",visible:t.customDialog,width:"600px","before-close":t.handleCardClose},on:{"update:visible":function(e){t.customDialog=e}}},[a("div",{staticClass:"dialog-content"},[a("el-row",[a("el-col",{attrs:{span:11}},[a("div",{staticClass:"grid-content bg-purple-dark"},[t._v("\n 变更前\n ")]),a("div",{staticClass:"data-body"},[a("div",{staticClass:"data-body-content flex flex-column"},[t._l(t.leftData,(function(t,e){return[a("img",{key:"img"+e,attrs:{src:t,alt:""}})]}))],2)])]),a("el-col",{attrs:{span:11}},[a("div",{staticClass:"grid-content bg-purple-dark"},[t._v("\n 变更后\n ")]),a("div",{staticClass:"data-body"},[a("div",{staticClass:"data-body-content flex flex-column"},[t._l(t.rightData,(function(t,e){return[a("img",{key:"img0"+e,attrs:{src:t,alt:""}})]}))],2)])])],1)],1)])],1)},n=[],s={name:"StoreChangeDialog",props:{value:{type:Boolean,default:!1},storeChangeData:{type:[Object,Array]}},data:function(){return{repProjectName:"haoban-web",customDialog:this.value,leftData:[],rightData:[]}},mounted:function(){var t=this;t.leftData=t.storeChangeData.beforeContent,t.rightData=t.storeChangeData.afterContent},methods:{handleCardClose:function(){var t=this;t.customCancel()},customCancel:function(){var t=this;t.customDialog=!1,t.$emit("input",t.customDialog)}},watch:{value:function(t,e){var a=this;a.customDialog=t},storeChangeData:function(t,e){var a=this;a.leftData=t.beforeContent,a.rightData=t.afterContent}}},l=s,o=(a("3236"),a("2877")),r=Object(o["a"])(l,i,n,!1,null,"19a03e61",null);e["a"]=r.exports},"6ce2":function(t,e,a){t.exports=a.p+"img/member.1eda5d6c.png"},"71f6":function(t,e,a){"use strict";a.d(e,"a",(function(){return n}));a("ac6a"),a("456d");var i=a("b775");function n(t,e){t=t||{};var a=Object.keys(t);return a.forEach((function(a){var n=t[a];"string"===typeof n&&(n={url:n}),n.url="".concat(e).concat(n.url),t[a]=function(t,e){return Object(i["a"])(n,t,e)}})),t}},7828:function(t,e,a){},"910d":function(t,e,a){},"96b6":function(t,e,a){"use strict";var i=a("71f6"),n={getReview:"/audit/audit-list",getWxEnterprise:"/auth-enterprise-list",getStaffInfo:"/get-staff-info",postAudit:{url:"/audit/agree",method:"post",useFormData:!0,useIntercept:!1},postBatchApprove:{url:"/audit/batch-agree",method:"post",useFormData:!0,useIntercept:!1},postRefuse:{url:"/audit/refuse",method:"post",useFormData:!0,useIntercept:!1},getAuditDetail:"/audit/batch-log-list",getAuditGroupList:"/auditGroup/audit-group-list",delAuditGroup:"/auditGroup/del-audit-group",auditGroupDetail:"/auditGroup/audit-group-detail",editAuditGroup:{url:"/auditGroup/edit-audit-group",method:"post",useFormData:!0},addAuditGroup:{url:"/auditGroup/add-audit-group",method:"post",useFormData:!0},getAdminList:"/auditGroup/select-manager-list",auditItemList:"/auditGroup/audit-item-list",delAuditItem:"/auditGroup/del-audit-item",addAuditItem:"/auditGroup/add-audit-item",editAuditItem:"/auditGroup/edit-audit-item",auditItemDetail:"/auditGroup/audit-item-detail",findAuditSetting:"/audit/find-audit-setting",saveAuditSetting:"/audit/save-audit-setting"};n=Object(i["a"])(n,"/hb-manage-web"),e["a"]=n},c5ad:function(t,e,a){},d157:function(t,e,a){"use strict";a.d(e,"a",(function(){return i})),a.d(e,"b",(function(){return n})),a.d(e,"c",(function(){return s}));a("c5f6"),a("a481"),a("28a5"),a("6b54");function i(t,e){var a,i=e||200;return function(){var e=this,n=arguments;a&&clearTimeout(a),a=setTimeout((function(){a=null,t.apply(e,n)}),i)}}function n(t,e){var a,i,n=e||200;return function(){var e=this,s=arguments,l=+new Date;a&&l-a<n?(clearTimeout(i),i=setTimeout((function(){a=l,t.apply(e,s)}),n)):(a=l,t.apply(e,s))}}function s(t){return t=t.replace(/\uD83C[\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F]|[\uD800-\uDBFF]|[\uDC00-\uDFFF]|[^\u0020-\u007E\u00A0-\u00BE\u2E80-\uA4CF\uF900-\uFAFF\uFE30-\uFE4F\uFF00-\uFFEF\u0080-\u009F\u2000-\u201f\u2026\u2022\u20ac\r\n]/g,""),unescape(escape(t).replace(/\%uD.{3}/g,""))}},e230:function(t,e,a){"use strict";var i=a("71f6"),n={getSyncCheck:"/sync/sync-check",refreshWx:"/sync/sync-contact",getDepartmentList:"/department-list-level",getCompanyDepartList:"/contact/get-department-list",getStaffList:"/contact/get-staff-list",getStaffDetail:"/contact/staff-detail",getStaffRelation:"/bind/staff-clerk-relation",delStaffRelation:{url:"/bind/staff-unbind",method:"post",useFormData:!0,useIntercept:!1},addStaffRelation:{url:"/bind/staff-bind",method:"post",useFormData:!0,useIntercept:!1},getClerkRelation:"/bind/search-clerk-list",getWxEnterprise:"/auth-enterprise-list",getBindLog:"/bind/bind-log-list",getRefreshLog:"/sync/sync-task",getSyncFailDetail:"/sync-task-detail",getNationCode:"/get-nation-code-list",getGicGroup:"/gic-department-list",getGicStore:"/get-store-list"};n=Object(i["a"])(n,"/hb-manage-web"),e["a"]=n},f989:function(t,e,a){"use strict";var i=a("c5ad"),n=a.n(i);n.a}}]);
\ No newline at end of file \ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-90312de2"],{"6b47":function(t,a,i){"use strict";var s=i("ece8"),o=i.n(s);o.a},c686:function(t,a,i){"use strict";i.r(a);var s=function(){var t=this,a=t.$createElement,i=t._self._c||a;return i("div",{staticClass:"app-auth-body"},[t._m(0),i("div",{staticClass:"app-auth-info"},[i("div",{staticClass:"app-info-body"},[i("div",{staticClass:"app-info-title"},[t._v("应用授权")]),i("div",{staticClass:"app-info-detail"},[i("div",{staticClass:"flex app-top"},[i("div",{staticClass:"app-img"},[i("img",{attrs:{src:t.appInfo.iconUrl,alt:"app"}})]),i("div",{staticClass:"flex flex-column p-l-12 flex-space-between"},[i("div",{staticClass:"font-14 color-303133 line-h-22"},[t._v(t._s(t.appInfo.applicationName))]),i("div",{staticClass:"font-12 color-606266 line-h-20"},[t._v(t._s(t.appInfo.introduction))])])]),i("div",{staticClass:"auth-rights"},[i("div",{staticClass:"auth-rights-title font-14 color-909399"},[t._v("授权后将允许"+t._s(t.appInfo.applicationName||"")+"应用进行以下权限操作")]),i("div",[i("ul",t._l(t.rightsList,(function(a,s){return i("li",{key:s+"right",staticClass:"font-14 color-303133"},[t._v(t._s(a.rightsName))])})),0)])])]),i("div",{staticClass:"app-info-btn"},[i("el-checkbox",{staticClass:"p-r-10",model:{value:t.checkAuth,callback:function(a){t.checkAuth=a},expression:"checkAuth"}}),i("el-button",{attrs:{type:"text"},on:{click:t.toProtocol}},[t._v("授权同意《达摩授权服务协议》")]),i("el-button",{attrs:{disabled:!t.checkAuth,type:"primary"},on:{click:function(a){return a.stopPropagation(),t.toAuthRights(a)}}},[t._v("授权")])],1)])])])},o=[function(){var t=this,a=t.$createElement,s=t._self._c||a;return s("div",{staticClass:"app-auth-head"},[s("img",{attrs:{src:i("cf05"),alt:"logo"}}),s("span",{staticClass:"web-name"},[t._v("好办管理平台")])])}],n={name:"AppAuth",components:{},data:function(){return{appInfo:{appId:"",applicationName:"",introduction:"",iconUrl:"https://pic01-10001430.image.myqcloud.com/69918371857506304/1594638566081_O1zMw.jpg",rights:""},checkAuth:!1,rightsList:[]}},mounted:function(){var t=this;t.getAppData()},methods:{toProtocol:function(){window.open("/app-center/protocol","_blank","noopener")},toAuthRights:function(){var t=this;t.$router.push("/")},getAppData:function(){var t=this;t.appInfo={}}},watch:{}},c=n,e=(i("6b47"),i("2877")),p=Object(e["a"])(c,s,o,!1,null,"1b9a02d6",null);a["default"]=p.exports},cf05:function(t,a,i){t.exports=i.p+"img/logo.861ef5c7.png"},ece8:function(t,a,i){}}]);
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-b9a7d4fe"],{"28a5":function(t,e,a){"use strict";var n=a("aae3"),o=a("cb7c"),s=a("ebd6"),l=a("0390"),r=a("9def"),i=a("5f1b"),c=a("520a"),u=a("79e5"),p=Math.min,f=[].push,d="split",g="length",h="lastIndex",v=4294967295,m=!u((function(){RegExp(v,"y")}));a("214f")("split",2,(function(t,e,a,u){var b;return b="c"=="abbc"[d](/(b)*/)[1]||4!="test"[d](/(?:)/,-1)[g]||2!="ab"[d](/(?:ab)*/)[g]||4!="."[d](/(.?)(.?)/)[g]||"."[d](/()()/)[g]>1||""[d](/.?/)[g]?function(t,e){var o=String(this);if(void 0===t&&0===e)return[];if(!n(t))return a.call(o,t,e);var s,l,r,i=[],u=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),p=0,d=void 0===e?v:e>>>0,m=new RegExp(t.source,u+"g");while(s=c.call(m,o)){if(l=m[h],l>p&&(i.push(o.slice(p,s.index)),s[g]>1&&s.index<o[g]&&f.apply(i,s.slice(1)),r=s[0][g],p=l,i[g]>=d))break;m[h]===s.index&&m[h]++}return p===o[g]?!r&&m.test("")||i.push(""):i.push(o.slice(p)),i[g]>d?i.slice(0,d):i}:"0"[d](void 0,0)[g]?function(t,e){return void 0===t&&0===e?[]:a.call(this,t,e)}:a,[function(a,n){var o=t(this),s=void 0==a?void 0:a[e];return void 0!==s?s.call(a,o,n):b.call(String(o),a,n)},function(t,e){var n=u(b,t,this,e,b!==a);if(n.done)return n.value;var c=o(t),f=String(this),d=s(c,RegExp),g=c.unicode,h=(c.ignoreCase?"i":"")+(c.multiline?"m":"")+(c.unicode?"u":"")+(m?"y":"g"),_=new d(m?c:"^(?:"+c.source+")",h),w=void 0===e?v:e>>>0;if(0===w)return[];if(0===f.length)return null===i(_,f)?[f]:[];var C=0,y=0,k=[];while(y<f.length){_.lastIndex=m?y:0;var S,x=i(_,m?f:f.slice(y));if(null===x||(S=p(r(_.lastIndex+(m?0:y)),f.length))===C)y=l(f,y,g);else{if(k.push(f.slice(C,y)),k.length===w)return k;for(var T=1;T<=x.length-1;T++)if(k.push(x[T]),k.length===w)return k;y=C=S}}return k.push(f.slice(C)),k}]}))},"29b6":function(t,e,a){"use strict";var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"nav-wrap border-box"},[a("el-breadcrumb",{attrs:{"separator-class":"el-icon-arrow-right"}},[t._l(t.navpath,(function(e,n){return[e.path?[a("el-breadcrumb-item",{key:"nav"+n,attrs:{to:{path:e.path}},on:{click:function(a){return t.changeRoute(e.path,e.relocation)}}},[a("span",{staticClass:"el-breadcrumb__inner is-link",on:{click:function(a){return t.changeRoute(e.path,e.relocation)}}},[t._v("\n "+t._s(e.name)+"\n ")])])]:[a("el-breadcrumb-item",{key:"nav"+n},[t._v(t._s(e.name))])]]}))],2)],1)},o=[],s={name:"NavPath",props:{navpath:{type:Array,default:function(){return[]}}},data:function(){return{projectName:"member"}},methods:{changeRoute:function(t,e){var a=this;e?window.location.href=t:a.$router.push(t)}}},l=s,r=(a("6b4b"),a("2877")),i=Object(r["a"])(l,n,o,!1,null,"2c2a2724",null);e["a"]=i.exports},3081:function(t,e,a){"use strict";var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"common-alert-tip"},[a("div",{style:{"min-width":t.width}},[a("div",{staticClass:"el-alert el-alert--info flex flex-align-start",style:{width:t.width},attrs:{role:"alert"}},[a("i",{staticClass:"el-alert__icon el-icon-info font-12 color-2f54eb"}),a("div",{staticClass:"el-alert__content"},[a("span",{staticClass:"el-alert__title color-606266 font-13"},[t._v("\n "+t._s(t.tipContent)+"\n ")]),t.tipTwoContent?a("div",{staticClass:"el-alert__title color-606266 font-13"},[t._v("\n "+t._s(t.tipTwoContent)+"\n ")]):t._e()])])])])},o=[],s={name:"CommonAlertTip",components:{},props:{width:{type:String,default:"645px"},tipContent:{type:String,default:""},tipTwoContent:{type:String,default:""}},data:function(){return{}}},l=s,r=a("2877"),i=Object(r["a"])(l,n,o,!1,null,"537f2e35",null);e["a"]=i.exports},"6b4b":function(t,e,a){"use strict";var n=a("76d4"),o=a.n(n);o.a},"71f6":function(t,e,a){"use strict";a.d(e,"a",(function(){return o}));a("ac6a"),a("456d");var n=a("b775");function o(t,e){t=t||{};var a=Object.keys(t);return a.forEach((function(a){var o=t[a];"string"===typeof o&&(o={url:o}),o.url="".concat(e).concat(o.url),t[a]=function(t,e){return Object(n["a"])(o,t,e)}})),t}},"73d2":function(t,e,a){"use strict";var n=a("f102"),o=a.n(n);o.a},"76d4":function(t,e,a){},"7f7f":function(t,e,a){var n=a("86cc").f,o=Function.prototype,s=/^\s*function ([^ (]*)/,l="name";l in o||a("9e1e")&&n(o,l,{configurable:!0,get:function(){try{return(""+this).match(s)[1]}catch(t){return""}}})},"8fac":function(t,e,a){},b155:function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"my-customer-wrap common-set-wrap"},[a("nav-crumb",{attrs:{navpath:t.navpath}}),a("div",{staticClass:"right-content"},[a("div",{staticClass:"right-box",staticStyle:{"min-height":"calc(100vh - 86px)"}},[a("div",{staticClass:"apps-content flex",staticStyle:{"min-height":"calc(100vh - 86px)"}},[a("div",{staticClass:"apps-content-right"},[a("el-tabs",{on:{"tab-click":t.handleClick},model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},[a("el-tab-pane",{attrs:{label:"绑定变更日志",name:"first"}},[a("div",{staticClass:"flex flex-space-between"},[a("div",{},[a("el-input",{staticClass:"w-293",attrs:{placeholder:"请输入导购手机号或代码","prefix-icon":"el-icon-search",clearable:""},on:{clear:t.clearInput},nativeOn:{keyup:function(e){return function(e){return t.toInput(e,t.searchInput)}(e)}},model:{value:t.searchInput,callback:function(e){t.searchInput=e},expression:"searchInput"}}),a("el-select",{staticClass:"w-168 m-l-10",attrs:{placeholder:"请选择"},on:{change:t.changeBindList},model:{value:t.optType,callback:function(e){t.optType=e},expression:"optType"}},[a("el-option",{attrs:{label:"全部状态",value:""}}),a("el-option",{attrs:{label:"绑定",value:"0"}}),a("el-option",{attrs:{label:"解绑",value:"1"}})],1)],1),a("common-alert-tip",{attrs:{width:"284px","tip-content":t.tipContent}})],1),a("div",{staticClass:"m-t-20"},[a("el-table",{ref:"multipleTable",staticClass:"select-table",style:{width:"100%"},attrs:{data:t.tableBindData,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{prop:"",label:"类型","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(0==e.row.optType?"绑定":"解绑"))]}}])}),a("el-table-column",{attrs:{label:"导购账号"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-popover",{attrs:{placement:"top",width:"242",trigger:"hover"}},[a("div",[a("div",{staticClass:"flex flex-space-between line-28"},[a("span",{staticClass:"font-14 color-606266"},[t._v("姓名")]),a("span",{staticClass:"font-14 color-303133"},[t._v(t._s(e.row.clerkName||"--")+"("+t._s(1==e.row.sex?"男":2==e.row.sex?"女":"--")+" )")])]),a("div",{staticClass:"flex flex-space-between line-28"},[a("span",{staticClass:"font-14 color-606266"},[t._v("手机号")]),a("span",{staticClass:"font-14 color-303133"},[t._v(t._s(e.row.clerkNationCode||"--")+"-"+t._s(e.row.clerkPhoneNumber||"--"))])]),a("div",{staticClass:"flex flex-space-between line-28"},[a("span",{staticClass:"font-14 color-606266 min-w-90"},[t._v("所在门店")]),a("span",{staticClass:"font-14 color-303133"},[t._v(t._s(e.row.storeName||"--"))])])]),a("span",{staticClass:"common-bottom-border",attrs:{slot:"reference"},slot:"reference"},[t._v(t._s(e.row.clerkName||"--")+"("+t._s(e.row.clerkCode||"--")+")")])])]}}])}),a("el-table-column",{attrs:{label:"企微账号","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.wxUserId||"--"))]}}])}),a("el-table-column",{attrs:{label:"手机号","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.phoneNumber||"--"))]}}])}),a("el-table-column",{attrs:{prop:"",label:"更新时间","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"line-h-18"},[t._v(t._s(t._f("timeStampToYmd")(e.row.updateTime))+" "+t._s(e.row.updateTime?"":"--"))]),a("div",{staticClass:"line-h-18"},[t._v(t._s(t._f("timeStampToHms")(e.row.updateTime))+" "+t._s(e.row.updateTime?"":"--"))])]}}])}),a("el-table-column",{attrs:{label:"操作人","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.optStaffName||"--"))]}}])}),a("el-table-column",{attrs:{prop:"",label:"原因","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[1001==e.row.channelCode?a("span",{attrs:{type:"text"}},[t._v("后台管理员绑定")]):t._e(),1002==e.row.channelCode?a("span",{attrs:{type:"text"}},[t._v("好办客户端绑定")]):t._e(),1003==e.row.channelCode?a("span",{attrs:{type:"text"}},[t._v("审核绑定")]):t._e(),1004==e.row.channelCode?a("span",{attrs:{type:"text"}},[t._v("GIC 同步绑定")]):t._e(),1005==e.row.channelCode?a("span",{attrs:{type:"text"}},[t._v("企业同步绑定")]):t._e(),2001==e.row.channelCode?a("span",{attrs:{type:"text"}},[t._v("后台管理员解绑")]):t._e(),2002==e.row.channelCode?a("span",{attrs:{type:"text"}},[t._v("好办客户端解绑")]):t._e(),2003==e.row.channelCode?a("span",{attrs:{type:"text"}},[t._v("GIC 同步解绑")]):t._e(),2004==e.row.channelCode?a("span",{attrs:{type:"text"}},[t._v("企业同步解绑")]):t._e(),2005==e.row.channelCode?a("span",{attrs:{type:"text"}},[t._v("授权范围变更解绑")]):t._e()]}}])})],1),0!=t.tableBindData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("dm-pagination",{attrs:{background:"","current-page":t.currentPage,"page-sizes":[20,40,60,80],"page-size":t.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1):t._e()],1)]),a("el-tab-pane",{attrs:{label:"通讯录刷新日志",name:"second"}},[a("div",{staticClass:"flex flex-space-between"},[a("common-alert-tip",{attrs:{width:"284px","tip-content":"仅保存近一年的日志"}})],1),a("div",{staticClass:"m-t-20"},[a("el-table",{ref:"multipleTable",staticClass:"select-table",style:{width:"100%",minHeight:t.tableH},attrs:{data:t.tableData,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{label:"提交人","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.optName||"--"))]}}])}),a("el-table-column",{attrs:{prop:"",label:"同步时间","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"line-18"},[t._v(t._s(t._f("timeStampToYmd")(e.row.createTime))+t._s(e.row.createTime?"":"--"))]),a("div",{staticClass:"line-18"},[t._v(t._s(t._f("timeStampToHms")(e.row.createTime))+t._s(e.row.createTime?"":"--"))])]}}])}),a("el-table-column",{attrs:{prop:"",label:"完成时间","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"line-18"},[t._v(t._s(t._f("timeStampToYmd")(e.row.updateTime))+t._s(e.row.updateTime?"":"--"))]),a("div",{staticClass:"line-18"},[t._v(t._s(t._f("timeStampToHms")(e.row.updateTime))+t._s(e.row.updateTime?"":"--"))])]}}])}),a("el-table-column",{attrs:{prop:"",label:"同步内容","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(t._f("'--'")(e.row.taskDesc)))]}}])}),a("el-table-column",{attrs:{prop:"",label:"状态","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",{class:["span-dot",4==e.row.statusFlag?"bg-52c41a":"bg-f5222d"]}),4==e.row.statusFlag?a("span",{staticClass:"font-14 color-606266"},[t._v(t._s(4==e.row.statusFlag?"成功":""))]):t._e(),0==e.row.statusFlag?a("span",{staticClass:"font-14 color-606266"},[t._v("初始化")]):t._e(),1==e.row.statusFlag||2==e.row.statusFlag||3==e.row.statusFlag?a("span",{staticClass:"font-14 color-606266"},[t._v("分组/门店/成员同步中")]):t._e(),5==e.row.statusFlag||6==e.row.statusFlag?a("el-popover",{staticClass:"item",attrs:{trigger:"hover",content:5==e.row.statusFlag?"完成有错误":"有错误关闭",placement:"top"}},[a("span",{staticClass:"common-bottom-border",attrs:{slot:"reference"},slot:"reference"},[t._v("失败")])]):t._e()]}}])})],1),0!=t.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("dm-pagination",{attrs:{background:"","current-page":t.currentPage,"page-sizes":[20,40,60,80],"page-size":t.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1):t._e()],1)])],1)],1)])])]),t.logShow?a("fail-log",{attrs:{"task-id":t.taskId},on:{closeLog:t.closeLog}}):t._e()],1)},o=[],s=(a("7f7f"),function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("el-dialog",{attrs:{title:"查看失败日志",visible:t.dialogVisible,width:"995px","before-close":t.handleClose},on:{"update:visible":function(e){t.dialogVisible=e}}},[a("div",{staticClass:"overstore-tip"},[a("div",{staticClass:"el-alert el-alert--info flex flex-align-start",attrs:{role:"alert"}},[a("i",{staticClass:"el-alert__icon el-icon-info font-12 color-2f54eb"}),a("div",{staticClass:"el-alert__content"},[a("span",{staticClass:"el-alert__title color-606266 font-14"},[t._v("失败可能:分组创建失败或门店及成员创建失败"),a("br"),t._v("\n 通讯录同步分为两步串联创建:"),a("br"),t._v("\n 第一步同步分组,若出现分组创建失败,则分组及下面的门店及成员均会创建失败"),a("br"),t._v("\n 第二步同步门店及成员,若分组创建成功,会同步门店及成员,若门店创建失败,则门店下成员也会创建失败")])])])]),a("div",{staticClass:"m-t-20"},[a("el-table",{ref:"multipleTable",staticClass:"select-table",style:{width:"100%",minHeight:t.tableH},attrs:{height:"450",data:t.tableData,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{label:"分组/门店名称","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.dataName))]}}])}),a("el-table-column",{attrs:{prop:"",label:"分组/门店code","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.dataCode)+"\n ")]}}])}),a("el-table-column",{attrs:{prop:"",label:"所属分组","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.chainName)+"\n ")]}}])}),a("el-table-column",{attrs:{prop:"",label:"数据类型","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(0==e.row.dataType?"分组":1==e.row.dataType?"门店":"成员")+"\n ")]}}])}),a("el-table-column",{attrs:{prop:"",label:"同步状态","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",{class:["span-dot",2==e.row.statusFlag?"bg-52c41a":"bg-f5222d"]}),a("span",{staticClass:"font-14 color-606266"},[t._v(t._s(3==e.row.statusFlag?"同步失败":1==e.row.statusFlag?"同步处理中":"--"))])]}}])}),a("el-table-column",{attrs:{prop:"",label:"失败原因","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(t._f("'--'")(e.row.reason)))]}}])})],1),0!=t.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("dm-pagination",{attrs:{background:"","current-page":t.currentPage,"page-sizes":[20,40,60,80],"page-size":t.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1):t._e()],1)])}),l=[],r=a("e230"),i=r["a"].getSyncFailDetail,c={name:"FailLog",props:{taskId:{type:String,default:function(){return""}}},data:function(){return{dialogVisible:!0,currentPage:1,pageSize:20,total:0,tableData:[]}},mounted:function(){var t=this;t.taskId&&t.getTableList(),document.documentElement.style.backgroundColor="#f0f2f5"},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},methods:{handleClose:function(){var t=this;t.tableData=[],t.$emit("closeLog")},changeRoute:function(t){this.$router.push(t)},handleSizeChange:function(t){var e=this;e.currentPage=1,e.pageSize=t,e.getTableList()},handleCurrentChange:function(t){var e=this;e.currentPage=t,e.getTableList()},getTableList:function(){var t=this,e={keyWord:t.searchInput||"",taskId:t.taskId,pageNum:t.currentPage,pageSize:t.pageSize};i(e).then((function(e){t.tableData=e.result.result||[],t.total=e.result.totalCount})).catch((function(t){}))}},watch:{taskId:function(t,e){var a=this;t&&a.getTableList()}}},u=c,p=(a("73d2"),a("2877")),f=Object(p["a"])(u,s,l,!1,null,"6f4ac83a",null),d=f.exports,g=a("29b6"),h=a("3081"),v=a("d157"),m=r["a"].getBindLog,b=r["a"].getRefreshLog,_=r["a"].getWxEnterprise,w={name:"SyncLog",components:{navCrumb:g["a"],failLog:d,commonAlertTip:h["a"]},data:function(){return{tipContent:"仅保存近一年绑定解绑的日志",navpath:[{name:"通讯录",path:"/contactsList"},{name:"日志详情",path:""}],wxEnterpriseId:localStorage.getItem("haoBanUser")?JSON.parse(localStorage.getItem("haoBanUser")).wxEnterpriseId:"",activeName:"first",searchInput:"",currentPage:1,pageSize:20,total:0,tableData:[],tableBindData:[],logShow:!1,taskId:"",optType:"",enterpriseId:"",brandOptions:[]}},mounted:function(){var t=this;t.getBrandData(),t.getBindList(),document.documentElement.style.backgroundColor="#f0f2f5"},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},methods:{clearInput:function(){var t=this;t.currentPage=1,t.getBindList()},changeBindList:function(){var t=this;t.currentPage=1,t.getBindList()},toInput:Object(v["a"])((function(t){var e=this;e.currentPage=1,e.getBindList()}),200),handleClick:function(t){var e=this;e.currentPage=1,e.pageSize=20,e.total=0,e.enterpriseId="","second"==t.name?e.getTableList():(e.getBrandData(),e.getBindList())},toShowLog:function(t,e){var a=this;a.taskId=e.taskId,a.logShow=!0},closeLog:function(){var t=this;t.taskId="",t.logShow=!1},changeRoute:function(t){this.$router.push(t)},handleSizeChange:function(t){var e=this;e.currentPage=1,e.pageSize=t,"second"==e.activeName?e.getTableList():e.getBindList()},handleCurrentChange:function(t){var e=this;e.currentPage=t,"second"==e.activeName?e.getTableList():e.getBindList()},getBrandData:function(){var t=this;_({wxEnterpriseId:t.wxEnterpriseId}).then((function(e){e.result&&e.result.length&&(t.brandOptions=e.result)})).catch((function(t){}))},getBindList:function(){var t=this,e={search:t.searchInput||"",enterpriseId:t.enterpriseId,wxEnterpriseId:t.wxEnterpriseId,optType:t.optType,pageNum:t.currentPage,pageSize:t.pageSize};m(e).then((function(e){t.tableBindData=e.result.result||[],t.total=e.result.totalCount})).catch((function(t){}))},getTableList:function(){var t=this,e={enterpriseId:t.enterpriseId,wxEnterpriseId:t.wxEnterpriseId,pageNum:t.currentPage,pageSize:t.pageSize};b(e).then((function(e){t.tableData=e.result.result||[],t.total=e.result.totalCount})).catch((function(t){}))}}},C=w,y=(a("bd57"),Object(p["a"])(C,n,o,!1,null,"032e410c",null));e["default"]=y.exports},bd57:function(t,e,a){"use strict";var n=a("8fac"),o=a.n(n);o.a},d157:function(t,e,a){"use strict";a.d(e,"a",(function(){return n})),a.d(e,"b",(function(){return o})),a.d(e,"c",(function(){return s}));a("c5f6"),a("a481"),a("28a5"),a("6b54");function n(t,e){var a,n=e||200;return function(){var e=this,o=arguments;a&&clearTimeout(a),a=setTimeout((function(){a=null,t.apply(e,o)}),n)}}function o(t,e){var a,n,o=e||200;return function(){var e=this,s=arguments,l=+new Date;a&&l-a<o?(clearTimeout(n),n=setTimeout((function(){a=l,t.apply(e,s)}),o)):(a=l,t.apply(e,s))}}function s(t){return t=t.replace(/\uD83C[\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F]|[\uD800-\uDBFF]|[\uDC00-\uDFFF]|[^\u0020-\u007E\u00A0-\u00BE\u2E80-\uA4CF\uF900-\uFAFF\uFE30-\uFE4F\uFF00-\uFFEF\u0080-\u009F\u2000-\u201f\u2026\u2022\u20ac\r\n]/g,""),unescape(escape(t).replace(/\%uD.{3}/g,""))}},e230:function(t,e,a){"use strict";var n=a("71f6"),o={getSyncCheck:"/sync/sync-check",refreshWx:"/sync/sync-contact",getDepartmentList:"/department-list-level",getCompanyDepartList:"/contact/get-department-list",getStaffList:"/contact/get-staff-list",getStaffDetail:"/contact/staff-detail",getStaffRelation:"/bind/staff-clerk-relation",delStaffRelation:{url:"/bind/staff-unbind",method:"post",useFormData:!0,useIntercept:!1},addStaffRelation:{url:"/bind/staff-bind",method:"post",useFormData:!0,useIntercept:!1},getClerkRelation:"/bind/search-clerk-list",getWxEnterprise:"/auth-enterprise-list",getBindLog:"/bind/bind-log-list",getRefreshLog:"/sync/sync-task",getSyncFailDetail:"/sync-task-detail",getNationCode:"/nationcode/get-nationcode-list",getGicGroup:"/gic-department-list",getGicStore:"/get-store-list"};o=Object(n["a"])(o,"/hb-manage-web"),e["a"]=o},f102:function(t,e,a){}}]); (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-b9a7d4fe"],{"28a5":function(t,e,a){"use strict";var n=a("aae3"),o=a("cb7c"),s=a("ebd6"),l=a("0390"),r=a("9def"),i=a("5f1b"),c=a("520a"),u=a("79e5"),p=Math.min,f=[].push,d="split",g="length",h="lastIndex",v=4294967295,m=!u((function(){RegExp(v,"y")}));a("214f")("split",2,(function(t,e,a,u){var b;return b="c"=="abbc"[d](/(b)*/)[1]||4!="test"[d](/(?:)/,-1)[g]||2!="ab"[d](/(?:ab)*/)[g]||4!="."[d](/(.?)(.?)/)[g]||"."[d](/()()/)[g]>1||""[d](/.?/)[g]?function(t,e){var o=String(this);if(void 0===t&&0===e)return[];if(!n(t))return a.call(o,t,e);var s,l,r,i=[],u=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),p=0,d=void 0===e?v:e>>>0,m=new RegExp(t.source,u+"g");while(s=c.call(m,o)){if(l=m[h],l>p&&(i.push(o.slice(p,s.index)),s[g]>1&&s.index<o[g]&&f.apply(i,s.slice(1)),r=s[0][g],p=l,i[g]>=d))break;m[h]===s.index&&m[h]++}return p===o[g]?!r&&m.test("")||i.push(""):i.push(o.slice(p)),i[g]>d?i.slice(0,d):i}:"0"[d](void 0,0)[g]?function(t,e){return void 0===t&&0===e?[]:a.call(this,t,e)}:a,[function(a,n){var o=t(this),s=void 0==a?void 0:a[e];return void 0!==s?s.call(a,o,n):b.call(String(o),a,n)},function(t,e){var n=u(b,t,this,e,b!==a);if(n.done)return n.value;var c=o(t),f=String(this),d=s(c,RegExp),g=c.unicode,h=(c.ignoreCase?"i":"")+(c.multiline?"m":"")+(c.unicode?"u":"")+(m?"y":"g"),_=new d(m?c:"^(?:"+c.source+")",h),w=void 0===e?v:e>>>0;if(0===w)return[];if(0===f.length)return null===i(_,f)?[f]:[];var C=0,y=0,k=[];while(y<f.length){_.lastIndex=m?y:0;var S,x=i(_,m?f:f.slice(y));if(null===x||(S=p(r(_.lastIndex+(m?0:y)),f.length))===C)y=l(f,y,g);else{if(k.push(f.slice(C,y)),k.length===w)return k;for(var T=1;T<=x.length-1;T++)if(k.push(x[T]),k.length===w)return k;y=C=S}}return k.push(f.slice(C)),k}]}))},"29b6":function(t,e,a){"use strict";var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"nav-wrap border-box"},[a("el-breadcrumb",{attrs:{"separator-class":"el-icon-arrow-right"}},[t._l(t.navpath,(function(e,n){return[e.path?[a("el-breadcrumb-item",{key:"nav"+n,attrs:{to:{path:e.path}},on:{click:function(a){return t.changeRoute(e.path,e.relocation)}}},[a("span",{staticClass:"el-breadcrumb__inner is-link",on:{click:function(a){return t.changeRoute(e.path,e.relocation)}}},[t._v("\n "+t._s(e.name)+"\n ")])])]:[a("el-breadcrumb-item",{key:"nav"+n},[t._v(t._s(e.name))])]]}))],2)],1)},o=[],s={name:"NavPath",props:{navpath:{type:Array,default:function(){return[]}}},data:function(){return{projectName:"member"}},methods:{changeRoute:function(t,e){var a=this;e?window.location.href=t:a.$router.push(t)}}},l=s,r=(a("6b4b"),a("2877")),i=Object(r["a"])(l,n,o,!1,null,"2c2a2724",null);e["a"]=i.exports},3081:function(t,e,a){"use strict";var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"common-alert-tip"},[a("div",{style:{"min-width":t.width}},[a("div",{staticClass:"el-alert el-alert--info flex flex-align-start",style:{width:t.width},attrs:{role:"alert"}},[a("i",{staticClass:"el-alert__icon el-icon-info font-12 color-2f54eb"}),a("div",{staticClass:"el-alert__content"},[a("span",{staticClass:"el-alert__title color-606266 font-13"},[t._v("\n "+t._s(t.tipContent)+"\n ")]),t.tipTwoContent?a("div",{staticClass:"el-alert__title color-606266 font-13"},[t._v("\n "+t._s(t.tipTwoContent)+"\n ")]):t._e()])])])])},o=[],s={name:"CommonAlertTip",components:{},props:{width:{type:String,default:"645px"},tipContent:{type:String,default:""},tipTwoContent:{type:String,default:""}},data:function(){return{}}},l=s,r=a("2877"),i=Object(r["a"])(l,n,o,!1,null,"537f2e35",null);e["a"]=i.exports},"6b4b":function(t,e,a){"use strict";var n=a("76d4"),o=a.n(n);o.a},"71f6":function(t,e,a){"use strict";a.d(e,"a",(function(){return o}));a("ac6a"),a("456d");var n=a("b775");function o(t,e){t=t||{};var a=Object.keys(t);return a.forEach((function(a){var o=t[a];"string"===typeof o&&(o={url:o}),o.url="".concat(e).concat(o.url),t[a]=function(t,e){return Object(n["a"])(o,t,e)}})),t}},"73d2":function(t,e,a){"use strict";var n=a("f102"),o=a.n(n);o.a},"76d4":function(t,e,a){},"7f7f":function(t,e,a){var n=a("86cc").f,o=Function.prototype,s=/^\s*function ([^ (]*)/,l="name";l in o||a("9e1e")&&n(o,l,{configurable:!0,get:function(){try{return(""+this).match(s)[1]}catch(t){return""}}})},"8fac":function(t,e,a){},b155:function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"my-customer-wrap common-set-wrap"},[a("nav-crumb",{attrs:{navpath:t.navpath}}),a("div",{staticClass:"right-content"},[a("div",{staticClass:"right-box",staticStyle:{"min-height":"calc(100vh - 86px)"}},[a("div",{staticClass:"apps-content flex",staticStyle:{"min-height":"calc(100vh - 86px)"}},[a("div",{staticClass:"apps-content-right"},[a("el-tabs",{on:{"tab-click":t.handleClick},model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},[a("el-tab-pane",{attrs:{label:"绑定变更日志",name:"first"}},[a("div",{staticClass:"flex flex-space-between"},[a("div",{},[a("el-input",{staticClass:"w-293",attrs:{placeholder:"请输入导购手机号或代码","prefix-icon":"el-icon-search",clearable:""},on:{clear:t.clearInput},nativeOn:{keyup:function(e){return function(e){return t.toInput(e,t.searchInput)}(e)}},model:{value:t.searchInput,callback:function(e){t.searchInput=e},expression:"searchInput"}}),a("el-select",{staticClass:"w-168 m-l-10",attrs:{placeholder:"请选择"},on:{change:t.changeBindList},model:{value:t.optType,callback:function(e){t.optType=e},expression:"optType"}},[a("el-option",{attrs:{label:"全部状态",value:""}}),a("el-option",{attrs:{label:"绑定",value:"0"}}),a("el-option",{attrs:{label:"解绑",value:"1"}})],1)],1),a("common-alert-tip",{attrs:{width:"284px","tip-content":t.tipContent}})],1),a("div",{staticClass:"m-t-20"},[a("el-table",{ref:"multipleTable",staticClass:"select-table",style:{width:"100%"},attrs:{data:t.tableBindData,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{prop:"",label:"类型","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(0==e.row.optType?"绑定":"解绑"))]}}])}),a("el-table-column",{attrs:{label:"导购账号"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-popover",{attrs:{placement:"top",width:"242",trigger:"hover"}},[a("div",[a("div",{staticClass:"flex flex-space-between line-28"},[a("span",{staticClass:"font-14 color-606266"},[t._v("姓名")]),a("span",{staticClass:"font-14 color-303133"},[t._v(t._s(e.row.clerkName||"--")+"("+t._s(1==e.row.sex?"男":2==e.row.sex?"女":"--")+" )")])]),a("div",{staticClass:"flex flex-space-between line-28"},[a("span",{staticClass:"font-14 color-606266"},[t._v("手机号")]),a("span",{staticClass:"font-14 color-303133"},[t._v(t._s(e.row.clerkNationCode||"--")+"-"+t._s(e.row.clerkPhoneNumber||"--"))])]),a("div",{staticClass:"flex flex-space-between line-28"},[a("span",{staticClass:"font-14 color-606266 min-w-90"},[t._v("所在门店")]),a("span",{staticClass:"font-14 color-303133"},[t._v(t._s(e.row.storeName||"--"))])])]),a("span",{staticClass:"common-bottom-border",attrs:{slot:"reference"},slot:"reference"},[t._v(t._s(e.row.clerkName||"--")+"("+t._s(e.row.clerkCode||"--")+")")])])]}}])}),a("el-table-column",{attrs:{label:"企微账号","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.wxUserId||"--"))]}}])}),a("el-table-column",{attrs:{label:"手机号","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.phoneNumber||"--"))]}}])}),a("el-table-column",{attrs:{prop:"",label:"更新时间","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"line-h-18"},[t._v(t._s(t._f("timeStampToYmd")(e.row.updateTime))+" "+t._s(e.row.updateTime?"":"--"))]),a("div",{staticClass:"line-h-18"},[t._v(t._s(t._f("timeStampToHms")(e.row.updateTime))+" "+t._s(e.row.updateTime?"":"--"))])]}}])}),a("el-table-column",{attrs:{label:"操作人","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.optStaffName||"--"))]}}])}),a("el-table-column",{attrs:{prop:"",label:"原因","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[1001==e.row.channelCode?a("span",{attrs:{type:"text"}},[t._v("后台管理员绑定")]):t._e(),1002==e.row.channelCode?a("span",{attrs:{type:"text"}},[t._v("好办客户端绑定")]):t._e(),1003==e.row.channelCode?a("span",{attrs:{type:"text"}},[t._v("审核绑定")]):t._e(),1004==e.row.channelCode?a("span",{attrs:{type:"text"}},[t._v("GIC 同步绑定")]):t._e(),1005==e.row.channelCode?a("span",{attrs:{type:"text"}},[t._v("企业同步绑定")]):t._e(),2001==e.row.channelCode?a("span",{attrs:{type:"text"}},[t._v("后台管理员解绑")]):t._e(),2002==e.row.channelCode?a("span",{attrs:{type:"text"}},[t._v("好办客户端解绑")]):t._e(),2003==e.row.channelCode?a("span",{attrs:{type:"text"}},[t._v("GIC 同步解绑")]):t._e(),2004==e.row.channelCode?a("span",{attrs:{type:"text"}},[t._v("企业同步解绑")]):t._e(),2005==e.row.channelCode?a("span",{attrs:{type:"text"}},[t._v("授权范围变更解绑")]):t._e()]}}])})],1),0!=t.tableBindData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("dm-pagination",{attrs:{background:"","current-page":t.currentPage,"page-sizes":[20,40,60,80],"page-size":t.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1):t._e()],1)]),a("el-tab-pane",{attrs:{label:"通讯录刷新日志",name:"second"}},[a("div",{staticClass:"flex flex-space-between"},[a("common-alert-tip",{attrs:{width:"284px","tip-content":"仅保存近一年的日志"}})],1),a("div",{staticClass:"m-t-20"},[a("el-table",{ref:"multipleTable",staticClass:"select-table",style:{width:"100%",minHeight:t.tableH},attrs:{data:t.tableData,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{label:"提交人","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.optName||"--"))]}}])}),a("el-table-column",{attrs:{prop:"",label:"同步时间","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"line-18"},[t._v(t._s(t._f("timeStampToYmd")(e.row.createTime))+t._s(e.row.createTime?"":"--"))]),a("div",{staticClass:"line-18"},[t._v(t._s(t._f("timeStampToHms")(e.row.createTime))+t._s(e.row.createTime?"":"--"))])]}}])}),a("el-table-column",{attrs:{prop:"",label:"完成时间","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"line-18"},[t._v(t._s(t._f("timeStampToYmd")(e.row.updateTime))+t._s(e.row.updateTime?"":"--"))]),a("div",{staticClass:"line-18"},[t._v(t._s(t._f("timeStampToHms")(e.row.updateTime))+t._s(e.row.updateTime?"":"--"))])]}}])}),a("el-table-column",{attrs:{prop:"",label:"同步内容","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(t._f("'--'")(e.row.taskDesc)))]}}])}),a("el-table-column",{attrs:{prop:"",label:"状态","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",{class:["span-dot",4==e.row.statusFlag?"bg-52c41a":"bg-f5222d"]}),4==e.row.statusFlag?a("span",{staticClass:"font-14 color-606266"},[t._v(t._s(4==e.row.statusFlag?"成功":""))]):t._e(),0==e.row.statusFlag?a("span",{staticClass:"font-14 color-606266"},[t._v("初始化")]):t._e(),1==e.row.statusFlag||2==e.row.statusFlag||3==e.row.statusFlag?a("span",{staticClass:"font-14 color-606266"},[t._v("分组/门店/成员同步中")]):t._e(),5==e.row.statusFlag||6==e.row.statusFlag?a("el-popover",{staticClass:"item",attrs:{trigger:"hover",content:5==e.row.statusFlag?"完成有错误":"有错误关闭",placement:"top"}},[a("span",{staticClass:"common-bottom-border",attrs:{slot:"reference"},slot:"reference"},[t._v("失败")])]):t._e()]}}])})],1),0!=t.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("dm-pagination",{attrs:{background:"","current-page":t.currentPage,"page-sizes":[20,40,60,80],"page-size":t.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1):t._e()],1)])],1)],1)])])]),t.logShow?a("fail-log",{attrs:{"task-id":t.taskId},on:{closeLog:t.closeLog}}):t._e()],1)},o=[],s=(a("7f7f"),function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("el-dialog",{attrs:{title:"查看失败日志",visible:t.dialogVisible,width:"995px","before-close":t.handleClose},on:{"update:visible":function(e){t.dialogVisible=e}}},[a("div",{staticClass:"overstore-tip"},[a("div",{staticClass:"el-alert el-alert--info flex flex-align-start",attrs:{role:"alert"}},[a("i",{staticClass:"el-alert__icon el-icon-info font-12 color-2f54eb"}),a("div",{staticClass:"el-alert__content"},[a("span",{staticClass:"el-alert__title color-606266 font-14"},[t._v("失败可能:分组创建失败或门店及成员创建失败"),a("br"),t._v("\n 通讯录同步分为两步串联创建:"),a("br"),t._v("\n 第一步同步分组,若出现分组创建失败,则分组及下面的门店及成员均会创建失败"),a("br"),t._v("\n 第二步同步门店及成员,若分组创建成功,会同步门店及成员,若门店创建失败,则门店下成员也会创建失败")])])])]),a("div",{staticClass:"m-t-20"},[a("el-table",{ref:"multipleTable",staticClass:"select-table",style:{width:"100%",minHeight:t.tableH},attrs:{height:"450",data:t.tableData,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{label:"分组/门店名称","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.dataName))]}}])}),a("el-table-column",{attrs:{prop:"",label:"分组/门店code","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.dataCode)+"\n ")]}}])}),a("el-table-column",{attrs:{prop:"",label:"所属分组","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.chainName)+"\n ")]}}])}),a("el-table-column",{attrs:{prop:"",label:"数据类型","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(0==e.row.dataType?"分组":1==e.row.dataType?"门店":"成员")+"\n ")]}}])}),a("el-table-column",{attrs:{prop:"",label:"同步状态","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",{class:["span-dot",2==e.row.statusFlag?"bg-52c41a":"bg-f5222d"]}),a("span",{staticClass:"font-14 color-606266"},[t._v(t._s(3==e.row.statusFlag?"同步失败":1==e.row.statusFlag?"同步处理中":"--"))])]}}])}),a("el-table-column",{attrs:{prop:"",label:"失败原因","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(t._f("'--'")(e.row.reason)))]}}])})],1),0!=t.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("dm-pagination",{attrs:{background:"","current-page":t.currentPage,"page-sizes":[20,40,60,80],"page-size":t.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1):t._e()],1)])}),l=[],r=a("e230"),i=r["a"].getSyncFailDetail,c={name:"FailLog",props:{taskId:{type:String,default:function(){return""}}},data:function(){return{dialogVisible:!0,currentPage:1,pageSize:20,total:0,tableData:[]}},mounted:function(){var t=this;t.taskId&&t.getTableList(),document.documentElement.style.backgroundColor="#f0f2f5"},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},methods:{handleClose:function(){var t=this;t.tableData=[],t.$emit("closeLog")},changeRoute:function(t){this.$router.push(t)},handleSizeChange:function(t){var e=this;e.currentPage=1,e.pageSize=t,e.getTableList()},handleCurrentChange:function(t){var e=this;e.currentPage=t,e.getTableList()},getTableList:function(){var t=this,e={keyWord:t.searchInput||"",taskId:t.taskId,pageNum:t.currentPage,pageSize:t.pageSize};i(e).then((function(e){t.tableData=e.result.result||[],t.total=e.result.totalCount})).catch((function(t){}))}},watch:{taskId:function(t,e){var a=this;t&&a.getTableList()}}},u=c,p=(a("73d2"),a("2877")),f=Object(p["a"])(u,s,l,!1,null,"6f4ac83a",null),d=f.exports,g=a("29b6"),h=a("3081"),v=a("d157"),m=r["a"].getBindLog,b=r["a"].getRefreshLog,_=r["a"].getWxEnterprise,w={name:"SyncLog",components:{navCrumb:g["a"],failLog:d,commonAlertTip:h["a"]},data:function(){return{tipContent:"仅保存近一年绑定解绑的日志",navpath:[{name:"通讯录",path:"/contactsList"},{name:"日志详情",path:""}],wxEnterpriseId:localStorage.getItem("haoBanUser")?JSON.parse(localStorage.getItem("haoBanUser")).wxEnterpriseId:"",activeName:"first",searchInput:"",currentPage:1,pageSize:20,total:0,tableData:[],tableBindData:[],logShow:!1,taskId:"",optType:"",enterpriseId:"",brandOptions:[]}},mounted:function(){var t=this;t.getBrandData(),t.getBindList(),document.documentElement.style.backgroundColor="#f0f2f5"},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},methods:{clearInput:function(){var t=this;t.currentPage=1,t.getBindList()},changeBindList:function(){var t=this;t.currentPage=1,t.getBindList()},toInput:Object(v["a"])((function(t){var e=this;e.currentPage=1,e.getBindList()}),200),handleClick:function(t){var e=this;e.currentPage=1,e.pageSize=20,e.total=0,e.enterpriseId="","second"==t.name?e.getTableList():(e.getBrandData(),e.getBindList())},toShowLog:function(t,e){var a=this;a.taskId=e.taskId,a.logShow=!0},closeLog:function(){var t=this;t.taskId="",t.logShow=!1},changeRoute:function(t){this.$router.push(t)},handleSizeChange:function(t){var e=this;e.currentPage=1,e.pageSize=t,"second"==e.activeName?e.getTableList():e.getBindList()},handleCurrentChange:function(t){var e=this;e.currentPage=t,"second"==e.activeName?e.getTableList():e.getBindList()},getBrandData:function(){var t=this;_({wxEnterpriseId:t.wxEnterpriseId}).then((function(e){e.result&&e.result.length&&(t.brandOptions=e.result)})).catch((function(t){}))},getBindList:function(){var t=this,e={search:t.searchInput||"",enterpriseId:t.enterpriseId,wxEnterpriseId:t.wxEnterpriseId,optType:t.optType,pageNum:t.currentPage,pageSize:t.pageSize};m(e).then((function(e){t.tableBindData=e.result.result||[],t.total=e.result.totalCount})).catch((function(t){}))},getTableList:function(){var t=this,e={enterpriseId:t.enterpriseId,wxEnterpriseId:t.wxEnterpriseId,pageNum:t.currentPage,pageSize:t.pageSize};b(e).then((function(e){t.tableData=e.result.result||[],t.total=e.result.totalCount})).catch((function(t){}))}}},C=w,y=(a("bd57"),Object(p["a"])(C,n,o,!1,null,"032e410c",null));e["default"]=y.exports},bd57:function(t,e,a){"use strict";var n=a("8fac"),o=a.n(n);o.a},d157:function(t,e,a){"use strict";a.d(e,"a",(function(){return n})),a.d(e,"b",(function(){return o})),a.d(e,"c",(function(){return s}));a("c5f6"),a("a481"),a("28a5"),a("6b54");function n(t,e){var a,n=e||200;return function(){var e=this,o=arguments;a&&clearTimeout(a),a=setTimeout((function(){a=null,t.apply(e,o)}),n)}}function o(t,e){var a,n,o=e||200;return function(){var e=this,s=arguments,l=+new Date;a&&l-a<o?(clearTimeout(n),n=setTimeout((function(){a=l,t.apply(e,s)}),o)):(a=l,t.apply(e,s))}}function s(t){return t=t.replace(/\uD83C[\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F]|[\uD800-\uDBFF]|[\uDC00-\uDFFF]|[^\u0020-\u007E\u00A0-\u00BE\u2E80-\uA4CF\uF900-\uFAFF\uFE30-\uFE4F\uFF00-\uFFEF\u0080-\u009F\u2000-\u201f\u2026\u2022\u20ac\r\n]/g,""),unescape(escape(t).replace(/\%uD.{3}/g,""))}},e230:function(t,e,a){"use strict";var n=a("71f6"),o={getSyncCheck:"/sync/sync-check",refreshWx:"/sync/sync-contact",getDepartmentList:"/department-list-level",getCompanyDepartList:"/contact/get-department-list",getStaffList:"/contact/get-staff-list",getStaffDetail:"/contact/staff-detail",getStaffRelation:"/bind/staff-clerk-relation",delStaffRelation:{url:"/bind/staff-unbind",method:"post",useFormData:!0,useIntercept:!1},addStaffRelation:{url:"/bind/staff-bind",method:"post",useFormData:!0,useIntercept:!1},getClerkRelation:"/bind/search-clerk-list",getWxEnterprise:"/auth-enterprise-list",getBindLog:"/bind/bind-log-list",getRefreshLog:"/sync/sync-task",getSyncFailDetail:"/sync-task-detail",getNationCode:"/get-nation-code-list",getGicGroup:"/gic-department-list",getGicStore:"/get-store-list"};o=Object(n["a"])(o,"/hb-manage-web"),e["a"]=o},f102:function(t,e,a){}}]);
\ No newline at end of file \ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-d89f0a84"],{"28a5":function(t,e,a){"use strict";var n=a("aae3"),i=a("cb7c"),s=a("ebd6"),r=a("0390"),l=a("9def"),o=a("5f1b"),u=a("520a"),c=a("79e5"),d=Math.min,f=[].push,p="split",g="length",h="lastIndex",v=4294967295,m=!c((function(){RegExp(v,"y")}));a("214f")("split",2,(function(t,e,a,c){var b;return b="c"=="abbc"[p](/(b)*/)[1]||4!="test"[p](/(?:)/,-1)[g]||2!="ab"[p](/(?:ab)*/)[g]||4!="."[p](/(.?)(.?)/)[g]||"."[p](/()()/)[g]>1||""[p](/.?/)[g]?function(t,e){var i=String(this);if(void 0===t&&0===e)return[];if(!n(t))return a.call(i,t,e);var s,r,l,o=[],c=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),d=0,p=void 0===e?v:e>>>0,m=new RegExp(t.source,c+"g");while(s=u.call(m,i)){if(r=m[h],r>d&&(o.push(i.slice(d,s.index)),s[g]>1&&s.index<i[g]&&f.apply(o,s.slice(1)),l=s[0][g],d=r,o[g]>=p))break;m[h]===s.index&&m[h]++}return d===i[g]?!l&&m.test("")||o.push(""):o.push(i.slice(d)),o[g]>p?o.slice(0,p):o}:"0"[p](void 0,0)[g]?function(t,e){return void 0===t&&0===e?[]:a.call(this,t,e)}:a,[function(a,n){var i=t(this),s=void 0==a?void 0:a[e];return void 0!==s?s.call(a,i,n):b.call(String(i),a,n)},function(t,e){var n=c(b,t,this,e,b!==a);if(n.done)return n.value;var u=i(t),f=String(this),p=s(u,RegExp),g=u.unicode,h=(u.ignoreCase?"i":"")+(u.multiline?"m":"")+(u.unicode?"u":"")+(m?"y":"g"),C=new p(m?u:"^(?:"+u.source+")",h),w=void 0===e?v:e>>>0;if(0===w)return[];if(0===f.length)return null===o(C,f)?[f]:[];var D=0,_=0,x=[];while(_<f.length){C.lastIndex=m?_:0;var y,S=o(C,m?f:f.slice(_));if(null===S||(y=d(l(C.lastIndex+(m?0:_)),f.length))===D)_=r(f,_,g);else{if(x.push(f.slice(D,_)),x.length===w)return x;for(var I=1;I<=S.length-1;I++)if(x.push(S[I]),x.length===w)return x;_=D=y}}return x.push(f.slice(D)),x}]}))},3236:function(t,e,a){"use strict";var n=a("910d"),i=a.n(n);i.a},"4e6a":function(t,e,a){},6300:function(t,e,a){"use strict";var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"custom-dialog-wrap"},[a("el-dialog",{attrs:{title:"门店图片变更",visible:t.customDialog,width:"600px","before-close":t.handleCardClose},on:{"update:visible":function(e){t.customDialog=e}}},[a("div",{staticClass:"dialog-content"},[a("el-row",[a("el-col",{attrs:{span:11}},[a("div",{staticClass:"grid-content bg-purple-dark"},[t._v("\n 变更前\n ")]),a("div",{staticClass:"data-body"},[a("div",{staticClass:"data-body-content flex flex-column"},[t._l(t.leftData,(function(t,e){return[a("img",{key:"img"+e,attrs:{src:t,alt:""}})]}))],2)])]),a("el-col",{attrs:{span:11}},[a("div",{staticClass:"grid-content bg-purple-dark"},[t._v("\n 变更后\n ")]),a("div",{staticClass:"data-body"},[a("div",{staticClass:"data-body-content flex flex-column"},[t._l(t.rightData,(function(t,e){return[a("img",{key:"img0"+e,attrs:{src:t,alt:""}})]}))],2)])])],1)],1)])],1)},i=[],s={name:"StoreChangeDialog",props:{value:{type:Boolean,default:!1},storeChangeData:{type:[Object,Array]}},data:function(){return{repProjectName:"haoban-web",customDialog:this.value,leftData:[],rightData:[]}},mounted:function(){var t=this;t.leftData=t.storeChangeData.beforeContent,t.rightData=t.storeChangeData.afterContent},methods:{handleCardClose:function(){var t=this;t.customCancel()},customCancel:function(){var t=this;t.customDialog=!1,t.$emit("input",t.customDialog)}},watch:{value:function(t,e){var a=this;a.customDialog=t},storeChangeData:function(t,e){var a=this;a.leftData=t.beforeContent,a.rightData=t.afterContent}}},r=s,l=(a("3236"),a("2877")),o=Object(l["a"])(r,n,i,!1,null,"19a03e61",null);e["a"]=o.exports},"6ce2":function(t,e,a){t.exports=a.p+"img/member.1eda5d6c.png"},"71f6":function(t,e,a){"use strict";a.d(e,"a",(function(){return i}));a("ac6a"),a("456d");var n=a("b775");function i(t,e){t=t||{};var a=Object.keys(t);return a.forEach((function(a){var i=t[a];"string"===typeof i&&(i={url:i}),i.url="".concat(e).concat(i.url),t[a]=function(t,e){return Object(n["a"])(i,t,e)}})),t}},"910d":function(t,e,a){},"96b6":function(t,e,a){"use strict";var n=a("71f6"),i={getReview:"/audit/audit-list",getWxEnterprise:"/auth-enterprise-list",getStaffInfo:"/get-staff-info",postAudit:{url:"/audit/agree",method:"post",useFormData:!0,useIntercept:!1},postBatchApprove:{url:"/audit/batch-agree",method:"post",useFormData:!0,useIntercept:!1},postRefuse:{url:"/audit/refuse",method:"post",useFormData:!0,useIntercept:!1},getAuditDetail:"/audit/batch-log-list",getAuditGroupList:"/auditGroup/audit-group-list",delAuditGroup:"/auditGroup/del-audit-group",auditGroupDetail:"/auditGroup/audit-group-detail",editAuditGroup:{url:"/auditGroup/edit-audit-group",method:"post",useFormData:!0},addAuditGroup:{url:"/auditGroup/add-audit-group",method:"post",useFormData:!0},getAdminList:"/auditGroup/select-manager-list",auditItemList:"/auditGroup/audit-item-list",delAuditItem:"/auditGroup/del-audit-item",addAuditItem:"/auditGroup/add-audit-item",editAuditItem:"/auditGroup/edit-audit-item",auditItemDetail:"/auditGroup/audit-item-detail",findAuditSetting:"/audit/find-audit-setting",saveAuditSetting:"/audit/save-audit-setting"};i=Object(n["a"])(i,"/hb-manage-web"),e["a"]=i},c7d9:function(t,e,a){"use strict";var n=a("4e6a"),i=a.n(n);i.a},d157:function(t,e,a){"use strict";a.d(e,"a",(function(){return n})),a.d(e,"b",(function(){return i})),a.d(e,"c",(function(){return s}));a("c5f6"),a("a481"),a("28a5"),a("6b54");function n(t,e){var a,n=e||200;return function(){var e=this,i=arguments;a&&clearTimeout(a),a=setTimeout((function(){a=null,t.apply(e,i)}),n)}}function i(t,e){var a,n,i=e||200;return function(){var e=this,s=arguments,r=+new Date;a&&r-a<i?(clearTimeout(n),n=setTimeout((function(){a=r,t.apply(e,s)}),i)):(a=r,t.apply(e,s))}}function s(t){return t=t.replace(/\uD83C[\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F]|[\uD800-\uDBFF]|[\uDC00-\uDFFF]|[^\u0020-\u007E\u00A0-\u00BE\u2E80-\uA4CF\uF900-\uFAFF\uFE30-\uFE4F\uFF00-\uFFEF\u0080-\u009F\u2000-\u201f\u2026\u2022\u20ac\r\n]/g,""),unescape(escape(t).replace(/\%uD.{3}/g,""))}},dacc:function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"reviewed-wrap common-set-wrap"},[n("div",{staticClass:"right-content"},[n("div",{staticClass:"right-box",staticStyle:{"min-height":"calc(100vh - 86px)"}},[n("div",{staticClass:"reviewed-body-head"},[t._m(0),n("el-input",{staticClass:"w-344",attrs:{maxlength:"50",placeholder:"请输入提交人姓名/账号/手机号","prefix-icon":"el-icon-search",clearable:""},on:{clear:t.clearSearch},nativeOn:{keyup:function(e){return function(e){return t.searchEnterFun(e,t.searchInput)}(e)}},model:{value:t.searchValue,callback:function(e){t.searchValue=e},expression:"searchValue"}}),n("el-select",{staticClass:"w-130 m-l-10",attrs:{placeholder:"全部事项"},on:{change:t.changeTableList},model:{value:t.auditType,callback:function(e){t.auditType=e},expression:"auditType"}},t._l(t.filterOptions,(function(t){return n("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1),n("el-select",{staticClass:"w-168 m-l-10",attrs:{placeholder:"全部品牌"},on:{change:t.changeTableList},model:{value:t.filterBrand,callback:function(e){t.filterBrand=e},expression:"filterBrand"}},[n("el-option",{attrs:{label:"全部品牌",value:""}}),t._l(t.brandOptions,(function(t){return n("el-option",{key:t.enterpriseId,attrs:{label:t.enterpriseName,value:t.enterpriseId}})}))],2)],1),n("div",{staticClass:"reviewed-body-content"},[n("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],ref:"multipleTable",staticStyle:{width:"100%"},attrs:{data:t.tableData,"tooltip-effect":"dark"}},[n("el-table-column",{attrs:{label:"审核事项"},scopedSlots:t._u([{key:"default",fn:function(e){return[1==e.row.auditType?n("span",[t._v("导购账号绑定")]):t._e(),3==e.row.auditType?n("span",[t._v("导购账号新增")]):t._e()]}}])}),n("el-table-column",{attrs:{label:"提交人","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[n("div",{staticClass:"flex"},[n("el-popover",{attrs:{placement:"top",width:"300",trigger:"hover"},on:{show:function(a){return t.showSingleInfo(e.row.submitStaffId)}}},[n("div",{staticClass:"apply-info-detail"},[n("div",{staticClass:"flex"},[n("div",{staticClass:"apply-info-img flex-align-center flex-pack-center bg-82c5ff "},[t.userData.headImg?n("img",{attrs:{src:t.userData.headImg,alt:"img"}}):n("img",{attrs:{src:a("6ce2"),alt:"img"}})]),n("div",{staticClass:"flex flex-column apply-info-right flex-pack-center"},[n("div",{staticClass:"apply-info-name"},[n("span",{staticClass:"font-14 color-303133"},[t._v(t._s(t.userData.staffName||"--"))]),n("span",{staticClass:"font-14 color-90939"},[t._v("( "+t._s(1==t.userData.sex?"男":2==t.userData.sex?"女":"--")+")")])])])]),n("div",{staticClass:"flex flex-space-between line-26 m-t-15"},[n("div",{staticClass:"font-14 color-606266"},[t._v("账号")]),n("div",{staticClass:"font-14 color-303133"},[t._v(t._s(t.userData.wxUserId||"--"))])]),n("div",{staticClass:"flex flex-space-between line-26"},[n("div",{staticClass:"font-14 color-606266"},[t._v("职务")]),n("div",{staticClass:"font-14 color-303133"},[t._v(t._s(t.userData.postion||"--"))])]),n("div",{staticClass:"flex flex-space-between line-26"},[n("div",{staticClass:"font-14 color-606266"},[t._v("手机号")]),n("div",{staticClass:"font-14 color-303133"},[t._v(t._s(t.userData.nationCode||"--")+"-"+t._s(t.userData.phoneNumber||"--"))])]),n("div",{staticClass:"flex flex-space-between line-26"},[n("div",{staticClass:"font-14 color-606266 w-m-100"},[t._v("部门")]),n("div",{staticClass:"font-14 color-303133"},[t._v(t._s(t.userData.departmentInfo.map((function(t){return t.departmentName})).join(";")||"--"))])])]),n("div",{attrs:{slot:"reference"},slot:"reference"},[n("div",{staticClass:"flex flex-align-center flex-pack-center bg-82c5ff table-head-pic cursor-pointer"},[e.row.submitHeadImg?n("img",{attrs:{src:e.row.submitHeadImg,alt:"img"}}):n("img",{attrs:{src:a("6ce2"),alt:"img"}})])])]),n("div",{staticClass:"flex flex-column apply-info",staticStyle:{overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"}},[n("span",{staticClass:"font-14 color-606266 hide-ellipsis"},[t._v(t._s(e.row.submitStaffName||"--"))]),n("span",{staticClass:"font-12 color-909399 hide-ellipsis"},[t._v(t._s(e.row.submitWxUserId||"--"))])])],1)]}}])}),n("el-table-column",{attrs:{label:"详情","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.content||"--")+"\n ")]}}])}),n("el-table-column",{attrs:{label:"提交时间","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[n("div",{staticClass:"line-h-18"},[t._v(t._s(t._f("timeStampToYmd")(e.row.createTime)))]),n("div",{staticClass:"line-h-18"},[t._v(t._s(t._f("timeStampToHms")(e.row.createTime)))])]}}])}),n("el-table-column",{attrs:{label:"审核人","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.auditStaffName||"--")+"\n ")]}}])}),n("el-table-column",{attrs:{label:"状态"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("span",{class:["span-dot",1==e.row.auditFlag?"bg-52c41a":"bg-f5222d"]}),1==e.row.auditFlag?n("span",[t._v("已同意")]):t._e(),2==e.row.auditFlag?n("el-popover",{attrs:{placement:"top",width:"200",trigger:"hover",content:e.row.reason}},[n("span",{staticClass:"common-bottom-border",attrs:{slot:"reference"},slot:"reference"},[t._v("已拒绝")])]):t._e()]}}])}),n("el-table-column",{attrs:{label:"结果"},scopedSlots:t._u([{key:"default",fn:function(e){return[2==e.row.statusFlag&&1==e.row.auditFlag?n("span",[t._v("成功")]):t._e(),2==e.row.auditFlag?n("span",[t._v("--")]):t._e(),1==e.row.statusFlag&&1==e.row.auditFlag?n("el-popover",{attrs:{placement:"top",width:"200",trigger:"hover",content:e.row.reason}},[n("span",{staticClass:"common-bottom-border",attrs:{slot:"reference"},slot:"reference"},[t._v("失败")])]):t._e()]}}])})],1),0!=t.tableData.length?n("div",{staticClass:"block common-wrap__page text-right"},[n("dm-pagination",{attrs:{background:"","current-page":t.currentPage,"page-sizes":[20,40,60,80],"page-size":t.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1):t._e()],1)])]),n("store-change",{attrs:{"store-change-data":t.storeChangeData},model:{value:t.showStoreDialog,callback:function(e){t.showStoreDialog=e},expression:"showStoreDialog"}})],1)},i=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"tip-body m-b-20"},[a("div",{staticClass:"el-alert el-alert--info",attrs:{role:"alert"}},[a("i",{staticClass:"el-alert__icon el-icon-info"}),a("div",{staticClass:"el-alert__content"},[a("span",{staticClass:"el-alert__title"},[t._v("展示管理员审核及绑定解绑记录及门店成员自助增删导购及用户绑定记录")])])])])}],s=(a("28a5"),a("ac6a"),a("6300")),r=a("96b6"),l=a("e230"),o=a("d157"),u=l["a"].getStaffDetail,c=r["a"].getReview,d=r["a"].getWxEnterprise,f={name:"ReviewedPage",components:{storeChange:s["a"]},data:function(){return{wxEnterpriseId:localStorage.getItem("haoBanUser")?JSON.parse(localStorage.getItem("haoBanUser")).wxEnterpriseId:"",auditType:"",filterBrand:"",brandOptions:[],filterOptions:[{label:"全部事项",value:""},{label:"导购账号绑定",value:"1"},{label:"导购账号新增",value:"3"}],searchValue:"",loading:!1,tableData:[],multipleSelection:[],currentPage:1,pageSize:20,total:0,showStoreDialog:!1,storeChangeData:{},userData:{staffName:"",phoneNumber:"",nationCode:"",postion:"",departmentInfo:[],headImg:"",wxUserId:"",sex:1}}},mounted:function(){var t=this;t.$emit("showTab","/reviewed"),t.getTableList(),t.getBrandData()},methods:{changeTableList:function(){var t=this;t.currentPage=1,t.getTableList()},clearSearch:function(){var t=this;t.currentPage=1,t.getTableList()},searchEnterFun:Object(o["a"])((function(t){var e=this,a=String(t.target.value).trim();if(!a)return!1;e.currentPage=1,e.getTableList()}),200),toggleReason:function(t){var e=this;t.visible=!0,e.tableData.forEach((function(e,a){e.enterpriseAuditingId!=t.enterpriseAuditingId&&(e.visible=!1)}))},handleSelectionChange:function(t){var e=this;e.multipleSelection=t},handleSizeChange:function(t){var e=this;e.currentPage=1,e.pageSize=t,e.getTableList()},handleCurrentChange:function(t){var e=this;e.currentPage=t,e.getTableList()},showSingleInfo:function(t){var e=this,a={staffId:t};u(a).then((function(t){e.userData=t.result||{staffName:"",phoneNumber:"",nationCode:"",postion:"",departmentInfo:[],headImg:"",wxUserId:"",sex:1}})).catch((function(t){}))},showStoreChange:function(t){var e=this;e.storeChangeData={beforeContent:[],afterContent:[]},e.showStoreDialog=!0,e.storeChangeData={beforeContent:""!=t.oldValue?t.oldValue.split(","):[],afterContent:""!=t.newValue?t.newValue.split(","):[]}},getBrandData:function(){var t=this;d({wxEnterpriseId:t.wxEnterpriseId}).then((function(e){e.result&&e.result.length&&(t.brandOptions=e.result)})).catch((function(t){}))},getTableList:function(){var t=this;t.loading=!0;var e={wxEnterpriseId:t.wxEnterpriseId,auditType:t.auditType,searchType:"1",search:t.searchValue||"",pageNum:t.currentPage,pageSize:t.pageSize,enterpriseId:t.filterBrand};c(e).then((function(e){t.loading=!1,t.tableData=e.result.result||[],t.total=e.result.totalCount})).catch((function(e){t.loading=!1}))}}},p=f,g=(a("c7d9"),a("2877")),h=Object(g["a"])(p,n,i,!1,null,"fbbba2d0",null);e["default"]=h.exports},e230:function(t,e,a){"use strict";var n=a("71f6"),i={getSyncCheck:"/sync/sync-check",refreshWx:"/sync/sync-contact",getDepartmentList:"/department-list-level",getCompanyDepartList:"/contact/get-department-list",getStaffList:"/contact/get-staff-list",getStaffDetail:"/contact/staff-detail",getStaffRelation:"/bind/staff-clerk-relation",delStaffRelation:{url:"/bind/staff-unbind",method:"post",useFormData:!0,useIntercept:!1},addStaffRelation:{url:"/bind/staff-bind",method:"post",useFormData:!0,useIntercept:!1},getClerkRelation:"/bind/search-clerk-list",getWxEnterprise:"/auth-enterprise-list",getBindLog:"/bind/bind-log-list",getRefreshLog:"/sync/sync-task",getSyncFailDetail:"/sync-task-detail",getNationCode:"/nationcode/get-nationcode-list",getGicGroup:"/gic-department-list",getGicStore:"/get-store-list"};i=Object(n["a"])(i,"/hb-manage-web"),e["a"]=i}}]); (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-d89f0a84"],{"28a5":function(t,e,a){"use strict";var n=a("aae3"),i=a("cb7c"),s=a("ebd6"),r=a("0390"),l=a("9def"),o=a("5f1b"),u=a("520a"),c=a("79e5"),d=Math.min,f=[].push,p="split",g="length",h="lastIndex",v=4294967295,m=!c((function(){RegExp(v,"y")}));a("214f")("split",2,(function(t,e,a,c){var b;return b="c"=="abbc"[p](/(b)*/)[1]||4!="test"[p](/(?:)/,-1)[g]||2!="ab"[p](/(?:ab)*/)[g]||4!="."[p](/(.?)(.?)/)[g]||"."[p](/()()/)[g]>1||""[p](/.?/)[g]?function(t,e){var i=String(this);if(void 0===t&&0===e)return[];if(!n(t))return a.call(i,t,e);var s,r,l,o=[],c=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),d=0,p=void 0===e?v:e>>>0,m=new RegExp(t.source,c+"g");while(s=u.call(m,i)){if(r=m[h],r>d&&(o.push(i.slice(d,s.index)),s[g]>1&&s.index<i[g]&&f.apply(o,s.slice(1)),l=s[0][g],d=r,o[g]>=p))break;m[h]===s.index&&m[h]++}return d===i[g]?!l&&m.test("")||o.push(""):o.push(i.slice(d)),o[g]>p?o.slice(0,p):o}:"0"[p](void 0,0)[g]?function(t,e){return void 0===t&&0===e?[]:a.call(this,t,e)}:a,[function(a,n){var i=t(this),s=void 0==a?void 0:a[e];return void 0!==s?s.call(a,i,n):b.call(String(i),a,n)},function(t,e){var n=c(b,t,this,e,b!==a);if(n.done)return n.value;var u=i(t),f=String(this),p=s(u,RegExp),g=u.unicode,h=(u.ignoreCase?"i":"")+(u.multiline?"m":"")+(u.unicode?"u":"")+(m?"y":"g"),C=new p(m?u:"^(?:"+u.source+")",h),w=void 0===e?v:e>>>0;if(0===w)return[];if(0===f.length)return null===o(C,f)?[f]:[];var D=0,_=0,x=[];while(_<f.length){C.lastIndex=m?_:0;var y,S=o(C,m?f:f.slice(_));if(null===S||(y=d(l(C.lastIndex+(m?0:_)),f.length))===D)_=r(f,_,g);else{if(x.push(f.slice(D,_)),x.length===w)return x;for(var I=1;I<=S.length-1;I++)if(x.push(S[I]),x.length===w)return x;_=D=y}}return x.push(f.slice(D)),x}]}))},3236:function(t,e,a){"use strict";var n=a("910d"),i=a.n(n);i.a},"4e6a":function(t,e,a){},6300:function(t,e,a){"use strict";var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"custom-dialog-wrap"},[a("el-dialog",{attrs:{title:"门店图片变更",visible:t.customDialog,width:"600px","before-close":t.handleCardClose},on:{"update:visible":function(e){t.customDialog=e}}},[a("div",{staticClass:"dialog-content"},[a("el-row",[a("el-col",{attrs:{span:11}},[a("div",{staticClass:"grid-content bg-purple-dark"},[t._v("\n 变更前\n ")]),a("div",{staticClass:"data-body"},[a("div",{staticClass:"data-body-content flex flex-column"},[t._l(t.leftData,(function(t,e){return[a("img",{key:"img"+e,attrs:{src:t,alt:""}})]}))],2)])]),a("el-col",{attrs:{span:11}},[a("div",{staticClass:"grid-content bg-purple-dark"},[t._v("\n 变更后\n ")]),a("div",{staticClass:"data-body"},[a("div",{staticClass:"data-body-content flex flex-column"},[t._l(t.rightData,(function(t,e){return[a("img",{key:"img0"+e,attrs:{src:t,alt:""}})]}))],2)])])],1)],1)])],1)},i=[],s={name:"StoreChangeDialog",props:{value:{type:Boolean,default:!1},storeChangeData:{type:[Object,Array]}},data:function(){return{repProjectName:"haoban-web",customDialog:this.value,leftData:[],rightData:[]}},mounted:function(){var t=this;t.leftData=t.storeChangeData.beforeContent,t.rightData=t.storeChangeData.afterContent},methods:{handleCardClose:function(){var t=this;t.customCancel()},customCancel:function(){var t=this;t.customDialog=!1,t.$emit("input",t.customDialog)}},watch:{value:function(t,e){var a=this;a.customDialog=t},storeChangeData:function(t,e){var a=this;a.leftData=t.beforeContent,a.rightData=t.afterContent}}},r=s,l=(a("3236"),a("2877")),o=Object(l["a"])(r,n,i,!1,null,"19a03e61",null);e["a"]=o.exports},"6ce2":function(t,e,a){t.exports=a.p+"img/member.1eda5d6c.png"},"71f6":function(t,e,a){"use strict";a.d(e,"a",(function(){return i}));a("ac6a"),a("456d");var n=a("b775");function i(t,e){t=t||{};var a=Object.keys(t);return a.forEach((function(a){var i=t[a];"string"===typeof i&&(i={url:i}),i.url="".concat(e).concat(i.url),t[a]=function(t,e){return Object(n["a"])(i,t,e)}})),t}},"910d":function(t,e,a){},"96b6":function(t,e,a){"use strict";var n=a("71f6"),i={getReview:"/audit/audit-list",getWxEnterprise:"/auth-enterprise-list",getStaffInfo:"/get-staff-info",postAudit:{url:"/audit/agree",method:"post",useFormData:!0,useIntercept:!1},postBatchApprove:{url:"/audit/batch-agree",method:"post",useFormData:!0,useIntercept:!1},postRefuse:{url:"/audit/refuse",method:"post",useFormData:!0,useIntercept:!1},getAuditDetail:"/audit/batch-log-list",getAuditGroupList:"/auditGroup/audit-group-list",delAuditGroup:"/auditGroup/del-audit-group",auditGroupDetail:"/auditGroup/audit-group-detail",editAuditGroup:{url:"/auditGroup/edit-audit-group",method:"post",useFormData:!0},addAuditGroup:{url:"/auditGroup/add-audit-group",method:"post",useFormData:!0},getAdminList:"/auditGroup/select-manager-list",auditItemList:"/auditGroup/audit-item-list",delAuditItem:"/auditGroup/del-audit-item",addAuditItem:"/auditGroup/add-audit-item",editAuditItem:"/auditGroup/edit-audit-item",auditItemDetail:"/auditGroup/audit-item-detail",findAuditSetting:"/audit/find-audit-setting",saveAuditSetting:"/audit/save-audit-setting"};i=Object(n["a"])(i,"/hb-manage-web"),e["a"]=i},c7d9:function(t,e,a){"use strict";var n=a("4e6a"),i=a.n(n);i.a},d157:function(t,e,a){"use strict";a.d(e,"a",(function(){return n})),a.d(e,"b",(function(){return i})),a.d(e,"c",(function(){return s}));a("c5f6"),a("a481"),a("28a5"),a("6b54");function n(t,e){var a,n=e||200;return function(){var e=this,i=arguments;a&&clearTimeout(a),a=setTimeout((function(){a=null,t.apply(e,i)}),n)}}function i(t,e){var a,n,i=e||200;return function(){var e=this,s=arguments,r=+new Date;a&&r-a<i?(clearTimeout(n),n=setTimeout((function(){a=r,t.apply(e,s)}),i)):(a=r,t.apply(e,s))}}function s(t){return t=t.replace(/\uD83C[\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F]|[\uD800-\uDBFF]|[\uDC00-\uDFFF]|[^\u0020-\u007E\u00A0-\u00BE\u2E80-\uA4CF\uF900-\uFAFF\uFE30-\uFE4F\uFF00-\uFFEF\u0080-\u009F\u2000-\u201f\u2026\u2022\u20ac\r\n]/g,""),unescape(escape(t).replace(/\%uD.{3}/g,""))}},dacc:function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"reviewed-wrap common-set-wrap"},[n("div",{staticClass:"right-content"},[n("div",{staticClass:"right-box",staticStyle:{"min-height":"calc(100vh - 86px)"}},[n("div",{staticClass:"reviewed-body-head"},[t._m(0),n("el-input",{staticClass:"w-344",attrs:{maxlength:"50",placeholder:"请输入提交人姓名/账号/手机号","prefix-icon":"el-icon-search",clearable:""},on:{clear:t.clearSearch},nativeOn:{keyup:function(e){return function(e){return t.searchEnterFun(e,t.searchInput)}(e)}},model:{value:t.searchValue,callback:function(e){t.searchValue=e},expression:"searchValue"}}),n("el-select",{staticClass:"w-130 m-l-10",attrs:{placeholder:"全部事项"},on:{change:t.changeTableList},model:{value:t.auditType,callback:function(e){t.auditType=e},expression:"auditType"}},t._l(t.filterOptions,(function(t){return n("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1),n("el-select",{staticClass:"w-168 m-l-10",attrs:{placeholder:"全部品牌"},on:{change:t.changeTableList},model:{value:t.filterBrand,callback:function(e){t.filterBrand=e},expression:"filterBrand"}},[n("el-option",{attrs:{label:"全部品牌",value:""}}),t._l(t.brandOptions,(function(t){return n("el-option",{key:t.enterpriseId,attrs:{label:t.enterpriseName,value:t.enterpriseId}})}))],2)],1),n("div",{staticClass:"reviewed-body-content"},[n("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],ref:"multipleTable",staticStyle:{width:"100%"},attrs:{data:t.tableData,"tooltip-effect":"dark"}},[n("el-table-column",{attrs:{label:"审核事项"},scopedSlots:t._u([{key:"default",fn:function(e){return[1==e.row.auditType?n("span",[t._v("导购账号绑定")]):t._e(),3==e.row.auditType?n("span",[t._v("导购账号新增")]):t._e()]}}])}),n("el-table-column",{attrs:{label:"提交人","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[n("div",{staticClass:"flex"},[n("el-popover",{attrs:{placement:"top",width:"300",trigger:"hover"},on:{show:function(a){return t.showSingleInfo(e.row.submitStaffId)}}},[n("div",{staticClass:"apply-info-detail"},[n("div",{staticClass:"flex"},[n("div",{staticClass:"apply-info-img flex-align-center flex-pack-center bg-82c5ff "},[t.userData.headImg?n("img",{attrs:{src:t.userData.headImg,alt:"img"}}):n("img",{attrs:{src:a("6ce2"),alt:"img"}})]),n("div",{staticClass:"flex flex-column apply-info-right flex-pack-center"},[n("div",{staticClass:"apply-info-name"},[n("span",{staticClass:"font-14 color-303133"},[t._v(t._s(t.userData.staffName||"--"))]),n("span",{staticClass:"font-14 color-90939"},[t._v("( "+t._s(1==t.userData.sex?"男":2==t.userData.sex?"女":"--")+")")])])])]),n("div",{staticClass:"flex flex-space-between line-26 m-t-15"},[n("div",{staticClass:"font-14 color-606266"},[t._v("账号")]),n("div",{staticClass:"font-14 color-303133"},[t._v(t._s(t.userData.wxUserId||"--"))])]),n("div",{staticClass:"flex flex-space-between line-26"},[n("div",{staticClass:"font-14 color-606266"},[t._v("职务")]),n("div",{staticClass:"font-14 color-303133"},[t._v(t._s(t.userData.postion||"--"))])]),n("div",{staticClass:"flex flex-space-between line-26"},[n("div",{staticClass:"font-14 color-606266"},[t._v("手机号")]),n("div",{staticClass:"font-14 color-303133"},[t._v(t._s(t.userData.nationCode||"--")+"-"+t._s(t.userData.phoneNumber||"--"))])]),n("div",{staticClass:"flex flex-space-between line-26"},[n("div",{staticClass:"font-14 color-606266 w-m-100"},[t._v("部门")]),n("div",{staticClass:"font-14 color-303133"},[t._v(t._s(t.userData.departmentInfo.map((function(t){return t.departmentName})).join(";")||"--"))])])]),n("div",{attrs:{slot:"reference"},slot:"reference"},[n("div",{staticClass:"flex flex-align-center flex-pack-center bg-82c5ff table-head-pic cursor-pointer"},[e.row.submitHeadImg?n("img",{attrs:{src:e.row.submitHeadImg,alt:"img"}}):n("img",{attrs:{src:a("6ce2"),alt:"img"}})])])]),n("div",{staticClass:"flex flex-column apply-info",staticStyle:{overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"}},[n("span",{staticClass:"font-14 color-606266 hide-ellipsis"},[t._v(t._s(e.row.submitStaffName||"--"))]),n("span",{staticClass:"font-12 color-909399 hide-ellipsis"},[t._v(t._s(e.row.submitWxUserId||"--"))])])],1)]}}])}),n("el-table-column",{attrs:{label:"详情","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.content||"--")+"\n ")]}}])}),n("el-table-column",{attrs:{label:"提交时间","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[n("div",{staticClass:"line-h-18"},[t._v(t._s(t._f("timeStampToYmd")(e.row.createTime)))]),n("div",{staticClass:"line-h-18"},[t._v(t._s(t._f("timeStampToHms")(e.row.createTime)))])]}}])}),n("el-table-column",{attrs:{label:"审核人","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.auditStaffName||"--")+"\n ")]}}])}),n("el-table-column",{attrs:{label:"状态"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("span",{class:["span-dot",1==e.row.auditFlag?"bg-52c41a":"bg-f5222d"]}),1==e.row.auditFlag?n("span",[t._v("已同意")]):t._e(),2==e.row.auditFlag?n("el-popover",{attrs:{placement:"top",width:"200",trigger:"hover",content:e.row.reason}},[n("span",{staticClass:"common-bottom-border",attrs:{slot:"reference"},slot:"reference"},[t._v("已拒绝")])]):t._e()]}}])}),n("el-table-column",{attrs:{label:"结果"},scopedSlots:t._u([{key:"default",fn:function(e){return[2==e.row.statusFlag&&1==e.row.auditFlag?n("span",[t._v("成功")]):t._e(),2==e.row.auditFlag?n("span",[t._v("--")]):t._e(),1==e.row.statusFlag&&1==e.row.auditFlag?n("el-popover",{attrs:{placement:"top",width:"200",trigger:"hover",content:e.row.reason}},[n("span",{staticClass:"common-bottom-border",attrs:{slot:"reference"},slot:"reference"},[t._v("失败")])]):t._e()]}}])})],1),0!=t.tableData.length?n("div",{staticClass:"block common-wrap__page text-right"},[n("dm-pagination",{attrs:{background:"","current-page":t.currentPage,"page-sizes":[20,40,60,80],"page-size":t.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1):t._e()],1)])]),n("store-change",{attrs:{"store-change-data":t.storeChangeData},model:{value:t.showStoreDialog,callback:function(e){t.showStoreDialog=e},expression:"showStoreDialog"}})],1)},i=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"tip-body m-b-20"},[a("div",{staticClass:"el-alert el-alert--info",attrs:{role:"alert"}},[a("i",{staticClass:"el-alert__icon el-icon-info"}),a("div",{staticClass:"el-alert__content"},[a("span",{staticClass:"el-alert__title"},[t._v("展示管理员审核及绑定解绑记录及门店成员自助增删导购及用户绑定记录")])])])])}],s=(a("28a5"),a("ac6a"),a("6300")),r=a("96b6"),l=a("e230"),o=a("d157"),u=l["a"].getStaffDetail,c=r["a"].getReview,d=r["a"].getWxEnterprise,f={name:"ReviewedPage",components:{storeChange:s["a"]},data:function(){return{wxEnterpriseId:localStorage.getItem("haoBanUser")?JSON.parse(localStorage.getItem("haoBanUser")).wxEnterpriseId:"",auditType:"",filterBrand:"",brandOptions:[],filterOptions:[{label:"全部事项",value:""},{label:"导购账号绑定",value:"1"},{label:"导购账号新增",value:"3"}],searchValue:"",loading:!1,tableData:[],multipleSelection:[],currentPage:1,pageSize:20,total:0,showStoreDialog:!1,storeChangeData:{},userData:{staffName:"",phoneNumber:"",nationCode:"",postion:"",departmentInfo:[],headImg:"",wxUserId:"",sex:1}}},mounted:function(){var t=this;t.$emit("showTab","/reviewed"),t.getTableList(),t.getBrandData()},methods:{changeTableList:function(){var t=this;t.currentPage=1,t.getTableList()},clearSearch:function(){var t=this;t.currentPage=1,t.getTableList()},searchEnterFun:Object(o["a"])((function(t){var e=this,a=String(t.target.value).trim();if(!a)return!1;e.currentPage=1,e.getTableList()}),200),toggleReason:function(t){var e=this;t.visible=!0,e.tableData.forEach((function(e,a){e.enterpriseAuditingId!=t.enterpriseAuditingId&&(e.visible=!1)}))},handleSelectionChange:function(t){var e=this;e.multipleSelection=t},handleSizeChange:function(t){var e=this;e.currentPage=1,e.pageSize=t,e.getTableList()},handleCurrentChange:function(t){var e=this;e.currentPage=t,e.getTableList()},showSingleInfo:function(t){var e=this,a={staffId:t};u(a).then((function(t){e.userData=t.result||{staffName:"",phoneNumber:"",nationCode:"",postion:"",departmentInfo:[],headImg:"",wxUserId:"",sex:1}})).catch((function(t){}))},showStoreChange:function(t){var e=this;e.storeChangeData={beforeContent:[],afterContent:[]},e.showStoreDialog=!0,e.storeChangeData={beforeContent:""!=t.oldValue?t.oldValue.split(","):[],afterContent:""!=t.newValue?t.newValue.split(","):[]}},getBrandData:function(){var t=this;d({wxEnterpriseId:t.wxEnterpriseId}).then((function(e){e.result&&e.result.length&&(t.brandOptions=e.result)})).catch((function(t){}))},getTableList:function(){var t=this;t.loading=!0;var e={wxEnterpriseId:t.wxEnterpriseId,auditType:t.auditType,searchType:"1",search:t.searchValue||"",pageNum:t.currentPage,pageSize:t.pageSize,enterpriseId:t.filterBrand};c(e).then((function(e){t.loading=!1,t.tableData=e.result.result||[],t.total=e.result.totalCount})).catch((function(e){t.loading=!1}))}}},p=f,g=(a("c7d9"),a("2877")),h=Object(g["a"])(p,n,i,!1,null,"fbbba2d0",null);e["default"]=h.exports},e230:function(t,e,a){"use strict";var n=a("71f6"),i={getSyncCheck:"/sync/sync-check",refreshWx:"/sync/sync-contact",getDepartmentList:"/department-list-level",getCompanyDepartList:"/contact/get-department-list",getStaffList:"/contact/get-staff-list",getStaffDetail:"/contact/staff-detail",getStaffRelation:"/bind/staff-clerk-relation",delStaffRelation:{url:"/bind/staff-unbind",method:"post",useFormData:!0,useIntercept:!1},addStaffRelation:{url:"/bind/staff-bind",method:"post",useFormData:!0,useIntercept:!1},getClerkRelation:"/bind/search-clerk-list",getWxEnterprise:"/auth-enterprise-list",getBindLog:"/bind/bind-log-list",getRefreshLog:"/sync/sync-task",getSyncFailDetail:"/sync-task-detail",getNationCode:"/get-nation-code-list",getGicGroup:"/gic-department-list",getGicStore:"/get-store-list"};i=Object(n["a"])(i,"/hb-manage-web"),e["a"]=i}}]);
\ No newline at end of file \ No newline at end of file
/*
* @Descripttion: 当前组件信息
* @version: 1.0.0
* @Author: 无尘
* @Date: 2020-09-08 17:11:02
* @LastEditors: 无尘
* @LastEditTime: 2020-10-19 14:49:31
*/
import getFetch from './get-fetch'; import getFetch from './get-fetch';
const api = { const api = {
getAppList: '/application-list', // 获取应用列表 getAppList: '/application-list', // 获取应用列表
getAppDetail: '/application-detail', // 获取应用详情 getAppDetail: '/application-detail', // 获取应用详情
getMarketAccount: '/get-account-info', // 获取服务市场账号
refreshMarketAccount: '/refesh-account-info', // 刷新服务市场账号
addMarketAccount: {
url: '/bind-service-account', // 添加服务市场账号
method: 'post',
useFormData: true,
useIntercept: false
},
getAppAuthDetail: '/', // 获取应用授权详情
postAuthRights: '/', // 授权
postPhoneCode: {
url: '/send-code', // 发送验证码
method: 'post',
useFormData: true,
useIntercept: false
},
checkCode: {
url: '/validate-code', // 校验验证码
method: 'post',
useFormData: true,
useIntercept: false
},
}; };
export default getFetch(api, '/hb-manage-web'); export default getFetch(api, '/hb-manage-web');
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
* @Author: 无尘 * @Author: 无尘
* @Date: 2020-07-24 12:19:48 * @Date: 2020-07-24 12:19:48
* @LastEditors: 无尘 * @LastEditors: 无尘
* @LastEditTime: 2020-08-14 10:03:39 * @LastEditTime: 2020-10-19 14:46:14
*/ */
import getFetch from './get-fetch.js'; import getFetch from './get-fetch.js';
...@@ -34,7 +34,7 @@ let api = { ...@@ -34,7 +34,7 @@ let api = {
getRefreshLog: '/sync/sync-task', // 查看刷新日志 getRefreshLog: '/sync/sync-task', // 查看刷新日志
getSyncFailDetail: '/sync-task-detail', // 查看失败日志 getSyncFailDetail: '/sync-task-detail', // 查看失败日志
getNationCode: '/nationcode/get-nationcode-list', // 获取国家码(暂无用) getNationCode: '/get-nation-code-list', // 获取国家码
getGicGroup: '/gic-department-list', // 获取gic部门(暂无用) getGicGroup: '/gic-department-list', // 获取gic部门(暂无用)
getGicStore: '/get-store-list', // 获取gic门店(暂无用) getGicStore: '/get-store-list', // 获取gic门店(暂无用)
......
<!--
* @Descripttion: 添加服务市场账号
* @version: 1.0.0
* @Author: 无尘
* @Date: 2020-10-16 14:22:10
* @LastEditors: 无尘
* @LastEditTime: 2020-10-19 15:22:20
-->
<!--
使用帮助
<add-market-dialog @closeMarket="closeMarket"></add-market-dialog>
import AddMarketDialog from '@/components/app/add-market-dialog.vue';
-->
<template>
<el-dialog title="绑定服务市场账号" :visible.sync="dialogVisible" width="600px" :before-close="handleClose">
<div class="">
<el-form ref="ruleForm" :model="marketForm" label-width="80px">
<el-form-item label="手机号">
<country-mobile :nation-code.sync="marketForm.nationCode" :input-width="500" :limit-class="'limit-color'" v-model="marketForm.phoneNumber" :holder="'请输入'"></country-mobile>
</el-form-item>
<el-form-item label="验证码">
<el-input v-model="marketForm.code" placeholder="请输入验证码"></el-input><el-button class="m-l-35" :disabled="disableBtn" type="text" @click="sendCode()">{{ (disableBtn && countNum == 60) || (!disableBtn && !!countNum) ? '获取验证码' : countNum + 's' }}</el-button>
</el-form-item>
</el-form>
</div>
<div slot="footer" class="dialog-footer">
<el-button @click="handleClose">取消</el-button>
<el-button type="primary" :loading="loadBtn" @click="submitForm('ruleForm')">确认</el-button>
</div>
</el-dialog>
</template>
<script>
import { _debounce } from '@/common/js/public';
import fetch from '@/api/app-controls';
import PhoneNumber from 'awesome-phonenumber';
const { addMarketAccount, postPhoneCode, checkCode } = fetch;
import showMsg from '@/common/js/showmsg';
export default {
name: 'AddMarketDialog',
data() {
return {
dialogVisible: true,
loadBtn: false,
marketForm: {
nationCode: '86',
phoneNumber: '',
code: ''
},
disableBtn: true, // 发验证码.默认无手机号,不可点击
countNum: 60,
};
},
methods: {
/**
* @description: 倒计时
* @author: 无尘
*/
countDown() {
const that = this;
let time = setInterval(function() {
if (that.countNum === 0) {
clearInterval(time);
that.countNum = 60;
that.disableBtn = false;
return false;
}
that.countNum--;
}, 1000);
},
/**
* @description: 发送验证码
* @returns {Boolean}
* @author: 无尘
*/
sendCode: _debounce(function() {
const that = this;
let { phoneNumber, nationCode } = that.marketForm;
if (phoneNumber == '' ) {
showMsg.showmsg('手机号不能为空', 'warning');
return false;
}
const pn = new PhoneNumber('+' + nationCode + phoneNumber);
if (!pn.isValid() || !pn.isMobile()) {
showMsg.showmsg('手机号格式不正确', 'warning');
return false;
}
let params = {
phoneNumber,
nationCode,
type: 1
// isTest: 1 , // 测试时使用
};
postPhoneCode(params)
.then(res => {
if (res.code == '0000') {
that.disableBtn = true;
that.countDown();
const phone = String(phoneNumber);
let handle = phone.substr(0, 3) + '****' + phone.substr(7, phone.length - 1);
showMsg.showmsg(`已发送验证码到${nationCode || '86'}-${handle}`, 'success');
return false;
}
showMsg.showmsg(res.message || '未知错误', 'warning');
})
.catch(function(error) {
});
}, 300),
/**
* @description: 校验验证码
* @returns {Function}
* @author: 无尘
*/
checkCode() {
const that = this;
let { phoneNumber, nationCode, code } = that.marketForm;
let params = {
phoneNumber,
nationCode,
type: 1,
code
};
return new Promise((resolve, reject) => {
checkCode(params)
.then(res => {
if (res.code == '0000') {
resolve(true);
return false;
}
showMsg.showmsg(res.message || '未知错误', 'warning');
resolve(false);
})
.catch(function(error) {
resolve(false);
that.$message.error({
duration: 1000,
message: error.message
});
});
});
},
/**
* @description: 保存
* @param {String} formName
* @author: 无尘
*/
submitForm: _debounce(function(formName) {
const that = this;
that.$refs[formName].validate(valid => {
if (valid) {
that.postSave();
}
});
}, 300),
postSave() {
const that = this;
that.loadBtn = true;
const data = {
};
addMarketAccount(data)
.then(res => {
that.loadBtn = false;
if (res.code == '0000') {
showMsg.showmsg('操作成功', 'success');
that.$refs['ruleForm'].resetFields();
that.$emit('closeMarket', true);
}else {
showMsg.showmsg(res.message || '未知错误', 'warning');
that.$emit('closeMarket', true);
}
})
.catch(error => {
that.loadBtn = false;
});
},
/**
* @description: 关闭弹窗
* @author: 无尘
*/
handleClose() {
const that = this;
that.$emit('closeMarket');
}
},
watch: {
marketForm(obj) {
const that = this;
if (obj.phoneNumber) {
that.disableBtn = false;
}
}
},
};
</script>
<style lang="less" scoped>
.m-b-20 {
margin-bottom: 20px;
}
</style>
...@@ -4,11 +4,12 @@ ...@@ -4,11 +4,12 @@
* @Author: 无尘 * @Author: 无尘
* @Date: 2019-07-03 18:50:33 * @Date: 2019-07-03 18:50:33
* @LastEditors: 无尘 * @LastEditors: 无尘
* @LastEditTime: 2020-09-09 15:27:40 * @LastEditTime: 2020-10-19 14:35:46
--> -->
<!-- <!--
限制输入框组件 限制输入框组件
<countryMobile <countryMobile
:nationCode.sync="loginForm.nationCode"
:input-width="500" :input-width="500"
:limit-class="'limit-color'" :limit-class="'limit-color'"
:disflag='disflag' :disflag='disflag'
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
* @Author: 无尘 * @Author: 无尘
* @Date: 2020-07-16 16:37:05 * @Date: 2020-07-16 16:37:05
* @LastEditors: 无尘 * @LastEditors: 无尘
* @LastEditTime: 2020-10-16 10:20:16 * @LastEditTime: 2020-10-16 11:46:45
*/ */
import _import from './_import.js'; import _import from './_import.js';
...@@ -167,7 +167,14 @@ export const routes = [ ...@@ -167,7 +167,14 @@ export const routes = [
path: '/app-detail', path: '/app-detail',
meta: { title: '服务应用详情' }, meta: { title: '服务应用详情' },
component: _import('app-controls', 'app-detail') component: _import('app-controls', 'app-detail')
} },
{
path: '/app-market',
meta: {
title: '服务市场'
},
component: _import('app-controls', 'app-market')
},
] ]
}, },
{ {
......
<!--
* @Descripttion: 服务市场账号
* @version: 1.0.0
* @Author: 无尘
* @Date: 2020-10-16 11:46:25
* @LastEditors: 无尘
* @LastEditTime: 2020-10-19 14:32:54
-->
<template>
<div class="app-market-body">
<div class="app-market-account">
<el-tooltip class="item" effect="dark" content="绑定服务市场账号后可购买应用。购买信息在服务市场可查看。" placement="top-start"> <span class="font-16 color-303133 font-w-600 common-bottom-border">服务市场账号</span></el-tooltip>
<el-button class="m-l-20" type="primary" @click="addAcount">添加</el-button>
<el-button class="m-l-20" type="text" :loading="loadRefesh" @click="refreshData">同步刷新 </el-button>
<span class="font-12 color-909399 p-l-15">更新时间:{{ marketAccount.updateTime | formatTimeStamp}}</span>
</div>
<div class="app-market-list">
<el-form ref="form" :model="form" label-width="80px">
<el-form-item label="账号">
{{marketAccount.id || '--'}}
</el-form-item>
<el-form-item label="绑定时间">
{{marketAccount.bindDate | formatTimeStamp}}
</el-form-item>
<el-form-item label="绑定人">
{{marketAccount.bindName || ''}}
</el-form-item>
</el-form>
</div>
<add-market-dialog v-if="showDialog" @closeMarket="closeMarket"></add-market-dialog>
</div>
</template>
<script>
import AddMarketDialog from '@/components/app/add-market-dialog.vue';
import fetch from '@/api/app-controls';
const { getMarketAccount, refreshMarketAccount } = fetch;
import showMsg from '@/common/js/showmsg';
export default {
name: '',
components: { AddMarketDialog },
data() {
return {
wxEnterpriseId: localStorage.getItem('haoBanUser') ? JSON.parse(localStorage.getItem('haoBanUser')).wxEnterpriseId : '',
marketAccount: {
id: '',
bindDate: '',
bindName: '',
updateTime: ''
},
loadRefesh: false,
showDialog: false
};
},
// 生命周期 - 挂载完成(访问DOM元素)
mounted() {
const that = this;
that.getMarket();
},
// methods
methods: {
refreshData() {
const that = this;
that.refreshMarketData();
},
/**
* @description: 刷新数据
* @author: 无尘
*/
refreshMarketData() {
const that = this;
that.loadRefesh = true;
const para = {
wxEnterpriseId: that.wxEnterpriseId
};
refreshMarketAccount(para)
.then(res => {
that.loadRefesh = false;
showMsg.showmsg('刷新成功', 'success');
that.getMarket();
})
.catch(function(error) {
that.loadRefesh = false;
});
},
/**
* @description: 添加
* @author: 无尘
*/
addAcount() {
const that = this;
that.showDialog = true;
},
closeMarket(res) {
const that = this;
that.showDialog = false;
if (res) {
that.getMarket();
}
},
/**
* @description: 获取服务市场账号
* @author: 无尘
*/
getMarket() {
const that = this;
const para = {
};
getMarketAccount(para)
.then(res => {
if (!res.result) {
that.marketAccount = res.result || {};
}
})
.catch(function(error) {
});
}
},
watch: {}
};
</script>
<style lang='less' scoped>
.common-bottom-border {
cursor: pointer;
padding-bottom: 2px;
border-bottom: 1px dashed #2f54eb;
}
.app-market-body {
.app-market-list {
width: 100%;
height: 119px;
background: #F5F7FA;
padding: 18px 26px;
box-sizing: border-box;
}
}
</style>
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
* @Author: 无尘 * @Author: 无尘
* @Date: 2020-10-16 10:18:02 * @Date: 2020-10-16 10:18:02
* @LastEditors: 无尘 * @LastEditors: 无尘
* @LastEditTime: 2020-10-16 11:39:56 * @LastEditTime: 2020-10-16 11:44:00
--> -->
<template> <template>
<div class="app-auth-body"> <div class="app-auth-body">
...@@ -131,7 +131,7 @@ export default { ...@@ -131,7 +131,7 @@ export default {
box-sizing: border-box; box-sizing: border-box;
.app-info-title { .app-info-title {
font-size: 16px; font-size: 16px;
font-weight: 500; font-weight: 600;
color: #303133; color: #303133;
line-height: 22px; line-height: 22px;
} }
...@@ -160,6 +160,9 @@ export default { ...@@ -160,6 +160,9 @@ export default {
border-radius: 6px; border-radius: 6px;
} }
} }
.app-name {
font-weight: 600;
}
.auth-rights { .auth-rights {
.auth-rights-title { .auth-rights-title {
padding: 10px 0; padding: 10px 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment