Commit b6cd7a08 by 无尘

feat: 增加路由

parent 1c4daabd
.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
.input-line-cell[data-v-4b4be42a]{position:relative;display:inline-block}.w-92[data-v-4b4be42a]{width:92px}.el-input-group[data-v-4b4be42a] .el-input-group__prepend{background:#fff}.w-340[data-v-4b4be42a]{width:340px}.w-340[data-v-4b4be42a] .el-input__inner{font-size:14px;color:#fff;background-color:hsla(0,0%,100%,.1)}.el-input[data-v-4b4be42a] .el-input__inner{font-size:14px;color:#606266;background-color:hsla(0,0%,100%,.1)}.el-input.is-disabled[data-v-4b4be42a]{opacity:.5}.el-input .is-disabled[data-v-4b4be42a] .el-input__inner{font-size:14px;color:#fff;background-color:hsla(0,0%,100%,.1)}.m-b-20[data-v-446c9cdf]{margin-bottom:20px}.m-l-20[data-v-75317dda]{margin-left:20px}.common-bottom-border[data-v-75317dda]{cursor:pointer;padding-bottom:2px;border-bottom:1px dashed #2f54eb}.app-market-body[data-v-75317dda]{min-height:100%;background:#fff;padding:20px}.app-market-body .app-market-list[data-v-75317dda]{width:100%;min-height:119px;margin-top:22px;background:#f5f7fa;padding:18px 26px;-webkit-box-sizing:border-box;box-sizing:border-box}.app-market-body .app-market-list .el-form-item[data-v-75317dda]{margin-bottom:10px}
\ 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-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
<!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-1a59eff2.776ea34d.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-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-46528954.bcfa2b34.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-6abb3762.711b18df.css rel=prefetch><link href=css/chunk-6afeeb41.4c7ac148.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-064f007c.83536496.js rel=prefetch><link href=js/chunk-06fd5be4.f87d090c.js rel=prefetch><link href=js/chunk-08047175.b4d9dd6c.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-1a59eff2.f2a233f6.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-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-46528954.e859a6c4.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-6abb3762.52cdea44.js rel=prefetch><link href=js/chunk-6afeeb41.8819a375.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-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.0bed0100.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.0bed0100.js></script></body></html>
\ 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-08047175":"b4d9dd6c","chunk-6abb3762":"52cdea44","chunk-6afeeb41":"8819a375","chunk-0903084f":"52a8862b","chunk-17931de2":"beaf9c5d","chunk-1a59eff2":"f2a233f6","chunk-2226ce36":"dc0c4215","chunk-2351fb9b":"8f3632bd","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-46528954":"e859a6c4","chunk-7c18fb37":"3ecac0cc","chunk-7cbff464":"ebade338","chunk-97c8b0bc":"e5eba857","chunk-9c5b2680":"851afa33","chunk-b073f330":"adc0d87e","chunk-b8247f22":"6a7951f4","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-6abb3762":1,"chunk-6afeeb41":1,"chunk-0903084f":1,"chunk-17931de2":1,"chunk-1a59eff2":1,"chunk-2226ce36":1,"chunk-2351fb9b":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-46528954":1,"chunk-7c18fb37":1,"chunk-7cbff464":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-08047175":"31d6cfe0","chunk-6abb3762":"711b18df","chunk-6afeeb41":"4c7ac148","chunk-0903084f":"e3cb6255","chunk-17931de2":"e4a1a8fe","chunk-1a59eff2":"776ea34d","chunk-2226ce36":"8a534ad3","chunk-2351fb9b":"6efba3e1","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-46528954":"bcfa2b34","chunk-7c18fb37":"93e19818","chunk-7cbff464":"979068dd","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/app-market.vue":["53b1","chunk-08047175","chunk-6afeeb41"],"./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-1a59eff2"],"./business/contacts.vue":["a269","chunk-08047175","chunk-6abb3762"],"./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=[],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
This source diff could not be displayed because it is too large. You can view the blob instead.
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-26acaa95"],{"09c4":function(t,e,a){"use strict";var n=a("31df"),r=a.n(n);r.a},"21f4":function(t,e,a){"use strict";var n=a("71f6"),r={getAuthEnterprise:"/auth-enterprise-list",getGroupList:"/department-list",getStoreList:"/store-list",getAuthDetail:"/enterprise-auth-detail",getAuditLog:"/enterprise-auth-audit-list",cancelAudit:{url:"/enterprise-auth-audit",method:"post",useFormData:!0,useIntercept:!1},getCheckName:"/gic-admin-frist",checkName:{url:"/gic-name-validate",method:"post",useFormData:!0,useIntercept:!1},getAuditLogDetail:"/enterprise-auth-audit-range-detail",getEnterprise:"/enterprise-search",getGicAdmin:"/gic-manage-list",postEnterpriseAuth:{url:"/enterprise-auth",method:"post",useFormData:!0,useIntercept:!1},getEnterpriseDetail:"/gic-enterprise-detail"};r=Object(n["a"])(r,"/hb-manage-web"),e["a"]=r},"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)},r=[],o={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)}}},s=o,i=(a("6b4b"),a("2877")),l=Object(i["a"])(s,n,r,!1,null,"2c2a2724",null);e["a"]=l.exports},"31df":function(t,e,a){},"56b3":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:"my-customer-wrap common-set-wrap"},[n("nav-crumb",{attrs:{navpath:t.navpath}}),n("div",{staticClass:"right-content"},[n("div",{staticClass:"right-box",staticStyle:{"min-height":"calc(100vh - 104px)"}},[n("div",{staticClass:"apps-content flex",staticStyle:{"min-height":"calc(100vh - 104px)"}},[n("div",{staticClass:"apps-content-right"},[n("div",{staticClass:"flex flex-space-between"},[n("div",{staticStyle:{width:"643px"}},[n("div",{staticClass:"el-alert el-alert--info flex flex-align-start",staticStyle:{width:"643px"},attrs:{role:"alert"}},[n("i",{staticClass:"el-alert__icon el-icon-info font-12 color-2f54eb"}),n("div",{staticClass:"el-alert__content"},[n("span",{staticClass:"el-alert__title color-606266 font-14"},[t._v("提示:授权的商户,需在同一个微信开放平台主体下;最多授权10个商户。 ")]),n("el-button",{attrs:{type:"text"},on:{click:t.openUrl}},[t._v("主体查询方法")])],1)])]),n("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.changeRoute("/newAuthMerchant")}}},[t._v("新建GIC商户授权")])],1),n("div",{staticClass:"m-t-20"},[n("el-table",{ref:"multipleTable",staticClass:"select-table",style:{width:"100%",minHeight:t.tableH},attrs:{data:t.tableData,"tooltip-effect":"dark"}},[n("el-table-column",{attrs:{prop:"",label:"商户列表",width:"238","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[n("div",{staticClass:"ul-li-cell flex"},[n("div",{staticClass:"cell-img"},[e.row.enterpriseLogo?n("img",{attrs:{src:e.row.enterpriseLogo,alt:"img"}}):n("img",{attrs:{src:a("6ce2"),alt:"img"}})]),n("div",{staticClass:"cell-info"},[n("div",{staticClass:"cell-info-name flex font-14 color-303133"},[n("span",{staticClass:"gic-name"},[t._v(t._s(e.row.enterpriseName||"--"))]),n("span",{staticClass:"gic-version"},[t._v(t._s(e.row.version||"--"))])]),n("div",{staticClass:"cell-info-name flex font-14 color-303133"},[n("span",{staticClass:"gic-name"},[t._v(t._s(e.row.companyName||"--"))])])])])]}}])}),n("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.bindRange||"--")+"\n ")]}}])},[n("template",{slot:"header"},[n("el-tooltip",{staticClass:"item",attrs:{effect:"dark",placement:"right"}},[n("div",{attrs:{slot:"content"},slot:"content"},[t._v("\n 绑定门店拥有门店资源管理权限。能查看数据,绑定导购账号,管理门店等\n ")]),n("span",{staticClass:"common-bottom-border"},[t._v("绑定门店")])])],1)],2),n("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.shareRange||"--")+"\n ")]}}])},[n("template",{slot:"header"},[n("el-tooltip",{staticClass:"item",attrs:{effect:"dark",placement:"right"}},[n("div",{attrs:{slot:"content"},slot:"content"},[t._v("\n 共享门店拥有门店资源查看权限。仅能授权查看数据,"),n("br"),t._v("如会员数据,任务数据等,但无法操作及进行导购账号绑定\n ")]),n("span",{staticClass:"common-bottom-border"},[t._v("共享门店")])])],1)],2),n("el-table-column",{attrs:{prop:"",label:"提交人","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.referStaffName||"--"))]}}])}),n("el-table-column",{attrs:{prop:"",label:"授权时间","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[n("div",{staticClass:"line-18"},[t._v(t._s(t._f("timeStampToYmd")(e.row.createTime)))]),n("div",{staticClass:"line-18"},[t._v(t._s(t._f("timeStampToHms")(e.row.createTime)))])]}}])}),n("el-table-column",{attrs:{prop:"",label:"更新时间","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[n("div",{staticClass:"line-18"},[t._v(t._s(t._f("timeStampToYmd")(e.row.updateTime)))]),n("div",{staticClass:"line-18"},[t._v(t._s(t._f("timeStampToHms")(e.row.updateTime)))])]}}])}),n("el-table-column",{attrs:{prop:"",label:"操作",width:"203"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("el-button",{attrs:{type:"text"},on:{click:function(a){return t.toEdit(e.$index,e.row)}}},[t._v("编辑授权设置")]),n("el-button",{attrs:{type:"text"},on:{click:function(a){return t.toAuditLog(e.$index,e.row)}}},[t._v("审核日志")])]}}])})],1)],1)])])])])],1)},r=[],o=a("29b6"),s=a("21f4"),i=s["a"].getAuthEnterprise,l={name:"AuthMerchant",components:{navCrumb:o["a"]},data:function(){return{navpath:[{name:"通讯录",path:"/contactsList"},{name:"授权商户",path:""}],wxEnterpriseId:localStorage.getItem("haoBanUser")?JSON.parse(localStorage.getItem("haoBanUser")).wxEnterpriseId:"",currentPage:1,pageSize:20,total:0,tableData:[]}},mounted:function(){var t=this;t.getTableList(),document.documentElement.style.backgroundColor="#f0f2f5"},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},methods:{toEdit:function(t,e){var a=this;a.changeRoute("/newAuthMerchant?enterpriseId=".concat(e.enterpriseId))},toAuditLog:function(t,e){var a=this;a.changeRoute("/auditLog?enterpriseId=".concat(e.enterpriseId))},openUrl:function(){window.open("https://developers.weixin.qq.com/community/develop/doc/00046610a9cbb0fd80f9a7dd354c09")},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={wxEnterpriseId:t.wxEnterpriseId};i(e).then((function(e){t.tableData=e.result||[]})).catch((function(t){}))}}},c=l,u=(a("09c4"),a("2877")),p=Object(u["a"])(c,n,r,!1,null,"33f2a102",null);e["default"]=p.exports},"6b4b":function(t,e,a){"use strict";var n=a("76d4"),r=a.n(n);r.a},"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 r}));a("ac6a"),a("456d");var n=a("b775");function r(t,e){t=t||{};var a=Object.keys(t);return a.forEach((function(a){var r=t[a];"string"===typeof r&&(r={url:r}),r.url="".concat(e).concat(r.url),t[a]=function(t,e){return Object(n["a"])(r,t,e)}})),t}},"76d4":function(t,e,a){}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-1a59eff2"],{"09c4":function(t,e,a){"use strict";var n=a("31df"),r=a.n(n);r.a},"21f4":function(t,e,a){"use strict";var n=a("71f6"),r={getAuthEnterprise:"/auth-enterprise-list",getGroupList:"/department-list",getStoreList:"/store-list",getAuthDetail:"/enterprise-auth-detail",getAuditLog:"/enterprise-auth-audit-list",cancelAudit:{url:"/enterprise-auth-audit",method:"post",useFormData:!0,useIntercept:!1},getCheckName:"/gic-admin-frist",checkName:{url:"/gic-name-validate",method:"post",useFormData:!0,useIntercept:!1},getAuditLogDetail:"/enterprise-auth-audit-range-detail",getEnterprise:"/enterprise-search",getGicAdmin:"/gic-manage-list",postEnterpriseAuth:{url:"/enterprise-auth",method:"post",useFormData:!0,useIntercept:!1},getEnterpriseDetail:"/gic-enterprise-detail"};r=Object(n["a"])(r,"/hb-manage-web"),e["a"]=r},"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)},r=[],o={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)}}},s=o,i=(a("6b4b"),a("2877")),l=Object(i["a"])(s,n,r,!1,null,"2c2a2724",null);e["a"]=l.exports},"31df":function(t,e,a){},"56b3":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:"my-customer-wrap common-set-wrap"},[n("nav-crumb",{attrs:{navpath:t.navpath}}),n("div",{staticClass:"right-content"},[n("div",{staticClass:"right-box",staticStyle:{"min-height":"calc(100vh - 104px)"}},[n("div",{staticClass:"apps-content flex",staticStyle:{"min-height":"calc(100vh - 104px)"}},[n("div",{staticClass:"apps-content-right"},[n("div",{staticClass:"flex flex-space-between"},[n("div",{staticStyle:{width:"643px"}},[n("div",{staticClass:"el-alert el-alert--info flex flex-align-start",staticStyle:{width:"643px"},attrs:{role:"alert"}},[n("i",{staticClass:"el-alert__icon el-icon-info font-12 color-2f54eb"}),n("div",{staticClass:"el-alert__content"},[n("span",{staticClass:"el-alert__title color-606266 font-14"},[t._v("提示:授权的商户,需在同一个微信开放平台主体下;最多授权10个商户。 ")]),n("el-button",{attrs:{type:"text"},on:{click:t.openUrl}},[t._v("主体查询方法")])],1)])]),n("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.changeRoute("/newAuthMerchant")}}},[t._v("新建GIC商户授权")])],1),n("div",{staticClass:"m-t-20"},[n("el-table",{ref:"multipleTable",staticClass:"select-table",style:{width:"100%",minHeight:t.tableH},attrs:{data:t.tableData,"tooltip-effect":"dark"}},[n("el-table-column",{attrs:{prop:"",label:"商户列表",width:"238","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[n("div",{staticClass:"ul-li-cell flex"},[n("div",{staticClass:"cell-img"},[e.row.enterpriseLogo?n("img",{attrs:{src:e.row.enterpriseLogo,alt:"img"}}):n("img",{attrs:{src:a("6ce2"),alt:"img"}})]),n("div",{staticClass:"cell-info"},[n("div",{staticClass:"cell-info-name flex font-14 color-303133"},[n("span",{staticClass:"gic-name"},[t._v(t._s(e.row.enterpriseName||"--"))]),n("span",{staticClass:"gic-version"},[t._v(t._s(e.row.version||"--"))])]),n("div",{staticClass:"cell-info-name flex font-14 color-303133"},[n("span",{staticClass:"gic-name"},[t._v(t._s(e.row.companyName||"--"))])])])])]}}])}),n("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.bindRange||"--")+"\n ")]}}])},[n("template",{slot:"header"},[n("el-tooltip",{staticClass:"item",attrs:{effect:"dark",placement:"right"}},[n("div",{attrs:{slot:"content"},slot:"content"},[t._v("\n 绑定门店拥有门店资源管理权限。能查看数据,绑定导购账号,管理门店等\n ")]),n("span",{staticClass:"common-bottom-border"},[t._v("绑定门店")])])],1)],2),n("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.shareRange||"--")+"\n ")]}}])},[n("template",{slot:"header"},[n("el-tooltip",{staticClass:"item",attrs:{effect:"dark",placement:"right"}},[n("div",{attrs:{slot:"content"},slot:"content"},[t._v("\n 共享门店拥有门店资源查看权限。仅能授权查看数据,"),n("br"),t._v("如会员数据,任务数据等,但无法操作及进行导购账号绑定\n ")]),n("span",{staticClass:"common-bottom-border"},[t._v("共享门店")])])],1)],2),n("el-table-column",{attrs:{prop:"",label:"提交人","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.referStaffName||"--"))]}}])}),n("el-table-column",{attrs:{prop:"",label:"授权时间","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[n("div",{staticClass:"line-18"},[t._v(t._s(t._f("timeStampToYmd")(e.row.createTime)))]),n("div",{staticClass:"line-18"},[t._v(t._s(t._f("timeStampToHms")(e.row.createTime)))])]}}])}),n("el-table-column",{attrs:{prop:"",label:"更新时间","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[n("div",{staticClass:"line-18"},[t._v(t._s(t._f("timeStampToYmd")(e.row.updateTime)))]),n("div",{staticClass:"line-18"},[t._v(t._s(t._f("timeStampToHms")(e.row.updateTime)))])]}}])}),n("el-table-column",{attrs:{prop:"",label:"操作",width:"203"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("el-button",{attrs:{type:"text"},on:{click:function(a){return t.toEdit(e.$index,e.row)}}},[t._v("编辑授权设置")]),n("el-button",{attrs:{type:"text"},on:{click:function(a){return t.toAuditLog(e.$index,e.row)}}},[t._v("审核日志")])]}}])})],1)],1)])])])])],1)},r=[],o=a("29b6"),s=a("21f4"),i=s["a"].getAuthEnterprise,l={name:"AuthMerchant",components:{navCrumb:o["a"]},data:function(){return{navpath:[{name:"通讯录",path:"/contactsList"},{name:"授权商户",path:""}],wxEnterpriseId:localStorage.getItem("haoBanUser")?JSON.parse(localStorage.getItem("haoBanUser")).wxEnterpriseId:"",currentPage:1,pageSize:20,total:0,tableData:[]}},mounted:function(){var t=this;t.getTableList(),document.documentElement.style.backgroundColor="#f0f2f5"},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},methods:{toEdit:function(t,e){var a=this;a.changeRoute("/newAuthMerchant?enterpriseId=".concat(e.enterpriseId))},toAuditLog:function(t,e){var a=this;a.changeRoute("/auditLog?enterpriseId=".concat(e.enterpriseId))},openUrl:function(){window.open("https://developers.weixin.qq.com/community/develop/doc/00046610a9cbb0fd80f9a7dd354c09")},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={wxEnterpriseId:t.wxEnterpriseId};i(e).then((function(e){t.tableData=e.result||[]})).catch((function(t){}))}}},c=l,u=(a("09c4"),a("2877")),p=Object(u["a"])(c,n,r,!1,null,"33f2a102",null);e["default"]=p.exports},"6b4b":function(t,e,a){"use strict";var n=a("76d4"),r=a.n(n);r.a},"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 r}));a("ac6a"),a("456d");var n=a("b775");function r(t,e){t=t||{};var a=Object.keys(t);return a.forEach((function(a){var r=t[a];"string"===typeof r&&(r={url:r}),r.url="".concat(e).concat(r.url),t[a]=function(t,e){return Object(n["a"])(r,t,e)}})),t}},"76d4":function(t,e,a){}}]);
\ 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
(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
(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}}]);
\ 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-6abb3762"],{"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")),p=Object(u["a"])(c,o,i,!1,null,"6bf5b803",null),d=p.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,C=(a("2bc8"),Object(u["a"])(S,g,v,!1,null,"1c710d86",null)),D=C.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,$=b["a"].getClerkRelation,R={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};$(e).then((function(e){t.storeData=e.result||[]})).catch((function(t){}))}}},P=R,L=(a("924b"),Object(u["a"])(P,O,j,!1,null,"73006e0d",null)),V=L.exports,E=b["a"].getStaffRelation,z=b["a"].delStaffRelation,U={name:"RelatedTable",components:{addRelate:V},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};E(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:D,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:d,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}}},pt=ut,dt=(a("c0d9"),Object(u["a"])(pt,n,r,!1,null,"6f5e4086",null));e["default"]=dt.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){},f51e:function(t,e,a){}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-6afeeb41"],{"0953":function(t,e,a){"use strict";var n=a("a753"),o=a.n(n);o.a},"195c":function(t,e,a){"use strict";var n=a("54dd"),o=a.n(n);o.a},"53b1":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:"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":"120px"}},[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)},o=[],i=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":480,"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",{staticStyle:{width:"398px"},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-10",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)])},r=[],s=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{class:["input-line-cell",t.limitClass],style:{width:t.inputWidth+"px"}},[a("el-input",{style:{width:t.inputWidth+"px"},attrs:{disabled:t.disflag,placeholder:t.holder},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("el-select",{staticClass:"w-92",attrs:{slot:"prepend",disabled:t.disflag},on:{change:t.changeCode},slot:"prepend",model:{value:t.selCode,callback:function(e){t.selCode=e},expression:"selCode"}},t._l(t.nationCodeList,(function(e,n){return a("el-option",{key:n+"option",attrs:{label:"+"+e.dictCode,value:e.dictCode}},[t._v(t._s(e.dictName+" +"+e.dictCode))])})),1)],1)],1)},c=[],l=(a("ac6a"),a("a481"),a("c5f6"),a("e230")),u=l["a"].getNationCode,d={name:"CountryMobile",props:{value:{type:[String,Number],default:""},nationCode:{type:[String,Number],default:"86"},inputWidth:{type:Number,default:167},holder:{type:String,default:"请输入"},disflag:{type:Boolean,default:!1},limitClass:{type:String,default:""}},data:function(){return{itemValue:this.value,selCode:this.nationCode||"86",nationCodeList:[]}},mounted:function(){var t=this;t.getNationalData(),t.itemValue=t.value||"",t.selCode=t.nationCode||"86"},methods:{changeCode:function(){var t=this;t.$emit("update:nationCode",t.selCode),t.$emit("input",t.itemValue)},toInput:function(t){var e=this;e.itemValue=t.target.value.replace(/[^0-9]/gi,""),e.$emit("input",e.itemValue)},inputBlur:function(){var t=this;t.$emit("input",t.itemValue)},getNationalData:function(){var t=this;u({}).then((function(e){var a=[];e.result.forEach((function(t){a=a.concat(t.datas)})),t.nationCodeList=a||[]})).catch((function(t){}))}},watch:{value:function(t,e){var a=this;a.itemValue=t||""},nationCode:function(t,e){var a=this;a.selCode=t||"86"}}},m=d,f=(a("195c"),a("2877")),h=Object(f["a"])(m,s,c,!1,null,"4b4be42a",null),p=h.exports,b=a("d157"),v=a("8e83"),g=a("a689"),k=a.n(g),C=a("5b4e"),w=v["a"].addMarketAccount,_=v["a"].postPhoneCode,N=v["a"].checkCode,y={name:"AddMarketDialog",components:{countryMobile:p},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(b["a"])((function(){var t=this,e=t.marketForm,a=e.phoneNumber,n=e.nationCode;if(""==a)return C["a"].showmsg("手机号不能为空","warning"),!1;var o=new k.a("+"+n+a);if(!o.isValid()||!o.isMobile())return C["a"].showmsg("手机号格式不正确","warning"),!1;var i={phoneNumber:a,nationCode:n,type:1};_(i).then((function(e){if("0000"==e.code){t.disableBtn=!0,t.countDown();var o=String(a),i=o.substr(0,3)+"****"+o.substr(7,o.length-1);return C["a"].showmsg("已发送验证码到".concat(n||"86","-").concat(i),"success"),!1}C["a"].showmsg(e.message||"未知错误","warning")})).catch((function(t){}))}),300),checkCode:function(){var t=this,e=t.marketForm,a=e.phoneNumber,n=e.nationCode,o=e.code,i={phoneNumber:a,nationCode:n,type:1,code:o};return new Promise((function(e,a){N(i).then((function(t){if("0000"==t.code)return e(!0),!1;C["a"].showmsg(t.message||"未知错误","warning"),e(!1)})).catch((function(a){e(!1),t.$message.error({duration:1e3,message:a.message})}))}))},submitForm:Object(b["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={};w(e).then((function(e){t.loadBtn=!1,"0000"==e.code?(C["a"].showmsg("操作成功","success"),t.$refs["ruleForm"].resetFields(),t.$emit("closeMarket",!0)):(C["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)}}},F=y,M=(a("0953"),Object(f["a"])(F,i,r,!1,null,"446c9cdf",null)),A=M.exports,D=v["a"].getMarketAccount,x=v["a"].refreshMarketAccount,B={name:"",components:{AddMarketDialog:A},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};x(e).then((function(e){t.loadRefesh=!1,C["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={};D(e).then((function(e){e.result||(t.marketAccount=e.result||{})})).catch((function(t){}))}},watch:{}},$=B,V=(a("6390"),Object(f["a"])($,n,o,!1,null,"75317dda",null));e["default"]=V.exports},"54dd":function(t,e,a){},6390:function(t,e,a){"use strict";var n=a("8185"),o=a.n(n);o.a},8185:function(t,e,a){},"8e83":function(t,e,a){"use strict";var n=a("71f6"),o={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(n["a"])(o,"/hb-manage-web")},a753:function(t,e,a){}}]);
\ No newline at end of file
......@@ -4,7 +4,7 @@
* @Author: 无尘
* @Date: 2020-10-16 14:22:10
* @LastEditors: 无尘
* @LastEditTime: 2020-10-19 15:22:20
* @LastEditTime: 2020-10-19 15:40:22
-->
<!--
使用帮助
......@@ -16,10 +16,10 @@
<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>
<country-mobile :nation-code.sync="marketForm.nationCode" :input-width="480" :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-input v-model="marketForm.code" placeholder="请输入验证码" style="width:398px"></el-input><el-button class="m-l-10" :disabled="disableBtn" type="text" @click="sendCode()">{{ (disableBtn && countNum == 60) || (!disableBtn && !!countNum) ? '获取验证码' : countNum + 's' }}</el-button>
</el-form-item>
</el-form>
</div>
......@@ -30,6 +30,7 @@
</el-dialog>
</template>
<script>
import countryMobile from '@/components/common/country-mobile.vue';
import { _debounce } from '@/common/js/public';
import fetch from '@/api/app-controls';
import PhoneNumber from 'awesome-phonenumber';
......@@ -37,6 +38,9 @@ const { addMarketAccount, postPhoneCode, checkCode } = fetch;
import showMsg from '@/common/js/showmsg';
export default {
name: 'AddMarketDialog',
components: {
countryMobile
},
data() {
return {
dialogVisible: true,
......
......@@ -4,7 +4,7 @@
* @Author: 无尘
* @Date: 2020-10-16 11:46:25
* @LastEditors: 无尘
* @LastEditTime: 2020-10-19 14:32:54
* @LastEditTime: 2020-10-19 15:36:14
-->
<template>
<div class="app-market-body">
......@@ -15,7 +15,7 @@
<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 ref="form" :model="form" label-width="120px">
<el-form-item label="账号">
{{marketAccount.id || '--'}}
</el-form-item>
......@@ -122,18 +122,28 @@ export default {
};
</script>
<style lang='less' scoped>
.m-l-20 {
margin-left: 20px;
}
.common-bottom-border {
cursor: pointer;
padding-bottom: 2px;
border-bottom: 1px dashed #2f54eb;
}
.app-market-body {
min-height: 100%;
background: #fff;
padding: 20px;
.app-market-list {
width: 100%;
height: 119px;
min-height: 119px;
margin-top: 22px;
background: #F5F7FA;
padding: 18px 26px;
box-sizing: border-box;
.el-form-item {
margin-bottom: 10px;
}
}
}
</style>
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