Commit 6c70f1e1 by 无尘

fix: 修改本地路由

parent ca414a2d
.common-bottom-border[data-v-02f616cc]{cursor:pointer;padding-bottom:2px;border-bottom:1px dashed #2f54eb}.common-bottom-border.table-title[data-v-02f616cc]{font-size:14px;line-height:20px;font-weight:600;color:#303133}.data-dimension-table[data-v-02f616cc]{margin-top:32px}.data-dimension-table .m-b-18[data-v-02f616cc]{margin-bottom:18px}.data-dimension-table .data-dimension-table_right[data-v-02f616cc]{margin-left:47px}
\ No newline at end of file
.common-bottom-border[data-v-a92a23a0]{cursor:pointer;padding-bottom:2px;border-bottom:1px dashed #2f54eb}.dcrowd-scene-table i.icon-color[data-v-a92a23a0]{color:#606266}.dcrowd-scene-table i.disable[data-v-a92a23a0]{color:#909399;cursor:not-allowed}.dcrowd-scene-table .line-18[data-v-a92a23a0]{line-height:18px}
\ No newline at end of file
.common-bottom-border[data-v-497467c6]{cursor:pointer;padding-bottom:2px;border-bottom:1px dashed #2f54eb}.dcrowd-scene-table i.icon-color[data-v-497467c6]{color:#606266}.dcrowd-scene-table i.disable[data-v-497467c6]{color:#909399;cursor:not-allowed}.dcrowd-scene-table .line-18[data-v-497467c6]{line-height:18px}
\ No newline at end of file
.common-bottom-border[data-v-6c03d857]{cursor:pointer;padding-bottom:2px;border-bottom:1px dashed #2f54eb}.common-bottom-border.table-title[data-v-6c03d857]{font-size:14px;line-height:20px;font-weight:600;color:#303133}.data-dimension-table[data-v-6c03d857]{margin-top:32px}.data-dimension-table .m-b-18[data-v-6c03d857]{margin-bottom:18px}.data-dimension-table .data-dimension-table_right[data-v-6c03d857]{margin-left:47px}
\ No newline at end of file
<!DOCTYPE html><html lang=cn><head><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><title>好办</title><link href=css/chunk-01e836a3.99858b5e.css rel=prefetch><link href=css/chunk-02cdd212.ce5861cc.css rel=prefetch><link href=css/chunk-0b34723d.1f7d0d83.css rel=prefetch><link href=css/chunk-113e6480.2f295556.css rel=prefetch><link href=css/chunk-14c0f460.e9986bc6.css rel=prefetch><link href=css/chunk-1c295d3c.b201954d.css rel=prefetch><link href=css/chunk-1c5a064d.774f8da8.css rel=prefetch><link href=css/chunk-1fbcb7b4.0a6c7a95.css rel=prefetch><link href=css/chunk-220f7958.1e40ff67.css rel=prefetch><link href=css/chunk-2270cb54.31ea5e58.css rel=prefetch><link href=css/chunk-2351fb9b.6efba3e1.css rel=prefetch><link href=css/chunk-23d376bc.46c25b47.css rel=prefetch><link href=css/chunk-33b0918a.b7424a51.css rel=prefetch><link href=css/chunk-3433c9cf.55d4a6f7.css rel=prefetch><link href=css/chunk-37259986.34356bc6.css rel=prefetch><link href=css/chunk-3c06dd3c.8f493d46.css rel=prefetch><link href=css/chunk-3e212760.8f532f9e.css rel=prefetch><link href=css/chunk-3edbff8b.a8215837.css rel=prefetch><link href=css/chunk-41d5b83e.411c6e35.css rel=prefetch><link href=css/chunk-56f22583.419fd225.css rel=prefetch><link href=css/chunk-5c427045.2fc03ad0.css rel=prefetch><link href=css/chunk-6dfc1c36.effcfd5e.css rel=prefetch><link href=css/chunk-70a132aa.85ff600a.css rel=prefetch><link href=css/chunk-70b39bcc.2240cde3.css rel=prefetch><link href=css/chunk-7198c410.2e64d511.css rel=prefetch><link href=css/chunk-730fab8e.3af2c213.css rel=prefetch><link href=css/chunk-7b0069c2.58029651.css rel=prefetch><link href=css/chunk-8f5b7c26.f0ff185c.css rel=prefetch><link href=css/chunk-a5cbb47e.75723084.css rel=prefetch><link href=css/chunk-ba1c12aa.813bfa0b.css rel=prefetch><link href=css/chunk-bfbebd78.aba0a312.css rel=prefetch><link href=css/chunk-c2d4f890.7e26fbb5.css rel=prefetch><link href=css/chunk-c871c2ac.c7a019fc.css rel=prefetch><link href=css/chunk-d7315c84.93e19818.css rel=prefetch><link href=css/chunk-f157b4c8.39b039b5.css rel=prefetch><link href=js/chunk-01e836a3.c3a72f45.js rel=prefetch><link href=js/chunk-02cdd212.183c152d.js rel=prefetch><link href=js/chunk-0b34723d.ee9713d5.js rel=prefetch><link href=js/chunk-113e6480.231fac20.js rel=prefetch><link href=js/chunk-14c0f460.e2e01390.js rel=prefetch><link href=js/chunk-1c295d3c.a1c9fa62.js rel=prefetch><link href=js/chunk-1c5a064d.cda540d4.js rel=prefetch><link href=js/chunk-1fbcb7b4.64b8a54e.js rel=prefetch><link href=js/chunk-220f7958.1c55f117.js rel=prefetch><link href=js/chunk-2270cb54.ecf35424.js rel=prefetch><link href=js/chunk-2351fb9b.a9c068a1.js rel=prefetch><link href=js/chunk-23d376bc.e063fd86.js rel=prefetch><link href=js/chunk-33b0918a.4239a1a7.js rel=prefetch><link href=js/chunk-3433c9cf.8bb35a0d.js rel=prefetch><link href=js/chunk-37259986.5bbb180b.js rel=prefetch><link href=js/chunk-3c06dd3c.672d5db7.js rel=prefetch><link href=js/chunk-3e212760.e7f507e1.js rel=prefetch><link href=js/chunk-3edbff8b.ba50c439.js rel=prefetch><link href=js/chunk-41d5b83e.c35132ab.js rel=prefetch><link href=js/chunk-56f22583.4b4f3515.js rel=prefetch><link href=js/chunk-5c427045.0a347fe5.js rel=prefetch><link href=js/chunk-6dfc1c36.cca10061.js rel=prefetch><link href=js/chunk-70a132aa.6796619e.js rel=prefetch><link href=js/chunk-70b39bcc.fe26075c.js rel=prefetch><link href=js/chunk-7198c410.c4503f2a.js rel=prefetch><link href=js/chunk-730fab8e.dd4bc7aa.js rel=prefetch><link href=js/chunk-7b0069c2.47243e1b.js rel=prefetch><link href=js/chunk-8f5b7c26.0107a375.js rel=prefetch><link href=js/chunk-a5cbb47e.a2710167.js rel=prefetch><link href=js/chunk-ba1c12aa.e2ddd7cb.js rel=prefetch><link href=js/chunk-bfbebd78.0abcbbe0.js rel=prefetch><link href=js/chunk-c2d4f890.256bc2a0.js rel=prefetch><link href=js/chunk-c871c2ac.57ff76e8.js rel=prefetch><link href=js/chunk-d7315c84.a71325e0.js rel=prefetch><link href=js/chunk-f157b4c8.2e77f877.js rel=prefetch><link href=css/app.f1525482.css rel=preload as=style><link href=css/chunk-vendors.635bc84a.css rel=preload as=style><link href=js/app.0a4aecd5.js rel=preload as=script><link href=js/chunk-vendors.cda08bb4.js rel=preload as=script><link href=css/chunk-vendors.635bc84a.css rel=stylesheet><link href=css/app.f1525482.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/vue/2.6.10/vue.min.js></script><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=js/chunk-vendors.cda08bb4.js></script><script src=js/app.0a4aecd5.js></script></body></html>
\ No newline at end of file
<!DOCTYPE html><html lang=cn><head><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><title>好办</title><link href=css/chunk-02d4ab18.2fc03ad0.css rel=prefetch><link href=css/chunk-0644f611.93e19818.css rel=prefetch><link href=css/chunk-0be39b5a.6672c4f5.css rel=prefetch><link href=css/chunk-113e6480.2f295556.css rel=prefetch><link href=css/chunk-2150c8a8.f0ff185c.css rel=prefetch><link href=css/chunk-226df849.b0d285f8.css rel=prefetch><link href=css/chunk-2270cb54.31ea5e58.css rel=prefetch><link href=css/chunk-2351fb9b.6efba3e1.css rel=prefetch><link href=css/chunk-28decd63.b00f6204.css rel=prefetch><link href=css/chunk-2c715f0c.1f7d0d83.css rel=prefetch><link href=css/chunk-33b0918a.b7424a51.css rel=prefetch><link href=css/chunk-37259986.34356bc6.css rel=prefetch><link href=css/chunk-43f503d3.3af2c213.css rel=prefetch><link href=css/chunk-45b70e81.aba0a312.css rel=prefetch><link href=css/chunk-4711c0fb.0ffa7392.css rel=prefetch><link href=css/chunk-4b3e5aec.39b039b5.css rel=prefetch><link href=css/chunk-5cd754bd.75723084.css rel=prefetch><link href=css/chunk-5eeae6f1.8f532f9e.css rel=prefetch><link href=css/chunk-64ba165a.e4c47f39.css rel=prefetch><link href=css/chunk-659f0218.99858b5e.css rel=prefetch><link href=css/chunk-6dfc1c36.effcfd5e.css rel=prefetch><link href=css/chunk-6f32e3dc.b27b0c13.css rel=prefetch><link href=css/chunk-784402ec.46c25b47.css rel=prefetch><link href=css/chunk-7d62a3f8.1e40ff67.css rel=prefetch><link href=css/chunk-96ef390e.8f493d46.css rel=prefetch><link href=css/chunk-ab296cf2.ce5861cc.css rel=prefetch><link href=css/chunk-ac12b2a4.0745c5d9.css rel=prefetch><link href=css/chunk-b5b34ad2.b201954d.css rel=prefetch><link href=css/chunk-ba1c12aa.813bfa0b.css rel=prefetch><link href=css/chunk-bc8a8204.604a5680.css rel=prefetch><link href=css/chunk-c2d4f890.7e26fbb5.css rel=prefetch><link href=css/chunk-d5950102.58029651.css rel=prefetch><link href=css/chunk-e0185d66.85ff600a.css rel=prefetch><link href=css/chunk-f4b91c90.030efe69.css rel=prefetch><link href=css/chunk-ff69e9d6.2e64d511.css rel=prefetch><link href=js/chunk-02d4ab18.b804b37f.js rel=prefetch><link href=js/chunk-0644f611.3fdab175.js rel=prefetch><link href=js/chunk-0be39b5a.e235acbd.js rel=prefetch><link href=js/chunk-0f6ed5e1.94509465.js rel=prefetch><link href=js/chunk-113e6480.cc15aa00.js rel=prefetch><link href=js/chunk-2150c8a8.bd05dee3.js rel=prefetch><link href=js/chunk-226df849.346fbf6c.js rel=prefetch><link href=js/chunk-2270cb54.2c02cf73.js rel=prefetch><link href=js/chunk-2351fb9b.8f3632bd.js rel=prefetch><link href=js/chunk-28decd63.4e5523ea.js rel=prefetch><link href=js/chunk-2c715f0c.800a5527.js rel=prefetch><link href=js/chunk-33b0918a.be0baebe.js rel=prefetch><link href=js/chunk-37259986.f844e1c7.js rel=prefetch><link href=js/chunk-43f503d3.189358b8.js rel=prefetch><link href=js/chunk-45b70e81.056e5325.js rel=prefetch><link href=js/chunk-4711c0fb.ef35d892.js rel=prefetch><link href=js/chunk-4b3e5aec.1f2f741d.js rel=prefetch><link href=js/chunk-5cd754bd.17f8784b.js rel=prefetch><link href=js/chunk-5eeae6f1.9fcc80ef.js rel=prefetch><link href=js/chunk-64ba165a.ad90f173.js rel=prefetch><link href=js/chunk-659f0218.8d562385.js rel=prefetch><link href=js/chunk-6dfc1c36.3daf41cf.js rel=prefetch><link href=js/chunk-6f32e3dc.1a5c8016.js rel=prefetch><link href=js/chunk-784402ec.b693431e.js rel=prefetch><link href=js/chunk-7d62a3f8.c68b2bdd.js rel=prefetch><link href=js/chunk-96ef390e.1e9f949a.js rel=prefetch><link href=js/chunk-ab296cf2.35702076.js rel=prefetch><link href=js/chunk-ac12b2a4.ab942159.js rel=prefetch><link href=js/chunk-b5b34ad2.45302959.js rel=prefetch><link href=js/chunk-ba1c12aa.7f20ac59.js rel=prefetch><link href=js/chunk-bc8a8204.75d78b14.js rel=prefetch><link href=js/chunk-c2d4f890.8645e6d8.js rel=prefetch><link href=js/chunk-d5950102.cfc20e67.js rel=prefetch><link href=js/chunk-e0185d66.59f5448b.js rel=prefetch><link href=js/chunk-f4b91c90.16dd9adc.js rel=prefetch><link href=js/chunk-ff69e9d6.6a99799c.js rel=prefetch><link href=css/app.f1525482.css rel=preload as=style><link href=css/chunk-vendors.635bc84a.css rel=preload as=style><link href=js/app.3d37e86e.js rel=preload as=script><link href=js/chunk-vendors.4646af85.js rel=preload as=script><link href=css/chunk-vendors.635bc84a.css rel=stylesheet><link href=css/app.f1525482.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/vue/2.6.10/vue.min.js></script><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=js/chunk-vendors.4646af85.js></script><script src=js/app.3d37e86e.js></script></body></html>
\ No newline at end of file
(function(e){function n(n){for(var c,r,o=n[0],i=n[1],s=n[2],h=0,d=[];h<o.length;h++)r=o[h],Object.prototype.hasOwnProperty.call(a,r)&&a[r]&&d.push(a[r][0]),a[r]=0;for(c in i)Object.prototype.hasOwnProperty.call(i,c)&&(e[c]=i[c]);f&&f(n);while(d.length)d.shift()();return u.push.apply(u,s||[]),t()}function t(){for(var e,n=0;n<u.length;n++){for(var t=u[n],c=!0,r=1;r<t.length;r++){var o=t[r];0!==a[o]&&(c=!1)}c&&(u.splice(n--,1),e=i(i.s=t[0]))}return e}var c={},r={app:0},a={app:0},u=[];function o(e){return i.p+"js/"+({}[e]||e)+"."+{"chunk-01e836a3":"c3a72f45","chunk-02cdd212":"183c152d","chunk-0b34723d":"ee9713d5","chunk-113e6480":"231fac20","chunk-14c0f460":"e2e01390","chunk-1c295d3c":"a1c9fa62","chunk-1c5a064d":"cda540d4","chunk-1fbcb7b4":"64b8a54e","chunk-220f7958":"1c55f117","chunk-2270cb54":"ecf35424","chunk-2351fb9b":"a9c068a1","chunk-23d376bc":"e063fd86","chunk-33b0918a":"4239a1a7","chunk-3433c9cf":"8bb35a0d","chunk-37259986":"5bbb180b","chunk-3c06dd3c":"672d5db7","chunk-3e212760":"e7f507e1","chunk-3edbff8b":"ba50c439","chunk-41d5b83e":"c35132ab","chunk-56f22583":"4b4f3515","chunk-5c427045":"0a347fe5","chunk-6dfc1c36":"cca10061","chunk-70a132aa":"6796619e","chunk-7198c410":"c4503f2a","chunk-730fab8e":"dd4bc7aa","chunk-70b39bcc":"fe26075c","chunk-c871c2ac":"57ff76e8","chunk-7b0069c2":"47243e1b","chunk-8f5b7c26":"0107a375","chunk-a5cbb47e":"a2710167","chunk-ba1c12aa":"e2ddd7cb","chunk-bfbebd78":"0abcbbe0","chunk-c2d4f890":"256bc2a0","chunk-d7315c84":"a71325e0","chunk-f157b4c8":"2e77f877"}[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-01e836a3":1,"chunk-02cdd212":1,"chunk-0b34723d":1,"chunk-113e6480":1,"chunk-14c0f460":1,"chunk-1c295d3c":1,"chunk-1c5a064d":1,"chunk-1fbcb7b4":1,"chunk-220f7958":1,"chunk-2270cb54":1,"chunk-2351fb9b":1,"chunk-23d376bc":1,"chunk-33b0918a":1,"chunk-3433c9cf":1,"chunk-37259986":1,"chunk-3c06dd3c":1,"chunk-3e212760":1,"chunk-3edbff8b":1,"chunk-41d5b83e":1,"chunk-56f22583":1,"chunk-5c427045":1,"chunk-6dfc1c36":1,"chunk-70a132aa":1,"chunk-7198c410":1,"chunk-730fab8e":1,"chunk-70b39bcc":1,"chunk-c871c2ac":1,"chunk-7b0069c2":1,"chunk-8f5b7c26":1,"chunk-a5cbb47e":1,"chunk-ba1c12aa":1,"chunk-bfbebd78":1,"chunk-c2d4f890":1,"chunk-d7315c84":1,"chunk-f157b4c8":1};r[e]?n.push(r[e]):0!==r[e]&&t[e]&&n.push(r[e]=new Promise((function(n,t){for(var c="css/"+({}[e]||e)+"."+{"chunk-01e836a3":"99858b5e","chunk-02cdd212":"ce5861cc","chunk-0b34723d":"1f7d0d83","chunk-113e6480":"2f295556","chunk-14c0f460":"e9986bc6","chunk-1c295d3c":"b201954d","chunk-1c5a064d":"774f8da8","chunk-1fbcb7b4":"0a6c7a95","chunk-220f7958":"1e40ff67","chunk-2270cb54":"31ea5e58","chunk-2351fb9b":"6efba3e1","chunk-23d376bc":"46c25b47","chunk-33b0918a":"b7424a51","chunk-3433c9cf":"55d4a6f7","chunk-37259986":"34356bc6","chunk-3c06dd3c":"8f493d46","chunk-3e212760":"8f532f9e","chunk-3edbff8b":"a8215837","chunk-41d5b83e":"411c6e35","chunk-56f22583":"419fd225","chunk-5c427045":"2fc03ad0","chunk-6dfc1c36":"effcfd5e","chunk-70a132aa":"85ff600a","chunk-7198c410":"2e64d511","chunk-730fab8e":"3af2c213","chunk-70b39bcc":"2240cde3","chunk-c871c2ac":"c7a019fc","chunk-7b0069c2":"58029651","chunk-8f5b7c26":"f0ff185c","chunk-a5cbb47e":"75723084","chunk-ba1c12aa":"813bfa0b","chunk-bfbebd78":"aba0a312","chunk-c2d4f890":"7e26fbb5","chunk-d7315c84":"93e19818","chunk-f157b4c8":"39b039b5"}[e]+".css",a=i.p+c,u=document.getElementsByTagName("link"),o=0;o<u.length;o++){var s=u[o],h=s.getAttribute("data-href")||s.getAttribute("href");if("stylesheet"===s.rel&&(h===c||h===a))return n()}var d=document.getElementsByTagName("style");for(o=0;o<d.length;o++){s=d[o],h=s.getAttribute("data-href");if(h===c||h===a)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||a,u=new Error("Loading CSS chunk "+e+" failed.\n("+c+")");u.code="CSS_CHUNK_LOAD_FAILED",u.request=c,delete r[e],f.parentNode.removeChild(f),t(u)},f.href=a;var p=document.getElementsByTagName("head")[0];p.appendChild(f)})).then((function(){r[e]=0})));var c=a[e];if(0!==c)if(c)n.push(c[2]);else{var u=new Promise((function(n,t){c=a[e]=[n,t]}));n.push(c[2]=u);var s,h=document.createElement("script");h.charset="utf-8",h.timeout=120,i.nc&&h.setAttribute("nonce",i.nc),h.src=o(e);var d=new Error;s=function(n){h.onerror=h.onload=null,clearTimeout(f);var t=a[e];if(0!==t){if(t){var c=n&&("load"===n.type?"missing":n.type),r=n&&n.target&&n.target.src;d.message="Loading chunk "+e+" failed.\n("+c+": "+r+")",d.name="ChunkLoadError",d.type=c,d.request=r,t[1](d)}a[e]=void 0}};var f=setTimeout((function(){s({type:"timeout",target:h})}),12e4);h.onerror=h.onload=s,document.head.appendChild(h)}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 s=window["webpackJsonp"]=window["webpackJsonp"]||[],h=s.push.bind(s);s.push=n,s=s.slice();for(var d=0;d<s.length;d++)n(s[d]);var f=h;u.push([0,"chunk-vendors"]),t()})({0:function(e,n,t){t("db4d"),e.exports=t("56d7")},"1a5d":function(e,n,t){var c={"./apps/customer-app/clerk-tag.vue":["b5b0","chunk-0b34723d"],"./apps/customer-app/crowd-scene.vue":["c7d7","chunk-41d5b83e"],"./apps/customer-app/customer-assign.vue":["12eb","chunk-5c427045"],"./apps/customer-app/customer-data-set.vue":["3cf8","chunk-7b0069c2"],"./apps/customer-app/customer-show-set.vue":["f766","chunk-3c06dd3c"],"./apps/customer-app/data-dimension.vue":["55f3","chunk-3edbff8b"],"./apps/customer-app/index.vue":["c3d9","chunk-113e6480"],"./apps/index.vue":["7f2e","chunk-220f7958"],"./business/audit-log.vue":["0912","chunk-3433c9cf"],"./business/auth-merchant.vue":["56b3","chunk-f157b4c8"],"./business/contacts.vue":["a269","chunk-01e836a3"],"./business/index.vue":["50c8","chunk-3e212760"],"./business/new-auth-merchant.vue":["62a7","chunk-730fab8e","chunk-c871c2ac"],"./business/sync-log.vue":["b155","chunk-a5cbb47e"],"./enterprise/admin-list.vue":["db80","chunk-14c0f460"],"./enterprise/admin-list/role-list.vue":["0082","chunk-33b0918a"],"./enterprise/edit-admin.vue":["7dc6","chunk-730fab8e","chunk-70b39bcc"],"./enterprise/edit-role.vue":["2249","chunk-1c295d3c"],"./enterprise/edit-role/menu-tree.vue":["a088","chunk-23d376bc"],"./enterprise/edit-store-role.vue":["a960","chunk-56f22583"],"./enterprise/enterprise-set.vue":["b735","chunk-70a132aa"],"./enterprise/index.vue":["ea02","chunk-8f5b7c26"],"./enterprise/store-admin-list.vue":["2058","chunk-1fbcb7b4"],"./enterprise/super-admin.vue":["9b74","chunk-c2d4f890"],"./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-d7315c84"],"./index/index.vue":["37f9","chunk-bfbebd78"],"./login/index.vue":["9ed6","chunk-2270cb54"],"./review-center/index.vue":["2cad","chunk-7198c410"],"./review-center/reviewed.vue":["dacc","chunk-02cdd212"],"./review-center/unreview.vue":["1005","chunk-1c5a064d"]};function r(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],r=n[0];return Promise.all(n.slice(1).map(t.e)).then((function(){return t(r)}))}r.keys=function(){return Object.keys(c)},r.id="1a5d",e.exports=r},"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"),t("0fae"),t("4f94"),t("d31c");var c=t("8bbf"),r=t.n(c),a=t("8c4f"),u=t("cebe"),o=t.n(u),i=t("5c96"),s=t.n(i),h=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"dm-reset",attrs:{id:"app"}},[t("router-view",{key:e.$route.fullPath})],1)},d=[],f={name:"App"},p=f,b=t("2877"),m=Object(b["a"])(p,h,d,!1,null,null,null),l=m.exports,k=t("a18c"),g=t("d046"),v=(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 r in/(Y+)/.test(n)&&(n=n.replace(RegExp.$1,(t.getFullYear()+"").substr(4-RegExp.$1.length))),c)new RegExp("("+r+")").test(n)&&(n=n.replace(RegExp.$1,1===RegExp.$1.length?c[r]:("00"+c[r]).substr((""+c[r]).length)));return n}),w=function(e){if(!e)return"";var n=new Date(e),t=n.getMonth()+1,c=n.getDate()<10?"0"+n.getDate():n.getDate(),r=t<10?"0"+t:t,a=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(r,"-").concat(c," ").concat(a,":").concat(u,":").concat(o)},y=function(e){if(!e)return"";var n=new Date(e),t=n.getMonth()+1,c=n.getDate()<10?"0"+n.getDate():n.getDate(),r=t<10?"0"+t:t,a=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(r,".").concat(c," ").concat(a,":").concat(u,":").concat(o)},x=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)},M=function(e){if(!e)return"";var n=new Date(e),t=n.getMonth()+1,c=n.getDate()<10?"0"+n.getDate():n.getDate(),r=t<10?"0"+t:t;return"".concat(n.getFullYear(),"-").concat(r,"-").concat(c)},S=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(),r=n.getSeconds()<10?"0"+n.getSeconds():n.getSeconds();return"".concat(t,":").concat(c,":").concat(r)},O=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),r=t%864e5,a=Math.floor(r/36e5),u=r%36e5,o=Math.floor(u/6e4);return"".concat(c,"天").concat(a,"小时").concat(o,"分")},D=function(e){return e?(e=e.toString(),e.substr(0,3)+"****"+e.substr(7,11)):""},j=function(e){return e?(e=e.toString(),"**"+e.substr(e.length-1,e.length)):""},A=function(e){return e?(e=e.toString(),e.length>6?e.substr(0,5)+"...":e):""},E=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,r=Math.floor(n/60)%60<10?"0"+Math.floor(n/60)%60:Math.floor(n/60)%60,a=Math.floor(n)%60<10?"0"+Math.floor(n)%60:Math.floor(n)%60;return"".concat(c,":").concat(r,":").concat(a)},P={dateFormat:v,formatTimeStamp:w,timeStampToYm:x,timeStampToYmd:M,timeStampToHms:S,formatTimeYmdHms:y,formatPhoneNum:D,formatName:j,timeStampSpace:O,formatTime:E,formatWord:A},T=(t("96cf"),t("1da1")),C=(t("5df3"),t("b775")),H=[],L=[],_={};function F(){var e=Object(C["a"])({url:"/hb-manage-web/list-staff-role-menu"}).then((function(e){L=N(e.result||[])})),n=Object(C["a"])({url:"/hb-manage-web/list-staff-role-opeation"}).then((function(e){_=R(e.result||[])}));return Promise.all([e,n])}function N(e){var n=[];return e.forEach((function(e){e.menuUrl&&n.push(e.menuUrl),Array.isArray(e.children)&&(n=n.concat(N(e.children)))})),n}function R(e){var n={};return e.forEach((function(e){n[e.menuCode]=!0})),n}function Y(e){var n=[];return e.forEach((function(e){Array.isArray(e.children)&&(n=n.concat(Y(e.children))),n.push(e.path)})),n}function $(e,n,t){var c=L.some((function(n){return n.indexOf("/#")>=0?n=="/#".concat(e.path):n==e.path}));if(c)return t();H.some((function(n){return n==e.path}))||0==L.length?t("/gic-error"):t(L[0])}function U(e){return!!_[e]}var q=function(e){var n=e.whiteRoute,t=e.router,c=e.routes,r=e.createApp;window.onload=Object(T["a"])(regeneratorRuntime.mark((function e(){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(a=window.location.href,-1!=a.indexOf("/login")||-1!=a.indexOf("/gic-error")){e.next=4;break}return e.next=4,F();case 4:Array.isArray(n)&&(L=L.concat(n)),Array.isArray(c)&&(H=Y(c)),t.beforeEach($),"function"==typeof r&&r();case 8:case"end":return e.stop()}}),e)})))},B=t("f121");r.a.use(a["a"]),r.a.use(s.a),o.a.defaults.withCredentials=!0,r.a.prototype.axios=o.a,r.a.prototype.$itemPerm=U,r.a.prototype.$itemCode=B["a"],r.a.config.devtools=!1,r.a.config.productionTip=!1,Object.keys(P).forEach((function(e){r.a.filter(e,P[e])})),q({whiteRoute:["/login","/contactsList","/gic-error","/403","/404","/500"],router:k["a"],routes:g["a"],createApp:function(){new r.a({router:k["a"],render:function(e){return e(l)}}).$mount("#app")}})},"8bbf":function(e,n){e.exports=Vue},a18c:function(e,n,t){"use strict";var c=t("8c4f"),r=t("d046"),a=c["a"].prototype.push;c["a"].prototype.push=function(e){return a.call(this,e).catch((function(e){return e}))};var u=new c["a"]({routes:r["a"]});n["a"]=u},b775:function(e,n,t){"use strict";t.d(n,"a",(function(){return h}));var c=t("cebe"),r=t.n(c),a=t("4328"),u=t.n(a),o=t("5c96"),i=t("f121"),s=t("a18c");r.a.defaults.baseURL=i["c"],r.a.defaults.withCredentials=!0;var h=function(e,n){n=Object.assign({},n),e=Object.assign({},e);var t={url:"",params:"",data:"",method:"get",useFormData:!1,useIntercept:!0,headers:{}};switch(t=Object.assign(t,e),t.useFormData&&(n=u.a.stringify(n)),t.method.toLowerCase()){case"get":t.params=n;break;case"post":t.data=n;break;default:t.data=n;break}return new Promise((function(e,n){r()(t).then((function(c){var r=c.data;if(r.code!=i["b"])return t.useIntercept&&r.code!=i["d"]?(Object(o["Message"])({message:r.message||"未知错误",type:"warning"}),n(r)):void e(r);s["a"].push("/login")})).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},d046:function(e,n,t){"use strict";t.d(n,"a",(function(){return u}));var c=t("e2b2"),r=t.n(c),a=function(e){t.e("chunk-d7315c84").then(t.bind(null,"4cf1")).then((function(n){e(n)}))},u=[{path:"/",name:"/",redirect:"login"},{path:"/login",name:"登录",component:r()("login","index")},{path:"/index",name:"index",component:r()("index","index")},{path:"/contacts",name:"通讯录",redirect:"contactsList",component:r()("business","index"),children:[{path:"/contactsList",name:"通讯录",component:r()("business","contacts")},{path:"/syncLog",name:"通讯录日志",component:r()("business","sync-log")},{path:"/authMerchant",name:"授权商户",component:r()("business","auth-merchant")},{path:"/newAuthMerchant",name:"新增授权",component:r()("business","new-auth-merchant")},{path:"/auditLog",name:"审核日志",component:r()("business","audit-log")}]},{path:"/reviewCenter",name:"审核中心",redirect:"unreview",component:r()("review-center","index"),children:[{path:"/reviewed",name:"已审核",component:r()("review-center","reviewed")},{path:"/unreview",name:"未审核",component:r()("review-center","unreview")}]},{path:"/enterprise",name:"企业设置",redirect:"enterpriseSet",component:r()("enterprise","index"),children:[{path:"/enterpriseSet",name:"企业信息",component:r()("enterprise","enterprise-set")},{path:"/admin-list",name:"管理员",component:r()("enterprise","admin-list")},{path:"/edit-role",name:"新建、编辑角色",component:r()("enterprise","edit-role")},{path:"/edit-admin",name:"新建编辑管理员",component:r()("enterprise","edit-admin")},{path:"/store-admin-list",name:"门店角色",component:r()("enterprise","store-admin-list")},{path:"/edit-store-role",name:"编辑门店角色",component:r()("enterprise","edit-store-role")},{path:"/superAdmin",name:"超级管理员",component:r()("enterprise","super-admin")}]},{path:"/apps",name:"企业应用",redirect:"mycustomer",component:r()("apps","index"),children:[{path:"/my-customer",name:"我的顾客",redirect:"/data-dimension",component:r()("apps/customer-app","index"),children:[{path:"/data-dimension",name:"数据维度",component:r()("apps/customer-app","data-dimension")},{path:"/crowd-scene",name:"人群场景",component:r()("apps/customer-app","crowd-scene")},{path:"/customer-data-set",name:"顾客资料",component:r()("apps/customer-app","customer-data-set")},{path:"/clerk-tag",name:"导购标签",component:r()("apps/customer-app","clerk-tag")},{path:"/customer-assign",name:"顾客分配",component:r()("apps/customer-app","customer-assign")}]}]},{path:"/gic-error",name:"gic跳转失败页",component:r()("error-page","gic-error")},{path:"/403",name:"无权访问",component:a},{path:"/404",name:"error404",component:a},{path:"/500",name:"error500",component:a},{path:"*",redirect:"/404",hidden:!0}]},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 r})),t.d(n,"d",(function(){return a})),t.d(n,"b",(function(){return u})),t.d(n,"a",(function(){return o}));var r=c(),a="0000",u="0003",o={batchAudit:"batchAudit"}}});
\ No newline at end of file
(function(e){function n(n){for(var c,r,u=n[0],i=n[1],s=n[2],f=0,h=[];f<u.length;f++)r=u[f],Object.prototype.hasOwnProperty.call(a,r)&&a[r]&&h.push(a[r][0]),a[r]=0;for(c in i)Object.prototype.hasOwnProperty.call(i,c)&&(e[c]=i[c]);d&&d(n);while(h.length)h.shift()();return o.push.apply(o,s||[]),t()}function t(){for(var e,n=0;n<o.length;n++){for(var t=o[n],c=!0,r=1;r<t.length;r++){var u=t[r];0!==a[u]&&(c=!1)}c&&(o.splice(n--,1),e=i(i.s=t[0]))}return e}var c={},r={app:0},a={app:0},o=[];function u(e){return i.p+"js/"+({}[e]||e)+"."+{"chunk-02d4ab18":"b804b37f","chunk-0644f611":"3fdab175","chunk-0be39b5a":"e235acbd","chunk-0f6ed5e1":"94509465","chunk-4711c0fb":"ef35d892","chunk-bc8a8204":"75d78b14","chunk-113e6480":"cc15aa00","chunk-2150c8a8":"bd05dee3","chunk-226df849":"346fbf6c","chunk-2270cb54":"2c02cf73","chunk-2351fb9b":"8f3632bd","chunk-2c715f0c":"800a5527","chunk-33b0918a":"be0baebe","chunk-37259986":"f844e1c7","chunk-43f503d3":"189358b8","chunk-28decd63":"4e5523ea","chunk-64ba165a":"ad90f173","chunk-45b70e81":"056e5325","chunk-4b3e5aec":"1f2f741d","chunk-5cd754bd":"17f8784b","chunk-5eeae6f1":"9fcc80ef","chunk-659f0218":"8d562385","chunk-6dfc1c36":"3daf41cf","chunk-6f32e3dc":"1a5c8016","chunk-784402ec":"b693431e","chunk-7d62a3f8":"c68b2bdd","chunk-96ef390e":"1e9f949a","chunk-ab296cf2":"35702076","chunk-ac12b2a4":"ab942159","chunk-b5b34ad2":"45302959","chunk-ba1c12aa":"7f20ac59","chunk-c2d4f890":"8645e6d8","chunk-d5950102":"cfc20e67","chunk-e0185d66":"59f5448b","chunk-f4b91c90":"16dd9adc","chunk-ff69e9d6":"6a99799c"}[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-02d4ab18":1,"chunk-0644f611":1,"chunk-0be39b5a":1,"chunk-4711c0fb":1,"chunk-bc8a8204":1,"chunk-113e6480":1,"chunk-2150c8a8":1,"chunk-226df849":1,"chunk-2270cb54":1,"chunk-2351fb9b":1,"chunk-2c715f0c":1,"chunk-33b0918a":1,"chunk-37259986":1,"chunk-43f503d3":1,"chunk-28decd63":1,"chunk-64ba165a":1,"chunk-45b70e81":1,"chunk-4b3e5aec":1,"chunk-5cd754bd":1,"chunk-5eeae6f1":1,"chunk-659f0218":1,"chunk-6dfc1c36":1,"chunk-6f32e3dc":1,"chunk-784402ec":1,"chunk-7d62a3f8":1,"chunk-96ef390e":1,"chunk-ab296cf2":1,"chunk-ac12b2a4":1,"chunk-b5b34ad2":1,"chunk-ba1c12aa":1,"chunk-c2d4f890":1,"chunk-d5950102":1,"chunk-e0185d66":1,"chunk-f4b91c90":1,"chunk-ff69e9d6":1};r[e]?n.push(r[e]):0!==r[e]&&t[e]&&n.push(r[e]=new Promise((function(n,t){for(var c="css/"+({}[e]||e)+"."+{"chunk-02d4ab18":"2fc03ad0","chunk-0644f611":"93e19818","chunk-0be39b5a":"6672c4f5","chunk-0f6ed5e1":"31d6cfe0","chunk-4711c0fb":"0ffa7392","chunk-bc8a8204":"604a5680","chunk-113e6480":"2f295556","chunk-2150c8a8":"f0ff185c","chunk-226df849":"b0d285f8","chunk-2270cb54":"31ea5e58","chunk-2351fb9b":"6efba3e1","chunk-2c715f0c":"1f7d0d83","chunk-33b0918a":"b7424a51","chunk-37259986":"34356bc6","chunk-43f503d3":"3af2c213","chunk-28decd63":"b00f6204","chunk-64ba165a":"e4c47f39","chunk-45b70e81":"aba0a312","chunk-4b3e5aec":"39b039b5","chunk-5cd754bd":"75723084","chunk-5eeae6f1":"8f532f9e","chunk-659f0218":"99858b5e","chunk-6dfc1c36":"effcfd5e","chunk-6f32e3dc":"b27b0c13","chunk-784402ec":"46c25b47","chunk-7d62a3f8":"1e40ff67","chunk-96ef390e":"8f493d46","chunk-ab296cf2":"ce5861cc","chunk-ac12b2a4":"0745c5d9","chunk-b5b34ad2":"b201954d","chunk-ba1c12aa":"813bfa0b","chunk-c2d4f890":"7e26fbb5","chunk-d5950102":"58029651","chunk-e0185d66":"85ff600a","chunk-f4b91c90":"030efe69","chunk-ff69e9d6":"2e64d511"}[e]+".css",a=i.p+c,o=document.getElementsByTagName("link"),u=0;u<o.length;u++){var s=o[u],f=s.getAttribute("data-href")||s.getAttribute("href");if("stylesheet"===s.rel&&(f===c||f===a))return n()}var h=document.getElementsByTagName("style");for(u=0;u<h.length;u++){s=h[u],f=s.getAttribute("data-href");if(f===c||f===a)return n()}var d=document.createElement("link");d.rel="stylesheet",d.type="text/css",d.onload=n,d.onerror=function(n){var c=n&&n.target&&n.target.src||a,o=new Error("Loading CSS chunk "+e+" failed.\n("+c+")");o.code="CSS_CHUNK_LOAD_FAILED",o.request=c,delete r[e],d.parentNode.removeChild(d),t(o)},d.href=a;var p=document.getElementsByTagName("head")[0];p.appendChild(d)})).then((function(){r[e]=0})));var c=a[e];if(0!==c)if(c)n.push(c[2]);else{var o=new Promise((function(n,t){c=a[e]=[n,t]}));n.push(c[2]=o);var s,f=document.createElement("script");f.charset="utf-8",f.timeout=120,i.nc&&f.setAttribute("nonce",i.nc),f.src=u(e);var h=new Error;s=function(n){f.onerror=f.onload=null,clearTimeout(d);var t=a[e];if(0!==t){if(t){var c=n&&("load"===n.type?"missing":n.type),r=n&&n.target&&n.target.src;h.message="Loading chunk "+e+" failed.\n("+c+": "+r+")",h.name="ChunkLoadError",h.type=c,h.request=r,t[1](h)}a[e]=void 0}};var d=setTimeout((function(){s({type:"timeout",target:f})}),12e4);f.onerror=f.onload=s,document.head.appendChild(f)}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 s=window["webpackJsonp"]=window["webpackJsonp"]||[],f=s.push.bind(s);s.push=n,s=s.slice();for(var h=0;h<s.length;h++)n(s[h]);var d=f;o.push([0,"chunk-vendors"]),t()})({0:function(e,n,t){t("db4d"),e.exports=t("56d7")},"1a5d":function(e,n,t){var c={"./apps/customer-app/clerk-tag.vue":["b5b0","chunk-2c715f0c"],"./apps/customer-app/crowd-scene.vue":["c7d7","chunk-0f6ed5e1","chunk-4711c0fb"],"./apps/customer-app/customer-assign.vue":["12eb","chunk-02d4ab18"],"./apps/customer-app/customer-data-set.vue":["3cf8","chunk-d5950102"],"./apps/customer-app/customer-show-set.vue":["f766","chunk-96ef390e"],"./apps/customer-app/data-dimension.vue":["55f3","chunk-0f6ed5e1","chunk-bc8a8204"],"./apps/customer-app/index.vue":["c3d9","chunk-113e6480"],"./apps/index.vue":["7f2e","chunk-7d62a3f8"],"./business/audit-log.vue":["0912","chunk-226df849"],"./business/auth-merchant.vue":["56b3","chunk-4b3e5aec"],"./business/contacts.vue":["a269","chunk-659f0218"],"./business/index.vue":["50c8","chunk-5eeae6f1"],"./business/new-auth-merchant.vue":["62a7","chunk-43f503d3","chunk-64ba165a"],"./business/sync-log.vue":["b155","chunk-5cd754bd"],"./enterprise/admin-list.vue":["db80","chunk-f4b91c90"],"./enterprise/admin-list/role-list.vue":["0082","chunk-33b0918a"],"./enterprise/edit-admin.vue":["7dc6","chunk-43f503d3","chunk-28decd63"],"./enterprise/edit-role.vue":["2249","chunk-b5b34ad2"],"./enterprise/edit-role/menu-tree.vue":["a088","chunk-784402ec"],"./enterprise/edit-store-role.vue":["a960","chunk-0be39b5a"],"./enterprise/enterprise-set.vue":["b735","chunk-e0185d66"],"./enterprise/index.vue":["ea02","chunk-2150c8a8"],"./enterprise/store-admin-list.vue":["2058","chunk-6f32e3dc"],"./enterprise/super-admin.vue":["9b74","chunk-c2d4f890"],"./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-0644f611"],"./index/index.vue":["37f9","chunk-45b70e81"],"./login/index.vue":["9ed6","chunk-2270cb54"],"./review-center/index.vue":["2cad","chunk-ff69e9d6"],"./review-center/reviewed.vue":["dacc","chunk-ab296cf2"],"./review-center/unreview.vue":["1005","chunk-ac12b2a4"]};function r(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],r=n[0];return Promise.all(n.slice(1).map(t.e)).then((function(){return t(r)}))}r.keys=function(){return Object.keys(c)},r.id="1a5d",e.exports=r},"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"),t("0fae"),t("4f94"),t("d31c");var c=t("8bbf"),r=t.n(c),a=t("8c4f"),o=t("cebe"),u=t.n(o),i=t("5c96"),s=t.n(i),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)},h=[],d={name:"App"},p=d,m=t("2877"),b=Object(m["a"])(p,f,h,!1,null,null,null),l=b.exports,k=t("e2b2"),g=t.n(k),v=function(e){t.e("chunk-0644f611").then(t.bind(null,"4cf1")).then((function(n){e(n)}))},w=[{path:"/",name:"/",redirect:"login"},{path:"/login",name:"登录",component:g()("login","index")},{path:"/index",name:"index",component:g()("index","index")},{path:"/contacts",name:"通讯录",redirect:"contactsList",component:g()("business","index"),children:[{path:"/contactsList",name:"通讯录",component:g()("business","contacts")},{path:"/syncLog",name:"通讯录日志",component:g()("business","sync-log")},{path:"/authMerchant",name:"授权商户",component:g()("business","auth-merchant")},{path:"/newAuthMerchant",name:"新增授权",component:g()("business","new-auth-merchant")},{path:"/auditLog",name:"审核日志",component:g()("business","audit-log")}]},{path:"/reviewCenter",name:"审核中心",redirect:"unreview",component:g()("review-center","index"),children:[{path:"/reviewed",name:"已审核",component:g()("review-center","reviewed")},{path:"/unreview",name:"未审核",component:g()("review-center","unreview")}]},{path:"/enterprise",name:"企业设置",redirect:"enterpriseSet",component:g()("enterprise","index"),children:[{path:"/enterpriseSet",name:"企业信息",component:g()("enterprise","enterprise-set")},{path:"/admin-list",name:"管理员",component:g()("enterprise","admin-list")},{path:"/edit-role",name:"新建、编辑角色",component:g()("enterprise","edit-role")},{path:"/edit-admin",name:"新建编辑管理员",component:g()("enterprise","edit-admin")},{path:"/store-admin-list",name:"门店角色",component:g()("enterprise","store-admin-list")},{path:"/edit-store-role",name:"编辑门店角色",component:g()("enterprise","edit-store-role")},{path:"/superAdmin",name:"超级管理员",component:g()("enterprise","super-admin")}]},{path:"/apps",name:"企业应用",redirect:"mycustomer",component:g()("apps","index"),children:[{path:"/my-customer",name:"我的顾客",redirect:"/data-dimension",component:g()("apps/customer-app","index"),children:[{path:"/data-dimension",name:"数据维度",component:g()("apps/customer-app","data-dimension")},{path:"/crowd-scene",name:"人群场景",component:g()("apps/customer-app","crowd-scene")},{path:"/customer-data-set",name:"顾客资料",component:g()("apps/customer-app","customer-data-set")},{path:"/clerk-tag",name:"导购标签",component:g()("apps/customer-app","clerk-tag")},{path:"/customer-assign",name:"顾客分配",component:g()("apps/customer-app","customer-assign")}]}]},{path:"/gic-error",name:"gic跳转失败页",component:g()("error-page","gic-error")},{path:"/403",name:"无权访问",component:v},{path:"/404",name:"error404",component:v},{path:"/500",name:"error500",component:v},{path:"*",redirect:"/404",hidden:!0}],y=a["a"].prototype.push;a["a"].prototype.push=function(e){return y.call(this,e).catch((function(e){return e}))};var x=new a["a"]({routes:w}),M=x,S=(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 r in/(Y+)/.test(n)&&(n=n.replace(RegExp.$1,(t.getFullYear()+"").substr(4-RegExp.$1.length))),c)new RegExp("("+r+")").test(n)&&(n=n.replace(RegExp.$1,1===RegExp.$1.length?c[r]:("00"+c[r]).substr((""+c[r]).length)));return n}),O=function(e){if(!e)return"";var n=new Date(e),t=n.getMonth()+1,c=n.getDate()<10?"0"+n.getDate():n.getDate(),r=t<10?"0"+t:t,a=n.getHours()<10?"0"+n.getHours():n.getHours(),o=n.getMinutes()<10?"0"+n.getMinutes():n.getMinutes(),u=n.getSeconds()<10?"0"+n.getSeconds():n.getSeconds();return"".concat(n.getFullYear(),"-").concat(r,"-").concat(c," ").concat(a,":").concat(o,":").concat(u)},D=function(e){if(!e)return"";var n=new Date(e),t=n.getMonth()+1,c=n.getDate()<10?"0"+n.getDate():n.getDate(),r=t<10?"0"+t:t,a=n.getHours()<10?"0"+n.getHours():n.getHours(),o=n.getMinutes()<10?"0"+n.getMinutes():n.getMinutes(),u=n.getSeconds()<10?"0"+n.getSeconds():n.getSeconds();return"".concat(n.getFullYear(),".").concat(r,".").concat(c," ").concat(a,":").concat(o,":").concat(u)},j=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)},A=function(e){if(!e)return"";var n=new Date(e),t=n.getMonth()+1,c=n.getDate()<10?"0"+n.getDate():n.getDate(),r=t<10?"0"+t:t;return"".concat(n.getFullYear(),"-").concat(r,"-").concat(c)},E=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(),r=n.getSeconds()<10?"0"+n.getSeconds():n.getSeconds();return"".concat(t,":").concat(c,":").concat(r)},T=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),r=t%864e5,a=Math.floor(r/36e5),o=r%36e5,u=Math.floor(o/6e4);return"".concat(c,"天").concat(a,"小时").concat(u,"分")},P=function(e){return e?(e=e.toString(),e.substr(0,3)+"****"+e.substr(7,11)):""},C=function(e){return e?(e=e.toString(),"**"+e.substr(e.length-1,e.length)):""},H=function(e){return e?(e=e.toString(),e.length>6?e.substr(0,5)+"...":e):""},L=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,r=Math.floor(n/60)%60<10?"0"+Math.floor(n/60)%60:Math.floor(n/60)%60,a=Math.floor(n)%60<10?"0"+Math.floor(n)%60:Math.floor(n)%60;return"".concat(c,":").concat(r,":").concat(a)},_={dateFormat:S,formatTimeStamp:O,timeStampToYm:j,timeStampToYmd:A,timeStampToHms:E,formatTimeYmdHms:D,formatPhoneNum:P,formatName:C,timeStampSpace:T,formatTime:L,formatWord:H},F=(t("96cf"),t("1da1")),N=(t("5df3"),t("b775")),R=t("f121"),Y=[],$=[],U={};function q(){var e=Object(N["a"])({url:"/hb-manage-web/list-staff-role-menu"}).then((function(e){$=B(e.result||[])})),n=Object(N["a"])({url:"/hb-manage-web/list-staff-role-opeation"}).then((function(e){U=I(e.result||[])}));return Promise.all([e,n])}function B(e){var n=[];return e.forEach((function(e){e.menuUrl&&n.push(e.menuUrl),Array.isArray(e.children)&&(n=n.concat(B(e.children)))})),n}function I(e){var n={};return e.forEach((function(e){n[e.menuCode]=!0})),n}function J(e){var n=[];return e.forEach((function(e){Array.isArray(e.children)&&(n=n.concat(J(e.children))),n.push(e.path)})),n}function W(e,n,t){var c=$.some((function(n){return n.indexOf("/#")>=0?n=="/#".concat(e.path):n==e.path}));if(c)return t();Y.some((function(n){return n==e.path}))||0==$.length?window.location.href="".concat(R["c"],"/haoban-4/#/gic-error"):t($[0])}function K(e){return!!U[e]}var V=function(e){var n=e.whiteRoute,t=e.router,c=e.routes,r=e.createApp;window.onload=Object(F["a"])(regeneratorRuntime.mark((function e(){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(a=window.location.href,-1!=a.indexOf("/login")||-1!=a.indexOf("/gic-error")){e.next=4;break}return e.next=4,q();case 4:Array.isArray(n)&&($=$.concat(n)),Array.isArray(c)&&(Y=J(c)),t.beforeEach(W),"function"==typeof r&&r();case 8:case"end":return e.stop()}}),e)})))};r.a.use(a["a"]),r.a.use(s.a),u.a.defaults.withCredentials=!0,r.a.prototype.axios=u.a,r.a.prototype.$itemPerm=K,r.a.prototype.$itemCode=R["a"],r.a.config.devtools=!1,r.a.config.productionTip=!1,Object.keys(_).forEach((function(e){r.a.filter(e,_[e])}));var z=["/data-dimension","/crowd-scene","/customer-data-set","/clerk-tag","/customer-assign"];V({whiteRoute:["/login","/contactsList","/gic-error","/403","/404","/500"].concat(z),router:M,routes:w,createApp:function(){new r.a({router:M,render:function(e){return e(l)}}).$mount("#app")}})},"8bbf":function(e,n){e.exports=Vue},b775:function(e,n,t){"use strict";t.d(n,"a",(function(){return s}));var c=t("cebe"),r=t.n(c),a=t("4328"),o=t.n(a),u=t("5c96"),i=t("f121");r.a.defaults.baseURL=i["c"],r.a.defaults.withCredentials=!0;var s=function(e,n){n=Object.assign({},n),e=Object.assign({},e);var t={url:"",params:"",data:"",method:"get",useFormData:!1,useIntercept:!0,headers:{}};switch(t=Object.assign(t,e),t.useFormData&&(n=o.a.stringify(n)),t.method.toLowerCase()){case"get":t.params=n;break;case"post":t.data=n;break;default:t.data=n;break}return new Promise((function(e,n){r()(t).then((function(c){var r=c.data;if(r.code!=i["b"])return t.useIntercept&&r.code!=i["d"]?(Object(u["Message"])({message:r.message||"未知错误",type:"warning"}),n(r)):void e(r);window.location.href="".concat(i["c"],"/haoban-4/#/login")})).catch((function(e){var t=e.response||{},c=t.data||{};Object(u["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 r})),t.d(n,"d",(function(){return a})),t.d(n,"b",(function(){return o})),t.d(n,"a",(function(){return u}));var r=c(),a="0000",o="0003",u={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-02cdd212"],{2938:function(t,e,a){"use strict";var n=a("c44f"),s=a.n(n);s.a},6300:function(t,e,a){"use strict";var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"custom-dialog-wrap"},[a("el-dialog",{attrs:{title:"门店图片变更",visible:t.customDialog,width:"600px","before-close":t.handleCardClose},on:{"update:visible":function(e){t.customDialog=e}}},[a("div",{staticClass:"dialog-content"},[a("el-row",[a("el-col",{attrs:{span:11}},[a("div",{staticClass:"grid-content bg-purple-dark"},[t._v("\n 变更前\n ")]),a("div",{staticClass:"data-body"},[a("div",{staticClass:"data-body-content flex flex-column"},[t._l(t.leftData,(function(t,e){return[a("img",{key:"img"+e,attrs:{src:t,alt:""}})]}))],2)])]),a("el-col",{attrs:{span:11}},[a("div",{staticClass:"grid-content bg-purple-dark"},[t._v("\n 变更后\n ")]),a("div",{staticClass:"data-body"},[a("div",{staticClass:"data-body-content flex flex-column"},[t._l(t.rightData,(function(t,e){return[a("img",{key:"img0"+e,attrs:{src:t,alt:""}})]}))],2)])])],1)],1)])],1)},s=[],r={name:"StoreChangeDialog",props:{value:{type:Boolean,default:!1},storeChangeData:{type:[Object,Array]}},data:function(){return{repProjectName:"haoban-web",customDialog:this.value,leftData:[],rightData:[]}},mounted:function(){var t=this;t.leftData=t.storeChangeData.beforeContent,t.rightData=t.storeChangeData.afterContent},methods:{handleCardClose:function(){var t=this;t.customCancel()},customCancel:function(){var t=this;t.customDialog=!1,t.$emit("input",t.customDialog)}},watch:{value:function(t,e){var a=this;a.customDialog=t},storeChangeData:function(t,e){var a=this;a.leftData=t.beforeContent,a.rightData=t.afterContent}}},i=r,o=(a("8709"),a("2877")),l=Object(o["a"])(i,n,s,!1,null,"bce7ed18",null);e["a"]=l.exports},"6ce2":function(t,e,a){t.exports=a.p+"img/member.1eda5d6c.png"},"71f6":function(t,e,a){"use strict";a.d(e,"a",(function(){return s}));a("ac6a"),a("456d");var n=a("b775");function s(t,e){t=t||{};var a=Object.keys(t);return a.forEach((function(a){var s=t[a];"string"===typeof s&&(s={url:s}),s.url="".concat(e).concat(s.url),t[a]=function(t){return Object(n["a"])(s,t)}})),t}},7842:function(t,e,a){},8709:function(t,e,a){"use strict";var n=a("7842"),s=a.n(n);s.a},"96b6":function(t,e,a){"use strict";var n=a("71f6"),s={getReview:"/audit/audit-list",getWxEnterprise:"/auth-enterprise-list",getStaffInfo:"/get-staff-info",postAudit:{url:"/audit/agree",method:"post",useFormData:!0,useIntercept:!1},postBatchApprove:{url:"/audit/batch-agree",method:"post",useFormData:!0,useIntercept:!1},postRefuse:{url:"/audit/refuse",method:"post",useFormData:!0,useIntercept:!1},getAuditDetail:"/audit/batch-log-list"};s=Object(n["a"])(s,"/hb-manage-web"),e["a"]=s},c44f:function(t,e,a){},d157:function(t,e,a){"use strict";a.d(e,"a",(function(){return n})),a.d(e,"b",(function(){return s})),a.d(e,"c",(function(){return r}));a("c5f6"),a("a481"),a("28a5"),a("6b54");function n(t,e){var a,n=e||200;return function(){var e=this,s=arguments;a&&clearTimeout(a),a=setTimeout((function(){a=null,t.apply(e,s)}),n)}}function s(t,e){var a,n,s=e||200;return function(){var e=this,r=arguments,i=+new Date;a&&i-a<s?(clearTimeout(n),n=setTimeout((function(){a=i,t.apply(e,r)}),s)):(a=i,t.apply(e,r))}}function r(t){return t=t.replace(/\uD83C[\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F]|[\uD800-\uDBFF]|[\uDC00-\uDFFF]|[^\u0020-\u007E\u00A0-\u00BE\u2E80-\uA4CF\uF900-\uFAFF\uFE30-\uFE4F\uFF00-\uFFEF\u0080-\u009F\u2000-\u201f\u2026\u2022\u20ac\r\n]/g,""),unescape(escape(t).replace(/\%uD.{3}/g,""))}},dacc:function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"reviewed-wrap common-set-wrap"},[n("div",{staticClass:"right-content"},[n("div",{staticClass:"right-box",staticStyle:{"min-height":"calc(100vh - 86px)"}},[n("div",{staticClass:"reviewed-body-head"},[t._m(0),n("el-input",{staticClass:"w-344",attrs:{maxlength:"50",placeholder:"请输入提交人姓名/账号/手机号","prefix-icon":"el-icon-search",clearable:""},on:{clear:t.clearSearch},nativeOn:{keyup:function(e){return function(e){return t.searchEnterFun(e,t.searchInput)}(e)}},model:{value:t.searchValue,callback:function(e){t.searchValue=e},expression:"searchValue"}}),n("el-select",{staticClass:"w-130 m-l-10",attrs:{placeholder:"全部事项"},on:{change:t.changeTableList},model:{value:t.auditType,callback:function(e){t.auditType=e},expression:"auditType"}},t._l(t.filterOptions,(function(t){return n("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1),n("el-select",{staticClass:"w-168 m-l-10",attrs:{placeholder:"全部品牌"},on:{change:t.changeTableList},model:{value:t.filterBrand,callback:function(e){t.filterBrand=e},expression:"filterBrand"}},[n("el-option",{attrs:{label:"全部品牌",value:""}}),t._l(t.brandOptions,(function(t){return n("el-option",{key:t.enterpriseId,attrs:{label:t.enterpriseName,value:t.enterpriseId}})}))],2)],1),n("div",{staticClass:"reviewed-body-content"},[n("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],ref:"multipleTable",staticStyle:{width:"100%"},attrs:{data:t.tableData,"tooltip-effect":"dark"}},[n("el-table-column",{attrs:{label:"审核事项"},scopedSlots:t._u([{key:"default",fn:function(e){return[1==e.row.auditType?n("span",[t._v("导购账号绑定")]):t._e()]}}])}),n("el-table-column",{attrs:{label:"提交人","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[n("div",{staticClass:"flex"},[n("el-popover",{attrs:{placement:"top",width:"300",trigger:"hover"},on:{show:function(a){return t.showSingleInfo(e.row.submitStaffId)}}},[n("div",{staticClass:"apply-info-detail"},[n("div",{staticClass:"flex"},[n("div",{staticClass:"apply-info-img flex-align-center flex-pack-center bg-82c5ff "},[t.userData.headImg?n("img",{attrs:{src:t.userData.headImg,alt:"img"}}):n("img",{attrs:{src:a("6ce2"),alt:"img"}})]),n("div",{staticClass:"flex flex-column apply-info-right flex-pack-center"},[n("div",{staticClass:"apply-info-name"},[n("span",{staticClass:"font-14 color-303133"},[t._v(t._s(t.userData.staffName||"--"))]),n("span",{staticClass:"font-14 color-90939"},[t._v("( "+t._s(1==t.userData.sex?"男":2==t.userData.sex?"女":"--")+")")])])])]),n("div",{staticClass:"flex flex-space-between line-26 m-t-15"},[n("div",{staticClass:"font-14 color-606266"},[t._v("账号")]),n("div",{staticClass:"font-14 color-303133"},[t._v(t._s(t.userData.wxUserId||"--"))])]),n("div",{staticClass:"flex flex-space-between line-26"},[n("div",{staticClass:"font-14 color-606266"},[t._v("职务")]),n("div",{staticClass:"font-14 color-303133"},[t._v(t._s(t.userData.postion||"--"))])]),n("div",{staticClass:"flex flex-space-between line-26"},[n("div",{staticClass:"font-14 color-606266"},[t._v("手机号")]),n("div",{staticClass:"font-14 color-303133"},[t._v(t._s(t.userData.nationCode||"--")+"-"+t._s(t.userData.phoneNumber||"--"))])]),n("div",{staticClass:"flex flex-space-between line-26"},[n("div",{staticClass:"font-14 color-606266 w-m-100"},[t._v("部门")]),n("div",{staticClass:"font-14 color-303133"},[t._v(t._s(t.userData.departmentInfo.map((function(t){return t.departmentName})).join(";")||"--"))])])]),n("div",{attrs:{slot:"reference"},slot:"reference"},[n("div",{staticClass:"flex flex-align-center flex-pack-center bg-82c5ff table-head-pic cursor-pointer"},[e.row.submitHeadImg?n("img",{attrs:{src:e.row.submitHeadImg,alt:"img"}}):n("img",{attrs:{src:a("6ce2"),alt:"img"}})])])]),n("div",{staticClass:"flex flex-column apply-info",staticStyle:{overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"}},[n("span",{staticClass:"font-14 color-606266 hide-ellipsis"},[t._v(t._s(e.row.submitStaffName||"--"))]),n("span",{staticClass:"font-12 color-909399 hide-ellipsis"},[t._v(t._s(e.row.submitWxUserId||"--"))])])],1)]}}])}),n("el-table-column",{attrs:{label:"详情","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.content||"--")+"\n ")]}}])}),n("el-table-column",{attrs:{label:"提交时间","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[n("div",{staticClass:"line-h-18"},[t._v(t._s(t._f("timeStampToYmd")(e.row.createTime)))]),n("div",{staticClass:"line-h-18"},[t._v(t._s(t._f("timeStampToHms")(e.row.createTime)))])]}}])}),n("el-table-column",{attrs:{label:"审核人","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.auditStaffName||"--")+"\n ")]}}])}),n("el-table-column",{attrs:{label:"状态"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("span",{class:["span-dot",1==e.row.auditFlag?"bg-52c41a":"bg-f5222d"]}),1==e.row.auditFlag?n("span",[t._v("已同意")]):t._e(),2==e.row.auditFlag?n("el-popover",{attrs:{placement:"top",width:"200",trigger:"hover",content:e.row.reason}},[n("span",{staticClass:"common-bottom-border",attrs:{slot:"reference"},slot:"reference"},[t._v("已拒绝")])]):t._e()]}}])}),n("el-table-column",{attrs:{label:"结果"},scopedSlots:t._u([{key:"default",fn:function(e){return[2==e.row.statusFlag&&1==e.row.auditFlag?n("span",[t._v("成功")]):t._e(),2==e.row.auditFlag?n("span",[t._v("--")]):t._e(),1==e.row.statusFlag&&1==e.row.auditFlag?n("el-popover",{attrs:{placement:"top",width:"200",trigger:"hover",content:e.row.reason}},[n("span",{staticClass:"common-bottom-border",attrs:{slot:"reference"},slot:"reference"},[t._v("失败")])]):t._e()]}}])})],1),0!=t.tableData.length?n("div",{staticClass:"block common-wrap__page text-right"},[n("dm-pagination",{attrs:{background:"","current-page":t.currentPage,"page-sizes":[20,40,60,80],"page-size":t.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1):t._e()],1)])]),n("store-change",{attrs:{"store-change-data":t.storeChangeData},model:{value:t.showStoreDialog,callback:function(e){t.showStoreDialog=e},expression:"showStoreDialog"}})],1)},s=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"tip-body m-b-20"},[a("div",{staticClass:"el-alert el-alert--info",attrs:{role:"alert"}},[a("i",{staticClass:"el-alert__icon el-icon-info"}),a("div",{staticClass:"el-alert__content"},[a("span",{staticClass:"el-alert__title"},[t._v("展示管理员审核及绑定解绑记录及门店成员自助增删导购及用户绑定记录")])])])])}],r=(a("28a5"),a("ac6a"),a("6300")),i=a("96b6"),o=a("e230"),l=a("d157"),c=o["a"].getStaffDetail,u=i["a"].getReview,f=i["a"].getWxEnterprise,d={name:"ReviewedPage",components:{storeChange:r["a"]},data:function(){return{wxEnterpriseId:localStorage.getItem("haoBanUser")?JSON.parse(localStorage.getItem("haoBanUser")).wxEnterpriseId:"",auditType:"",filterBrand:"",brandOptions:[],filterOptions:[{label:"全部事项",value:""},{label:"导购账号绑定",value:"1"}],searchValue:"",loading:!1,tableData:[],multipleSelection:[],currentPage:1,pageSize:20,total:0,showStoreDialog:!1,storeChangeData:{},userData:{staffName:"",phoneNumber:"",nationCode:"",postion:"",departmentInfo:[],headImg:"",wxUserId:"",sex:1}}},mounted:function(){var t=this;t.$emit("showTab","/reviewed"),t.getTableList(),t.getBrandData()},methods:{changeTableList:function(){var t=this;t.currentPage=1,t.getTableList()},clearSearch:function(){var t=this;t.currentPage=1,t.getTableList()},searchEnterFun:Object(l["a"])((function(t){var e=this,a=String(t.target.value).trim();if(!a)return!1;e.currentPage=1,e.getTableList()}),200),toggleReason:function(t){var e=this;t.visible=!0,e.tableData.forEach((function(e,a){e.enterpriseAuditingId!=t.enterpriseAuditingId&&(e.visible=!1)}))},handleSelectionChange:function(t){var e=this;e.multipleSelection=t},handleSizeChange:function(t){var e=this;e.currentPage=1,e.pageSize=t,e.getTableList()},handleCurrentChange:function(t){var e=this;e.currentPage=t,e.getTableList()},showSingleInfo:function(t){var e=this,a={staffId:t};c(a).then((function(t){e.userData=t.result||{staffName:"",phoneNumber:"",nationCode:"",postion:"",departmentInfo:[],headImg:"",wxUserId:"",sex:1}})).catch((function(t){}))},showStoreChange:function(t){var e=this;e.storeChangeData={beforeContent:[],afterContent:[]},e.showStoreDialog=!0,e.storeChangeData={beforeContent:""!=t.oldValue?t.oldValue.split(","):[],afterContent:""!=t.newValue?t.newValue.split(","):[]}},getBrandData:function(){var t=this;f({wxEnterpriseId:t.wxEnterpriseId}).then((function(e){e.result&&e.result.length&&(t.brandOptions=e.result)})).catch((function(t){}))},getTableList:function(){var t=this;t.loading=!0;var e={wxEnterpriseId:t.wxEnterpriseId,auditType:t.auditType,searchType:"1",search:t.searchValue||"",pageNum:t.currentPage,pageSize:t.pageSize,enterpriseId:t.filterBrand};u(e).then((function(e){t.loading=!1,t.tableData=e.result.result||[],t.total=e.result.totalCount})).catch((function(e){t.loading=!1}))}}},p=d,g=(a("2938"),a("2877")),h=Object(g["a"])(p,n,s,!1,null,"7c0c5ee4",null);e["default"]=h.exports},e230:function(t,e,a){"use strict";var n=a("71f6"),s={getSyncCheck:"/sync/sync-check",refreshWx:"/sync/sync-contact",getDepartmentList:"/department-list-level",getCompanyDepartList:"/contact/get-department-list",getStaffList:"/contact/get-staff-list",getStaffDetail:"/contact/staff-detail",getStaffRelation:"/bind/staff-clerk-relation",delStaffRelation:{url:"/bind/staff-unbind",method:"post",useFormData:!0,useIntercept:!1},addStaffRelation:{url:"/bind/staff-bind",method:"post",useFormData:!0,useIntercept:!1},getClerkRelation:"/bind/search-clerk-list",getWxEnterprise:"/auth-enterprise-list",getBindLog:"/bind/bind-log-list",getRefreshLog:"/sync/sync-task",getSyncFailDetail:"/sync-task-detail",getNationCode:"/nationcode/get-nationcode-list",getGicGroup:"/gic-department-list",getGicStore:"/get-store-list"};s=Object(n["a"])(s,"/hb-manage-web"),e["a"]=s}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-02d4ab18"],{"12eb":function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"app-detail-wrap"},[n("div",{staticClass:"border-box"},[n("div",{staticClass:"list-body flex"},[n("div",{staticClass:"list-left border-box"},[e.gicData.length?n("org-tree",{attrs:{"brand-id":e.brandId,"depart-obj":e.departObj,"item-data":e.gicData},on:{getSelectData:e.getSelectData}}):e._e()],1),n("div",{staticClass:"list-right p-20 border-box"},[e.showMember?e._e():n("store-list",{attrs:{"brand-id":e.brandId,"depart-obj":e.departObj},on:{getStore:e.getStore}}),e.showMember?n("div",{staticClass:"list-right-body"},[n("div",{staticClass:"el-breadcrumb m-b-20",attrs:{role:"navigation"}},e._l(e.navData,(function(t,a){return n("span",{key:a+"nav",staticClass:"el-breadcrumb__item"},[n("span",{staticClass:"el-breadcrumb__inner is-link",attrs:{role:"link"},on:{click:function(n){return e.changeDepart(t,a)}}},[n("span",{staticClass:"el-breadcrumb__inner is-link font-14 color-606266"},[e._v("\n "+e._s(a==e.navData.length-1?t.storeName:t.storeGroupName)+"\n ")])]),a!=e.navData.length-1?n("i",{staticClass:"el-breadcrumb__separator el-icon-arrow-right"}):e._e()])})),0),n("div",{staticClass:"table-top flex flex-space-between"},[n("div",[n("el-select",{staticClass:"w-168",attrs:{placeholder:""},on:{change:e.changeCondition},model:{value:e.clerkId,callback:function(t){e.clerkId=t},expression:"clerkId"}},[n("el-option",{attrs:{label:"全部",value:"0"}}),n("el-option",{attrs:{label:"无归属",value:"-1"}}),e._l(e.clerkOptions,(function(e){return n("el-option",{key:e.clerkId,attrs:{label:e.clerkName,value:e.clerkId}})}))],2),n("el-input",{staticClass:"w-264 m-l-10",staticStyle:{width:"264px"},attrs:{placeholder:"请输入会员姓名/手机号/卡号",maxlength:"50","prefix-icon":"el-icon-search",clearable:""},on:{clear:e.clearSearch},nativeOn:{keyup:function(t){return function(t){return e.toInput(t,e.searchInput)}(t)}},model:{value:e.searchInput,callback:function(t){e.searchInput=t},expression:"searchInput"}})],1),n("el-button",{attrs:{type:"primary"},on:{click:e.toAssign}},[e._v("批量分配会员")])],1),n("div",{staticClass:"table-body m-t-20"},[n("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"multipleTable",staticClass:"select-table",style:{width:"100%"},attrs:{data:e.tableData,"tooltip-effect":"dark"},on:{"selection-change":e.handleSelectionChange}},[n("el-table-column",{attrs:{type:"selection",width:"45"}}),n("el-table-column",{attrs:{width:"25"}},[n("template",{slot:"header"},[n("el-dropdown",{staticStyle:{"line-height":"10px",padding:"0","margin-left":"-15px",transform:"translateY(4px)","-webkit-transform":"translateY(4px)"},attrs:{placement:"bottom-start"},on:{command:e.handleCommand}},[n("span",{staticClass:"el-dropdown-link"},[n("i",{staticClass:"iconfont icongengduo"})]),n("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[n("el-dropdown-item",{attrs:{command:"0"}},[n("span",{style:{color:0==e.selectRadio?"#2f54eb":"#606266"}},[e._v("选择当页")])]),n("el-dropdown-item",{attrs:{command:"1"}},[n("span",{style:{color:1==e.selectRadio?"#2f54eb":"#606266"}},[e._v("选择全部")])])],1)],1)],1)],2),n("el-table-column",{attrs:{label:"会员姓名",width:"120","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.memberName||"--"))]}}],null,!1,2135582826)}),n("el-table-column",{attrs:{prop:"",label:"会员等级"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.gradeName||"--"))]}}],null,!1,1053758223)}),n("el-table-column",{attrs:{prop:"",label:"消费总额","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.costFee)+" "+e._s(null==t.row.costFee&&0!=t.row.costFee?"--":""))]}}],null,!1,901209103)}),n("el-table-column",{attrs:{prop:"",label:"最近消费时间","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("timeStampToYmd")(t.row.lastCostTime))+" "+e._s(t.row.lastCostTime?"":"--")+"\n ")]}}],null,!1,3951024360)}),n("el-table-column",{attrs:{prop:"",label:"生日","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.birthday||"--"))]}}],null,!1,2892294244)}),n("el-table-column",{attrs:{prop:"",label:"所属导购","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.clerkName||"--")+"\n ")]}}],null,!1,114437033)}),n("el-table-column",{attrs:{label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-button",{attrs:{type:"text"},on:{click:function(n){return e.toAssignMember(t.$index,t.row)}}},[e._v("分配")])]}}],null,!1,1410739074)})],1),0!=e.tableData.length?n("div",{staticClass:"block common-wrap__page text-right m-t-24"},[n("dm-pagination",{attrs:{background:"","current-page":e.currentPage,"page-sizes":[20,40,60,80],"page-size":e.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1):e._e()],1)]):e._e()],1)])]),e.assignShow?n("customer-assign",{attrs:{"brand-id":e.brandId,"clerk-id":e.clerkId,"search-params":e.searchInput,"edit-row":e.editRow,"choose-all":e.selectRadio,"depart-obj":e.storeObj,"multiple-data":e.multipleSelection},on:{closeText:e.closeText,submitText:e.submitText}}):e._e()],1)},r=[],s=(n("ac6a"),n("96cf"),n("1da1")),o=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("ul",{class:["gic-tree-body"]},e._l(e.itemData,(function(t,a){return n("li",{key:a+"gic"},[n("div",{class:["li-cell cursor-pointer",e.departObj.storeGroupId==t.storeGroupId?"li-cell-active":""]},[n("div",{class:["li-cell-inner border-box cursor-pointer"],style:{"margin-left":20*(t.groupLevel+1)+"px"},on:{click:function(n){return e.toggleExpand(t)}}},[n("span",{class:["font-12 color-606266",1!=t.isStore&&t.hasSonNode?"":"color-fff",t.expand?"el-icon-caret-bottom":"el-icon-caret-right"]}),t.loading?n("span",{staticClass:"el-tree-node__loading-icon el-icon-loading"}):e._e(),n("span",{staticClass:"font-14 color-606266 p-l-10"},[e._v(e._s(t.label))])])]),n("li-row",{directives:[{name:"show",rawName:"v-show",value:!!t.children.length&&t.expand,expression:"!!item.children.length && item.expand"}],attrs:{"depart-obj":e.departObj,"item-obj":t,"item-data":t.children},on:{getSelectData:e.getSelectData}})],1)})),0)},i=[],c={name:"LiRow",props:{brandId:{type:String,default:function(){return""}},itemData:{type:[Object,Array],default:function(){return[]}},itemObj:{type:[Object,Array],default:function(){return[]}},departObj:{type:Object,default:function(){return{departmentId:"",departmentName:"",wxDepartmentId:"",parentId:"",isStore:"",staffCount:"",bindFlag:"",loading:!1}}}},data:function(){return{}},beforeDestroy:function(){this.tempArr=[]},methods:{getSelectData:function(e){var t=this;t.selectData=e,t.$emit("getSelectData",e)},toggleExpand:function(){var e=Object(s["a"])(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:n=this,t.expand=!t.expand,n.$emit("getSelectData",t);case 3:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()}},l=c,u=(n("9b5b"),n("2877")),d=Object(u["a"])(l,o,i,!1,null,"7b68bb10",null),p=d.exports,f=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-dialog",{attrs:{title:"批量分配会员",visible:e.dialogVisible,width:"600px","before-close":e.handleClose},on:{"update:visible":function(t){e.dialogVisible=t}}},[n("div",{staticClass:"assign-table"},[n("div",{staticClass:"check-all border-box flex flex-space-between"},[n("div",{staticClass:"font-14 color-606266"},[n("el-checkbox",{attrs:{disabled:e.clerkOptions.length>e.assignPeople||e.unbindFlag,indeterminate:e.isIndeterminate},on:{change:e.handleCheckAllChange},model:{value:e.checkAll,callback:function(t){e.checkAll=t},expression:"checkAll"}},[e._v("全选")])],1),n("div",{staticClass:"font-14 color-606266"},[n("el-checkbox",{on:{change:e.changeHand},model:{value:e.checked,callback:function(t){e.checked=t},expression:"checked"}},[e._v("手动分配")]),n("span",{staticClass:"span-line"}),n("span",[e._v("可分配会员 "),n("span",{staticClass:"color-303133"},[e._v(e._s(e.assignPeople))]),e._v(" 人")])],1)]),n("div",[n("ul",{staticClass:"clerk-list-ul"},[n("el-checkbox-group",{on:{change:e.handleCheckedChange},model:{value:e.checkedClerks,callback:function(t){e.checkedClerks=t},expression:"checkedClerks"}},[e._l(e.clerkOptions,(function(t,a){return[n("li",{key:a+"clerk",staticClass:"clerk-cell font-14 color-606266"},[n("el-checkbox",{attrs:{disabled:t.disabled,label:t.clerkId},on:{change:function(n){return e.changeCell(n,t)}}},[e._v(e._s(t.clerkName))]),t.bindFlag?e._e():n("span",{staticClass:"font-14 color-f56c6c p-l-20"},[e._v("未关联企微用户")]),!e.checked&&e.checkedClerks.includes(t.clerkId)?n("span",{staticClass:"p-l-20"},[e._v("\n 分配会员 "),n("span",{staticClass:"color-303133"},[e._v(e._s(t.memberCount))]),e._v(" 人")]):e._e(),e.checked&&e.checkedClerks.includes(t.clerkId)?n("span",{staticClass:"p-l-20 p-r-10"},[e._v("分配会员 ")]):e._e(),e.checked&&e.checkedClerks.includes(t.clerkId)?n("el-input-number",{staticClass:"w-100",attrs:{"controls-position":"right",step:1,"step-strictly":"",min:1,max:999999999},on:{blur:function(n){return e.blurNum(n,t)},change:e.handleChange},model:{value:t.memberCount,callback:function(n){e.$set(t,"memberCount",n)},expression:"item.memberCount"}}):e._e(),e.checked&&e.checkedClerks.includes(t.clerkId)?n("span",{staticClass:"p-l-10"},[e._v(" 人")]):e._e()],1)]}))],2)],1),n("div",{staticClass:"flex flex-space-between m-t-20"},[n("div",{staticClass:"font-14 color-909399"},[e._v("最多分配会员 5000 人")]),n("div",{staticClass:"font-14 color-606266"},[e._v("\n 分配总数 "),n("span",{class:[0!=e.totalPeople&&e.totalPeople!=e.assignPeople?"color-f5222d":"color-2f54eb"]},[e._v(e._s(e.totalPeople))]),e._v(" 人\n ")])])])]),n("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:e.toCancel}},[e._v("取消")]),n("el-button",{attrs:{disabled:e.totalPeople!=e.assignPeople,loading:e.loadBtn,type:"primary"},on:{click:function(t){return e.submitForm("ruleForm")}}},[e._v("确定")])],1)])},h=[],g=(n("6762"),n("2fdb"),n("456d"),n("c5f6"),n("d157")),b=n("d11a"),m=n("5b4e"),v=n("5c96"),k={errorMsg:function(e){var t=window.location.origin;if("0000"!=e.code){if("0003"==e.code)return window.location.href=t+"/haoban-4/#/login",!1;if(10==e.code)return window.location.href=t+"/haoban-4/#/index",!1;v["Message"].error({duration:1e3,message:e.message||"接口异常"})}}},w=b["a"].saveAssign,C=b["a"].getMemberCount,I=b["a"].getClerkList,x={components:{},props:{brandId:{type:String,default:function(){return""}},clerkId:{type:String,default:function(){return""}},searchParams:{type:String,default:function(){return""}},editRow:{type:Object,default:function(){return{}}},multipleData:{type:[Array,Object],default:function(){return[]}},chooseAll:{type:[String,Number],default:function(){return"0"}},departObj:{type:Object,default:function(){return{departmentId:"",departmentName:"",wxDepartmentId:"",parentId:"",isStore:"",staffCount:"",bindFlag:"",loading:!1}}}},data:function(){return{staffName:localStorage.getItem("haoBanUser")?JSON.parse(localStorage.getItem("haoBanUser")).staffName:"",dialogVisible:!0,unbindFlag:!1,checked:!1,checkAll:!1,isIndeterminate:!1,clerkOptions:[],checkedClerks:[],totalPeople:0,assignPeople:0,loadBtn:!1}},mounted:function(){var e=this;Object.keys(e.departObj).length&&(e.getClerkData(),e.setNum())},methods:{changeCell:function(e,t){var n=this;n.$nextTick((function(){if(e){if(n.checkedClerks.length==n.assignPeople)return n.clerkOptions.forEach((function(e,t){n.checkedClerks.includes(e.clerkId)||(e.disabled=!0)})),!1}else n.clerkOptions.forEach((function(e,t){e.disabled=!e.bindFlag}))}))},changeHand:function(){var e=Object(s["a"])(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(n=this,t){e.next=8;break}return e.next=4,n.calcNum();case 4:return e.next=6,n.totalCalc();case 6:e.next=9;break;case 8:n.totalCalc();case 9:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}(),handleChange:function(){var e=this;e.totalCalc()},blurNum:function(e,t){var n=this;t.memberCount||(t.memberCount=1),n.totalCalc()},totalCalc:function(){var e=this,t=0;e.clerkOptions.forEach((function(n,a){e.checkedClerks.includes(n.clerkId)&&(t+=n.memberCount)})),e.totalPeople=t},handleCheckedChange:function(){var e=Object(s["a"])(regeneratorRuntime.mark((function e(t){var n,a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(n=this,a=t.length,n.checkAll=a===n.clerkOptions.length,n.isIndeterminate=a>0&&a<n.clerkOptions.length,n.checked){e.next=11;break}return e.next=7,n.calcNum();case 7:return e.next=9,n.totalCalc();case 9:e.next=12;break;case 11:n.totalCalc();case 12:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}(),handleCheckAllChange:function(){var e=Object(s["a"])(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(n=this,n.checkedClerks=t?n.clerkOptions.map((function(e){return e.clerkId})):[],n.isIndeterminate=!1,n.checked){e.next=10;break}return e.next=6,n.calcNum();case 6:return e.next=8,n.totalCalc();case 8:e.next=11;break;case 10:n.totalCalc();case 11:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}(),calcNum:function(){var e=this;if(!e.checkedClerks.length)return!1;var t=Math.floor(e.assignPeople/e.checkedClerks.length),n=e.assignPeople%e.checkedClerks.length,a=[];e.clerkOptions.forEach((function(n,r){n.memberCount=t,e.checkedClerks.includes(n.clerkId)&&a.push(r)})),e.clerkOptions.forEach((function(e,t){a.forEach((function(a,r){a==t&&r<n&&(e.memberCount=e.memberCount+1)}))}))},getClerkData:function(){var e=this,t={enterpriseId:e.brandId,wxEnterpriseRelatedId:e.wxEnterpriseRelatedId,storeId:e.departObj.storeId};I(t).then((function(t){"0000"==t.code?(t.result.forEach((function(t){t.memberCount=1,t.disabled=!t.bindFlag,t.bindFlag||(e.unbindFlag=!0)})),e.clerkOptions=t.result||[]):k.errorMsg(t)})).catch((function(e){}))},getMemberData:function(){var e=this,t={enterpriseId:e.brandId,wxEnterpriseRelatedId:e.wxEnterpriseRelatedId,storeId:e.departObj.storeId,clerkId:e.clerkId,keyword:e.searchParams};C(t).then((function(t){"0000"==t.code?e.assignPeople=t.result||[]:k.errorMsg(t)})).catch((function(e){}))},resetData:function(){var e=this;e.checkedClerks=[],e.totalPeople=0,e.assignPeople=0,e.checked=!1},toCancel:function(){var e=this;e.resetData(),e.$emit("closeText")},handleClose:function(e){var t=this;t.resetData(),t.$emit("closeText")},submitForm:Object(g["a"])((function(){var e=this;e.postSave()}),300),postSave:function(){var e=this,t=[];e.clerkOptions.forEach((function(n){e.checkedClerks.includes(n.clerkId)&&0!=n.memberCount&&t.push(n)})),e.loadBtn=!0;var n={enterpriseId:e.brandId,chooseAll:e.chooseAll,storeId:e.departObj.storeId,clerkId:e.clerkId,keyword:e.searchParams,memberIds:1==e.chooseAll?"":Object.keys(e.editRow).length?e.editRow.memberId:e.multipleData.map((function(e){return e.memberId})).join(","),clerkIds:JSON.stringify(t),staffName:e.staffName};w(n).then((function(t){e.loadBtn=!1,m["a"].showmsg("操作成功","success"),e.resetData(),e.$emit("submitText")})).catch((function(t){e.loadBtn=!1}))},setNum:function(){var e=this;Object.keys(e.editRow).length?e.assignPeople=1:0==e.chooseAll?e.assignPeople=e.multipleData.length:e.getMemberData()}},watch:{departObj:function(e){var t=this;Object.keys(e).length&&(t.getClerkData(),t.setNum())}}},S=x,y=(n("d60b"),Object(u["a"])(S,f,h,!1,null,"cfa01dee",null)),_=y.exports,O=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"depart-list-body"},[n("div",{staticClass:"depart-name-wrap m-b-20"},[n("div",{staticClass:"font-14 color-303133"},[e._v("门店 "+e._s(e.total)+" 家")]),n("div",{staticClass:"flex flex-space-between m-t-20"},[n("div",[n("el-input",{staticClass:"w-274",attrs:{placeholder:"请输入门店名称/代码",maxlength:"50","prefix-icon":"el-icon-search",clearable:""},on:{clear:e.clearInput},nativeOn:{keyup:function(t){return function(t){return e.toInput(t,e.searchInput)}(t)}},model:{value:e.searchInput,callback:function(t){e.searchInput=t},expression:"searchInput"}})],1),n("div",{staticClass:"to-log flex m-t-20"})])]),n("div",{staticClass:"depart-children-list border-box m-t-18"},[n("div",{staticClass:"m-t-20"},[n("el-table",{ref:"multipleTable",staticClass:"select-table",style:{width:"100%"},attrs:{data:e.tableData,"tooltip-effect":"dark"}},[n("el-table-column",{staticClass:"cursor-pointer",attrs:{label:"门店名称","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.storeName||"--"))]}}])}),n("el-table-column",{staticClass:"cursor-pointer",attrs:{prop:"",label:"门店类型","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(e.storeType[t.row.storeType]||"--"))]}}])}),n("el-table-column",{staticClass:"cursor-pointer",attrs:{prop:"",label:"门店分组","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.storeGroupName||"--")+"\n ")]}}])}),n("el-table-column",{attrs:{prop:"",label:"操作","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-button",{attrs:{type:"text"},on:{click:function(n){return e.showMember(t.row)}}},[e._v("查看会员")])]}}])})],1),0!=e.tableData.length?n("div",{staticClass:"block common-wrap__page text-right m-t-24"},[n("dm-pagination",{attrs:{background:"","current-page":e.currentPage,"page-sizes":[20,40,60,80],"page-size":e.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1):e._e()],1)])])},D=[],j=b["a"].getStoreList,R={name:"StoreList",components:{},props:{brandId:{type:String,default:function(){return""}},departObj:{type:Object,default:function(){return{departmentId:"",departmentName:"",wxDepartmentId:"",parentId:"",isStore:"",staffCount:"",bindFlag:""}}}},data:function(){return{nameVisible:!1,departmentName:this.departObj.departmentName||"",searchInput:"",storeType:{0:"自营",1:"联营",2:"代理(加盟)",3:"代销",4:"托管"},currentPage:1,pageSize:20,total:0,tableData:[]}},mounted:function(){var e=this;Object.keys(e.departObj)&&(e.currentPage=1,e.getTableList())},methods:{showMember:function(e){var t=this;t.$emit("getStore",e)},toInput:Object(g["a"])((function(){var e=this;e.currentPage=1,e.getTableList()}),500),clearInput:function(){var e=this;e.currentPage=1,e.getTableList()},handleSizeChange:function(e){var t=this;t.currentPage=1,t.pageSize=e,t.getTableList()},handleCurrentChange:function(e){var t=this;t.currentPage=e,t.getTableList()},getTableList:function(){var e=this,t={departmentId:e.departObj.storeGroupId,enterpriseId:e.brandId,searchName:e.searchInput||"",pageNum:e.currentPage,pageSize:e.pageSize};j(t).then((function(t){var n=t.data;if(1==n.errorCode)return e.tableData=n.result.list||[],e.total=n.result.total,!1;k.errorMsg(n)})).catch((function(t){e.$message.error({duration:1e3,message:t.message})}))}},watch:{departObj:function(e,t){var n=this;Object.keys(e)&&(n.currentPage=1,n.getTableList())},brandId:function(e){var t=this;e&&(t.searchInput="")}}},N=R,T=(n("ea61"),Object(u["a"])(N,O,D,!1,null,"e269d89c",null)),F=T.exports,P=b["a"].getGroupList,E=b["a"].getMemberList,A=b["a"].getNavChain,L=b["a"].getAssignStatus,M=b["a"].getClerkList,G={name:"CustomerAssignPage",components:{orgTree:p,customerAssign:_,storeList:F},props:{brandId:{type:String,default:function(){return""}},tabType:{type:String,default:function(){return"1"}},activeGroupId:{type:String,default:function(){return""}}},data:function(){return{projectName:"",wxEnterpriseId:localStorage.getItem("haoBanUser")?JSON.parse(localStorage.getItem("haoBanUser")).wxEnterpriseId:"",departObj:{},gicData:[],clerkId:"0",searchInput:"",clerkOptions:[],tableData:[],currentPage:1,pageSize:20,total:0,loading:!1,selectRadio:0,multipleSelection:[],assignShow:!1,showMember:!1,storeObj:{},gicDataCopy:[],chainData:[],navData:[]}},mounted:function(){var e=this;e.$emit("showTab","/customer-assign"),e.brandId&&e.getGicData(e.brandId)},methods:{setParent:function(){var e=Object(s["a"])(regeneratorRuntime.mark((function e(t,n){var a,r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:a=this,r=0;case 2:if(!(r<n.length)){e.next=11;break}if(t.parentGroupId!=n[r].storeGroupId){e.next=8;break}if(n[r].expand=!0,0==n[r].parentGroupId){e.next=8;break}return e.next=8,a.setParent(n[r],n);case 8:r++,e.next=2;break;case 11:case"end":return e.stop()}}),e,this)})));function t(t,n){return e.apply(this,arguments)}return t}(),changeDepart:function(){var e=Object(s["a"])(regeneratorRuntime.mark((function e(t){var n,a,r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(n=this,!t.storeId){e.next=3;break}return e.abrupt("return",!1);case 3:n.departObj=t,n.showMember=!1,a=JSON.parse(JSON.stringify(n.gicDataCopy)),r=0;case 7:if(!(r<a.length)){e.next=16;break}if(n.departObj.parentGroupId!=a[r].storeGroupId){e.next=13;break}if(a[r].expand=!0,0==a[r].parentGroupId){e.next=13;break}return e.next=13,n.setParent(a[r],a);case 13:r++,e.next=7;break;case 16:return e.next=18,n.treeData(JSON.parse(JSON.stringify(a)));case 18:n.gicData=e.sent,n.gicData[0].expand=!0;case 20:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}(),getStore:function(e){var t=this;t.storeObj=e,t.showMember=!0,t.getClerkData(),t.getTableList(),t.toGetNavData()},assignStatus:function(){var e=Object(s["a"])(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=this,e.abrupt("return",new Promise((function(e,n){var a={storeId:t.storeObj.storeId};L(a).then((function(t){"0000"!=t.code?(k.errorMsg(t),e(!1)):e(t.result)})).catch((function(t){e(!1)}))})));case 2:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),closeText:function(){var e=this;e.assignShow=!1,e.selectRadio=0,e.multipleSelection=[],e.editRow={},e.$refs.multipleTable.clearSelection()},submitText:function(){var e=this;e.selectRadio=0,e.multipleSelection=[],e.assignShow=!1,e.$refs.multipleTable.clearSelection(),e.currentPage=1,e.getTableList(),e.$alert("会员分配中,请稍候查看","",{confirmButtonText:"确定",callback:function(t){e.currentPage=1,e.getTableList();var n=setTimeout((function(){e.currentPage=1,e.getTableList(),clearTimeout(n)}),1e3)}})},toInput:Object(g["a"])((function(){var e=this;e.currentPage=1,e.getTableList()}),500),clearSearch:function(){var e=this;e.currentPage=1,e.getTableList()},getSelectData:function(e){var t=this;t.departObj=e,t.selectRadio=0,t.showMember=!1,t.storeObj={},t.currentPage=1,t.tableData=[],t.clerkOptions=[],t.clerkId="0",t.searchInput="",t.multipleSelection=[]},handleSelectionChange:function(e){this.multipleSelection=e},handleCommand:function(e){this.selectRadio=e},toAssignMember:function(){var e=Object(s["a"])(regeneratorRuntime.mark((function e(t,n){var a,r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return a=this,e.next=3,a.assignStatus();case 3:if(r=e.sent,!r){e.next=7;break}return a.$message.error({duration:1e3,message:"会员正在分配中,请稍后再试"}),e.abrupt("return",!1);case 7:a.editRow=n,a.selectRadio=0,a.multipleSelection=[],a.$refs.multipleTable.clearSelection(),a.assignShow=!0;case 12:case"end":return e.stop()}}),e,this)})));function t(t,n){return e.apply(this,arguments)}return t}(),toAssign:function(){var e=Object(s["a"])(regeneratorRuntime.mark((function e(){var t,n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=this,t.editRow={},e.next=4,t.assignStatus();case 4:if(n=e.sent,!n){e.next=8;break}return t.$message.error({duration:1e3,message:"会员正在分配中,请稍后再试"}),e.abrupt("return",!1);case 8:if(t.multipleSelection.length){e.next=11;break}return t.$message.error({duration:1e3,message:"请选择会员"}),e.abrupt("return",!1);case 11:t.assignShow=!0;case 12:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),treeData:function(){var e=Object(s["a"])(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=t.filter((function(e){var n=t.filter((function(t){return e.storeGroupId==t.parentGroupId}));return n.length>0?(e.hasSonNode=!0,e.children=n):(e.hasSonNode=!1,e.children=[]),0==e.parentGroupId})),e.abrupt("return",n);case 2:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}(),getGicData:function(){var e=this,t={enterpriseId:e.brandId,wxEnterpriseRelatedId:e.wxEnterpriseRelatedId};P(t).then(function(){var t=Object(s["a"])(regeneratorRuntime.mark((function t(n){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!n.result.length){t.next=6;break}return n.result.forEach((function(t){t.loading=!1,t.expand=!1,t.children=[],t.label=t.storeGroupName,0==t.parentGroupId&&(t.expand=!0,e.departObj=t)})),e.gicDataCopy=JSON.parse(JSON.stringify(n.result)),t.next=5,e.treeData(JSON.parse(JSON.stringify(n.result)));case 5:e.gicData=t.sent;case 6:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(e){}))},changeCondition:function(){var e=this;e.currentPage=1,e.getTableList()},handleSizeChange:function(e){var t=this;t.currentPage=1,t.pageSize=e,t.getTableList()},handleCurrentChange:function(e){var t=this;t.currentPage=e,t.getTableList()},toGetNavData:function(){var e=this,t={departmentId:e.storeObj.storeGroupId};A(t).then((function(t){if("0000"==t.code)return e.navData=t.result||[],e.navData.push(e.storeObj),!1;k.errorMsg(t)})).catch((function(e){}))},getClerkData:function(){var e=this,t={enterpriseId:e.brandId,wxEnterpriseRelatedId:e.wxEnterpriseRelatedId,storeId:e.storeObj.storeId};M(t).then((function(t){e.clerkOptions=t.result||[]})).catch((function(e){}))},getTableList:function(){var e=this,t={enterpriseId:e.brandId,wxEnterpriseRelatedId:e.wxEnterpriseRelatedId,pageNum:e.currentPage,pageSize:e.pageSize,storeId:e.storeObj.storeId,clerkId:e.clerkId,keyword:e.searchInput};E(t).then((function(t){e.tableData=t.result.result||[],e.total=t.result.totalCount})).catch((function(e){}))}},watch:{brandId:function(e,t){var n=this;e&&(n.showMember=!1,n.currentPage=1,n.tableData=[],n.clerkOptions=[],n.clerkId="0",n.searchInput="",n.selectRadio=0,n.multipleSelection=[],n.storeObj={},n.getGicData(n.brandId))}}},z=G,$=(n("bf6a"),Object(u["a"])(z,a,r,!1,null,"45949c0a",null));t["default"]=$.exports},"28a5":function(e,t,n){"use strict";var a=n("aae3"),r=n("cb7c"),s=n("ebd6"),o=n("0390"),i=n("9def"),c=n("5f1b"),l=n("520a"),u=n("79e5"),d=Math.min,p=[].push,f="split",h="length",g="lastIndex",b=4294967295,m=!u((function(){RegExp(b,"y")}));n("214f")("split",2,(function(e,t,n,u){var v;return v="c"=="abbc"[f](/(b)*/)[1]||4!="test"[f](/(?:)/,-1)[h]||2!="ab"[f](/(?:ab)*/)[h]||4!="."[f](/(.?)(.?)/)[h]||"."[f](/()()/)[h]>1||""[f](/.?/)[h]?function(e,t){var r=String(this);if(void 0===e&&0===t)return[];if(!a(e))return n.call(r,e,t);var s,o,i,c=[],u=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),d=0,f=void 0===t?b:t>>>0,m=new RegExp(e.source,u+"g");while(s=l.call(m,r)){if(o=m[g],o>d&&(c.push(r.slice(d,s.index)),s[h]>1&&s.index<r[h]&&p.apply(c,s.slice(1)),i=s[0][h],d=o,c[h]>=f))break;m[g]===s.index&&m[g]++}return d===r[h]?!i&&m.test("")||c.push(""):c.push(r.slice(d)),c[h]>f?c.slice(0,f):c}:"0"[f](void 0,0)[h]?function(e,t){return void 0===e&&0===t?[]:n.call(this,e,t)}:n,[function(n,a){var r=e(this),s=void 0==n?void 0:n[t];return void 0!==s?s.call(n,r,a):v.call(String(r),n,a)},function(e,t){var a=u(v,e,this,t,v!==n);if(a.done)return a.value;var l=r(e),p=String(this),f=s(l,RegExp),h=l.unicode,g=(l.ignoreCase?"i":"")+(l.multiline?"m":"")+(l.unicode?"u":"")+(m?"y":"g"),k=new f(m?l:"^(?:"+l.source+")",g),w=void 0===t?b:t>>>0;if(0===w)return[];if(0===p.length)return null===c(k,p)?[p]:[];var C=0,I=0,x=[];while(I<p.length){k.lastIndex=m?I:0;var S,y=c(k,m?p:p.slice(I));if(null===y||(S=d(i(k.lastIndex+(m?0:I)),p.length))===C)I=o(p,I,h);else{if(x.push(p.slice(C,I)),x.length===w)return x;for(var _=1;_<=y.length-1;_++)if(x.push(y[_]),x.length===w)return x;I=C=S}}return x.push(p.slice(C)),x}]}))},"2fdb":function(e,t,n){"use strict";var a=n("5ca1"),r=n("d2c8"),s="includes";a(a.P+a.F*n("51479")(s),"String",{includes:function(e){return!!~r(this,e,s).indexOf(e,arguments.length>1?arguments[1]:void 0)}})},51479:function(e,t,n){var a=n("2b4c")("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[a]=!1,!"/./"[e](t)}catch(r){}}return!0}},"59b7":function(e,t,n){},"5b4e":function(e,t,n){"use strict";var a=n("5c96");t["a"]={showmsg:function(e,t){Object(a["Message"])({duration:1e3,message:e||"接口异常",type:t})}}},6762:function(e,t,n){"use strict";var a=n("5ca1"),r=n("c366")(!0);a(a.P,"Array",{includes:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}}),n("9c6c")("includes")},"71f6":function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));n("ac6a"),n("456d");var a=n("b775");function r(e,t){e=e||{};var n=Object.keys(e);return n.forEach((function(n){var r=e[n];"string"===typeof r&&(r={url:r}),r.url="".concat(t).concat(r.url),e[n]=function(e){return Object(a["a"])(r,e)}})),e}},"817e":function(e,t,n){},9767:function(e,t,n){},"9b5b":function(e,t,n){"use strict";var a=n("9767"),r=n.n(a);r.a},bf6a:function(e,t,n){"use strict";var a=n("59b7"),r=n.n(a);r.a},c7ac:function(e,t,n){},d11a:function(e,t,n){"use strict";var a=n("71f6"),r={getGroupList:"/department-list",getStoreList:"/store-list",getAssignStatus:"/app-distribute-status",getNavChain:"/get-chain",getMemberList:{url:"/app-get-member-info-list",method:"post",useFormData:!0},getClerkList:"/clerk-list",getMemberCount:"",saveAssign:{url:"/",method:"post",useFormData:!0},getMemberData:"",getServiceData:"",saveSortMember:{url:"/",method:"post",useFormData:!0,useIntercept:!1},getShowSet:"",saveShowSet:{url:"",method:"post",useFormData:!0,useIntercept:!1},getCustomerSet:"",saveCustomerSet:{url:"",method:"post",useFormData:!0,useIntercept:!1},getGroupData:"",getClassifyData:"",postSortGroup:{url:"/",method:"post",useFormData:!0,useIntercept:!1},getSyncMemberData:"",saveSync:{url:"/",method:"post",useFormData:!0,useIntercept:!1},saveVisiable:{url:"/",method:"post",useFormData:!0,useIntercept:!1},getTagClassify:"",addClassify:"",delClassify:{url:"/",method:"post",useFormData:!0,useIntercept:!1},getClerkTag:"",addClerkTag:"",delClerkTag:{url:"/",method:"post",useFormData:!0,useIntercept:!1}};r=Object(a["a"])(r,"/hb-manage-web"),t["a"]=r},d157:function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return r})),n.d(t,"c",(function(){return s}));n("c5f6"),n("a481"),n("28a5"),n("6b54");function a(e,t){var n,a=t||200;return function(){var t=this,r=arguments;n&&clearTimeout(n),n=setTimeout((function(){n=null,e.apply(t,r)}),a)}}function r(e,t){var n,a,r=t||200;return function(){var t=this,s=arguments,o=+new Date;n&&o-n<r?(clearTimeout(a),a=setTimeout((function(){n=o,e.apply(t,s)}),r)):(n=o,e.apply(t,s))}}function s(e){return e=e.replace(/\uD83C[\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F]|[\uD800-\uDBFF]|[\uDC00-\uDFFF]|[^\u0020-\u007E\u00A0-\u00BE\u2E80-\uA4CF\uF900-\uFAFF\uFE30-\uFE4F\uFF00-\uFFEF\u0080-\u009F\u2000-\u201f\u2026\u2022\u20ac\r\n]/g,""),unescape(escape(e).replace(/\%uD.{3}/g,""))}},d2c8:function(e,t,n){var a=n("aae3"),r=n("be13");e.exports=function(e,t,n){if(a(t))throw TypeError("String#"+n+" doesn't accept regex!");return String(r(e))}},d60b:function(e,t,n){"use strict";var a=n("817e"),r=n.n(a);r.a},ea61:function(e,t,n){"use strict";var a=n("c7ac"),r=n.n(a);r.a}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-0644f611"],{"0973":function(t,i,e){t.exports=e.p+"img/error_404.bf587478.svg"},"1c41":function(t,i,e){t.exports=e.p+"img/error_500.ed0cba44.svg"},"28a5":function(t,i,e){"use strict";var n=e("aae3"),s=e("cb7c"),r=e("ebd6"),a=e("0390"),c=e("9def"),l=e("5f1b"),u=e("520a"),o=e("79e5"),d=Math.min,f=[].push,h="split",g="length",p="lastIndex",v=4294967295,m=!o((function(){RegExp(v,"y")}));e("214f")("split",2,(function(t,i,e,o){var b;return b="c"=="abbc"[h](/(b)*/)[1]||4!="test"[h](/(?:)/,-1)[g]||2!="ab"[h](/(?:ab)*/)[g]||4!="."[h](/(.?)(.?)/)[g]||"."[h](/()()/)[g]>1||""[h](/.?/)[g]?function(t,i){var s=String(this);if(void 0===t&&0===i)return[];if(!n(t))return e.call(s,t,i);var r,a,c,l=[],o=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),d=0,h=void 0===i?v:i>>>0,m=new RegExp(t.source,o+"g");while(r=u.call(m,s)){if(a=m[p],a>d&&(l.push(s.slice(d,r.index)),r[g]>1&&r.index<s[g]&&f.apply(l,r.slice(1)),c=r[0][g],d=a,l[g]>=h))break;m[p]===r.index&&m[p]++}return d===s[g]?!c&&m.test("")||l.push(""):l.push(s.slice(d)),l[g]>h?l.slice(0,h):l}:"0"[h](void 0,0)[g]?function(t,i){return void 0===t&&0===i?[]:e.call(this,t,i)}:e,[function(e,n){var s=t(this),r=void 0==e?void 0:e[i];return void 0!==r?r.call(e,s,n):b.call(String(s),e,n)},function(t,i){var n=o(b,t,this,i,b!==e);if(n.done)return n.value;var u=s(t),f=String(this),h=r(u,RegExp),g=u.unicode,p=(u.ignoreCase?"i":"")+(u.multiline?"m":"")+(u.unicode?"u":"")+(m?"y":"g"),x=new h(m?u:"^(?:"+u.source+")",p),_=void 0===i?v:i>>>0;if(0===_)return[];if(0===f.length)return null===l(x,f)?[f]:[];var w=0,C=0,S=[];while(C<f.length){x.lastIndex=m?C:0;var k,y=l(x,m?f:f.slice(C));if(null===y||(k=d(c(x.lastIndex+(m?0:C)),f.length))===w)C=a(f,C,g);else{if(S.push(f.slice(w,C)),S.length===_)return S;for(var E=1;E<=y.length-1;E++)if(S.push(y[E]),S.length===_)return S;C=w=k}}return S.push(f.slice(w)),S}]}))},"2de8":function(t,i,e){"use strict";var n=e("cd38"),s=e.n(n);s.a},"4cf1":function(t,i,e){"use strict";e.r(i);var n=function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("div",{staticStyle:{background:"#f0f2f5","margin-top":"-20px",height:"100vh"}},[e("div",{staticClass:"wscn-http-404"},[e("div",{staticClass:"pic-404"},[e("img",{staticClass:"pic-404__parent",attrs:{src:t.imgSrc,alt:"404"}})]),e("div",{staticClass:"bullshit"},[e("div",{staticClass:"bullshit__headline"},[t._v(t._s(t.message))]),e("a",{staticClass:"bullshit__return-home",attrs:{href:"#/contactsList"}},[t._v("返回首页")])])])])},s=[],r=(e("28a5"),e("d1ea")),a=e.n(r),c=e("0973"),l=e.n(c),u=e("1c41"),o=e.n(u),d={name:"ErrPage",data:function(){return{imgSrc:"",message:"",srcList:{403:a.a,404:l.a,500:o.a},msgList:{403:"抱歉,你无权访问该页面",404:"抱歉,你访问的页面不存在",500:"抱歉,服务器出错了"}}},mounted:function(){var t=this,i=t.$route.path.split("/")[1];t.imgSrc=t.srcList[i],t.message=t.msgList[i]}},f=d,h=(e("2de8"),e("2877")),g=Object(h["a"])(f,n,s,!1,null,"0d9d0575",null);i["default"]=g.exports},cd38:function(t,i,e){},d1ea:function(t,i,e){t.exports=e.p+"img/error_403.829774f4.svg"}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-0b34723d"],{"0d0f":function(t,e,a){},"5b4e6":function(t,e,a){"use strict";var n=a("5c96");e["a"]={showmsg:function(t,e){Object(n["Message"])({duration:1e3,message:t||"接口异常",type:e})}}},"71f6":function(t,e,a){"use strict";a.d(e,"a",(function(){return s}));a("ac6a"),a("456d");var n=a("b775");function s(t,e){t=t||{};var a=Object.keys(t);return a.forEach((function(a){var s=t[a];"string"===typeof s&&(s={url:s}),s.url="".concat(e).concat(s.url),t[a]=function(t){return Object(n["a"])(s,t)}})),t}},b5b0: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:"common-app-right"},[a("div",{staticClass:"clerk-tag-body flex"},[a("div",{staticClass:"clerk-tag-left border-box"},[a("div",{staticClass:"clerk-tag-add"},[a("el-button",{attrs:{icon:"el-icon-plus"}},[t._v("新建分类")])],1)]),a("div",{staticClass:"clerk-tag-right p-20 border-box"},[a("div",{staticClass:"clerk-tag-search"},[a("div",{staticClass:"flex flex-space-between"},[a("div",[a("el-input",{staticStyle:{width:"298px"},attrs:{placeholder:"请输入标签名称",maxlength:"50","prefix-icon":"el-icon-search",clearable:""},on:{clear:t.clearInput},nativeOn:{keyup:function(e){return function(e){return t.toInput(e)}(e)}},model:{value:t.searchVal,callback:function(e){t.searchVal=e},expression:"searchVal"}})],1),a("div",[a("el-button",{attrs:{type:"primary"}},[t._v("新建标签")])],1)])]),a("div",[a("el-table",{staticStyle:{width:"100%"},attrs:{data:t.tagsData}},[a("el-table-column",{attrs:{prop:"",label:"",width:"100","class-name":"move-row-cell"}},[[a("span",{staticClass:"font-22 iconfont icontuozhuaiopen color-c4c6cf",staticStyle:{cursor:"move"}})]],2),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.name||"--"))]}}])}),a("el-table-column",{attrs:{prop:"",label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text"},on:{click:function(a){return t.toEditTag(e.$index,e.row)}}},[t._v("编辑")]),a("el-button",{attrs:{type:"text"},on:{click:function(a){return t.toEditVisiable(e.$index,e.row)}}},[t._v("编辑可见范围")]),a("el-button",{attrs:{type:"text"},on:{click:function(a){return t.toDelTag(e.$index,e.row)}}},[t._v("删除")])]}}])})],1)],1)])])])},s=[],r=a("d11a"),o=a("d157"),u=a("5b4e6"),i=r["a"].getTagClassify,c=r["a"].getClerkTag,l=r["a"].delClerkTag,f={name:"ClerkTag",components:{},data:function(){return{currentClassify:"",tagsClassifyData:[],tagsData:[],showTagDialog:!1,showTagVisiable:!1}},mounted:function(){var t=this;t.getClassifyList()},methods:{toEditTag:function(t,e){var a=this;a.showTagDialog=!0},toEditVisiable:function(t,e){var a=this;a.showTagVisiable=!0},refreshTagData:function(){var t=this;t.getTableList()},toDelTag:function(t,e){var a=this;a.$confirm("是否要删除选中的标签?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){a.delTagData(e.tagId)})).catch((function(){}))},delTagData:function(t){var e=this,a={tagId:t};l(a).then((function(t){e.getTableList(),"0000"==t.code?u["a"].showmsg("删除成功","success"):u["a"].showmsg(t.message||"接口异常","warning")})).catch((function(t){}))},toInput:Object(o["a"])((function(){var t=this;t.getTableList()}),500),clearInput:function(){var t=this;t.getTableList()},getTableList:function(){var t=this;t.loading=!0;var e={};c(e).then((function(e){t.tagsData=e.result||[]})).catch((function(t){}))},getClassifyList:function(){var t=this;t.loading=!0;var e={};i(e).then((function(e){t.tagsClassifyData=e.result||[],e.result&&e.result.length&&(t.currentClassify=e.result[0].classifyId,t.getTableList())})).catch((function(t){}))}},watch:{}},d=f,g=(a("f203"),a("2877")),p=Object(g["a"])(d,n,s,!1,null,"6d7db23d",null);e["default"]=p.exports},d11a:function(t,e,a){"use strict";var n=a("71f6"),s={getGroupList:"/department-list",getStoreList:"/store-list",getAssignStatus:"/app-distribute-status",getNavChain:"/get-chain",getMemberList:{url:"/app-get-member-info-list",method:"post",useFormData:!0},getClerkList:"/clerk-list",getMemberCount:"",saveAssign:{url:"/",method:"post",useFormData:!0},getMemberData:"",getServiceData:"",saveSortMember:{url:"/",method:"post",useFormData:!0,useIntercept:!1},getShowSet:"",saveShowSet:{url:"",method:"post",useFormData:!0,useIntercept:!1},getCustomerSet:"",saveCustomerSet:{url:"",method:"post",useFormData:!0,useIntercept:!1},getGroupData:"",getClassifyData:"",postSortGroup:{url:"/",method:"post",useFormData:!0,useIntercept:!1},getSyncMemberData:"",saveSync:{url:"/",method:"post",useFormData:!0,useIntercept:!1},saveVisiable:{url:"/",method:"post",useFormData:!0,useIntercept:!1},getTagClassify:"",addClassify:"",delClassify:{url:"/",method:"post",useFormData:!0,useIntercept:!1},getClerkTag:"",addClerkTag:"",delClerkTag:{url:"/",method:"post",useFormData:!0,useIntercept:!1}};s=Object(n["a"])(s,"/hb-manage-web"),e["a"]=s},d157:function(t,e,a){"use strict";a.d(e,"a",(function(){return n})),a.d(e,"b",(function(){return s})),a.d(e,"c",(function(){return r}));a("c5f6"),a("a481"),a("28a5"),a("6b54");function n(t,e){var a,n=e||200;return function(){var e=this,s=arguments;a&&clearTimeout(a),a=setTimeout((function(){a=null,t.apply(e,s)}),n)}}function s(t,e){var a,n,s=e||200;return function(){var e=this,r=arguments,o=+new Date;a&&o-a<s?(clearTimeout(n),n=setTimeout((function(){a=o,t.apply(e,r)}),s)):(a=o,t.apply(e,r))}}function r(t){return t=t.replace(/\uD83C[\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F]|[\uD800-\uDBFF]|[\uDC00-\uDFFF]|[^\u0020-\u007E\u00A0-\u00BE\u2E80-\uA4CF\uF900-\uFAFF\uFE30-\uFE4F\uFF00-\uFFEF\u0080-\u009F\u2000-\u201f\u2026\u2022\u20ac\r\n]/g,""),unescape(escape(t).replace(/\%uD.{3}/g,""))}},f203:function(t,e,a){"use strict";var n=a("0d0f"),s=a.n(n);s.a}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-0be39b5a","chunk-784402ec"],{"0fd6":function(e,t,n){"use strict";var r=n("cf90"),a=n.n(r);a.a},"28a5":function(e,t,n){"use strict";var r=n("aae3"),a=n("cb7c"),i=n("ebd6"),o=n("0390"),s=n("9def"),c=n("5f1b"),u=n("520a"),l=n("79e5"),d=Math.min,p=[].push,h="split",f="length",m="lastIndex",v=4294967295,b=!l((function(){RegExp(v,"y")}));n("214f")("split",2,(function(e,t,n,l){var g;return g="c"=="abbc"[h](/(b)*/)[1]||4!="test"[h](/(?:)/,-1)[f]||2!="ab"[h](/(?:ab)*/)[f]||4!="."[h](/(.?)(.?)/)[f]||"."[h](/()()/)[f]>1||""[h](/.?/)[f]?function(e,t){var a=String(this);if(void 0===e&&0===t)return[];if(!r(e))return n.call(a,e,t);var i,o,s,c=[],l=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),d=0,h=void 0===t?v:t>>>0,b=new RegExp(e.source,l+"g");while(i=u.call(b,a)){if(o=b[m],o>d&&(c.push(a.slice(d,i.index)),i[f]>1&&i.index<a[f]&&p.apply(c,i.slice(1)),s=i[0][f],d=o,c[f]>=h))break;b[m]===i.index&&b[m]++}return d===a[f]?!s&&b.test("")||c.push(""):c.push(a.slice(d)),c[f]>h?c.slice(0,h):c}:"0"[h](void 0,0)[f]?function(e,t){return void 0===e&&0===t?[]:n.call(this,e,t)}:n,[function(n,r){var a=e(this),i=void 0==n?void 0:n[t];return void 0!==i?i.call(n,a,r):g.call(String(a),n,r)},function(e,t){var r=l(g,e,this,t,g!==n);if(r.done)return r.value;var u=a(e),p=String(this),h=i(u,RegExp),f=u.unicode,m=(u.ignoreCase?"i":"")+(u.multiline?"m":"")+(u.unicode?"u":"")+(b?"y":"g"),I=new h(b?u:"^(?:"+u.source+")",m),y=void 0===t?v:t>>>0;if(0===y)return[];if(0===p.length)return null===c(I,p)?[p]:[];var k=0,C=0,L=[];while(C<p.length){I.lastIndex=b?C:0;var x,w=c(I,b?p:p.slice(C));if(null===w||(x=d(s(I.lastIndex+(b?0:C)),p.length))===k)C=o(p,C,f);else{if(L.push(p.slice(k,C)),L.length===y)return L;for(var D=1;D<=w.length-1;D++)if(L.push(w[D]),L.length===y)return L;C=k=x}}return L.push(p.slice(k)),L}]}))},"29b6":function(e,t,n){"use strict";var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"nav-wrap border-box"},[n("el-breadcrumb",{attrs:{"separator-class":"el-icon-arrow-right"}},[e._l(e.navpath,(function(t,r){return[t.path?[n("el-breadcrumb-item",{key:"nav"+r,attrs:{to:{path:t.path}},on:{click:function(n){return e.changeRoute(t.path,t.relocation)}}},[n("span",{staticClass:"el-breadcrumb__inner is-link",on:{click:function(n){return e.changeRoute(t.path,t.relocation)}}},[e._v("\n "+e._s(t.name)+"\n ")])])]:[n("el-breadcrumb-item",{key:"nav"+r},[e._v(e._s(t.name))])]]}))],2)],1)},a=[],i={name:"NavPath",props:{navpath:{type:Array,default:function(){return[]}}},data:function(){return{projectName:"member"}},methods:{changeRoute:function(e,t){var n=this;t?window.location.href=e:n.$router.push(e)}}},o=i,s=(n("6b4b"),n("2877")),c=Object(s["a"])(o,r,a,!1,null,"2c2a2724",null);t["a"]=c.exports},"6b4b":function(e,t,n){"use strict";var r=n("76d4"),a=n.n(r);a.a},7133:function(e,t,n){"use strict";var r=n("a0b2"),a=n.n(r);a.a},"71f6":function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));n("ac6a"),n("456d");var r=n("b775");function a(e,t){e=e||{};var n=Object.keys(e);return n.forEach((function(n){var a=e[n];"string"===typeof a&&(a={url:a}),a.url="".concat(t).concat(a.url),e[n]=function(e){return Object(r["a"])(a,e)}})),e}},"76d4":function(e,t,n){},a088:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"menu-tree"},[n("ul",{staticClass:"first-menu"},[0==e.menuList.length?n("li",{staticClass:"no-data"},[e._v("暂无数据")]):e._e(),e._l(e.menuList,(function(t){return n("li",{key:t.menuId,class:["first-menu-item",{active:t.menuId==e.activeMenuId}],on:{click:function(n){return e.onMenuChange(t)}}},[e._v("\n "+e._s(t.menuName)+"\n ")])}))],2),n("div",{staticClass:"all-menu"},[n("el-tree",{ref:"menuList",attrs:{data:e.treeData,"show-checkbox":"","default-expand-all":"","node-key":"menuId","expand-on-click-node":!1,"check-on-click-node":!0,props:{label:"menuName"},"default-checked-keys":e.checkedId[e.activeMenuId]},on:{"node-click":e.onNodeClick,check:e.onNodeClick}})],1)])},a=[],i=(n("ac6a"),{name:"MenuTree",props:{menuList:Array,checkedId:Object},data:function(){return{activeMenuId:"",treeData:[]}},methods:{onMenuChange:function(e){this.activeMenuId=e?e.menuId:"",this.treeData=e?[e]:[]},onNodeClick:function(){this.onChange(this.$refs.menuList.getCheckedKeys())},getAllMenuId:function(e){var t=this,n=[];return e.forEach((function(e){n.push(e.menuId),Array.isArray(e.children)&&(n=n.concat(t.getAllMenuId(e.children)))})),n},onChange:function(e){var t={};t[this.activeMenuId]=e,this.$emit("change",Object.assign({},this.checkedId,t))}},watch:{checkedId:{deep:!0,handler:function(e){this.$refs.menuList.setCheckedKeys(e[this.activeMenuId]||[])}},menuList:{immediate:!0,handler:function(e){this.onMenuChange(e[0])}}}}),o=i,s=(n("0fd6"),n("2877")),c=Object(s["a"])(o,r,a,!1,null,"6d51b677",null);t["default"]=c.exports},a0b2:function(e,t,n){},a960:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticStyle:{height:"100%"}},[n("nav-crumb",{attrs:{navpath:e.bread}}),n("div",{staticClass:"edit-role"},[n("el-alert",{staticStyle:{width:"572px"},attrs:{type:"info",title:"拥有门店的权限,能进行一些门店日常业务,如打标签,完成话务等。必须是导购账号",closable:!1,"show-icon":""}}),n("el-form",{ref:"roleData",staticStyle:{"margin-top":"30px"},attrs:{model:e.roleData,rules:e.roleDataRule,"label-width":"135px"}},[n("el-form-item",{attrs:{label:"角色名称",prop:"roleName"}},[n("el-input",{staticStyle:{width:"510px"},attrs:{value:e.roleData.roleName,disabled:""}})],1),n("el-form-item",{attrs:{label:"应用小程序权限",prop:"menuIds"}},[n("el-radio-group",{staticClass:"specter",attrs:{size:"small"},model:{value:e.activeType,callback:function(t){e.activeType=t},expression:"activeType"}},e._l(e.tabList,(function(t){return n("el-radio-button",{key:t.appType,attrs:{label:t.appType}},[e._v(e._s(t.label))])})),1),n("menu-tree",{staticStyle:{"margin-top":"12px"},attrs:{"menu-list":e.getActiveMenuList(),"checked-id":e.getActiveCheckId()},on:{change:e.onCheckedChange}})],1),n("el-form-item",{attrs:{label:"资源范围",prop:"resourceCode"}},[n("div",{staticClass:"resource-list"},e._l(e.resourceList,(function(t){return n("div",{key:t.appId,staticClass:"resource-item"},[n("p",{staticClass:"app-name"},[e._v(e._s(t.appName))]),n("el-radio-group",{model:{value:e.roleData.resourceCode[t.appId],callback:function(n){e.$set(e.roleData.resourceCode,t.appId,n)},expression:"roleData.resourceCode[el.appId]"}},e._l(t.resourceList,(function(t){return n("el-radio",{key:t.resourceCode,attrs:{label:t.resourceCode}},[e._v(e._s(t.resourceName))])})),1)],1)})),0)]),n("el-form-item",{staticStyle:{"margin-top":"50px"}},[n("el-button",{attrs:{type:"primary",loading:e.loading},on:{click:e.onSave}},[e._v("保存")])],1)],1)],1)],1)},a=[],i=(n("28a5"),n("5df3"),n("ac6a"),n("96cf"),n("1da1")),o=n("29b6"),s=n("a088"),c=n("f286"),u=c["a"].resourceList,l=c["a"].menuList,d=c["a"].editRole,p=c["a"].roleDetail,h={name:"EditStoreRole",components:{navCrumb:o["a"],MenuTree:s["default"]},data:function(){var e=function(e,t,n){Array.isArray(t)&&0!=t.length&&!t.every((function(e){return 0==e.menuIds.length}))||n(new Error("请至少选择一个权限菜单")),n()};return{bread:[{path:"/store-admin-list",name:"门店角色"},{name:"编辑门店角色"}],loading:!1,wxEnterpriseId:"",roleData:{roleId:"",roleName:"",menuIds:[],resourceCode:{}},roleDataRule:{roleName:[{required:!0}],menuIds:[{required:!0,validator:e,trigger:"change"}],resourceCode:[{required:!0,message:"",trigger:"change"}]},activeType:3,tabList:[{label:"好办小程序",appType:3,menuList:[],checkedId:{}},{label:"小程序应用",appType:4,menuList:[],checkedId:{}}],resourceList:[]}},created:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){var t,n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t=this.$route.query.roleId,t){e.next=3;break}return e.abrupt("return",this.$router.go(-1));case 3:return n=JSON.parse(localStorage.getItem("haoBanUser")||"{}"),this.wxEnterpriseId=n.wxEnterpriseId,this.$emit("showAsideMenu",!1),e.next=8,this.initData();case 8:this.getRoleDetail(t);case 9:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),methods:{initData:function(){var e=this,t={wxEnterpriseId:this.wxEnterpriseId},n=[];return this.tabList.forEach((function(r){n.push(l(Object.assign({},t,{appType:r.appType,roleType:2})).then((function(t){r.menuList=e.flatDataToTree(t.result||[]),r.menuList.forEach((function(t){e.$set(r.checkedId,t.menuId,[])}))})))})),n.push(u().then((function(t){e.resourceList=t.result||[],e.resourceList.forEach((function(t){e.$set(e.roleData.resourceCode,t.appId,"")}))}))),Promise.all(n)},getRoleDetail:function(e){var t=this;function n(e,t){var r=[];return e.forEach((function(e){t.some((function(t){return t==e.menuId}))&&r.push(e.menuId),Array.isArray(e.children)&&(r=r.concat(n(e.children,t)))})),r}p({roleId:e}).then((function(e){var r=e.result||{},a=r.roleId,i=r.roleName,o=r.menuIds,s=r.resourceCode;o="string"==typeof o?o.split(","):[],Object.assign(t.roleData,{roleId:a,roleName:i}),t.tabList.forEach((function(e){var r=[];e.menuList.forEach((function(t){e.checkedId[t.menuId]=n([t],o),r=r.concat(e.checkedId[t.menuId])})),t.roleData.menuIds.push({appType:e.appType,menuIds:r})})),"string"==typeof s&&s.length>0&&s.split(",").forEach((function(e){t.resourceList.some((function(n){var r=n.resourceList.some((function(t){return t.resourceCode==e}));return r&&(t.roleData.resourceCode[n.appId]=e),r}))}))}))},getActiveMenuList:function(){var e=this,t=this.tabList.filter((function(t){return t.appType==e.activeType}));return t[0].menuList},getActiveCheckId:function(){var e=this,t=this.tabList.filter((function(t){return t.appType==e.activeType}));return t[0].checkedId},flatDataToTree:function(e){return e.filter((function(t){var n=e.filter((function(e){return e.parentCode==t.menuCode}));return n.length>0&&(t.children=n),""==t.parentCode}))},onCheckedChange:function(e){var t=this,n=[];for(var r in e)n=n.concat(e[r]);this.tabList=this.tabList.map((function(n){return n.appType==t.activeType&&(n.checkedId=e),n})),this.roleData.menuIds.some((function(e){return e.appType==t.activeType}))?this.roleData.menuIds.forEach((function(e){e.appType==t.activeType&&(e.menuIds=n)})):this.roleData.menuIds.push({appType:this.activeType,menuIds:n})},onSave:function(){var e=this;this.$refs.roleData.validate((function(t){if(t){var n=e.roleData,r=n.roleId,a=n.roleName,i=n.menuIds,o=n.resourceCode,s={roleId:r,roleName:a,menuIds:JSON.stringify(i),wxEnterpriseId:e.wxEnterpriseId,resourceCode:[]};for(var c in o)s.resourceCode.push(o[c]);s.resourceCode=s.resourceCode.join(","),e.loading=!0,d(s).then((function(t){"0000"==t.code&&(e.$message.success("保存成功!"),e.$router.go(-1))})).finally((function(){return e.loading=!1}))}}))}}},f=h,m=(n("7133"),n("2877")),v=Object(m["a"])(f,r,a,!1,null,"f83874f4",null);t["default"]=v.exports},cf90:function(e,t,n){},f286:function(e,t,n){"use strict";var r=n("71f6"),a={addRole:{url:"/add-role",method:"post",useFormData:!0},delRole:"/role-del",editRole:{url:"/role-edit",method:"post",useFormData:!0},roleDetail:"/role-detail",roleList:"/role-list",menuList:"/menu-list",roleAdminList:"/role-admin-list",delAdmin:"/admin-del",enterpriseList:"/auth-enterprise-list",resourceList:"/resource-list"};t["a"]=Object(r["a"])(a,"/hb-manage-web")}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-0f6ed5e1"],{"5b4e":function(t,e,n){"use strict";var o=n("5c96");e["a"]={showmsg:function(t,e){Object(o["Message"])({duration:1e3,message:t||"接口异常",type:e})}}},"71f6":function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));n("ac6a"),n("456d");var o=n("b775");function i(t,e){t=t||{};var n=Object.keys(t);return n.forEach((function(n){var i=t[n];"string"===typeof i&&(i={url:i}),i.url="".concat(e).concat(i.url),t[n]=function(t){return Object(o["a"])(i,t)}})),t}},aa47:function(t,e,n){"use strict";
/**!
* Sortable 1.10.2
* @author RubaXa <trash@rubaxa.org>
* @author owenm <owen23355@gmail.com>
* @license MIT
*/function o(t){return o="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}function i(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function r(){return r=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},r.apply(this,arguments)}function a(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},o=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),o.forEach((function(e){i(t,e,n[e])}))}return t}function l(t,e){if(null==t)return{};var n,o,i={},r=Object.keys(t);for(o=0;o<r.length;o++)n=r[o],e.indexOf(n)>=0||(i[n]=t[n]);return i}function s(t,e){if(null==t)return{};var n,o,i=l(t,e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);for(o=0;o<r.length;o++)n=r[o],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}var c="1.10.2";function u(t){if("undefined"!==typeof window&&window.navigator)return!!navigator.userAgent.match(t)}var d=u(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),h=u(/Edge/i),f=u(/firefox/i),p=u(/safari/i)&&!u(/chrome/i)&&!u(/android/i),g=u(/iP(ad|od|hone)/i),v=u(/chrome/i)&&u(/android/i),m={capture:!1,passive:!1};function b(t,e,n){t.addEventListener(e,n,!d&&m)}function w(t,e,n){t.removeEventListener(e,n,!d&&m)}function y(t,e){if(e){if(">"===e[0]&&(e=e.substring(1)),t)try{if(t.matches)return t.matches(e);if(t.msMatchesSelector)return t.msMatchesSelector(e);if(t.webkitMatchesSelector)return t.webkitMatchesSelector(e)}catch(n){return!1}return!1}}function D(t){return t.host&&t!==document&&t.host.nodeType?t.host:t.parentNode}function E(t,e,n,o){if(t){n=n||document;do{if(null!=e&&(">"===e[0]?t.parentNode===n&&y(t,e):y(t,e))||o&&t===n)return t;if(t===n)break}while(t=D(t))}return null}var S,_=/\s+/g;function T(t,e,n){if(t&&e)if(t.classList)t.classList[n?"add":"remove"](e);else{var o=(" "+t.className+" ").replace(_," ").replace(" "+e+" "," ");t.className=(o+(n?" "+e:"")).replace(_," ")}}function C(t,e,n){var o=t&&t.style;if(o){if(void 0===n)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(t,""):t.currentStyle&&(n=t.currentStyle),void 0===e?n:n[e];e in o||-1!==e.indexOf("webkit")||(e="-webkit-"+e),o[e]=n+("string"===typeof n?"":"px")}}function x(t,e){var n="";if("string"===typeof t)n=t;else do{var o=C(t,"transform");o&&"none"!==o&&(n=o+" "+n)}while(!e&&(t=t.parentNode));var i=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return i&&new i(n)}function I(t,e,n){if(t){var o=t.getElementsByTagName(e),i=0,r=o.length;if(n)for(;i<r;i++)n(o[i],i);return o}return[]}function M(){var t=document.scrollingElement;return t||document.documentElement}function O(t,e,n,o,i){if(t.getBoundingClientRect||t===window){var r,a,l,s,c,u,h;if(t!==window&&t!==M()?(r=t.getBoundingClientRect(),a=r.top,l=r.left,s=r.bottom,c=r.right,u=r.height,h=r.width):(a=0,l=0,s=window.innerHeight,c=window.innerWidth,u=window.innerHeight,h=window.innerWidth),(e||n)&&t!==window&&(i=i||t.parentNode,!d))do{if(i&&i.getBoundingClientRect&&("none"!==C(i,"transform")||n&&"static"!==C(i,"position"))){var f=i.getBoundingClientRect();a-=f.top+parseInt(C(i,"border-top-width")),l-=f.left+parseInt(C(i,"border-left-width")),s=a+r.height,c=l+r.width;break}}while(i=i.parentNode);if(o&&t!==window){var p=x(i||t),g=p&&p.a,v=p&&p.d;p&&(a/=v,l/=g,h/=g,u/=v,s=a+u,c=l+h)}return{top:a,left:l,bottom:s,right:c,width:h,height:u}}}function N(t,e,n){var o=Y(t,!0),i=O(t)[e];while(o){var r=O(o)[n],a=void 0;if(a="top"===n||"left"===n?i>=r:i<=r,!a)return o;if(o===M())break;o=Y(o,!1)}return!1}function A(t,e,n){var o=0,i=0,r=t.children;while(i<r.length){if("none"!==r[i].style.display&&r[i]!==Vt.ghost&&r[i]!==Vt.dragged&&E(r[i],n.draggable,t,!1)){if(o===e)return r[i];o++}i++}return null}function P(t,e){var n=t.lastElementChild;while(n&&(n===Vt.ghost||"none"===C(n,"display")||e&&!y(n,e)))n=n.previousElementSibling;return n||null}function k(t,e){var n=0;if(!t||!t.parentNode)return-1;while(t=t.previousElementSibling)"TEMPLATE"===t.nodeName.toUpperCase()||t===Vt.clone||e&&!y(t,e)||n++;return n}function X(t){var e=0,n=0,o=M();if(t)do{var i=x(t),r=i.a,a=i.d;e+=t.scrollLeft*r,n+=t.scrollTop*a}while(t!==o&&(t=t.parentNode));return[e,n]}function F(t,e){for(var n in t)if(t.hasOwnProperty(n))for(var o in e)if(e.hasOwnProperty(o)&&e[o]===t[n][o])return Number(n);return-1}function Y(t,e){if(!t||!t.getBoundingClientRect)return M();var n=t,o=!1;do{if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var i=C(n);if(n.clientWidth<n.scrollWidth&&("auto"==i.overflowX||"scroll"==i.overflowX)||n.clientHeight<n.scrollHeight&&("auto"==i.overflowY||"scroll"==i.overflowY)){if(!n.getBoundingClientRect||n===document.body)return M();if(o||e)return n;o=!0}}}while(n=n.parentNode);return M()}function R(t,e){if(t&&e)for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}function B(t,e){return Math.round(t.top)===Math.round(e.top)&&Math.round(t.left)===Math.round(e.left)&&Math.round(t.height)===Math.round(e.height)&&Math.round(t.width)===Math.round(e.width)}function L(t,e){return function(){if(!S){var n=arguments,o=this;1===n.length?t.call(o,n[0]):t.apply(o,n),S=setTimeout((function(){S=void 0}),e)}}}function H(){clearTimeout(S),S=void 0}function j(t,e,n){t.scrollLeft+=e,t.scrollTop+=n}function W(t){var e=window.Polymer,n=window.jQuery||window.Zepto;return e&&e.dom?e.dom(t).cloneNode(!0):n?n(t).clone(!0)[0]:t.cloneNode(!0)}var z="Sortable"+(new Date).getTime();function G(){var t,e=[];return{captureAnimationState:function(){if(e=[],this.options.animation){var t=[].slice.call(this.el.children);t.forEach((function(t){if("none"!==C(t,"display")&&t!==Vt.ghost){e.push({target:t,rect:O(t)});var n=a({},e[e.length-1].rect);if(t.thisAnimationDuration){var o=x(t,!0);o&&(n.top-=o.f,n.left-=o.e)}t.fromRect=n}}))}},addAnimationState:function(t){e.push(t)},removeAnimationState:function(t){e.splice(F(e,{target:t}),1)},animateAll:function(n){var o=this;if(!this.options.animation)return clearTimeout(t),void("function"===typeof n&&n());var i=!1,r=0;e.forEach((function(t){var e=0,n=t.target,a=n.fromRect,l=O(n),s=n.prevFromRect,c=n.prevToRect,u=t.rect,d=x(n,!0);d&&(l.top-=d.f,l.left-=d.e),n.toRect=l,n.thisAnimationDuration&&B(s,l)&&!B(a,l)&&(u.top-l.top)/(u.left-l.left)===(a.top-l.top)/(a.left-l.left)&&(e=U(u,s,c,o.options)),B(l,a)||(n.prevFromRect=a,n.prevToRect=l,e||(e=o.options.animation),o.animate(n,u,l,e)),e&&(i=!0,r=Math.max(r,e),clearTimeout(n.animationResetTimer),n.animationResetTimer=setTimeout((function(){n.animationTime=0,n.prevFromRect=null,n.fromRect=null,n.prevToRect=null,n.thisAnimationDuration=null}),e),n.thisAnimationDuration=e)})),clearTimeout(t),i?t=setTimeout((function(){"function"===typeof n&&n()}),r):"function"===typeof n&&n(),e=[]},animate:function(t,e,n,o){if(o){C(t,"transition",""),C(t,"transform","");var i=x(this.el),r=i&&i.a,a=i&&i.d,l=(e.left-n.left)/(r||1),s=(e.top-n.top)/(a||1);t.animatingX=!!l,t.animatingY=!!s,C(t,"transform","translate3d("+l+"px,"+s+"px,0)"),V(t),C(t,"transition","transform "+o+"ms"+(this.options.easing?" "+this.options.easing:"")),C(t,"transform","translate3d(0,0,0)"),"number"===typeof t.animated&&clearTimeout(t.animated),t.animated=setTimeout((function(){C(t,"transition",""),C(t,"transform",""),t.animated=!1,t.animatingX=!1,t.animatingY=!1}),o)}}}}function V(t){return t.offsetWidth}function U(t,e,n,o){return Math.sqrt(Math.pow(e.top-t.top,2)+Math.pow(e.left-t.left,2))/Math.sqrt(Math.pow(e.top-n.top,2)+Math.pow(e.left-n.left,2))*o.animation}var q=[],J={initializeByDefault:!0},Z={mount:function(t){for(var e in J)J.hasOwnProperty(e)&&!(e in t)&&(t[e]=J[e]);q.push(t)},pluginEvent:function(t,e,n){var o=this;this.eventCanceled=!1,n.cancel=function(){o.eventCanceled=!0};var i=t+"Global";q.forEach((function(o){e[o.pluginName]&&(e[o.pluginName][i]&&e[o.pluginName][i](a({sortable:e},n)),e.options[o.pluginName]&&e[o.pluginName][t]&&e[o.pluginName][t](a({sortable:e},n)))}))},initializePlugins:function(t,e,n,o){for(var i in q.forEach((function(o){var i=o.pluginName;if(t.options[i]||o.initializeByDefault){var a=new o(t,e,t.options);a.sortable=t,a.options=t.options,t[i]=a,r(n,a.defaults)}})),t.options)if(t.options.hasOwnProperty(i)){var a=this.modifyOption(t,i,t.options[i]);"undefined"!==typeof a&&(t.options[i]=a)}},getEventProperties:function(t,e){var n={};return q.forEach((function(o){"function"===typeof o.eventProperties&&r(n,o.eventProperties.call(e[o.pluginName],t))})),n},modifyOption:function(t,e,n){var o;return q.forEach((function(i){t[i.pluginName]&&i.optionListeners&&"function"===typeof i.optionListeners[e]&&(o=i.optionListeners[e].call(t[i.pluginName],n))})),o}};function K(t){var e=t.sortable,n=t.rootEl,o=t.name,i=t.targetEl,r=t.cloneEl,l=t.toEl,s=t.fromEl,c=t.oldIndex,u=t.newIndex,f=t.oldDraggableIndex,p=t.newDraggableIndex,g=t.originalEvent,v=t.putSortable,m=t.extraEventProperties;if(e=e||n&&n[z],e){var b,w=e.options,y="on"+o.charAt(0).toUpperCase()+o.substr(1);!window.CustomEvent||d||h?(b=document.createEvent("Event"),b.initEvent(o,!0,!0)):b=new CustomEvent(o,{bubbles:!0,cancelable:!0}),b.to=l||n,b.from=s||n,b.item=i||n,b.clone=r,b.oldIndex=c,b.newIndex=u,b.oldDraggableIndex=f,b.newDraggableIndex=p,b.originalEvent=g,b.pullMode=v?v.lastPutMode:void 0;var D=a({},m,Z.getEventProperties(o,e));for(var E in D)b[E]=D[E];n&&n.dispatchEvent(b),w[y]&&w[y].call(e,b)}}var Q=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=n.evt,i=s(n,["evt"]);Z.pluginEvent.bind(Vt)(t,e,a({dragEl:tt,parentEl:et,ghostEl:nt,rootEl:ot,nextEl:it,lastDownEl:rt,cloneEl:at,cloneHidden:lt,dragStarted:yt,putSortable:ft,activeSortable:Vt.active,originalEvent:o,oldIndex:st,oldDraggableIndex:ut,newIndex:ct,newDraggableIndex:dt,hideGhostForTarget:jt,unhideGhostForTarget:Wt,cloneNowHidden:function(){lt=!0},cloneNowShown:function(){lt=!1},dispatchSortableEvent:function(t){$({sortable:e,name:t,originalEvent:o})}},i))};function $(t){K(a({putSortable:ft,cloneEl:at,targetEl:tt,rootEl:ot,oldIndex:st,oldDraggableIndex:ut,newIndex:ct,newDraggableIndex:dt},t))}var tt,et,nt,ot,it,rt,at,lt,st,ct,ut,dt,ht,ft,pt,gt,vt,mt,bt,wt,yt,Dt,Et,St,_t,Tt=!1,Ct=!1,xt=[],It=!1,Mt=!1,Ot=[],Nt=!1,At=[],Pt="undefined"!==typeof document,kt=g,Xt=h||d?"cssFloat":"float",Ft=Pt&&!v&&!g&&"draggable"in document.createElement("div"),Yt=function(){if(Pt){if(d)return!1;var t=document.createElement("x");return t.style.cssText="pointer-events:auto","auto"===t.style.pointerEvents}}(),Rt=function(t,e){var n=C(t),o=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),i=A(t,0,e),r=A(t,1,e),a=i&&C(i),l=r&&C(r),s=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+O(i).width,c=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+O(r).width;if("flex"===n.display)return"column"===n.flexDirection||"column-reverse"===n.flexDirection?"vertical":"horizontal";if("grid"===n.display)return n.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(i&&a["float"]&&"none"!==a["float"]){var u="left"===a["float"]?"left":"right";return!r||"both"!==l.clear&&l.clear!==u?"horizontal":"vertical"}return i&&("block"===a.display||"flex"===a.display||"table"===a.display||"grid"===a.display||s>=o&&"none"===n[Xt]||r&&"none"===n[Xt]&&s+c>o)?"vertical":"horizontal"},Bt=function(t,e,n){var o=n?t.left:t.top,i=n?t.right:t.bottom,r=n?t.width:t.height,a=n?e.left:e.top,l=n?e.right:e.bottom,s=n?e.width:e.height;return o===a||i===l||o+r/2===a+s/2},Lt=function(t,e){var n;return xt.some((function(o){if(!P(o)){var i=O(o),r=o[z].options.emptyInsertThreshold,a=t>=i.left-r&&t<=i.right+r,l=e>=i.top-r&&e<=i.bottom+r;return r&&a&&l?n=o:void 0}})),n},Ht=function(t){function e(t,n){return function(o,i,r,a){var l=o.options.group.name&&i.options.group.name&&o.options.group.name===i.options.group.name;if(null==t&&(n||l))return!0;if(null==t||!1===t)return!1;if(n&&"clone"===t)return t;if("function"===typeof t)return e(t(o,i,r,a),n)(o,i,r,a);var s=(n?o:i).options.group.name;return!0===t||"string"===typeof t&&t===s||t.join&&t.indexOf(s)>-1}}var n={},i=t.group;i&&"object"==o(i)||(i={name:i}),n.name=i.name,n.checkPull=e(i.pull,!0),n.checkPut=e(i.put),n.revertClone=i.revertClone,t.group=n},jt=function(){!Yt&&nt&&C(nt,"display","none")},Wt=function(){!Yt&&nt&&C(nt,"display","")};Pt&&document.addEventListener("click",(function(t){if(Ct)return t.preventDefault(),t.stopPropagation&&t.stopPropagation(),t.stopImmediatePropagation&&t.stopImmediatePropagation(),Ct=!1,!1}),!0);var zt=function(t){if(tt){t=t.touches?t.touches[0]:t;var e=Lt(t.clientX,t.clientY);if(e){var n={};for(var o in t)t.hasOwnProperty(o)&&(n[o]=t[o]);n.target=n.rootEl=e,n.preventDefault=void 0,n.stopPropagation=void 0,e[z]._onDragOver(n)}}},Gt=function(t){tt&&tt.parentNode[z]._isOutsideThisEl(t.target)};function Vt(t,e){if(!t||!t.nodeType||1!==t.nodeType)throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(t));this.el=t,this.options=e=r({},e),t[z]=this;var n={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(t.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return Rt(t,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(t,e){t.setData("Text",e.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:!1!==Vt.supportPointer&&"PointerEvent"in window,emptyInsertThreshold:5};for(var o in Z.initializePlugins(this,t,n),n)!(o in e)&&(e[o]=n[o]);for(var i in Ht(e),this)"_"===i.charAt(0)&&"function"===typeof this[i]&&(this[i]=this[i].bind(this));this.nativeDraggable=!e.forceFallback&&Ft,this.nativeDraggable&&(this.options.touchStartThreshold=1),e.supportPointer?b(t,"pointerdown",this._onTapStart):(b(t,"mousedown",this._onTapStart),b(t,"touchstart",this._onTapStart)),this.nativeDraggable&&(b(t,"dragover",this),b(t,"dragenter",this)),xt.push(this.el),e.store&&e.store.get&&this.sort(e.store.get(this)||[]),r(this,G())}function Ut(t){t.dataTransfer&&(t.dataTransfer.dropEffect="move"),t.cancelable&&t.preventDefault()}function qt(t,e,n,o,i,r,a,l){var s,c,u=t[z],f=u.options.onMove;return!window.CustomEvent||d||h?(s=document.createEvent("Event"),s.initEvent("move",!0,!0)):s=new CustomEvent("move",{bubbles:!0,cancelable:!0}),s.to=e,s.from=t,s.dragged=n,s.draggedRect=o,s.related=i||e,s.relatedRect=r||O(e),s.willInsertAfter=l,s.originalEvent=a,t.dispatchEvent(s),f&&(c=f.call(u,s,a)),c}function Jt(t){t.draggable=!1}function Zt(){Nt=!1}function Kt(t,e,n){var o=O(P(n.el,n.options.draggable)),i=10;return e?t.clientX>o.right+i||t.clientX<=o.right&&t.clientY>o.bottom&&t.clientX>=o.left:t.clientX>o.right&&t.clientY>o.top||t.clientX<=o.right&&t.clientY>o.bottom+i}function Qt(t,e,n,o,i,r,a,l){var s=o?t.clientY:t.clientX,c=o?n.height:n.width,u=o?n.top:n.left,d=o?n.bottom:n.right,h=!1;if(!a)if(l&&St<c*i){if(!It&&(1===Et?s>u+c*r/2:s<d-c*r/2)&&(It=!0),It)h=!0;else if(1===Et?s<u+St:s>d-St)return-Et}else if(s>u+c*(1-i)/2&&s<d-c*(1-i)/2)return $t(e);return h=h||a,h&&(s<u+c*r/2||s>d-c*r/2)?s>u+c/2?1:-1:0}function $t(t){return k(tt)<k(t)?1:-1}function te(t){var e=t.tagName+t.className+t.src+t.href+t.textContent,n=e.length,o=0;while(n--)o+=e.charCodeAt(n);return o.toString(36)}function ee(t){At.length=0;var e=t.getElementsByTagName("input"),n=e.length;while(n--){var o=e[n];o.checked&&At.push(o)}}function ne(t){return setTimeout(t,0)}function oe(t){return clearTimeout(t)}Vt.prototype={constructor:Vt,_isOutsideThisEl:function(t){this.el.contains(t)||t===this.el||(Dt=null)},_getDirection:function(t,e){return"function"===typeof this.options.direction?this.options.direction.call(this,t,e,tt):this.options.direction},_onTapStart:function(t){if(t.cancelable){var e=this,n=this.el,o=this.options,i=o.preventOnFilter,r=t.type,a=t.touches&&t.touches[0]||t.pointerType&&"touch"===t.pointerType&&t,l=(a||t).target,s=t.target.shadowRoot&&(t.path&&t.path[0]||t.composedPath&&t.composedPath()[0])||l,c=o.filter;if(ee(n),!tt&&!(/mousedown|pointerdown/.test(r)&&0!==t.button||o.disabled)&&!s.isContentEditable&&(l=E(l,o.draggable,n,!1),(!l||!l.animated)&&rt!==l)){if(st=k(l),ut=k(l,o.draggable),"function"===typeof c){if(c.call(this,t,l,this))return $({sortable:e,rootEl:s,name:"filter",targetEl:l,toEl:n,fromEl:n}),Q("filter",e,{evt:t}),void(i&&t.cancelable&&t.preventDefault())}else if(c&&(c=c.split(",").some((function(o){if(o=E(s,o.trim(),n,!1),o)return $({sortable:e,rootEl:o,name:"filter",targetEl:l,fromEl:n,toEl:n}),Q("filter",e,{evt:t}),!0})),c))return void(i&&t.cancelable&&t.preventDefault());o.handle&&!E(s,o.handle,n,!1)||this._prepareDragStart(t,a,l)}}},_prepareDragStart:function(t,e,n){var o,i=this,r=i.el,a=i.options,l=r.ownerDocument;if(n&&!tt&&n.parentNode===r){var s=O(n);if(ot=r,tt=n,et=tt.parentNode,it=tt.nextSibling,rt=n,ht=a.group,Vt.dragged=tt,pt={target:tt,clientX:(e||t).clientX,clientY:(e||t).clientY},bt=pt.clientX-s.left,wt=pt.clientY-s.top,this._lastX=(e||t).clientX,this._lastY=(e||t).clientY,tt.style["will-change"]="all",o=function(){Q("delayEnded",i,{evt:t}),Vt.eventCanceled?i._onDrop():(i._disableDelayedDragEvents(),!f&&i.nativeDraggable&&(tt.draggable=!0),i._triggerDragStart(t,e),$({sortable:i,name:"choose",originalEvent:t}),T(tt,a.chosenClass,!0))},a.ignore.split(",").forEach((function(t){I(tt,t.trim(),Jt)})),b(l,"dragover",zt),b(l,"mousemove",zt),b(l,"touchmove",zt),b(l,"mouseup",i._onDrop),b(l,"touchend",i._onDrop),b(l,"touchcancel",i._onDrop),f&&this.nativeDraggable&&(this.options.touchStartThreshold=4,tt.draggable=!0),Q("delayStart",this,{evt:t}),!a.delay||a.delayOnTouchOnly&&!e||this.nativeDraggable&&(h||d))o();else{if(Vt.eventCanceled)return void this._onDrop();b(l,"mouseup",i._disableDelayedDrag),b(l,"touchend",i._disableDelayedDrag),b(l,"touchcancel",i._disableDelayedDrag),b(l,"mousemove",i._delayedDragTouchMoveHandler),b(l,"touchmove",i._delayedDragTouchMoveHandler),a.supportPointer&&b(l,"pointermove",i._delayedDragTouchMoveHandler),i._dragStartTimer=setTimeout(o,a.delay)}}},_delayedDragTouchMoveHandler:function(t){var e=t.touches?t.touches[0]:t;Math.max(Math.abs(e.clientX-this._lastX),Math.abs(e.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){tt&&Jt(tt),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var t=this.el.ownerDocument;w(t,"mouseup",this._disableDelayedDrag),w(t,"touchend",this._disableDelayedDrag),w(t,"touchcancel",this._disableDelayedDrag),w(t,"mousemove",this._delayedDragTouchMoveHandler),w(t,"touchmove",this._delayedDragTouchMoveHandler),w(t,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(t,e){e=e||"touch"==t.pointerType&&t,!this.nativeDraggable||e?this.options.supportPointer?b(document,"pointermove",this._onTouchMove):b(document,e?"touchmove":"mousemove",this._onTouchMove):(b(tt,"dragend",this),b(ot,"dragstart",this._onDragStart));try{document.selection?ne((function(){document.selection.empty()})):window.getSelection().removeAllRanges()}catch(n){}},_dragStarted:function(t,e){if(Tt=!1,ot&&tt){Q("dragStarted",this,{evt:e}),this.nativeDraggable&&b(document,"dragover",Gt);var n=this.options;!t&&T(tt,n.dragClass,!1),T(tt,n.ghostClass,!0),Vt.active=this,t&&this._appendGhost(),$({sortable:this,name:"start",originalEvent:e})}else this._nulling()},_emulateDragOver:function(){if(gt){this._lastX=gt.clientX,this._lastY=gt.clientY,jt();var t=document.elementFromPoint(gt.clientX,gt.clientY),e=t;while(t&&t.shadowRoot){if(t=t.shadowRoot.elementFromPoint(gt.clientX,gt.clientY),t===e)break;e=t}if(tt.parentNode[z]._isOutsideThisEl(t),e)do{if(e[z]){var n=void 0;if(n=e[z]._onDragOver({clientX:gt.clientX,clientY:gt.clientY,target:t,rootEl:e}),n&&!this.options.dragoverBubble)break}t=e}while(e=e.parentNode);Wt()}},_onTouchMove:function(t){if(pt){var e=this.options,n=e.fallbackTolerance,o=e.fallbackOffset,i=t.touches?t.touches[0]:t,r=nt&&x(nt,!0),a=nt&&r&&r.a,l=nt&&r&&r.d,s=kt&&_t&&X(_t),c=(i.clientX-pt.clientX+o.x)/(a||1)+(s?s[0]-Ot[0]:0)/(a||1),u=(i.clientY-pt.clientY+o.y)/(l||1)+(s?s[1]-Ot[1]:0)/(l||1);if(!Vt.active&&!Tt){if(n&&Math.max(Math.abs(i.clientX-this._lastX),Math.abs(i.clientY-this._lastY))<n)return;this._onDragStart(t,!0)}if(nt){r?(r.e+=c-(vt||0),r.f+=u-(mt||0)):r={a:1,b:0,c:0,d:1,e:c,f:u};var d="matrix(".concat(r.a,",").concat(r.b,",").concat(r.c,",").concat(r.d,",").concat(r.e,",").concat(r.f,")");C(nt,"webkitTransform",d),C(nt,"mozTransform",d),C(nt,"msTransform",d),C(nt,"transform",d),vt=c,mt=u,gt=i}t.cancelable&&t.preventDefault()}},_appendGhost:function(){if(!nt){var t=this.options.fallbackOnBody?document.body:ot,e=O(tt,!0,kt,!0,t),n=this.options;if(kt){_t=t;while("static"===C(_t,"position")&&"none"===C(_t,"transform")&&_t!==document)_t=_t.parentNode;_t!==document.body&&_t!==document.documentElement?(_t===document&&(_t=M()),e.top+=_t.scrollTop,e.left+=_t.scrollLeft):_t=M(),Ot=X(_t)}nt=tt.cloneNode(!0),T(nt,n.ghostClass,!1),T(nt,n.fallbackClass,!0),T(nt,n.dragClass,!0),C(nt,"transition",""),C(nt,"transform",""),C(nt,"box-sizing","border-box"),C(nt,"margin",0),C(nt,"top",e.top),C(nt,"left",e.left),C(nt,"width",e.width),C(nt,"height",e.height),C(nt,"opacity","0.8"),C(nt,"position",kt?"absolute":"fixed"),C(nt,"zIndex","100000"),C(nt,"pointerEvents","none"),Vt.ghost=nt,t.appendChild(nt),C(nt,"transform-origin",bt/parseInt(nt.style.width)*100+"% "+wt/parseInt(nt.style.height)*100+"%")}},_onDragStart:function(t,e){var n=this,o=t.dataTransfer,i=n.options;Q("dragStart",this,{evt:t}),Vt.eventCanceled?this._onDrop():(Q("setupClone",this),Vt.eventCanceled||(at=W(tt),at.draggable=!1,at.style["will-change"]="",this._hideClone(),T(at,this.options.chosenClass,!1),Vt.clone=at),n.cloneId=ne((function(){Q("clone",n),Vt.eventCanceled||(n.options.removeCloneOnHide||ot.insertBefore(at,tt),n._hideClone(),$({sortable:n,name:"clone"}))})),!e&&T(tt,i.dragClass,!0),e?(Ct=!0,n._loopId=setInterval(n._emulateDragOver,50)):(w(document,"mouseup",n._onDrop),w(document,"touchend",n._onDrop),w(document,"touchcancel",n._onDrop),o&&(o.effectAllowed="move",i.setData&&i.setData.call(n,o,tt)),b(document,"drop",n),C(tt,"transform","translateZ(0)")),Tt=!0,n._dragStartId=ne(n._dragStarted.bind(n,e,t)),b(document,"selectstart",n),yt=!0,p&&C(document.body,"user-select","none"))},_onDragOver:function(t){var e,n,o,i,r=this.el,l=t.target,s=this.options,c=s.group,u=Vt.active,d=ht===c,h=s.sort,f=ft||u,p=this,g=!1;if(!Nt){if(void 0!==t.preventDefault&&t.cancelable&&t.preventDefault(),l=E(l,s.draggable,r,!0),F("dragOver"),Vt.eventCanceled)return g;if(tt.contains(t.target)||l.animated&&l.animatingX&&l.animatingY||p._ignoreWhileAnimating===l)return R(!1);if(Ct=!1,u&&!s.disabled&&(d?h||(o=!ot.contains(tt)):ft===this||(this.lastPutMode=ht.checkPull(this,u,tt,t))&&c.checkPut(this,u,tt,t))){if(i="vertical"===this._getDirection(t,l),e=O(tt),F("dragOverValid"),Vt.eventCanceled)return g;if(o)return et=ot,Y(),this._hideClone(),F("revert"),Vt.eventCanceled||(it?ot.insertBefore(tt,it):ot.appendChild(tt)),R(!0);var v=P(r,s.draggable);if(!v||Kt(t,i,this)&&!v.animated){if(v===tt)return R(!1);if(v&&r===t.target&&(l=v),l&&(n=O(l)),!1!==qt(ot,r,tt,e,l,n,t,!!l))return Y(),r.appendChild(tt),et=r,B(),R(!0)}else if(l.parentNode===r){n=O(l);var m,b,w=0,y=tt.parentNode!==r,D=!Bt(tt.animated&&tt.toRect||e,l.animated&&l.toRect||n,i),S=i?"top":"left",_=N(l,"top","top")||N(tt,"top","top"),x=_?_.scrollTop:void 0;if(Dt!==l&&(m=n[S],It=!1,Mt=!D&&s.invertSwap||y),w=Qt(t,l,n,i,D?1:s.swapThreshold,null==s.invertedSwapThreshold?s.swapThreshold:s.invertedSwapThreshold,Mt,Dt===l),0!==w){var I=k(tt);do{I-=w,b=et.children[I]}while(b&&("none"===C(b,"display")||b===nt))}if(0===w||b===l)return R(!1);Dt=l,Et=w;var M=l.nextElementSibling,A=!1;A=1===w;var X=qt(ot,r,tt,e,l,n,t,A);if(!1!==X)return 1!==X&&-1!==X||(A=1===X),Nt=!0,setTimeout(Zt,30),Y(),A&&!M?r.appendChild(tt):l.parentNode.insertBefore(tt,A?M:l),_&&j(_,0,x-_.scrollTop),et=tt.parentNode,void 0===m||Mt||(St=Math.abs(m-O(l)[S])),B(),R(!0)}if(r.contains(tt))return R(!1)}return!1}function F(s,c){Q(s,p,a({evt:t,isOwner:d,axis:i?"vertical":"horizontal",revert:o,dragRect:e,targetRect:n,canSort:h,fromSortable:f,target:l,completed:R,onMove:function(n,o){return qt(ot,r,tt,e,n,O(n),t,o)},changed:B},c))}function Y(){F("dragOverAnimationCapture"),p.captureAnimationState(),p!==f&&f.captureAnimationState()}function R(e){return F("dragOverCompleted",{insertion:e}),e&&(d?u._hideClone():u._showClone(p),p!==f&&(T(tt,ft?ft.options.ghostClass:u.options.ghostClass,!1),T(tt,s.ghostClass,!0)),ft!==p&&p!==Vt.active?ft=p:p===Vt.active&&ft&&(ft=null),f===p&&(p._ignoreWhileAnimating=l),p.animateAll((function(){F("dragOverAnimationComplete"),p._ignoreWhileAnimating=null})),p!==f&&(f.animateAll(),f._ignoreWhileAnimating=null)),(l===tt&&!tt.animated||l===r&&!l.animated)&&(Dt=null),s.dragoverBubble||t.rootEl||l===document||(tt.parentNode[z]._isOutsideThisEl(t.target),!e&&zt(t)),!s.dragoverBubble&&t.stopPropagation&&t.stopPropagation(),g=!0}function B(){ct=k(tt),dt=k(tt,s.draggable),$({sortable:p,name:"change",toEl:r,newIndex:ct,newDraggableIndex:dt,originalEvent:t})}},_ignoreWhileAnimating:null,_offMoveEvents:function(){w(document,"mousemove",this._onTouchMove),w(document,"touchmove",this._onTouchMove),w(document,"pointermove",this._onTouchMove),w(document,"dragover",zt),w(document,"mousemove",zt),w(document,"touchmove",zt)},_offUpEvents:function(){var t=this.el.ownerDocument;w(t,"mouseup",this._onDrop),w(t,"touchend",this._onDrop),w(t,"pointerup",this._onDrop),w(t,"touchcancel",this._onDrop),w(document,"selectstart",this)},_onDrop:function(t){var e=this.el,n=this.options;ct=k(tt),dt=k(tt,n.draggable),Q("drop",this,{evt:t}),et=tt&&tt.parentNode,ct=k(tt),dt=k(tt,n.draggable),Vt.eventCanceled||(Tt=!1,Mt=!1,It=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),oe(this.cloneId),oe(this._dragStartId),this.nativeDraggable&&(w(document,"drop",this),w(e,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),p&&C(document.body,"user-select",""),C(tt,"transform",""),t&&(yt&&(t.cancelable&&t.preventDefault(),!n.dropBubble&&t.stopPropagation()),nt&&nt.parentNode&&nt.parentNode.removeChild(nt),(ot===et||ft&&"clone"!==ft.lastPutMode)&&at&&at.parentNode&&at.parentNode.removeChild(at),tt&&(this.nativeDraggable&&w(tt,"dragend",this),Jt(tt),tt.style["will-change"]="",yt&&!Tt&&T(tt,ft?ft.options.ghostClass:this.options.ghostClass,!1),T(tt,this.options.chosenClass,!1),$({sortable:this,name:"unchoose",toEl:et,newIndex:null,newDraggableIndex:null,originalEvent:t}),ot!==et?(ct>=0&&($({rootEl:et,name:"add",toEl:et,fromEl:ot,originalEvent:t}),$({sortable:this,name:"remove",toEl:et,originalEvent:t}),$({rootEl:et,name:"sort",toEl:et,fromEl:ot,originalEvent:t}),$({sortable:this,name:"sort",toEl:et,originalEvent:t})),ft&&ft.save()):ct!==st&&ct>=0&&($({sortable:this,name:"update",toEl:et,originalEvent:t}),$({sortable:this,name:"sort",toEl:et,originalEvent:t})),Vt.active&&(null!=ct&&-1!==ct||(ct=st,dt=ut),$({sortable:this,name:"end",toEl:et,originalEvent:t}),this.save())))),this._nulling()},_nulling:function(){Q("nulling",this),ot=tt=et=nt=it=at=rt=lt=pt=gt=yt=ct=dt=st=ut=Dt=Et=ft=ht=Vt.dragged=Vt.ghost=Vt.clone=Vt.active=null,At.forEach((function(t){t.checked=!0})),At.length=vt=mt=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":tt&&(this._onDragOver(t),Ut(t));break;case"selectstart":t.preventDefault();break}},toArray:function(){for(var t,e=[],n=this.el.children,o=0,i=n.length,r=this.options;o<i;o++)t=n[o],E(t,r.draggable,this.el,!1)&&e.push(t.getAttribute(r.dataIdAttr)||te(t));return e},sort:function(t){var e={},n=this.el;this.toArray().forEach((function(t,o){var i=n.children[o];E(i,this.options.draggable,n,!1)&&(e[t]=i)}),this),t.forEach((function(t){e[t]&&(n.removeChild(e[t]),n.appendChild(e[t]))}))},save:function(){var t=this.options.store;t&&t.set&&t.set(this)},closest:function(t,e){return E(t,e||this.options.draggable,this.el,!1)},option:function(t,e){var n=this.options;if(void 0===e)return n[t];var o=Z.modifyOption(this,t,e);n[t]="undefined"!==typeof o?o:e,"group"===t&&Ht(n)},destroy:function(){Q("destroy",this);var t=this.el;t[z]=null,w(t,"mousedown",this._onTapStart),w(t,"touchstart",this._onTapStart),w(t,"pointerdown",this._onTapStart),this.nativeDraggable&&(w(t,"dragover",this),w(t,"dragenter",this)),Array.prototype.forEach.call(t.querySelectorAll("[draggable]"),(function(t){t.removeAttribute("draggable")})),this._onDrop(),this._disableDelayedDragEvents(),xt.splice(xt.indexOf(this.el),1),this.el=t=null},_hideClone:function(){if(!lt){if(Q("hideClone",this),Vt.eventCanceled)return;C(at,"display","none"),this.options.removeCloneOnHide&&at.parentNode&&at.parentNode.removeChild(at),lt=!0}},_showClone:function(t){if("clone"===t.lastPutMode){if(lt){if(Q("showClone",this),Vt.eventCanceled)return;ot.contains(tt)&&!this.options.group.revertClone?ot.insertBefore(at,tt):it?ot.insertBefore(at,it):ot.appendChild(at),this.options.group.revertClone&&this.animate(tt,at),C(at,"display",""),lt=!1}}else this._hideClone()}},Pt&&b(document,"touchmove",(function(t){(Vt.active||Tt)&&t.cancelable&&t.preventDefault()})),Vt.utils={on:b,off:w,css:C,find:I,is:function(t,e){return!!E(t,e,t,!1)},extend:R,throttle:L,closest:E,toggleClass:T,clone:W,index:k,nextTick:ne,cancelNextTick:oe,detectDirection:Rt,getChild:A},Vt.get=function(t){return t[z]},Vt.mount=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];e[0].constructor===Array&&(e=e[0]),e.forEach((function(t){if(!t.prototype||!t.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(t));t.utils&&(Vt.utils=a({},Vt.utils,t.utils)),Z.mount(t)}))},Vt.create=function(t,e){return new Vt(t,e)},Vt.version=c;var ie,re,ae,le,se,ce,ue=[],de=!1;function he(){function t(){for(var t in this.defaults={scroll:!0,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0},this)"_"===t.charAt(0)&&"function"===typeof this[t]&&(this[t]=this[t].bind(this))}return t.prototype={dragStarted:function(t){var e=t.originalEvent;this.sortable.nativeDraggable?b(document,"dragover",this._handleAutoScroll):this.options.supportPointer?b(document,"pointermove",this._handleFallbackAutoScroll):e.touches?b(document,"touchmove",this._handleFallbackAutoScroll):b(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(t){var e=t.originalEvent;this.options.dragOverBubble||e.rootEl||this._handleAutoScroll(e)},drop:function(){this.sortable.nativeDraggable?w(document,"dragover",this._handleAutoScroll):(w(document,"pointermove",this._handleFallbackAutoScroll),w(document,"touchmove",this._handleFallbackAutoScroll),w(document,"mousemove",this._handleFallbackAutoScroll)),pe(),fe(),H()},nulling:function(){se=re=ie=de=ce=ae=le=null,ue.length=0},_handleFallbackAutoScroll:function(t){this._handleAutoScroll(t,!0)},_handleAutoScroll:function(t,e){var n=this,o=(t.touches?t.touches[0]:t).clientX,i=(t.touches?t.touches[0]:t).clientY,r=document.elementFromPoint(o,i);if(se=t,e||h||d||p){ge(t,this.options,r,e);var a=Y(r,!0);!de||ce&&o===ae&&i===le||(ce&&pe(),ce=setInterval((function(){var r=Y(document.elementFromPoint(o,i),!0);r!==a&&(a=r,fe()),ge(t,n.options,r,e)}),10),ae=o,le=i)}else{if(!this.options.bubbleScroll||Y(r,!0)===M())return void fe();ge(t,this.options,Y(r,!1),!1)}}},r(t,{pluginName:"scroll",initializeByDefault:!0})}function fe(){ue.forEach((function(t){clearInterval(t.pid)})),ue=[]}function pe(){clearInterval(ce)}var ge=L((function(t,e,n,o){if(e.scroll){var i,r=(t.touches?t.touches[0]:t).clientX,a=(t.touches?t.touches[0]:t).clientY,l=e.scrollSensitivity,s=e.scrollSpeed,c=M(),u=!1;re!==n&&(re=n,fe(),ie=e.scroll,i=e.scrollFn,!0===ie&&(ie=Y(n,!0)));var d=0,h=ie;do{var f=h,p=O(f),g=p.top,v=p.bottom,m=p.left,b=p.right,w=p.width,y=p.height,D=void 0,E=void 0,S=f.scrollWidth,_=f.scrollHeight,T=C(f),x=f.scrollLeft,I=f.scrollTop;f===c?(D=w<S&&("auto"===T.overflowX||"scroll"===T.overflowX||"visible"===T.overflowX),E=y<_&&("auto"===T.overflowY||"scroll"===T.overflowY||"visible"===T.overflowY)):(D=w<S&&("auto"===T.overflowX||"scroll"===T.overflowX),E=y<_&&("auto"===T.overflowY||"scroll"===T.overflowY));var N=D&&(Math.abs(b-r)<=l&&x+w<S)-(Math.abs(m-r)<=l&&!!x),A=E&&(Math.abs(v-a)<=l&&I+y<_)-(Math.abs(g-a)<=l&&!!I);if(!ue[d])for(var P=0;P<=d;P++)ue[P]||(ue[P]={});ue[d].vx==N&&ue[d].vy==A&&ue[d].el===f||(ue[d].el=f,ue[d].vx=N,ue[d].vy=A,clearInterval(ue[d].pid),0==N&&0==A||(u=!0,ue[d].pid=setInterval(function(){o&&0===this.layer&&Vt.active._onTouchMove(se);var e=ue[this.layer].vy?ue[this.layer].vy*s:0,n=ue[this.layer].vx?ue[this.layer].vx*s:0;"function"===typeof i&&"continue"!==i.call(Vt.dragged.parentNode[z],n,e,t,se,ue[this.layer].el)||j(ue[this.layer].el,n,e)}.bind({layer:d}),24))),d++}while(e.bubbleScroll&&h!==c&&(h=Y(h,!1)));de=u}}),30),ve=function(t){var e=t.originalEvent,n=t.putSortable,o=t.dragEl,i=t.activeSortable,r=t.dispatchSortableEvent,a=t.hideGhostForTarget,l=t.unhideGhostForTarget;if(e){var s=n||i;a();var c=e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:e,u=document.elementFromPoint(c.clientX,c.clientY);l(),s&&!s.el.contains(u)&&(r("spill"),this.onSpill({dragEl:o,putSortable:n}))}};function me(){}function be(){}me.prototype={startIndex:null,dragStart:function(t){var e=t.oldDraggableIndex;this.startIndex=e},onSpill:function(t){var e=t.dragEl,n=t.putSortable;this.sortable.captureAnimationState(),n&&n.captureAnimationState();var o=A(this.sortable.el,this.startIndex,this.options);o?this.sortable.el.insertBefore(e,o):this.sortable.el.appendChild(e),this.sortable.animateAll(),n&&n.animateAll()},drop:ve},r(me,{pluginName:"revertOnSpill"}),be.prototype={onSpill:function(t){var e=t.dragEl,n=t.putSortable,o=n||this.sortable;o.captureAnimationState(),e.parentNode&&e.parentNode.removeChild(e),o.animateAll()},drop:ve},r(be,{pluginName:"removeOnSpill"});Vt.mount(new he),Vt.mount(be,me),e["a"]=Vt},d11a:function(t,e,n){"use strict";var o=n("71f6"),i={getGroupList:"/department-list",getStoreList:"/store-list",getAssignStatus:"/app-distribute-status",getNavChain:"/get-chain",getMemberList:{url:"/app-get-member-info-list",method:"post",useFormData:!0},getClerkList:"/clerk-list",getMemberCount:"",saveAssign:{url:"/",method:"post",useFormData:!0},getMemberData:"",getServiceData:"",saveSortMember:{url:"/",method:"post",useFormData:!0,useIntercept:!1},getShowSet:"",saveShowSet:{url:"",method:"post",useFormData:!0,useIntercept:!1},getCustomerSet:"",saveCustomerSet:{url:"",method:"post",useFormData:!0,useIntercept:!1},getGroupData:"",getClassifyData:"",postSortGroup:{url:"/",method:"post",useFormData:!0,useIntercept:!1},getSyncMemberData:"",saveSync:{url:"/",method:"post",useFormData:!0,useIntercept:!1},saveVisiable:{url:"/",method:"post",useFormData:!0,useIntercept:!1},getTagClassify:"",addClassify:"",delClassify:{url:"/",method:"post",useFormData:!0,useIntercept:!1},getClerkTag:"",addClerkTag:"",delClerkTag:{url:"/",method:"post",useFormData:!0,useIntercept:!1}};i=Object(o["a"])(i,"/hb-manage-web"),e["a"]=i}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-14c0f460","chunk-33b0918a"],{"0082":function(e,t,o){"use strict";o.r(t);var n=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",[o("ul",{staticClass:"role-menu"},[Array.isArray(e.roleList)&&0!=e.roleList.length?e._e():o("li",{staticClass:"no-data"},[e._v("暂无数据")]),e._l(e.roleList,(function(t){return o("li",{key:t,class:["role-item",{active:e.activeRoleId==t.roleId}],on:{click:function(o){return e.onChangeRole(t)}}},[o("span",{staticClass:"role-name"},[e._v(e._s(t.roleName))]),o("el-dropdown",{attrs:{placement:"bottom-start"}},[o("i",{staticClass:"iconfont icongengduo edit-icon"}),o("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[o("el-dropdown-item",{nativeOn:{click:function(o){return e.onEditRole(t)}}},[e._v("编辑")]),e.showDelRoleButton?o("el-dropdown-item",{nativeOn:{click:function(o){return e.onDelRole(t)}}},[e._v("删除")]):e._e()],1)],1)],1)}))],2),o("el-dialog",{attrs:{visible:e.delRole.show,title:"删除角色",width:"600px"},on:{"update:visible":function(t){return e.$set(e.delRole,"show",t)},closed:e.onDelRoleClose}},[o("div",{staticClass:"del-role"},[o("i",{staticClass:"el-icon-warning"}),o("div",{staticClass:"del-role-content"},[o("p",{staticClass:"del-role-tip"},[e._v("确认删除“"+e._s(e.delRole.roleName)+"”角色吗?")]),o("p",{staticClass:"del-role-tip"},[e._v("请在输入框中输入该角色名称,以避免误操作。")]),o("el-input",{staticStyle:{"margin-top":"10px",width:"440px"},model:{value:e.delRole.roleNameInput,callback:function(t){e.$set(e.delRole,"roleNameInput","string"===typeof t?t.trim():t)},expression:"delRole.roleNameInput"}})],1)]),o("template",{slot:"footer"},[o("el-button",{on:{click:function(t){e.delRole.show=!1}}},[e._v("取消")]),o("el-button",{attrs:{type:"primary",loading:e.delRole.loading},on:{click:e.onDelRoleSure}},[e._v("确定")])],1)],2)],1)},l=[],i=(o("c5f6"),o("f286")),a=i["a"].delRole,r={name:"RoleList",props:{roleList:{type:Array,default:function(){return[]}},activeRoleId:[String,Number],showDelRoleButton:{type:Boolean,default:!1}},data:function(){return{delRole:{show:!1,loading:!1,roleId:"",roleName:"",roleNameInput:""}}},methods:{onChangeRole:function(e){this.$emit("change-role",e)},onEditRole:function(e){this.$emit("edit-role",e)},onDelRole:function(e){var t=e.roleId,o=e.roleName;Object.assign(this.delRole,{show:!0,roleId:t,roleName:o})},onDelRoleClose:function(){Object.assign(this.delRole,{roleId:"",roleName:"",roleNameInput:""})},onDelRoleSure:function(){var e=this,t=this.delRole,o=t.roleId,n=t.roleName,l=t.roleNameInput;return 0==l.length?this.$message.warning("请输入角色名称!"):n!=l?this.$message.warning("请输入正确的角色名称!"):(this.delRole.loading=!0,void a({roleId:o}).then((function(t){"0000"==t.code&&(e.$message.success("删除成功!"),e.$emit("del-role-succ",o==e.activeRoleId),e.delRole.show=!1)})).finally((function(){return e.delRole.loading=!1})))}}},s=r,c=(o("575f"),o("2877")),d=Object(c["a"])(s,n,l,!1,null,"7c337432",null);t["default"]=d.exports},"44e1":function(e,t,o){},"575f":function(e,t,o){"use strict";var n=o("44e1"),l=o.n(n);l.a},"71f6":function(e,t,o){"use strict";o.d(t,"a",(function(){return l}));o("ac6a"),o("456d");var n=o("b775");function l(e,t){e=e||{};var o=Object.keys(e);return o.forEach((function(o){var l=e[o];"string"===typeof l&&(l={url:l}),l.url="".concat(t).concat(l.url),e[o]=function(e){return Object(n["a"])(l,e)}})),e}},b6fa:function(e,t,o){"use strict";var n=o("e2aa"),l=o.n(n);l.a},db80:function(e,t,o){"use strict";o.r(t);var n=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"admin"},[o("div",{staticClass:"role-list"},[o("div",{staticClass:"add-role"},[o("el-button",{on:{click:function(t){return e.onEditRole()}}},[o("i",{staticClass:"iconfont icontianjiajiahaowubiankuang"}),e._v(" 新建管理角色")])],1),o("role-list",{attrs:{"role-list":e.roleList,"active-role-id":e.activeRoleId,"show-del-role-button":""},on:{"del-role-succ":e.onDelRoleSucc,"edit-role":e.onEditRole,"change-role":e.onChangeRole}})],1),o("div",{staticClass:"admin-list"},[o("h3",{staticClass:"admin-list-title"},[e._v("管理员列表")]),o("el-input",{staticStyle:{width:"277px"},attrs:{placeholder:"请输入姓名/账号/手机号码","prefix-icon":"el-icon-search",clearable:""},on:{change:e.onSearch},model:{value:e.search,callback:function(t){e.search="string"===typeof t?t.trim():t},expression:"search"}}),o("el-button",{staticStyle:{float:"right"},attrs:{type:"primary"},on:{click:e.toEditAdmin}},[e._v("添加管理员")]),o("el-table",{staticStyle:{"margin-top":"20px"},attrs:{data:e.adminList}},[o("el-table-column",{attrs:{label:"姓名",prop:"staffName",formatter:function(e,t,o){return o||"--"}}}),o("el-table-column",{attrs:{label:"账号",prop:"wxUserId",formatter:function(e,t,o){return o||"--"},"show-overflow-tooltip":""}}),o("el-table-column",{attrs:{label:"手机号码",prop:"phoneNumber",formatter:function(e,t,o){return o||"--"}}}),o("el-table-column",{attrs:{label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){var n=t.row;return[o("el-button",{attrs:{type:"text"},on:{click:function(t){return e.toEditAdmin(n)}}},[e._v("管辖范围")]),o("el-button",{attrs:{type:"text"},on:{click:function(t){return e.onDelAdmin(n)}}},[e._v("删除")])]}}])})],1),e.pager.total>0?o("dm-pagination",{staticStyle:{"text-align":"right"},attrs:{background:"",layout:"total,sizes,prev,pager,next",total:e.pager.total,"page-sizes":e.pager.pageSizes,"page-size":e.pager.pageSize,"current-page":e.pager.currentPage},on:{"size-change":e.onSizeChange,"current-change":e.onCurrentChange}}):e._e()],1)])},l=[],i=(o("386d"),o("0082")),a=o("f286"),r=a["a"].roleList,s=a["a"].roleAdminList,c=a["a"].delAdmin,d={name:"AdminList",components:{RoleList:i["default"]},data:function(){return{activeRoleId:"",roleList:[],search:"",pager:{total:0,pageSizes:[20,40,60,80],pageSize:20,currentPage:1},adminList:[]}},created:function(){this.$emit("showTab","/admin-list"),this.getRoleList()},methods:{getRoleList:function(){var e=this;r({roleType:2}).then((function(t){e.roleList=t.result||[],e.roleList.length>0&&!e.activeRoleId&&(e.activeRoleId=e.roleList[0].roleId,e.getAdminList())}))},onEditRole:function(e){var t=e||{},o=t.roleId;this.$router.push("/edit-role".concat(o?"?roleId=".concat(o):""))},onChangeRole:function(e){this.activeRoleId=e.roleId,this.getAdminList()},onDelRoleSucc:function(e){e&&(this.activeRoleId=""),this.getRoleList()},getAdminList:function(){var e=this,t=this.pager,o=t.currentPage,n=t.pageSize,l={roleId:this.activeRoleId,search:this.search,pageNum:o,pageSize:n};s(l).then((function(t){var o=t.result||{},n=o.totalCount,l=o.result;e.pager.total=n,e.adminList=l||[]}))},onSearch:function(){this.pager.currentPage=1,this.getAdminList()},onSizeChange:function(e){this.pager.pageSize=e,this.onSearch()},onCurrentChange:function(e){this.pager.currentPage=e,this.getAdminList()},toEditAdmin:function(e){var t=e||{},o=t.staffId,n=t.staffName;this.$router.push("/edit-admin?roleId=".concat(this.activeRoleId).concat(n?"&staffName=".concat(n):"").concat(o?"&staffId=".concat(o):""))},onDelAdmin:function(e){var t=this,o=e.staffName,n=e.staffId;this.$confirm("确定删除【 ".concat(o," 】吗?"),"提示",{type:"warning"}).then((function(){var e={staffId:n,roleId:t.activeRoleId};c(e).then((function(e){"0000"==e.code&&(t.$message.success("删除成功!"),t.pager.currentPage>1&&1==t.adminList.length&&t.pager.currentPage--,t.getAdminList())}))}))}}},u=d,f=(o("b6fa"),o("2877")),p=Object(f["a"])(u,n,l,!1,null,"2e313758",null);t["default"]=p.exports},e2aa:function(e,t,o){},f286:function(e,t,o){"use strict";var n=o("71f6"),l={addRole:{url:"/add-role",method:"post",useFormData:!0},delRole:"/role-del",editRole:{url:"/role-edit",method:"post",useFormData:!0},roleDetail:"/role-detail",roleList:"/role-list",menuList:"/menu-list",roleAdminList:"/role-admin-list",delAdmin:"/admin-del",enterpriseList:"/auth-enterprise-list",resourceList:"/resource-list"};t["a"]=Object(n["a"])(l,"/hb-manage-web")}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-1c295d3c","chunk-23d376bc"],{"0fd6":function(e,t,n){"use strict";var a=n("cf90"),r=n.n(a);r.a},2249:function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("nav-crumb",{attrs:{navpath:e.bread}}),n("div",{staticStyle:{padding:"20px",background:"#fff"}},[n("el-alert",{staticStyle:{"margin-bottom":"30px",width:"572px"},attrs:{type:"info",title:"管理角色:查看区域或门店日常业务,进行一些经营性的管理工作。不必关联导购账号。",closable:!1,"show-icon":""}}),n("el-form",{ref:"roleData",attrs:{model:e.roleData,rules:e.roleDataRule,"label-width":"140px"}},[n("el-form-item",{attrs:{label:"角色名称",prop:"roleName"}},[n("el-input",{staticStyle:{width:"432px"},attrs:{placeholder:"请输入角色名称",maxlength:"20","show-word-limit":""},model:{value:e.roleData.roleName,callback:function(t){e.$set(e.roleData,"roleName","string"===typeof t?t.trim():t)},expression:"roleData.roleName"}})],1),n("el-form-item",{attrs:{label:"权限配置",prop:"menuIds"}},[n("el-radio-group",{staticClass:"specter",attrs:{size:"small"},model:{value:e.activeType,callback:function(t){e.activeType=t},expression:"activeType"}},e._l(e.tabList,(function(t){return n("el-radio-button",{key:t.appType,attrs:{label:t.appType}},[e._v(e._s(t.label))])})),1),n("menu-tree",{staticStyle:{"margin-top":"12px"},attrs:{"menu-list":e.getActiveMenuList(),"checked-id":e.getActiveMenuChecked()},on:{change:e.onCheckedChange}})],1),n("el-form-item",{staticStyle:{"margin-top":"50px"}},[n("el-button",{attrs:{type:"primary",loading:e.roleData.loading},on:{click:e.onSave}},[e._v(e._s(e.roleData.roleId?"保存":"确认新建"))])],1)],1)],1)],1)},r=[],i=(n("20d6"),n("28a5"),n("5df3"),n("ac6a"),n("96cf"),n("1da1")),c=n("29b6"),o=n("a088"),u=n("f286"),s=u["a"].menuList,l=u["a"].addRole,d=u["a"].editRole,h=u["a"].roleDetail,f={name:"EditRole",components:{navCrumb:c["a"],MenuTree:o["default"]},data:function(){var e=function(e,t,n){Array.isArray(t)&&0!=t.length&&!t.every((function(e){return 0==e.menuIds.length}))||n(new Error("请至少选择一个权限菜单")),n()};return{bread:[{name:"管理员",path:"/admin-list"},{name:"新建管理角色"}],roleData:{loading:!1,roleId:"",roleName:"",menuIds:[]},roleDataRule:{roleName:[{required:!0,message:"角色名称不能为空",trigger:"blur"}],menuIds:[{required:!0,validator:e}]},activeType:1,tabList:[{label:"好办后台",appType:1,flatMenu:[],menuList:[],checkedId:{}},{label:"应用后台",appType:2,flatMenu:[],menuList:[],checkedId:{}},{label:"好办小程序",appType:3,flatMenu:[],menuList:[],checkedId:{}},{label:"小程序应用",appType:4,flatMenu:[],menuList:[],checkedId:{}}]}},created:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=this.$route.query.roleId,this.$emit("showAsideMenu",!1),e.next=4,this.getMenuList();case 4:t&&(this.bread[1]={name:"编辑管理角色"},this.getRoleDetail(t));case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),methods:{getMenuList:function(){var e=this,t=JSON.parse(localStorage.getItem("haoBanUser")||"{}"),n={wxEnterpriseId:t.wxEnterpriseId},a=[];return this.tabList.forEach((function(t){a.push(s(Object.assign({},n,{appType:t.appType,roleType:1})).then((function(n){t.menuList=e.flatDataToTree(n.result||[]),t.flatMenu=n.result||[],t.menuList.forEach((function(n){e.$set(t.checkedId,n.menuId,[])}))})))})),Promise.all(a)},getRoleDetail:function(e){var t=this;function n(e,t){var a=[];return e.forEach((function(e){t.some((function(t){return t==e.menuId}))&&a.push(e.menuId),Array.isArray(e.children)&&(a=a.concat(n(e.children,t)))})),a}function a(e,t){var n=[];return e.map((function(e){if(t.some((function(t){return t==e.menuId}))){var i=[];Array.isArray(e.children)&&(i=r(e.children)),(0==i.length||i.every((function(e){return t.some((function(t){return t==e}))})))&&n.push(e.menuId),Array.isArray(e.children)&&(n=n.concat(a(e.children,t)))}})),n}function r(e){var t=[];return e.forEach((function(e){t.push(e.menuId),Array.isArray(e.children)&&(t=t.concat(r(e.children)))})),t}h({roleId:e}).then((function(e){var r=e.result,i=r.roleId,c=r.roleName,o=r.menuIds;o="string"==typeof o?o.split(","):[],Object.assign(t.roleData,{roleId:i,roleName:c}),t.tabList.forEach((function(e){var r=[];e.menuList.forEach((function(t){e.checkedId[t.menuId]=a([t],o),r=r.concat(n([t],o))})),t.roleData.menuIds.push({appType:e.appType,menuIds:r})}))}))},flatDataToTree:function(e){return e.filter((function(t){var n=e.filter((function(e){return e.parentId==t.menuId}));return n.length>0&&(t.children=n),""==t.parentCode}))},getActiveMenuList:function(){var e=this,t=this.tabList.filter((function(t){return t.appType==e.activeType}));return t[0].menuList},getActiveMenuChecked:function(){var e=this,t=this.tabList.filter((function(t){return t.appType==e.activeType}));return t[0].checkedId},onCheckedChange:function(e){var t=this,n=[],a=[],r=[];for(var i in e)n=n.concat(e[i]);function c(e,t){var n=[e];return t.some((function(a){return a.menuId==e&&a.parentId>0&&(n=n.concat(c(a.parentId,t))),a.menuId==e})),n}this.tabList=this.tabList.map((function(n){return n.appType==t.activeType&&(n.checkedId=e,a=n.flatMenu),n})),n.map((function(e){r=r.concat(c(e,a))})),r=r.filter((function(e,t){return t==r.findIndex((function(t){return t==e}))})),this.roleData.menuIds.some((function(e){return e.appType==t.activeType}))?this.roleData.menuIds.forEach((function(e){e.appType==t.activeType&&(e.menuIds=r)})):this.roleData.menuIds.push({appType:this.activeType,menuIds:r})},onSave:function(){var e=this;this.$refs.roleData.validate((function(t){if(t){var n=e.roleData,a=n.roleId,r=n.roleName,i=n.menuIds,c={roleName:r,menuIds:JSON.stringify(i)};e.roleData.loading=!0,a?(c.roleId=a,d(c).then(o.bind(e,"保存成功!")).finally((function(){return e.roleData.loading=!1}))):l(c).then(o.bind(e,"新建成功!")).finally((function(){return e.roleData.loading=!1}))}function o(e){this.$message.success(e),this.$router.go(-1)}}))}}},p=f,m=n("2877"),v=Object(m["a"])(p,a,r,!1,null,null,null);t["default"]=v.exports},"29b6":function(e,t,n){"use strict";var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"nav-wrap border-box"},[n("el-breadcrumb",{attrs:{"separator-class":"el-icon-arrow-right"}},[e._l(e.navpath,(function(t,a){return[t.path?[n("el-breadcrumb-item",{key:"nav"+a,attrs:{to:{path:t.path}},on:{click:function(n){return e.changeRoute(t.path,t.relocation)}}},[n("span",{staticClass:"el-breadcrumb__inner is-link",on:{click:function(n){return e.changeRoute(t.path,t.relocation)}}},[e._v("\n "+e._s(t.name)+"\n ")])])]:[n("el-breadcrumb-item",{key:"nav"+a},[e._v(e._s(t.name))])]]}))],2)],1)},r=[],i={name:"NavPath",props:{navpath:{type:Array,default:function(){return[]}}},data:function(){return{projectName:"member"}},methods:{changeRoute:function(e,t){var n=this;t?window.location.href=e:n.$router.push(e)}}},c=i,o=(n("6b4b"),n("2877")),u=Object(o["a"])(c,a,r,!1,null,"2c2a2724",null);t["a"]=u.exports},"6b4b":function(e,t,n){"use strict";var a=n("76d4"),r=n.n(a);r.a},"71f6":function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));n("ac6a"),n("456d");var a=n("b775");function r(e,t){e=e||{};var n=Object.keys(e);return n.forEach((function(n){var r=e[n];"string"===typeof r&&(r={url:r}),r.url="".concat(t).concat(r.url),e[n]=function(e){return Object(a["a"])(r,e)}})),e}},"76d4":function(e,t,n){},a088:function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"menu-tree"},[n("ul",{staticClass:"first-menu"},[0==e.menuList.length?n("li",{staticClass:"no-data"},[e._v("暂无数据")]):e._e(),e._l(e.menuList,(function(t){return n("li",{key:t.menuId,class:["first-menu-item",{active:t.menuId==e.activeMenuId}],on:{click:function(n){return e.onMenuChange(t)}}},[e._v("\n "+e._s(t.menuName)+"\n ")])}))],2),n("div",{staticClass:"all-menu"},[n("el-tree",{ref:"menuList",attrs:{data:e.treeData,"show-checkbox":"","default-expand-all":"","node-key":"menuId","expand-on-click-node":!1,"check-on-click-node":!0,props:{label:"menuName"},"default-checked-keys":e.checkedId[e.activeMenuId]},on:{"node-click":e.onNodeClick,check:e.onNodeClick}})],1)])},r=[],i=(n("ac6a"),{name:"MenuTree",props:{menuList:Array,checkedId:Object},data:function(){return{activeMenuId:"",treeData:[]}},methods:{onMenuChange:function(e){this.activeMenuId=e?e.menuId:"",this.treeData=e?[e]:[]},onNodeClick:function(){this.onChange(this.$refs.menuList.getCheckedKeys())},getAllMenuId:function(e){var t=this,n=[];return e.forEach((function(e){n.push(e.menuId),Array.isArray(e.children)&&(n=n.concat(t.getAllMenuId(e.children)))})),n},onChange:function(e){var t={};t[this.activeMenuId]=e,this.$emit("change",Object.assign({},this.checkedId,t))}},watch:{checkedId:{deep:!0,handler:function(e){this.$refs.menuList.setCheckedKeys(e[this.activeMenuId]||[])}},menuList:{immediate:!0,handler:function(e){this.onMenuChange(e[0])}}}}),c=i,o=(n("0fd6"),n("2877")),u=Object(o["a"])(c,a,r,!1,null,"6d51b677",null);t["default"]=u.exports},cf90:function(e,t,n){},f286:function(e,t,n){"use strict";var a=n("71f6"),r={addRole:{url:"/add-role",method:"post",useFormData:!0},delRole:"/role-del",editRole:{url:"/role-edit",method:"post",useFormData:!0},roleDetail:"/role-detail",roleList:"/role-list",menuList:"/menu-list",roleAdminList:"/role-admin-list",delAdmin:"/admin-del",enterpriseList:"/auth-enterprise-list",resourceList:"/resource-list"};t["a"]=Object(a["a"])(r,"/hb-manage-web")}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-1c5a064d"],{"0fb7":function(t,e,a){"use strict";var i=a("67ae"),n=a.n(i);n.a},1005:function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"unreview-wrap common-set-wrap"},[i("div",{staticClass:"right-content"},[i("div",{staticClass:"right-box",staticStyle:{"min-height":"calc(100vh - 86px)"}},[i("div",{staticClass:"reviewed-body-head flex flex-space-between"},[i("div",[i("el-input",{staticClass:"w-344",attrs:{maxlength:"50",placeholder:"请输入提交人姓名/账号/手机号","prefix-icon":"el-icon-search",clearable:""},on:{clear:t.clearSearch},nativeOn:{keyup:function(e){return function(e){return t.searchEnterFun(e,t.searchInput)}(e)}},model:{value:t.searchValue,callback:function(e){t.searchValue=e},expression:"searchValue"}}),i("el-select",{staticClass:"w-130 m-l-10",attrs:{placeholder:"全部事项"},on:{change:t.changeTableList},model:{value:t.auditType,callback:function(e){t.auditType=e},expression:"auditType"}},t._l(t.filterOptions,(function(t){return i("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1),i("el-select",{staticClass:"w-168 m-l-10",attrs:{placeholder:"全部品牌"},on:{change:t.changeTableList},model:{value:t.filterBrand,callback:function(e){t.filterBrand=e},expression:"filterBrand"}},[i("el-option",{attrs:{label:"全部品牌",value:""}}),t._l(t.brandOptions,(function(t){return i("el-option",{key:t.enterpriseId,attrs:{label:t.enterpriseName,value:t.enterpriseId}})}))],2)],1),i("dm-perm-button",{attrs:{disabled:t.$itemPerm(t.$itemCode.batchAudit),type:"primary"},on:{click:t.approveAll}},[t._v("批量同意")])],1),i("div",{staticClass:"reviewed-body-content"},[i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],ref:"multipleTable",staticStyle:{width:"100%"},attrs:{data:t.tableData,"tooltip-effect":"dark"},on:{"selection-change":t.handleSelectionChange}},[i("el-table-column",{attrs:{type:"selection",width:"55"}}),i("el-table-column",{attrs:{label:"审核事项"},scopedSlots:t._u([{key:"default",fn:function(e){return[1==e.row.auditType?i("span",[t._v("导购账号绑定")]):t._e()]}}])}),i("el-table-column",{attrs:{label:"提交人","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[i("div",{staticClass:"flex"},[i("el-popover",{attrs:{placement:"top",width:"300",trigger:"hover"},on:{show:function(a){return t.showSingleInfo(e.row.submitStaffId)}}},[i("div",{staticClass:"apply-info-detail"},[i("div",{staticClass:"flex"},[i("div",{staticClass:"apply-info-img flex-align-center flex-pack-center bg-82c5ff "},[t.userData.headImg?i("img",{attrs:{src:t.userData.headImg,alt:"img"}}):i("img",{attrs:{src:a("6ce2"),alt:"img"}})]),i("div",{staticClass:"flex flex-column apply-info-right flex-pack-center"},[i("div",{staticClass:"apply-info-name"},[i("span",{staticClass:"font-14 color-303133"},[t._v(t._s(t.userData.staffName||"--"))]),i("span",{staticClass:"font-14 color-90939"},[t._v("( "+t._s(1==t.userData.sex?"男":2==t.userData.sex?"女":"--")+")")])])])]),i("div",{staticClass:"flex flex-space-between line-26 m-t-15"},[i("div",{staticClass:"font-14 color-606266"},[t._v("账号")]),i("div",{staticClass:"font-14 color-303133"},[t._v(t._s(t.userData.wxUserId||"--"))])]),i("div",{staticClass:"flex flex-space-between line-26"},[i("div",{staticClass:"font-14 color-606266"},[t._v("职务")]),i("div",{staticClass:"font-14 color-303133"},[t._v(t._s(t.userData.postion||"--"))])]),i("div",{staticClass:"flex flex-space-between line-26"},[i("div",{staticClass:"font-14 color-606266"},[t._v("手机号")]),i("div",{staticClass:"font-14 color-303133"},[t._v(t._s(t.userData.nationCode||"--")+"-"+t._s(t.userData.phoneNumber||"--"))])]),i("div",{staticClass:"flex flex-space-between line-26"},[i("div",{staticClass:"font-14 color-606266 w-m-100"},[t._v("部门")]),i("div",{staticClass:"font-14 color-303133"},[t._v(t._s(t.userData.departmentInfo.map((function(t){return t.departmentName})).join(";")||"--"))])])]),i("div",{attrs:{slot:"reference"},slot:"reference"},[i("div",{staticClass:"flex flex-align-center flex-pack-center bg-82c5ff table-head-pic cursor-pointer"},[e.row.submitHeadImg?i("img",{attrs:{src:e.row.submitHeadImg,alt:"img"}}):i("img",{attrs:{src:a("6ce2"),alt:"img"}})])])]),i("div",{staticClass:"flex flex-column apply-info hide-ellipsis"},[i("span",{staticClass:"font-14 color-606266 hide-ellipsis"},[t._v(t._s(e.row.submitStaffName||"--"))]),i("span",{staticClass:"font-12 color-909399 hide-ellipsis"},[t._v(t._s(e.row.submitWxUserId||"--"))])])],1)]}}])}),i("el-table-column",{attrs:{label:"详情","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.content||"--")+"\n ")]}}])}),i("el-table-column",{attrs:{label:"提交时间","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[i("div",{staticClass:"line-h-18"},[t._v(t._s(t._f("timeStampToYmd")(e.row.createTime)))]),i("div",{staticClass:"line-h-18"},[t._v(t._s(t._f("timeStampToHms")(e.row.createTime)))])]}}])}),i("el-table-column",{attrs:{label:"操作",width:"150"},scopedSlots:t._u([{key:"default",fn:function(e){return[i("el-button",{attrs:{type:"text"},on:{click:function(a){return t.handleClick(e.$index,e.row)}}},[t._v("同意")]),i("el-button",{attrs:{type:"text"},on:{click:function(a){return t.handleClick(e.$index,e.row,"refuse")}}},[t._v("拒绝")])]}}])})],1),0!=t.tableData.length?i("div",{staticClass:"block common-wrap__page text-right"},[i("dm-pagination",{attrs:{background:"","current-page":t.currentPage,"page-sizes":[20,40,60,80],"page-size":t.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1):t._e()],1)])]),i("store-change",{attrs:{"store-change-data":t.storeChangeData},model:{value:t.showStoreDialog,callback:function(e){t.showStoreDialog=e},expression:"showStoreDialog"}}),i("el-dialog",{staticClass:"approve-dialog",attrs:{title:"",visible:t.approveVisible,width:"422px"},on:{"update:visible":function(e){t.approveVisible=e}}},[i("div",{staticClass:"approve-body text-center"},[i("div",[i("i",{staticClass:"el-icon-success"}),i("span",{staticClass:"approve-icon-tip"},[t._v("同意")])]),i("div",{staticClass:"approve-tip"},[t._v("是否确认同意")])]),i("div",{staticClass:"approve-footer dialog-footer",staticStyle:{"text-align":"center"},attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:function(e){t.approveVisible=!1}}},[t._v("取 消")]),i("el-button",{attrs:{type:"primary"},on:{click:t.sendApprove}},[t._v("确 定")])],1)]),i("el-dialog",{staticClass:"refuse-dialog",attrs:{title:"提示",visible:t.refuseVisible,"before-close":t.cancelRefuse,width:"422px"},on:{"update:visible":function(e){t.refuseVisible=e}}},[i("div",[i("div",{staticClass:"refuse-tip"},[t._v("请输入拒绝理由")]),i("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:t.ruleForm,rules:t.rules}},[i("el-form-item",{attrs:{label:"",prop:"refuseReason"}},[i("el-input",{staticClass:"font-14",attrs:{type:"textarea",placeholder:"最多 50 个字",rows:3},model:{value:t.ruleForm.refuseReason,callback:function(e){t.$set(t.ruleForm,"refuseReason",e)},expression:"ruleForm.refuseReason"}})],1)],1)],1),i("div",{staticClass:"approve-footer dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:function(e){return t.cancelRefuse("ruleForm")}}},[t._v("取 消")]),i("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.sendRefuse("ruleForm")}}},[t._v("确 定")])],1)]),i("review-result-detail",{attrs:{"audit-ids":t.auditIds,"detail-show":t.detailShow},on:{hideDetailDialog:t.hideDetailDialog}}),i("el-dialog",{attrs:{title:"提示",visible:t.dialogVisible,width:"30%"},on:{"update:visible":function(e){t.dialogVisible=e}}},[i("span",[t._v("共"+t._s(t.multipleSelection.length)+"条审核事项,是否批量同意?")]),i("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:function(e){t.dialogVisible=!1}}},[t._v("取 消")]),i("el-button",{attrs:{type:"primary",loading:t.loadBtn},on:{click:function(e){t.postAllApprove(t.multipleSelection.map((function(t){return t.auditId})).join(","))}}},[t._v("确 定")])],1)])],1)},n=[],s=(a("28a5"),a("6300")),l=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{directives:[{name:"show",rawName:"v-show",value:t.customDialog,expression:"customDialog"}]},[a("el-dialog",{staticClass:"edit-dialog",attrs:{title:"审核详情",visible:t.customDialog,width:"600px","before-close":t.handleClose},on:{"update:visible":function(e){t.customDialog=e}}},[a("div",{staticClass:"edit-dialog-body"},[a("div",{staticClass:"font-14 color-606266 m-b-8"},[t._v("共 "+t._s(t.multLength||"")+" 条审核事项, "+t._s(t.success||"0")+" 条成功, "),a("span",{staticClass:"color-f5222d"},[t._v(t._s(t.fail||"0")+" ")]),t._v(" 条失败,失败详情如下:")]),a("el-table",{staticStyle:{width:"100%"},attrs:{data:t.tableData,height:"332"}},[a("el-table-column",{attrs:{prop:"publishRecordId",label:"审核事项","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[1==e.row.auditType?a("span",[t._v("导购账号绑定")]):t._e()]}}])}),a("el-table-column",{attrs:{label:"商户","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.enterpriseName||"--")+"\n ")]}}])}),a("el-table-column",{attrs:{label:"提交人","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.submitStaffName||"--")+"\n ")]}}])}),a("el-table-column",{attrs:{label:"提交时间",width:"120"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"color-606266 line-18"},[t._v(t._s(t._f("timeStampToYmd")(e.row.createTime))+" "+t._s(e.row.createTime?"":"--"))]),a("div",{staticClass:"color-606266 line-18"},[t._v(t._s(t._f("timeStampToHms")(e.row.createTime))+" "+t._s(e.row.createTime?"":"--"))])]}}])}),a("el-table-column",{attrs:{label:"状态"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",{class:["span-dot",1==e.row.auditFlag?"bg-52c41a":"bg-f5222d"]}),1==e.row.auditFlag?a("span",[t._v("已同意")]):t._e()]}}])}),a("el-table-column",{attrs:{label:"结果"},scopedSlots:t._u([{key:"default",fn:function(e){return[2==e.row.statusFlag&&1==e.row.auditFlag?a("span",[t._v("成功")]):t._e(),2==e.row.auditFlag?a("span",[t._v("--")]):t._e(),1==e.row.statusFlag&&1==e.row.auditFlag?a("el-popover",{attrs:{placement:"top",width:"200",trigger:"hover",content:e.row.reason}},[a("span",{staticClass:"common-bottom-border",attrs:{slot:"reference"},slot:"reference"},[t._v("失败")])]):t._e()]}}])})],1)],1)])],1)},o=[],r=a("96b6"),c=r["a"].getAuditDetail,u={name:"ReviewResultDetail",props:{detailShow:{type:Boolean,default:!1},auditIds:{type:String,default:function(){return""}},tableListData:{type:Object,default:function(){return[]}}},data:function(){return{customDialog:!1,tableData:[],fail:"",success:""}},mounted:function(){var t=this;t.customDialog=t.detailShow,t.auditIds&&(t.multLength=t.auditIds.split(",").length,t.getTableData())},methods:{handleClose:function(t){var e=this;t(),e.hideDialog()},customCancel:function(){var t=this;t.hideDialog()},hideDialog:function(){var t=this;t.customDialog=!1,t.$emit("hideDetailDialog")},getTableData:function(){var t=this,e={auditIds:t.auditIds};c(e).then((function(e){t.tableData=e.result.resultList||[],t.fail=e.result.fail,t.success=e.result.success})).catch((function(t){}))}},watch:{detailShow:function(t,e){var a=this;a.customDialog=t},auditIds:function(t,e){var a=this;t&&(a.multLength=t.split(",").length,a.getTableData())}}},d=u,f=(a("0fb7"),a("2877")),p=Object(f["a"])(d,l,o,!1,null,"62237765",null),g=p.exports,m=a("5b4e6"),h=a("d157"),v=a("e230"),b=v["a"].getStaffDetail,w=r["a"].getReview,C=r["a"].getWxEnterprise,D=r["a"].postAudit,_=r["a"].postBatchApprove,y=r["a"].postRefuse,x=r["a"].getAuditDetail,S={name:"UnreviewPage",components:{storeChange:s["a"],reviewResultDetail:g},data:function(){return{wxEnterpriseId:localStorage.getItem("haoBanUser")?JSON.parse(localStorage.getItem("haoBanUser")).wxEnterpriseId:"",auditName:localStorage.getItem("haoBanUser")?JSON.parse(localStorage.getItem("haoBanUser")).staffName:"",auditType:"",filterBrand:"",brandOptions:[],searchValue:"",filterOptions:[{label:"全部事项",value:""},{label:"导购账号绑定",value:"1"}],loading:!1,tableData:[],multipleSelection:[],currentPage:1,pageSize:20,total:0,selectId:"",ruleForm:{refuseReason:""},rules:{refuseReason:[{required:!0,message:"拒绝理由不能为空",trigger:"change"},{min:1,max:50,message:"长度在 1 到 50 个字",trigger:"change"}]},showStoreDialog:!1,storeChangeData:{beforeContent:[],afterContent:[]},approveVisible:!1,refuseVisible:!1,detailShow:!1,resultShow:!1,tableListData:[],resultText:"",failCount:"0",userData:{staffName:"",phoneNumber:"",nationCode:"",postion:"",departmentInfo:[],headImg:"",wxUserId:"",sex:1},dialogVisible:!1,loadBtn:!1,timeFlag:null,loadingFull:""}},mounted:function(){var t=this;t.$emit("showTab","/unreview"),t.getTableList(),t.getBrandData()},beforeDestroy:function(){window.clearInterval(this.timeFlag),this.timeFlag=null},methods:{clearSearch:function(){var t=this;t.currentPage=1,t.getTableList()},changeTableList:function(){var t=this;t.currentPage=1,t.getTableList()},searchEnterFun:Object(h["a"])((function(t){var e=this,a=String(t.target.value).trim();if(!a)return!1;e.currentPage=1,e.getTableList()}),200),hideDetailDialog:function(){var t=this;t.detailShow=!1,t.currentPage=1,t.getTableList()},handleSelectionChange:function(t){var e=this;e.multipleSelection=t},handleSizeChange:function(t){var e=this;e.currentPage=1,e.pageSize=t,e.getTableList()},handleCurrentChange:function(t){var e=this;e.currentPage=t,e.getTableList()},handleClick:function(t,e,a){var i=this;if(i.selectId=e.auditId,a&&(i.refuseVisible=!0),a)return!1;i.$confirm("是否确认同意?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){i.sendApprove()})).catch((function(){i.selectId=""}))},sendApprove:Object(h["a"])((function(){var t=this;t.postApprove(t.selectId)}),500),postApprove:function(t){var e=this,a={auditId:t,auditName:e.auditName};D(a).then((function(t){"0000"==t.code?(m["a"].showmsg("操作成功","success"),e.approveVisible=!1,e.currentPage=1,e.getTableList(),e.$forceUpdate()):(e.currentPage=1,e.getTableList(),e.$message({message:t.message||"接口异常",type:"warning"}))})).catch((function(t){}))},approveAll:function(){var t=this,e=t.multipleSelection.length?t.multipleSelection.map((function(t){return t.auditId})).join(","):"";if(!e)return t.$message({message:"请至少选择一条审核事项",type:"warning"}),!1;t.dialogVisible=!0},postAllApprove:function(t){var e=this;e.loadBtn=!0;var a={auditIds:t,auditName:e.auditName};_(a).then((function(t){e.loadBtn=!1,"0000"==t.code?(e.dialogVisible=!1,e.$nextTick((function(){e.loadingFull=e.$loading({lock:!0,text:"数据处理中,请耐心等待",spinner:"el-icon-loading",background:"rgba(0, 0, 0, 0.7)"}),window.clearInterval(e.timeFlag),e.timeFlag=null,e.timeFlag=window.setInterval((function(){e.getDetailFlag()}),3e3),e.$once("hook:beforeDestroy",(function(){window.clearInterval(e.timeFlag),e.timeFlag=null}))}))):e.$message({message:t.message||"接口异常",type:"warning"})})).catch((function(t){e.loadBtn=!1}))},getDetailFlag:function(){var t=this,e={auditIds:t.multipleSelection.map((function(t){return t.auditId})).join(",")||""};x(e).then((function(e){e.result.auditResult?(t.auditIds=t.multipleSelection.map((function(t){return t.auditId})).join(","),t.loadingFull.close(),window.clearInterval(t.timeFlag),t.timeFlag=null,t.detailShow=!0,t.currentPage=1,t.getTableList()):t.detailShow=!1})).catch((function(t){}))},cancelRefuse:function(t){var e=this;e.refuseVisible=!1,e.$refs["ruleForm"].resetFields()},sendRefuse:Object(h["a"])((function(t){var e=this;e.$refs[t].validate((function(t){if(!t)return!1;e.postRefuseData()}))}),500),postRefuseData:function(){var t=this,e={auditName:t.auditName,auditId:t.selectId,reason:Object(h["c"])(t.ruleForm.refuseReason)};y(e).then((function(e){"0000"==e.code?(m["a"].showmsg("操作成功","success"),t.refuseVisible=!1,t.$refs["ruleForm"].resetFields(),t.currentPage=1,t.getTableList()):(t.$message({message:e.message||"接口异常",type:"warning"}),t.currentPage=1,t.getTableList())})).catch((function(e){t.$message.error({duration:1e3,message:e.message})}))},showSingleInfo:function(t){var e=this,a={staffId:t};b(a).then((function(t){e.userData=t.result||{staffName:"",phoneNumber:"",nationCode:"",postion:"",departmentInfo:[],headImg:"",wxUserId:"",sex:1}})).catch((function(t){}))},showStoreChange:function(t){var e=this;e.storeChangeData={beforeContent:[],afterContent:[]},e.showStoreDialog=!0,e.storeChangeData={beforeContent:""!=t.oldValue?t.oldValue.split(","):[],afterContent:""!=t.newValue?t.newValue.split(","):[]}},getBrandData:function(){var t=this;C({wxEnterpriseId:t.wxEnterpriseId}).then((function(e){t.brandOptions=e.result||[]})).catch((function(t){}))},getTableList:function(){var t=this;t.loading=!0;var e={wxEnterpriseId:t.wxEnterpriseId,auditType:t.auditType,searchType:"0",search:t.searchValue,pageNum:t.currentPage,pageSize:t.pageSize,enterpriseId:t.filterBrand};w(e).then((function(e){t.loading=!1,t.tableData=e.result.result||[],t.total=e.result.totalCount})).catch((function(e){t.loading=!1}))}}},F=S,I=(a("c686"),Object(f["a"])(F,i,n,!1,null,"169957e5",null));e["default"]=I.exports},"5b4e6":function(t,e,a){"use strict";var i=a("5c96");e["a"]={showmsg:function(t,e){Object(i["Message"])({duration:1e3,message:t||"接口异常",type:e})}}},6300:function(t,e,a){"use strict";var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"custom-dialog-wrap"},[a("el-dialog",{attrs:{title:"门店图片变更",visible:t.customDialog,width:"600px","before-close":t.handleCardClose},on:{"update:visible":function(e){t.customDialog=e}}},[a("div",{staticClass:"dialog-content"},[a("el-row",[a("el-col",{attrs:{span:11}},[a("div",{staticClass:"grid-content bg-purple-dark"},[t._v("\n 变更前\n ")]),a("div",{staticClass:"data-body"},[a("div",{staticClass:"data-body-content flex flex-column"},[t._l(t.leftData,(function(t,e){return[a("img",{key:"img"+e,attrs:{src:t,alt:""}})]}))],2)])]),a("el-col",{attrs:{span:11}},[a("div",{staticClass:"grid-content bg-purple-dark"},[t._v("\n 变更后\n ")]),a("div",{staticClass:"data-body"},[a("div",{staticClass:"data-body-content flex flex-column"},[t._l(t.rightData,(function(t,e){return[a("img",{key:"img0"+e,attrs:{src:t,alt:""}})]}))],2)])])],1)],1)])],1)},n=[],s={name:"StoreChangeDialog",props:{value:{type:Boolean,default:!1},storeChangeData:{type:[Object,Array]}},data:function(){return{repProjectName:"haoban-web",customDialog:this.value,leftData:[],rightData:[]}},mounted:function(){var t=this;t.leftData=t.storeChangeData.beforeContent,t.rightData=t.storeChangeData.afterContent},methods:{handleCardClose:function(){var t=this;t.customCancel()},customCancel:function(){var t=this;t.customDialog=!1,t.$emit("input",t.customDialog)}},watch:{value:function(t,e){var a=this;a.customDialog=t},storeChangeData:function(t,e){var a=this;a.leftData=t.beforeContent,a.rightData=t.afterContent}}},l=s,o=(a("8709"),a("2877")),r=Object(o["a"])(l,i,n,!1,null,"bce7ed18",null);e["a"]=r.exports},"67ae":function(t,e,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 n}));a("ac6a"),a("456d");var i=a("b775");function n(t,e){t=t||{};var a=Object.keys(t);return a.forEach((function(a){var n=t[a];"string"===typeof n&&(n={url:n}),n.url="".concat(e).concat(n.url),t[a]=function(t){return Object(i["a"])(n,t)}})),t}},7842:function(t,e,a){},8709:function(t,e,a){"use strict";var i=a("7842"),n=a.n(i);n.a},"96b6":function(t,e,a){"use strict";var i=a("71f6"),n={getReview:"/audit/audit-list",getWxEnterprise:"/auth-enterprise-list",getStaffInfo:"/get-staff-info",postAudit:{url:"/audit/agree",method:"post",useFormData:!0,useIntercept:!1},postBatchApprove:{url:"/audit/batch-agree",method:"post",useFormData:!0,useIntercept:!1},postRefuse:{url:"/audit/refuse",method:"post",useFormData:!0,useIntercept:!1},getAuditDetail:"/audit/batch-log-list"};n=Object(i["a"])(n,"/hb-manage-web"),e["a"]=n},a605:function(t,e,a){},c686:function(t,e,a){"use strict";var i=a("a605"),n=a.n(i);n.a},d157:function(t,e,a){"use strict";a.d(e,"a",(function(){return i})),a.d(e,"b",(function(){return n})),a.d(e,"c",(function(){return s}));a("c5f6"),a("a481"),a("28a5"),a("6b54");function i(t,e){var a,i=e||200;return function(){var e=this,n=arguments;a&&clearTimeout(a),a=setTimeout((function(){a=null,t.apply(e,n)}),i)}}function n(t,e){var a,i,n=e||200;return function(){var e=this,s=arguments,l=+new Date;a&&l-a<n?(clearTimeout(i),i=setTimeout((function(){a=l,t.apply(e,s)}),n)):(a=l,t.apply(e,s))}}function s(t){return t=t.replace(/\uD83C[\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F]|[\uD800-\uDBFF]|[\uDC00-\uDFFF]|[^\u0020-\u007E\u00A0-\u00BE\u2E80-\uA4CF\uF900-\uFAFF\uFE30-\uFE4F\uFF00-\uFFEF\u0080-\u009F\u2000-\u201f\u2026\u2022\u20ac\r\n]/g,""),unescape(escape(t).replace(/\%uD.{3}/g,""))}},e230:function(t,e,a){"use strict";var i=a("71f6"),n={getSyncCheck:"/sync/sync-check",refreshWx:"/sync/sync-contact",getDepartmentList:"/department-list-level",getCompanyDepartList:"/contact/get-department-list",getStaffList:"/contact/get-staff-list",getStaffDetail:"/contact/staff-detail",getStaffRelation:"/bind/staff-clerk-relation",delStaffRelation:{url:"/bind/staff-unbind",method:"post",useFormData:!0,useIntercept:!1},addStaffRelation:{url:"/bind/staff-bind",method:"post",useFormData:!0,useIntercept:!1},getClerkRelation:"/bind/search-clerk-list",getWxEnterprise:"/auth-enterprise-list",getBindLog:"/bind/bind-log-list",getRefreshLog:"/sync/sync-task",getSyncFailDetail:"/sync-task-detail",getNationCode:"/nationcode/get-nationcode-list",getGicGroup:"/gic-department-list",getGicStore:"/get-store-list"};n=Object(i["a"])(n,"/hb-manage-web"),e["a"]=n}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-1fbcb7b4","chunk-33b0918a"],{"0082":function(e,t,o){"use strict";o.r(t);var i=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",[o("ul",{staticClass:"role-menu"},[Array.isArray(e.roleList)&&0!=e.roleList.length?e._e():o("li",{staticClass:"no-data"},[e._v("暂无数据")]),e._l(e.roleList,(function(t){return o("li",{key:t,class:["role-item",{active:e.activeRoleId==t.roleId}],on:{click:function(o){return e.onChangeRole(t)}}},[o("span",{staticClass:"role-name"},[e._v(e._s(t.roleName))]),o("el-dropdown",{attrs:{placement:"bottom-start"}},[o("i",{staticClass:"iconfont icongengduo edit-icon"}),o("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[o("el-dropdown-item",{nativeOn:{click:function(o){return e.onEditRole(t)}}},[e._v("编辑")]),e.showDelRoleButton?o("el-dropdown-item",{nativeOn:{click:function(o){return e.onDelRole(t)}}},[e._v("删除")]):e._e()],1)],1)],1)}))],2),o("el-dialog",{attrs:{visible:e.delRole.show,title:"删除角色",width:"600px"},on:{"update:visible":function(t){return e.$set(e.delRole,"show",t)},closed:e.onDelRoleClose}},[o("div",{staticClass:"del-role"},[o("i",{staticClass:"el-icon-warning"}),o("div",{staticClass:"del-role-content"},[o("p",{staticClass:"del-role-tip"},[e._v("确认删除“"+e._s(e.delRole.roleName)+"”角色吗?")]),o("p",{staticClass:"del-role-tip"},[e._v("请在输入框中输入该角色名称,以避免误操作。")]),o("el-input",{staticStyle:{"margin-top":"10px",width:"440px"},model:{value:e.delRole.roleNameInput,callback:function(t){e.$set(e.delRole,"roleNameInput","string"===typeof t?t.trim():t)},expression:"delRole.roleNameInput"}})],1)]),o("template",{slot:"footer"},[o("el-button",{on:{click:function(t){e.delRole.show=!1}}},[e._v("取消")]),o("el-button",{attrs:{type:"primary",loading:e.delRole.loading},on:{click:e.onDelRoleSure}},[e._v("确定")])],1)],2)],1)},n=[],r=(o("c5f6"),o("f286")),l=r["a"].delRole,a={name:"RoleList",props:{roleList:{type:Array,default:function(){return[]}},activeRoleId:[String,Number],showDelRoleButton:{type:Boolean,default:!1}},data:function(){return{delRole:{show:!1,loading:!1,roleId:"",roleName:"",roleNameInput:""}}},methods:{onChangeRole:function(e){this.$emit("change-role",e)},onEditRole:function(e){this.$emit("edit-role",e)},onDelRole:function(e){var t=e.roleId,o=e.roleName;Object.assign(this.delRole,{show:!0,roleId:t,roleName:o})},onDelRoleClose:function(){Object.assign(this.delRole,{roleId:"",roleName:"",roleNameInput:""})},onDelRoleSure:function(){var e=this,t=this.delRole,o=t.roleId,i=t.roleName,n=t.roleNameInput;return 0==n.length?this.$message.warning("请输入角色名称!"):i!=n?this.$message.warning("请输入正确的角色名称!"):(this.delRole.loading=!0,void l({roleId:o}).then((function(t){"0000"==t.code&&(e.$message.success("删除成功!"),e.$emit("del-role-succ",o==e.activeRoleId),e.delRole.show=!1)})).finally((function(){return e.delRole.loading=!1})))}}},s=a,c=(o("575f"),o("2877")),d=Object(c["a"])(s,i,n,!1,null,"7c337432",null);t["default"]=d.exports},2058:function(e,t,o){"use strict";o.r(t);var i=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"store-admin-list"},[o("div",{staticClass:"store-role-list"},[0==e.roleList.length?o("p",{staticClass:"no-data"},[e._v("暂无数据")]):e._e(),e._l(e.roleList,(function(t){return o("div",{key:t.enterpriseId},[o("h3",{staticClass:"role-title"},[o("i",{staticClass:"iconfont iconshanghu role-title-icon"}),o("p",{staticClass:"role-title-text"},[e._v(e._s(t.enterpriseName))])]),o("role-list",{attrs:{"role-list":t.roleList,"active-role-id":e.activeRoleId},on:{"edit-role":e.onEditRole,"change-role":e.onChangeRole}})],1)}))],2),o("div",{staticClass:"admin-list"},[o("h3",{staticClass:"admin-list-title"},[e._v("门店成员列表")]),o("el-input",{staticStyle:{width:"238px"},attrs:{placeholder:"请输入姓名/账号/手机号码","prefix-icon":"el-icon-search",clearable:""},on:{change:e.onSearch},model:{value:e.search,callback:function(t){e.search="string"===typeof t?t.trim():t},expression:"search"}}),o("el-alert",{staticStyle:{float:"right",width:"720px"},attrs:{type:"info",title:"拥有门店的权限,能进行一些门店日常业务,如打标签,完成话务等。必须是导购账号 ,不可添加删除门店成员。",closable:!1,"show-icon":""}}),o("el-table",{staticStyle:{"margin-top":"20px"},attrs:{data:e.adminList}},[o("el-table-column",{attrs:{label:"姓名",prop:"staffName",formatter:function(e,t,o){return o||"--"}}}),o("el-table-column",{attrs:{label:"账号",prop:"wxUserId",formatter:function(e,t,o){return o||"--"}}}),o("el-table-column",{attrs:{label:"手机号码",prop:"phoneNumber",formatter:function(e,t,o){return o||"--"}}})],1),e.pager.total>0?o("dm-pagination",{staticStyle:{"text-align":"right"},attrs:{background:"",layout:"total,sizes,prev,pager,next",total:e.pager.total,"page-sizes":e.pager.pageSizes,"page-size":e.pager.pageSize,"current-page":e.pager.currentPage},on:{"current-change":e.onCurrentChange,"size-change":e.onSizeChange}}):e._e()],1)])},n=[],r=(o("386d"),o("5df3"),o("ac6a"),o("0082")),l=o("f286"),a=l["a"].enterpriseList,s=l["a"].roleList,c=l["a"].roleAdminList,d={name:"StoreAdminList",components:{RoleList:r["default"]},data:function(){return{roleList:[],activeRoleId:"",enterpriseId:"",adminList:[],search:"",pager:{total:0,pageSizes:[20,40,60,80],pageSize:20,currentPage:1}}},created:function(){this.$emit("showTab","/store-admin-list"),this.getRoleList()},methods:{getRoleList:function(){var e=this,t=JSON.parse(localStorage.getItem("haoBanUser")||"{}"),o=t.wxEnterpriseId,i=[];o&&a({wxEnterpriseId:o}).then((function(t){var o=t.result||[];e.roleList=o.map((function(e){var t=e.enterpriseId,o=e.enterpriseName;return{enterpriseId:t,enterpriseName:o,roleList:[]}})),0!=e.roleList.length&&(e.roleList.forEach((function(e){i.push(s({enterpriseId:e.enterpriseId,roleType:1}).then((function(t){e.roleList=t.result||[]})))})),Promise.all(i).then((function(){e.activeRoleId||e.roleList.some((function(t){return t.roleList.length>0&&(e.activeRoleId=t.roleList[0].roleId,e.enterpriseId=t.roleList[0].enterpriseId),t.roleList.length>0})),e.activeRoleId&&e.getAdminList()})))}))},getAdminList:function(){var e=this,t={roleId:this.activeRoleId,enterpriseId:this.enterpriseId,search:this.search,pageNum:this.pager.currentPage,pageSize:this.pager.pageSize};c(t).then((function(t){var o=t.result||{},i=o.totalCount,n=o.result;e.pager.total=i||0,e.adminList=n||[]}))},onChangeRole:function(e){var t=e.roleId,o=e.enterpriseId;this.activeRoleId=t,this.enterpriseId=o,this.search="",this.pager.currentPage=1,this.getAdminList()},onEditRole:function(e){this.$router.push("/edit-store-role?roleId=".concat(e.roleId))},onSearch:function(){this.pager.currentPage=1,this.getAdminList()},onSizeChange:function(e){this.pager.pageSize=e,this.onSearch()},onCurrentChange:function(e){this.pager.currentPage=e,this.getAdminList()}}},u=d,p=(o("b14d"),o("2877")),h=Object(p["a"])(u,i,n,!1,null,"3f411422",null);t["default"]=h.exports},3018:function(e,t,o){},"44e1":function(e,t,o){},"575f":function(e,t,o){"use strict";var i=o("44e1"),n=o.n(i);n.a},"71f6":function(e,t,o){"use strict";o.d(t,"a",(function(){return n}));o("ac6a"),o("456d");var i=o("b775");function n(e,t){e=e||{};var o=Object.keys(e);return o.forEach((function(o){var n=e[o];"string"===typeof n&&(n={url:n}),n.url="".concat(t).concat(n.url),e[o]=function(e){return Object(i["a"])(n,e)}})),e}},b14d:function(e,t,o){"use strict";var i=o("3018"),n=o.n(i);n.a},f286:function(e,t,o){"use strict";var i=o("71f6"),n={addRole:{url:"/add-role",method:"post",useFormData:!0},delRole:"/role-del",editRole:{url:"/role-edit",method:"post",useFormData:!0},roleDetail:"/role-detail",roleList:"/role-list",menuList:"/menu-list",roleAdminList:"/role-admin-list",delAdmin:"/admin-del",enterpriseList:"/auth-enterprise-list",resourceList:"/resource-list"};t["a"]=Object(i["a"])(n,"/hb-manage-web")}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2150c8a8"],{"0d25":function(e,t,n){"use strict";var a=n("ec21"),i=n.n(a);i.a},"0ef2":function(e,t,n){"use strict";var a=n("50e5"),i=n.n(a);i.a},"28a5":function(e,t,n){"use strict";var a=n("aae3"),i=n("cb7c"),r=n("ebd6"),o=n("0390"),c=n("9def"),s=n("5f1b"),l=n("520a"),u=n("79e5"),h=Math.min,f=[].push,d="split",m="length",p="lastIndex",v=4294967295,b=!u((function(){RegExp(v,"y")}));n("214f")("split",2,(function(e,t,n,u){var g;return g="c"=="abbc"[d](/(b)*/)[1]||4!="test"[d](/(?:)/,-1)[m]||2!="ab"[d](/(?:ab)*/)[m]||4!="."[d](/(.?)(.?)/)[m]||"."[d](/()()/)[m]>1||""[d](/.?/)[m]?function(e,t){var i=String(this);if(void 0===e&&0===t)return[];if(!a(e))return n.call(i,e,t);var r,o,c,s=[],u=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),h=0,d=void 0===t?v:t>>>0,b=new RegExp(e.source,u+"g");while(r=l.call(b,i)){if(o=b[p],o>h&&(s.push(i.slice(h,r.index)),r[m]>1&&r.index<i[m]&&f.apply(s,r.slice(1)),c=r[0][m],h=o,s[m]>=d))break;b[p]===r.index&&b[p]++}return h===i[m]?!c&&b.test("")||s.push(""):s.push(i.slice(h)),s[m]>d?s.slice(0,d):s}:"0"[d](void 0,0)[m]?function(e,t){return void 0===e&&0===t?[]:n.call(this,e,t)}:n,[function(n,a){var i=e(this),r=void 0==n?void 0:n[t];return void 0!==r?r.call(n,i,a):g.call(String(i),n,a)},function(e,t){var a=u(g,e,this,t,g!==n);if(a.done)return a.value;var l=i(e),f=String(this),d=r(l,RegExp),m=l.unicode,p=(l.ignoreCase?"i":"")+(l.multiline?"m":"")+(l.unicode?"u":"")+(b?"y":"g"),w=new d(b?l:"^(?:"+l.source+")",p),C=void 0===t?v:t>>>0;if(0===C)return[];if(0===f.length)return null===s(w,f)?[f]:[];var x=0,y=0,S=[];while(y<f.length){w.lastIndex=b?y:0;var N,T=s(w,b?f:f.slice(y));if(null===T||(N=h(c(w.lastIndex+(b?0:y)),f.length))===x)y=o(f,y,m);else{if(S.push(f.slice(x,y)),S.length===C)return S;for(var D=1;D<=T.length-1;D++)if(S.push(T[D]),S.length===C)return S;y=x=N}}return S.push(f.slice(x)),S}]}))},"503e":function(e,t,n){"use strict";var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"p-t-12"},[n("ul",{staticClass:"tab-left-list"},[e._l(e.tabData,(function(t,a){return[n("li",{key:a,class:["tab-left-list-cell color-303133 font-14 border-box p-l-14",t.menuUrl!=e.activeTab||t.children.length?"":"active-tab"],on:{click:function(n){return e.selectTab(t,!1,a)}}},[n("i",{class:["p-r-10 color-303133 iconfont",t.iconUrl,(t.onlyIconActive,"")]}),e._v(e._s(t.tabName)+"\n ")]),n("ul",{key:"childitem"+a,staticClass:"child-tab-left-list"},[e._l(t.children,(function(t,i){return[n("li",{key:i,class:["tab-left-list-cell color-303133 font-14 border-box p-l-40",t.menuUrl!=e.activeTab||t.children.length?"":"active-tab"],on:{click:function(n){return e.selectTab(t,"child",a)}}},[e._v(e._s(t.tabName))]),n("ul",{key:"thirditem"+i,staticClass:"third-tab-left-list"},[e._l(t.children,(function(t,i){return[n("li",{key:i,class:["tab-left-list-cell color-303133 font-14 border-box p-l-60",t.menuUrl!=e.activeTab||t.children.length?"":"active-tab"],on:{click:function(n){return e.selectTab(t,"child",a)}}},[e._v(e._s(t.tabName))])]}))],2)]}))],2)]}))],2)])},i=[],r=(n("ac6a"),n("c5f6"),{name:"CommonDetailLeft",props:{appName:{type:String,default:function(){return""}},activeSelTab:{type:[String,Number],default:function(){return""}},tabListData:{type:[Array,Object],default:function(){return[]}}},data:function(){return{projectName:"",activeTab:"1",tabData:this.tabListData,collapsFlag:!0}},mounted:function(){this.activeTab=this.activeSelTab},methods:{returnBack:function(){var e=this;e.$router.push("appcenter")},selectTab:function(e,t,n){var a=this;if(t?a.tabData[n].onlyIconActive=!0:(a.tabData.forEach((function(e){e.onlyIconActive=!1})),e.hasOwnProperty("children")&&e.children.length&&(a.collapsFlag=!(a.collapsFlag&&e.hasOwnProperty("children")&&e.children.length))),e.hasOwnProperty("children")&&e.children.length)return a.tabData[n].onlyIconActive=!0,e.children[0]&&e.children[0].hasOwnProperty("children")&&e.children[0].children.length?(a.activeTab=e.children[0].children[0].menuUrl,a.$emit("setSelectTab",e.children[0].children[0]),!1):(a.activeTab=e.children[0].menuUrl,a.$emit("setSelectTab",e.children[0]),!1);a.activeTab=e.menuUrl,a.$emit("setSelectTab",e)}},watch:{tabListData:function(e,t){var n=this;n.tabData=e},activeSelTab:function(e,t){var n=this;n.activeTab=e}}}),o=r,c=(n("0ef2"),n("2877")),s=Object(c["a"])(o,a,i,!1,null,"51e072e6",null);t["a"]=s.exports},"50e5":function(e,t,n){},5937:function(e,t,n){"use strict";var a=n("71f6"),i={getRoleMenu:"/list-staff-role-menu"};i=Object(a["a"])(i,"/hb-manage-web"),t["a"]=i},"6ce2":function(e,t,n){e.exports=n.p+"img/member.1eda5d6c.png"},"71f6":function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));n("ac6a"),n("456d");var a=n("b775");function i(e,t){e=e||{};var n=Object.keys(e);return n.forEach((function(n){var i=e[n];"string"===typeof i&&(i={url:i}),i.url="".concat(t).concat(i.url),e[n]=function(e){return Object(a["a"])(i,e)}})),e}},"7ded":function(e,t,n){"use strict";var a=n("71f6"),i={getLoginQrcode:"/get-login-qrcode",getUserInfo:"/get-login-user",loginOut:{url:"/login-out",method:"post",useFormData:!0}};i=Object(a["a"])(i,"/hb-manage-web/auth"),t["a"]=i},cc0d:function(e,t,n){"use strict";var a=n("ed94"),i=n.n(a);i.a},ea02:function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"my-customer-wrap common-set-wrap"},[n("vue-office-header",{attrs:{"project-name":e.projectName},on:{collapseTag:e.collapseTag,toRouterView:e.toRouterView,leftData:e.leftData}}),n("div",{staticClass:"enterprise-wrap__body"},[n("div",{staticClass:"content",attrs:{id:"content"}},[n("div",{staticClass:"content-body"},[n("div",{staticClass:"right-content border-box",style:{padding:e.showAsideMenu?"20px":"0 20px 20px 20px"}},[n("div",{staticClass:"right-box",staticStyle:{"min-height":"calc(100vh - 86px)"}},[n("div",{staticClass:"apps-content flex",staticStyle:{"min-height":"calc(100vh - 86px)"}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.showAsideMenu,expression:"showAsideMenu"}],staticClass:"apps-content-left w-157",staticStyle:{"min-height":"calc(100vh - 86px)"}},[n("common-detail-left",{attrs:{"tab-list-data":e.tabListData,"active-sel-tab":e.activeSelTab},on:{setSelectTab:e.setSelectTab}})],1),n("div",{staticClass:"apps-content-right border-box",style:{width:e.showAsideMenu?"calc(100% - 157px)":"100%",paddingLeft:e.showAsideMenu?"10px":"0"}},[n("transition",{attrs:{name:"fade",mode:"out-in"}},[n("router-view",{attrs:{"brand-id":e.activeBrand,"active-group-id":e.activeGroup,"tab-type":e.activeTab},on:{showTab:e.showTab,showAsideMenu:function(t){return e.showAsideMenu=t}}})],1)],1)])])])])])])],1)},i=[],r=(n("ac6a"),n("503e")),o=n("f777"),c={name:"EnterpriseSetIndex",components:{commonDetailLeft:r["a"],vueOfficeHeader:o["a"]},data:function(){return{bgHeight:window.screen.availHeight-288+"px",activeSelTab:"1",activeTab:"1",tabListData:[],activeBrand:"",activeGroup:"",showAsideMenu:!0}},mounted:function(){document.documentElement.style.backgroundColor="#f0f2f5"},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},methods:{toRouterView:function(e){var t=this;t.$router.push({path:e.path})},changeRoute:function(e){this.$router.push(e)},selectBrandId:function(e,t){var n=this;n.activeBrand=e,n.activeGroup=t},setSelectTab:function(e){var t=this;t.activeTab=e.menuUrl,1==e.target?-1!=e.menuUrl.indexOf("http")?window.open(e.menuUrl):window.open("/haoban-4/#".concat(e.menuUrl)):t.$router.push(e.menuUrl)},showTab:function(e){var t=this;t.activeTab=e,t.activeSelTab=e,t.tabListData.forEach((function(t){t.menuUrl==e&&(t.onlyIconActive=!1),t.children&&t.children.forEach((function(n){n.menuUrl==e&&(t.onlyIconActive=!0),n.children&&n.children.forEach((function(n){n.menuUrl==e&&(t.onlyIconActive=!0)}))}))}))},leftData:function(e){var t=this;e[0].children.forEach((function(e,n){e.tabId=n+1,e.tabName=e.menuName,e.children&&e.children.length&&t.setChildData(e,n+1)})),t.tabListData=e[0].children},setChildData:function(e,t){var n=this;e.children.forEach((function(e,a){e.tabId=t+"-"+(a+1),e.tabName=e.menuName,e.children&&e.children.length&&n.setChildData(e,t+"-"+(a+1))}))}},watch:{"$route.path":function(){this.showAsideMenu=!0},activeBrand:function(e,t){var n=this;n.activeBrand=e},activeGroup:function(e,t){var n=this;n.activeGroup=e}}},s=c,l=(n("0d25"),n("2877")),u=Object(l["a"])(s,a,i,!1,null,"d0aed7ba",null);t["default"]=u.exports},ec21:function(e,t,n){},ed94:function(e,t,n){},f777:function(e,t,n){"use strict";var a=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"nav-header"},[a("div",{staticClass:"nav-header-logo fl cursor-pointer",on:{click:e.toIndex}},[a("span",{staticClass:"pro-name"},[e._v("好办管理平台")])]),a("div",{staticClass:"nav-header-item fl"},[e._l(e.menuHead,(function(t,n){return[a("a",{key:n,class:["item-link menu-font-16"],on:{click:function(n){return e.changeRouter(t)}}},[a("span",{class:["inline-block bottom",-1!=t.menuUrl.indexOf(e.pathName)?"current-module":""]},[e._v(e._s(t.menuName))])])]})),a("div",{staticClass:"navuser-info fr"},[e.userInfo.headImg?a("img",{staticClass:"user-img",attrs:{src:e.userInfo.headImg,alt:""}}):a("img",{staticClass:"user-img",attrs:{src:n("6ce2"),alt:"img"}}),a("el-popover",{staticStyle:{"min-width":"95px"},attrs:{placement:"bottom",title:"",width:"95",trigger:"hover","popper-class":"user-header-pop"}},[a("ul",{staticClass:"navsuer-wrap"},[a("li",[a("p",{staticClass:"font-14 color-606266 hide-item"},[e._v(e._s(e.userInfo.staffName||"--"))]),a("p",{staticClass:"font-12 color-909399 hide-item"},[e._v(e._s(e.userInfo.roleName||"--"))])]),a("li",{staticClass:"user-item text-align",on:{click:function(t){return t.stopPropagation(),e.toLoginOut(t)}}},[a("a",{staticClass:"user-text"},[e._v("退出登录")])])]),a("a",{staticClass:"nav-user-name",attrs:{slot:"reference"},slot:"reference"},[a("span",{staticClass:"font-12 color-606266"},[e._v(e._s(e.userInfo.staffName||"--"))]),a("i",{staticClass:"iconfont iconxiala arrowico color-c0c4cc"})])])],1)],2)])},i=[],r=(n("456d"),n("96cf"),n("1da1")),o=(n("ac6a"),n("28a5"),n("7ded")),c=n("5937"),s=c["a"].getRoleMenu,l=o["a"].getUserInfo,u=o["a"].loginOut,h={name:"VueOfficeHeader",components:{},data:function(){return{checkShow:!0,tipText:"请先完成商户初始化设置后,再进行其他操作",repProjectName:"haoban-manage-web",pathName:"",isCollapse:!1,menuHead:[],roleMenuData:[],routePathName:"",userInfo:{staffName:"",nationCode:"",phoneNumber:"",headImg:"",wxEnterpriseId:"",roleName:""}}},mounted:function(){var e=this;e.pathName=e.$route.path,e.routePathName=window.location.hash.split("/")[1],-1!=e.routePathName.indexOf("?")&&(e.routePathName=e.routePathName.split("?")[0]),-1!=e.routePathName.indexOf("/")&&(e.routePathName=e.routePathName.split("/")[0]),localStorage.removeItem("haoBanUser"),e.toLogin()},methods:{toIndex:function(){var e=this;e.$router.push("/contactsList")},changeRouter:function(e){var t=this;if(1==e.target)-1!=e.menuUrl.indexOf("http")?window.open(e.menuUrl):window.open("/haoban-4/#".concat(e.menuUrl));else{t.setleftData(e);var n={};t.roleMenuData.forEach((function(t){e.menuCode!=t.menuCode||t.children.length||(n=t),e.menuCode==t.menuCode&&t.children.length&&(n=t.children[0])})),t.$router.push(n.menuUrl)}},setleftData:function(e){var t=this,n=[];t.roleMenuData.forEach((function(t){e.menuCode==t.menuCode&&n.push(t)})),t.$emit("leftData",n)},toLoginOut:function(){var e=this;e.$confirm("确认退出吗?","提示",{type:"warning"}).then((function(){u({}).then((function(t){"0000"==t.code&&(e.$message({message:"退出成功",type:"success"}),localStorage.removeItem("haoBanUser"),window.location.href=window.location.origin+"/haoban-4/#/login")})).catch((function(e){}))})).catch((function(){}))},toRouter:function(e,t,n){var a=this,i={path:"/"+e,name:t};a.$emit("toRouterView",i)},toLogin:function(){var e=this;l({}).then((function(t){t.result||(t.result={loginStaff:{staffName:"",nationCode:"",phoneNumber:"",headImg:"",wxEnterpriseId:""},role:{roleName:""}}),localStorage.setItem("haoBanUser",JSON.stringify(t.result.loginStaff)),e.userInfo=Object.assign(t.result.loginStaff,t.result.role),e.getData()})).catch((function(e){}))},treeData:function(e){var t=e.filter((function(t){var n=e.filter((function(e){return t.menuCode==e.parentCode&&1==e.isShow}));return n.length>0?(t.hasSonNode=!0,t.children=n):(t.children=[],t.hasSonNode=!1),""==t.parentCode&&1==t.isShow}));return t},getData:function(){var e=this,t={};s(t).then(function(){var t=Object(r["a"])(regeneratorRuntime.mark((function t(n){var a,i,r,o;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if("0000"!=n.code){t.next=14;break}return a=[],i={},r={},n.result.forEach((function(t){1==t.level&&1==t.isShow&&a.push(t),e.$route.path==t.menuUrl&&1==t.level&&1==t.isShow&&(i=t),e.$route.path==t.menuUrl&&1!=t.level&&(r=t)})),e.menuHead=a,t.next=8,e.treeData(JSON.parse(JSON.stringify(n.result)));case 8:e.roleMenuData=t.sent,Object.keys(r).length&&2==r.level&&n.result.forEach((function(e){r.parentCode==e.menuCode&&1==e.level&&1==e.isShow&&(i=e)})),o={},Object.keys(r).length&&3==r.level&&n.result.forEach((function(e){r.parentCode==e.menuCode&&2==e.level&&1==e.isShow&&(o=e)})),Object.keys(o).length&&2==o.level&&n.result.forEach((function(e){o.parentCode==e.menuCode&&1==e.level&&1==e.isShow&&(i=e)})),e.setleftData(i);case 14:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(e){}))}}},f=h,d=(n("cc0d"),n("2877")),m=Object(d["a"])(f,a,i,!1,null,"2a4f88b9",null);t["a"]=m.exports}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-220f7958"],{5937:function(e,t,n){"use strict";var a=n("71f6"),o={getRoleMenu:"/list-staff-role-menu"};o=Object(a["a"])(o,"/hb-manage-web"),t["a"]=o},"6ce2":function(e,t,n){e.exports=n.p+"img/member.1eda5d6c.png"},"71f6":function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));n("ac6a"),n("456d");var a=n("b775");function o(e,t){e=e||{};var n=Object.keys(e);return n.forEach((function(n){var o=e[n];"string"===typeof o&&(o={url:o}),o.url="".concat(t).concat(o.url),e[n]=function(e){return Object(a["a"])(o,e)}})),e}},"7ded":function(e,t,n){"use strict";var a=n("71f6"),o={getLoginQrcode:"/get-login-qrcode",getUserInfo:"/get-login-user",loginOut:{url:"/login-out",method:"post",useFormData:!0}};o=Object(a["a"])(o,"/hb-manage-web/auth"),t["a"]=o},"7f2e":function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"enterprise-wrap"},[n("vue-office-header",{attrs:{"project-name":e.projectName},on:{collapseTag:e.collapseTag,toRouterView:e.toRouterView}}),n("div",{staticClass:"enterprise-wrap__body"},[n("div",{staticClass:"content",attrs:{id:"content"}},[n("div",{staticClass:"content-body",style:{height:e.contentHeight}},[n("transition",{attrs:{name:"fade",mode:"out-in"}},[n("router-view")],1)],1)])])],1)},o=[],r=n("f777"),i={name:"AppIndexPage",components:{vueOfficeHeader:r["a"]},data:function(){return{projectName:"haoban-manage-web",collapseFlag:!1,contentHeight:window.screen.availHeight-5+"px"}},mounted:function(){var e=this;e.contentHeight=(document.documentElement.clientHeight||document.body.clientHeight)-64+"px"},methods:{toRouterView:function(e){var t=this;t.$router.push({path:e.path})},collapseTag:function(e){var t=this;t.collapseFlag=e}},computed:{}},s=i,c=(n("ed60"),n("2877")),u=Object(c["a"])(s,a,o,!1,null,"7b2e96ec",null);t["default"]=u.exports},cc0d:function(e,t,n){"use strict";var a=n("ed94"),o=n.n(a);o.a},ed60:function(e,t,n){"use strict";var a=n("fc51"),o=n.n(a);o.a},ed94:function(e,t,n){},f777:function(e,t,n){"use strict";var a=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"nav-header"},[a("div",{staticClass:"nav-header-logo fl cursor-pointer",on:{click:e.toIndex}},[a("span",{staticClass:"pro-name"},[e._v("好办管理平台")])]),a("div",{staticClass:"nav-header-item fl"},[e._l(e.menuHead,(function(t,n){return[a("a",{key:n,class:["item-link menu-font-16"],on:{click:function(n){return e.changeRouter(t)}}},[a("span",{class:["inline-block bottom",-1!=t.menuUrl.indexOf(e.pathName)?"current-module":""]},[e._v(e._s(t.menuName))])])]})),a("div",{staticClass:"navuser-info fr"},[e.userInfo.headImg?a("img",{staticClass:"user-img",attrs:{src:e.userInfo.headImg,alt:""}}):a("img",{staticClass:"user-img",attrs:{src:n("6ce2"),alt:"img"}}),a("el-popover",{staticStyle:{"min-width":"95px"},attrs:{placement:"bottom",title:"",width:"95",trigger:"hover","popper-class":"user-header-pop"}},[a("ul",{staticClass:"navsuer-wrap"},[a("li",[a("p",{staticClass:"font-14 color-606266 hide-item"},[e._v(e._s(e.userInfo.staffName||"--"))]),a("p",{staticClass:"font-12 color-909399 hide-item"},[e._v(e._s(e.userInfo.roleName||"--"))])]),a("li",{staticClass:"user-item text-align",on:{click:function(t){return t.stopPropagation(),e.toLoginOut(t)}}},[a("a",{staticClass:"user-text"},[e._v("退出登录")])])]),a("a",{staticClass:"nav-user-name",attrs:{slot:"reference"},slot:"reference"},[a("span",{staticClass:"font-12 color-606266"},[e._v(e._s(e.userInfo.staffName||"--"))]),a("i",{staticClass:"iconfont iconxiala arrowico color-c0c4cc"})])])],1)],2)])},o=[],r=(n("456d"),n("96cf"),n("1da1")),i=(n("ac6a"),n("28a5"),n("7ded")),s=n("5937"),c=s["a"].getRoleMenu,u=i["a"].getUserInfo,l=i["a"].loginOut,f={name:"VueOfficeHeader",components:{},data:function(){return{checkShow:!0,tipText:"请先完成商户初始化设置后,再进行其他操作",repProjectName:"haoban-manage-web",pathName:"",isCollapse:!1,menuHead:[],roleMenuData:[],routePathName:"",userInfo:{staffName:"",nationCode:"",phoneNumber:"",headImg:"",wxEnterpriseId:"",roleName:""}}},mounted:function(){var e=this;e.pathName=e.$route.path,e.routePathName=window.location.hash.split("/")[1],-1!=e.routePathName.indexOf("?")&&(e.routePathName=e.routePathName.split("?")[0]),-1!=e.routePathName.indexOf("/")&&(e.routePathName=e.routePathName.split("/")[0]),localStorage.removeItem("haoBanUser"),e.toLogin()},methods:{toIndex:function(){var e=this;e.$router.push("/contactsList")},changeRouter:function(e){var t=this;if(1==e.target)-1!=e.menuUrl.indexOf("http")?window.open(e.menuUrl):window.open("/haoban-4/#".concat(e.menuUrl));else{t.setleftData(e);var n={};t.roleMenuData.forEach((function(t){e.menuCode!=t.menuCode||t.children.length||(n=t),e.menuCode==t.menuCode&&t.children.length&&(n=t.children[0])})),t.$router.push(n.menuUrl)}},setleftData:function(e){var t=this,n=[];t.roleMenuData.forEach((function(t){e.menuCode==t.menuCode&&n.push(t)})),t.$emit("leftData",n)},toLoginOut:function(){var e=this;e.$confirm("确认退出吗?","提示",{type:"warning"}).then((function(){l({}).then((function(t){"0000"==t.code&&(e.$message({message:"退出成功",type:"success"}),localStorage.removeItem("haoBanUser"),window.location.href=window.location.origin+"/haoban-4/#/login")})).catch((function(e){}))})).catch((function(){}))},toRouter:function(e,t,n){var a=this,o={path:"/"+e,name:t};a.$emit("toRouterView",o)},toLogin:function(){var e=this;u({}).then((function(t){t.result||(t.result={loginStaff:{staffName:"",nationCode:"",phoneNumber:"",headImg:"",wxEnterpriseId:""},role:{roleName:""}}),localStorage.setItem("haoBanUser",JSON.stringify(t.result.loginStaff)),e.userInfo=Object.assign(t.result.loginStaff,t.result.role),e.getData()})).catch((function(e){}))},treeData:function(e){var t=e.filter((function(t){var n=e.filter((function(e){return t.menuCode==e.parentCode&&1==e.isShow}));return n.length>0?(t.hasSonNode=!0,t.children=n):(t.children=[],t.hasSonNode=!1),""==t.parentCode&&1==t.isShow}));return t},getData:function(){var e=this,t={};c(t).then(function(){var t=Object(r["a"])(regeneratorRuntime.mark((function t(n){var a,o,r,i;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if("0000"!=n.code){t.next=14;break}return a=[],o={},r={},n.result.forEach((function(t){1==t.level&&1==t.isShow&&a.push(t),e.$route.path==t.menuUrl&&1==t.level&&1==t.isShow&&(o=t),e.$route.path==t.menuUrl&&1!=t.level&&(r=t)})),e.menuHead=a,t.next=8,e.treeData(JSON.parse(JSON.stringify(n.result)));case 8:e.roleMenuData=t.sent,Object.keys(r).length&&2==r.level&&n.result.forEach((function(e){r.parentCode==e.menuCode&&1==e.level&&1==e.isShow&&(o=e)})),i={},Object.keys(r).length&&3==r.level&&n.result.forEach((function(e){r.parentCode==e.menuCode&&2==e.level&&1==e.isShow&&(i=e)})),Object.keys(i).length&&2==i.level&&n.result.forEach((function(e){i.parentCode==e.menuCode&&1==e.level&&1==e.isShow&&(o=e)})),e.setleftData(o);case 14:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(e){}))}}},h=f,m=(n("cc0d"),n("2877")),d=Object(m["a"])(h,a,o,!1,null,"2a4f88b9",null);t["a"]=d.exports},fc51:function(e,t,n){}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-3433c9cf"],{"0912":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 - 126px)"}},[n("div",{staticClass:"apps-content flex",staticStyle:{"min-height":"calc(100vh - 126px)"}},[n("div",{staticClass:"apps-content-right"},[n("div",{staticClass:"flex flex-space-between"},[n("div",{staticClass:"flex "},[n("div",{staticClass:"auth-merchant-img"},[t.enterpriseObj.logo?n("img",{attrs:{src:t.enterpriseObj.logo,alt:""}}):n("img",{attrs:{src:a("6ce2"),alt:"img"}})]),n("div",[n("div",{staticClass:"auth-merchant-name flex"},[n("span",{staticClass:"font-14 color-606266 merchant-name-span"},[t._v(t._s(t.enterpriseObj.enterpriseName||"--"))]),n("el-tag",{staticClass:"m-l-10",attrs:{size:"mini",type:"danger"}},[t._v(t._s(t.enterpriseObj.versionName||"4.0"))])],1),n("div",{staticClass:"auth-merchant-name flex"},[n("span",{staticClass:"font-14 color-606266 merchant-name-span"},[t._v(t._s(t.enterpriseObj.brandName||"--"))])])])]),n("common-alert-tip",{attrs:{width:"284px","tip-content":t.tipContent}})],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:{label:"申请事项","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.userName||"商户授权"))]}}])}),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.auditReason||"--")+"\n ")]}}])}),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("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("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.referStaffName||"--")+"\n ")]}}])}),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.auditName||"--"))]}}])}),n("el-table-column",{attrs:{prop:"",label:"审核结果"},scopedSlots:t._u([{key:"default",fn:function(e){return[0==e.row.statusFlag?n("span",[t._v("待同意")]):t._e(),1==e.row.statusFlag?n("span",[t._v("已同意")]):t._e(),3==e.row.statusFlag?n("span",[t._v("取消审核")]):t._e(),2==e.row.statusFlag?n("el-tooltip",{staticClass:"item",attrs:{effect:"light",placement:"right"}},[n("div",{attrs:{slot:"content"},slot:"content"},[t._v("\n "+t._s(e.row.refuseReason)+"\n ")]),n("span",{staticClass:"common-bottom-border"},[t._v("已拒绝")])]):t._e(),4==e.row.statusFlag?n("el-tooltip",{staticClass:"item",attrs:{effect:"light",placement:"right"}},[n("div",{attrs:{slot:"content"},slot:"content"},[t._v("\n "+t._s(e.row.refuseReason)+"\n ")]),n("span",{staticClass:"common-bottom-border"},[t._v("已失效")])]):t._e()]}}])}),n("el-table-column",{attrs:{prop:"",label:"审核时间"},scopedSlots:t._u([{key:"default",fn:function(e){return[0!=e.row.statusFlag?n("div",{staticClass:"line-h-18"},[t._v(t._s(t._f("timeStampToYmd")(e.row.updateTime))+" "+t._s(e.row.updateTime?"":"--"))]):t._e(),0!=e.row.statusFlag?n("div",{staticClass:"line-h-18"},[t._v(t._s(t._f("timeStampToHms")(e.row.updateTime))+" "+t._s(e.row.updateTime?"":"--"))]):t._e(),0==e.row.statusFlag?n("div",{staticClass:"line-h-18"},[t._v("--")]):t._e(),0==e.row.statusFlag?n("div",{staticClass:"line-h-18"},[t._v("--")]):t._e()]}}])}),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.toShowLog(e.$index,e.row)}}},[t._v("绑定详情")]),0==e.row.statusFlag?n("el-button",{attrs:{type:"text"},on:{click:function(a){return t.toCancleAudit(e.$index,e.row)}}},[t._v("取消审核")]):t._e()]}}])})],1),0!=t.tableData.length?n("div",{staticClass:"block common-wrap__page text-right m-t-24"},[n("dm-pagination",{attrs:{background:"","current-page":t.currentPage,"page-sizes":[20,40,60,80],"page-size":t.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1):t._e()],1)])])])]),t.logShow?n("store-auth-detail",{attrs:{"store-range-audit-id":t.storeRangeAuditId},on:{closeLog:t.closeLog}}):t._e()],1)},s=[],r=a("29b6"),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-tabs",{attrs:{type:"card"},on:{"tab-click":t.handleClick},model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},[a("el-tab-pane",{attrs:{label:"绑定门店",name:"first"}}),a("el-tab-pane",{attrs:{label:"共享门店",name:"second"}})],1),a("div",{staticClass:"store-change-body"},[a("div",{staticClass:"flex "},[a("div",{staticClass:"change-stores flex-1"},[a("div",{staticClass:"font-14 color-303133 text-center m-b-20"},[t._v("变更前")]),a("ul",{staticClass:"store-cell-ul bg-f5f7fa"},t._l(t.showData.range,(function(e,n){return a("li",{key:n+"bind",staticClass:"text-center"},[a("el-tag",{attrs:{type:"info"}},[t._v(t._s(e.storeGroupName||e.storeInfoName))])],1)})),0)]),a("div",{staticClass:"change-stores flex-1 m-l-10"},[a("div",{staticClass:"font-14 color-303133 text-center m-b-20"},[t._v("变更后")]),a("ul",{staticClass:"store-cell-ul bg-f5f7fa"},t._l(t.showData.auditRange,(function(e,n){return a("li",{key:n+"binded",staticClass:"text-center"},[a("el-tag",{attrs:{type:"info"}},[t._v(t._s(e.storeGroupName||e.storeInfoName))])],1)})),0)])])])],1)])},o=[],l=a("21f4"),c=l["a"].getAuditLogDetail,u={name:"StoreAuthDetail",props:{storeRangeAuditId:{type:String,default:function(){return""}}},data:function(){return{dialogVisible:!0,activeName:"first",tableData:[],detailData:{shareStoreMode:"",bindStoreMode:"",shareRange:[],bindRange:[],auditShareRange:[],auditBindRange:[]},showData:{range:[],auditRange:[]}}},mounted:function(){var t=this;t.storeRangeAuditId&&t.getTableList(),document.documentElement.style.backgroundColor="#f0f2f5"},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},methods:{handleClick:function(){var t=this;t.showData={range:"first"==t.activeName?t.detailData.bindRange:t.detailData.shareRange,auditRange:"first"==t.activeName?t.detailData.auditBindRange:t.detailData.auditShareRange}},handleClose:function(){var t=this;t.tableData=[],t.$emit("closeLog")},changeRoute:function(t){this.$router.push(t)},getTableList:function(){var t=this,e={storeRangeAuditId:t.storeRangeAuditId};c(e).then((function(e){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=[],e.result.auditBindRange?e.result.auditBindRange=JSON.parse(e.result.auditBindRange):e.result.auditBindRange=[],e.result.auditShareRange?e.result.auditShareRange=JSON.parse(e.result.auditShareRange):e.result.auditShareRange=[],t.detailData=e.result||[],t.showData={range:"first"==t.activeName?t.detailData.bindRange:t.detailData.shareRange,auditRange:"first"==t.activeName?t.detailData.auditBindRange:t.detailData.auditShareRange}})).catch((function(t){}))}},watch:{storeRangeAuditId:function(t,e){var a=this;t&&a.getTableList()}}},d=u,g=(a("135b"),a("2877")),p=Object(g["a"])(d,i,o,!1,null,"a9841722",null),f=p.exports,h=a("3081"),m=a("5b4e6"),b=l["a"].getAuditLog,v=l["a"].cancelAudit,_=l["a"].getEnterpriseDetail,w={name:"AuditLog",components:{navCrumb:r["a"],storeAuthDetail:f,commonAlertTip:h["a"]},data:function(){return{tipContent:"仅保存近一年失败日志",navpath:[{name:"通讯录",path:"/contactsList"},{name:"授权商户",path:"/authMerchant"},{name:"审核日志",path:""}],auditorName:localStorage.getItem("haoBanUser")?JSON.parse(localStorage.getItem("haoBanUser")).staffName:"",auditorId:localStorage.getItem("haoBanUser")?JSON.parse(localStorage.getItem("haoBanUser")).staffId:"",enterpriseObj:{enterpriseName:"",logo:"",version:""},currentPage:1,pageSize:20,total:0,tableData:[],logShow:!1,storeRangeAuditId:""}},mounted:function(){var t=this;t.getEnterpriseData(),t.getTableList(),document.documentElement.style.backgroundColor="#f0f2f5"},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},methods:{getEnterpriseData:function(){var t=this;_({enterpriseId:t.$route.query.enterpriseId}).then((function(e){t.enterpriseObj=e.result||{enterpriseName:"",logo:"",version:""}})).catch((function(t){}))},toCancleAudit:function(t,e){var a=this;a.$confirm("确定取消审核?","",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){a.postCancel(e.storeRangeAuditId)}))},postCancel:function(t){var e=this,a={storeRangeAuditId:t,statusFlag:3,auditorName:e.auditorName,auditorId:e.auditorId};v(a).then((function(t){"0000"==t.code?m["a"].showmsg("取消审核成功","success"):"100003"!=t.code&&"100004"!=t.code||(e.$message({message:t.message||"未知错误",type:"warning"}),e.currentPage=1,e.getTableList()),e.currentPage=1,e.getTableList()})).catch((function(t){}))},toShowLog:function(t,e){var a=this;a.storeRangeAuditId=e.storeRangeAuditId,a.logShow=!0},closeLog:function(){var t=this;t.storeRangeAuditId="",t.logShow=!1},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={enterpriseId:t.$route.query.enterpriseId||"",pageNum:t.currentPage,pageSize:t.pageSize};b(e).then((function(e){t.tableData=e.result.result||[],t.total=e.result.totalCount})).catch((function(t){}))}}},C=w,R=(a("6a2d"),Object(g["a"])(C,n,s,!1,null,"f71e6ec8",null));e["default"]=R.exports},"135b":function(t,e,a){"use strict";var n=a("95f4"),s=a.n(n);s.a},"21f4":function(t,e,a){"use strict";var n=a("71f6"),s={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},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"};s=Object(n["a"])(s,"/hb-manage-web"),e["a"]=s},"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)},s=[],r={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)}}},i=r,o=(a("6b4b"),a("2877")),l=Object(o["a"])(i,n,s,!1,null,"2c2a2724",null);e["a"]=l.exports},3081:function(t,e,a){"use strict";var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"common-alert-tip"},[a("div",{style:{"min-width":t.width}},[a("div",{staticClass:"el-alert el-alert--info flex flex-align-start",style:{width:t.width},attrs:{role:"alert"}},[a("i",{staticClass:"el-alert__icon el-icon-info font-12 color-2f54eb"}),a("div",{staticClass:"el-alert__content"},[a("span",{staticClass:"el-alert__title color-606266 font-13"},[t._v("\n "+t._s(t.tipContent)+"\n ")])])])])])},s=[],r={name:"CommonAlertTip",components:{},props:{width:{type:String,default:"645px"},tipContent:{type:String,default:""}},data:function(){return{}}},i=r,o=a("2877"),l=Object(o["a"])(i,n,s,!1,null,"3070d237",null);e["a"]=l.exports},"5b4e6":function(t,e,a){"use strict";var n=a("5c96");e["a"]={showmsg:function(t,e){Object(n["Message"])({duration:1e3,message:t||"接口异常",type:e})}}},"6a2d":function(t,e,a){"use strict";var n=a("bebb"),s=a.n(n);s.a},"6b4b":function(t,e,a){"use strict";var n=a("76d4"),s=a.n(n);s.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 s}));a("ac6a"),a("456d");var n=a("b775");function s(t,e){t=t||{};var a=Object.keys(t);return a.forEach((function(a){var s=t[a];"string"===typeof s&&(s={url:s}),s.url="".concat(e).concat(s.url),t[a]=function(t){return Object(n["a"])(s,t)}})),t}},"76d4":function(t,e,a){},"95f4":function(t,e,a){},bebb:function(t,e,a){}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-226df849"],{"0912":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 - 126px)"}},[n("div",{staticClass:"apps-content flex",staticStyle:{"min-height":"calc(100vh - 126px)"}},[n("div",{staticClass:"apps-content-right"},[n("div",{staticClass:"flex flex-space-between"},[n("div",{staticClass:"flex "},[n("div",{staticClass:"auth-merchant-img"},[t.enterpriseObj.logo?n("img",{attrs:{src:t.enterpriseObj.logo,alt:""}}):n("img",{attrs:{src:a("6ce2"),alt:"img"}})]),n("div",[n("div",{staticClass:"auth-merchant-name flex"},[n("span",{staticClass:"font-14 color-606266 merchant-name-span"},[t._v(t._s(t.enterpriseObj.enterpriseName||"--"))]),n("el-tag",{staticClass:"m-l-10",attrs:{size:"mini",type:"danger"}},[t._v(t._s(t.enterpriseObj.versionName||"4.0"))])],1),n("div",{staticClass:"auth-merchant-name flex"},[n("span",{staticClass:"font-14 color-606266 merchant-name-span"},[t._v(t._s(t.enterpriseObj.brandName||"--"))])])])]),n("common-alert-tip",{attrs:{width:"284px","tip-content":t.tipContent}})],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:{label:"申请事项","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.userName||"商户授权"))]}}])}),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.auditReason||"--")+"\n ")]}}])}),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("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("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.referStaffName||"--")+"\n ")]}}])}),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.auditName||"--"))]}}])}),n("el-table-column",{attrs:{prop:"",label:"审核结果"},scopedSlots:t._u([{key:"default",fn:function(e){return[0==e.row.statusFlag?n("span",[t._v("待同意")]):t._e(),1==e.row.statusFlag?n("span",[t._v("已同意")]):t._e(),3==e.row.statusFlag?n("span",[t._v("取消审核")]):t._e(),2==e.row.statusFlag?n("el-tooltip",{staticClass:"item",attrs:{effect:"light",placement:"right"}},[n("div",{attrs:{slot:"content"},slot:"content"},[t._v("\n "+t._s(e.row.refuseReason)+"\n ")]),n("span",{staticClass:"common-bottom-border"},[t._v("已拒绝")])]):t._e(),4==e.row.statusFlag?n("el-tooltip",{staticClass:"item",attrs:{effect:"light",placement:"right"}},[n("div",{attrs:{slot:"content"},slot:"content"},[t._v("\n "+t._s(e.row.refuseReason)+"\n ")]),n("span",{staticClass:"common-bottom-border"},[t._v("已失效")])]):t._e()]}}])}),n("el-table-column",{attrs:{prop:"",label:"审核时间"},scopedSlots:t._u([{key:"default",fn:function(e){return[0!=e.row.statusFlag?n("div",{staticClass:"line-h-18"},[t._v(t._s(t._f("timeStampToYmd")(e.row.updateTime))+" "+t._s(e.row.updateTime?"":"--"))]):t._e(),0!=e.row.statusFlag?n("div",{staticClass:"line-h-18"},[t._v(t._s(t._f("timeStampToHms")(e.row.updateTime))+" "+t._s(e.row.updateTime?"":"--"))]):t._e(),0==e.row.statusFlag?n("div",{staticClass:"line-h-18"},[t._v("--")]):t._e(),0==e.row.statusFlag?n("div",{staticClass:"line-h-18"},[t._v("--")]):t._e()]}}])}),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.toShowLog(e.$index,e.row)}}},[t._v("绑定详情")]),0==e.row.statusFlag?n("el-button",{attrs:{type:"text"},on:{click:function(a){return t.toCancleAudit(e.$index,e.row)}}},[t._v("取消审核")]):t._e()]}}])})],1),0!=t.tableData.length?n("div",{staticClass:"block common-wrap__page text-right m-t-24"},[n("dm-pagination",{attrs:{background:"","current-page":t.currentPage,"page-sizes":[20,40,60,80],"page-size":t.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1):t._e()],1)])])])]),t.logShow?n("store-auth-detail",{attrs:{"store-range-audit-id":t.storeRangeAuditId},on:{closeLog:t.closeLog}}):t._e()],1)},s=[],r=a("29b6"),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-tabs",{attrs:{type:"card"},on:{"tab-click":t.handleClick},model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},[a("el-tab-pane",{attrs:{label:"绑定门店",name:"first"}}),a("el-tab-pane",{attrs:{label:"共享门店",name:"second"}})],1),a("div",{staticClass:"store-change-body"},[a("div",{staticClass:"flex "},[a("div",{staticClass:"change-stores flex-1"},[a("div",{staticClass:"font-14 color-303133 text-center m-b-20"},[t._v("变更前")]),a("ul",{staticClass:"store-cell-ul bg-f5f7fa"},t._l(t.showData.range,(function(e,n){return a("li",{key:n+"bind",staticClass:"text-center"},[a("el-tag",{attrs:{type:"info"}},[t._v(t._s(e.storeGroupName||e.storeInfoName))])],1)})),0)]),a("div",{staticClass:"change-stores flex-1 m-l-10"},[a("div",{staticClass:"font-14 color-303133 text-center m-b-20"},[t._v("变更后")]),a("ul",{staticClass:"store-cell-ul bg-f5f7fa"},t._l(t.showData.auditRange,(function(e,n){return a("li",{key:n+"binded",staticClass:"text-center"},[a("el-tag",{attrs:{type:"info"}},[t._v(t._s(e.storeGroupName||e.storeInfoName))])],1)})),0)])])])],1)])},o=[],l=a("21f4"),c=l["a"].getAuditLogDetail,u={name:"StoreAuthDetail",props:{storeRangeAuditId:{type:String,default:function(){return""}}},data:function(){return{dialogVisible:!0,activeName:"first",tableData:[],detailData:{shareStoreMode:"",bindStoreMode:"",shareRange:[],bindRange:[],auditShareRange:[],auditBindRange:[]},showData:{range:[],auditRange:[]}}},mounted:function(){var t=this;t.storeRangeAuditId&&t.getTableList(),document.documentElement.style.backgroundColor="#f0f2f5"},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},methods:{handleClick:function(){var t=this;t.showData={range:"first"==t.activeName?t.detailData.bindRange:t.detailData.shareRange,auditRange:"first"==t.activeName?t.detailData.auditBindRange:t.detailData.auditShareRange}},handleClose:function(){var t=this;t.tableData=[],t.$emit("closeLog")},changeRoute:function(t){this.$router.push(t)},getTableList:function(){var t=this,e={storeRangeAuditId:t.storeRangeAuditId};c(e).then((function(e){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=[],e.result.auditBindRange?e.result.auditBindRange=JSON.parse(e.result.auditBindRange):e.result.auditBindRange=[],e.result.auditShareRange?e.result.auditShareRange=JSON.parse(e.result.auditShareRange):e.result.auditShareRange=[],t.detailData=e.result||[],t.showData={range:"first"==t.activeName?t.detailData.bindRange:t.detailData.shareRange,auditRange:"first"==t.activeName?t.detailData.auditBindRange:t.detailData.auditShareRange}})).catch((function(t){}))}},watch:{storeRangeAuditId:function(t,e){var a=this;t&&a.getTableList()}}},d=u,g=(a("135b"),a("2877")),p=Object(g["a"])(d,i,o,!1,null,"a9841722",null),f=p.exports,h=a("3081"),m=a("5b4e"),b=l["a"].getAuditLog,v=l["a"].cancelAudit,_=l["a"].getEnterpriseDetail,w={name:"AuditLog",components:{navCrumb:r["a"],storeAuthDetail:f,commonAlertTip:h["a"]},data:function(){return{tipContent:"仅保存近一年失败日志",navpath:[{name:"通讯录",path:"/contactsList"},{name:"授权商户",path:"/authMerchant"},{name:"审核日志",path:""}],auditorName:localStorage.getItem("haoBanUser")?JSON.parse(localStorage.getItem("haoBanUser")).staffName:"",auditorId:localStorage.getItem("haoBanUser")?JSON.parse(localStorage.getItem("haoBanUser")).staffId:"",enterpriseObj:{enterpriseName:"",logo:"",version:""},currentPage:1,pageSize:20,total:0,tableData:[],logShow:!1,storeRangeAuditId:""}},mounted:function(){var t=this;t.getEnterpriseData(),t.getTableList(),document.documentElement.style.backgroundColor="#f0f2f5"},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},methods:{getEnterpriseData:function(){var t=this;_({enterpriseId:t.$route.query.enterpriseId}).then((function(e){t.enterpriseObj=e.result||{enterpriseName:"",logo:"",version:""}})).catch((function(t){}))},toCancleAudit:function(t,e){var a=this;a.$confirm("确定取消审核?","",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){a.postCancel(e.storeRangeAuditId)}))},postCancel:function(t){var e=this,a={storeRangeAuditId:t,statusFlag:3,auditorName:e.auditorName,auditorId:e.auditorId};v(a).then((function(t){"0000"==t.code?m["a"].showmsg("取消审核成功","success"):"100003"!=t.code&&"100004"!=t.code||(e.$message({message:t.message||"未知错误",type:"warning"}),e.currentPage=1,e.getTableList()),e.currentPage=1,e.getTableList()})).catch((function(t){}))},toShowLog:function(t,e){var a=this;a.storeRangeAuditId=e.storeRangeAuditId,a.logShow=!0},closeLog:function(){var t=this;t.storeRangeAuditId="",t.logShow=!1},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={enterpriseId:t.$route.query.enterpriseId||"",pageNum:t.currentPage,pageSize:t.pageSize};b(e).then((function(e){t.tableData=e.result.result||[],t.total=e.result.totalCount})).catch((function(t){}))}}},C=w,R=(a("6a2d"),Object(g["a"])(C,n,s,!1,null,"f71e6ec8",null));e["default"]=R.exports},"135b":function(t,e,a){"use strict";var n=a("95f4"),s=a.n(n);s.a},"21f4":function(t,e,a){"use strict";var n=a("71f6"),s={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},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"};s=Object(n["a"])(s,"/hb-manage-web"),e["a"]=s},"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)},s=[],r={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)}}},i=r,o=(a("6b4b"),a("2877")),l=Object(o["a"])(i,n,s,!1,null,"2c2a2724",null);e["a"]=l.exports},3081:function(t,e,a){"use strict";var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"common-alert-tip"},[a("div",{style:{"min-width":t.width}},[a("div",{staticClass:"el-alert el-alert--info flex flex-align-start",style:{width:t.width},attrs:{role:"alert"}},[a("i",{staticClass:"el-alert__icon el-icon-info font-12 color-2f54eb"}),a("div",{staticClass:"el-alert__content"},[a("span",{staticClass:"el-alert__title color-606266 font-13"},[t._v("\n "+t._s(t.tipContent)+"\n ")])])])])])},s=[],r={name:"CommonAlertTip",components:{},props:{width:{type:String,default:"645px"},tipContent:{type:String,default:""}},data:function(){return{}}},i=r,o=a("2877"),l=Object(o["a"])(i,n,s,!1,null,"3070d237",null);e["a"]=l.exports},"5b4e":function(t,e,a){"use strict";var n=a("5c96");e["a"]={showmsg:function(t,e){Object(n["Message"])({duration:1e3,message:t||"接口异常",type:e})}}},"6a2d":function(t,e,a){"use strict";var n=a("bebb"),s=a.n(n);s.a},"6b4b":function(t,e,a){"use strict";var n=a("76d4"),s=a.n(n);s.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 s}));a("ac6a"),a("456d");var n=a("b775");function s(t,e){t=t||{};var a=Object.keys(t);return a.forEach((function(a){var s=t[a];"string"===typeof s&&(s={url:s}),s.url="".concat(e).concat(s.url),t[a]=function(t){return Object(n["a"])(s,t)}})),t}},"76d4":function(t,e,a){},"95f4":function(t,e,a){},bebb:function(t,e,a){}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-28decd63"],{"259b":function(e,t,r){},3582:function(e,t,r){},"38b9":function(e,t,r){"use strict";var a=r("bf13"),n=r.n(a);n.a},"4dbe":function(e,t,r){"use strict";var a=r("e6f1"),n=r.n(a);n.a},"4f7f":function(e,t,r){"use strict";var a=r("c26b"),n=r("b39a"),s="Set";e.exports=r("e0b8")(s,(function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}}),{add:function(e){return a.def(n(this,s),e=0===e?0:e,e)}},a)},"67ab":function(e,t,r){var a=r("ca5a")("meta"),n=r("d3f4"),s=r("69a8"),i=r("86cc").f,o=0,l=Object.isExtensible||function(){return!0},c=!r("79e5")((function(){return l(Object.preventExtensions({}))})),d=function(e){i(e,a,{value:{i:"O"+ ++o,w:{}}})},u=function(e,t){if(!n(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!s(e,a)){if(!l(e))return"F";if(!t)return"E";d(e)}return e[a].i},f=function(e,t){if(!s(e,a)){if(!l(e))return!0;if(!t)return!1;d(e)}return e[a].w},h=function(e){return c&&p.NEED&&l(e)&&!s(e,a)&&d(e),e},p=e.exports={KEY:a,NEED:!1,fastKey:u,getWeak:f,onFreeze:h}},"7dc6":function(e,t,r){"use strict";r.r(t);var a=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"my-customer-wrap common-set-wrap"},[r("nav-crumb",{attrs:{navpath:e.navpath}}),r("div",{staticClass:"right-content"},[r("div",{staticClass:"apps-content-right border-box"},[r("el-form",{ref:"adminForm",attrs:{model:e.adminForm,rules:e.rules,"label-width":"100px"}},[r("el-form-item",{attrs:{label:"管理员",prop:"adminList"}},[e.$route.query.staffId?r("div",[e._v(e._s(e.adminName||"--"))]):e._e(),e.$route.query.staffId?e._e():r("div",{staticClass:"admin-list-wrap"},[r("div",{staticClass:"el-select store-item-content admin-select",on:{click:e.showAdmin}},[e.adminForm.adminList.length?r("div",{staticClass:"el-select__tags"},[r("span",{staticStyle:{display:"block"}},[e._l(e.adminForm.adminList,(function(t,a){return[r("span",{key:a+"bind",staticClass:"el-tag el-tag--info el-tag--small"},[r("span",{staticClass:"el-select__tags-text"},[e._v(e._s(t.levelName||"--"))]),r("i",{staticClass:"el-tag__close el-icon-close",on:{click:function(t){return t.stopPropagation(),e.delAdmin(a,e.adminForm.adminList)}}})])]}))],2)]):e._e(),e.adminForm.adminList.length?e._e():r("div",{staticClass:"add-admin-btn font-14 color-606266 cursor-pointer",on:{click:e.showAdmin}},[r("span",{staticClass:"iconfont icontianjiajiahaowubiankuang font-12"}),r("span",{staticClass:"p-l-10"},[e._v("添加")])])])])]),r("el-form-item",{attrs:{label:"资源范围",prop:"enterpriseList"}},[r("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"multipleTable",staticStyle:{width:"100%"},attrs:{data:e.tableData,"tooltip-effect":"dark"}},[r("el-table-column",{attrs:{label:"商户名称",width:"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.enterpriseName||"--")+"\n ")]}}])}),r("el-table-column",{attrs:{label:"授权范围"},scopedSlots:e._u([{key:"default",fn:function(t){return[r("el-radio",{attrs:{label:"1"},model:{value:t.row.radio,callback:function(r){e.$set(t.row,"radio",r)},expression:"scope.row.radio"}},[e._v("授权")]),1==t.row.radio?r("div",{staticClass:"el-select store-item-content",on:{click:function(r){return e.showAuth(t.$index,t.row)}}},[t.row.bindStoreMode>0?r("div",{staticClass:"el-select__tags"},[r("span",{staticStyle:{display:"block"}},[e._l(t.row.bindRange,(function(a,n){return[r("span",{key:n+"bind",staticClass:"el-tag el-tag--info el-tag--small"},[r("span",{staticClass:"el-select__tags-text"},[e._v(e._s(a.storeInfoName||a.storeGroupName))]),r("i",{staticClass:"el-tag__close el-icon-close",on:{click:function(r){return r.stopPropagation(),e.delAuth(n,t.row.bindRange)}}})])]}))],2)]):e._e(),0==t.row.bindStoreMode&&""!==t.row.bindStoreMode?r("span",{staticClass:"p-l-10 font-14 color-909399"},[e._v("已选全部")]):e._e()]):e._e(),r("el-radio",{staticClass:"m-l-10",attrs:{label:"2"},model:{value:t.row.radio,callback:function(r){e.$set(t.row,"radio",r)},expression:"scope.row.radio"}},[e._v("不授权")])]}}])})],1)],1),r("el-form-item",{staticClass:"m-t-20",attrs:{prop:""}},[r("el-button",{attrs:{type:"primary",loading:e.loadBtn},on:{click:function(t){return e.saveAdmin("adminForm")}}},[e._v("确认"+e._s(e.$route.query.staffId?"编辑":"新建"))])],1)],1)],1)]),r("select-admin",{attrs:{"show-admin-flag":e.showAdminFlag,"select-admin":e.adminForm.adminList},on:{checkAdmins:e.checkAdmins}}),r("select-admin-store",{attrs:{"show-auth-flag":e.showAuthFlag,"enterprise-id":e.enterpriseId,"select-mode":e.selectMode,"range-data":e.rangeData,"bind-type":2},on:{closeSet:e.closeSet}})],1)},n=[],s=(r("ac6a"),r("29b6")),i=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("el-dialog",{attrs:{width:"418px",title:"添加管理员",visible:e.setVisible,"append-to-body":"","before-close":e.handleClose},on:{"update:visible":function(t){e.setVisible=t}}},[r("div",{staticClass:"bind-store-body"},[r("div",{staticClass:"font-14 color-606266"},[e._v("已选择 "),r("span",{staticClass:"color-303133"},[e._v(e._s(e.totalNum||"0"))]),e._v(" 人")]),r("div",{staticClass:"select-search m-t-10"},[r("el-input",{attrs:{placeholder:"请输入成员名称",maxlength:"50",clearable:""},on:{clear:e.clearSearch},nativeOn:{keyup:function(t){return function(t){return e.toInput(t,e.searchSelect)}(t)}},model:{value:e.searchSelect,callback:function(t){e.searchSelect=t},expression:"searchSelect"}},[r("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})])],1),r("div",{staticClass:"select-tree-wrap auth-select-tree m-t-20"},[r("el-tree",{directives:[{name:"show",rawName:"v-show",value:""==e.searchSelect,expression:"searchSelect == ''"}],ref:"groupTree",attrs:{load:e.loadNode,lazy:"",data:e.groupData,props:e.defaultProps},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.node,n=t.data;return r("span",{staticClass:"custom-tree-node"},[r("span",[1==n.levelType?r("el-checkbox",{attrs:{disabled:1==n.bindFlag},on:{change:function(t){return e.changeItem(t,n)}},model:{value:n.checked,callback:function(t){e.$set(n,"checked",t)},expression:"data.checked"}}):e._e(),r("span",{staticClass:"font-14 color-606266 p-l-10"},[e._v(e._s(a.label))])],1),1==n.bindFlag?r("span",{staticClass:"font-12 color-909399 p-l-10"},[e._v("已选中")]):e._e()])}}])}),r("div",{directives:[{name:"show",rawName:"v-show",value:e.searchSelect,expression:"searchSelect"}],staticClass:"el-select-dropdown__wrap el-scrollbar__wrap",staticStyle:{overflow:"auto"}},[r("el-checkbox-group",{attrs:{max:50},on:{change:e.handleStoresChange},model:{value:e.checkedList,callback:function(t){e.checkedList=t},expression:"checkedList"}},[r("ul",{staticClass:"el-scrollbar__view el-select-dropdown__list"},[e._l(e.searchList,(function(t){return r("li",{key:t.staffId,class:["el-select-dropdown__item flex flex-space-between",t.select?"selected hover":""]},[r("el-checkbox",{attrs:{disabled:1==t.bindFlag,label:t.staffId}},[e._v(e._s(t.staffName))]),1==t.bindFlag?r("span",{staticClass:"font-12 color-909399 p-l-10"},[e._v("已选中")]):e._e()],1)})),e.searchList.length?e._e():r("li",{staticClass:"text-center"},[r("span",[e._v("暂无数据")])])],2)])],1)],1)]),r("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[r("el-button",{on:{click:e.cancel}},[e._v("取消")]),r("el-button",{attrs:{type:"primary"},on:{click:e.submitForm}},[e._v("确定")])],1)])},o=[];r("6762"),r("2fdb"),r("5df3"),r("4f7f");function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,a=new Array(t);r<t;r++)a[r]=e[r];return a}function c(e){if(Array.isArray(e))return l(e)}function d(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}function u(e,t){if(e){if("string"===typeof e)return l(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?l(e,t):void 0}}function f(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function h(e){return c(e)||d(e)||u(e)||f()}r("96cf");var p=r("1da1"),m=r("d157"),g=r("71f6"),b={getAdminList:"/level-list",getSearchAdminList:"/staff-search",getRoleRange:"/role-range",addAdmin:{url:"/role-range-save",method:"post",useFormData:!0,useIntercept:!1}};b=Object(g["a"])(b,"/hb-manage-web");var v=b,S=r("5b4e"),y=v.getAdminList,_=v.getSearchAdminList,k={name:"SelectAdmin",props:{showAdminFlag:{type:Boolean,default:!1},selectAdmin:{type:[Object,Array],default:function(){return[]}}},data:function(){return{wxEnterpriseId:localStorage.getItem("haoBanUser")?JSON.parse(localStorage.getItem("haoBanUser")).wxEnterpriseId:"",searchSelect:"",groupData:[],groupDataCopy:[],setVisible:!1,defaultProps:{children:"children",label:"label",isLeaf:"leaf"},totalNum:"0",totalIds:[],searchList:[],checkedList:[],checkedPeople:[],totalArr:[]}},mounted:function(){var e=this;if(e.totalNum=e.selectAdmin.length,e.totalIds=e.selectAdmin.map((function(e){return e.levelId}))||[],e.checkedList=e.selectAdmin.map((function(e){return e.levelId}))||[],e.setVisible=e.showAdminFlag,e.totalArr=JSON.parse(JSON.stringify(e.selectAdmin))||[],e.$route.query.staffId)return!1;e.getStaff()},methods:{changeItem:function(){var e=Object(p["a"])(regeneratorRuntime.mark((function e(t,r){var a,n,s;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return a=this,!t&&a.checkedList.indexOf(r.levelId)&&a.checkedList.splice(a.checkedList.indexOf(r.levelId),1),a.checkedPeople=[],e.next=5,a.getCheckData();case 5:return a.totalIds=h(new Set([].concat(h(a.checkedList),h(a.checkedPeople.map((function(e){return e.levelId}))))))||[],a.checkedList=h(new Set([].concat(h(a.checkedList),h(a.checkedPeople.map((function(e){return e.levelId}))))))||[],n=JSON.parse(JSON.stringify(a.totalArr)),n=n.concat(a.checkedPeople),e.next=11,a.delDubbleData(n);case 11:t||-1==a.totalArr.map((function(e){return e.levelId})).indexOf(r.levelId)||(s=[],a.totalArr.forEach((function(e){e.levelId!=r.levelId&&s.push(e)})),a.totalArr=JSON.parse(JSON.stringify(s))),a.totalNum=a.totalArr.length;case 13:case"end":return e.stop()}}),e,this)})));function t(t,r){return e.apply(this,arguments)}return t}(),delDubbleData:function(e){var t=this,r={};e=e.reduce((function(e,t){return!r[t.levelId]&&(r[t.levelId]=e.push(t)),e}),[]),t.totalArr=JSON.parse(JSON.stringify(e))},handleClose:function(e){var t=this;e(),t.$emit("checkAdmins","close")},cancel:function(){var e=this;e.$emit("checkAdmins","close")},submitForm:function(){var e=Object(p["a"])(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t=this,t.totalArr.length){e.next=4;break}return S["a"].showmsg("请选择管理员","warning"),e.abrupt("return",!1);case 4:t.$emit("checkAdmins",JSON.parse(JSON.stringify(t.totalArr)));case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),handleStoresChange:function(){var e=Object(p["a"])(regeneratorRuntime.mark((function e(t){var r,a,n,s,i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return r=this,a=[],r.searchList.forEach((function(e){t.includes(e.levelId)&&a.push(e)})),r.totalNum=t.length,r.totalIds=t,n=JSON.parse(JSON.stringify(r.totalArr)),n=n.concat(a),e.next=9,r.delDubbleData(n);case 9:s=0;case 10:if(!(s<r.groupData.length)){e.next=19;break}if(i=r.groupData[s],t.includes(i.levelId)?i.checked=!0:i.checked=!1,!i.children||!i.children.length){e.next=16;break}return e.next=16,r.setChildCheck(i,t);case 16:s++,e.next=10;break;case 19:return r.checkedPeople=[],e.next=22,r.getCheckData();case 22:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}(),setChildCheck:function(){var e=Object(p["a"])(regeneratorRuntime.mark((function e(t,r){var a,n,s;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:a=this,n=0;case 2:if(!(n<t.children.length)){e.next=11;break}if(s=t.children[n],r.includes(s.levelId)?s.checked=!0:s.checked=!1,!s.children||!s.children.length){e.next=8;break}return e.next=8,a.setChildCheck(s,r);case 8:n++,e.next=2;break;case 11:case"end":return e.stop()}}),e,this)})));function t(t,r){return e.apply(this,arguments)}return t}(),getCheckData:function(){var e=Object(p["a"])(regeneratorRuntime.mark((function e(){var t,r,a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:t=this,r=0;case 2:if(!(r<t.groupData.length)){e.next=11;break}if(a=t.groupData[r],a.checked&&t.checkedPeople.push(a),!a.children||!a.children.length){e.next=8;break}return e.next=8,t.getChildCheck(a.children);case 8:r++,e.next=2;break;case 11:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),getChildCheck:function(){var e=Object(p["a"])(regeneratorRuntime.mark((function e(t){var r,a,n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:r=this,a=0;case 2:if(!(a<t.length)){e.next=11;break}if(n=t[a],n.checked&&r.checkedPeople.push(n),!n.children||!n.children.length){e.next=8;break}return e.next=8,r.getChildCheck(n.children);case 8:a++,e.next=2;break;case 11:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}(),loadNode:function(){var e=Object(p["a"])(regeneratorRuntime.mark((function e(t,r){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(a=this,!a.$route.query.staffId){e.next=3;break}return e.abrupt("return",!1);case 3:if(0!==t.level){e.next=7;break}return e.abrupt("return",r(a.getStaff()));case 7:return e.next=9,a.getStaff(t,t.data,r);case 9:case"end":return e.stop()}}),e,this)})));function t(t,r){return e.apply(this,arguments)}return t}(),getSearchData:function(e){var t=this,r={staffName:e,wxEnterpriseId:t.wxEnterpriseId};_(r).then((function(e){e.result&&e.result.length&&e.result.forEach((function(e){e.levelId=e.staffId,e.levelName=e.staffName})),t.searchList=e.result||[]})).catch((function(e){}))},toInput:Object(m["a"])((function(e,t){var r=this;if(""==String(r.searchSelect).trim())return!1;r.getSearchData(r.searchSelect)}),200),clearSearch:function(){return!1},getStaff:function(e,t,r){var a=this,n={departmentId:t?t.levelId:"",wxEnterpriseId:a.wxEnterpriseId};y(n).then((function(n){if(n.result&&n.result.length&&n.result.forEach((function(e){e.children=[],e.checked=!!a.totalIds.includes(e.levelId),e.label=e.levelName,e.leaf=1==e.levelType})),e)return r(n.result),t.children||a.$set(t,"children",[]),t.children=n.result||[],a.$forceUpdate(),!1;a.groupData=n.result||[]})).catch((function(e){}))},setSelectData:function(){var e=Object(p["a"])(regeneratorRuntime.mark((function e(t){var r,a,n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:r=this,a=0;case 2:if(!(a<r.groupData.length)){e.next=11;break}if(n=r.groupData[a],t.includes(n.levelId)?n.checked=!0:n.checked=!1,!n.children||!n.children.length){e.next=8;break}return e.next=8,r.setChildCheck(n,t);case 8:a++,e.next=2;break;case 11:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},watch:{showAdminFlag:function(e){this.setVisible=e},selectAdmin:function(e){var t=this;t.totalNum=e.length,t.totalIds=e.map((function(e){return e.levelId}))||[],t.checkedList=e.map((function(e){return e.levelId}))||[],t.totalArr=JSON.parse(JSON.stringify(e))||[],t.setSelectData(t.checkedList)}}},w=k,I=(r("9614"),r("2877")),x=Object(I["a"])(w,i,o,!1,null,"1b001d34",null),D=x.exports,C=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{class:["store-auth-range",e.visibleFlag?"show-range":"hide-range"]},[r("div",{staticClass:"common-mask cursor-pointer",on:{click:function(t){return t.stopPropagation(),e.handleClose(t)}}}),r("div",{staticClass:"bind-body border-box"},[r("div",{staticClass:"auth-range-title font-18 color-303133 m-b-20"},[e._v("门店管辖范围")]),r("common-alert-tip",{attrs:{width:"100%","tip-content":e.tipContent}}),r("div",{staticClass:"el-form-item el-form-item--large m-t-20"},[r("label",{staticClass:"el-form-item__label",staticStyle:{width:"143px"},attrs:{for:"name"}},[e._v("\n 门店绑定授权范围\n ")]),r("div",{staticClass:"el-form-item__content",staticStyle:{"margin-left":"143px"}},[r("el-radio",{attrs:{label:0,disabled:""},model:{value:e.bindFormData.bindStoreMode,callback:function(t){e.$set(e.bindFormData,"bindStoreMode",t)},expression:"bindFormData.bindStoreMode"}},[e._v("所有门店")]),r("el-radio",{staticClass:"m-l-40 m-r-8",attrs:{label:1,disabled:""},model:{value:e.bindFormData.bindStoreMode,callback:function(t){e.$set(e.bindFormData,"bindStoreMode",t)},expression:"bindFormData.bindStoreMode"}},[e._v("选择分组")]),r("el-radio",{staticClass:"m-l-40 m-r-8",attrs:{label:2,disabled:""},model:{value:e.bindFormData.bindStoreMode,callback:function(t){e.$set(e.bindFormData,"bindStoreMode",t)},expression:"bindFormData.bindStoreMode"}},[e._v("选择门店")]),"1"==e.bindFormData.bindStoreMode?r("store-auth-group-dis",{attrs:{"company-id":e.selectEnterpriseId,"store-type":1,"select-group":1==e.bindFormData.bindStoreMode?e.bindFormData.bindRange:[]}}):e._e(),"2"==e.bindFormData.bindStoreMode?r("store-auth-store-dis",{attrs:{"company-id":e.selectEnterpriseId,"store-type":1,"select-store":2==e.bindFormData.bindStoreMode?e.bindFormData.bindRange:[]}}):e._e()],1)]),r("div",{staticClass:"el-form-item el-form-item--large"},[r("label",{staticClass:"el-form-item__label",staticStyle:{width:"143px"},attrs:{for:"name"}},[e._v("\n 门店共享授权范围\n ")]),r("div",{staticClass:"el-form-item__content",staticStyle:{"margin-left":"143px"}},[r("el-radio",{attrs:{label:0,disabled:""},model:{value:e.bindFormData.shareStoreMode,callback:function(t){e.$set(e.bindFormData,"shareStoreMode",t)},expression:"bindFormData.shareStoreMode"}},[e._v("所有门店")]),r("el-radio",{staticClass:"m-l-40 m-r-8",attrs:{label:1,disabled:""},model:{value:e.bindFormData.shareStoreMode,callback:function(t){e.$set(e.bindFormData,"shareStoreMode",t)},expression:"bindFormData.shareStoreMode"}},[e._v("选择分组")]),r("el-radio",{staticClass:"m-l-40 m-r-8",attrs:{label:2,disabled:""},model:{value:e.bindFormData.shareStoreMode,callback:function(t){e.$set(e.bindFormData,"shareStoreMode",t)},expression:"bindFormData.shareStoreMode"}},[e._v("选择门店")]),"1"==e.bindFormData.shareStoreMode?r("store-auth-group-dis",{attrs:{"company-id":e.selectEnterpriseId,"store-type":2,"select-group":1==e.bindFormData.shareStoreMode?e.bindFormData.shareRange:[]}}):e._e(),"2"==e.bindFormData.shareStoreMode?r("store-auth-store-dis",{attrs:{"company-id":e.selectEnterpriseId,"store-type":2,"select-store":2==e.bindFormData.shareStoreMode?e.bindFormData.shareRange:[]}}):e._e()],1)]),r("div",{staticClass:"el-form-item el-form-item--large"},[r("label",{staticClass:"el-form-item__label",staticStyle:{width:"143px"},attrs:{for:"name"}},[e._v("\n 管理员管辖范围\n ")]),r("div",{staticClass:"el-form-item__content",staticStyle:{"margin-left":"143px"}},[r("el-radio",{attrs:{label:"0"},on:{change:e.changeRange},model:{value:e.formData.sendRange,callback:function(t){e.$set(e.formData,"sendRange",t)},expression:"formData.sendRange"}},[e._v("所有门店")]),r("el-radio",{staticClass:"m-l-40 m-r-8",attrs:{label:"1"},on:{change:e.changeRange},model:{value:e.formData.sendRange,callback:function(t){e.$set(e.formData,"sendRange",t)},expression:"formData.sendRange"}},[e._v("选择分组")]),r("el-radio",{staticClass:"m-l-40 m-r-8",attrs:{label:"2"},on:{change:e.changeRange},model:{value:e.formData.sendRange,callback:function(t){e.$set(e.formData,"sendRange",t)},expression:"formData.sendRange"}},[e._v("选择门店")]),("1"!=e.formData.sendRange&&"2"!=e.formData.sendRange||e.formData.selectList.length)&&"null"!=String(e.formData.sendRange)&&""!==e.formData.sendRange?e._e():r("div",{staticClass:"el-form-item__error"},[e._v("请选择绑定门店")]),"1"==e.formData.sendRange?r("store-auth-group",{attrs:{"company-id":e.selectEnterpriseId,"store-type":2,"select-group":e.selectGroupData},on:{checkGroupIds:e.checkGroupIds}}):e._e(),"2"==e.formData.sendRange?r("store-auth-store",{attrs:{"company-id":e.selectEnterpriseId,"store-type":2,"select-store":e.selectStoreData},on:{checkStoreIds:e.checkStoreIds}}):e._e()],1)]),r("div",{staticClass:"el-form-item el-form-item--large"},[r("div",{staticClass:"el-form-item__content",staticStyle:{"margin-left":"143px"}},[r("el-button",{on:{click:e.cancel}},[e._v("取消")]),r("el-button",{attrs:{type:"primary"},on:{click:e.submitForm}},[e._v("确定")])],1)])],1)])},N=[],R=(r("c5f6"),function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"bind-store-body"},[r("div",{staticClass:"select-search"},[r("el-input",{attrs:{placeholder:"请输入分组名称",clearable:""},on:{clear:e.clearSearch},nativeOn:{keyup:function(t){return function(t){return e.toInput(t,e.searchSelect)}(t)}},model:{value:e.searchSelect,callback:function(t){e.searchSelect=t},expression:"searchSelect"}},[r("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})])],1),r("div",{staticClass:"select-tree-wrap auth-select-tree m-t-20"},[r("el-tree",{ref:"groupTree",attrs:{"filter-node-method":e.filterNode,"check-strictly":"",data:e.groupData,"node-key":"storeGroupId","show-checkbox":"","default-expand-all":"",props:e.defaultProps,"expand-on-click-node":!1},scopedSlots:e._u([{key:"default",fn:function(t){var a=t.node,n=t.data;return r("span",{staticClass:"custom-tree-node",attrs:{id:n.storeGroupId}},[r("span",{staticClass:"font-14 color-606266"},[e._v(e._s(a.label))]),1==n.bindFlag&&1!=n.auditFlag?r("span",{staticClass:"font-12 color-909399 p-l-10"},[e._v(e._s(n.bindWxEnterpriseName)+" 企业已授权")]):e._e(),1==n.auditFlag?r("span",{staticClass:"font-12 color-909399 p-l-10"},[e._v(e._s(n.bindWxEnterpriseName)+" 企业授权中")]):e._e()])}}])})],1)])}),F=[],O=r("21f4"),A=O["a"].getGroupList,E={name:"StoreAuthGroupPage",props:{companyId:{type:String,default:""},storeType:{type:String,default:"1"},selectGroup:{type:[Object,Array],default:function(){return{}}}},data:function(){return{searchSelect:"",groupData:[],groupDataCopy:[],defaultProps:{children:"children",label:"storeGroupName"}}},mounted:function(){var e=this;e.companyId&&e.getGroup(),e.selectGroup.length?e.$nextTick((function(){e.$refs.groupTree.setCheckedKeys(e.selectGroup.map((function(e){return e.storeGroupId})))})):e.$nextTick((function(){e.$refs.groupTree.setCheckedKeys([])}))},methods:{filterNode:function(e,t){return!e||!t.label||-1!==t.label.indexOf(e)},toInput:Object(m["a"])((function(e,t){var r=this;if(!r.groupDataCopy.length)return!1}),200),clearSearch:function(){return!1},checkChild:function(e,t){var r=this;e.children.forEach((function(e){r.$refs.groupTree.setChecked(e.storeGroupId,t,!0),e.disabled=!0,e.children&&e.children.length&&r.checkChild(e,t)}))},treeData:function(e){var t=e.filter((function(t){var r=e.filter((function(e){return t.storeGroupId==e.parentId}));return r.length>0?(t.hasSonNode=!0,t.children=r):(t.children=[],t.hasSonNode=!1),0==t.parentId}));return t},setSelectCheck:function(){var e=this,t=e.selectGroup.map((function(e){return e.storeGroupId}));e.groupData.forEach((function(r){r.disabled=!0,t.includes(r.storeGroupId)&&r.children.length&&e.checkChild(r,!0),t.includes(r.storeGroupId)||e.disableChild(r,t)}))},disableChild:function(e,t){var r=this;e.children.forEach((function(e){e.disabled=!0,t.includes(e.storeGroupId)&&e.children.length&&r.checkChild(e,!0),!t.includes(e.storeGroupId)&&e.children.length&&r.disableChild(e,t)}))},getGroup:function(){var e=this,t={type:e.storeType,enterpriseId:e.companyId};A(t).then(function(){var t=Object(p["a"])(regeneratorRuntime.mark((function t(r){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return r.result&&r.result.length&&r.result.forEach((function(e){e.expand=!1,e.children=[],e.disabled=!1,e.label=e.storeGroupName})),t.next=3,e.treeData(JSON.parse(JSON.stringify(r.result)));case 3:if(t.t0=t.sent,t.t0){t.next=6;break}t.t0=[];case 6:e.groupData=t.t0,e.groupDataCopy=JSON.parse(JSON.stringify(r.result)),e.$nextTick((function(){e.setSelectCheck()}));case 9:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(e){}))}},watch:{searchSelect:function(e){this.$refs.groupTree.filter(e)},selectGroup:function(e){var t=this;e.length?t.$nextTick((function(){t.$refs.groupTree.setCheckedKeys(e.map((function(e){return e.storeGroupId})))})):t.$nextTick((function(){t.$refs.groupTree.setCheckedKeys([])}))},companyId:function(e){var t=this;e&&t.getGroup()}}},$=E,M=(r("38b9"),Object(I["a"])($,R,F,!1,null,"296e4081",null)),J=M.exports,L=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"daily-store-select"},[r("div",{staticClass:"select-search"},[r("el-input",{staticStyle:{width:"100%"},attrs:{placeholder:"请输入门店名称/代码",clearable:""},on:{clear:e.clearSearch},nativeOn:{keyup:function(t){return function(t){return e.toInput(t,e.searchSelect)}(t)}},model:{value:e.searchSelect,callback:function(t){e.searchSelect=t},expression:"searchSelect"}},[r("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})])],1),r("div",{staticClass:"el-scrollbar define-search-select"},[r("div",{staticClass:"el-select-dropdown__wrap el-scrollbar__wrap",staticStyle:{overflow:"auto"}},[r("el-checkbox-group",{attrs:{max:50},on:{change:e.handleStoresChange},model:{value:e.dailyRuleForm.stores,callback:function(t){e.$set(e.dailyRuleForm,"stores",t)},expression:"dailyRuleForm.stores"}},[r("ul",{staticClass:"el-scrollbar__view el-select-dropdown__list"},[e._l(e.stores,(function(t){return r("li",{key:t.storeInfoId,class:["el-select-dropdown__item",t.select?"selected hover":""],on:{click:function(r){return r.stopPropagation(),e.toShowMsg(t)}}},[r("el-checkbox",{attrs:{disabled:"",label:t.storeInfoId}},[e._v(e._s(t.storeInfoName))]),1==t.bindFlag&&1!=t.auditFlag?r("span",{staticClass:"font-12 color-909399 p-l-10"},[e._v(e._s(t.bindWxEnterpriseName)+" 企业已授权")]):e._e(),1==t.auditFlag?r("span",{staticClass:"font-12 color-909399 p-l-10"},[e._v(e._s(t.bindWxEnterpriseName)+" 企业授权中")]):e._e()],1)})),e.stores.length?e._e():r("li",{staticClass:"text-center"},[r("span",[e._v("暂无数据")])])],2)])],1)])])},G=[],j=O["a"].getStoreList,T={name:"StoreAuthStore",props:{companyId:{type:String,default:""},storeType:{type:String,default:"1"},selectStore:{type:[Object,Array],default:function(){return{}}}},data:function(){return{checkAll:!1,isIndeterminate:!1,searchSelect:"",stores:[],storesCopy:[],dailyRuleForm:{stores:[]},pageNum:1,pageSize:300}},mounted:function(){var e=this;e.stores=[],e.storesCopy=[],e.companyId&&(e.pageNum=1,e.getStoreData()),e.selectStore.length?e.dailyRuleForm.stores=e.selectStore.map((function(e){return e.storeInfoId}))||[]:e.dailyRuleForm.stores=[]},methods:{toShowMsg:function(e){1==e.bindFlag&&S["a"].showmsg("当前门店已被其他企业绑定,当前企业无法选择!","warning")},handleStoresChange:function(e){var t=this,r=[];t.stores.forEach((function(t){e.includes(t.storeInfoId)&&r.push(t)})),t.$emit("checkStoreIds",JSON.parse(JSON.stringify(r)))},toInput:Object(m["a"])((function(e,t){var r=this;""!=r.searchSelect&&(r.stores=[],r.pageNum=1,r.getStoreData())}),500),clearSearch:function(){var e=this;e.stores=[],e.pageNum=1,e.getStoreData()},getStoreData:function(){var e=this,t={search:e.searchSelect,enterpriseId:e.companyId,type:e.storeType,pageNum:e.pageNum,pageSize:e.pageSize};j(t).then((function(t){1==e.pageNum?(e.stores=JSON.parse(JSON.stringify(t.result.result))||[],e.storesCopy=JSON.parse(JSON.stringify(t.result.result))||[]):t.result.result.forEach((function(t){e.stores.push(t),e.storesCopy.push(t)})),e.pageNum*e.pageSize<t.result.totalCount&&(e.pageNum++,e.$nextTick((function(){e.getStoreData()})))})).catch((function(e){}))}},watch:{selectStore:function(e,t){var r=this;e.length?r.dailyRuleForm.stores=e.map((function(e){return e.storeInfoId}))||[]:r.dailyRuleForm.stores=[]},companyId:function(e){var t=this;e&&(t.pageNum=1,t.getStoreData())}}},q=T,P=(r("b2ab"),Object(I["a"])(q,L,G,!1,null,"adaa54f2",null)),B=P.exports,z=r("7ca9"),U=r("418e"),K=r("3081"),W=O["a"].getAuthDetail,V={name:"SelectAdminStore",components:{storeAuthGroup:z["a"],storeAuthStore:U["a"],storeAuthGroupDis:J,storeAuthStoreDis:B,commonAlertTip:K["a"]},props:{showAuthFlag:{type:Boolean,default:!1},enterpriseId:{type:String,default:""},bindType:{type:[String,Number],default:"2"},selectMode:{type:[String,Number],default:""},rangeData:{type:[Object,Array],default:function(){return[]}}},data:function(){return{wxEnterpriseId:localStorage.getItem("haoBanUser")?JSON.parse(localStorage.getItem("haoBanUser")).wxEnterpriseId:"",tipContent:"管理范围是根据门店绑定与门店共享选择范围的并集。即选择门店绑定的范围拥有管理权限,门店共享和门店绑定范围的并集拥有查看权限",visibleFlag:!1,bindFormData:{},formData:{sendRange:this.selectMode||"",selectList:[]},selectEnterpriseId:this.enterpriseId,selectGroupData:[],selectStoreData:[]}},mounted:function(){var e=this;e.selectEnterpriseId=e.enterpriseId,e.visibleFlag=e.showAuthFlag,e.formData.sendRange="null"==String(e.selectMode)?"":String(e.selectMode),e.selectGroupData=1==e.selectMode?JSON.parse(JSON.stringify(e.rangeData)):[],e.selectStoreData=2==e.selectMode?JSON.parse(JSON.stringify(e.rangeData)):[],e.formData.selectList=JSON.parse(JSON.stringify(e.rangeData))||[],e.enterpriseId&&e.getData()},methods:{getData:function(){var e=this,t={enterpriseId:e.enterpriseId,wxEnterpriseId:e.wxEnterpriseId};W(t).then((function(t){t.result.bindRange?t.result.bindRange=JSON.parse(t.result.bindRange):t.result.bindRange=[],t.result.shareRange?t.result.shareRange=JSON.parse(t.result.shareRange):t.result.shareRange=[],e.bindFormData=t.result||{}})).catch((function(e){}))},changeRange:function(e){var t=this;t.formData.sendRange=e,t.formData.selectList=[]},handleClose:function(){var e=this;e.$emit("closeSet","close"),e.selectGroupData=[],e.selectStoreData=[]},cancel:function(){var e=this;e.$emit("closeSet","close"),e.selectGroupData=[],e.selectStoreData=[]},checkGroupIds:function(e){var t=this;t.formData.selectList=JSON.parse(JSON.stringify(e))},checkStoreIds:function(e){var t=this;t.formData.selectList=JSON.parse(JSON.stringify(e))},submitForm:function(){var e=this;return"null"!=String(e.formData.sendRange)&&""!==e.formData.sendRange&&(!("1"==e.formData.sendRange&&!e.formData.selectList.length)&&(!("2"==e.formData.sendRange&&!e.formData.selectList.length)&&void e.$emit("closeSet",String(e.formData.sendRange),e.formData.selectList)))}},watch:{showAuthFlag:function(e){this.visibleFlag=e},searchSelect:function(e){this.$refs.groupTree.filter(e)},selectMode:function(e){var t=this;t.formData.sendRange="null"==String(e)?"":String(e)},rangeData:function(e){var t=this;t.selectGroupData=1==t.selectMode?JSON.parse(JSON.stringify(e)):[],t.selectStoreData=2==t.selectMode?JSON.parse(JSON.stringify(e)):[],t.formData.selectList=JSON.parse(JSON.stringify(e))||[]},enterpriseId:function(e){var t=this;t.selectEnterpriseId=e,e&&t.getData()}}},Y=V,H=(r("f5c9"),Object(I["a"])(Y,C,N,!1,null,"3686cd0d",null)),Q=H.exports,X=v.getRoleRange,Z=v.addAdmin,ee={name:"EditAdminPage",components:{navCrumb:s["a"],selectAdmin:D,selectAdminStore:Q},data:function(){return{navpath:[{name:"管理员",path:"/admin-list"},{name:this.$route.query.staffId?"编辑管理员":"新建管理员",path:""}],wxEnterpriseId:localStorage.getItem("haoBanUser")?JSON.parse(localStorage.getItem("haoBanUser")).wxEnterpriseId:"",adminName:this.$route.query.staffName?this.$route.query.staffName:"",adminForm:{adminList:[],enterpriseList:[]},rules:{adminList:[{type:"array",required:!0,message:"请选择管理员",trigger:"change"}],enterpriseList:[{type:"array",required:!0,message:"请选择授权范围",trigger:"change"}]},loadBtn:!1,tableData:[{}],showAdminFlag:!1,showAuthFlag:!1,enterpriseId:"",selectMode:"",rangeData:[],editIndex:"",editRow:{bindRange:[],bindStoreMode:"",enterpriseId:"",enterpriseName:"",shareRange:[],shareStoreMode:""}}},mounted:function(){var e=this;e.$emit("showAsideMenu",!1),e.getTableList(),e.$route.query.staffId&&(e.adminForm.adminList=[{levelId:e.$route.query.staffId,levelName:e.$route.query.levelName}]),document.documentElement.style.backgroundColor="#f0f2f5"},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},methods:{saveAdmin:function(e){var t=this,r=JSON.parse(JSON.stringify(t.tableData)),a=!0;r.forEach((function(e){2==e.radio&&(e.bindStoreMode="",e.bindRange=""),1==e.radio&&e.bindStoreMode>0&&e.bindRange.length&&(e.bindGroupIds=1==e.bindStoreMode?e.bindRange.map((function(e){return e.storeGroupId})).join(","):"",e.bindStoreIds=2==e.bindStoreMode?e.bindRange.map((function(e){return e.storeInfoId})).join(","):""),1==e.radio&&(e.bindStoreMode>0&&!e.bindRange.length||""===e.bindStoreMode||"null"==String(e.bindStoreMode))&&(a=!1)})),r.forEach((function(e){delete e.bindRange})),t.adminForm.enterpriseList=a?r:[],t.loadBtn=!0,t.$refs[e].validate((function(e){if(!e)return t.loadBtn=!1,!1;t.postSave(r)}))},postSave:function(e){var t=this,r={roleId:t.$route.query.roleId,staffIds:t.$route.query.staffId||t.adminForm.adminList.map((function(e){return e.levelId})).join(","),enterpriseRange:JSON.stringify(e),wxEnterpriseId:t.wxEnterpriseId};Z(r).then((function(e){t.loadBtn=!1,"0000"==e.code?(S["a"].showmsg("保存成功","success"),t.$router.push("/admin-list")):t.$message({message:e.message||"未知错误",type:"warning"})})).catch((function(e){t.loadBtn=!1}))},showAdmin:function(){var e=this;if(e.$route.query.staffId)return!1;e.showAdminFlag=!0},delAdmin:function(e,t){t.splice(e,1)},checkAdmins:function(e){var t=this;if(t.showAdminFlag=!1,"close"==e)return!1;t.adminForm.adminList=e},showAuth:function(e,t){var r=this;r.selectMode="",r.editIndex=e,r.editRow=t,r.enterpriseId=t.enterpriseId,r.selectMode=t.bindStoreMode,r.rangeData=JSON.parse(JSON.stringify(t.bindRange))||[],r.showAuthFlag=!0},closeSet:function(e,t){var r=this;if(r.showAuthFlag=!1,r.selectMode="","close"==e)return!1;r.editRow.bindStoreMode=String(e),r.editRow.bindRange=JSON.parse(JSON.stringify(t))},delAuth:function(e,t){t.splice(e,1)},changeRoute:function(e){this.$router.push(e)},getTableList:function(){var e=this,t={roleId:e.$route.query.roleId,staffId:e.$route.query.staffId,wxEnterpriseId:e.wxEnterpriseId};X(t).then((function(t){t.result&&t.result.length&&t.result.forEach((function(e){e.radio=(null!=e.bindStoreMode&&""!==e.bindStoreMode||"[]"!=e.bindRange&&""!=e.bindRange)&&-1!=e.bindStoreMode?"1":"2",e.bindRange?e.bindRange=JSON.parse(e.bindRange):e.bindRange=[]})),e.tableData=t.result||[]})).catch((function(e){}))}}},te=ee,re=(r("4dbe"),Object(I["a"])(te,a,n,!1,null,"5cd06998",null));t["default"]=re.exports},9304:function(e,t,r){},9614:function(e,t,r){"use strict";var a=r("259b"),n=r.n(a);n.a},b2ab:function(e,t,r){"use strict";var a=r("9304"),n=r.n(a);n.a},b39a:function(e,t,r){var a=r("d3f4");e.exports=function(e,t){if(!a(e)||e._t!==t)throw TypeError("Incompatible receiver, "+t+" required!");return e}},bf13:function(e,t,r){},c26b:function(e,t,r){"use strict";var a=r("86cc").f,n=r("2aeb"),s=r("dcbc"),i=r("9b43"),o=r("f605"),l=r("4a59"),c=r("01f9"),d=r("d53b"),u=r("7a56"),f=r("9e1e"),h=r("67ab").fastKey,p=r("b39a"),m=f?"_s":"size",g=function(e,t){var r,a=h(t);if("F"!==a)return e._i[a];for(r=e._f;r;r=r.n)if(r.k==t)return r};e.exports={getConstructor:function(e,t,r,c){var d=e((function(e,a){o(e,d,t,"_i"),e._t=t,e._i=n(null),e._f=void 0,e._l=void 0,e[m]=0,void 0!=a&&l(a,r,e[c],e)}));return s(d.prototype,{clear:function(){for(var e=p(this,t),r=e._i,a=e._f;a;a=a.n)a.r=!0,a.p&&(a.p=a.p.n=void 0),delete r[a.i];e._f=e._l=void 0,e[m]=0},delete:function(e){var r=p(this,t),a=g(r,e);if(a){var n=a.n,s=a.p;delete r._i[a.i],a.r=!0,s&&(s.n=n),n&&(n.p=s),r._f==a&&(r._f=n),r._l==a&&(r._l=s),r[m]--}return!!a},forEach:function(e){p(this,t);var r,a=i(e,arguments.length>1?arguments[1]:void 0,3);while(r=r?r.n:this._f){a(r.v,r.k,this);while(r&&r.r)r=r.p}},has:function(e){return!!g(p(this,t),e)}}),f&&a(d.prototype,"size",{get:function(){return p(this,t)[m]}}),d},def:function(e,t,r){var a,n,s=g(e,t);return s?s.v=r:(e._l=s={i:n=h(t,!0),k:t,v:r,p:a=e._l,n:void 0,r:!1},e._f||(e._f=s),a&&(a.n=s),e[m]++,"F"!==n&&(e._i[n]=s)),e},getEntry:g,setStrong:function(e,t,r){c(e,t,(function(e,r){this._t=p(e,t),this._k=r,this._l=void 0}),(function(){var e=this,t=e._k,r=e._l;while(r&&r.r)r=r.p;return e._t&&(e._l=r=r?r.n:e._t._f)?d(0,"keys"==t?r.k:"values"==t?r.v:[r.k,r.v]):(e._t=void 0,d(1))}),r?"entries":"values",!r,!0),u(t)}}},e0b8:function(e,t,r){"use strict";var a=r("7726"),n=r("5ca1"),s=r("2aba"),i=r("dcbc"),o=r("67ab"),l=r("4a59"),c=r("f605"),d=r("d3f4"),u=r("79e5"),f=r("5cc5"),h=r("7f20"),p=r("5dbc");e.exports=function(e,t,r,m,g,b){var v=a[e],S=v,y=g?"set":"add",_=S&&S.prototype,k={},w=function(e){var t=_[e];s(_,e,"delete"==e||"has"==e?function(e){return!(b&&!d(e))&&t.call(this,0===e?0:e)}:"get"==e?function(e){return b&&!d(e)?void 0:t.call(this,0===e?0:e)}:"add"==e?function(e){return t.call(this,0===e?0:e),this}:function(e,r){return t.call(this,0===e?0:e,r),this})};if("function"==typeof S&&(b||_.forEach&&!u((function(){(new S).entries().next()})))){var I=new S,x=I[y](b?{}:-0,1)!=I,D=u((function(){I.has(1)})),C=f((function(e){new S(e)})),N=!b&&u((function(){var e=new S,t=5;while(t--)e[y](t,t);return!e.has(-0)}));C||(S=t((function(t,r){c(t,S,e);var a=p(new v,t,S);return void 0!=r&&l(r,g,a[y],a),a})),S.prototype=_,_.constructor=S),(D||N)&&(w("delete"),w("has"),g&&w("get")),(N||x)&&w(y),b&&_.clear&&delete _.clear}else S=m.getConstructor(t,e,g,y),i(S.prototype,r),o.NEED=!0;return h(S,e),k[e]=S,n(n.G+n.W+n.F*(S!=v),k),b||m.setStrong(S,e,g),S}},e6f1:function(e,t,r){},f5c9:function(e,t,r){"use strict";var a=r("3582"),n=r.n(a);n.a}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2c715f0c"],{"0d0f":function(t,e,a){},"28a5":function(t,e,a){"use strict";var n=a("aae3"),s=a("cb7c"),i=a("ebd6"),r=a("0390"),u=a("9def"),o=a("5f1b"),c=a("520a"),l=a("79e5"),f=Math.min,d=[].push,g="split",p="length",h="lastIndex",v=4294967295,b=!l((function(){RegExp(v,"y")}));a("214f")("split",2,(function(t,e,a,l){var m;return m="c"=="abbc"[g](/(b)*/)[1]||4!="test"[g](/(?:)/,-1)[p]||2!="ab"[g](/(?:ab)*/)[p]||4!="."[g](/(.?)(.?)/)[p]||"."[g](/()()/)[p]>1||""[g](/.?/)[p]?function(t,e){var s=String(this);if(void 0===t&&0===e)return[];if(!n(t))return a.call(s,t,e);var i,r,u,o=[],l=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),f=0,g=void 0===e?v:e>>>0,b=new RegExp(t.source,l+"g");while(i=c.call(b,s)){if(r=b[h],r>f&&(o.push(s.slice(f,i.index)),i[p]>1&&i.index<s[p]&&d.apply(o,i.slice(1)),u=i[0][p],f=r,o[p]>=g))break;b[h]===i.index&&b[h]++}return f===s[p]?!u&&b.test("")||o.push(""):o.push(s.slice(f)),o[p]>g?o.slice(0,g):o}:"0"[g](void 0,0)[p]?function(t,e){return void 0===t&&0===e?[]:a.call(this,t,e)}:a,[function(a,n){var s=t(this),i=void 0==a?void 0:a[e];return void 0!==i?i.call(a,s,n):m.call(String(s),a,n)},function(t,e){var n=l(m,t,this,e,m!==a);if(n.done)return n.value;var c=s(t),d=String(this),g=i(c,RegExp),p=c.unicode,h=(c.ignoreCase?"i":"")+(c.multiline?"m":"")+(c.unicode?"u":"")+(b?"y":"g"),D=new g(b?c:"^(?:"+c.source+")",h),y=void 0===e?v:e>>>0;if(0===y)return[];if(0===d.length)return null===o(D,d)?[d]:[];var C=0,w=0,F=[];while(w<d.length){D.lastIndex=b?w:0;var T,x=o(D,b?d:d.slice(w));if(null===x||(T=f(u(D.lastIndex+(b?0:w)),d.length))===C)w=r(d,w,p);else{if(F.push(d.slice(C,w)),F.length===y)return F;for(var k=1;k<=x.length-1;k++)if(F.push(x[k]),F.length===y)return F;w=C=T}}return F.push(d.slice(C)),F}]}))},"5b4e":function(t,e,a){"use strict";var n=a("5c96");e["a"]={showmsg:function(t,e){Object(n["Message"])({duration:1e3,message:t||"接口异常",type:e})}}},"71f6":function(t,e,a){"use strict";a.d(e,"a",(function(){return s}));a("ac6a"),a("456d");var n=a("b775");function s(t,e){t=t||{};var a=Object.keys(t);return a.forEach((function(a){var s=t[a];"string"===typeof s&&(s={url:s}),s.url="".concat(e).concat(s.url),t[a]=function(t){return Object(n["a"])(s,t)}})),t}},b5b0: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:"common-app-right"},[a("div",{staticClass:"clerk-tag-body flex"},[a("div",{staticClass:"clerk-tag-left border-box"},[a("div",{staticClass:"clerk-tag-add"},[a("el-button",{attrs:{icon:"el-icon-plus"}},[t._v("新建分类")])],1)]),a("div",{staticClass:"clerk-tag-right p-20 border-box"},[a("div",{staticClass:"clerk-tag-search"},[a("div",{staticClass:"flex flex-space-between"},[a("div",[a("el-input",{staticStyle:{width:"298px"},attrs:{placeholder:"请输入标签名称",maxlength:"50","prefix-icon":"el-icon-search",clearable:""},on:{clear:t.clearInput},nativeOn:{keyup:function(e){return function(e){return t.toInput(e)}(e)}},model:{value:t.searchVal,callback:function(e){t.searchVal=e},expression:"searchVal"}})],1),a("div",[a("el-button",{attrs:{type:"primary"}},[t._v("新建标签")])],1)])]),a("div",[a("el-table",{staticStyle:{width:"100%"},attrs:{data:t.tagsData}},[a("el-table-column",{attrs:{prop:"",label:"",width:"100","class-name":"move-row-cell"}},[[a("span",{staticClass:"font-22 iconfont icontuozhuaiopen color-c4c6cf",staticStyle:{cursor:"move"}})]],2),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.name||"--"))]}}])}),a("el-table-column",{attrs:{prop:"",label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text"},on:{click:function(a){return t.toEditTag(e.$index,e.row)}}},[t._v("编辑")]),a("el-button",{attrs:{type:"text"},on:{click:function(a){return t.toEditVisiable(e.$index,e.row)}}},[t._v("编辑可见范围")]),a("el-button",{attrs:{type:"text"},on:{click:function(a){return t.toDelTag(e.$index,e.row)}}},[t._v("删除")])]}}])})],1)],1)])])])},s=[],i=a("d11a"),r=a("d157"),u=a("5b4e"),o=i["a"].getTagClassify,c=i["a"].getClerkTag,l=i["a"].delClerkTag,f={name:"ClerkTag",components:{},data:function(){return{currentClassify:"",tagsClassifyData:[],tagsData:[],showTagDialog:!1,showTagVisiable:!1}},mounted:function(){var t=this;t.getClassifyList()},methods:{toEditTag:function(t,e){var a=this;a.showTagDialog=!0},toEditVisiable:function(t,e){var a=this;a.showTagVisiable=!0},refreshTagData:function(){var t=this;t.getTableList()},toDelTag:function(t,e){var a=this;a.$confirm("是否要删除选中的标签?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){a.delTagData(e.tagId)})).catch((function(){}))},delTagData:function(t){var e=this,a={tagId:t};l(a).then((function(t){e.getTableList(),"0000"==t.code?u["a"].showmsg("删除成功","success"):u["a"].showmsg(t.message||"接口异常","warning")})).catch((function(t){}))},toInput:Object(r["a"])((function(){var t=this;t.getTableList()}),500),clearInput:function(){var t=this;t.getTableList()},getTableList:function(){var t=this;t.loading=!0;var e={};c(e).then((function(e){t.tagsData=e.result||[]})).catch((function(t){}))},getClassifyList:function(){var t=this;t.loading=!0;var e={};o(e).then((function(e){t.tagsClassifyData=e.result||[],e.result&&e.result.length&&(t.currentClassify=e.result[0].classifyId,t.getTableList())})).catch((function(t){}))}},watch:{}},d=f,g=(a("f203"),a("2877")),p=Object(g["a"])(d,n,s,!1,null,"6d7db23d",null);e["default"]=p.exports},d11a:function(t,e,a){"use strict";var n=a("71f6"),s={getGroupList:"/department-list",getStoreList:"/store-list",getAssignStatus:"/app-distribute-status",getNavChain:"/get-chain",getMemberList:{url:"/app-get-member-info-list",method:"post",useFormData:!0},getClerkList:"/clerk-list",getMemberCount:"",saveAssign:{url:"/",method:"post",useFormData:!0},getMemberData:"",getServiceData:"",saveSortMember:{url:"/",method:"post",useFormData:!0,useIntercept:!1},getShowSet:"",saveShowSet:{url:"",method:"post",useFormData:!0,useIntercept:!1},getCustomerSet:"",saveCustomerSet:{url:"",method:"post",useFormData:!0,useIntercept:!1},getGroupData:"",getClassifyData:"",postSortGroup:{url:"/",method:"post",useFormData:!0,useIntercept:!1},getSyncMemberData:"",saveSync:{url:"/",method:"post",useFormData:!0,useIntercept:!1},saveVisiable:{url:"/",method:"post",useFormData:!0,useIntercept:!1},getTagClassify:"",addClassify:"",delClassify:{url:"/",method:"post",useFormData:!0,useIntercept:!1},getClerkTag:"",addClerkTag:"",delClerkTag:{url:"/",method:"post",useFormData:!0,useIntercept:!1}};s=Object(n["a"])(s,"/hb-manage-web"),e["a"]=s},d157:function(t,e,a){"use strict";a.d(e,"a",(function(){return n})),a.d(e,"b",(function(){return s})),a.d(e,"c",(function(){return i}));a("c5f6"),a("a481"),a("28a5"),a("6b54");function n(t,e){var a,n=e||200;return function(){var e=this,s=arguments;a&&clearTimeout(a),a=setTimeout((function(){a=null,t.apply(e,s)}),n)}}function s(t,e){var a,n,s=e||200;return function(){var e=this,i=arguments,r=+new Date;a&&r-a<s?(clearTimeout(n),n=setTimeout((function(){a=r,t.apply(e,i)}),s)):(a=r,t.apply(e,i))}}function i(t){return t=t.replace(/\uD83C[\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F]|[\uD800-\uDBFF]|[\uDC00-\uDFFF]|[^\u0020-\u007E\u00A0-\u00BE\u2E80-\uA4CF\uF900-\uFAFF\uFE30-\uFE4F\uFF00-\uFFEF\u0080-\u009F\u2000-\u201f\u2026\u2022\u20ac\r\n]/g,""),unescape(escape(t).replace(/\%uD.{3}/g,""))}},f203:function(t,e,a){"use strict";var n=a("0d0f"),s=a.n(n);s.a}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-3c06dd3c"],{5898:function(t,e,a){"use strict";var o=a("d363"),s=a.n(o);s.a},"5b4e6":function(t,e,a){"use strict";var o=a("5c96");e["a"]={showmsg:function(t,e){Object(o["Message"])({duration:1e3,message:t||"接口异常",type:e})}}},"71f6":function(t,e,a){"use strict";a.d(e,"a",(function(){return s}));a("ac6a"),a("456d");var o=a("b775");function s(t,e){t=t||{};var a=Object.keys(t);return a.forEach((function(a){var s=t[a];"string"===typeof s&&(s={url:s}),s.url="".concat(e).concat(s.url),t[a]=function(t){return Object(o["a"])(s,t)}})),t}},d11a:function(t,e,a){"use strict";var o=a("71f6"),s={getGroupList:"/department-list",getStoreList:"/store-list",getAssignStatus:"/app-distribute-status",getNavChain:"/get-chain",getMemberList:{url:"/app-get-member-info-list",method:"post",useFormData:!0},getClerkList:"/clerk-list",getMemberCount:"",saveAssign:{url:"/",method:"post",useFormData:!0},getMemberData:"",getServiceData:"",saveSortMember:{url:"/",method:"post",useFormData:!0,useIntercept:!1},getShowSet:"",saveShowSet:{url:"",method:"post",useFormData:!0,useIntercept:!1},getCustomerSet:"",saveCustomerSet:{url:"",method:"post",useFormData:!0,useIntercept:!1},getGroupData:"",getClassifyData:"",postSortGroup:{url:"/",method:"post",useFormData:!0,useIntercept:!1},getSyncMemberData:"",saveSync:{url:"/",method:"post",useFormData:!0,useIntercept:!1},saveVisiable:{url:"/",method:"post",useFormData:!0,useIntercept:!1},getTagClassify:"",addClassify:"",delClassify:{url:"/",method:"post",useFormData:!0,useIntercept:!1},getClerkTag:"",addClerkTag:"",delClerkTag:{url:"/",method:"post",useFormData:!0,useIntercept:!1}};s=Object(o["a"])(s,"/hb-manage-web"),e["a"]=s},d157:function(t,e,a){"use strict";a.d(e,"a",(function(){return o})),a.d(e,"b",(function(){return s})),a.d(e,"c",(function(){return r}));a("c5f6"),a("a481"),a("28a5"),a("6b54");function o(t,e){var a,o=e||200;return function(){var e=this,s=arguments;a&&clearTimeout(a),a=setTimeout((function(){a=null,t.apply(e,s)}),o)}}function s(t,e){var a,o,s=e||200;return function(){var e=this,r=arguments,n=+new Date;a&&n-a<s?(clearTimeout(o),o=setTimeout((function(){a=n,t.apply(e,r)}),s)):(a=n,t.apply(e,r))}}function r(t){return t=t.replace(/\uD83C[\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F]|[\uD800-\uDBFF]|[\uDC00-\uDFFF]|[^\u0020-\u007E\u00A0-\u00BE\u2E80-\uA4CF\uF900-\uFAFF\uFE30-\uFE4F\uFF00-\uFFEF\u0080-\u009F\u2000-\u201f\u2026\u2022\u20ac\r\n]/g,""),unescape(escape(t).replace(/\%uD.{3}/g,""))}},d363:function(t,e,a){},f766: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:"common-app-right"},[a("div",{staticClass:"m-b-20"},[a("el-checkbox",{staticClass:"w-195",model:{value:t.customerShowData.mainStoreFlag,callback:function(e){t.$set(t.customerShowData,"mainStoreFlag",e)},expression:"customerShowData.mainStoreFlag"}},[t._v("展示服务门店顾客")]),a("div",{staticClass:"font-14 color-909399 set-tip-item"},[t._v("注:保存勾选项后,门店导购和店长可查看本门店作为服务门店名下顾客")])],1),a("div",{staticClass:"m-b-20"},[a("el-checkbox",{staticClass:"w-195",model:{value:t.customerShowData.minorStoreFlag,callback:function(e){t.$set(t.customerShowData,"minorStoreFlag",e)},expression:"customerShowData.minorStoreFlag"}},[t._v("展示协管门店顾客")]),a("div",{staticClass:"font-14 color-909399 set-tip-item"},[t._v("注:保存勾选项后,门店导购和店长可查看本门店作为协管门店名下顾客")])],1),a("div",{staticClass:"m-b-20"},[a("el-checkbox",{staticClass:"w-195",model:{value:t.customerShowData.openCardStoreFlag,callback:function(e){t.$set(t.customerShowData,"openCardStoreFlag",e)},expression:"customerShowData.openCardStoreFlag"}},[t._v("展示开卡门店顾客")]),a("div",{staticClass:"font-14 color-909399 set-tip-item"},[t._v("注:保存勾选项后,门店导购和店长可查看本门店作为开卡门店名下顾客")])],1),a("div",{staticClass:"m-t-46"},[a("el-button",{attrs:{type:"primary",loading:t.loading},on:{click:function(e){return t.submit()}}},[t._v("保存")])],1)])},s=[],r=a("d11a"),n=a("d157"),u=a("5b4e6"),c=r["a"].getShowSet,i=r["a"].saveShowSet,l={name:"CustomerShowSet",components:{},props:{brandId:{type:String,default:""}},data:function(){return{customerShowData:{mainStoreFlag:!1,minorStoreFlag:!1,openCardStoreFlag:!1},loading:!1}},mounted:function(){var t=this;t.brandId&&t.getShowData()},methods:{submit:Object(n["a"])((function(){var t=this;t.loading=!0,t.setData()}),500),setData:function(){var t=this,e={enterpriseId:t.brandId,mainStoreFlag:t.customerShowData.mainStoreFlag?1:"0",minorStoreFlag:t.customerShowData.minorStoreFlag?1:"0",openCardStoreFlag:t.customerShowData.openCardStoreFlag?1:"0"};i(e).then((function(e){t.loading=!1,t.getShowData(),"0000"==e.code?u["a"].showmsg("操作成功","success"):u["a"].showmsg(e.message||"接口异常","warning")})).catch((function(e){t.loading=!1}))},getShowData:function(){var t=this,e={enterpriseId:t.brandId};c(e).then((function(e){t.customerShowData=e.result||[]})).catch((function(t){}))}},watch:{brandId:function(t){var e=this;t&&e.getShowData()}}},m=l,d=(a("5898"),a("2877")),p=Object(d["a"])(m,o,s,!1,null,"fdef3edc",null);e["default"]=p.exports}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-3e212760"],{"50c8":function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"enterprise-wrap"},[n("vue-office-header",{attrs:{"project-name":e.projectName},on:{collapseTag:e.collapseTag,toRouterView:e.toRouterView}}),n("div",{staticClass:"enterprise-wrap__body"},[n("div",{staticClass:"content",attrs:{id:"content"}},[n("div",{staticClass:"content-body",style:{height:e.contentHeight}},[n("transition",{attrs:{name:"fade",mode:"out-in"}},[n("router-view")],1)],1)])])],1)},o=[],r=n("f777"),i={name:"EnterprisePage",components:{vueOfficeHeader:r["a"]},data:function(){return{projectName:"haoban-manage-web",collapseFlag:!1,contentHeight:window.screen.availHeight-5+"px"}},mounted:function(){var e=this;e.contentHeight=(document.documentElement.clientHeight||document.body.clientHeight)-64+"px"},methods:{toRouterView:function(e){var t=this;t.$router.push({path:e.path})},collapseTag:function(e){var t=this;t.collapseFlag=e}}},s=i,c=(n("bcc2"),n("2877")),u=Object(c["a"])(s,a,o,!1,null,"7e302da0",null);t["default"]=u.exports},5937:function(e,t,n){"use strict";var a=n("71f6"),o={getRoleMenu:"/list-staff-role-menu"};o=Object(a["a"])(o,"/hb-manage-web"),t["a"]=o},"6ce2":function(e,t,n){e.exports=n.p+"img/member.1eda5d6c.png"},"71f6":function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));n("ac6a"),n("456d");var a=n("b775");function o(e,t){e=e||{};var n=Object.keys(e);return n.forEach((function(n){var o=e[n];"string"===typeof o&&(o={url:o}),o.url="".concat(t).concat(o.url),e[n]=function(e){return Object(a["a"])(o,e)}})),e}},"7ded":function(e,t,n){"use strict";var a=n("71f6"),o={getLoginQrcode:"/get-login-qrcode",getUserInfo:"/get-login-user",loginOut:{url:"/login-out",method:"post",useFormData:!0}};o=Object(a["a"])(o,"/hb-manage-web/auth"),t["a"]=o},8637:function(e,t,n){},bcc2:function(e,t,n){"use strict";var a=n("8637"),o=n.n(a);o.a},cc0d:function(e,t,n){"use strict";var a=n("ed94"),o=n.n(a);o.a},ed94:function(e,t,n){},f777:function(e,t,n){"use strict";var a=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"nav-header"},[a("div",{staticClass:"nav-header-logo fl cursor-pointer",on:{click:e.toIndex}},[a("span",{staticClass:"pro-name"},[e._v("好办管理平台")])]),a("div",{staticClass:"nav-header-item fl"},[e._l(e.menuHead,(function(t,n){return[a("a",{key:n,class:["item-link menu-font-16"],on:{click:function(n){return e.changeRouter(t)}}},[a("span",{class:["inline-block bottom",-1!=t.menuUrl.indexOf(e.pathName)?"current-module":""]},[e._v(e._s(t.menuName))])])]})),a("div",{staticClass:"navuser-info fr"},[e.userInfo.headImg?a("img",{staticClass:"user-img",attrs:{src:e.userInfo.headImg,alt:""}}):a("img",{staticClass:"user-img",attrs:{src:n("6ce2"),alt:"img"}}),a("el-popover",{staticStyle:{"min-width":"95px"},attrs:{placement:"bottom",title:"",width:"95",trigger:"hover","popper-class":"user-header-pop"}},[a("ul",{staticClass:"navsuer-wrap"},[a("li",[a("p",{staticClass:"font-14 color-606266 hide-item"},[e._v(e._s(e.userInfo.staffName||"--"))]),a("p",{staticClass:"font-12 color-909399 hide-item"},[e._v(e._s(e.userInfo.roleName||"--"))])]),a("li",{staticClass:"user-item text-align",on:{click:function(t){return t.stopPropagation(),e.toLoginOut(t)}}},[a("a",{staticClass:"user-text"},[e._v("退出登录")])])]),a("a",{staticClass:"nav-user-name",attrs:{slot:"reference"},slot:"reference"},[a("span",{staticClass:"font-12 color-606266"},[e._v(e._s(e.userInfo.staffName||"--"))]),a("i",{staticClass:"iconfont iconxiala arrowico color-c0c4cc"})])])],1)],2)])},o=[],r=(n("456d"),n("96cf"),n("1da1")),i=(n("ac6a"),n("28a5"),n("7ded")),s=n("5937"),c=s["a"].getRoleMenu,u=i["a"].getUserInfo,l=i["a"].loginOut,f={name:"VueOfficeHeader",components:{},data:function(){return{checkShow:!0,tipText:"请先完成商户初始化设置后,再进行其他操作",repProjectName:"haoban-manage-web",pathName:"",isCollapse:!1,menuHead:[],roleMenuData:[],routePathName:"",userInfo:{staffName:"",nationCode:"",phoneNumber:"",headImg:"",wxEnterpriseId:"",roleName:""}}},mounted:function(){var e=this;e.pathName=e.$route.path,e.routePathName=window.location.hash.split("/")[1],-1!=e.routePathName.indexOf("?")&&(e.routePathName=e.routePathName.split("?")[0]),-1!=e.routePathName.indexOf("/")&&(e.routePathName=e.routePathName.split("/")[0]),localStorage.removeItem("haoBanUser"),e.toLogin()},methods:{toIndex:function(){var e=this;e.$router.push("/contactsList")},changeRouter:function(e){var t=this;if(1==e.target)-1!=e.menuUrl.indexOf("http")?window.open(e.menuUrl):window.open("/haoban-4/#".concat(e.menuUrl));else{t.setleftData(e);var n={};t.roleMenuData.forEach((function(t){e.menuCode!=t.menuCode||t.children.length||(n=t),e.menuCode==t.menuCode&&t.children.length&&(n=t.children[0])})),t.$router.push(n.menuUrl)}},setleftData:function(e){var t=this,n=[];t.roleMenuData.forEach((function(t){e.menuCode==t.menuCode&&n.push(t)})),t.$emit("leftData",n)},toLoginOut:function(){var e=this;e.$confirm("确认退出吗?","提示",{type:"warning"}).then((function(){l({}).then((function(t){"0000"==t.code&&(e.$message({message:"退出成功",type:"success"}),localStorage.removeItem("haoBanUser"),window.location.href=window.location.origin+"/haoban-4/#/login")})).catch((function(e){}))})).catch((function(){}))},toRouter:function(e,t,n){var a=this,o={path:"/"+e,name:t};a.$emit("toRouterView",o)},toLogin:function(){var e=this;u({}).then((function(t){t.result||(t.result={loginStaff:{staffName:"",nationCode:"",phoneNumber:"",headImg:"",wxEnterpriseId:""},role:{roleName:""}}),localStorage.setItem("haoBanUser",JSON.stringify(t.result.loginStaff)),e.userInfo=Object.assign(t.result.loginStaff,t.result.role),e.getData()})).catch((function(e){}))},treeData:function(e){var t=e.filter((function(t){var n=e.filter((function(e){return t.menuCode==e.parentCode&&1==e.isShow}));return n.length>0?(t.hasSonNode=!0,t.children=n):(t.children=[],t.hasSonNode=!1),""==t.parentCode&&1==t.isShow}));return t},getData:function(){var e=this,t={};c(t).then(function(){var t=Object(r["a"])(regeneratorRuntime.mark((function t(n){var a,o,r,i;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if("0000"!=n.code){t.next=14;break}return a=[],o={},r={},n.result.forEach((function(t){1==t.level&&1==t.isShow&&a.push(t),e.$route.path==t.menuUrl&&1==t.level&&1==t.isShow&&(o=t),e.$route.path==t.menuUrl&&1!=t.level&&(r=t)})),e.menuHead=a,t.next=8,e.treeData(JSON.parse(JSON.stringify(n.result)));case 8:e.roleMenuData=t.sent,Object.keys(r).length&&2==r.level&&n.result.forEach((function(e){r.parentCode==e.menuCode&&1==e.level&&1==e.isShow&&(o=e)})),i={},Object.keys(r).length&&3==r.level&&n.result.forEach((function(e){r.parentCode==e.menuCode&&2==e.level&&1==e.isShow&&(i=e)})),Object.keys(i).length&&2==i.level&&n.result.forEach((function(e){i.parentCode==e.menuCode&&1==e.level&&1==e.isShow&&(o=e)})),e.setleftData(o);case 14:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(e){}))}}},h=f,m=(n("cc0d"),n("2877")),d=Object(m["a"])(h,a,o,!1,null,"2a4f88b9",null);t["a"]=d.exports}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-3edbff8b"],{"55f3":function(t,e,n){"use strict";n.r(e);var o=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"common-app-right"},[n("div",{staticClass:"data-dimension-tip"},[n("common-alert-tip",{attrs:{width:"100%","tip-content":t.tipContent}})],1),n("div",{staticClass:"data-dimension-table flex"},[n("div",{staticClass:"data-dimension-table_left flex-1"},[n("div",{staticClass:"m-b-18"},[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 table-title"},[t._v("会员卡权重")])])],1),n("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loadingMember,expression:"loadingMember"}],ref:"memberCardData",staticStyle:{width:"100%"},attrs:{data:t.memberCardData,"row-key":"memberCardId"}},[n("el-table-column",{attrs:{prop:"",label:"",width:"56","class-name":"move-row-cell show-icon"}},[[n("span",{staticClass:"font-22 iconfont icontuozhuaiopen color-c4c6cf",staticStyle:{cursor:"move"}})]],2),n("el-table-column",{attrs:{prop:"name",label:"会员卡名称","show-overflow-tooltip":""}})],1)],1),n("div",{staticClass:"data-dimension-table_right flex-1"},[n("div",{staticClass:"m-b-18"},[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 table-title"},[t._v("服务号权重")])])],1),n("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loadingService,expression:"loadingService"}],ref:"serviceNumData",staticStyle:{width:"100%"},attrs:{data:t.serviceNumData,"row-key":"serviceCardId"}},[n("el-table-column",{attrs:{prop:"",label:"",width:"56","class-name":"move-row-cell show-icon"}},[[n("span",{staticClass:"font-22 iconfont icontuozhuaiopen color-c4c6cf",staticStyle:{cursor:"move"}})]],2),n("el-table-column",{attrs:{prop:"name",label:"服务号名称","show-overflow-tooltip":""}})],1)],1)])])},r=[];
/**!
* Sortable 1.10.2
* @author RubaXa <trash@rubaxa.org>
* @author owenm <owen23355@gmail.com>
* @license MIT
*/
function i(t){return i="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}function a(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function l(){return l=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},l.apply(this,arguments)}function s(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},o=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable})))),o.forEach((function(e){a(t,e,n[e])}))}return t}function c(t,e){if(null==t)return{};var n,o,r={},i=Object.keys(t);for(o=0;o<i.length;o++)n=i[o],e.indexOf(n)>=0||(r[n]=t[n]);return r}function u(t,e){if(null==t)return{};var n,o,r=c(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(o=0;o<i.length;o++)n=i[o],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}var d="1.10.2";function h(t){if("undefined"!==typeof window&&window.navigator)return!!navigator.userAgent.match(t)}var f=h(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),p=h(/Edge/i),g=h(/firefox/i),v=h(/safari/i)&&!h(/chrome/i)&&!h(/android/i),m=h(/iP(ad|od|hone)/i),b=h(/chrome/i)&&h(/android/i),w={capture:!1,passive:!1};function y(t,e,n){t.addEventListener(e,n,!f&&w)}function S(t,e,n){t.removeEventListener(e,n,!f&&w)}function D(t,e){if(e){if(">"===e[0]&&(e=e.substring(1)),t)try{if(t.matches)return t.matches(e);if(t.msMatchesSelector)return t.msMatchesSelector(e);if(t.webkitMatchesSelector)return t.webkitMatchesSelector(e)}catch(n){return!1}return!1}}function E(t){return t.host&&t!==document&&t.host.nodeType?t.host:t.parentNode}function _(t,e,n,o){if(t){n=n||document;do{if(null!=e&&(">"===e[0]?t.parentNode===n&&D(t,e):D(t,e))||o&&t===n)return t;if(t===n)break}while(t=E(t))}return null}var C,T=/\s+/g;function I(t,e,n){if(t&&e)if(t.classList)t.classList[n?"add":"remove"](e);else{var o=(" "+t.className+" ").replace(T," ").replace(" "+e+" "," ");t.className=(o+(n?" "+e:"")).replace(T," ")}}function M(t,e,n){var o=t&&t.style;if(o){if(void 0===n)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(t,""):t.currentStyle&&(n=t.currentStyle),void 0===e?n:n[e];e in o||-1!==e.indexOf("webkit")||(e="-webkit-"+e),o[e]=n+("string"===typeof n?"":"px")}}function x(t,e){var n="";if("string"===typeof t)n=t;else do{var o=M(t,"transform");o&&"none"!==o&&(n=o+" "+n)}while(!e&&(t=t.parentNode));var r=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return r&&new r(n)}function N(t,e,n){if(t){var o=t.getElementsByTagName(e),r=0,i=o.length;if(n)for(;r<i;r++)n(o[r],r);return o}return[]}function O(){var t=document.scrollingElement;return t||document.documentElement}function A(t,e,n,o,r){if(t.getBoundingClientRect||t===window){var i,a,l,s,c,u,d;if(t!==window&&t!==O()?(i=t.getBoundingClientRect(),a=i.top,l=i.left,s=i.bottom,c=i.right,u=i.height,d=i.width):(a=0,l=0,s=window.innerHeight,c=window.innerWidth,u=window.innerHeight,d=window.innerWidth),(e||n)&&t!==window&&(r=r||t.parentNode,!f))do{if(r&&r.getBoundingClientRect&&("none"!==M(r,"transform")||n&&"static"!==M(r,"position"))){var h=r.getBoundingClientRect();a-=h.top+parseInt(M(r,"border-top-width")),l-=h.left+parseInt(M(r,"border-left-width")),s=a+i.height,c=l+i.width;break}}while(r=r.parentNode);if(o&&t!==window){var p=x(r||t),g=p&&p.a,v=p&&p.d;p&&(a/=v,l/=g,d/=g,u/=v,s=a+u,c=l+d)}return{top:a,left:l,bottom:s,right:c,width:d,height:u}}}function P(t,e,n){var o=B(t,!0),r=A(t)[e];while(o){var i=A(o)[n],a=void 0;if(a="top"===n||"left"===n?r>=i:r<=i,!a)return o;if(o===O())break;o=B(o,!1)}return!1}function k(t,e,n){var o=0,r=0,i=t.children;while(r<i.length){if("none"!==i[r].style.display&&i[r]!==Jt.ghost&&i[r]!==Jt.dragged&&_(i[r],n.draggable,t,!1)){if(o===e)return i[r];o++}r++}return null}function X(t,e){var n=t.lastElementChild;while(n&&(n===Jt.ghost||"none"===M(n,"display")||e&&!D(n,e)))n=n.previousElementSibling;return n||null}function F(t,e){var n=0;if(!t||!t.parentNode)return-1;while(t=t.previousElementSibling)"TEMPLATE"===t.nodeName.toUpperCase()||t===Jt.clone||e&&!D(t,e)||n++;return n}function Y(t){var e=0,n=0,o=O();if(t)do{var r=x(t),i=r.a,a=r.d;e+=t.scrollLeft*i,n+=t.scrollTop*a}while(t!==o&&(t=t.parentNode));return[e,n]}function R(t,e){for(var n in t)if(t.hasOwnProperty(n))for(var o in e)if(e.hasOwnProperty(o)&&e[o]===t[n][o])return Number(n);return-1}function B(t,e){if(!t||!t.getBoundingClientRect)return O();var n=t,o=!1;do{if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var r=M(n);if(n.clientWidth<n.scrollWidth&&("auto"==r.overflowX||"scroll"==r.overflowX)||n.clientHeight<n.scrollHeight&&("auto"==r.overflowY||"scroll"==r.overflowY)){if(!n.getBoundingClientRect||n===document.body)return O();if(o||e)return n;o=!0}}}while(n=n.parentNode);return O()}function L(t,e){if(t&&e)for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}function H(t,e){return Math.round(t.top)===Math.round(e.top)&&Math.round(t.left)===Math.round(e.left)&&Math.round(t.height)===Math.round(e.height)&&Math.round(t.width)===Math.round(e.width)}function j(t,e){return function(){if(!C){var n=arguments,o=this;1===n.length?t.call(o,n[0]):t.apply(o,n),C=setTimeout((function(){C=void 0}),e)}}}function W(){clearTimeout(C),C=void 0}function z(t,e,n){t.scrollLeft+=e,t.scrollTop+=n}function G(t){var e=window.Polymer,n=window.jQuery||window.Zepto;return e&&e.dom?e.dom(t).cloneNode(!0):n?n(t).clone(!0)[0]:t.cloneNode(!0)}var V="Sortable"+(new Date).getTime();function q(){var t,e=[];return{captureAnimationState:function(){if(e=[],this.options.animation){var t=[].slice.call(this.el.children);t.forEach((function(t){if("none"!==M(t,"display")&&t!==Jt.ghost){e.push({target:t,rect:A(t)});var n=s({},e[e.length-1].rect);if(t.thisAnimationDuration){var o=x(t,!0);o&&(n.top-=o.f,n.left-=o.e)}t.fromRect=n}}))}},addAnimationState:function(t){e.push(t)},removeAnimationState:function(t){e.splice(R(e,{target:t}),1)},animateAll:function(n){var o=this;if(!this.options.animation)return clearTimeout(t),void("function"===typeof n&&n());var r=!1,i=0;e.forEach((function(t){var e=0,n=t.target,a=n.fromRect,l=A(n),s=n.prevFromRect,c=n.prevToRect,u=t.rect,d=x(n,!0);d&&(l.top-=d.f,l.left-=d.e),n.toRect=l,n.thisAnimationDuration&&H(s,l)&&!H(a,l)&&(u.top-l.top)/(u.left-l.left)===(a.top-l.top)/(a.left-l.left)&&(e=U(u,s,c,o.options)),H(l,a)||(n.prevFromRect=a,n.prevToRect=l,e||(e=o.options.animation),o.animate(n,u,l,e)),e&&(r=!0,i=Math.max(i,e),clearTimeout(n.animationResetTimer),n.animationResetTimer=setTimeout((function(){n.animationTime=0,n.prevFromRect=null,n.fromRect=null,n.prevToRect=null,n.thisAnimationDuration=null}),e),n.thisAnimationDuration=e)})),clearTimeout(t),r?t=setTimeout((function(){"function"===typeof n&&n()}),i):"function"===typeof n&&n(),e=[]},animate:function(t,e,n,o){if(o){M(t,"transition",""),M(t,"transform","");var r=x(this.el),i=r&&r.a,a=r&&r.d,l=(e.left-n.left)/(i||1),s=(e.top-n.top)/(a||1);t.animatingX=!!l,t.animatingY=!!s,M(t,"transform","translate3d("+l+"px,"+s+"px,0)"),J(t),M(t,"transition","transform "+o+"ms"+(this.options.easing?" "+this.options.easing:"")),M(t,"transform","translate3d(0,0,0)"),"number"===typeof t.animated&&clearTimeout(t.animated),t.animated=setTimeout((function(){M(t,"transition",""),M(t,"transform",""),t.animated=!1,t.animatingX=!1,t.animatingY=!1}),o)}}}}function J(t){return t.offsetWidth}function U(t,e,n,o){return Math.sqrt(Math.pow(e.top-t.top,2)+Math.pow(e.left-t.left,2))/Math.sqrt(Math.pow(e.top-n.top,2)+Math.pow(e.left-n.left,2))*o.animation}var $=[],Z={initializeByDefault:!0},K={mount:function(t){for(var e in Z)Z.hasOwnProperty(e)&&!(e in t)&&(t[e]=Z[e]);$.push(t)},pluginEvent:function(t,e,n){var o=this;this.eventCanceled=!1,n.cancel=function(){o.eventCanceled=!0};var r=t+"Global";$.forEach((function(o){e[o.pluginName]&&(e[o.pluginName][r]&&e[o.pluginName][r](s({sortable:e},n)),e.options[o.pluginName]&&e[o.pluginName][t]&&e[o.pluginName][t](s({sortable:e},n)))}))},initializePlugins:function(t,e,n,o){for(var r in $.forEach((function(o){var r=o.pluginName;if(t.options[r]||o.initializeByDefault){var i=new o(t,e,t.options);i.sortable=t,i.options=t.options,t[r]=i,l(n,i.defaults)}})),t.options)if(t.options.hasOwnProperty(r)){var i=this.modifyOption(t,r,t.options[r]);"undefined"!==typeof i&&(t.options[r]=i)}},getEventProperties:function(t,e){var n={};return $.forEach((function(o){"function"===typeof o.eventProperties&&l(n,o.eventProperties.call(e[o.pluginName],t))})),n},modifyOption:function(t,e,n){var o;return $.forEach((function(r){t[r.pluginName]&&r.optionListeners&&"function"===typeof r.optionListeners[e]&&(o=r.optionListeners[e].call(t[r.pluginName],n))})),o}};function Q(t){var e=t.sortable,n=t.rootEl,o=t.name,r=t.targetEl,i=t.cloneEl,a=t.toEl,l=t.fromEl,c=t.oldIndex,u=t.newIndex,d=t.oldDraggableIndex,h=t.newDraggableIndex,g=t.originalEvent,v=t.putSortable,m=t.extraEventProperties;if(e=e||n&&n[V],e){var b,w=e.options,y="on"+o.charAt(0).toUpperCase()+o.substr(1);!window.CustomEvent||f||p?(b=document.createEvent("Event"),b.initEvent(o,!0,!0)):b=new CustomEvent(o,{bubbles:!0,cancelable:!0}),b.to=a||n,b.from=l||n,b.item=r||n,b.clone=i,b.oldIndex=c,b.newIndex=u,b.oldDraggableIndex=d,b.newDraggableIndex=h,b.originalEvent=g,b.pullMode=v?v.lastPutMode:void 0;var S=s({},m,K.getEventProperties(o,e));for(var D in S)b[D]=S[D];n&&n.dispatchEvent(b),w[y]&&w[y].call(e,b)}}var tt=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=n.evt,r=u(n,["evt"]);K.pluginEvent.bind(Jt)(t,e,s({dragEl:nt,parentEl:ot,ghostEl:rt,rootEl:it,nextEl:at,lastDownEl:lt,cloneEl:st,cloneHidden:ct,dragStarted:Dt,putSortable:gt,activeSortable:Jt.active,originalEvent:o,oldIndex:ut,oldDraggableIndex:ht,newIndex:dt,newDraggableIndex:ft,hideGhostForTarget:zt,unhideGhostForTarget:Gt,cloneNowHidden:function(){ct=!0},cloneNowShown:function(){ct=!1},dispatchSortableEvent:function(t){et({sortable:e,name:t,originalEvent:o})}},r))};function et(t){Q(s({putSortable:gt,cloneEl:st,targetEl:nt,rootEl:it,oldIndex:ut,oldDraggableIndex:ht,newIndex:dt,newDraggableIndex:ft},t))}var nt,ot,rt,it,at,lt,st,ct,ut,dt,ht,ft,pt,gt,vt,mt,bt,wt,yt,St,Dt,Et,_t,Ct,Tt,It=!1,Mt=!1,xt=[],Nt=!1,Ot=!1,At=[],Pt=!1,kt=[],Xt="undefined"!==typeof document,Ft=m,Yt=p||f?"cssFloat":"float",Rt=Xt&&!b&&!m&&"draggable"in document.createElement("div"),Bt=function(){if(Xt){if(f)return!1;var t=document.createElement("x");return t.style.cssText="pointer-events:auto","auto"===t.style.pointerEvents}}(),Lt=function(t,e){var n=M(t),o=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),r=k(t,0,e),i=k(t,1,e),a=r&&M(r),l=i&&M(i),s=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+A(r).width,c=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+A(i).width;if("flex"===n.display)return"column"===n.flexDirection||"column-reverse"===n.flexDirection?"vertical":"horizontal";if("grid"===n.display)return n.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(r&&a["float"]&&"none"!==a["float"]){var u="left"===a["float"]?"left":"right";return!i||"both"!==l.clear&&l.clear!==u?"horizontal":"vertical"}return r&&("block"===a.display||"flex"===a.display||"table"===a.display||"grid"===a.display||s>=o&&"none"===n[Yt]||i&&"none"===n[Yt]&&s+c>o)?"vertical":"horizontal"},Ht=function(t,e,n){var o=n?t.left:t.top,r=n?t.right:t.bottom,i=n?t.width:t.height,a=n?e.left:e.top,l=n?e.right:e.bottom,s=n?e.width:e.height;return o===a||r===l||o+i/2===a+s/2},jt=function(t,e){var n;return xt.some((function(o){if(!X(o)){var r=A(o),i=o[V].options.emptyInsertThreshold,a=t>=r.left-i&&t<=r.right+i,l=e>=r.top-i&&e<=r.bottom+i;return i&&a&&l?n=o:void 0}})),n},Wt=function(t){function e(t,n){return function(o,r,i,a){var l=o.options.group.name&&r.options.group.name&&o.options.group.name===r.options.group.name;if(null==t&&(n||l))return!0;if(null==t||!1===t)return!1;if(n&&"clone"===t)return t;if("function"===typeof t)return e(t(o,r,i,a),n)(o,r,i,a);var s=(n?o:r).options.group.name;return!0===t||"string"===typeof t&&t===s||t.join&&t.indexOf(s)>-1}}var n={},o=t.group;o&&"object"==i(o)||(o={name:o}),n.name=o.name,n.checkPull=e(o.pull,!0),n.checkPut=e(o.put),n.revertClone=o.revertClone,t.group=n},zt=function(){!Bt&&rt&&M(rt,"display","none")},Gt=function(){!Bt&&rt&&M(rt,"display","")};Xt&&document.addEventListener("click",(function(t){if(Mt)return t.preventDefault(),t.stopPropagation&&t.stopPropagation(),t.stopImmediatePropagation&&t.stopImmediatePropagation(),Mt=!1,!1}),!0);var Vt=function(t){if(nt){t=t.touches?t.touches[0]:t;var e=jt(t.clientX,t.clientY);if(e){var n={};for(var o in t)t.hasOwnProperty(o)&&(n[o]=t[o]);n.target=n.rootEl=e,n.preventDefault=void 0,n.stopPropagation=void 0,e[V]._onDragOver(n)}}},qt=function(t){nt&&nt.parentNode[V]._isOutsideThisEl(t.target)};function Jt(t,e){if(!t||!t.nodeType||1!==t.nodeType)throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(t));this.el=t,this.options=e=l({},e),t[V]=this;var n={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(t.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return Lt(t,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(t,e){t.setData("Text",e.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:!1!==Jt.supportPointer&&"PointerEvent"in window,emptyInsertThreshold:5};for(var o in K.initializePlugins(this,t,n),n)!(o in e)&&(e[o]=n[o]);for(var r in Wt(e),this)"_"===r.charAt(0)&&"function"===typeof this[r]&&(this[r]=this[r].bind(this));this.nativeDraggable=!e.forceFallback&&Rt,this.nativeDraggable&&(this.options.touchStartThreshold=1),e.supportPointer?y(t,"pointerdown",this._onTapStart):(y(t,"mousedown",this._onTapStart),y(t,"touchstart",this._onTapStart)),this.nativeDraggable&&(y(t,"dragover",this),y(t,"dragenter",this)),xt.push(this.el),e.store&&e.store.get&&this.sort(e.store.get(this)||[]),l(this,q())}function Ut(t){t.dataTransfer&&(t.dataTransfer.dropEffect="move"),t.cancelable&&t.preventDefault()}function $t(t,e,n,o,r,i,a,l){var s,c,u=t[V],d=u.options.onMove;return!window.CustomEvent||f||p?(s=document.createEvent("Event"),s.initEvent("move",!0,!0)):s=new CustomEvent("move",{bubbles:!0,cancelable:!0}),s.to=e,s.from=t,s.dragged=n,s.draggedRect=o,s.related=r||e,s.relatedRect=i||A(e),s.willInsertAfter=l,s.originalEvent=a,t.dispatchEvent(s),d&&(c=d.call(u,s,a)),c}function Zt(t){t.draggable=!1}function Kt(){Pt=!1}function Qt(t,e,n){var o=A(X(n.el,n.options.draggable)),r=10;return e?t.clientX>o.right+r||t.clientX<=o.right&&t.clientY>o.bottom&&t.clientX>=o.left:t.clientX>o.right&&t.clientY>o.top||t.clientX<=o.right&&t.clientY>o.bottom+r}function te(t,e,n,o,r,i,a,l){var s=o?t.clientY:t.clientX,c=o?n.height:n.width,u=o?n.top:n.left,d=o?n.bottom:n.right,h=!1;if(!a)if(l&&Ct<c*r){if(!Nt&&(1===_t?s>u+c*i/2:s<d-c*i/2)&&(Nt=!0),Nt)h=!0;else if(1===_t?s<u+Ct:s>d-Ct)return-_t}else if(s>u+c*(1-r)/2&&s<d-c*(1-r)/2)return ee(e);return h=h||a,h&&(s<u+c*i/2||s>d-c*i/2)?s>u+c/2?1:-1:0}function ee(t){return F(nt)<F(t)?1:-1}function ne(t){var e=t.tagName+t.className+t.src+t.href+t.textContent,n=e.length,o=0;while(n--)o+=e.charCodeAt(n);return o.toString(36)}function oe(t){kt.length=0;var e=t.getElementsByTagName("input"),n=e.length;while(n--){var o=e[n];o.checked&&kt.push(o)}}function re(t){return setTimeout(t,0)}function ie(t){return clearTimeout(t)}Jt.prototype={constructor:Jt,_isOutsideThisEl:function(t){this.el.contains(t)||t===this.el||(Et=null)},_getDirection:function(t,e){return"function"===typeof this.options.direction?this.options.direction.call(this,t,e,nt):this.options.direction},_onTapStart:function(t){if(t.cancelable){var e=this,n=this.el,o=this.options,r=o.preventOnFilter,i=t.type,a=t.touches&&t.touches[0]||t.pointerType&&"touch"===t.pointerType&&t,l=(a||t).target,s=t.target.shadowRoot&&(t.path&&t.path[0]||t.composedPath&&t.composedPath()[0])||l,c=o.filter;if(oe(n),!nt&&!(/mousedown|pointerdown/.test(i)&&0!==t.button||o.disabled)&&!s.isContentEditable&&(l=_(l,o.draggable,n,!1),(!l||!l.animated)&&lt!==l)){if(ut=F(l),ht=F(l,o.draggable),"function"===typeof c){if(c.call(this,t,l,this))return et({sortable:e,rootEl:s,name:"filter",targetEl:l,toEl:n,fromEl:n}),tt("filter",e,{evt:t}),void(r&&t.cancelable&&t.preventDefault())}else if(c&&(c=c.split(",").some((function(o){if(o=_(s,o.trim(),n,!1),o)return et({sortable:e,rootEl:o,name:"filter",targetEl:l,fromEl:n,toEl:n}),tt("filter",e,{evt:t}),!0})),c))return void(r&&t.cancelable&&t.preventDefault());o.handle&&!_(s,o.handle,n,!1)||this._prepareDragStart(t,a,l)}}},_prepareDragStart:function(t,e,n){var o,r=this,i=r.el,a=r.options,l=i.ownerDocument;if(n&&!nt&&n.parentNode===i){var s=A(n);if(it=i,nt=n,ot=nt.parentNode,at=nt.nextSibling,lt=n,pt=a.group,Jt.dragged=nt,vt={target:nt,clientX:(e||t).clientX,clientY:(e||t).clientY},yt=vt.clientX-s.left,St=vt.clientY-s.top,this._lastX=(e||t).clientX,this._lastY=(e||t).clientY,nt.style["will-change"]="all",o=function(){tt("delayEnded",r,{evt:t}),Jt.eventCanceled?r._onDrop():(r._disableDelayedDragEvents(),!g&&r.nativeDraggable&&(nt.draggable=!0),r._triggerDragStart(t,e),et({sortable:r,name:"choose",originalEvent:t}),I(nt,a.chosenClass,!0))},a.ignore.split(",").forEach((function(t){N(nt,t.trim(),Zt)})),y(l,"dragover",Vt),y(l,"mousemove",Vt),y(l,"touchmove",Vt),y(l,"mouseup",r._onDrop),y(l,"touchend",r._onDrop),y(l,"touchcancel",r._onDrop),g&&this.nativeDraggable&&(this.options.touchStartThreshold=4,nt.draggable=!0),tt("delayStart",this,{evt:t}),!a.delay||a.delayOnTouchOnly&&!e||this.nativeDraggable&&(p||f))o();else{if(Jt.eventCanceled)return void this._onDrop();y(l,"mouseup",r._disableDelayedDrag),y(l,"touchend",r._disableDelayedDrag),y(l,"touchcancel",r._disableDelayedDrag),y(l,"mousemove",r._delayedDragTouchMoveHandler),y(l,"touchmove",r._delayedDragTouchMoveHandler),a.supportPointer&&y(l,"pointermove",r._delayedDragTouchMoveHandler),r._dragStartTimer=setTimeout(o,a.delay)}}},_delayedDragTouchMoveHandler:function(t){var e=t.touches?t.touches[0]:t;Math.max(Math.abs(e.clientX-this._lastX),Math.abs(e.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){nt&&Zt(nt),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var t=this.el.ownerDocument;S(t,"mouseup",this._disableDelayedDrag),S(t,"touchend",this._disableDelayedDrag),S(t,"touchcancel",this._disableDelayedDrag),S(t,"mousemove",this._delayedDragTouchMoveHandler),S(t,"touchmove",this._delayedDragTouchMoveHandler),S(t,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(t,e){e=e||"touch"==t.pointerType&&t,!this.nativeDraggable||e?this.options.supportPointer?y(document,"pointermove",this._onTouchMove):y(document,e?"touchmove":"mousemove",this._onTouchMove):(y(nt,"dragend",this),y(it,"dragstart",this._onDragStart));try{document.selection?re((function(){document.selection.empty()})):window.getSelection().removeAllRanges()}catch(n){}},_dragStarted:function(t,e){if(It=!1,it&&nt){tt("dragStarted",this,{evt:e}),this.nativeDraggable&&y(document,"dragover",qt);var n=this.options;!t&&I(nt,n.dragClass,!1),I(nt,n.ghostClass,!0),Jt.active=this,t&&this._appendGhost(),et({sortable:this,name:"start",originalEvent:e})}else this._nulling()},_emulateDragOver:function(){if(mt){this._lastX=mt.clientX,this._lastY=mt.clientY,zt();var t=document.elementFromPoint(mt.clientX,mt.clientY),e=t;while(t&&t.shadowRoot){if(t=t.shadowRoot.elementFromPoint(mt.clientX,mt.clientY),t===e)break;e=t}if(nt.parentNode[V]._isOutsideThisEl(t),e)do{if(e[V]){var n=void 0;if(n=e[V]._onDragOver({clientX:mt.clientX,clientY:mt.clientY,target:t,rootEl:e}),n&&!this.options.dragoverBubble)break}t=e}while(e=e.parentNode);Gt()}},_onTouchMove:function(t){if(vt){var e=this.options,n=e.fallbackTolerance,o=e.fallbackOffset,r=t.touches?t.touches[0]:t,i=rt&&x(rt,!0),a=rt&&i&&i.a,l=rt&&i&&i.d,s=Ft&&Tt&&Y(Tt),c=(r.clientX-vt.clientX+o.x)/(a||1)+(s?s[0]-At[0]:0)/(a||1),u=(r.clientY-vt.clientY+o.y)/(l||1)+(s?s[1]-At[1]:0)/(l||1);if(!Jt.active&&!It){if(n&&Math.max(Math.abs(r.clientX-this._lastX),Math.abs(r.clientY-this._lastY))<n)return;this._onDragStart(t,!0)}if(rt){i?(i.e+=c-(bt||0),i.f+=u-(wt||0)):i={a:1,b:0,c:0,d:1,e:c,f:u};var d="matrix(".concat(i.a,",").concat(i.b,",").concat(i.c,",").concat(i.d,",").concat(i.e,",").concat(i.f,")");M(rt,"webkitTransform",d),M(rt,"mozTransform",d),M(rt,"msTransform",d),M(rt,"transform",d),bt=c,wt=u,mt=r}t.cancelable&&t.preventDefault()}},_appendGhost:function(){if(!rt){var t=this.options.fallbackOnBody?document.body:it,e=A(nt,!0,Ft,!0,t),n=this.options;if(Ft){Tt=t;while("static"===M(Tt,"position")&&"none"===M(Tt,"transform")&&Tt!==document)Tt=Tt.parentNode;Tt!==document.body&&Tt!==document.documentElement?(Tt===document&&(Tt=O()),e.top+=Tt.scrollTop,e.left+=Tt.scrollLeft):Tt=O(),At=Y(Tt)}rt=nt.cloneNode(!0),I(rt,n.ghostClass,!1),I(rt,n.fallbackClass,!0),I(rt,n.dragClass,!0),M(rt,"transition",""),M(rt,"transform",""),M(rt,"box-sizing","border-box"),M(rt,"margin",0),M(rt,"top",e.top),M(rt,"left",e.left),M(rt,"width",e.width),M(rt,"height",e.height),M(rt,"opacity","0.8"),M(rt,"position",Ft?"absolute":"fixed"),M(rt,"zIndex","100000"),M(rt,"pointerEvents","none"),Jt.ghost=rt,t.appendChild(rt),M(rt,"transform-origin",yt/parseInt(rt.style.width)*100+"% "+St/parseInt(rt.style.height)*100+"%")}},_onDragStart:function(t,e){var n=this,o=t.dataTransfer,r=n.options;tt("dragStart",this,{evt:t}),Jt.eventCanceled?this._onDrop():(tt("setupClone",this),Jt.eventCanceled||(st=G(nt),st.draggable=!1,st.style["will-change"]="",this._hideClone(),I(st,this.options.chosenClass,!1),Jt.clone=st),n.cloneId=re((function(){tt("clone",n),Jt.eventCanceled||(n.options.removeCloneOnHide||it.insertBefore(st,nt),n._hideClone(),et({sortable:n,name:"clone"}))})),!e&&I(nt,r.dragClass,!0),e?(Mt=!0,n._loopId=setInterval(n._emulateDragOver,50)):(S(document,"mouseup",n._onDrop),S(document,"touchend",n._onDrop),S(document,"touchcancel",n._onDrop),o&&(o.effectAllowed="move",r.setData&&r.setData.call(n,o,nt)),y(document,"drop",n),M(nt,"transform","translateZ(0)")),It=!0,n._dragStartId=re(n._dragStarted.bind(n,e,t)),y(document,"selectstart",n),Dt=!0,v&&M(document.body,"user-select","none"))},_onDragOver:function(t){var e,n,o,r,i=this.el,a=t.target,l=this.options,c=l.group,u=Jt.active,d=pt===c,h=l.sort,f=gt||u,p=this,g=!1;if(!Pt){if(void 0!==t.preventDefault&&t.cancelable&&t.preventDefault(),a=_(a,l.draggable,i,!0),k("dragOver"),Jt.eventCanceled)return g;if(nt.contains(t.target)||a.animated&&a.animatingX&&a.animatingY||p._ignoreWhileAnimating===a)return R(!1);if(Mt=!1,u&&!l.disabled&&(d?h||(o=!it.contains(nt)):gt===this||(this.lastPutMode=pt.checkPull(this,u,nt,t))&&c.checkPut(this,u,nt,t))){if(r="vertical"===this._getDirection(t,a),e=A(nt),k("dragOverValid"),Jt.eventCanceled)return g;if(o)return ot=it,Y(),this._hideClone(),k("revert"),Jt.eventCanceled||(at?it.insertBefore(nt,at):it.appendChild(nt)),R(!0);var v=X(i,l.draggable);if(!v||Qt(t,r,this)&&!v.animated){if(v===nt)return R(!1);if(v&&i===t.target&&(a=v),a&&(n=A(a)),!1!==$t(it,i,nt,e,a,n,t,!!a))return Y(),i.appendChild(nt),ot=i,B(),R(!0)}else if(a.parentNode===i){n=A(a);var m,b,w=0,y=nt.parentNode!==i,S=!Ht(nt.animated&&nt.toRect||e,a.animated&&a.toRect||n,r),D=r?"top":"left",E=P(a,"top","top")||P(nt,"top","top"),C=E?E.scrollTop:void 0;if(Et!==a&&(m=n[D],Nt=!1,Ot=!S&&l.invertSwap||y),w=te(t,a,n,r,S?1:l.swapThreshold,null==l.invertedSwapThreshold?l.swapThreshold:l.invertedSwapThreshold,Ot,Et===a),0!==w){var T=F(nt);do{T-=w,b=ot.children[T]}while(b&&("none"===M(b,"display")||b===rt))}if(0===w||b===a)return R(!1);Et=a,_t=w;var x=a.nextElementSibling,N=!1;N=1===w;var O=$t(it,i,nt,e,a,n,t,N);if(!1!==O)return 1!==O&&-1!==O||(N=1===O),Pt=!0,setTimeout(Kt,30),Y(),N&&!x?i.appendChild(nt):a.parentNode.insertBefore(nt,N?x:a),E&&z(E,0,C-E.scrollTop),ot=nt.parentNode,void 0===m||Ot||(Ct=Math.abs(m-A(a)[D])),B(),R(!0)}if(i.contains(nt))return R(!1)}return!1}function k(l,c){tt(l,p,s({evt:t,isOwner:d,axis:r?"vertical":"horizontal",revert:o,dragRect:e,targetRect:n,canSort:h,fromSortable:f,target:a,completed:R,onMove:function(n,o){return $t(it,i,nt,e,n,A(n),t,o)},changed:B},c))}function Y(){k("dragOverAnimationCapture"),p.captureAnimationState(),p!==f&&f.captureAnimationState()}function R(e){return k("dragOverCompleted",{insertion:e}),e&&(d?u._hideClone():u._showClone(p),p!==f&&(I(nt,gt?gt.options.ghostClass:u.options.ghostClass,!1),I(nt,l.ghostClass,!0)),gt!==p&&p!==Jt.active?gt=p:p===Jt.active&&gt&&(gt=null),f===p&&(p._ignoreWhileAnimating=a),p.animateAll((function(){k("dragOverAnimationComplete"),p._ignoreWhileAnimating=null})),p!==f&&(f.animateAll(),f._ignoreWhileAnimating=null)),(a===nt&&!nt.animated||a===i&&!a.animated)&&(Et=null),l.dragoverBubble||t.rootEl||a===document||(nt.parentNode[V]._isOutsideThisEl(t.target),!e&&Vt(t)),!l.dragoverBubble&&t.stopPropagation&&t.stopPropagation(),g=!0}function B(){dt=F(nt),ft=F(nt,l.draggable),et({sortable:p,name:"change",toEl:i,newIndex:dt,newDraggableIndex:ft,originalEvent:t})}},_ignoreWhileAnimating:null,_offMoveEvents:function(){S(document,"mousemove",this._onTouchMove),S(document,"touchmove",this._onTouchMove),S(document,"pointermove",this._onTouchMove),S(document,"dragover",Vt),S(document,"mousemove",Vt),S(document,"touchmove",Vt)},_offUpEvents:function(){var t=this.el.ownerDocument;S(t,"mouseup",this._onDrop),S(t,"touchend",this._onDrop),S(t,"pointerup",this._onDrop),S(t,"touchcancel",this._onDrop),S(document,"selectstart",this)},_onDrop:function(t){var e=this.el,n=this.options;dt=F(nt),ft=F(nt,n.draggable),tt("drop",this,{evt:t}),ot=nt&&nt.parentNode,dt=F(nt),ft=F(nt,n.draggable),Jt.eventCanceled||(It=!1,Ot=!1,Nt=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),ie(this.cloneId),ie(this._dragStartId),this.nativeDraggable&&(S(document,"drop",this),S(e,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),v&&M(document.body,"user-select",""),M(nt,"transform",""),t&&(Dt&&(t.cancelable&&t.preventDefault(),!n.dropBubble&&t.stopPropagation()),rt&&rt.parentNode&&rt.parentNode.removeChild(rt),(it===ot||gt&&"clone"!==gt.lastPutMode)&&st&&st.parentNode&&st.parentNode.removeChild(st),nt&&(this.nativeDraggable&&S(nt,"dragend",this),Zt(nt),nt.style["will-change"]="",Dt&&!It&&I(nt,gt?gt.options.ghostClass:this.options.ghostClass,!1),I(nt,this.options.chosenClass,!1),et({sortable:this,name:"unchoose",toEl:ot,newIndex:null,newDraggableIndex:null,originalEvent:t}),it!==ot?(dt>=0&&(et({rootEl:ot,name:"add",toEl:ot,fromEl:it,originalEvent:t}),et({sortable:this,name:"remove",toEl:ot,originalEvent:t}),et({rootEl:ot,name:"sort",toEl:ot,fromEl:it,originalEvent:t}),et({sortable:this,name:"sort",toEl:ot,originalEvent:t})),gt&&gt.save()):dt!==ut&&dt>=0&&(et({sortable:this,name:"update",toEl:ot,originalEvent:t}),et({sortable:this,name:"sort",toEl:ot,originalEvent:t})),Jt.active&&(null!=dt&&-1!==dt||(dt=ut,ft=ht),et({sortable:this,name:"end",toEl:ot,originalEvent:t}),this.save())))),this._nulling()},_nulling:function(){tt("nulling",this),it=nt=ot=rt=at=st=lt=ct=vt=mt=Dt=dt=ft=ut=ht=Et=_t=gt=pt=Jt.dragged=Jt.ghost=Jt.clone=Jt.active=null,kt.forEach((function(t){t.checked=!0})),kt.length=bt=wt=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":nt&&(this._onDragOver(t),Ut(t));break;case"selectstart":t.preventDefault();break}},toArray:function(){for(var t,e=[],n=this.el.children,o=0,r=n.length,i=this.options;o<r;o++)t=n[o],_(t,i.draggable,this.el,!1)&&e.push(t.getAttribute(i.dataIdAttr)||ne(t));return e},sort:function(t){var e={},n=this.el;this.toArray().forEach((function(t,o){var r=n.children[o];_(r,this.options.draggable,n,!1)&&(e[t]=r)}),this),t.forEach((function(t){e[t]&&(n.removeChild(e[t]),n.appendChild(e[t]))}))},save:function(){var t=this.options.store;t&&t.set&&t.set(this)},closest:function(t,e){return _(t,e||this.options.draggable,this.el,!1)},option:function(t,e){var n=this.options;if(void 0===e)return n[t];var o=K.modifyOption(this,t,e);n[t]="undefined"!==typeof o?o:e,"group"===t&&Wt(n)},destroy:function(){tt("destroy",this);var t=this.el;t[V]=null,S(t,"mousedown",this._onTapStart),S(t,"touchstart",this._onTapStart),S(t,"pointerdown",this._onTapStart),this.nativeDraggable&&(S(t,"dragover",this),S(t,"dragenter",this)),Array.prototype.forEach.call(t.querySelectorAll("[draggable]"),(function(t){t.removeAttribute("draggable")})),this._onDrop(),this._disableDelayedDragEvents(),xt.splice(xt.indexOf(this.el),1),this.el=t=null},_hideClone:function(){if(!ct){if(tt("hideClone",this),Jt.eventCanceled)return;M(st,"display","none"),this.options.removeCloneOnHide&&st.parentNode&&st.parentNode.removeChild(st),ct=!0}},_showClone:function(t){if("clone"===t.lastPutMode){if(ct){if(tt("showClone",this),Jt.eventCanceled)return;it.contains(nt)&&!this.options.group.revertClone?it.insertBefore(st,nt):at?it.insertBefore(st,at):it.appendChild(st),this.options.group.revertClone&&this.animate(nt,st),M(st,"display",""),ct=!1}}else this._hideClone()}},Xt&&y(document,"touchmove",(function(t){(Jt.active||It)&&t.cancelable&&t.preventDefault()})),Jt.utils={on:y,off:S,css:M,find:N,is:function(t,e){return!!_(t,e,t,!1)},extend:L,throttle:j,closest:_,toggleClass:I,clone:G,index:F,nextTick:re,cancelNextTick:ie,detectDirection:Lt,getChild:k},Jt.get=function(t){return t[V]},Jt.mount=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];e[0].constructor===Array&&(e=e[0]),e.forEach((function(t){if(!t.prototype||!t.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(t));t.utils&&(Jt.utils=s({},Jt.utils,t.utils)),K.mount(t)}))},Jt.create=function(t,e){return new Jt(t,e)},Jt.version=d;var ae,le,se,ce,ue,de,he=[],fe=!1;function pe(){function t(){for(var t in this.defaults={scroll:!0,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0},this)"_"===t.charAt(0)&&"function"===typeof this[t]&&(this[t]=this[t].bind(this))}return t.prototype={dragStarted:function(t){var e=t.originalEvent;this.sortable.nativeDraggable?y(document,"dragover",this._handleAutoScroll):this.options.supportPointer?y(document,"pointermove",this._handleFallbackAutoScroll):e.touches?y(document,"touchmove",this._handleFallbackAutoScroll):y(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(t){var e=t.originalEvent;this.options.dragOverBubble||e.rootEl||this._handleAutoScroll(e)},drop:function(){this.sortable.nativeDraggable?S(document,"dragover",this._handleAutoScroll):(S(document,"pointermove",this._handleFallbackAutoScroll),S(document,"touchmove",this._handleFallbackAutoScroll),S(document,"mousemove",this._handleFallbackAutoScroll)),ve(),ge(),W()},nulling:function(){ue=le=ae=fe=de=se=ce=null,he.length=0},_handleFallbackAutoScroll:function(t){this._handleAutoScroll(t,!0)},_handleAutoScroll:function(t,e){var n=this,o=(t.touches?t.touches[0]:t).clientX,r=(t.touches?t.touches[0]:t).clientY,i=document.elementFromPoint(o,r);if(ue=t,e||p||f||v){me(t,this.options,i,e);var a=B(i,!0);!fe||de&&o===se&&r===ce||(de&&ve(),de=setInterval((function(){var i=B(document.elementFromPoint(o,r),!0);i!==a&&(a=i,ge()),me(t,n.options,i,e)}),10),se=o,ce=r)}else{if(!this.options.bubbleScroll||B(i,!0)===O())return void ge();me(t,this.options,B(i,!1),!1)}}},l(t,{pluginName:"scroll",initializeByDefault:!0})}function ge(){he.forEach((function(t){clearInterval(t.pid)})),he=[]}function ve(){clearInterval(de)}var me=j((function(t,e,n,o){if(e.scroll){var r,i=(t.touches?t.touches[0]:t).clientX,a=(t.touches?t.touches[0]:t).clientY,l=e.scrollSensitivity,s=e.scrollSpeed,c=O(),u=!1;le!==n&&(le=n,ge(),ae=e.scroll,r=e.scrollFn,!0===ae&&(ae=B(n,!0)));var d=0,h=ae;do{var f=h,p=A(f),g=p.top,v=p.bottom,m=p.left,b=p.right,w=p.width,y=p.height,S=void 0,D=void 0,E=f.scrollWidth,_=f.scrollHeight,C=M(f),T=f.scrollLeft,I=f.scrollTop;f===c?(S=w<E&&("auto"===C.overflowX||"scroll"===C.overflowX||"visible"===C.overflowX),D=y<_&&("auto"===C.overflowY||"scroll"===C.overflowY||"visible"===C.overflowY)):(S=w<E&&("auto"===C.overflowX||"scroll"===C.overflowX),D=y<_&&("auto"===C.overflowY||"scroll"===C.overflowY));var x=S&&(Math.abs(b-i)<=l&&T+w<E)-(Math.abs(m-i)<=l&&!!T),N=D&&(Math.abs(v-a)<=l&&I+y<_)-(Math.abs(g-a)<=l&&!!I);if(!he[d])for(var P=0;P<=d;P++)he[P]||(he[P]={});he[d].vx==x&&he[d].vy==N&&he[d].el===f||(he[d].el=f,he[d].vx=x,he[d].vy=N,clearInterval(he[d].pid),0==x&&0==N||(u=!0,he[d].pid=setInterval(function(){o&&0===this.layer&&Jt.active._onTouchMove(ue);var e=he[this.layer].vy?he[this.layer].vy*s:0,n=he[this.layer].vx?he[this.layer].vx*s:0;"function"===typeof r&&"continue"!==r.call(Jt.dragged.parentNode[V],n,e,t,ue,he[this.layer].el)||z(he[this.layer].el,n,e)}.bind({layer:d}),24))),d++}while(e.bubbleScroll&&h!==c&&(h=B(h,!1)));fe=u}}),30),be=function(t){var e=t.originalEvent,n=t.putSortable,o=t.dragEl,r=t.activeSortable,i=t.dispatchSortableEvent,a=t.hideGhostForTarget,l=t.unhideGhostForTarget;if(e){var s=n||r;a();var c=e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:e,u=document.elementFromPoint(c.clientX,c.clientY);l(),s&&!s.el.contains(u)&&(i("spill"),this.onSpill({dragEl:o,putSortable:n}))}};function we(){}function ye(){}we.prototype={startIndex:null,dragStart:function(t){var e=t.oldDraggableIndex;this.startIndex=e},onSpill:function(t){var e=t.dragEl,n=t.putSortable;this.sortable.captureAnimationState(),n&&n.captureAnimationState();var o=k(this.sortable.el,this.startIndex,this.options);o?this.sortable.el.insertBefore(e,o):this.sortable.el.appendChild(e),this.sortable.animateAll(),n&&n.animateAll()},drop:be},l(we,{pluginName:"revertOnSpill"}),ye.prototype={onSpill:function(t){var e=t.dragEl,n=t.putSortable,o=n||this.sortable;o.captureAnimationState(),e.parentNode&&e.parentNode.removeChild(e),o.animateAll()},drop:be},l(ye,{pluginName:"removeOnSpill"});Jt.mount(new pe),Jt.mount(ye,we);var Se=Jt,De=n("d11a"),Ee=n("5b4e6"),_e=De["a"].getMemberData,Ce=De["a"].getServiceData,Te=De["a"].saveSortMember,Ie={name:"DataDimensionPage",components:{},props:{brandId:{type:String,default:""}},data:function(){return{tipContent:"当商户有多个会员卡和服务号时,会造成单家门店适用于多个会员卡或服务号,即单个顾客会有多个域的身份信息,这容易造成门店成员的困扰。请为以下会员卡和服务号域做权重排序,当顾客有多个域的身份信息时,门店成员将只能看到权重最高域的一个身份信息。",memberCardData:[],serviceNumData:[],loadingMember:!1,loadingService:!1}},mounted:function(){var t=this;t.rowDrop("memberCardData"),t.rowDrop("serviceNumData"),t.brandId&&(t.getMemberCrad(),t.getServiceNum())},methods:{rowDrop:function(t){var e=this.$refs[t].$el.querySelectorAll(".el-table__body-wrapper > table > tbody")[0],n=this;Se.create(e,{onEnd:function(e){var o=e.newIndex,r=e.oldIndex;if(o==r)return!1;var i=JSON.parse(JSON.stringify(n[t])),a=i.splice(r,1)[0];i.splice(o,0,a),n.setSort(i)}})},setSort:function(){var t=this,e={enterpriseId:t.brandId};Te(e).then((function(e){t.getMemberCrad(),t.getServiceNum(),"0000"==e.code?Ee["a"].showmsg("操作成功","success"):Ee["a"].showmsg(e.message||"接口异常","warning")})).catch((function(t){}))},getMemberCrad:function(){var t=this;t.loadingMember=!0;var e={enterpriseId:t.brandId};_e(e).then((function(e){t.loadingMember=!1,t.memberCardData=e.result||[]})).catch((function(e){t.loadingMember=!1}))},getServiceNum:function(){var t=this;t.loadingService=!0;var e={enterpriseId:t.brandId};Ce(e).then((function(e){t.loadingService=!1,t.serviceNumData=e.result||[]})).catch((function(e){t.loadingService=!1}))}},watch:{brandId:function(t){var e=this;t&&(e.getMemberCrad(),e.getServiceNum())}}},Me=Ie,xe=(n("6f28"),n("2877")),Ne=Object(xe["a"])(Me,o,r,!1,null,"02f616cc",null);e["default"]=Ne.exports},"5b4e6":function(t,e,n){"use strict";var o=n("5c96");e["a"]={showmsg:function(t,e){Object(o["Message"])({duration:1e3,message:t||"接口异常",type:e})}}},"5c47":function(t,e,n){},"6f28":function(t,e,n){"use strict";var o=n("5c47"),r=n.n(o);r.a},"71f6":function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));n("ac6a"),n("456d");var o=n("b775");function r(t,e){t=t||{};var n=Object.keys(t);return n.forEach((function(n){var r=t[n];"string"===typeof r&&(r={url:r}),r.url="".concat(e).concat(r.url),t[n]=function(t){return Object(o["a"])(r,t)}})),t}},d11a:function(t,e,n){"use strict";var o=n("71f6"),r={getGroupList:"/department-list",getStoreList:"/store-list",getAssignStatus:"/app-distribute-status",getNavChain:"/get-chain",getMemberList:{url:"/app-get-member-info-list",method:"post",useFormData:!0},getClerkList:"/clerk-list",getMemberCount:"",saveAssign:{url:"/",method:"post",useFormData:!0},getMemberData:"",getServiceData:"",saveSortMember:{url:"/",method:"post",useFormData:!0,useIntercept:!1},getShowSet:"",saveShowSet:{url:"",method:"post",useFormData:!0,useIntercept:!1},getCustomerSet:"",saveCustomerSet:{url:"",method:"post",useFormData:!0,useIntercept:!1},getGroupData:"",getClassifyData:"",postSortGroup:{url:"/",method:"post",useFormData:!0,useIntercept:!1},getSyncMemberData:"",saveSync:{url:"/",method:"post",useFormData:!0,useIntercept:!1},saveVisiable:{url:"/",method:"post",useFormData:!0,useIntercept:!1},getTagClassify:"",addClassify:"",delClassify:{url:"/",method:"post",useFormData:!0,useIntercept:!1},getClerkTag:"",addClerkTag:"",delClerkTag:{url:"/",method:"post",useFormData:!0,useIntercept:!1}};r=Object(o["a"])(r,"/hb-manage-web"),e["a"]=r}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-41d5b83e"],{"2ce3":function(t,e,a){},3081:function(t,e,a){"use strict";var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"common-alert-tip"},[a("div",{style:{"min-width":t.width}},[a("div",{staticClass:"el-alert el-alert--info flex flex-align-start",style:{width:t.width},attrs:{role:"alert"}},[a("i",{staticClass:"el-alert__icon el-icon-info font-12 color-2f54eb"}),a("div",{staticClass:"el-alert__content"},[a("span",{staticClass:"el-alert__title color-606266 font-13"},[t._v("\n "+t._s(t.tipContent)+"\n ")])])])])])},r=[],o={name:"CommonAlertTip",components:{},props:{width:{type:String,default:"645px"},tipContent:{type:String,default:""}},data:function(){return{}}},s=o,i=a("2877"),c=Object(i["a"])(s,n,r,!1,null,"3070d237",null);e["a"]=c.exports},"5b4e6":function(t,e,a){"use strict";var n=a("5c96");e["a"]={showmsg:function(t,e){Object(n["Message"])({duration:1e3,message:t||"接口异常",type:e})}}},"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){return Object(n["a"])(r,t)}})),t}},"96de":function(t,e,a){"use strict";var n=a("2ce3"),r=a.n(n);r.a},c7d7: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:"common-app-right"},[a("div",{staticClass:"crowd-scene-tip"},[a("common-alert-tip",{attrs:{width:"100%","tip-content":t.tipContent}})],1),a("div",{staticClass:"crowd-scene-search flex flex-space-between"},[a("div",[a("el-input",{staticClass:"w-264",staticStyle:{width:"217px"},attrs:{placeholder:"请输入人群名称",maxlength:"50","prefix-icon":"el-icon-search",clearable:""},on:{clear:t.clearInput},nativeOn:{keyup:function(e){return function(e){return t.toInput(e)}(e)}},model:{value:t.searchVal,callback:function(e){t.searchVal=e},expression:"searchVal"}}),a("el-select",{staticClass:"w-168 m-l-10",attrs:{placeholder:"所有分类"},on:{change:t.changeCondition},model:{value:t.classifyName,callback:function(e){t.classifyName=e},expression:"classifyName"}},[a("el-option",{attrs:{label:"所有分类",value:""}}),t._l(t.classifyList,(function(t){return a("el-option",{key:t,attrs:{label:t,value:t}})}))],2)],1),a("div",[a("el-button",{attrs:{type:"primary"},on:{click:t.toSync}},[t._v("同步场景人群")])],1)]),a("div",{staticClass:"crowd-scene-table flex"},[a("div",{staticClass:"crowd-scene-table_left"},[a("el-table",{staticStyle:{width:"100%"},attrs:{data:t.memberCrowdData}},[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.name||"--"))]}}])}),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.classifyName||"--"))]}}])}),a("el-table-column",{attrs:{prop:"",label:"到期时间"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"line-18"},[t._v(t._s(t._f("timeStampToYmd")(e.row.effectiveDate))+" "+t._s(e.row.effectiveDate?e.row.effectiveDate:"--"))]),a("div",{staticClass:"line-18"},[t._v(t._s(t._f("timeStampToHms")(e.row.effectiveDate))+" "+t._s(e.row.effectiveDate?e.row.effectiveDate:"--"))])]}}])}),a("el-table-column",{scopedSlots:t._u([{key:"default",fn:function(e){return[a("i",{class:["icon-color","el-icon-upload2",0==e.$index?"disable":""],on:{click:function(a){return t.toTop(e.$index,e.row,t.memberCrowdData)}}}),a("i",{class:["icon-color","el-icon-back","icon-to-pre",0==e.$index?"disable":""],on:{click:function(a){return t.toPre(e.$index,e.row,t.memberCrowdData)}}}),a("i",{class:["icon-color","el-icon-back","icon-to-next",e.$index==t.memberCrowdData.length-1?"disable":""],on:{click:function(a){return t.toNext(e.$index,e.row,t.memberCrowdData)}}}),a("i",{class:["icon-color","el-icon-download",e.$index==t.memberCrowdData.length-1?"disable":""],on:{click:function(a){return t.toBottom(e.$index,e.row,t.memberCrowdData)}}})]}}])},[a("template",{slot:"header"},[a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",placement:"right"}},[a("div",{attrs:{slot:"content"},slot:"content"},[t._v("\n 排序越靠上的权重越高,当一家门店拥有多个会员卡时,优先展示排序最靠上的会员卡\n ")]),a("span",{staticClass:"common-bottom-border"},[t._v("排序")])])],1)],2),a("el-table-column",{attrs:{label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text"},on:{click:function(a){return t.toEdit(e.$index,e.row)}}},[t._v("编辑可见范围")])]}}])})],1)],1)])])},r=[],o=a("3081"),s=a("d11a"),i=a("d157"),c=a("5b4e6"),l=s["a"].getGroupData,u=s["a"].getClassifyData,f=s["a"].postSortGroup,d={name:"CrowdScenePage",components:{commonAlertTip:o["a"]},props:{brandId:{type:String,default:""}},data:function(){return{tipContent:"GIC设置场景人群后,好办顾客人群列表最多同步20个人群,次日刷新,每日刷新一次;<br/> GIC中设置的场景人群到期后,好办移动端将不再展示该条人群;",searchVal:"",classifyName:"",classifyList:[],memberCrowdData:[],showSync:!1,showSelectStore:!1}},mounted:function(){var t=this;t.brandId&&t.getGroupList()},methods:{toSync:function(){var t=this;t.showSync=!0},toEdit:function(t,e){var a=this;a.showSelectStore=!0},toInput:Object(i["a"])((function(){var t=this;t.currentPage=1,t.getGroupList()}),500),clearInput:function(){var t=this;t.currentPage=1,t.getGroupList()},changeCondition:function(){var t=this;t.currentPage=1,t.getGroupList()},toTop:function(t,e,a){var n=this;if(0==t)return!1;var r=JSON.parse(JSON.stringify(a));r.splice(t,1),r.unshift(e),n.setSort()},toPre:function(t,e,a){var n=this;if(0==t)return!1;var r=JSON.parse(JSON.stringify(a)),o={};o=r[t-1],r[t-1]=e,r[t]=o,n.setSort()},toNext:function(t,e,a){var n=this;if(t==a.length-1)return!1;var r=JSON.parse(JSON.stringify(a)),o={};o=r[t+1],r[t+1]=e,r[t]=o,n.setSort()},toBottom:function(t,e,a){var n=this;if(t==a.length-1)return!1;var r=JSON.parse(JSON.stringify(a));r.splice(t,1),r.push(e),n.setSort()},setSort:function(){var t=this,e={enterpriseId:t.brandId};f(e).then((function(e){t.getGroupList(),"0000"==e.code?c["a"].showmsg("操作成功","success"):c["a"].showmsg(e.message||"接口异常","warning")})).catch((function(t){}))},getGroupClassify:function(){var t=this,e={enterpriseId:t.brandId};u(e).then((function(e){t.classifyList=e.result||[]})).catch((function(t){}))},getGroupList:function(){var t=this,e={enterpriseId:t.brandId};l(e).then((function(e){t.memberCrowdData=e.result||[]})).catch((function(t){}))}},watch:{brandId:function(t){var e=this;t&&(e.getMemberCrad(),e.getServiceNum())}}},p=d,m=(a("96de"),a("2877")),h=Object(m["a"])(p,n,r,!1,null,"a92a23a0",null);e["default"]=h.exports},d11a:function(t,e,a){"use strict";var n=a("71f6"),r={getGroupList:"/department-list",getStoreList:"/store-list",getAssignStatus:"/app-distribute-status",getNavChain:"/get-chain",getMemberList:{url:"/app-get-member-info-list",method:"post",useFormData:!0},getClerkList:"/clerk-list",getMemberCount:"",saveAssign:{url:"/",method:"post",useFormData:!0},getMemberData:"",getServiceData:"",saveSortMember:{url:"/",method:"post",useFormData:!0,useIntercept:!1},getShowSet:"",saveShowSet:{url:"",method:"post",useFormData:!0,useIntercept:!1},getCustomerSet:"",saveCustomerSet:{url:"",method:"post",useFormData:!0,useIntercept:!1},getGroupData:"",getClassifyData:"",postSortGroup:{url:"/",method:"post",useFormData:!0,useIntercept:!1},getSyncMemberData:"",saveSync:{url:"/",method:"post",useFormData:!0,useIntercept:!1},saveVisiable:{url:"/",method:"post",useFormData:!0,useIntercept:!1},getTagClassify:"",addClassify:"",delClassify:{url:"/",method:"post",useFormData:!0,useIntercept:!1},getClerkTag:"",addClerkTag:"",delClerkTag:{url:"/",method:"post",useFormData:!0,useIntercept:!1}};r=Object(n["a"])(r,"/hb-manage-web"),e["a"]=r},d157:function(t,e,a){"use strict";a.d(e,"a",(function(){return n})),a.d(e,"b",(function(){return r})),a.d(e,"c",(function(){return o}));a("c5f6"),a("a481"),a("28a5"),a("6b54");function n(t,e){var a,n=e||200;return function(){var e=this,r=arguments;a&&clearTimeout(a),a=setTimeout((function(){a=null,t.apply(e,r)}),n)}}function r(t,e){var a,n,r=e||200;return function(){var e=this,o=arguments,s=+new Date;a&&s-a<r?(clearTimeout(n),n=setTimeout((function(){a=s,t.apply(e,o)}),r)):(a=s,t.apply(e,o))}}function o(t){return t=t.replace(/\uD83C[\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F]|[\uD800-\uDBFF]|[\uDC00-\uDFFF]|[^\u0020-\u007E\u00A0-\u00BE\u2E80-\uA4CF\uF900-\uFAFF\uFE30-\uFE4F\uFF00-\uFFEF\u0080-\u009F\u2000-\u201f\u2026\u2022\u20ac\r\n]/g,""),unescape(escape(t).replace(/\%uD.{3}/g,""))}}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-43f503d3"],{"21f4":function(e,t,r){"use strict";var n=r("71f6"),a={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},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"};a=Object(n["a"])(a,"/hb-manage-web"),t["a"]=a},"28a5":function(e,t,r){"use strict";var n=r("aae3"),a=r("cb7c"),s=r("ebd6"),i=r("0390"),c=r("9def"),o=r("5f1b"),u=r("520a"),l=r("79e5"),d=Math.min,p=[].push,f="split",h="length",g="lastIndex",m=4294967295,v=!l((function(){RegExp(m,"y")}));r("214f")("split",2,(function(e,t,r,l){var b;return b="c"=="abbc"[f](/(b)*/)[1]||4!="test"[f](/(?:)/,-1)[h]||2!="ab"[f](/(?:ab)*/)[h]||4!="."[f](/(.?)(.?)/)[h]||"."[f](/()()/)[h]>1||""[f](/.?/)[h]?function(e,t){var a=String(this);if(void 0===e&&0===t)return[];if(!n(e))return r.call(a,e,t);var s,i,c,o=[],l=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),d=0,f=void 0===t?m:t>>>0,v=new RegExp(e.source,l+"g");while(s=u.call(v,a)){if(i=v[g],i>d&&(o.push(a.slice(d,s.index)),s[h]>1&&s.index<a[h]&&p.apply(o,s.slice(1)),c=s[0][h],d=i,o[h]>=f))break;v[g]===s.index&&v[g]++}return d===a[h]?!c&&v.test("")||o.push(""):o.push(a.slice(d)),o[h]>f?o.slice(0,f):o}:"0"[f](void 0,0)[h]?function(e,t){return void 0===e&&0===t?[]:r.call(this,e,t)}:r,[function(r,n){var a=e(this),s=void 0==r?void 0:r[t];return void 0!==s?s.call(r,a,n):b.call(String(a),r,n)},function(e,t){var n=l(b,e,this,t,b!==r);if(n.done)return n.value;var u=a(e),p=String(this),f=s(u,RegExp),h=u.unicode,g=(u.ignoreCase?"i":"")+(u.multiline?"m":"")+(u.unicode?"u":"")+(v?"y":"g"),y=new f(v?u:"^(?:"+u.source+")",g),S=void 0===t?m:t>>>0;if(0===S)return[];if(0===p.length)return null===o(y,p)?[p]:[];var C=0,k=0,_=[];while(k<p.length){y.lastIndex=v?k:0;var I,x=o(y,v?p:p.slice(k));if(null===x||(I=d(c(y.lastIndex+(v?0:k)),p.length))===C)k=i(p,k,h);else{if(_.push(p.slice(C,k)),_.length===S)return _;for(var F=1;F<=x.length-1;F++)if(_.push(x[F]),_.length===S)return _;k=C=I}}return _.push(p.slice(C)),_}]}))},"29b6":function(e,t,r){"use strict";var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"nav-wrap border-box"},[r("el-breadcrumb",{attrs:{"separator-class":"el-icon-arrow-right"}},[e._l(e.navpath,(function(t,n){return[t.path?[r("el-breadcrumb-item",{key:"nav"+n,attrs:{to:{path:t.path}},on:{click:function(r){return e.changeRoute(t.path,t.relocation)}}},[r("span",{staticClass:"el-breadcrumb__inner is-link",on:{click:function(r){return e.changeRoute(t.path,t.relocation)}}},[e._v("\n "+e._s(t.name)+"\n ")])])]:[r("el-breadcrumb-item",{key:"nav"+n},[e._v(e._s(t.name))])]]}))],2)],1)},a=[],s={name:"NavPath",props:{navpath:{type:Array,default:function(){return[]}}},data:function(){return{projectName:"member"}},methods:{changeRoute:function(e,t){var r=this;t?window.location.href=e:r.$router.push(e)}}},i=s,c=(r("6b4b"),r("2877")),o=Object(c["a"])(i,n,a,!1,null,"2c2a2724",null);t["a"]=o.exports},"2fdb":function(e,t,r){"use strict";var n=r("5ca1"),a=r("d2c8"),s="includes";n(n.P+n.F*r("51479")(s),"String",{includes:function(e){return!!~a(this,e,s).indexOf(e,arguments.length>1?arguments[1]:void 0)}})},3081:function(e,t,r){"use strict";var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"common-alert-tip"},[r("div",{style:{"min-width":e.width}},[r("div",{staticClass:"el-alert el-alert--info flex flex-align-start",style:{width:e.width},attrs:{role:"alert"}},[r("i",{staticClass:"el-alert__icon el-icon-info font-12 color-2f54eb"}),r("div",{staticClass:"el-alert__content"},[r("span",{staticClass:"el-alert__title color-606266 font-13"},[e._v("\n "+e._s(e.tipContent)+"\n ")])])])])])},a=[],s={name:"CommonAlertTip",components:{},props:{width:{type:String,default:"645px"},tipContent:{type:String,default:""}},data:function(){return{}}},i=s,c=r("2877"),o=Object(c["a"])(i,n,a,!1,null,"3070d237",null);t["a"]=o.exports},"418e":function(e,t,r){"use strict";var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"daily-store-select"},[r("div",{staticClass:"font-12 color-909399"},[e._v("最多可选50家门店")]),r("div",{staticClass:"select-search"},[r("el-input",{staticStyle:{width:"100%"},attrs:{placeholder:"请输入门店名称/代码",clearable:""},on:{clear:e.clearSearch},nativeOn:{keyup:function(t){return function(t){return e.toInput(t,e.searchSelect)}(t)}},model:{value:e.searchSelect,callback:function(t){e.searchSelect=t},expression:"searchSelect"}},[r("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})])],1),r("div",{staticClass:"el-scrollbar define-search-select"},[r("div",{staticClass:"el-select-dropdown__wrap el-scrollbar__wrap",staticStyle:{overflow:"auto"}},[r("el-checkbox-group",{attrs:{max:50},on:{change:e.handleStoresChange},model:{value:e.dailyRuleForm.stores,callback:function(t){e.$set(e.dailyRuleForm,"stores",t)},expression:"dailyRuleForm.stores"}},[r("ul",{staticClass:"el-scrollbar__view el-select-dropdown__list"},[e._l(e.stores,(function(t){return r("li",{key:t.storeInfoId,class:["el-select-dropdown__item",t.select?"selected hover":""],on:{click:function(r){return r.stopPropagation(),e.toShowMsg(t)}}},[r("el-checkbox",{attrs:{disabled:1==t.bindFlag||1==t.auditFlag,label:t.storeInfoId}},[e._v(e._s(t.storeInfoName))]),1==t.bindFlag&&1!=t.auditFlag?r("span",{staticClass:"font-12 color-909399 p-l-10"},[e._v(e._s(t.bindWxEnterpriseName)+" 企业已授权")]):e._e(),1==t.auditFlag?r("span",{staticClass:"font-12 color-909399 p-l-10"},[e._v(e._s(t.bindWxEnterpriseName)+" 企业授权中")]):e._e()],1)})),e.stores.length?e._e():r("li",{staticClass:"text-center"},[r("span",[e._v("暂无数据")])])],2)])],1)])])},a=[],s=(r("6762"),r("2fdb"),r("ac6a"),r("d157")),i=r("21f4"),c=r("5b4e"),o=i["a"].getStoreList,u={name:"StoreAuthStore",props:{companyId:{type:String,default:""},storeType:{type:String,default:"1"},selectStore:{type:[Object,Array],default:function(){return{}}}},data:function(){return{checkAll:!1,isIndeterminate:!1,searchSelect:"",stores:[],storesCopy:[],dailyRuleForm:{stores:[]},pageNum:1,pageSize:300}},mounted:function(){var e=this;e.stores=[],e.storesCopy=[],e.companyId&&(e.pageNum=1,e.getStoreData()),e.selectStore.length?e.dailyRuleForm.stores=e.selectStore.map((function(e){return e.storeInfoId}))||[]:e.dailyRuleForm.stores=[]},methods:{toShowMsg:function(e){if(1==e.auditFlag)return c["a"].showmsg("".concat(e.bindWxEnterpriseName," 企业授权中,无法选择!"),"warning"),!1;1==e.bindFlag&&c["a"].showmsg("当前门店已被其他企业绑定,当前企业无法选择!","warning")},handleStoresChange:function(e){var t=this,r=[];t.stores.forEach((function(t){e.includes(t.storeInfoId)&&r.push(t)})),t.$emit("checkStoreIds",JSON.parse(JSON.stringify(r)))},toInput:Object(s["a"])((function(e,t){var r=this;""!=r.searchSelect&&(r.stores=[],r.pageNum=1,r.getStoreData())}),500),clearSearch:function(){var e=this;e.stores=[],e.pageNum=1,e.getStoreData()},getStoreData:function(){var e=this,t={search:e.searchSelect,enterpriseId:e.companyId,type:e.storeType,pageNum:e.pageNum,pageSize:e.pageSize};o(t).then((function(t){1==e.pageNum?(e.stores=JSON.parse(JSON.stringify(t.result.result))||[],e.storesCopy=JSON.parse(JSON.stringify(t.result.result))||[]):t.result.result.forEach((function(t){e.stores.push(t),e.storesCopy.push(t)})),e.pageNum*e.pageSize<t.result.totalCount&&(e.pageNum++,e.$nextTick((function(){e.getStoreData()})))})).catch((function(e){}))}},watch:{selectStore:function(e,t){var r=this;e.length?r.dailyRuleForm.stores=e.map((function(e){return e.storeInfoId}))||[]:r.dailyRuleForm.stores=[]},companyId:function(e){var t=this;e&&(t.pageNum=1,t.getStoreData())}}},l=u,d=(r("ff8b"),r("2877")),p=Object(d["a"])(l,n,a,!1,null,"1882314e",null);t["a"]=p.exports},51479:function(e,t,r){var n=r("2b4c")("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(r){try{return t[n]=!1,!"/./"[e](t)}catch(a){}}return!0}},"53cd":function(e,t,r){},"5b4e":function(e,t,r){"use strict";var n=r("5c96");t["a"]={showmsg:function(e,t){Object(n["Message"])({duration:1e3,message:e||"接口异常",type:t})}}},6762:function(e,t,r){"use strict";var n=r("5ca1"),a=r("c366")(!0);n(n.P,"Array",{includes:function(e){return a(this,e,arguments.length>1?arguments[1]:void 0)}}),r("9c6c")("includes")},"6b4b":function(e,t,r){"use strict";var n=r("76d4"),a=r.n(n);a.a},"71f6":function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));r("ac6a"),r("456d");var n=r("b775");function a(e,t){e=e||{};var r=Object.keys(e);return r.forEach((function(r){var a=e[r];"string"===typeof a&&(a={url:a}),a.url="".concat(t).concat(a.url),e[r]=function(e){return Object(n["a"])(a,e)}})),e}},"76d4":function(e,t,r){},"7ca9":function(e,t,r){"use strict";var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"bind-store-body"},[r("div",{staticClass:"select-search"},[r("el-input",{attrs:{placeholder:"请输入分组名称",clearable:""},on:{clear:e.clearSearch},nativeOn:{keyup:function(t){return function(t){return e.toInput(t,e.searchSelect)}(t)}},model:{value:e.searchSelect,callback:function(t){e.searchSelect=t},expression:"searchSelect"}},[r("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})])],1),r("div",{staticClass:"select-tree-wrap auth-select-tree m-t-20"},[r("el-tree",{ref:"groupTree",attrs:{"filter-node-method":e.filterNode,"check-strictly":"",data:e.groupData,"node-key":"storeGroupId","show-checkbox":"","default-expand-all":"",props:e.defaultProps,"expand-on-click-node":!1},on:{check:e.checkGroup},scopedSlots:e._u([{key:"default",fn:function(t){var n=t.node,a=t.data;return r("span",{staticClass:"custom-tree-node",attrs:{id:a.storeGroupId},on:{click:function(t){return e.toShowMsg(n,a)}}},[r("span",{staticClass:"font-14 color-606266"},[e._v(e._s(n.label))]),1==a.bindFlag&&1!=a.auditFlag?r("span",{staticClass:"font-12 color-909399 p-l-10"},[e._v(e._s(a.bindWxEnterpriseName)+" 企业已授权")]):e._e(),1==a.auditFlag?r("span",{staticClass:"font-12 color-909399 p-l-10"},[e._v(e._s(a.bindWxEnterpriseName)+" 企业授权中")]):e._e()])}}])})],1)])},a=[],s=(r("96cf"),r("1da1")),i=(r("ac6a"),r("6762"),r("2fdb"),r("d157")),c=r("21f4"),o=r("5b4e"),u=c["a"].getGroupList,l={name:"StoreAuthGroup",props:{companyId:{type:String,default:""},storeType:{type:String,default:"1"},selectGroup:{type:[Object,Array],default:function(){return{}}}},data:function(){return{searchSelect:"",groupData:[],groupDataCopy:[],defaultProps:{children:"children",label:"storeGroupName"}}},mounted:function(){var e=this;e.companyId&&e.getGroup(),e.selectGroup.length?e.$nextTick((function(){e.$refs.groupTree.setCheckedKeys(e.selectGroup.map((function(e){return e.storeGroupId})))})):e.$nextTick((function(){e.$refs.groupTree.setCheckedKeys([])}))},methods:{toShowMsg:function(e,t){if(1==t.auditFlag)return o["a"].showmsg("".concat(t.bindWxEnterpriseName," 企业授权中,无法选择!"),"warning"),!1;1==t.bindFlag&&o["a"].showmsg("当前分组已被其他企业绑定,当前企业无法选择!","warning")},filterNode:function(e,t){return!e||!t.label||-1!==t.label.indexOf(e)},toInput:Object(i["a"])((function(e,t){var r=this;if(!r.groupDataCopy.length)return!1}),200),clearSearch:function(){return!1},checkGroup:function(e,t){var r=this;if(e.children){var n=document.getElementById(e.storeGroupId).previousElementSibling.children[0].className,a=r.$refs.groupTree.getNode(e.storeGroupId)?r.$refs.groupTree.getNode(e.storeGroupId).parent:"",s=t.checkedKeys.includes(e.storeGroupId);n.includes("is-checked")&&a&&a.data.bindFlag,s||document.getElementById(e.storeGroupId).previousElementSibling.children[0].children[0].setAttribute("style",""),r.$refs.groupTree.setChecked(e.storeGroupId,s,!0),e.children.forEach((function(e){r.$refs.groupTree.setChecked(e.storeGroupId,s,!0),e.disabled=!!s||!!e.bindFlag,e.children&&e.children.length&&r.checkChild(e,s)}))}var i=r.$refs.groupTree.getCheckedNodes();if(i.length){var c=[];i.forEach((function(e){e.disabled||c.push(e)})),r.$emit("checkGroupIds",c)}else r.$emit("checkGroupIds",[]);r.$nextTick((function(){var e=document.querySelectorAll(".el-checkbox__input");e&&e.length&&e.forEach((function(e){e.className.includes("is-checked")&&e.className.includes("is-disabled")&&e.children[0].setAttribute("style","")}))}))},checkChild:function(e,t){var r=this;e.children.forEach((function(e){r.$refs.groupTree.setChecked(e.storeGroupId,t,!0),e.disabled=!!t||!!e.bindFlag,e.children&&e.children.length&&r.checkChild(e,t)}))},treeData:function(e){var t=e.filter((function(t){var r=e.filter((function(e){return t.storeGroupId==e.parentId}));return r.length>0?(t.hasSonNode=!0,t.children=r):(t.children=[],t.hasSonNode=!1),0==t.parentId}));return t},setSelectCheck:function(){var e=this,t=e.selectGroup.map((function(e){return e.storeGroupId}));e.groupData.forEach((function(r){t.includes(r.storeGroupId)&&r.children.length&&e.checkChild(r,!0),t.includes(r.storeGroupId)||e.disableChild(r,t)}))},disableChild:function(e,t){var r=this;e.children.forEach((function(e){t.includes(e.storeGroupId)&&e.children.length&&r.checkChild(e,!0),!t.includes(e.storeGroupId)&&e.children.length&&r.disableChild(e,t)}))},getGroup:function(){var e=this,t={type:e.storeType,enterpriseId:e.companyId};u(t).then(function(){var t=Object(s["a"])(regeneratorRuntime.mark((function t(r){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return r.result&&r.result.length&&r.result.forEach((function(e){e.expand=!1,e.children=[],e.disabled=1==e.bindFlag||1==e.auditFlag,e.label=e.storeGroupName})),t.next=3,e.treeData(JSON.parse(JSON.stringify(r.result)));case 3:if(t.t0=t.sent,t.t0){t.next=6;break}t.t0=[];case 6:e.groupData=t.t0,e.groupDataCopy=JSON.parse(JSON.stringify(r.result)),e.$nextTick((function(){e.setSelectCheck()}));case 9:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(e){}))}},watch:{searchSelect:function(e){this.$refs.groupTree.filter(e)},selectGroup:function(e){var t=this;e.length?t.$nextTick((function(){t.$refs.groupTree.setCheckedKeys(e.map((function(e){return e.storeGroupId})))})):t.$nextTick((function(){t.$refs.groupTree.setCheckedKeys([])}))},companyId:function(e){var t=this;e&&t.getGroup()}}},d=l,p=(r("ae25"),r("2877")),f=Object(p["a"])(d,n,a,!1,null,"417f5acc",null);t["a"]=f.exports},ae25:function(e,t,r){"use strict";var n=r("b686"),a=r.n(n);a.a},b686:function(e,t,r){},d157:function(e,t,r){"use strict";r.d(t,"a",(function(){return n})),r.d(t,"b",(function(){return a})),r.d(t,"c",(function(){return s}));r("c5f6"),r("a481"),r("28a5"),r("6b54");function n(e,t){var r,n=t||200;return function(){var t=this,a=arguments;r&&clearTimeout(r),r=setTimeout((function(){r=null,e.apply(t,a)}),n)}}function a(e,t){var r,n,a=t||200;return function(){var t=this,s=arguments,i=+new Date;r&&i-r<a?(clearTimeout(n),n=setTimeout((function(){r=i,e.apply(t,s)}),a)):(r=i,e.apply(t,s))}}function s(e){return e=e.replace(/\uD83C[\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F]|[\uD800-\uDBFF]|[\uDC00-\uDFFF]|[^\u0020-\u007E\u00A0-\u00BE\u2E80-\uA4CF\uF900-\uFAFF\uFE30-\uFE4F\uFF00-\uFFEF\u0080-\u009F\u2000-\u201f\u2026\u2022\u20ac\r\n]/g,""),unescape(escape(e).replace(/\%uD.{3}/g,""))}},d2c8:function(e,t,r){var n=r("aae3"),a=r("be13");e.exports=function(e,t,r){if(n(t))throw TypeError("String#"+r+" doesn't accept regex!");return String(a(e))}},ff8b:function(e,t,r){"use strict";var n=r("53cd"),a=r.n(n);a.a}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-45b70e81"],{"28a5":function(t,e,a){"use strict";var n=a("aae3"),o=a("cb7c"),i=a("ebd6"),s=a("0390"),r=a("9def"),c=a("5f1b"),l=a("520a"),u=a("79e5"),f=Math.min,p=[].push,h="split",d="length",m="lastIndex",g=4294967295,v=!u((function(){RegExp(g,"y")}));a("214f")("split",2,(function(t,e,a,u){var w;return w="c"=="abbc"[h](/(b)*/)[1]||4!="test"[h](/(?:)/,-1)[d]||2!="ab"[h](/(?:ab)*/)[d]||4!="."[h](/(.?)(.?)/)[d]||"."[h](/()()/)[d]>1||""[h](/.?/)[d]?function(t,e){var o=String(this);if(void 0===t&&0===e)return[];if(!n(t))return a.call(o,t,e);var i,s,r,c=[],u=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),f=0,h=void 0===e?g:e>>>0,v=new RegExp(t.source,u+"g");while(i=l.call(v,o)){if(s=v[m],s>f&&(c.push(o.slice(f,i.index)),i[d]>1&&i.index<o[d]&&p.apply(c,i.slice(1)),r=i[0][d],f=s,c[d]>=h))break;v[m]===i.index&&v[m]++}return f===o[d]?!r&&v.test("")||c.push(""):c.push(o.slice(f)),c[d]>h?c.slice(0,h):c}:"0"[h](void 0,0)[d]?function(t,e){return void 0===t&&0===e?[]:a.call(this,t,e)}:a,[function(a,n){var o=t(this),i=void 0==a?void 0:a[e];return void 0!==i?i.call(a,o,n):w.call(String(o),a,n)},function(t,e){var n=u(w,t,this,e,w!==a);if(n.done)return n.value;var l=o(t),p=String(this),h=i(l,RegExp),d=l.unicode,m=(l.ignoreCase?"i":"")+(l.multiline?"m":"")+(l.unicode?"u":"")+(v?"y":"g"),C=new h(v?l:"^(?:"+l.source+")",m),b=void 0===e?g:e>>>0;if(0===b)return[];if(0===p.length)return null===c(C,p)?[p]:[];var x=0,_=0,y=[];while(_<p.length){C.lastIndex=v?_:0;var S,k=c(C,v?p:p.slice(_));if(null===k||(S=f(r(C.lastIndex+(v?0:_)),p.length))===x)_=s(p,_,d);else{if(y.push(p.slice(x,_)),y.length===b)return y;for(var N=1;N<=k.length-1;N++)if(y.push(k[N]),y.length===b)return y;_=x=S}}return y.push(p.slice(x)),y}]}))},"37f9":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",{attrs:{id:"index"}},[a("vue-office-header",{ref:"headerMenu",attrs:{"project-name":t.projectName},on:{collapseTag:t.collapseTag,toRouterView:t.toRouterView}}),a("div",{staticClass:"content",attrs:{id:"content"}},[a("div",{staticClass:"content-body border-box",staticStyle:{"min-height":"calc(100vh - 46px)"}},[a("div",{staticClass:"index-body flex flex-row"},[a("div",{staticClass:"index-body-left"},[a("div",{staticClass:"index-body-left_top border-box"},[t._m(0),a("ul",t._l(t.purchaseApp,(function(e,n){return a("li",{key:n+"app",staticClass:"border-box",on:{click:function(a){return t.toAppView(e)}}},[a("div",{staticClass:"app-li-cell border-box flex"},[a("div",{staticClass:"app-cell-left"},[a("img",{attrs:{src:e.applicationUrl,alt:"img"}})]),a("div",{staticClass:"app-cell-right flex flex-column flex-align-center flex-pack-center"},[a("div",{staticClass:"app-name font-14 color-303133"},[t._v(t._s(e.applicationName))]),e.applicationPath?t._e():a("div",{staticClass:"app-info"},[a("span",{staticClass:"font-14 color-909399"},[t._v("里面为空~")])])]),a("div",{staticClass:"app-cell-arrow"},[a("el-dropdown",{staticClass:"app-cell-dropdown",attrs:{trigger:"hover"}},[a("span",{staticClass:"el-dropdown-link"},[a("i",{staticClass:"el-icon-more el-icon--right",staticStyle:{cursor:"pointer"}})]),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[a("el-dropdown-item",{staticClass:"p-0"},[a("span",{on:{click:function(a){return a.stopPropagation(),t.changeSwitch(e)}}},[t._v(t._s(1==e.openFlag?"停用":"启用"))])])],1)],1)],1)])])})),0)]),t.noPurchaseApp.length?a("div",{staticClass:"bg-space"}):t._e(),a("div",{class:["index-body-left_bottom border-box",t.noPurchaseApp.length?"bottom-0":"bottom-9999"]},[a("div",{staticClass:"app-title font-16 color-303133"},[t._v("已停用")]),a("ul",t._l(t.noPurchaseApp,(function(e,n){return a("li",{key:n+"appno",staticClass:"border-box"},[a("div",{staticClass:"app-li-cell border-box flex"},[a("div",{staticClass:"app-cell-left"},[a("img",{attrs:{src:e.applicationUrl,alt:"img"}})]),a("div",{staticClass:"app-cell-right"},[a("div",{staticClass:"app-name stop-app-name font-14 color-303133"},[t._v(t._s(e.applicationName))]),a("div",{staticClass:"app-info stop-app-info"},[a("el-switch",{attrs:{"active-text":"","inactive-text":""},on:{change:function(a){return t.changeAppSwitch(a,e)}},model:{value:e.openFlag,callback:function(a){t.$set(e,"openFlag",a)},expression:"item.openFlag"}})],1)])])])})),0)])]),a("div",{staticClass:"index-body-right"},[a("div",{staticClass:"index-body-right_top border-box"},[a("div",{staticClass:"serve-info"},[a("div",{staticClass:"serve-date-info"},[a("div",{staticClass:"font-14 color-909399 p-t-10 m-b-13",staticStyle:{"font-weight":"300"}},[t._v(t._s(t._f("timeStampToYm")((new Date).getTime())))]),a("div",{staticClass:"font-12 color-909399"},[t._v("农历"+t._s(t.getLunarDay((new Date).getFullYear(),(new Date).getMonth()+1,(new Date).getDate())))]),a("div",{staticClass:"serve-date-day"},[a("div",{staticClass:"serve-date-day_inner "},[a("div",{staticClass:"color-fff font-26 p-t-10",staticStyle:{"letter-spacing":"2px"}},[t._v(t._s((new Date).getDate()))]),a("div",{staticClass:"color-fff font-12"},[t._v(t._s(t.weeks[(new Date).getDay()]))])])])]),a("div",{staticClass:"serve-version flex"},[a("span",{staticClass:"w-86 font-14 color-909399 text-left"},[t._v("企业")]),a("span",{staticClass:"font-14 color-303133"},[t._v(t._s(t.versionData.corpName))])]),a("div",{staticClass:"serve-date flex m-t-20"},[a("span",{staticClass:"w-86 font-14 color-909399 text-left"},[t._v("版本")]),a("span",{staticClass:"font-14 color-303133"},[t._v(t._s(t.versionData.smallVersion))])]),t._e()])]),a("div",{staticClass:"bg-margin-10"}),a("div",{staticClass:"index-body-right_bottom border-box"},[a("div",{staticClass:"help-title font-16 color-303133 font-w-600"},[t._v("帮助中心")]),a("ul",{staticClass:"help-list m-t-15"},[t._l(t.helpList,(function(e,n){return a("li",{key:n+"help",staticClass:"cursor-pointer font-14 color-606266",on:{click:function(a){return t.toRedirect(e)}}},[t._v("\n "+t._s(e.helpTitle)+"\n ")])})),a("li",{staticClass:"text-center li-more cursor-pointer",on:{click:t.goUdesk}},[t._v("查看更多")])],2)])])])])])],1)},o=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"app-title font-16 color-303133 flex flex-space-between"},[a("span",{staticClass:"font-16 color-303133 font-w-600 line-h-32 color-primary"},[t._v("已使用")])])}],i=(a("96cf"),a("1da1")),s=a("f777"),r=a("5b4e"),c={name:"IndexPage",components:{vueOfficeHeader:s["a"]},data:function(){return{checkShow:!0,tipText:"请先完成商户初始化设置后,再进行其他操作",projectName:"haoban-manage-web",collapseFlag:!1,showCustomDialog:!1,customType:"",customTitle:"",wxEnterpriseId:localStorage.getItem("haoBanUser")?JSON.parse(localStorage.getItem("haoBanUser")).wxEnterpriseId:"",purchaseApp:[],weeks:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],noPurchaseApp:[],versionData:{id:1,smallVersion:"",corpName:"",date:(new Date).getTime(),storeNum:100,storeTotal:""},helpList:[]}},mounted:function(){var t=Object(i["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.toLogin();case 3:e.wxEnterpriseId=t.sent;case 4:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),methods:{goUdesk:function(){window.open("https://demogic.udesk.cn/hc/categories/96671?api_name=")},getLunarDay:function(t,e,a){var n=[0,31,59,90,120,151,181,212,243,273,304,334],o="一二三四五六七八九十",i="正二三四五六七八九十冬腊",s=[2635,333387,1701,1748,267701,694,2391,133423,1175,396438,3402,3749,331177,1453,694,201326,2350,465197,3221,3402,400202,2901,1386,267611,605,2349,137515,2709,464533,1738,2901,330421,1242,2651,199255,1323,529706,3733,1706,398762,2741,1206,267438,2647,1318,204070,3477,461653,1386,2413,330077,1197,2637,268877,3365,531109,2900,2922,398042,2395,1179,267415,2635,661067,1701,1748,398772,2742,2391,330031,1175,1611,200010,3749,527717,1452,2742,332397,2350,3222,268949,3402,3493,133973,1386,464219,605,2349,334123,2709,2890,267946,2773,592565,1210,2651,395863,1323,2707,265877];if(!(t<1921||t>2100)){e=parseInt(e)>0?e-1:11;var r,c,l,u,f,p,h=[t,e,a],d=3!==h.length?new Date:new Date(h[0],h[1],h[2]),m=!1,g=d.getFullYear();for(r=365*(g-1921)+Math.floor((g-1921)/4)+n[d.getMonth()]+d.getDate()-38,g%4===0&&d.getMonth()>1&&r++,c=0;;c++){for(u=s[c]<4095?11:12,l=u;l>=0;l--){if(r<=this.getBit(s[c],l)){m=!0;break}r-=this.getBit(s[c],l)}if(m)break}f=u-l+1,p=r,12===u&&(f===Math.floor(s[c]/65536)+1&&(f=1-f),f>Math.floor(s[c]/65536)+1&&f--);var v=o.charAt(p-1);return p%10===0&&10!==p||(v=o.charAt((p-1)%10)),1===p?i.charAt(f-1)+"月初一":i.charAt(f-1)+"月"+(p<11?"初":p<20?"十":p<30?"廿":"三十")+v}},getBit:function(t,e){return 29+(t>>e&1)},toRedirect:function(t){if(!t.helpUrl)return!1;window.open(t.helpUrl)},changeRoute:function(t){this.$router.push(t)},toOverStore:function(){var t=this;t.changeRoute("/overStoreList")},toAppView:function(t){var e=this;if(!t.applicationPath)return r["a"].showmsg("无更多设置项,不可进入!","warning"),!1;e.changeRoute("".concat(t.applicationPath))},goShopping:function(){var t=this;t.changeRoute("/")},toRouterView:function(t){var e=this;e.$router.push({path:t.path})},changeSwitch:function(t){var e=this,a=1==t.openFlag?"关闭":"开启";e.$confirm("确认".concat(a,"【").concat(t.applicationName,"】应用吗?"),"提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){e.postSwitch(t)})).catch((function(){t.openFlag}))},collapseTag:function(t){var e=this;e.collapseFlag=t},toAlert:function(){var t=this;t.$confirm("您所在企业尚未订购好办 ,请前往升级版本后继续使用。","提示",{confirmButtonText:"立即前往订购",cancelButtonText:"取消",type:"warning"}).then((function(){window.open("")}))},toTip:function(){var t=this;t.$confirm("您没有该功能的使用权限,请联系管理员授权后继续使用。","提示",{confirmButtonText:"知道了",type:"warning"}).then((function(){window.open("")}))}}},l=c,u=(a("a45c"),a("2877")),f=Object(u["a"])(l,n,o,!1,null,"82ae9e10",null);e["default"]=f.exports},"54d2":function(t,e,a){},5937:function(t,e,a){"use strict";var n=a("71f6"),o={getRoleMenu:"/list-staff-role-menu"};o=Object(n["a"])(o,"/hb-manage-web"),e["a"]=o},"5b4e":function(t,e,a){"use strict";var n=a("5c96");e["a"]={showmsg:function(t,e){Object(n["Message"])({duration:1e3,message:t||"接口异常",type:e})}}},"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 o}));a("ac6a"),a("456d");var n=a("b775");function o(t,e){t=t||{};var a=Object.keys(t);return a.forEach((function(a){var o=t[a];"string"===typeof o&&(o={url:o}),o.url="".concat(e).concat(o.url),t[a]=function(t){return Object(n["a"])(o,t)}})),t}},"7ded":function(t,e,a){"use strict";var n=a("71f6"),o={getLoginQrcode:"/get-login-qrcode",getUserInfo:"/get-login-user",loginOut:{url:"/login-out",method:"post",useFormData:!0}};o=Object(n["a"])(o,"/hb-manage-web/auth"),e["a"]=o},a45c:function(t,e,a){"use strict";var n=a("54d2"),o=a.n(n);o.a},cc0d:function(t,e,a){"use strict";var n=a("ed94"),o=a.n(n);o.a},ed94:function(t,e,a){},f777:function(t,e,a){"use strict";var n=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"nav-header"},[n("div",{staticClass:"nav-header-logo fl cursor-pointer",on:{click:t.toIndex}},[n("span",{staticClass:"pro-name"},[t._v("好办管理平台")])]),n("div",{staticClass:"nav-header-item fl"},[t._l(t.menuHead,(function(e,a){return[n("a",{key:a,class:["item-link menu-font-16"],on:{click:function(a){return t.changeRouter(e)}}},[n("span",{class:["inline-block bottom",-1!=e.menuUrl.indexOf(t.pathName)?"current-module":""]},[t._v(t._s(e.menuName))])])]})),n("div",{staticClass:"navuser-info fr"},[t.userInfo.headImg?n("img",{staticClass:"user-img",attrs:{src:t.userInfo.headImg,alt:""}}):n("img",{staticClass:"user-img",attrs:{src:a("6ce2"),alt:"img"}}),n("el-popover",{staticStyle:{"min-width":"95px"},attrs:{placement:"bottom",title:"",width:"95",trigger:"hover","popper-class":"user-header-pop"}},[n("ul",{staticClass:"navsuer-wrap"},[n("li",[n("p",{staticClass:"font-14 color-606266 hide-item"},[t._v(t._s(t.userInfo.staffName||"--"))]),n("p",{staticClass:"font-12 color-909399 hide-item"},[t._v(t._s(t.userInfo.roleName||"--"))])]),n("li",{staticClass:"user-item text-align",on:{click:function(e){return e.stopPropagation(),t.toLoginOut(e)}}},[n("a",{staticClass:"user-text"},[t._v("退出登录")])])]),n("a",{staticClass:"nav-user-name",attrs:{slot:"reference"},slot:"reference"},[n("span",{staticClass:"font-12 color-606266"},[t._v(t._s(t.userInfo.staffName||"--"))]),n("i",{staticClass:"iconfont iconxiala arrowico color-c0c4cc"})])])],1)],2)])},o=[],i=(a("456d"),a("96cf"),a("1da1")),s=(a("ac6a"),a("28a5"),a("7ded")),r=a("5937"),c=r["a"].getRoleMenu,l=s["a"].getUserInfo,u=s["a"].loginOut,f={name:"VueOfficeHeader",components:{},data:function(){return{checkShow:!0,tipText:"请先完成商户初始化设置后,再进行其他操作",repProjectName:"haoban-manage-web",pathName:"",isCollapse:!1,menuHead:[],roleMenuData:[],routePathName:"",userInfo:{staffName:"",nationCode:"",phoneNumber:"",headImg:"",wxEnterpriseId:"",roleName:""}}},mounted:function(){var t=this;t.pathName=t.$route.path,t.routePathName=window.location.hash.split("/")[1],-1!=t.routePathName.indexOf("?")&&(t.routePathName=t.routePathName.split("?")[0]),-1!=t.routePathName.indexOf("/")&&(t.routePathName=t.routePathName.split("/")[0]),localStorage.removeItem("haoBanUser"),t.toLogin()},methods:{toIndex:function(){var t=this;t.$router.push("/contactsList")},changeRouter:function(t){var e=this;if(1==t.target)-1!=t.menuUrl.indexOf("http")?window.open(t.menuUrl):window.open("/haoban-4/#".concat(t.menuUrl));else{e.setleftData(t);var a={};e.roleMenuData.forEach((function(e){t.menuCode!=e.menuCode||e.children.length||(a=e),t.menuCode==e.menuCode&&e.children.length&&(a=e.children[0])})),e.$router.push(a.menuUrl)}},setleftData:function(t){var e=this,a=[];e.roleMenuData.forEach((function(e){t.menuCode==e.menuCode&&a.push(e)})),e.$emit("leftData",a)},toLoginOut:function(){var t=this;t.$confirm("确认退出吗?","提示",{type:"warning"}).then((function(){u({}).then((function(e){"0000"==e.code&&(t.$message({message:"退出成功",type:"success"}),localStorage.removeItem("haoBanUser"),window.location.href=window.location.origin+"/haoban-4/#/login")})).catch((function(t){}))})).catch((function(){}))},toRouter:function(t,e,a){var n=this,o={path:"/"+t,name:e};n.$emit("toRouterView",o)},toLogin:function(){var t=this;l({}).then((function(e){e.result||(e.result={loginStaff:{staffName:"",nationCode:"",phoneNumber:"",headImg:"",wxEnterpriseId:""},role:{roleName:""}}),localStorage.setItem("haoBanUser",JSON.stringify(e.result.loginStaff)),t.userInfo=Object.assign(e.result.loginStaff,e.result.role),t.getData()})).catch((function(t){}))},treeData:function(t){var e=t.filter((function(e){var a=t.filter((function(t){return e.menuCode==t.parentCode&&1==t.isShow}));return a.length>0?(e.hasSonNode=!0,e.children=a):(e.children=[],e.hasSonNode=!1),""==e.parentCode&&1==e.isShow}));return e},getData:function(){var t=this,e={};c(e).then(function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(a){var n,o,i,s;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if("0000"!=a.code){e.next=14;break}return n=[],o={},i={},a.result.forEach((function(e){1==e.level&&1==e.isShow&&n.push(e),t.$route.path==e.menuUrl&&1==e.level&&1==e.isShow&&(o=e),t.$route.path==e.menuUrl&&1!=e.level&&(i=e)})),t.menuHead=n,e.next=8,t.treeData(JSON.parse(JSON.stringify(a.result)));case 8:t.roleMenuData=e.sent,Object.keys(i).length&&2==i.level&&a.result.forEach((function(t){i.parentCode==t.menuCode&&1==t.level&&1==t.isShow&&(o=t)})),s={},Object.keys(i).length&&3==i.level&&a.result.forEach((function(t){i.parentCode==t.menuCode&&2==t.level&&1==t.isShow&&(s=t)})),Object.keys(s).length&&2==s.level&&a.result.forEach((function(t){s.parentCode==t.menuCode&&1==t.level&&1==t.isShow&&(o=t)})),t.setleftData(o);case 14:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(t){}))}}},p=f,h=(a("cc0d"),a("2877")),d=Object(h["a"])(p,n,o,!1,null,"2a4f88b9",null);e["a"]=d.exports}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-4711c0fb"],{"150f":function(t,e,n){},"28a5":function(t,e,n){"use strict";var a=n("aae3"),i=n("cb7c"),o=n("ebd6"),r=n("0390"),c=n("9def"),l=n("5f1b"),s=n("520a"),u=n("79e5"),d=Math.min,f=[].push,p="split",m="length",h="lastIndex",v=4294967295,b=!u((function(){RegExp(v,"y")}));n("214f")("split",2,(function(t,e,n,u){var w;return w="c"=="abbc"[p](/(b)*/)[1]||4!="test"[p](/(?:)/,-1)[m]||2!="ab"[p](/(?:ab)*/)[m]||4!="."[p](/(.?)(.?)/)[m]||"."[p](/()()/)[m]>1||""[p](/.?/)[m]?function(t,e){var i=String(this);if(void 0===t&&0===e)return[];if(!a(t))return n.call(i,t,e);var o,r,c,l=[],u=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),d=0,p=void 0===e?v:e>>>0,b=new RegExp(t.source,u+"g");while(o=s.call(b,i)){if(r=b[h],r>d&&(l.push(i.slice(d,o.index)),o[m]>1&&o.index<i[m]&&f.apply(l,o.slice(1)),c=o[0][m],d=r,l[m]>=p))break;b[h]===o.index&&b[h]++}return d===i[m]?!c&&b.test("")||l.push(""):l.push(i.slice(d)),l[m]>p?l.slice(0,p):l}:"0"[p](void 0,0)[m]?function(t,e){return void 0===t&&0===e?[]:n.call(this,t,e)}:n,[function(n,a){var i=t(this),o=void 0==n?void 0:n[e];return void 0!==o?o.call(n,i,a):w.call(String(i),n,a)},function(t,e){var a=u(w,t,this,e,w!==n);if(a.done)return a.value;var s=i(t),f=String(this),p=o(s,RegExp),m=s.unicode,h=(s.ignoreCase?"i":"")+(s.multiline?"m":"")+(s.unicode?"u":"")+(b?"y":"g"),g=new p(b?s:"^(?:"+s.source+")",h),C=void 0===e?v:e>>>0;if(0===C)return[];if(0===f.length)return null===l(g,f)?[f]:[];var y=0,_=0,x=[];while(_<f.length){g.lastIndex=b?_:0;var D,S=l(g,b?f:f.slice(_));if(null===S||(D=d(c(g.lastIndex+(b?0:_)),f.length))===y)_=r(f,_,m);else{if(x.push(f.slice(y,_)),x.length===C)return x;for(var F=1;F<=S.length-1;F++)if(x.push(S[F]),x.length===C)return x;_=y=D}}return x.push(f.slice(y)),x}]}))},3081:function(t,e,n){"use strict";var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"common-alert-tip"},[n("div",{style:{"min-width":t.width}},[n("div",{staticClass:"el-alert el-alert--info flex flex-align-start",style:{width:t.width},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-13"},[t._v("\n "+t._s(t.tipContent)+"\n ")])])])])])},i=[],o={name:"CommonAlertTip",components:{},props:{width:{type:String,default:"645px"},tipContent:{type:String,default:""}},data:function(){return{}}},r=o,c=n("2877"),l=Object(c["a"])(r,a,i,!1,null,"3070d237",null);e["a"]=l.exports},c7d7:function(t,e,n){"use strict";n.r(e);var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"common-app-right"},[n("div",{staticClass:"crowd-scene-tip"},[n("common-alert-tip",{attrs:{width:"100%","tip-content":t.tipContent}})],1),n("div",{staticClass:"crowd-scene-search flex flex-space-between"},[n("div",[n("el-input",{staticClass:"w-264",staticStyle:{width:"217px"},attrs:{placeholder:"请输入人群名称",maxlength:"50","prefix-icon":"el-icon-search",clearable:""},on:{clear:t.clearInput},nativeOn:{keyup:function(e){return function(e){return t.toInput(e)}(e)}},model:{value:t.searchVal,callback:function(e){t.searchVal=e},expression:"searchVal"}}),n("el-select",{staticClass:"w-168 m-l-10",attrs:{placeholder:"所有分类"},on:{change:t.changeCondition},model:{value:t.classifyName,callback:function(e){t.classifyName=e},expression:"classifyName"}},[n("el-option",{attrs:{label:"所有分类",value:""}}),t._l(t.classifyList,(function(t){return n("el-option",{key:t,attrs:{label:t,value:t}})}))],2)],1),n("div",[n("el-button",{attrs:{type:"primary"},on:{click:t.toSync}},[t._v("同步场景人群")])],1)]),n("div",{staticClass:"crowd-scene-table flex"},[n("div",{staticClass:"crowd-scene-table_left"},[n("el-table",{ref:"memberCrowdData",staticStyle:{width:"100%"},attrs:{data:t.memberCrowdData}},[n("el-table-column",{attrs:{prop:"",label:"",width:"56","class-name":"move-row-cell"}},[[n("span",{staticClass:"font-22 iconfont icontuozhuaiopen color-c0c4cc",staticStyle:{cursor:"move"}})]],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.name||"--"))]}}])}),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.classifyName||"--"))]}}])}),n("el-table-column",{attrs:{prop:"",label:"到期时间"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("div",{staticClass:"line-18"},[t._v(t._s(t._f("timeStampToYmd")(e.row.effectiveDate))+" "+t._s(e.row.effectiveDate?e.row.effectiveDate:"--"))]),n("div",{staticClass:"line-18"},[t._v(t._s(t._f("timeStampToHms")(e.row.effectiveDate))+" "+t._s(e.row.effectiveDate?e.row.effectiveDate:"--"))])]}}])}),n("el-table-column",{scopedSlots:t._u([{key:"default",fn:function(e){return[n("i",{class:["icon-color","el-icon-upload2",0==e.$index?"disable":""],on:{click:function(n){return t.toTop(e.$index,e.row,t.memberCrowdData)}}}),n("i",{class:["icon-color","el-icon-back","icon-to-pre",0==e.$index?"disable":""],on:{click:function(n){return t.toPre(e.$index,e.row,t.memberCrowdData)}}}),n("i",{class:["icon-color","el-icon-back","icon-to-next",e.$index==t.memberCrowdData.length-1?"disable":""],on:{click:function(n){return t.toNext(e.$index,e.row,t.memberCrowdData)}}}),n("i",{class:["icon-color","el-icon-download",e.$index==t.memberCrowdData.length-1?"disable":""],on:{click:function(n){return t.toBottom(e.$index,e.row,t.memberCrowdData)}}})]}}])},[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:{label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("el-button",{attrs:{type:"text"},on:{click:function(n){return t.toEdit(e.$index,e.row)}}},[t._v("编辑可见范围")])]}}])})],1)],1)])])},i=[],o=n("3081"),r=n("d11a"),c=n("d157"),l=n("5b4e"),s=n("aa47"),u=r["a"].getGroupData,d=r["a"].getClassifyData,f=r["a"].postSortGroup,p={name:"CrowdScenePage",components:{commonAlertTip:o["a"]},props:{brandId:{type:String,default:""}},data:function(){return{tipContent:"GIC设置场景人群后,好办顾客人群列表最多同步20个人群,次日刷新,每日刷新一次;<br/> GIC中设置的场景人群到期后,好办移动端将不再展示该条人群;",searchVal:"",classifyName:"",classifyList:[],memberCrowdData:[],showSync:!1,showSelectStore:!1}},mounted:function(){var t=this;t.brandId&&t.getGroupList(),t.rowDrop("memberCrowdData")},methods:{toSync:function(){var t=this;t.showSync=!0},toEdit:function(t,e){var n=this;n.showSelectStore=!0},toInput:Object(c["a"])((function(){var t=this;t.currentPage=1,t.getGroupList()}),500),clearInput:function(){var t=this;t.currentPage=1,t.getGroupList()},changeCondition:function(){var t=this;t.currentPage=1,t.getGroupList()},rowDrop:function(t){var e=this.$refs[t].$el.querySelectorAll(".el-table__body-wrapper > table > tbody")[0],n=this;s["a"].create(e,{onEnd:function(e){var a=e.newIndex,i=e.oldIndex;if(a==i)return!1;var o=JSON.parse(JSON.stringify(n[t])),r=o.splice(i,1)[0];o.splice(a,0,r),n.setSort(o)}})},setSort:function(){var t=this,e={enterpriseId:t.brandId};f(e).then((function(e){t.getGroupList(),"0000"==e.code?l["a"].showmsg("操作成功","success"):l["a"].showmsg(e.message||"接口异常","warning")})).catch((function(t){}))},getGroupClassify:function(){var t=this,e={enterpriseId:t.brandId};d(e).then((function(e){t.classifyList=e.result||[]})).catch((function(t){}))},getGroupList:function(){var t=this,e={enterpriseId:t.brandId};u(e).then((function(e){t.memberCrowdData=e.result||[]})).catch((function(t){}))}},watch:{brandId:function(t){var e=this;t&&(e.getMemberCrad(),e.getServiceNum())}}},m=p,h=(n("ed71"),n("2877")),v=Object(h["a"])(m,a,i,!1,null,"497467c6",null);e["default"]=v.exports},d157:function(t,e,n){"use strict";n.d(e,"a",(function(){return a})),n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return o}));n("c5f6"),n("a481"),n("28a5"),n("6b54");function a(t,e){var n,a=e||200;return function(){var e=this,i=arguments;n&&clearTimeout(n),n=setTimeout((function(){n=null,t.apply(e,i)}),a)}}function i(t,e){var n,a,i=e||200;return function(){var e=this,o=arguments,r=+new Date;n&&r-n<i?(clearTimeout(a),a=setTimeout((function(){n=r,t.apply(e,o)}),i)):(n=r,t.apply(e,o))}}function o(t){return t=t.replace(/\uD83C[\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F]|[\uD800-\uDBFF]|[\uDC00-\uDFFF]|[^\u0020-\u007E\u00A0-\u00BE\u2E80-\uA4CF\uF900-\uFAFF\uFE30-\uFE4F\uFF00-\uFFEF\u0080-\u009F\u2000-\u201f\u2026\u2022\u20ac\r\n]/g,""),unescape(escape(t).replace(/\%uD.{3}/g,""))}},ed71:function(t,e,n){"use strict";var a=n("150f"),i=n.n(a);i.a}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-f157b4c8"],{"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},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},"402e":function(t,e,a){"use strict";var n=a("f363"),r=a.n(n);r.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"},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.brandName||"--"))])])])])]}}])}),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("402e"),a("2877")),p=Object(u["a"])(c,n,r,!1,null,"e06f66ac",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){return Object(n["a"])(r,t)}})),t}},"76d4":function(t,e,a){},f363:function(t,e,a){}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-4b3e5aec"],{"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},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},"402e":function(t,e,a){"use strict";var n=a("f363"),r=a.n(n);r.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"},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.brandName||"--"))])])])])]}}])}),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("402e"),a("2877")),p=Object(u["a"])(c,n,r,!1,null,"e06f66ac",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){return Object(n["a"])(r,t)}})),t}},"76d4":function(t,e,a){},f363:function(t,e,a){}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-56f22583","chunk-23d376bc"],{"0fd6":function(e,t,r){"use strict";var n=r("cf90"),a=r.n(n);a.a},"29b6":function(e,t,r){"use strict";var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"nav-wrap border-box"},[r("el-breadcrumb",{attrs:{"separator-class":"el-icon-arrow-right"}},[e._l(e.navpath,(function(t,n){return[t.path?[r("el-breadcrumb-item",{key:"nav"+n,attrs:{to:{path:t.path}},on:{click:function(r){return e.changeRoute(t.path,t.relocation)}}},[r("span",{staticClass:"el-breadcrumb__inner is-link",on:{click:function(r){return e.changeRoute(t.path,t.relocation)}}},[e._v("\n "+e._s(t.name)+"\n ")])])]:[r("el-breadcrumb-item",{key:"nav"+n},[e._v(e._s(t.name))])]]}))],2)],1)},a=[],i={name:"NavPath",props:{navpath:{type:Array,default:function(){return[]}}},data:function(){return{projectName:"member"}},methods:{changeRoute:function(e,t){var r=this;t?window.location.href=e:r.$router.push(e)}}},o=i,s=(r("6b4b"),r("2877")),c=Object(s["a"])(o,n,a,!1,null,"2c2a2724",null);t["a"]=c.exports},"6b4b":function(e,t,r){"use strict";var n=r("76d4"),a=r.n(n);a.a},7133:function(e,t,r){"use strict";var n=r("a0b2"),a=r.n(n);a.a},"71f6":function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));r("ac6a"),r("456d");var n=r("b775");function a(e,t){e=e||{};var r=Object.keys(e);return r.forEach((function(r){var a=e[r];"string"===typeof a&&(a={url:a}),a.url="".concat(t).concat(a.url),e[r]=function(e){return Object(n["a"])(a,e)}})),e}},"76d4":function(e,t,r){},a088:function(e,t,r){"use strict";r.r(t);var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"menu-tree"},[r("ul",{staticClass:"first-menu"},[0==e.menuList.length?r("li",{staticClass:"no-data"},[e._v("暂无数据")]):e._e(),e._l(e.menuList,(function(t){return r("li",{key:t.menuId,class:["first-menu-item",{active:t.menuId==e.activeMenuId}],on:{click:function(r){return e.onMenuChange(t)}}},[e._v("\n "+e._s(t.menuName)+"\n ")])}))],2),r("div",{staticClass:"all-menu"},[r("el-tree",{ref:"menuList",attrs:{data:e.treeData,"show-checkbox":"","default-expand-all":"","node-key":"menuId","expand-on-click-node":!1,"check-on-click-node":!0,props:{label:"menuName"},"default-checked-keys":e.checkedId[e.activeMenuId]},on:{"node-click":e.onNodeClick,check:e.onNodeClick}})],1)])},a=[],i=(r("ac6a"),{name:"MenuTree",props:{menuList:Array,checkedId:Object},data:function(){return{activeMenuId:"",treeData:[]}},methods:{onMenuChange:function(e){this.activeMenuId=e?e.menuId:"",this.treeData=e?[e]:[]},onNodeClick:function(){this.onChange(this.$refs.menuList.getCheckedKeys())},getAllMenuId:function(e){var t=this,r=[];return e.forEach((function(e){r.push(e.menuId),Array.isArray(e.children)&&(r=r.concat(t.getAllMenuId(e.children)))})),r},onChange:function(e){var t={};t[this.activeMenuId]=e,this.$emit("change",Object.assign({},this.checkedId,t))}},watch:{checkedId:{deep:!0,handler:function(e){this.$refs.menuList.setCheckedKeys(e[this.activeMenuId]||[])}},menuList:{immediate:!0,handler:function(e){this.onMenuChange(e[0])}}}}),o=i,s=(r("0fd6"),r("2877")),c=Object(s["a"])(o,n,a,!1,null,"6d51b677",null);t["default"]=c.exports},a0b2:function(e,t,r){},a960:function(e,t,r){"use strict";r.r(t);var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticStyle:{height:"100%"}},[r("nav-crumb",{attrs:{navpath:e.bread}}),r("div",{staticClass:"edit-role"},[r("el-alert",{staticStyle:{width:"572px"},attrs:{type:"info",title:"拥有门店的权限,能进行一些门店日常业务,如打标签,完成话务等。必须是导购账号",closable:!1,"show-icon":""}}),r("el-form",{ref:"roleData",staticStyle:{"margin-top":"30px"},attrs:{model:e.roleData,rules:e.roleDataRule,"label-width":"135px"}},[r("el-form-item",{attrs:{label:"角色名称",prop:"roleName"}},[r("el-input",{staticStyle:{width:"510px"},attrs:{value:e.roleData.roleName,disabled:""}})],1),r("el-form-item",{attrs:{label:"应用小程序权限",prop:"menuIds"}},[r("el-radio-group",{staticClass:"specter",attrs:{size:"small"},model:{value:e.activeType,callback:function(t){e.activeType=t},expression:"activeType"}},e._l(e.tabList,(function(t){return r("el-radio-button",{key:t.appType,attrs:{label:t.appType}},[e._v(e._s(t.label))])})),1),r("menu-tree",{staticStyle:{"margin-top":"12px"},attrs:{"menu-list":e.getActiveMenuList(),"checked-id":e.getActiveCheckId()},on:{change:e.onCheckedChange}})],1),r("el-form-item",{attrs:{label:"资源范围",prop:"resourceCode"}},[r("div",{staticClass:"resource-list"},e._l(e.resourceList,(function(t){return r("div",{key:t.appId,staticClass:"resource-item"},[r("p",{staticClass:"app-name"},[e._v(e._s(t.appName))]),r("el-radio-group",{model:{value:e.roleData.resourceCode[t.appId],callback:function(r){e.$set(e.roleData.resourceCode,t.appId,r)},expression:"roleData.resourceCode[el.appId]"}},e._l(t.resourceList,(function(t){return r("el-radio",{key:t.resourceCode,attrs:{label:t.resourceCode}},[e._v(e._s(t.resourceName))])})),1)],1)})),0)]),r("el-form-item",{staticStyle:{"margin-top":"50px"}},[r("el-button",{attrs:{type:"primary",loading:e.loading},on:{click:e.onSave}},[e._v("保存")])],1)],1)],1)],1)},a=[],i=(r("28a5"),r("5df3"),r("ac6a"),r("96cf"),r("1da1")),o=r("29b6"),s=r("a088"),c=r("f286"),u=c["a"].resourceList,l=c["a"].menuList,d=c["a"].editRole,p=c["a"].roleDetail,h={name:"EditStoreRole",components:{navCrumb:o["a"],MenuTree:s["default"]},data:function(){var e=function(e,t,r){Array.isArray(t)&&0!=t.length&&!t.every((function(e){return 0==e.menuIds.length}))||r(new Error("请至少选择一个权限菜单")),r()};return{bread:[{path:"/store-admin-list",name:"门店角色"},{name:"编辑门店角色"}],loading:!1,wxEnterpriseId:"",roleData:{roleId:"",roleName:"",menuIds:[],resourceCode:{}},roleDataRule:{roleName:[{required:!0}],menuIds:[{required:!0,validator:e,trigger:"change"}],resourceCode:[{required:!0,message:"",trigger:"change"}]},activeType:3,tabList:[{label:"好办小程序",appType:3,menuList:[],checkedId:{}},{label:"小程序应用",appType:4,menuList:[],checkedId:{}}],resourceList:[]}},created:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){var t,r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t=this.$route.query.roleId,t){e.next=3;break}return e.abrupt("return",this.$router.go(-1));case 3:return r=JSON.parse(localStorage.getItem("haoBanUser")||"{}"),this.wxEnterpriseId=r.wxEnterpriseId,this.$emit("showAsideMenu",!1),e.next=8,this.initData();case 8:this.getRoleDetail(t);case 9:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),methods:{initData:function(){var e=this,t={wxEnterpriseId:this.wxEnterpriseId},r=[];return this.tabList.forEach((function(n){r.push(l(Object.assign({},t,{appType:n.appType,roleType:2})).then((function(t){n.menuList=e.flatDataToTree(t.result||[]),n.menuList.forEach((function(t){e.$set(n.checkedId,t.menuId,[])}))})))})),r.push(u().then((function(t){e.resourceList=t.result||[],e.resourceList.forEach((function(t){e.$set(e.roleData.resourceCode,t.appId,"")}))}))),Promise.all(r)},getRoleDetail:function(e){var t=this;function r(e,t){var n=[];return e.forEach((function(e){t.some((function(t){return t==e.menuId}))&&n.push(e.menuId),Array.isArray(e.children)&&(n=n.concat(r(e.children,t)))})),n}p({roleId:e}).then((function(e){var n=e.result||{},a=n.roleId,i=n.roleName,o=n.menuIds,s=n.resourceCode;o="string"==typeof o?o.split(","):[],Object.assign(t.roleData,{roleId:a,roleName:i}),t.tabList.forEach((function(e){var n=[];e.menuList.forEach((function(t){e.checkedId[t.menuId]=r([t],o),n=n.concat(e.checkedId[t.menuId])})),t.roleData.menuIds.push({appType:e.appType,menuIds:n})})),"string"==typeof s&&s.length>0&&s.split(",").forEach((function(e){t.resourceList.some((function(r){var n=r.resourceList.some((function(t){return t.resourceCode==e}));return n&&(t.roleData.resourceCode[r.appId]=e),n}))}))}))},getActiveMenuList:function(){var e=this,t=this.tabList.filter((function(t){return t.appType==e.activeType}));return t[0].menuList},getActiveCheckId:function(){var e=this,t=this.tabList.filter((function(t){return t.appType==e.activeType}));return t[0].checkedId},flatDataToTree:function(e){return e.filter((function(t){var r=e.filter((function(e){return e.parentCode==t.menuCode}));return r.length>0&&(t.children=r),""==t.parentCode}))},onCheckedChange:function(e){var t=this,r=[];for(var n in e)r=r.concat(e[n]);this.tabList=this.tabList.map((function(r){return r.appType==t.activeType&&(r.checkedId=e),r})),this.roleData.menuIds.some((function(e){return e.appType==t.activeType}))?this.roleData.menuIds.forEach((function(e){e.appType==t.activeType&&(e.menuIds=r)})):this.roleData.menuIds.push({appType:this.activeType,menuIds:r})},onSave:function(){var e=this;this.$refs.roleData.validate((function(t){if(t){var r=e.roleData,n=r.roleId,a=r.roleName,i=r.menuIds,o=r.resourceCode,s={roleId:n,roleName:a,menuIds:JSON.stringify(i),wxEnterpriseId:e.wxEnterpriseId,resourceCode:[]};for(var c in o)s.resourceCode.push(o[c]);s.resourceCode=s.resourceCode.join(","),e.loading=!0,d(s).then((function(t){"0000"==t.code&&(e.$message.success("保存成功!"),e.$router.go(-1))})).finally((function(){return e.loading=!1}))}}))}}},f=h,m=(r("7133"),r("2877")),v=Object(m["a"])(f,n,a,!1,null,"f83874f4",null);t["default"]=v.exports},cf90:function(e,t,r){},f286:function(e,t,r){"use strict";var n=r("71f6"),a={addRole:{url:"/add-role",method:"post",useFormData:!0},delRole:"/role-del",editRole:{url:"/role-edit",method:"post",useFormData:!0},roleDetail:"/role-detail",roleList:"/role-list",menuList:"/menu-list",roleAdminList:"/role-admin-list",delAdmin:"/admin-del",enterpriseList:"/auth-enterprise-list",resourceList:"/resource-list"};t["a"]=Object(n["a"])(a,"/hb-manage-web")}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-5c427045"],{"12eb":function(e,t,a){"use strict";a.r(t);var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-detail-wrap"},[a("div",{staticClass:"border-box"},[a("div",{staticClass:"list-body flex"},[a("div",{staticClass:"list-left border-box"},[e.gicData.length?a("org-tree",{attrs:{"brand-id":e.brandId,"depart-obj":e.departObj,"item-data":e.gicData},on:{getSelectData:e.getSelectData}}):e._e()],1),a("div",{staticClass:"list-right p-20 border-box"},[e.showMember?e._e():a("store-list",{attrs:{"brand-id":e.brandId,"depart-obj":e.departObj},on:{getStore:e.getStore}}),e.showMember?a("div",{staticClass:"list-right-body"},[a("div",{staticClass:"el-breadcrumb m-b-20",attrs:{role:"navigation"}},e._l(e.navData,(function(t,r){return a("span",{key:r+"nav",staticClass:"el-breadcrumb__item"},[a("span",{staticClass:"el-breadcrumb__inner is-link",attrs:{role:"link"},on:{click:function(a){return e.changeDepart(t,r)}}},[a("span",{staticClass:"el-breadcrumb__inner is-link font-14 color-606266"},[e._v("\n "+e._s(r==e.navData.length-1?t.storeName:t.storeGroupName)+"\n ")])]),r!=e.navData.length-1?a("i",{staticClass:"el-breadcrumb__separator el-icon-arrow-right"}):e._e()])})),0),a("div",{staticClass:"table-top flex flex-space-between"},[a("div",[a("el-select",{staticClass:"w-168",attrs:{placeholder:""},on:{change:e.changeCondition},model:{value:e.clerkId,callback:function(t){e.clerkId=t},expression:"clerkId"}},[a("el-option",{attrs:{label:"全部",value:"0"}}),a("el-option",{attrs:{label:"无归属",value:"-1"}}),e._l(e.clerkOptions,(function(e){return a("el-option",{key:e.clerkId,attrs:{label:e.clerkName,value:e.clerkId}})}))],2),a("el-input",{staticClass:"w-264 m-l-10",staticStyle:{width:"264px"},attrs:{placeholder:"请输入会员姓名/手机号/卡号",maxlength:"50","prefix-icon":"el-icon-search",clearable:""},on:{clear:e.clearSearch},nativeOn:{keyup:function(t){return function(t){return e.toInput(t,e.searchInput)}(t)}},model:{value:e.searchInput,callback:function(t){e.searchInput=t},expression:"searchInput"}})],1),a("el-button",{attrs:{type:"primary"},on:{click:e.toAssign}},[e._v("批量分配会员")])],1),a("div",{staticClass:"table-body m-t-20"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"multipleTable",staticClass:"select-table",style:{width:"100%"},attrs:{data:e.tableData,"tooltip-effect":"dark"},on:{"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"45"}}),a("el-table-column",{attrs:{width:"25"}},[a("template",{slot:"header"},[a("el-dropdown",{staticStyle:{"line-height":"10px",padding:"0","margin-left":"-15px",transform:"translateY(4px)","-webkit-transform":"translateY(4px)"},attrs:{placement:"bottom-start"},on:{command:e.handleCommand}},[a("span",{staticClass:"el-dropdown-link"},[a("i",{staticClass:"iconfont icongengduo"})]),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[a("el-dropdown-item",{attrs:{command:"0"}},[a("span",{style:{color:0==e.selectRadio?"#2f54eb":"#606266"}},[e._v("选择当页")])]),a("el-dropdown-item",{attrs:{command:"1"}},[a("span",{style:{color:1==e.selectRadio?"#2f54eb":"#606266"}},[e._v("选择全部")])])],1)],1)],1)],2),a("el-table-column",{attrs:{label:"会员姓名",width:"120","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.memberName||"--"))]}}],null,!1,2135582826)}),a("el-table-column",{attrs:{prop:"",label:"会员等级"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.gradeName||"--"))]}}],null,!1,1053758223)}),a("el-table-column",{attrs:{prop:"",label:"消费总额","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.costFee)+" "+e._s(null==t.row.costFee&&0!=t.row.costFee?"--":""))]}}],null,!1,901209103)}),a("el-table-column",{attrs:{prop:"",label:"最近消费时间","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e._f("timeStampToYmd")(t.row.lastCostTime))+" "+e._s(t.row.lastCostTime?"":"--")+"\n ")]}}],null,!1,3951024360)}),a("el-table-column",{attrs:{prop:"",label:"生日","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.birthday||"--"))]}}],null,!1,2892294244)}),a("el-table-column",{attrs:{prop:"",label:"所属导购","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.clerkName||"--")+"\n ")]}}],null,!1,114437033)}),a("el-table-column",{attrs:{label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.toAssignMember(t.$index,t.row)}}},[e._v("分配")])]}}],null,!1,1410739074)})],1),0!=e.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("dm-pagination",{attrs:{background:"","current-page":e.currentPage,"page-sizes":[20,40,60,80],"page-size":e.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1):e._e()],1)]):e._e()],1)])]),e.assignShow?a("customer-assign",{attrs:{"brand-id":e.brandId,"clerk-id":e.clerkId,"search-params":e.searchInput,"edit-row":e.editRow,"choose-all":e.selectRadio,"depart-obj":e.storeObj,"multiple-data":e.multipleSelection},on:{closeText:e.closeText,submitText:e.submitText}}):e._e()],1)},n=[],s=(a("ac6a"),a("96cf"),a("1da1")),o=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("ul",{class:["gic-tree-body"]},e._l(e.itemData,(function(t,r){return a("li",{key:r+"gic"},[a("div",{class:["li-cell cursor-pointer",e.departObj.storeGroupId==t.storeGroupId?"li-cell-active":""]},[a("div",{class:["li-cell-inner border-box cursor-pointer"],style:{"margin-left":20*(t.groupLevel+1)+"px"},on:{click:function(a){return e.toggleExpand(t)}}},[a("span",{class:["font-12 color-606266",1!=t.isStore&&t.hasSonNode?"":"color-fff",t.expand?"el-icon-caret-bottom":"el-icon-caret-right"]}),t.loading?a("span",{staticClass:"el-tree-node__loading-icon el-icon-loading"}):e._e(),a("span",{staticClass:"font-14 color-606266 p-l-10"},[e._v(e._s(t.label))])])]),a("li-row",{directives:[{name:"show",rawName:"v-show",value:!!t.children.length&&t.expand,expression:"!!item.children.length && item.expand"}],attrs:{"depart-obj":e.departObj,"item-obj":t,"item-data":t.children},on:{getSelectData:e.getSelectData}})],1)})),0)},i=[],l={name:"LiRow",props:{brandId:{type:String,default:function(){return""}},itemData:{type:[Object,Array],default:function(){return[]}},itemObj:{type:[Object,Array],default:function(){return[]}},departObj:{type:Object,default:function(){return{departmentId:"",departmentName:"",wxDepartmentId:"",parentId:"",isStore:"",staffCount:"",bindFlag:"",loading:!1}}}},data:function(){return{}},beforeDestroy:function(){this.tempArr=[]},methods:{getSelectData:function(e){var t=this;t.selectData=e,t.$emit("getSelectData",e)},toggleExpand:function(){var e=Object(s["a"])(regeneratorRuntime.mark((function e(t){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:a=this,t.expand=!t.expand,a.$emit("getSelectData",t);case 3:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()}},c=l,u=(a("9b5b"),a("2877")),d=Object(u["a"])(c,o,i,!1,null,"7b68bb10",null),p=d.exports,f=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{attrs:{title:"批量分配会员",visible:e.dialogVisible,width:"600px","before-close":e.handleClose},on:{"update:visible":function(t){e.dialogVisible=t}}},[a("div",{staticClass:"assign-table"},[a("div",{staticClass:"check-all border-box flex flex-space-between"},[a("div",{staticClass:"font-14 color-606266"},[a("el-checkbox",{attrs:{disabled:e.clerkOptions.length>e.assignPeople||e.unbindFlag,indeterminate:e.isIndeterminate},on:{change:e.handleCheckAllChange},model:{value:e.checkAll,callback:function(t){e.checkAll=t},expression:"checkAll"}},[e._v("全选")])],1),a("div",{staticClass:"font-14 color-606266"},[a("el-checkbox",{on:{change:e.changeHand},model:{value:e.checked,callback:function(t){e.checked=t},expression:"checked"}},[e._v("手动分配")]),a("span",{staticClass:"span-line"}),a("span",[e._v("可分配会员 "),a("span",{staticClass:"color-303133"},[e._v(e._s(e.assignPeople))]),e._v(" 人")])],1)]),a("div",[a("ul",{staticClass:"clerk-list-ul"},[a("el-checkbox-group",{on:{change:e.handleCheckedChange},model:{value:e.checkedClerks,callback:function(t){e.checkedClerks=t},expression:"checkedClerks"}},[e._l(e.clerkOptions,(function(t,r){return[a("li",{key:r+"clerk",staticClass:"clerk-cell font-14 color-606266"},[a("el-checkbox",{attrs:{disabled:t.disabled,label:t.clerkId},on:{change:function(a){return e.changeCell(a,t)}}},[e._v(e._s(t.clerkName))]),t.bindFlag?e._e():a("span",{staticClass:"font-14 color-f56c6c p-l-20"},[e._v("未关联企微用户")]),!e.checked&&e.checkedClerks.includes(t.clerkId)?a("span",{staticClass:"p-l-20"},[e._v("\n 分配会员 "),a("span",{staticClass:"color-303133"},[e._v(e._s(t.memberCount))]),e._v(" 人")]):e._e(),e.checked&&e.checkedClerks.includes(t.clerkId)?a("span",{staticClass:"p-l-20 p-r-10"},[e._v("分配会员 ")]):e._e(),e.checked&&e.checkedClerks.includes(t.clerkId)?a("el-input-number",{staticClass:"w-100",attrs:{"controls-position":"right",step:1,"step-strictly":"",min:1,max:999999999},on:{blur:function(a){return e.blurNum(a,t)},change:e.handleChange},model:{value:t.memberCount,callback:function(a){e.$set(t,"memberCount",a)},expression:"item.memberCount"}}):e._e(),e.checked&&e.checkedClerks.includes(t.clerkId)?a("span",{staticClass:"p-l-10"},[e._v(" 人")]):e._e()],1)]}))],2)],1),a("div",{staticClass:"flex flex-space-between m-t-20"},[a("div",{staticClass:"font-14 color-909399"},[e._v("最多分配会员 5000 人")]),a("div",{staticClass:"font-14 color-606266"},[e._v("\n 分配总数 "),a("span",{class:[0!=e.totalPeople&&e.totalPeople!=e.assignPeople?"color-f5222d":"color-2f54eb"]},[e._v(e._s(e.totalPeople))]),e._v(" 人\n ")])])])]),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:e.toCancel}},[e._v("取消")]),a("el-button",{attrs:{disabled:e.totalPeople!=e.assignPeople,loading:e.loadBtn,type:"primary"},on:{click:function(t){return e.submitForm("ruleForm")}}},[e._v("确定")])],1)])},h=[],b=(a("6762"),a("2fdb"),a("456d"),a("c5f6"),a("d157")),g=a("d11a"),m=a("5b4e6"),v=a("5c96"),k={errorMsg:function(e){var t=window.location.origin;if("0000"!=e.code){if("0003"==e.code)return window.location.href=t+"/haoban-4/#/login",!1;if(10==e.code)return window.location.href=t+"/haoban-4/#/index",!1;v["Message"].error({duration:1e3,message:e.message||"接口异常"})}}},w=g["a"].saveAssign,C=g["a"].getMemberCount,I=g["a"].getClerkList,x={components:{},props:{brandId:{type:String,default:function(){return""}},clerkId:{type:String,default:function(){return""}},searchParams:{type:String,default:function(){return""}},editRow:{type:Object,default:function(){return{}}},multipleData:{type:[Array,Object],default:function(){return[]}},chooseAll:{type:[String,Number],default:function(){return"0"}},departObj:{type:Object,default:function(){return{departmentId:"",departmentName:"",wxDepartmentId:"",parentId:"",isStore:"",staffCount:"",bindFlag:"",loading:!1}}}},data:function(){return{staffName:localStorage.getItem("haoBanUser")?JSON.parse(localStorage.getItem("haoBanUser")).staffName:"",dialogVisible:!0,unbindFlag:!1,checked:!1,checkAll:!1,isIndeterminate:!1,clerkOptions:[],checkedClerks:[],totalPeople:0,assignPeople:0,loadBtn:!1}},mounted:function(){var e=this;Object.keys(e.departObj).length&&(e.getClerkData(),e.setNum())},methods:{changeCell:function(e,t){var a=this;a.$nextTick((function(){if(e){if(a.checkedClerks.length==a.assignPeople)return a.clerkOptions.forEach((function(e,t){a.checkedClerks.includes(e.clerkId)||(e.disabled=!0)})),!1}else a.clerkOptions.forEach((function(e,t){e.disabled=!e.bindFlag}))}))},changeHand:function(){var e=Object(s["a"])(regeneratorRuntime.mark((function e(t){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(a=this,t){e.next=8;break}return e.next=4,a.calcNum();case 4:return e.next=6,a.totalCalc();case 6:e.next=9;break;case 8:a.totalCalc();case 9:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}(),handleChange:function(){var e=this;e.totalCalc()},blurNum:function(e,t){var a=this;t.memberCount||(t.memberCount=1),a.totalCalc()},totalCalc:function(){var e=this,t=0;e.clerkOptions.forEach((function(a,r){e.checkedClerks.includes(a.clerkId)&&(t+=a.memberCount)})),e.totalPeople=t},handleCheckedChange:function(){var e=Object(s["a"])(regeneratorRuntime.mark((function e(t){var a,r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(a=this,r=t.length,a.checkAll=r===a.clerkOptions.length,a.isIndeterminate=r>0&&r<a.clerkOptions.length,a.checked){e.next=11;break}return e.next=7,a.calcNum();case 7:return e.next=9,a.totalCalc();case 9:e.next=12;break;case 11:a.totalCalc();case 12:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}(),handleCheckAllChange:function(){var e=Object(s["a"])(regeneratorRuntime.mark((function e(t){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(a=this,a.checkedClerks=t?a.clerkOptions.map((function(e){return e.clerkId})):[],a.isIndeterminate=!1,a.checked){e.next=10;break}return e.next=6,a.calcNum();case 6:return e.next=8,a.totalCalc();case 8:e.next=11;break;case 10:a.totalCalc();case 11:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}(),calcNum:function(){var e=this;if(!e.checkedClerks.length)return!1;var t=Math.floor(e.assignPeople/e.checkedClerks.length),a=e.assignPeople%e.checkedClerks.length,r=[];e.clerkOptions.forEach((function(a,n){a.memberCount=t,e.checkedClerks.includes(a.clerkId)&&r.push(n)})),e.clerkOptions.forEach((function(e,t){r.forEach((function(r,n){r==t&&n<a&&(e.memberCount=e.memberCount+1)}))}))},getClerkData:function(){var e=this,t={enterpriseId:e.brandId,wxEnterpriseRelatedId:e.wxEnterpriseRelatedId,storeId:e.departObj.storeId};I(t).then((function(t){"0000"==t.code?(t.result.forEach((function(t){t.memberCount=1,t.disabled=!t.bindFlag,t.bindFlag||(e.unbindFlag=!0)})),e.clerkOptions=t.result||[]):k.errorMsg(t)})).catch((function(e){}))},getMemberData:function(){var e=this,t={enterpriseId:e.brandId,wxEnterpriseRelatedId:e.wxEnterpriseRelatedId,storeId:e.departObj.storeId,clerkId:e.clerkId,keyword:e.searchParams};C(t).then((function(t){"0000"==t.code?e.assignPeople=t.result||[]:k.errorMsg(t)})).catch((function(e){}))},resetData:function(){var e=this;e.checkedClerks=[],e.totalPeople=0,e.assignPeople=0,e.checked=!1},toCancel:function(){var e=this;e.resetData(),e.$emit("closeText")},handleClose:function(e){var t=this;t.resetData(),t.$emit("closeText")},submitForm:Object(b["a"])((function(){var e=this;e.postSave()}),300),postSave:function(){var e=this,t=[];e.clerkOptions.forEach((function(a){e.checkedClerks.includes(a.clerkId)&&0!=a.memberCount&&t.push(a)})),e.loadBtn=!0;var a={enterpriseId:e.brandId,chooseAll:e.chooseAll,storeId:e.departObj.storeId,clerkId:e.clerkId,keyword:e.searchParams,memberIds:1==e.chooseAll?"":Object.keys(e.editRow).length?e.editRow.memberId:e.multipleData.map((function(e){return e.memberId})).join(","),clerkIds:JSON.stringify(t),staffName:e.staffName};w(a).then((function(t){e.loadBtn=!1,m["a"].showmsg("操作成功","success"),e.resetData(),e.$emit("submitText")})).catch((function(t){e.loadBtn=!1}))},setNum:function(){var e=this;Object.keys(e.editRow).length?e.assignPeople=1:0==e.chooseAll?e.assignPeople=e.multipleData.length:e.getMemberData()}},watch:{departObj:function(e){var t=this;Object.keys(e).length&&(t.getClerkData(),t.setNum())}}},S=x,y=(a("d60b"),Object(u["a"])(S,f,h,!1,null,"cfa01dee",null)),_=y.exports,O=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"depart-list-body"},[a("div",{staticClass:"depart-name-wrap m-b-20"},[a("div",{staticClass:"font-14 color-303133"},[e._v("门店 "+e._s(e.total)+" 家")]),a("div",{staticClass:"flex flex-space-between m-t-20"},[a("div",[a("el-input",{staticClass:"w-274",attrs:{placeholder:"请输入门店名称/代码",maxlength:"50","prefix-icon":"el-icon-search",clearable:""},on:{clear:e.clearInput},nativeOn:{keyup:function(t){return function(t){return e.toInput(t,e.searchInput)}(t)}},model:{value:e.searchInput,callback:function(t){e.searchInput=t},expression:"searchInput"}})],1),a("div",{staticClass:"to-log flex m-t-20"})])]),a("div",{staticClass:"depart-children-list border-box m-t-18"},[a("div",{staticClass:"m-t-20"},[a("el-table",{ref:"multipleTable",staticClass:"select-table",style:{width:"100%"},attrs:{data:e.tableData,"tooltip-effect":"dark"}},[a("el-table-column",{staticClass:"cursor-pointer",attrs:{label:"门店名称","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.storeName||"--"))]}}])}),a("el-table-column",{staticClass:"cursor-pointer",attrs:{prop:"",label:"门店类型","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(e.storeType[t.row.storeType]||"--"))]}}])}),a("el-table-column",{staticClass:"cursor-pointer",attrs:{prop:"",label:"门店分组","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.storeGroupName||"--")+"\n ")]}}])}),a("el-table-column",{attrs:{prop:"",label:"操作","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.showMember(t.row)}}},[e._v("查看会员")])]}}])})],1),0!=e.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("dm-pagination",{attrs:{background:"","current-page":e.currentPage,"page-sizes":[20,40,60,80],"page-size":e.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1):e._e()],1)])])},D=[],j=g["a"].getStoreList,N={name:"StoreList",components:{},props:{brandId:{type:String,default:function(){return""}},departObj:{type:Object,default:function(){return{departmentId:"",departmentName:"",wxDepartmentId:"",parentId:"",isStore:"",staffCount:"",bindFlag:""}}}},data:function(){return{nameVisible:!1,departmentName:this.departObj.departmentName||"",searchInput:"",storeType:{0:"自营",1:"联营",2:"代理(加盟)",3:"代销",4:"托管"},currentPage:1,pageSize:20,total:0,tableData:[]}},mounted:function(){var e=this;Object.keys(e.departObj)&&(e.currentPage=1,e.getTableList())},methods:{showMember:function(e){var t=this;t.$emit("getStore",e)},toInput:Object(b["a"])((function(){var e=this;e.currentPage=1,e.getTableList()}),500),clearInput:function(){var e=this;e.currentPage=1,e.getTableList()},handleSizeChange:function(e){var t=this;t.currentPage=1,t.pageSize=e,t.getTableList()},handleCurrentChange:function(e){var t=this;t.currentPage=e,t.getTableList()},getTableList:function(){var e=this,t={departmentId:e.departObj.storeGroupId,enterpriseId:e.brandId,searchName:e.searchInput||"",pageNum:e.currentPage,pageSize:e.pageSize};j(t).then((function(t){var a=t.data;if(1==a.errorCode)return e.tableData=a.result.list||[],e.total=a.result.total,!1;k.errorMsg(a)})).catch((function(t){e.$message.error({duration:1e3,message:t.message})}))}},watch:{departObj:function(e,t){var a=this;Object.keys(e)&&(a.currentPage=1,a.getTableList())},brandId:function(e){var t=this;e&&(t.searchInput="")}}},T=N,R=(a("ea61"),Object(u["a"])(T,O,D,!1,null,"e269d89c",null)),F=R.exports,P=g["a"].getGroupList,E=g["a"].getMemberList,L=g["a"].getNavChain,A=g["a"].getAssignStatus,M=g["a"].getClerkList,G={name:"CustomerAssignPage",components:{orgTree:p,customerAssign:_,storeList:F},props:{brandId:{type:String,default:function(){return""}},tabType:{type:String,default:function(){return"1"}},activeGroupId:{type:String,default:function(){return""}}},data:function(){return{projectName:"",wxEnterpriseId:localStorage.getItem("haoBanUser")?JSON.parse(localStorage.getItem("haoBanUser")).wxEnterpriseId:"",departObj:{},gicData:[],clerkId:"0",searchInput:"",clerkOptions:[],tableData:[],currentPage:1,pageSize:20,total:0,loading:!1,selectRadio:0,multipleSelection:[],assignShow:!1,showMember:!1,storeObj:{},gicDataCopy:[],chainData:[],navData:[]}},mounted:function(){var e=this;e.$emit("showTab","/customer-assign"),e.brandId&&e.getGicData(e.brandId)},methods:{setParent:function(){var e=Object(s["a"])(regeneratorRuntime.mark((function e(t,a){var r,n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:r=this,n=0;case 2:if(!(n<a.length)){e.next=11;break}if(t.parentGroupId!=a[n].storeGroupId){e.next=8;break}if(a[n].expand=!0,0==a[n].parentGroupId){e.next=8;break}return e.next=8,r.setParent(a[n],a);case 8:n++,e.next=2;break;case 11:case"end":return e.stop()}}),e,this)})));function t(t,a){return e.apply(this,arguments)}return t}(),changeDepart:function(){var e=Object(s["a"])(regeneratorRuntime.mark((function e(t){var a,r,n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(a=this,!t.storeId){e.next=3;break}return e.abrupt("return",!1);case 3:a.departObj=t,a.showMember=!1,r=JSON.parse(JSON.stringify(a.gicDataCopy)),n=0;case 7:if(!(n<r.length)){e.next=16;break}if(a.departObj.parentGroupId!=r[n].storeGroupId){e.next=13;break}if(r[n].expand=!0,0==r[n].parentGroupId){e.next=13;break}return e.next=13,a.setParent(r[n],r);case 13:n++,e.next=7;break;case 16:return e.next=18,a.treeData(JSON.parse(JSON.stringify(r)));case 18:a.gicData=e.sent,a.gicData[0].expand=!0;case 20:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}(),getStore:function(e){var t=this;t.storeObj=e,t.showMember=!0,t.getClerkData(),t.getTableList(),t.toGetNavData()},assignStatus:function(){var e=Object(s["a"])(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=this,e.abrupt("return",new Promise((function(e,a){var r={storeId:t.storeObj.storeId};A(r).then((function(t){"0000"!=t.code?(k.errorMsg(t),e(!1)):e(t.result)})).catch((function(t){e(!1)}))})));case 2:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),closeText:function(){var e=this;e.assignShow=!1,e.selectRadio=0,e.multipleSelection=[],e.editRow={},e.$refs.multipleTable.clearSelection()},submitText:function(){var e=this;e.selectRadio=0,e.multipleSelection=[],e.assignShow=!1,e.$refs.multipleTable.clearSelection(),e.currentPage=1,e.getTableList(),e.$alert("会员分配中,请稍候查看","",{confirmButtonText:"确定",callback:function(t){e.currentPage=1,e.getTableList();var a=setTimeout((function(){e.currentPage=1,e.getTableList(),clearTimeout(a)}),1e3)}})},toInput:Object(b["a"])((function(){var e=this;e.currentPage=1,e.getTableList()}),500),clearSearch:function(){var e=this;e.currentPage=1,e.getTableList()},getSelectData:function(e){var t=this;t.departObj=e,t.selectRadio=0,t.showMember=!1,t.storeObj={},t.currentPage=1,t.tableData=[],t.clerkOptions=[],t.clerkId="0",t.searchInput="",t.multipleSelection=[]},handleSelectionChange:function(e){this.multipleSelection=e},handleCommand:function(e){this.selectRadio=e},toAssignMember:function(){var e=Object(s["a"])(regeneratorRuntime.mark((function e(t,a){var r,n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return r=this,e.next=3,r.assignStatus();case 3:if(n=e.sent,!n){e.next=7;break}return r.$message.error({duration:1e3,message:"会员正在分配中,请稍后再试"}),e.abrupt("return",!1);case 7:r.editRow=a,r.selectRadio=0,r.multipleSelection=[],r.$refs.multipleTable.clearSelection(),r.assignShow=!0;case 12:case"end":return e.stop()}}),e,this)})));function t(t,a){return e.apply(this,arguments)}return t}(),toAssign:function(){var e=Object(s["a"])(regeneratorRuntime.mark((function e(){var t,a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=this,t.editRow={},e.next=4,t.assignStatus();case 4:if(a=e.sent,!a){e.next=8;break}return t.$message.error({duration:1e3,message:"会员正在分配中,请稍后再试"}),e.abrupt("return",!1);case 8:if(t.multipleSelection.length){e.next=11;break}return t.$message.error({duration:1e3,message:"请选择会员"}),e.abrupt("return",!1);case 11:t.assignShow=!0;case 12:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),treeData:function(){var e=Object(s["a"])(regeneratorRuntime.mark((function e(t){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return a=t.filter((function(e){var a=t.filter((function(t){return e.storeGroupId==t.parentGroupId}));return a.length>0?(e.hasSonNode=!0,e.children=a):(e.hasSonNode=!1,e.children=[]),0==e.parentGroupId})),e.abrupt("return",a);case 2:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}(),getGicData:function(){var e=this,t={enterpriseId:e.brandId,wxEnterpriseRelatedId:e.wxEnterpriseRelatedId};P(t).then(function(){var t=Object(s["a"])(regeneratorRuntime.mark((function t(a){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!a.result.length){t.next=6;break}return a.result.forEach((function(t){t.loading=!1,t.expand=!1,t.children=[],t.label=t.storeGroupName,0==t.parentGroupId&&(t.expand=!0,e.departObj=t)})),e.gicDataCopy=JSON.parse(JSON.stringify(a.result)),t.next=5,e.treeData(JSON.parse(JSON.stringify(a.result)));case 5:e.gicData=t.sent;case 6:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(e){}))},changeCondition:function(){var e=this;e.currentPage=1,e.getTableList()},handleSizeChange:function(e){var t=this;t.currentPage=1,t.pageSize=e,t.getTableList()},handleCurrentChange:function(e){var t=this;t.currentPage=e,t.getTableList()},toGetNavData:function(){var e=this,t={departmentId:e.storeObj.storeGroupId};L(t).then((function(t){if("0000"==t.code)return e.navData=t.result||[],e.navData.push(e.storeObj),!1;k.errorMsg(t)})).catch((function(e){}))},getClerkData:function(){var e=this,t={enterpriseId:e.brandId,wxEnterpriseRelatedId:e.wxEnterpriseRelatedId,storeId:e.storeObj.storeId};M(t).then((function(t){e.clerkOptions=t.result||[]})).catch((function(e){}))},getTableList:function(){var e=this,t={enterpriseId:e.brandId,wxEnterpriseRelatedId:e.wxEnterpriseRelatedId,pageNum:e.currentPage,pageSize:e.pageSize,storeId:e.storeObj.storeId,clerkId:e.clerkId,keyword:e.searchInput};E(t).then((function(t){e.tableData=t.result.result||[],e.total=t.result.totalCount})).catch((function(e){}))}},watch:{brandId:function(e,t){var a=this;e&&(a.showMember=!1,a.currentPage=1,a.tableData=[],a.clerkOptions=[],a.clerkId="0",a.searchInput="",a.selectRadio=0,a.multipleSelection=[],a.storeObj={},a.getGicData(a.brandId))}}},z=G,$=(a("bf6a"),Object(u["a"])(z,r,n,!1,null,"45949c0a",null));t["default"]=$.exports},"59b7":function(e,t,a){},"5b4e6":function(e,t,a){"use strict";var r=a("5c96");t["a"]={showmsg:function(e,t){Object(r["Message"])({duration:1e3,message:e||"接口异常",type:t})}}},"71f6":function(e,t,a){"use strict";a.d(t,"a",(function(){return n}));a("ac6a"),a("456d");var r=a("b775");function n(e,t){e=e||{};var a=Object.keys(e);return a.forEach((function(a){var n=e[a];"string"===typeof n&&(n={url:n}),n.url="".concat(t).concat(n.url),e[a]=function(e){return Object(r["a"])(n,e)}})),e}},"817e":function(e,t,a){},9767:function(e,t,a){},"9b5b":function(e,t,a){"use strict";var r=a("9767"),n=a.n(r);n.a},bf6a:function(e,t,a){"use strict";var r=a("59b7"),n=a.n(r);n.a},c7ac:function(e,t,a){},d11a:function(e,t,a){"use strict";var r=a("71f6"),n={getGroupList:"/department-list",getStoreList:"/store-list",getAssignStatus:"/app-distribute-status",getNavChain:"/get-chain",getMemberList:{url:"/app-get-member-info-list",method:"post",useFormData:!0},getClerkList:"/clerk-list",getMemberCount:"",saveAssign:{url:"/",method:"post",useFormData:!0},getMemberData:"",getServiceData:"",saveSortMember:{url:"/",method:"post",useFormData:!0,useIntercept:!1},getShowSet:"",saveShowSet:{url:"",method:"post",useFormData:!0,useIntercept:!1},getCustomerSet:"",saveCustomerSet:{url:"",method:"post",useFormData:!0,useIntercept:!1},getGroupData:"",getClassifyData:"",postSortGroup:{url:"/",method:"post",useFormData:!0,useIntercept:!1},getSyncMemberData:"",saveSync:{url:"/",method:"post",useFormData:!0,useIntercept:!1},saveVisiable:{url:"/",method:"post",useFormData:!0,useIntercept:!1},getTagClassify:"",addClassify:"",delClassify:{url:"/",method:"post",useFormData:!0,useIntercept:!1},getClerkTag:"",addClerkTag:"",delClerkTag:{url:"/",method:"post",useFormData:!0,useIntercept:!1}};n=Object(r["a"])(n,"/hb-manage-web"),t["a"]=n},d157:function(e,t,a){"use strict";a.d(t,"a",(function(){return r})),a.d(t,"b",(function(){return n})),a.d(t,"c",(function(){return s}));a("c5f6"),a("a481"),a("28a5"),a("6b54");function r(e,t){var a,r=t||200;return function(){var t=this,n=arguments;a&&clearTimeout(a),a=setTimeout((function(){a=null,e.apply(t,n)}),r)}}function n(e,t){var a,r,n=t||200;return function(){var t=this,s=arguments,o=+new Date;a&&o-a<n?(clearTimeout(r),r=setTimeout((function(){a=o,e.apply(t,s)}),n)):(a=o,e.apply(t,s))}}function s(e){return e=e.replace(/\uD83C[\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F]|[\uD800-\uDBFF]|[\uDC00-\uDFFF]|[^\u0020-\u007E\u00A0-\u00BE\u2E80-\uA4CF\uF900-\uFAFF\uFE30-\uFE4F\uFF00-\uFFEF\u0080-\u009F\u2000-\u201f\u2026\u2022\u20ac\r\n]/g,""),unescape(escape(e).replace(/\%uD.{3}/g,""))}},d60b:function(e,t,a){"use strict";var r=a("817e"),n=a.n(r);n.a},ea61:function(e,t,a){"use strict";var r=a("c7ac"),n=a.n(r);n.a}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-5cd754bd"],{"19f9":function(t,e,a){"use strict";var n=a("7d04"),o=a.n(n);o.a},"28a5":function(t,e,a){"use strict";var n=a("aae3"),o=a("cb7c"),s=a("ebd6"),l=a("0390"),r=a("9def"),i=a("5f1b"),c=a("520a"),u=a("79e5"),p=Math.min,d=[].push,f="split",h="length",g="lastIndex",m=4294967295,v=!u((function(){RegExp(m,"y")}));a("214f")("split",2,(function(t,e,a,u){var b;return b="c"=="abbc"[f](/(b)*/)[1]||4!="test"[f](/(?:)/,-1)[h]||2!="ab"[f](/(?:ab)*/)[h]||4!="."[f](/(.?)(.?)/)[h]||"."[f](/()()/)[h]>1||""[f](/.?/)[h]?function(t,e){var o=String(this);if(void 0===t&&0===e)return[];if(!n(t))return a.call(o,t,e);var s,l,r,i=[],u=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),p=0,f=void 0===e?m:e>>>0,v=new RegExp(t.source,u+"g");while(s=c.call(v,o)){if(l=v[g],l>p&&(i.push(o.slice(p,s.index)),s[h]>1&&s.index<o[h]&&d.apply(i,s.slice(1)),r=s[0][h],p=l,i[h]>=f))break;v[g]===s.index&&v[g]++}return p===o[h]?!r&&v.test("")||i.push(""):i.push(o.slice(p)),i[h]>f?i.slice(0,f):i}:"0"[f](void 0,0)[h]?function(t,e){return void 0===t&&0===e?[]:a.call(this,t,e)}:a,[function(a,n){var o=t(this),s=void 0==a?void 0:a[e];return void 0!==s?s.call(a,o,n):b.call(String(o),a,n)},function(t,e){var n=u(b,t,this,e,b!==a);if(n.done)return n.value;var c=o(t),d=String(this),f=s(c,RegExp),h=c.unicode,g=(c.ignoreCase?"i":"")+(c.multiline?"m":"")+(c.unicode?"u":"")+(v?"y":"g"),_=new f(v?c:"^(?:"+c.source+")",g),w=void 0===e?m:e>>>0;if(0===w)return[];if(0===d.length)return null===i(_,d)?[d]:[];var C=0,y=0,k=[];while(y<d.length){_.lastIndex=v?y:0;var x,S=i(_,v?d:d.slice(y));if(null===S||(x=p(r(_.lastIndex+(v?0:y)),d.length))===C)y=l(d,y,h);else{if(k.push(d.slice(C,y)),k.length===w)return k;for(var I=1;I<=S.length-1;I++)if(k.push(S[I]),k.length===w)return k;y=C=x}}return k.push(d.slice(C)),k}]}))},"29b6":function(t,e,a){"use strict";var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"nav-wrap border-box"},[a("el-breadcrumb",{attrs:{"separator-class":"el-icon-arrow-right"}},[t._l(t.navpath,(function(e,n){return[e.path?[a("el-breadcrumb-item",{key:"nav"+n,attrs:{to:{path:e.path}},on:{click:function(a){return t.changeRoute(e.path,e.relocation)}}},[a("span",{staticClass:"el-breadcrumb__inner is-link",on:{click:function(a){return t.changeRoute(e.path,e.relocation)}}},[t._v("\n "+t._s(e.name)+"\n ")])])]:[a("el-breadcrumb-item",{key:"nav"+n},[t._v(t._s(e.name))])]]}))],2)],1)},o=[],s={name:"NavPath",props:{navpath:{type:Array,default:function(){return[]}}},data:function(){return{projectName:"member"}},methods:{changeRoute:function(t,e){var a=this;e?window.location.href=t:a.$router.push(t)}}},l=s,r=(a("6b4b"),a("2877")),i=Object(r["a"])(l,n,o,!1,null,"2c2a2724",null);e["a"]=i.exports},3081:function(t,e,a){"use strict";var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"common-alert-tip"},[a("div",{style:{"min-width":t.width}},[a("div",{staticClass:"el-alert el-alert--info flex flex-align-start",style:{width:t.width},attrs:{role:"alert"}},[a("i",{staticClass:"el-alert__icon el-icon-info font-12 color-2f54eb"}),a("div",{staticClass:"el-alert__content"},[a("span",{staticClass:"el-alert__title color-606266 font-13"},[t._v("\n "+t._s(t.tipContent)+"\n ")])])])])])},o=[],s={name:"CommonAlertTip",components:{},props:{width:{type:String,default:"645px"},tipContent:{type:String,default:""}},data:function(){return{}}},l=s,r=a("2877"),i=Object(r["a"])(l,n,o,!1,null,"3070d237",null);e["a"]=i.exports},"6b4b":function(t,e,a){"use strict";var n=a("76d4"),o=a.n(n);o.a},"71f6":function(t,e,a){"use strict";a.d(e,"a",(function(){return o}));a("ac6a"),a("456d");var n=a("b775");function o(t,e){t=t||{};var a=Object.keys(t);return a.forEach((function(a){var o=t[a];"string"===typeof o&&(o={url:o}),o.url="".concat(e).concat(o.url),t[a]=function(t){return Object(n["a"])(o,t)}})),t}},"76d4":function(t,e,a){},"7d04":function(t,e,a){},"7f7f":function(t,e,a){var n=a("86cc").f,o=Function.prototype,s=/^\s*function ([^ (]*)/,l="name";l in o||a("9e1e")&&n(o,l,{configurable:!0,get:function(){try{return(""+this).match(s)[1]}catch(t){return""}}})},b155:function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"my-customer-wrap common-set-wrap"},[a("nav-crumb",{attrs:{navpath:t.navpath}}),a("div",{staticClass:"right-content"},[a("div",{staticClass:"right-box",staticStyle:{"min-height":"calc(100vh - 86px)"}},[a("div",{staticClass:"apps-content flex",staticStyle:{"min-height":"calc(100vh - 86px)"}},[a("div",{staticClass:"apps-content-right"},[a("el-tabs",{on:{"tab-click":t.handleClick},model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},[a("el-tab-pane",{attrs:{label:"绑定变更日志",name:"first"}},[a("div",{staticClass:"flex flex-space-between"},[a("div",{},[a("el-input",{staticClass:"w-293",attrs:{placeholder:"请输入导购手机号或代码","prefix-icon":"el-icon-search",clearable:""},on:{clear:t.clearInput},nativeOn:{keyup:function(e){return function(e){return t.toInput(e,t.searchInput)}(e)}},model:{value:t.searchInput,callback:function(e){t.searchInput=e},expression:"searchInput"}}),a("el-select",{staticClass:"w-168 m-l-10",attrs:{placeholder:"请选择"},on:{change:t.changeBindList},model:{value:t.optType,callback:function(e){t.optType=e},expression:"optType"}},[a("el-option",{attrs:{label:"全部状态",value:""}}),a("el-option",{attrs:{label:"绑定",value:"0"}}),a("el-option",{attrs:{label:"解绑",value:"1"}})],1)],1),a("common-alert-tip",{attrs:{width:"284px","tip-content":t.tipContent}})],1),a("div",{staticClass:"m-t-20"},[a("el-table",{ref:"multipleTable",staticClass:"select-table",style:{width:"100%"},attrs:{data:t.tableBindData,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{prop:"",label:"类型","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(0==e.row.optType?"绑定":"解绑"))]}}])}),a("el-table-column",{attrs:{label:"导购账号"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-popover",{attrs:{placement:"top",width:"242",trigger:"hover"}},[a("div",[a("div",{staticClass:"flex flex-space-between line-28"},[a("span",{staticClass:"font-14 color-606266"},[t._v("姓名")]),a("span",{staticClass:"font-14 color-303133"},[t._v(t._s(e.row.clerkName||"--")+"("+t._s(1==e.row.sex?"男":2==e.row.sex?"女":"--")+" )")])]),a("div",{staticClass:"flex flex-space-between line-28"},[a("span",{staticClass:"font-14 color-606266"},[t._v("手机号")]),a("span",{staticClass:"font-14 color-303133"},[t._v(t._s(e.row.clerkNationCode||"--")+"-"+t._s(e.row.clerkPhoneNumber||"--"))])]),a("div",{staticClass:"flex flex-space-between line-28"},[a("span",{staticClass:"font-14 color-606266 min-w-90"},[t._v("所在门店")]),a("span",{staticClass:"font-14 color-303133"},[t._v(t._s(e.row.storeName||"--"))])])]),a("span",{staticClass:"common-bottom-border",attrs:{slot:"reference"},slot:"reference"},[t._v(t._s(e.row.clerkName||"--")+"("+t._s(e.row.clerkCode||"--")+")")])])]}}])}),a("el-table-column",{attrs:{label:"企微账号","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.wxUserId||"--"))]}}])}),a("el-table-column",{attrs:{label:"手机号","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.phoneNumber||"--"))]}}])}),a("el-table-column",{attrs:{prop:"",label:"更新时间","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"line-h-18"},[t._v(t._s(t._f("timeStampToYmd")(e.row.updateTime))+" "+t._s(e.row.updateTime?"":"--"))]),a("div",{staticClass:"line-h-18"},[t._v(t._s(t._f("timeStampToHms")(e.row.updateTime))+" "+t._s(e.row.updateTime?"":"--"))])]}}])}),a("el-table-column",{attrs:{label:"操作人","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.optStaffName||"--"))]}}])}),a("el-table-column",{attrs:{prop:"",label:"原因","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[1001==e.row.channelCode?a("span",{attrs:{type:"text"}},[t._v("后台管理员绑定")]):t._e(),1002==e.row.channelCode?a("span",{attrs:{type:"text"}},[t._v("好办客户端绑定")]):t._e(),1003==e.row.channelCode?a("span",{attrs:{type:"text"}},[t._v("审核绑定")]):t._e(),1004==e.row.channelCode?a("span",{attrs:{type:"text"}},[t._v("GIC 同步绑定")]):t._e(),1005==e.row.channelCode?a("span",{attrs:{type:"text"}},[t._v("企业同步绑定")]):t._e(),2001==e.row.channelCode?a("span",{attrs:{type:"text"}},[t._v("后台管理员解绑")]):t._e(),2002==e.row.channelCode?a("span",{attrs:{type:"text"}},[t._v("好办客户端解绑")]):t._e(),2003==e.row.channelCode?a("span",{attrs:{type:"text"}},[t._v("GIC 同步解绑")]):t._e(),2004==e.row.channelCode?a("span",{attrs:{type:"text"}},[t._v("企业同步解绑")]):t._e(),2005==e.row.channelCode?a("span",{attrs:{type:"text"}},[t._v("授权范围变更解绑")]):t._e()]}}])})],1),0!=t.tableBindData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("dm-pagination",{attrs:{background:"","current-page":t.currentPage,"page-sizes":[20,40,60,80],"page-size":t.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1):t._e()],1)]),a("el-tab-pane",{attrs:{label:"通讯录刷新日志",name:"second"}},[a("div",{staticClass:"flex flex-space-between"},[a("common-alert-tip",{attrs:{width:"284px","tip-content":"仅保存近一年的日志"}})],1),a("div",{staticClass:"m-t-20"},[a("el-table",{ref:"multipleTable",staticClass:"select-table",style:{width:"100%",minHeight:t.tableH},attrs:{data:t.tableData,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{label:"提交人","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.optName||"--"))]}}])}),a("el-table-column",{attrs:{prop:"",label:"同步时间","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"line-18"},[t._v(t._s(t._f("timeStampToYmd")(e.row.createTime))+t._s(e.row.createTime?"":"--"))]),a("div",{staticClass:"line-18"},[t._v(t._s(t._f("timeStampToHms")(e.row.createTime))+t._s(e.row.createTime?"":"--"))])]}}])}),a("el-table-column",{attrs:{prop:"",label:"完成时间","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"line-18"},[t._v(t._s(t._f("timeStampToYmd")(e.row.updateTime))+t._s(e.row.updateTime?"":"--"))]),a("div",{staticClass:"line-18"},[t._v(t._s(t._f("timeStampToHms")(e.row.updateTime))+t._s(e.row.updateTime?"":"--"))])]}}])}),a("el-table-column",{attrs:{prop:"",label:"同步内容","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(t._f("'--'")(e.row.taskDesc)))]}}])}),a("el-table-column",{attrs:{prop:"",label:"状态","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",{class:["span-dot",4==e.row.statusFlag?"bg-52c41a":"bg-f5222d"]}),4==e.row.statusFlag?a("span",{staticClass:"font-14 color-606266"},[t._v(t._s(4==e.row.statusFlag?"成功":""))]):t._e(),0==e.row.statusFlag?a("span",{staticClass:"font-14 color-606266"},[t._v("初始化")]):t._e(),1==e.row.statusFlag||2==e.row.statusFlag||3==e.row.statusFlag?a("span",{staticClass:"font-14 color-606266"},[t._v("分组/门店/成员同步中")]):t._e(),5==e.row.statusFlag||6==e.row.statusFlag?a("el-popover",{staticClass:"item",attrs:{trigger:"hover",content:5==e.row.statusFlag?"完成有错误":"有错误关闭",placement:"top"}},[a("span",{staticClass:"common-bottom-border",attrs:{slot:"reference"},slot:"reference"},[t._v("失败")])]):t._e()]}}])})],1),0!=t.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("dm-pagination",{attrs:{background:"","current-page":t.currentPage,"page-sizes":[20,40,60,80],"page-size":t.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1):t._e()],1)])],1)],1)])])]),t.logShow?a("fail-log",{attrs:{"task-id":t.taskId},on:{closeLog:t.closeLog}}):t._e()],1)},o=[],s=(a("7f7f"),function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("el-dialog",{attrs:{title:"查看失败日志",visible:t.dialogVisible,width:"995px","before-close":t.handleClose},on:{"update:visible":function(e){t.dialogVisible=e}}},[a("div",{staticClass:"overstore-tip"},[a("div",{staticClass:"el-alert el-alert--info flex flex-align-start",attrs:{role:"alert"}},[a("i",{staticClass:"el-alert__icon el-icon-info font-12 color-2f54eb"}),a("div",{staticClass:"el-alert__content"},[a("span",{staticClass:"el-alert__title color-606266 font-14"},[t._v("失败可能:分组创建失败或门店及成员创建失败"),a("br"),t._v("\n 通讯录同步分为两步串联创建:"),a("br"),t._v("\n 第一步同步分组,若出现分组创建失败,则分组及下面的门店及成员均会创建失败"),a("br"),t._v("\n 第二步同步门店及成员,若分组创建成功,会同步门店及成员,若门店创建失败,则门店下成员也会创建失败")])])])]),a("div",{staticClass:"m-t-20"},[a("el-table",{ref:"multipleTable",staticClass:"select-table",style:{width:"100%",minHeight:t.tableH},attrs:{height:"450",data:t.tableData,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{label:"分组/门店名称","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.dataName))]}}])}),a("el-table-column",{attrs:{prop:"",label:"分组/门店code","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.dataCode)+"\n ")]}}])}),a("el-table-column",{attrs:{prop:"",label:"所属分组","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.chainName)+"\n ")]}}])}),a("el-table-column",{attrs:{prop:"",label:"数据类型","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(0==e.row.dataType?"分组":1==e.row.dataType?"门店":"成员")+"\n ")]}}])}),a("el-table-column",{attrs:{prop:"",label:"同步状态","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",{class:["span-dot",2==e.row.statusFlag?"bg-52c41a":"bg-f5222d"]}),a("span",{staticClass:"font-14 color-606266"},[t._v(t._s(3==e.row.statusFlag?"同步失败":1==e.row.statusFlag?"同步处理中":"--"))])]}}])}),a("el-table-column",{attrs:{prop:"",label:"失败原因","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(t._f("'--'")(e.row.reason)))]}}])})],1),0!=t.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("dm-pagination",{attrs:{background:"","current-page":t.currentPage,"page-sizes":[20,40,60,80],"page-size":t.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1):t._e()],1)])}),l=[],r=a("e230"),i=r["a"].getSyncFailDetail,c={name:"FailLog",props:{taskId:{type:String,default:function(){return""}}},data:function(){return{dialogVisible:!0,currentPage:1,pageSize:20,total:0,tableData:[]}},mounted:function(){var t=this;t.taskId&&t.getTableList(),document.documentElement.style.backgroundColor="#f0f2f5"},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},methods:{handleClose:function(){var t=this;t.tableData=[],t.$emit("closeLog")},changeRoute:function(t){this.$router.push(t)},handleSizeChange:function(t){var e=this;e.currentPage=1,e.pageSize=t,e.getTableList()},handleCurrentChange:function(t){var e=this;e.currentPage=t,e.getTableList()},getTableList:function(){var t=this,e={keyWord:t.searchInput||"",taskId:t.taskId,pageNum:t.currentPage,pageSize:t.pageSize};i(e).then((function(e){t.tableData=e.result.result||[],t.total=e.result.totalCount})).catch((function(t){}))}},watch:{taskId:function(t,e){var a=this;t&&a.getTableList()}}},u=c,p=(a("b8b7"),a("2877")),d=Object(p["a"])(u,s,l,!1,null,"cae564e0",null),f=d.exports,h=a("29b6"),g=a("3081"),m=a("d157"),v=r["a"].getBindLog,b=r["a"].getRefreshLog,_=r["a"].getWxEnterprise,w={name:"SyncLog",components:{navCrumb:h["a"],failLog:f,commonAlertTip:g["a"]},data:function(){return{tipContent:"仅保存近一年绑定解绑的日志",navpath:[{name:"通讯录",path:"/contactsList"},{name:"日志详情",path:""}],wxEnterpriseId:localStorage.getItem("haoBanUser")?JSON.parse(localStorage.getItem("haoBanUser")).wxEnterpriseId:"",activeName:"first",searchInput:"",currentPage:1,pageSize:20,total:0,tableData:[],tableBindData:[],logShow:!1,taskId:"",optType:"",enterpriseId:"",brandOptions:[]}},mounted:function(){var t=this;t.getBrandData(),t.getBindList(),document.documentElement.style.backgroundColor="#f0f2f5"},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},methods:{clearInput:function(){var t=this;t.currentPage=1,t.getBindList()},changeBindList:function(){var t=this;t.currentPage=1,t.getBindList()},toInput:Object(m["a"])((function(t){var e=this;e.currentPage=1,e.getBindList()}),200),handleClick:function(t){var e=this;e.currentPage=1,e.pageSize=20,e.total=0,e.enterpriseId="","second"==t.name?e.getTableList():(e.getBrandData(),e.getBindList())},toShowLog:function(t,e){var a=this;a.taskId=e.taskId,a.logShow=!0},closeLog:function(){var t=this;t.taskId="",t.logShow=!1},changeRoute:function(t){this.$router.push(t)},handleSizeChange:function(t){var e=this;e.currentPage=1,e.pageSize=t,"second"==e.activeName?e.getTableList():e.getBindList()},handleCurrentChange:function(t){var e=this;e.currentPage=t,"second"==e.activeName?e.getTableList():e.getBindList()},getBrandData:function(){var t=this;_({wxEnterpriseId:t.wxEnterpriseId}).then((function(e){e.result&&e.result.length&&(t.brandOptions=e.result)})).catch((function(t){}))},getBindList:function(){var t=this,e={search:t.searchInput||"",enterpriseId:t.enterpriseId,wxEnterpriseId:t.wxEnterpriseId,optType:t.optType,pageNum:t.currentPage,pageSize:t.pageSize};v(e).then((function(e){t.tableBindData=e.result.result||[],t.total=e.result.totalCount})).catch((function(t){}))},getTableList:function(){var t=this,e={enterpriseId:t.enterpriseId,wxEnterpriseId:t.wxEnterpriseId,pageNum:t.currentPage,pageSize:t.pageSize};b(e).then((function(e){t.tableData=e.result.result||[],t.total=e.result.totalCount})).catch((function(t){}))}}},C=w,y=(a("19f9"),Object(p["a"])(C,n,o,!1,null,"7a59c3f6",null));e["default"]=y.exports},b8b7:function(t,e,a){"use strict";var n=a("ced6"),o=a.n(n);o.a},ced6:function(t,e,a){},d157:function(t,e,a){"use strict";a.d(e,"a",(function(){return n})),a.d(e,"b",(function(){return o})),a.d(e,"c",(function(){return s}));a("c5f6"),a("a481"),a("28a5"),a("6b54");function n(t,e){var a,n=e||200;return function(){var e=this,o=arguments;a&&clearTimeout(a),a=setTimeout((function(){a=null,t.apply(e,o)}),n)}}function o(t,e){var a,n,o=e||200;return function(){var e=this,s=arguments,l=+new Date;a&&l-a<o?(clearTimeout(n),n=setTimeout((function(){a=l,t.apply(e,s)}),o)):(a=l,t.apply(e,s))}}function s(t){return t=t.replace(/\uD83C[\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F]|[\uD800-\uDBFF]|[\uDC00-\uDFFF]|[^\u0020-\u007E\u00A0-\u00BE\u2E80-\uA4CF\uF900-\uFAFF\uFE30-\uFE4F\uFF00-\uFFEF\u0080-\u009F\u2000-\u201f\u2026\u2022\u20ac\r\n]/g,""),unescape(escape(t).replace(/\%uD.{3}/g,""))}},e230:function(t,e,a){"use strict";var n=a("71f6"),o={getSyncCheck:"/sync/sync-check",refreshWx:"/sync/sync-contact",getDepartmentList:"/department-list-level",getCompanyDepartList:"/contact/get-department-list",getStaffList:"/contact/get-staff-list",getStaffDetail:"/contact/staff-detail",getStaffRelation:"/bind/staff-clerk-relation",delStaffRelation:{url:"/bind/staff-unbind",method:"post",useFormData:!0,useIntercept:!1},addStaffRelation:{url:"/bind/staff-bind",method:"post",useFormData:!0,useIntercept:!1},getClerkRelation:"/bind/search-clerk-list",getWxEnterprise:"/auth-enterprise-list",getBindLog:"/bind/bind-log-list",getRefreshLog:"/sync/sync-task",getSyncFailDetail:"/sync-task-detail",getNationCode:"/nationcode/get-nationcode-list",getGicGroup:"/gic-department-list",getGicStore:"/get-store-list"};o=Object(n["a"])(o,"/hb-manage-web"),e["a"]=o}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-5eeae6f1"],{"28a5":function(e,t,n){"use strict";var a=n("aae3"),o=n("cb7c"),r=n("ebd6"),i=n("0390"),s=n("9def"),c=n("5f1b"),u=n("520a"),l=n("79e5"),f=Math.min,h=[].push,d="split",m="length",p="lastIndex",g=4294967295,v=!l((function(){RegExp(g,"y")}));n("214f")("split",2,(function(e,t,n,l){var w;return w="c"=="abbc"[d](/(b)*/)[1]||4!="test"[d](/(?:)/,-1)[m]||2!="ab"[d](/(?:ab)*/)[m]||4!="."[d](/(.?)(.?)/)[m]||"."[d](/()()/)[m]>1||""[d](/.?/)[m]?function(e,t){var o=String(this);if(void 0===e&&0===t)return[];if(!a(e))return n.call(o,e,t);var r,i,s,c=[],l=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),f=0,d=void 0===t?g:t>>>0,v=new RegExp(e.source,l+"g");while(r=u.call(v,o)){if(i=v[p],i>f&&(c.push(o.slice(f,r.index)),r[m]>1&&r.index<o[m]&&h.apply(c,r.slice(1)),s=r[0][m],f=i,c[m]>=d))break;v[p]===r.index&&v[p]++}return f===o[m]?!s&&v.test("")||c.push(""):c.push(o.slice(f)),c[m]>d?c.slice(0,d):c}:"0"[d](void 0,0)[m]?function(e,t){return void 0===e&&0===t?[]:n.call(this,e,t)}:n,[function(n,a){var o=e(this),r=void 0==n?void 0:n[t];return void 0!==r?r.call(n,o,a):w.call(String(o),n,a)},function(e,t){var a=l(w,e,this,t,w!==n);if(a.done)return a.value;var u=o(e),h=String(this),d=r(u,RegExp),m=u.unicode,p=(u.ignoreCase?"i":"")+(u.multiline?"m":"")+(u.unicode?"u":"")+(v?"y":"g"),b=new d(v?u:"^(?:"+u.source+")",p),C=void 0===t?g:t>>>0;if(0===C)return[];if(0===h.length)return null===c(b,h)?[h]:[];var x=0,N=0,O=[];while(N<h.length){b.lastIndex=v?N:0;var I,S=c(b,v?h:h.slice(N));if(null===S||(I=f(s(b.lastIndex+(v?0:N)),h.length))===x)N=i(h,N,m);else{if(O.push(h.slice(x,N)),O.length===C)return O;for(var y=1;y<=S.length-1;y++)if(O.push(S[y]),O.length===C)return O;N=x=I}}return O.push(h.slice(x)),O}]}))},"50c8":function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"enterprise-wrap"},[n("vue-office-header",{attrs:{"project-name":e.projectName},on:{collapseTag:e.collapseTag,toRouterView:e.toRouterView}}),n("div",{staticClass:"enterprise-wrap__body"},[n("div",{staticClass:"content",attrs:{id:"content"}},[n("div",{staticClass:"content-body",style:{height:e.contentHeight}},[n("transition",{attrs:{name:"fade",mode:"out-in"}},[n("router-view")],1)],1)])])],1)},o=[],r=n("f777"),i={name:"EnterprisePage",components:{vueOfficeHeader:r["a"]},data:function(){return{projectName:"haoban-manage-web",collapseFlag:!1,contentHeight:window.screen.availHeight-5+"px"}},mounted:function(){var e=this;e.contentHeight=(document.documentElement.clientHeight||document.body.clientHeight)-64+"px"},methods:{toRouterView:function(e){var t=this;t.$router.push({path:e.path})},collapseTag:function(e){var t=this;t.collapseFlag=e}}},s=i,c=(n("bcc2"),n("2877")),u=Object(c["a"])(s,a,o,!1,null,"7e302da0",null);t["default"]=u.exports},5937:function(e,t,n){"use strict";var a=n("71f6"),o={getRoleMenu:"/list-staff-role-menu"};o=Object(a["a"])(o,"/hb-manage-web"),t["a"]=o},"6ce2":function(e,t,n){e.exports=n.p+"img/member.1eda5d6c.png"},"71f6":function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));n("ac6a"),n("456d");var a=n("b775");function o(e,t){e=e||{};var n=Object.keys(e);return n.forEach((function(n){var o=e[n];"string"===typeof o&&(o={url:o}),o.url="".concat(t).concat(o.url),e[n]=function(e){return Object(a["a"])(o,e)}})),e}},"7ded":function(e,t,n){"use strict";var a=n("71f6"),o={getLoginQrcode:"/get-login-qrcode",getUserInfo:"/get-login-user",loginOut:{url:"/login-out",method:"post",useFormData:!0}};o=Object(a["a"])(o,"/hb-manage-web/auth"),t["a"]=o},8637:function(e,t,n){},bcc2:function(e,t,n){"use strict";var a=n("8637"),o=n.n(a);o.a},cc0d:function(e,t,n){"use strict";var a=n("ed94"),o=n.n(a);o.a},ed94:function(e,t,n){},f777:function(e,t,n){"use strict";var a=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"nav-header"},[a("div",{staticClass:"nav-header-logo fl cursor-pointer",on:{click:e.toIndex}},[a("span",{staticClass:"pro-name"},[e._v("好办管理平台")])]),a("div",{staticClass:"nav-header-item fl"},[e._l(e.menuHead,(function(t,n){return[a("a",{key:n,class:["item-link menu-font-16"],on:{click:function(n){return e.changeRouter(t)}}},[a("span",{class:["inline-block bottom",-1!=t.menuUrl.indexOf(e.pathName)?"current-module":""]},[e._v(e._s(t.menuName))])])]})),a("div",{staticClass:"navuser-info fr"},[e.userInfo.headImg?a("img",{staticClass:"user-img",attrs:{src:e.userInfo.headImg,alt:""}}):a("img",{staticClass:"user-img",attrs:{src:n("6ce2"),alt:"img"}}),a("el-popover",{staticStyle:{"min-width":"95px"},attrs:{placement:"bottom",title:"",width:"95",trigger:"hover","popper-class":"user-header-pop"}},[a("ul",{staticClass:"navsuer-wrap"},[a("li",[a("p",{staticClass:"font-14 color-606266 hide-item"},[e._v(e._s(e.userInfo.staffName||"--"))]),a("p",{staticClass:"font-12 color-909399 hide-item"},[e._v(e._s(e.userInfo.roleName||"--"))])]),a("li",{staticClass:"user-item text-align",on:{click:function(t){return t.stopPropagation(),e.toLoginOut(t)}}},[a("a",{staticClass:"user-text"},[e._v("退出登录")])])]),a("a",{staticClass:"nav-user-name",attrs:{slot:"reference"},slot:"reference"},[a("span",{staticClass:"font-12 color-606266"},[e._v(e._s(e.userInfo.staffName||"--"))]),a("i",{staticClass:"iconfont iconxiala arrowico color-c0c4cc"})])])],1)],2)])},o=[],r=(n("456d"),n("96cf"),n("1da1")),i=(n("ac6a"),n("28a5"),n("7ded")),s=n("5937"),c=s["a"].getRoleMenu,u=i["a"].getUserInfo,l=i["a"].loginOut,f={name:"VueOfficeHeader",components:{},data:function(){return{checkShow:!0,tipText:"请先完成商户初始化设置后,再进行其他操作",repProjectName:"haoban-manage-web",pathName:"",isCollapse:!1,menuHead:[],roleMenuData:[],routePathName:"",userInfo:{staffName:"",nationCode:"",phoneNumber:"",headImg:"",wxEnterpriseId:"",roleName:""}}},mounted:function(){var e=this;e.pathName=e.$route.path,e.routePathName=window.location.hash.split("/")[1],-1!=e.routePathName.indexOf("?")&&(e.routePathName=e.routePathName.split("?")[0]),-1!=e.routePathName.indexOf("/")&&(e.routePathName=e.routePathName.split("/")[0]),localStorage.removeItem("haoBanUser"),e.toLogin()},methods:{toIndex:function(){var e=this;e.$router.push("/contactsList")},changeRouter:function(e){var t=this;if(1==e.target)-1!=e.menuUrl.indexOf("http")?window.open(e.menuUrl):window.open("/haoban-4/#".concat(e.menuUrl));else{t.setleftData(e);var n={};t.roleMenuData.forEach((function(t){e.menuCode!=t.menuCode||t.children.length||(n=t),e.menuCode==t.menuCode&&t.children.length&&(n=t.children[0])})),t.$router.push(n.menuUrl)}},setleftData:function(e){var t=this,n=[];t.roleMenuData.forEach((function(t){e.menuCode==t.menuCode&&n.push(t)})),t.$emit("leftData",n)},toLoginOut:function(){var e=this;e.$confirm("确认退出吗?","提示",{type:"warning"}).then((function(){l({}).then((function(t){"0000"==t.code&&(e.$message({message:"退出成功",type:"success"}),localStorage.removeItem("haoBanUser"),window.location.href=window.location.origin+"/haoban-4/#/login")})).catch((function(e){}))})).catch((function(){}))},toRouter:function(e,t,n){var a=this,o={path:"/"+e,name:t};a.$emit("toRouterView",o)},toLogin:function(){var e=this;u({}).then((function(t){t.result||(t.result={loginStaff:{staffName:"",nationCode:"",phoneNumber:"",headImg:"",wxEnterpriseId:""},role:{roleName:""}}),localStorage.setItem("haoBanUser",JSON.stringify(t.result.loginStaff)),e.userInfo=Object.assign(t.result.loginStaff,t.result.role),e.getData()})).catch((function(e){}))},treeData:function(e){var t=e.filter((function(t){var n=e.filter((function(e){return t.menuCode==e.parentCode&&1==e.isShow}));return n.length>0?(t.hasSonNode=!0,t.children=n):(t.children=[],t.hasSonNode=!1),""==t.parentCode&&1==t.isShow}));return t},getData:function(){var e=this,t={};c(t).then(function(){var t=Object(r["a"])(regeneratorRuntime.mark((function t(n){var a,o,r,i;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if("0000"!=n.code){t.next=14;break}return a=[],o={},r={},n.result.forEach((function(t){1==t.level&&1==t.isShow&&a.push(t),e.$route.path==t.menuUrl&&1==t.level&&1==t.isShow&&(o=t),e.$route.path==t.menuUrl&&1!=t.level&&(r=t)})),e.menuHead=a,t.next=8,e.treeData(JSON.parse(JSON.stringify(n.result)));case 8:e.roleMenuData=t.sent,Object.keys(r).length&&2==r.level&&n.result.forEach((function(e){r.parentCode==e.menuCode&&1==e.level&&1==e.isShow&&(o=e)})),i={},Object.keys(r).length&&3==r.level&&n.result.forEach((function(e){r.parentCode==e.menuCode&&2==e.level&&1==e.isShow&&(i=e)})),Object.keys(i).length&&2==i.level&&n.result.forEach((function(e){i.parentCode==e.menuCode&&1==e.level&&1==e.isShow&&(o=e)})),e.setleftData(o);case 14:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(e){}))}}},h=f,d=(n("cc0d"),n("2877")),m=Object(d["a"])(h,a,o,!1,null,"2a4f88b9",null);t["a"]=m.exports}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-64ba165a"],{"0b7e":function(t,e,a){},"220a":function(t,e,a){},2484:function(t,e,a){"use strict";var n=a("37e0"),r=a.n(n);r.a},"37e0":function(t,e,a){},"3c06":function(t,e,a){},4917:function(t,e,a){"use strict";var n=a("cb7c"),r=a("9def"),i=a("0390"),s=a("5f1b");a("214f")("match",1,(function(t,e,a,o){return[function(a){var n=t(this),r=void 0==a?void 0:a[e];return void 0!==r?r.call(a,n):new RegExp(a)[e](String(n))},function(t){var e=o(a,t,this);if(e.done)return e.value;var c=n(t),l=String(this);if(!c.global)return s(c,l);var u=c.unicode;c.lastIndex=0;var d,m=[],p=0;while(null!==(d=s(c,l))){var h=String(d[0]);m[p]=h,""===h&&(c.lastIndex=i(l,r(c.lastIndex),u)),p++}return 0===p?null:m}]}))},5501:function(t,e,a){},"58f2":function(t,e,a){"use strict";var n=a("0b7e"),r=a.n(n);r.a},"62a7":function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"my-customer-wrap common-set-wrap"},[a("nav-crumb",{attrs:{navpath:t.navpath}}),a("div",{staticClass:"right-content"},[a("div",{staticClass:"right-box",staticStyle:{"min-height":"calc(100vh - 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,n){return a("li",{key:n+"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.brandName||"--"))])]),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,n){return[a("span",{key:n+"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(n,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,n){return[a("span",{key:n+"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(n,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()],1)},r=[],i=(a("96cf"),a("1da1")),s=(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,d=(a("de0b"),a("2877")),m=Object(d["a"])(u,o,c,!1,null,"c9703e40",null),p=m.exports,h=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{}},methods:{changeRoute:function(t){this.$router.push(t)}}},v=g,b=(a("8cd5"),Object(d["a"])(v,h,f,!1,null,"24435593",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)}}},R=F,C=(a("8d79"),Object(d["a"])(R,y,_,!1,null,"647310ec",null)),x=C.exports,I=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,n){return[a("span",{key:n+"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)},N=[],w=a("3081"),D=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)},M=[],k=(a("c5f6"),a("4917"),{getByteLen:function(t){for(var e=""==t||null==t?"":t,a=0,n=0;n<e.length;n++){var r=e.charAt(n);null!=r.match(/[^\x00-\xff]/gi)?a+=2:a+=1}return a},getZhLen:function(t){for(var e=""==t||null==t?"":t,a=0,n=0;n<e.length;n++){var r=e.charAt(n);null!=r.match(/[^\x00-\xff]/gi)?a+=1:a+=.5}return Math.ceil(a)},cutStr:function(t,e,a){for(var n=0,r=0;r<t.length;r++){var i=t.charAt(r);if(1==a&&(encodeURI(i).length>2?n+=1:n+=.5),2==a&&(n+=1),n>=e){var s=n==e?r+1:r;return t.substr(0,s)}}},getByteVal:function(t,e){for(var a=""==t||null==t?"":t,n="",r=0,i=0;i<a.length;i++){if(null!=a[i].match(/[^\x00-\xff]/gi)?r+=1:r+=.5,r>e)break;n+=a[i]}return n},getCharVal:function(t,e){for(var a=""==t||null==t?"":t,n="",r=0,i=0;i<a.length;i++){if(null!=a[i].match(/[^\x00-\xff]/gi)?r+=2:r+=1,r>e)break;n+=a[i]}return n},regPos:function(t){var e=/^\d+(\.\d+)?$/;return e.test(t)}}),L={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=k.getZhLen(t.inputValue):t.inputNum=k.getByteLen(t.inputValue)},methods:{toInput:function(t){var e=this,a="";"word"==e.getByType?(a=k.getByteVal(t.target.value,e.limitLength),e.itemValue=a,e.inputNum=k.getZhLen(e.itemValue)):(a=k.getCharVal(t.target.value,e.limitLength),e.itemValue=a,e.inputNum=k.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=k.getZhLen(a.itemValue):a.inputNum=k.getByteLen(a.itemValue)}}},O=L,$=(a("fa90"),Object(d["a"])(O,D,M,!1,null,"730049ed",null)),A=$.exports,V=a("d157"),J={name:"AuthCommit",components:{commonAlertTip:w["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("eddb"),Object(d["a"])(E,I,N,!1,null,"e858e1f0",null)),T=B.exports,G=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)])},j=[],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("58f2"),Object(d["a"])(W,G,j,!1,null,"083200de",null)),z=Z.exports,H=a("21f4"),K=H["a"].getAuthDetail,Q=H["a"].getEnterprise,X=H["a"].getEnterpriseDetail,Y=H["a"].getGicAdmin,tt=H["a"].postEnterpriseAuth,et={name:"NewAuthMerchant",components:{navCrumb:s["a"],authStep:p,authTip:S,authCommitSuccess:x,authCommit:T,storeAuthDialog:z},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"}]},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:{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){Q(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(i["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;e.authForm.enterpriseId=t.enterpriseId,e.authForm.enterpriseName=t.enterpriseName,e.authForm.bindRange=[],e.authForm.shareRange=[],e.authForm.shareStoreMode="",e.authForm.bindStoreMode="",e.adminList=[],e.$refs["authForm"].validate((function(t){return!!t&&void 0})),e.getAdminList(t.enterpriseId)},getAdminList:function(t){var e=this;Y({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};tt(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;X({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};K(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){}))}}},at=et,nt=(a("2484"),Object(d["a"])(at,n,r,!1,null,"dbbd3738",null));e["default"]=nt.exports},8250:function(t,e,a){},"8cd5":function(t,e,a){"use strict";var n=a("db66"),r=a.n(n);r.a},"8d79":function(t,e,a){"use strict";var n=a("5501"),r=a.n(n);r.a},db66:function(t,e,a){},de0b:function(t,e,a){"use strict";var n=a("220a"),r=a.n(n);r.a},eddb:function(t,e,a){"use strict";var n=a("8250"),r=a.n(n);r.a},fa90:function(t,e,a){"use strict";var n=a("3c06"),r=a.n(n);r.a}}]);
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-6f32e3dc","chunk-33b0918a"],{"0082":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("ul",{staticClass:"role-menu"},[Array.isArray(e.roleList)&&0!=e.roleList.length?e._e():n("li",{staticClass:"no-data"},[e._v("暂无数据")]),e._l(e.roleList,(function(t){return n("li",{key:t,class:["role-item",{active:e.activeRoleId==t.roleId}],on:{click:function(n){return e.onChangeRole(t)}}},[n("span",{staticClass:"role-name"},[e._v(e._s(t.roleName))]),n("el-dropdown",{attrs:{placement:"bottom-start"}},[n("i",{staticClass:"iconfont icongengduo edit-icon"}),n("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[n("el-dropdown-item",{nativeOn:{click:function(n){return e.onEditRole(t)}}},[e._v("编辑")]),e.showDelRoleButton?n("el-dropdown-item",{nativeOn:{click:function(n){return e.onDelRole(t)}}},[e._v("删除")]):e._e()],1)],1)],1)}))],2),n("el-dialog",{attrs:{visible:e.delRole.show,title:"删除角色",width:"600px"},on:{"update:visible":function(t){return e.$set(e.delRole,"show",t)},closed:e.onDelRoleClose}},[n("div",{staticClass:"del-role"},[n("i",{staticClass:"el-icon-warning"}),n("div",{staticClass:"del-role-content"},[n("p",{staticClass:"del-role-tip"},[e._v("确认删除“"+e._s(e.delRole.roleName)+"”角色吗?")]),n("p",{staticClass:"del-role-tip"},[e._v("请在输入框中输入该角色名称,以避免误操作。")]),n("el-input",{staticStyle:{"margin-top":"10px",width:"440px"},model:{value:e.delRole.roleNameInput,callback:function(t){e.$set(e.delRole,"roleNameInput","string"===typeof t?t.trim():t)},expression:"delRole.roleNameInput"}})],1)]),n("template",{slot:"footer"},[n("el-button",{on:{click:function(t){e.delRole.show=!1}}},[e._v("取消")]),n("el-button",{attrs:{type:"primary",loading:e.delRole.loading},on:{click:e.onDelRoleSure}},[e._v("确定")])],1)],2)],1)},o=[],r=(n("c5f6"),n("f286")),l=r["a"].delRole,a={name:"RoleList",props:{roleList:{type:Array,default:function(){return[]}},activeRoleId:[String,Number],showDelRoleButton:{type:Boolean,default:!1}},data:function(){return{delRole:{show:!1,loading:!1,roleId:"",roleName:"",roleNameInput:""}}},methods:{onChangeRole:function(e){this.$emit("change-role",e)},onEditRole:function(e){this.$emit("edit-role",e)},onDelRole:function(e){var t=e.roleId,n=e.roleName;Object.assign(this.delRole,{show:!0,roleId:t,roleName:n})},onDelRoleClose:function(){Object.assign(this.delRole,{roleId:"",roleName:"",roleNameInput:""})},onDelRoleSure:function(){var e=this,t=this.delRole,n=t.roleId,i=t.roleName,o=t.roleNameInput;return 0==o.length?this.$message.warning("请输入角色名称!"):i!=o?this.$message.warning("请输入正确的角色名称!"):(this.delRole.loading=!0,void l({roleId:n}).then((function(t){"0000"==t.code&&(e.$message.success("删除成功!"),e.$emit("del-role-succ",n==e.activeRoleId),e.delRole.show=!1)})).finally((function(){return e.delRole.loading=!1})))}}},s=a,c=(n("575f"),n("2877")),d=Object(c["a"])(s,i,o,!1,null,"7c337432",null);t["default"]=d.exports},2058:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"store-admin-list"},[n("div",{staticClass:"store-role-list"},[0==e.roleList.length?n("p",{staticClass:"no-data"},[e._v("暂无数据")]):e._e(),e._l(e.roleList,(function(t){return n("div",{key:t.enterpriseId},[n("h3",{staticClass:"role-title"},[n("i",{staticClass:"iconfont iconshanghu role-title-icon"}),n("p",{staticClass:"role-title-text"},[e._v(e._s(t.enterpriseName))])]),n("role-list",{attrs:{"role-list":t.roleList,"active-role-id":e.activeRoleId},on:{"edit-role":e.onEditRole,"change-role":e.onChangeRole}})],1)}))],2),n("div",{staticClass:"admin-list"},[n("h3",{staticClass:"admin-list-title"},[e._v("门店成员列表")]),n("el-input",{staticStyle:{width:"238px"},attrs:{placeholder:"请输入姓名/账号/手机号码","prefix-icon":"el-icon-search",clearable:""},on:{change:e.onSearch},model:{value:e.search,callback:function(t){e.search="string"===typeof t?t.trim():t},expression:"search"}}),n("el-alert",{staticStyle:{float:"right",width:"720px"},attrs:{type:"info",title:"拥有门店的权限,能进行一些门店日常业务,如打标签,完成话务等。必须是导购账号 ,不可添加删除门店成员。",closable:!1,"show-icon":""}}),n("el-table",{staticStyle:{"margin-top":"20px"},attrs:{data:e.adminList}},[n("el-table-column",{attrs:{label:"姓名",prop:"staffName",formatter:function(e,t,n){return n||"--"}}}),n("el-table-column",{attrs:{label:"账号",prop:"wxUserId",formatter:function(e,t,n){return n||"--"}}}),n("el-table-column",{attrs:{label:"手机号码",prop:"phoneNumber",formatter:function(e,t,n){return n||"--"}}})],1),e.pager.total>0?n("dm-pagination",{staticStyle:{"text-align":"right"},attrs:{background:"",layout:"total,sizes,prev,pager,next",total:e.pager.total,"page-sizes":e.pager.pageSizes,"page-size":e.pager.pageSize,"current-page":e.pager.currentPage},on:{"current-change":e.onCurrentChange,"size-change":e.onSizeChange}}):e._e()],1)])},o=[],r=(n("386d"),n("5df3"),n("ac6a"),n("0082")),l=n("f286"),a=l["a"].enterpriseList,s=l["a"].roleList,c=l["a"].roleAdminList,d={name:"StoreAdminList",components:{RoleList:r["default"]},data:function(){return{roleList:[],activeRoleId:"",enterpriseId:"",adminList:[],search:"",pager:{total:0,pageSizes:[20,40,60,80],pageSize:20,currentPage:1}}},created:function(){this.$emit("showTab","/store-admin-list"),this.getRoleList()},methods:{getRoleList:function(){var e=this,t=JSON.parse(localStorage.getItem("haoBanUser")||"{}"),n=t.wxEnterpriseId,i=[];n&&a({wxEnterpriseId:n}).then((function(t){var n=t.result||[];e.roleList=n.map((function(e){var t=e.enterpriseId,n=e.enterpriseName;return{enterpriseId:t,enterpriseName:n,roleList:[]}})),0!=e.roleList.length&&(e.roleList.forEach((function(e){i.push(s({enterpriseId:e.enterpriseId,roleType:1}).then((function(t){e.roleList=t.result||[]})))})),Promise.all(i).then((function(){e.activeRoleId||e.roleList.some((function(t){return t.roleList.length>0&&(e.activeRoleId=t.roleList[0].roleId,e.enterpriseId=t.roleList[0].enterpriseId),t.roleList.length>0})),e.activeRoleId&&e.getAdminList()})))}))},getAdminList:function(){var e=this,t={roleId:this.activeRoleId,enterpriseId:this.enterpriseId,search:this.search,pageNum:this.pager.currentPage,pageSize:this.pager.pageSize};c(t).then((function(t){var n=t.result||{},i=n.totalCount,o=n.result;e.pager.total=i||0,e.adminList=o||[]}))},onChangeRole:function(e){var t=e.roleId,n=e.enterpriseId;this.activeRoleId=t,this.enterpriseId=n,this.search="",this.pager.currentPage=1,this.getAdminList()},onEditRole:function(e){this.$router.push("/edit-store-role?roleId=".concat(e.roleId))},onSearch:function(){this.pager.currentPage=1,this.getAdminList()},onSizeChange:function(e){this.pager.pageSize=e,this.onSearch()},onCurrentChange:function(e){this.pager.currentPage=e,this.getAdminList()}}},u=d,p=(n("b14d"),n("2877")),h=Object(p["a"])(u,i,o,!1,null,"3f411422",null);t["default"]=h.exports},3018:function(e,t,n){},"386d":function(e,t,n){"use strict";var i=n("cb7c"),o=n("83a1"),r=n("5f1b");n("214f")("search",1,(function(e,t,n,l){return[function(n){var i=e(this),o=void 0==n?void 0:n[t];return void 0!==o?o.call(n,i):new RegExp(n)[t](String(i))},function(e){var t=l(n,e,this);if(t.done)return t.value;var a=i(e),s=String(this),c=a.lastIndex;o(c,0)||(a.lastIndex=0);var d=r(a,s);return o(a.lastIndex,c)||(a.lastIndex=c),null===d?-1:d.index}]}))},"44e1":function(e,t,n){},"575f":function(e,t,n){"use strict";var i=n("44e1"),o=n.n(i);o.a},"71f6":function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));n("ac6a"),n("456d");var i=n("b775");function o(e,t){e=e||{};var n=Object.keys(e);return n.forEach((function(n){var o=e[n];"string"===typeof o&&(o={url:o}),o.url="".concat(t).concat(o.url),e[n]=function(e){return Object(i["a"])(o,e)}})),e}},"83a1":function(e,t){e.exports=Object.is||function(e,t){return e===t?0!==e||1/e===1/t:e!=e&&t!=t}},b14d:function(e,t,n){"use strict";var i=n("3018"),o=n.n(i);o.a},f286:function(e,t,n){"use strict";var i=n("71f6"),o={addRole:{url:"/add-role",method:"post",useFormData:!0},delRole:"/role-del",editRole:{url:"/role-edit",method:"post",useFormData:!0},roleDetail:"/role-detail",roleList:"/role-list",menuList:"/menu-list",roleAdminList:"/role-admin-list",delAdmin:"/admin-del",enterpriseList:"/auth-enterprise-list",resourceList:"/resource-list"};t["a"]=Object(i["a"])(o,"/hb-manage-web")}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-70a132aa"],{"42c3":function(t,e,a){},"4cd9":function(t,e,a){},"5b4e6":function(t,e,a){"use strict";var s=a("5c96");e["a"]={showmsg:function(t,e){Object(s["Message"])({duration:1e3,message:t||"接口异常",type:e})}}},"71f6":function(t,e,a){"use strict";a.d(e,"a",(function(){return r}));a("ac6a"),a("456d");var s=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){return Object(s["a"])(r,t)}})),t}},a30a:function(t,e,a){"use strict";var s=a("71f6"),r={wxEnterpriseRefresh:"/setting/wx-enterprise-info-flush",wxEnterpriseDetail:"/setting/wx-enterprise-info",getSelfApp:"/setting/secret-list",addSelfApp:{url:"/setting/set-secret",method:"post",useFormData:!0,useIntercept:!1},editSelfApp:{url:"/setting/set-secret",method:"post",useFormData:!0,useIntercept:!1},delSelfApp:{url:"/setting/del-secret",method:"post",useFormData:!0,useIntercept:!1},refreshSelfApp:{url:"/setting/reflush-secret",method:"post",useFormData:!0},getAdmin:"/setting/super-admin-list"};r=Object(s["a"])(r,"/hb-manage-web"),e["a"]=r},a86a:function(t,e,a){"use strict";var s=a("4cd9"),r=a.n(s);r.a},b735:function(t,e,a){"use strict";a.r(e);var s=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"daily-set-wrap "},[a("div",{staticClass:"company-set-content border-box"},[a("div",{staticClass:"company-title m-b-20 flex flex-space-between"},[a("div",{staticClass:"line-h-32"},[a("span",{staticClass:"color-303133 font-14 font-w-600"},[t._v("企业微信基本信息")]),a("el-button",{staticClass:"m-l-20",attrs:{type:"text",loading:t.loadRefesh},on:{click:t.refeshData}},[t._v("同步刷新 ")])],1)]),a("div",{staticClass:"company-info-body"},[a("el-form",{ref:"form",attrs:{model:t.form,"label-width":"105px"}},[a("el-form-item",{attrs:{label:"小程序版本"}},[a("span",{staticClass:"font-14 color-303133"},[t._v(t._s(t.companyObj.smallVersion||"免费版"))])]),a("el-form-item",{attrs:{label:"企业名称"}},[a("span",{staticClass:"font-14 color-303133 p-r-10"},[t._v(t._s(t.companyObj.wxEnterpriseName||"--"))]),a("el-tag",[t._v(" "+t._s("verified"==t.companyObj.corpType?"已认证":"未认证"))]),"verified"==t.companyObj.corpType?a("span",{staticClass:"p-l-10 font-12 color-909399"},[t._v("认证到期 "+t._s(t._f("timeStampToYmd")(t.companyObj.verifiedEndTime)))]):t._e()],1),a("el-form-item",{attrs:{label:"企业ID"}},[a("span",{staticClass:"font-14 color-303133"},[t._v(t._s(t.companyObj.corpId||"--"))])]),a("el-form-item",{attrs:{label:"行业类型"}},[a("span",{staticClass:"font-14 color-303133"},[t._v(t._s(t.companyObj.corpIndustry||"--")+" / "+t._s(t.companyObj.corpSubIndustry||"--"))])]),a("el-form-item",{attrs:{label:"人员规模"}},[a("span",{staticClass:"font-14 color-303133"},[t._v(t._s(t.companyObj.corpScale||"0人"))])]),a("el-form-item",{attrs:{label:"地址"}},[a("span",{staticClass:"font-14 color-303133"},[t._v(t._s(t.companyObj.location||"--"))])])],1)],1),t._m(0),a("div",{staticClass:"company-info-body secret-body"},[a("div",{staticClass:"m-b-20 secret-cell flex"},[a("div",{staticClass:" secret-cell-title"},[a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"用于获取登录小程序用户的手机号/姓名/部门信息。必填项",placement:"top-start"}},[a("span",{staticClass:"font-14 color-606266 common-bottom-border"},[t._v("自建应用:")])])],1),a("div",[t._l(t.tableData,(function(e,s){return a("div",{key:s+"app",staticClass:"self-app-info"},[a("div",{staticClass:"self-app-item secret-name flex flex-space-between"},[a("div",[a("span",{staticClass:"font-14 color-303133 font-w-600 secret-name-span"},[t._v(t._s(e.secretName||"--"))]),a("span",{staticClass:"font-12 color-606266 p-l-15"},[t._v("编辑时间:"+t._s(t._f("formatTimeStamp")(e.updateTime)))])]),a("div",[a("el-button",{attrs:{type:"text",loading:t.loadApp},on:{click:function(a){return t.refreshApp(e)}}},[t._v("同步刷新")]),a("el-button",{attrs:{type:"text"},on:{click:function(a){return t.toEdit(e)}}},[t._v("编辑")]),a("el-button",{attrs:{type:"text"},on:{click:function(a){return t.toDel(e)}}},[t._v("删除")])],1)]),a("div",{staticClass:"m-t-10"},[a("el-form",{ref:"form",refInFor:!0,attrs:{"label-width":"110px"}},[a("el-form-item",{attrs:{label:"Agentld"}},[a("span",{staticClass:"font-14 color-303133"},[t._v(t._s(e.agentId))])]),a("el-form-item",{attrs:{label:"Secret"}},[a("span",{staticClass:"font-14 color-303133"},[t._v(t._s(e.secretVal))]),a("span",{staticClass:"p-l-15 font-14 color-303133"},[a("span",{class:["iconfont",e.checkFlag?"color-49c958 iconchenggong":"color-f83431 iconshibai"]}),a("span",{staticClass:"p-l-10"},[t._v(t._s(e.checkFlag?"校验成功":"校验失败"))])])]),a("el-form-item",{attrs:{label:"应用可见范围"}},t._l(e.displayRange,(function(s,r){return a("span",{key:r+"child",staticClass:"font-14 color-303133 inline-block"},[t._v(t._s(s.name)+" "+t._s(e.displayRange.length>1?";":""))])})),0)],1)],1)])})),t.tableData.length?t._e():a("div",{staticClass:"add-self-app font-14 color-606266 cursor-pointer",on:{click:t.addSecret}},[a("span",{staticClass:"iconfont icontianjiajiahaowubiankuang font-12"}),a("span",{staticClass:"p-l-10"},[t._v("添加")])])],2)])])]),t.addShow?a("add-self-app",{attrs:{"edit-row":t.editRow},on:{closeText:t.closeText,submitText:t.submitText}}):t._e()],1)},r=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"company-title m-b-20 m-t-30"},[a("span",{staticClass:"color-303133 font-14 font-w-600"},[t._v("客户密钥维护")])])}],n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("el-dialog",{attrs:{title:(t.editRow.materialId,"自建应用"),visible:t.dialogVisible,width:"600px","before-close":t.handleClose},on:{"update:visible":function(e){t.dialogVisible=e}}},[a("div",{},[a("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:t.ruleForm,rules:t.rules,"label-width":"100px"}},[a("el-form-item",{attrs:{label:"应用名称",prop:"secretName"}},[a("el-input",{staticClass:"w-440",attrs:{type:"text","max-length":"30"},model:{value:t.ruleForm.secretName,callback:function(e){t.$set(t.ruleForm,"secretName",e)},expression:"ruleForm.secretName"}}),a("span",{staticClass:"input-cell-tip"},[t._v(t._s(t.ruleForm.secretName.length)+"/30")])],1),a("el-form-item",{attrs:{label:"Agentld",prop:"agentId"}},[a("el-input",{staticClass:"w-440",attrs:{type:"textarea",rows:"3","max-length":"30"},model:{value:t.ruleForm.agentId,callback:function(e){t.$set(t.ruleForm,"agentId",e)},expression:"ruleForm.agentId"}}),a("span",{staticClass:"input-cell-tip top-40"},[t._v(t._s(t.ruleForm.agentId.length)+"/30")])],1),a("el-form-item",{attrs:{label:"Secret",prop:"secretVal"}},[a("el-input",{staticClass:"w-440",attrs:{type:"textarea",rows:"3","max-length":"100"},model:{value:t.ruleForm.secretVal,callback:function(e){t.$set(t.ruleForm,"secretVal",e)},expression:"ruleForm.secretVal"}}),a("span",{staticClass:"input-cell-tip top-40"},[t._v(t._s(t.ruleForm.secretVal.length)+"/100")])],1)],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:t.toCancel}},[t._v("取消")]),a("el-button",{attrs:{type:"primary",loading:t.loadBtn},on:{click:function(e){return t.submitForm("ruleForm")}}},[t._v("确认")])],1)])},o=[],c=(a("ac6a"),a("456d"),a("d157")),l=a("a30a"),i=a("5b4e6"),u=l["a"].addSelfApp,p={name:"AddSelfApp",props:{editRow:{type:Object,default:function(){return{}}},categoryId:{type:Object,default:function(){return""}}},data:function(){return{dialogVisible:!0,ruleForm:{secretName:"",secretVal:"",agentId:"",secretId:""},rules:{secretName:[{required:!0,message:"请输入应用名称",trigger:"blur"}],secretVal:[{required:!0,message:"请输入secret",trigger:"blur"}],agentId:[{required:!0,message:"请输入Agentld",trigger:"blur"}]},loadBtn:!1,brandOptions:[]}},mounted:function(){var t=this;Object.keys(t.editRow).length&&(t.ruleForm=JSON.parse(JSON.stringify(t.editRow)))},methods:{toCancel:function(){var t=this;t.$emit("closeText"),t.$refs["ruleForm"].resetFields()},handleClose:function(t){var e=this;e.$emit("closeText"),e.$refs["ruleForm"].resetFields()},submitForm:Object(c["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={agentId:Object(c["c"])(t.ruleForm.agentId),secretName:Object(c["c"])(t.ruleForm.secretName),secretVal:Object(c["c"])(t.ruleForm.secretVal),secretId:t.ruleForm.secretId,secretType:3};u(e).then((function(e){t.loadBtn=!1,"0000"==e.code?(i["a"].showmsg("操作成功","success"),t.$refs["ruleForm"].resetFields(),t.$emit("submitText")):(t.$message({message:e.message||"未知错误",type:"warning"}),t.$emit("submitText"))})).catch((function(e){t.loadBtn=!1}))}},watch:{editRow:function(t){var e=this;Object.keys(t).length&&(e.ruleForm=JSON.parse(JSON.stringify(t)))}}},f=p,d=(a("deee"),a("2877")),m=Object(d["a"])(f,n,o,!1,null,"2fce93fc",null),g=m.exports,h=l["a"].wxEnterpriseRefresh,b=l["a"].wxEnterpriseDetail,v=l["a"].getSelfApp,w=l["a"].delSelfApp,F=l["a"].refreshSelfApp,y={name:"EnterpriseSetPage",components:{addSelfApp:g},data:function(){return{checkShow:!0,tipText:"请在企业密钥维护中输入对应的secret",wxEnterpriseId:localStorage.getItem("haoBanUser")?JSON.parse(localStorage.getItem("haoBanUser")).wxEnterpriseId:"",companyObj:{smallVersion:"",corpName:"",corpId:"",contactFlag:!1,verifiedEndTime:"",corpIndustry:"",corpSubIndustry:"",corpUserMax:"",location:""},loadRefesh:!1,tableData:[],addShow:!1,editRow:{},loadApp:!1}},mounted:function(){var t=this;t.$emit("showTab","/enterpriseSet"),document.documentElement.style.backgroundColor="#f0f2f5",t.getData(),t.getApp()},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},methods:{addSecret:function(){var t=this;t.addShow=!0,t.editRow={}},toEdit:function(t){var e=this;e.addShow=!0,e.editRow=JSON.parse(JSON.stringify(t))},closeText:function(){var t=this;t.addShow=!1,t.editRow={}},submitText:function(){var t=this;t.addShow=!1,t.editRow={},t.getApp()},refreshApp:function(t){var e=this;e.loadApp=!0;var a={secretId:t.secretId};F(a).then((function(t){e.loadApp=!1,"0000"==t.code?(i["a"].showmsg("刷新成功","success"),e.getApp()):(i["a"].showmsg(t.message,"warning"),e.getApp())})).catch((function(t){e.loadApp=!1}))},toDel:function(t){var e=this;e.$confirm("确定删除当前自建应用?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){e.postDel(t)})).catch((function(){}))},postDel:function(t){var e=this,a={secretId:t.secretId};w(a).then((function(t){"0000"==t.code?(i["a"].showmsg("删除成功","success"),e.getApp()):(e.$message({message:t.message||"接口异常",type:"warning"}),e.getApp())})).catch((function(t){}))},refeshData:function(){var t=this;t.refreshData()},refreshData:function(){var t=this;t.loadRefesh=!0;var e={wxEnterpriseId:t.wxEnterpriseId};h(e).then((function(e){t.loadRefesh=!1,"0000"==e.code&&i["a"].showmsg("刷新成功","success"),t.getData()})).catch((function(e){t.loadRefesh=!1}))},getApp:function(){var t=this,e={secretType:3};v(e).then((function(e){t.tableData=e.result||[]})).catch((function(t){}))},getData:function(){var t=this,e={wxEnterpriseId:t.wxEnterpriseId};b(e).then((function(e){t.companyObj=e.result||{}})).catch((function(t){}))}}},_=y,x=(a("a86a"),Object(d["a"])(_,s,r,!1,null,"c1faccc4",null));e["default"]=x.exports},d157:function(t,e,a){"use strict";a.d(e,"a",(function(){return s})),a.d(e,"b",(function(){return r})),a.d(e,"c",(function(){return n}));a("c5f6"),a("a481"),a("28a5"),a("6b54");function s(t,e){var a,s=e||200;return function(){var e=this,r=arguments;a&&clearTimeout(a),a=setTimeout((function(){a=null,t.apply(e,r)}),s)}}function r(t,e){var a,s,r=e||200;return function(){var e=this,n=arguments,o=+new Date;a&&o-a<r?(clearTimeout(s),s=setTimeout((function(){a=o,t.apply(e,n)}),r)):(a=o,t.apply(e,n))}}function n(t){return t=t.replace(/\uD83C[\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F]|[\uD800-\uDBFF]|[\uDC00-\uDFFF]|[^\u0020-\u007E\u00A0-\u00BE\u2E80-\uA4CF\uF900-\uFAFF\uFE30-\uFE4F\uFF00-\uFFEF\u0080-\u009F\u2000-\u201f\u2026\u2022\u20ac\r\n]/g,""),unescape(escape(t).replace(/\%uD.{3}/g,""))}},deee:function(t,e,a){"use strict";var s=a("42c3"),r=a.n(s);r.a}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-70b39bcc"],{"259b":function(e,t,a){},3582:function(e,t,a){},"38b9":function(e,t,a){"use strict";var r=a("bf13"),n=a.n(r);n.a},"4dbe":function(e,t,a){"use strict";var r=a("e6f1"),n=a.n(r);n.a},"7dc6":function(e,t,a){"use strict";a.r(t);var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"my-customer-wrap common-set-wrap"},[a("nav-crumb",{attrs:{navpath:e.navpath}}),a("div",{staticClass:"right-content"},[a("div",{staticClass:"apps-content-right border-box"},[a("el-form",{ref:"adminForm",attrs:{model:e.adminForm,rules:e.rules,"label-width":"100px"}},[a("el-form-item",{attrs:{label:"管理员",prop:"adminList"}},[e.$route.query.staffId?a("div",[e._v(e._s(e.adminName||"--"))]):e._e(),e.$route.query.staffId?e._e():a("div",{staticClass:"admin-list-wrap"},[a("div",{staticClass:"el-select store-item-content admin-select",on:{click:e.showAdmin}},[e.adminForm.adminList.length?a("div",{staticClass:"el-select__tags"},[a("span",{staticStyle:{display:"block"}},[e._l(e.adminForm.adminList,(function(t,r){return[a("span",{key:r+"bind",staticClass:"el-tag el-tag--info el-tag--small"},[a("span",{staticClass:"el-select__tags-text"},[e._v(e._s(t.levelName||"--"))]),a("i",{staticClass:"el-tag__close el-icon-close",on:{click:function(t){return t.stopPropagation(),e.delAdmin(r,e.adminForm.adminList)}}})])]}))],2)]):e._e(),e.adminForm.adminList.length?e._e():a("div",{staticClass:"add-admin-btn font-14 color-606266 cursor-pointer",on:{click:e.showAdmin}},[a("span",{staticClass:"iconfont icontianjiajiahaowubiankuang font-12"}),a("span",{staticClass:"p-l-10"},[e._v("添加")])])])])]),a("el-form-item",{attrs:{label:"资源范围",prop:"enterpriseList"}},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"multipleTable",staticStyle:{width:"100%"},attrs:{data:e.tableData,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{label:"商户名称",width:"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.enterpriseName||"--")+"\n ")]}}])}),a("el-table-column",{attrs:{label:"授权范围"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-radio",{attrs:{label:"1"},model:{value:t.row.radio,callback:function(a){e.$set(t.row,"radio",a)},expression:"scope.row.radio"}},[e._v("授权")]),1==t.row.radio?a("div",{staticClass:"el-select store-item-content",on:{click:function(a){return e.showAuth(t.$index,t.row)}}},[t.row.bindStoreMode>0?a("div",{staticClass:"el-select__tags"},[a("span",{staticStyle:{display:"block"}},[e._l(t.row.bindRange,(function(r,n){return[a("span",{key:n+"bind",staticClass:"el-tag el-tag--info el-tag--small"},[a("span",{staticClass:"el-select__tags-text"},[e._v(e._s(r.storeInfoName||r.storeGroupName))]),a("i",{staticClass:"el-tag__close el-icon-close",on:{click:function(a){return a.stopPropagation(),e.delAuth(n,t.row.bindRange)}}})])]}))],2)]):e._e(),0==t.row.bindStoreMode&&""!==t.row.bindStoreMode?a("span",{staticClass:"p-l-10 font-14 color-909399"},[e._v("已选全部")]):e._e()]):e._e(),a("el-radio",{staticClass:"m-l-10",attrs:{label:"2"},model:{value:t.row.radio,callback:function(a){e.$set(t.row,"radio",a)},expression:"scope.row.radio"}},[e._v("不授权")])]}}])})],1)],1),a("el-form-item",{staticClass:"m-t-20",attrs:{prop:""}},[a("el-button",{attrs:{type:"primary",loading:e.loadBtn},on:{click:function(t){return e.saveAdmin("adminForm")}}},[e._v("确认"+e._s(e.$route.query.staffId?"编辑":"新建"))])],1)],1)],1)]),a("select-admin",{attrs:{"show-admin-flag":e.showAdminFlag,"select-admin":e.adminForm.adminList},on:{checkAdmins:e.checkAdmins}}),a("select-admin-store",{attrs:{"show-auth-flag":e.showAuthFlag,"enterprise-id":e.enterpriseId,"select-mode":e.selectMode,"range-data":e.rangeData,"bind-type":2},on:{closeSet:e.closeSet}})],1)},n=[],s=(a("ac6a"),a("29b6")),o=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{attrs:{width:"418px",title:"添加管理员",visible:e.setVisible,"append-to-body":"","before-close":e.handleClose},on:{"update:visible":function(t){e.setVisible=t}}},[a("div",{staticClass:"bind-store-body"},[a("div",{staticClass:"font-14 color-606266"},[e._v("已选择 "),a("span",{staticClass:"color-303133"},[e._v(e._s(e.totalNum||"0"))]),e._v(" 人")]),a("div",{staticClass:"select-search m-t-10"},[a("el-input",{attrs:{placeholder:"请输入成员名称",maxlength:"50",clearable:""},on:{clear:e.clearSearch},nativeOn:{keyup:function(t){return function(t){return e.toInput(t,e.searchSelect)}(t)}},model:{value:e.searchSelect,callback:function(t){e.searchSelect=t},expression:"searchSelect"}},[a("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})])],1),a("div",{staticClass:"select-tree-wrap auth-select-tree m-t-20"},[a("el-tree",{directives:[{name:"show",rawName:"v-show",value:""==e.searchSelect,expression:"searchSelect == ''"}],ref:"groupTree",attrs:{load:e.loadNode,lazy:"",data:e.groupData,props:e.defaultProps},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.node,n=t.data;return a("span",{staticClass:"custom-tree-node"},[a("span",[1==n.levelType?a("el-checkbox",{attrs:{disabled:1==n.bindFlag},on:{change:function(t){return e.changeItem(t,n)}},model:{value:n.checked,callback:function(t){e.$set(n,"checked",t)},expression:"data.checked"}}):e._e(),a("span",{staticClass:"font-14 color-606266 p-l-10"},[e._v(e._s(r.label))])],1),1==n.bindFlag?a("span",{staticClass:"font-12 color-909399 p-l-10"},[e._v("已选中")]):e._e()])}}])}),a("div",{directives:[{name:"show",rawName:"v-show",value:e.searchSelect,expression:"searchSelect"}],staticClass:"el-select-dropdown__wrap el-scrollbar__wrap",staticStyle:{overflow:"auto"}},[a("el-checkbox-group",{attrs:{max:50},on:{change:e.handleStoresChange},model:{value:e.checkedList,callback:function(t){e.checkedList=t},expression:"checkedList"}},[a("ul",{staticClass:"el-scrollbar__view el-select-dropdown__list"},[e._l(e.searchList,(function(t){return a("li",{key:t.staffId,class:["el-select-dropdown__item flex flex-space-between",t.select?"selected hover":""]},[a("el-checkbox",{attrs:{disabled:1==t.bindFlag,label:t.staffId}},[e._v(e._s(t.staffName))]),1==t.bindFlag?a("span",{staticClass:"font-12 color-909399 p-l-10"},[e._v("已选中")]):e._e()],1)})),e.searchList.length?e._e():a("li",{staticClass:"text-center"},[a("span",[e._v("暂无数据")])])],2)])],1)],1)]),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:e.cancel}},[e._v("取消")]),a("el-button",{attrs:{type:"primary"},on:{click:e.submitForm}},[e._v("确定")])],1)])},i=[];a("6762"),a("2fdb"),a("5df3"),a("4f7f");function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,r=new Array(t);a<t;a++)r[a]=e[a];return r}function c(e){if(Array.isArray(e))return l(e)}function d(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}function u(e,t){if(e){if("string"===typeof e)return l(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?l(e,t):void 0}}function f(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function h(e){return c(e)||d(e)||u(e)||f()}a("96cf");var p=a("1da1"),m=a("d157"),g=a("71f6"),b={getAdminList:"/level-list",getSearchAdminList:"/staff-search",getRoleRange:"/role-range",addAdmin:{url:"/role-range-save",method:"post",useFormData:!0,useIntercept:!1}};b=Object(g["a"])(b,"/hb-manage-web");var v=b,S=a("5b4e6"),y=v.getAdminList,k=v.getSearchAdminList,I={name:"SelectAdmin",props:{showAdminFlag:{type:Boolean,default:!1},selectAdmin:{type:[Object,Array],default:function(){return[]}}},data:function(){return{wxEnterpriseId:localStorage.getItem("haoBanUser")?JSON.parse(localStorage.getItem("haoBanUser")).wxEnterpriseId:"",searchSelect:"",groupData:[],groupDataCopy:[],setVisible:!1,defaultProps:{children:"children",label:"label",isLeaf:"leaf"},totalNum:"0",totalIds:[],searchList:[],checkedList:[],checkedPeople:[],totalArr:[]}},mounted:function(){var e=this;if(e.totalNum=e.selectAdmin.length,e.totalIds=e.selectAdmin.map((function(e){return e.levelId}))||[],e.checkedList=e.selectAdmin.map((function(e){return e.levelId}))||[],e.setVisible=e.showAdminFlag,e.totalArr=JSON.parse(JSON.stringify(e.selectAdmin))||[],e.$route.query.staffId)return!1;e.getStaff()},methods:{changeItem:function(){var e=Object(p["a"])(regeneratorRuntime.mark((function e(t,a){var r,n,s;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return r=this,!t&&r.checkedList.indexOf(a.levelId)&&r.checkedList.splice(r.checkedList.indexOf(a.levelId),1),r.checkedPeople=[],e.next=5,r.getCheckData();case 5:return r.totalIds=h(new Set([].concat(h(r.checkedList),h(r.checkedPeople.map((function(e){return e.levelId}))))))||[],r.checkedList=h(new Set([].concat(h(r.checkedList),h(r.checkedPeople.map((function(e){return e.levelId}))))))||[],n=JSON.parse(JSON.stringify(r.totalArr)),n=n.concat(r.checkedPeople),e.next=11,r.delDubbleData(n);case 11:t||-1==r.totalArr.map((function(e){return e.levelId})).indexOf(a.levelId)||(s=[],r.totalArr.forEach((function(e){e.levelId!=a.levelId&&s.push(e)})),r.totalArr=JSON.parse(JSON.stringify(s))),r.totalNum=r.totalArr.length;case 13:case"end":return e.stop()}}),e,this)})));function t(t,a){return e.apply(this,arguments)}return t}(),delDubbleData:function(e){var t=this,a={};e=e.reduce((function(e,t){return!a[t.levelId]&&(a[t.levelId]=e.push(t)),e}),[]),t.totalArr=JSON.parse(JSON.stringify(e))},handleClose:function(e){var t=this;e(),t.$emit("checkAdmins","close")},cancel:function(){var e=this;e.$emit("checkAdmins","close")},submitForm:function(){var e=Object(p["a"])(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t=this,t.totalArr.length){e.next=4;break}return S["a"].showmsg("请选择管理员","warning"),e.abrupt("return",!1);case 4:t.$emit("checkAdmins",JSON.parse(JSON.stringify(t.totalArr)));case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),handleStoresChange:function(){var e=Object(p["a"])(regeneratorRuntime.mark((function e(t){var a,r,n,s,o;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return a=this,r=[],a.searchList.forEach((function(e){t.includes(e.levelId)&&r.push(e)})),a.totalNum=t.length,a.totalIds=t,n=JSON.parse(JSON.stringify(a.totalArr)),n=n.concat(r),e.next=9,a.delDubbleData(n);case 9:s=0;case 10:if(!(s<a.groupData.length)){e.next=19;break}if(o=a.groupData[s],t.includes(o.levelId)?o.checked=!0:o.checked=!1,!o.children||!o.children.length){e.next=16;break}return e.next=16,a.setChildCheck(o,t);case 16:s++,e.next=10;break;case 19:return a.checkedPeople=[],e.next=22,a.getCheckData();case 22:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}(),setChildCheck:function(){var e=Object(p["a"])(regeneratorRuntime.mark((function e(t,a){var r,n,s;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:r=this,n=0;case 2:if(!(n<t.children.length)){e.next=11;break}if(s=t.children[n],a.includes(s.levelId)?s.checked=!0:s.checked=!1,!s.children||!s.children.length){e.next=8;break}return e.next=8,r.setChildCheck(s,a);case 8:n++,e.next=2;break;case 11:case"end":return e.stop()}}),e,this)})));function t(t,a){return e.apply(this,arguments)}return t}(),getCheckData:function(){var e=Object(p["a"])(regeneratorRuntime.mark((function e(){var t,a,r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:t=this,a=0;case 2:if(!(a<t.groupData.length)){e.next=11;break}if(r=t.groupData[a],r.checked&&t.checkedPeople.push(r),!r.children||!r.children.length){e.next=8;break}return e.next=8,t.getChildCheck(r.children);case 8:a++,e.next=2;break;case 11:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),getChildCheck:function(){var e=Object(p["a"])(regeneratorRuntime.mark((function e(t){var a,r,n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:a=this,r=0;case 2:if(!(r<t.length)){e.next=11;break}if(n=t[r],n.checked&&a.checkedPeople.push(n),!n.children||!n.children.length){e.next=8;break}return e.next=8,a.getChildCheck(n.children);case 8:r++,e.next=2;break;case 11:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}(),loadNode:function(){var e=Object(p["a"])(regeneratorRuntime.mark((function e(t,a){var r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(r=this,!r.$route.query.staffId){e.next=3;break}return e.abrupt("return",!1);case 3:if(0!==t.level){e.next=7;break}return e.abrupt("return",a(r.getStaff()));case 7:return e.next=9,r.getStaff(t,t.data,a);case 9:case"end":return e.stop()}}),e,this)})));function t(t,a){return e.apply(this,arguments)}return t}(),getSearchData:function(e){var t=this,a={staffName:e,wxEnterpriseId:t.wxEnterpriseId};k(a).then((function(e){e.result&&e.result.length&&e.result.forEach((function(e){e.levelId=e.staffId,e.levelName=e.staffName})),t.searchList=e.result||[]})).catch((function(e){}))},toInput:Object(m["a"])((function(e,t){var a=this;if(""==String(a.searchSelect).trim())return!1;a.getSearchData(a.searchSelect)}),200),clearSearch:function(){return!1},getStaff:function(e,t,a){var r=this,n={departmentId:t?t.levelId:"",wxEnterpriseId:r.wxEnterpriseId};y(n).then((function(n){if(n.result&&n.result.length&&n.result.forEach((function(e){e.children=[],e.checked=!!r.totalIds.includes(e.levelId),e.label=e.levelName,e.leaf=1==e.levelType})),e)return a(n.result),t.children||r.$set(t,"children",[]),t.children=n.result||[],r.$forceUpdate(),!1;r.groupData=n.result||[]})).catch((function(e){}))},setSelectData:function(){var e=Object(p["a"])(regeneratorRuntime.mark((function e(t){var a,r,n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:a=this,r=0;case 2:if(!(r<a.groupData.length)){e.next=11;break}if(n=a.groupData[r],t.includes(n.levelId)?n.checked=!0:n.checked=!1,!n.children||!n.children.length){e.next=8;break}return e.next=8,a.setChildCheck(n,t);case 8:r++,e.next=2;break;case 11:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},watch:{showAdminFlag:function(e){this.setVisible=e},selectAdmin:function(e){var t=this;t.totalNum=e.length,t.totalIds=e.map((function(e){return e.levelId}))||[],t.checkedList=e.map((function(e){return e.levelId}))||[],t.totalArr=JSON.parse(JSON.stringify(e))||[],t.setSelectData(t.checkedList)}}},_=I,w=(a("9614"),a("2877")),D=Object(w["a"])(_,o,i,!1,null,"1b001d34",null),x=D.exports,C=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{class:["store-auth-range",e.visibleFlag?"show-range":"hide-range"]},[a("div",{staticClass:"common-mask cursor-pointer",on:{click:function(t){return t.stopPropagation(),e.handleClose(t)}}}),a("div",{staticClass:"bind-body border-box"},[a("div",{staticClass:"auth-range-title font-18 color-303133 m-b-20"},[e._v("门店管辖范围")]),a("common-alert-tip",{attrs:{width:"100%","tip-content":e.tipContent}}),a("div",{staticClass:"el-form-item el-form-item--large m-t-20"},[a("label",{staticClass:"el-form-item__label",staticStyle:{width:"143px"},attrs:{for:"name"}},[e._v("\n 门店绑定授权范围\n ")]),a("div",{staticClass:"el-form-item__content",staticStyle:{"margin-left":"143px"}},[a("el-radio",{attrs:{label:0,disabled:""},model:{value:e.bindFormData.bindStoreMode,callback:function(t){e.$set(e.bindFormData,"bindStoreMode",t)},expression:"bindFormData.bindStoreMode"}},[e._v("所有门店")]),a("el-radio",{staticClass:"m-l-40 m-r-8",attrs:{label:1,disabled:""},model:{value:e.bindFormData.bindStoreMode,callback:function(t){e.$set(e.bindFormData,"bindStoreMode",t)},expression:"bindFormData.bindStoreMode"}},[e._v("选择分组")]),a("el-radio",{staticClass:"m-l-40 m-r-8",attrs:{label:2,disabled:""},model:{value:e.bindFormData.bindStoreMode,callback:function(t){e.$set(e.bindFormData,"bindStoreMode",t)},expression:"bindFormData.bindStoreMode"}},[e._v("选择门店")]),"1"==e.bindFormData.bindStoreMode?a("store-auth-group-dis",{attrs:{"company-id":e.selectEnterpriseId,"store-type":1,"select-group":1==e.bindFormData.bindStoreMode?e.bindFormData.bindRange:[]}}):e._e(),"2"==e.bindFormData.bindStoreMode?a("store-auth-store-dis",{attrs:{"company-id":e.selectEnterpriseId,"store-type":1,"select-store":2==e.bindFormData.bindStoreMode?e.bindFormData.bindRange:[]}}):e._e()],1)]),a("div",{staticClass:"el-form-item el-form-item--large"},[a("label",{staticClass:"el-form-item__label",staticStyle:{width:"143px"},attrs:{for:"name"}},[e._v("\n 门店共享授权范围\n ")]),a("div",{staticClass:"el-form-item__content",staticStyle:{"margin-left":"143px"}},[a("el-radio",{attrs:{label:0,disabled:""},model:{value:e.bindFormData.shareStoreMode,callback:function(t){e.$set(e.bindFormData,"shareStoreMode",t)},expression:"bindFormData.shareStoreMode"}},[e._v("所有门店")]),a("el-radio",{staticClass:"m-l-40 m-r-8",attrs:{label:1,disabled:""},model:{value:e.bindFormData.shareStoreMode,callback:function(t){e.$set(e.bindFormData,"shareStoreMode",t)},expression:"bindFormData.shareStoreMode"}},[e._v("选择分组")]),a("el-radio",{staticClass:"m-l-40 m-r-8",attrs:{label:2,disabled:""},model:{value:e.bindFormData.shareStoreMode,callback:function(t){e.$set(e.bindFormData,"shareStoreMode",t)},expression:"bindFormData.shareStoreMode"}},[e._v("选择门店")]),"1"==e.bindFormData.shareStoreMode?a("store-auth-group-dis",{attrs:{"company-id":e.selectEnterpriseId,"store-type":2,"select-group":1==e.bindFormData.shareStoreMode?e.bindFormData.shareRange:[]}}):e._e(),"2"==e.bindFormData.shareStoreMode?a("store-auth-store-dis",{attrs:{"company-id":e.selectEnterpriseId,"store-type":2,"select-store":2==e.bindFormData.shareStoreMode?e.bindFormData.shareRange:[]}}):e._e()],1)]),a("div",{staticClass:"el-form-item el-form-item--large"},[a("label",{staticClass:"el-form-item__label",staticStyle:{width:"143px"},attrs:{for:"name"}},[e._v("\n 管理员管辖范围\n ")]),a("div",{staticClass:"el-form-item__content",staticStyle:{"margin-left":"143px"}},[a("el-radio",{attrs:{label:"0"},on:{change:e.changeRange},model:{value:e.formData.sendRange,callback:function(t){e.$set(e.formData,"sendRange",t)},expression:"formData.sendRange"}},[e._v("所有门店")]),a("el-radio",{staticClass:"m-l-40 m-r-8",attrs:{label:"1"},on:{change:e.changeRange},model:{value:e.formData.sendRange,callback:function(t){e.$set(e.formData,"sendRange",t)},expression:"formData.sendRange"}},[e._v("选择分组")]),a("el-radio",{staticClass:"m-l-40 m-r-8",attrs:{label:"2"},on:{change:e.changeRange},model:{value:e.formData.sendRange,callback:function(t){e.$set(e.formData,"sendRange",t)},expression:"formData.sendRange"}},[e._v("选择门店")]),("1"!=e.formData.sendRange&&"2"!=e.formData.sendRange||e.formData.selectList.length)&&"null"!=String(e.formData.sendRange)&&""!==e.formData.sendRange?e._e():a("div",{staticClass:"el-form-item__error"},[e._v("请选择绑定门店")]),"1"==e.formData.sendRange?a("store-auth-group",{attrs:{"company-id":e.selectEnterpriseId,"store-type":2,"select-group":e.selectGroupData},on:{checkGroupIds:e.checkGroupIds}}):e._e(),"2"==e.formData.sendRange?a("store-auth-store",{attrs:{"company-id":e.selectEnterpriseId,"store-type":2,"select-store":e.selectStoreData},on:{checkStoreIds:e.checkStoreIds}}):e._e()],1)]),a("div",{staticClass:"el-form-item el-form-item--large"},[a("div",{staticClass:"el-form-item__content",staticStyle:{"margin-left":"143px"}},[a("el-button",{on:{click:e.cancel}},[e._v("取消")]),a("el-button",{attrs:{type:"primary"},on:{click:e.submitForm}},[e._v("确定")])],1)])],1)])},N=[],R=(a("c5f6"),function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"bind-store-body"},[a("div",{staticClass:"select-search"},[a("el-input",{attrs:{placeholder:"请输入分组名称",clearable:""},on:{clear:e.clearSearch},nativeOn:{keyup:function(t){return function(t){return e.toInput(t,e.searchSelect)}(t)}},model:{value:e.searchSelect,callback:function(t){e.searchSelect=t},expression:"searchSelect"}},[a("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})])],1),a("div",{staticClass:"select-tree-wrap auth-select-tree m-t-20"},[a("el-tree",{ref:"groupTree",attrs:{"filter-node-method":e.filterNode,"check-strictly":"",data:e.groupData,"node-key":"storeGroupId","show-checkbox":"","default-expand-all":"",props:e.defaultProps,"expand-on-click-node":!1},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.node,n=t.data;return a("span",{staticClass:"custom-tree-node",attrs:{id:n.storeGroupId}},[a("span",{staticClass:"font-14 color-606266"},[e._v(e._s(r.label))]),1==n.bindFlag&&1!=n.auditFlag?a("span",{staticClass:"font-12 color-909399 p-l-10"},[e._v(e._s(n.bindWxEnterpriseName)+" 企业已授权")]):e._e(),1==n.auditFlag?a("span",{staticClass:"font-12 color-909399 p-l-10"},[e._v(e._s(n.bindWxEnterpriseName)+" 企业授权中")]):e._e()])}}])})],1)])}),F=[],O=a("21f4"),A=O["a"].getGroupList,$={name:"StoreAuthGroupPage",props:{companyId:{type:String,default:""},storeType:{type:String,default:"1"},selectGroup:{type:[Object,Array],default:function(){return{}}}},data:function(){return{searchSelect:"",groupData:[],groupDataCopy:[],defaultProps:{children:"children",label:"storeGroupName"}}},mounted:function(){var e=this;e.companyId&&e.getGroup(),e.selectGroup.length?e.$nextTick((function(){e.$refs.groupTree.setCheckedKeys(e.selectGroup.map((function(e){return e.storeGroupId})))})):e.$nextTick((function(){e.$refs.groupTree.setCheckedKeys([])}))},methods:{filterNode:function(e,t){return!e||!t.label||-1!==t.label.indexOf(e)},toInput:Object(m["a"])((function(e,t){var a=this;if(!a.groupDataCopy.length)return!1}),200),clearSearch:function(){return!1},checkChild:function(e,t){var a=this;e.children.forEach((function(e){a.$refs.groupTree.setChecked(e.storeGroupId,t,!0),e.disabled=!0,e.children&&e.children.length&&a.checkChild(e,t)}))},treeData:function(e){var t=e.filter((function(t){var a=e.filter((function(e){return t.storeGroupId==e.parentId}));return a.length>0?(t.hasSonNode=!0,t.children=a):(t.children=[],t.hasSonNode=!1),0==t.parentId}));return t},setSelectCheck:function(){var e=this,t=e.selectGroup.map((function(e){return e.storeGroupId}));e.groupData.forEach((function(a){a.disabled=!0,t.includes(a.storeGroupId)&&a.children.length&&e.checkChild(a,!0),t.includes(a.storeGroupId)||e.disableChild(a,t)}))},disableChild:function(e,t){var a=this;e.children.forEach((function(e){e.disabled=!0,t.includes(e.storeGroupId)&&e.children.length&&a.checkChild(e,!0),!t.includes(e.storeGroupId)&&e.children.length&&a.disableChild(e,t)}))},getGroup:function(){var e=this,t={type:e.storeType,enterpriseId:e.companyId};A(t).then(function(){var t=Object(p["a"])(regeneratorRuntime.mark((function t(a){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return a.result&&a.result.length&&a.result.forEach((function(e){e.expand=!1,e.children=[],e.disabled=!1,e.label=e.storeGroupName})),t.next=3,e.treeData(JSON.parse(JSON.stringify(a.result)));case 3:if(t.t0=t.sent,t.t0){t.next=6;break}t.t0=[];case 6:e.groupData=t.t0,e.groupDataCopy=JSON.parse(JSON.stringify(a.result)),e.$nextTick((function(){e.setSelectCheck()}));case 9:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(e){}))}},watch:{searchSelect:function(e){this.$refs.groupTree.filter(e)},selectGroup:function(e){var t=this;e.length?t.$nextTick((function(){t.$refs.groupTree.setCheckedKeys(e.map((function(e){return e.storeGroupId})))})):t.$nextTick((function(){t.$refs.groupTree.setCheckedKeys([])}))},companyId:function(e){var t=this;e&&t.getGroup()}}},M=$,J=(a("38b9"),Object(w["a"])(M,R,F,!1,null,"296e4081",null)),L=J.exports,E=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"daily-store-select"},[a("div",{staticClass:"select-search"},[a("el-input",{staticStyle:{width:"100%"},attrs:{placeholder:"请输入门店名称/代码",clearable:""},on:{clear:e.clearSearch},nativeOn:{keyup:function(t){return function(t){return e.toInput(t,e.searchSelect)}(t)}},model:{value:e.searchSelect,callback:function(t){e.searchSelect=t},expression:"searchSelect"}},[a("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})])],1),a("div",{staticClass:"el-scrollbar define-search-select"},[a("div",{staticClass:"el-select-dropdown__wrap el-scrollbar__wrap",staticStyle:{overflow:"auto"}},[a("el-checkbox-group",{attrs:{max:50},on:{change:e.handleStoresChange},model:{value:e.dailyRuleForm.stores,callback:function(t){e.$set(e.dailyRuleForm,"stores",t)},expression:"dailyRuleForm.stores"}},[a("ul",{staticClass:"el-scrollbar__view el-select-dropdown__list"},[e._l(e.stores,(function(t){return a("li",{key:t.storeInfoId,class:["el-select-dropdown__item",t.select?"selected hover":""],on:{click:function(a){return a.stopPropagation(),e.toShowMsg(t)}}},[a("el-checkbox",{attrs:{disabled:"",label:t.storeInfoId}},[e._v(e._s(t.storeInfoName))]),1==t.bindFlag&&1!=t.auditFlag?a("span",{staticClass:"font-12 color-909399 p-l-10"},[e._v(e._s(t.bindWxEnterpriseName)+" 企业已授权")]):e._e(),1==t.auditFlag?a("span",{staticClass:"font-12 color-909399 p-l-10"},[e._v(e._s(t.bindWxEnterpriseName)+" 企业授权中")]):e._e()],1)})),e.stores.length?e._e():a("li",{staticClass:"text-center"},[a("span",[e._v("暂无数据")])])],2)])],1)])])},G=[],j=O["a"].getStoreList,T={name:"StoreAuthStore",props:{companyId:{type:String,default:""},storeType:{type:String,default:"1"},selectStore:{type:[Object,Array],default:function(){return{}}}},data:function(){return{checkAll:!1,isIndeterminate:!1,searchSelect:"",stores:[],storesCopy:[],dailyRuleForm:{stores:[]},pageNum:1,pageSize:300}},mounted:function(){var e=this;e.stores=[],e.storesCopy=[],e.companyId&&(e.pageNum=1,e.getStoreData()),e.selectStore.length?e.dailyRuleForm.stores=e.selectStore.map((function(e){return e.storeInfoId}))||[]:e.dailyRuleForm.stores=[]},methods:{toShowMsg:function(e){1==e.bindFlag&&S["a"].showmsg("当前门店已被其他企业绑定,当前企业无法选择!","warning")},handleStoresChange:function(e){var t=this,a=[];t.stores.forEach((function(t){e.includes(t.storeInfoId)&&a.push(t)})),t.$emit("checkStoreIds",JSON.parse(JSON.stringify(a)))},toInput:Object(m["a"])((function(e,t){var a=this;""!=a.searchSelect&&(a.stores=[],a.pageNum=1,a.getStoreData())}),500),clearSearch:function(){var e=this;e.stores=[],e.pageNum=1,e.getStoreData()},getStoreData:function(){var e=this,t={search:e.searchSelect,enterpriseId:e.companyId,type:e.storeType,pageNum:e.pageNum,pageSize:e.pageSize};j(t).then((function(t){1==e.pageNum?(e.stores=JSON.parse(JSON.stringify(t.result.result))||[],e.storesCopy=JSON.parse(JSON.stringify(t.result.result))||[]):t.result.result.forEach((function(t){e.stores.push(t),e.storesCopy.push(t)})),e.pageNum*e.pageSize<t.result.totalCount&&(e.pageNum++,e.$nextTick((function(){e.getStoreData()})))})).catch((function(e){}))}},watch:{selectStore:function(e,t){var a=this;e.length?a.dailyRuleForm.stores=e.map((function(e){return e.storeInfoId}))||[]:a.dailyRuleForm.stores=[]},companyId:function(e){var t=this;e&&(t.pageNum=1,t.getStoreData())}}},q=T,P=(a("b2ab"),Object(w["a"])(q,E,G,!1,null,"adaa54f2",null)),B=P.exports,U=a("7ca9"),z=a("418e"),V=a("3081"),K=O["a"].getAuthDetail,W={name:"SelectAdminStore",components:{storeAuthGroup:U["a"],storeAuthStore:z["a"],storeAuthGroupDis:L,storeAuthStoreDis:B,commonAlertTip:V["a"]},props:{showAuthFlag:{type:Boolean,default:!1},enterpriseId:{type:String,default:""},bindType:{type:[String,Number],default:"2"},selectMode:{type:[String,Number],default:""},rangeData:{type:[Object,Array],default:function(){return[]}}},data:function(){return{wxEnterpriseId:localStorage.getItem("haoBanUser")?JSON.parse(localStorage.getItem("haoBanUser")).wxEnterpriseId:"",tipContent:"管理范围是根据门店绑定与门店共享选择范围的并集。即选择门店绑定的范围拥有管理权限,门店共享和门店绑定范围的并集拥有查看权限",visibleFlag:!1,bindFormData:{},formData:{sendRange:this.selectMode||"",selectList:[]},selectEnterpriseId:this.enterpriseId,selectGroupData:[],selectStoreData:[]}},mounted:function(){var e=this;e.selectEnterpriseId=e.enterpriseId,e.visibleFlag=e.showAuthFlag,e.formData.sendRange="null"==String(e.selectMode)?"":String(e.selectMode),e.selectGroupData=1==e.selectMode?JSON.parse(JSON.stringify(e.rangeData)):[],e.selectStoreData=2==e.selectMode?JSON.parse(JSON.stringify(e.rangeData)):[],e.formData.selectList=JSON.parse(JSON.stringify(e.rangeData))||[],e.enterpriseId&&e.getData()},methods:{getData:function(){var e=this,t={enterpriseId:e.enterpriseId,wxEnterpriseId:e.wxEnterpriseId};K(t).then((function(t){t.result.bindRange?t.result.bindRange=JSON.parse(t.result.bindRange):t.result.bindRange=[],t.result.shareRange?t.result.shareRange=JSON.parse(t.result.shareRange):t.result.shareRange=[],e.bindFormData=t.result||{}})).catch((function(e){}))},changeRange:function(e){var t=this;t.formData.sendRange=e,t.formData.selectList=[]},handleClose:function(){var e=this;e.$emit("closeSet","close"),e.selectGroupData=[],e.selectStoreData=[]},cancel:function(){var e=this;e.$emit("closeSet","close"),e.selectGroupData=[],e.selectStoreData=[]},checkGroupIds:function(e){var t=this;t.formData.selectList=JSON.parse(JSON.stringify(e))},checkStoreIds:function(e){var t=this;t.formData.selectList=JSON.parse(JSON.stringify(e))},submitForm:function(){var e=this;return"null"!=String(e.formData.sendRange)&&""!==e.formData.sendRange&&(!("1"==e.formData.sendRange&&!e.formData.selectList.length)&&(!("2"==e.formData.sendRange&&!e.formData.selectList.length)&&void e.$emit("closeSet",String(e.formData.sendRange),e.formData.selectList)))}},watch:{showAuthFlag:function(e){this.visibleFlag=e},searchSelect:function(e){this.$refs.groupTree.filter(e)},selectMode:function(e){var t=this;t.formData.sendRange="null"==String(e)?"":String(e)},rangeData:function(e){var t=this;t.selectGroupData=1==t.selectMode?JSON.parse(JSON.stringify(e)):[],t.selectStoreData=2==t.selectMode?JSON.parse(JSON.stringify(e)):[],t.formData.selectList=JSON.parse(JSON.stringify(e))||[]},enterpriseId:function(e){var t=this;t.selectEnterpriseId=e,e&&t.getData()}}},H=W,Q=(a("f5c9"),Object(w["a"])(H,C,N,!1,null,"3686cd0d",null)),X=Q.exports,Y=v.getRoleRange,Z=v.addAdmin,ee={name:"EditAdminPage",components:{navCrumb:s["a"],selectAdmin:x,selectAdminStore:X},data:function(){return{navpath:[{name:"管理员",path:"/admin-list"},{name:this.$route.query.staffId?"编辑管理员":"新建管理员",path:""}],wxEnterpriseId:localStorage.getItem("haoBanUser")?JSON.parse(localStorage.getItem("haoBanUser")).wxEnterpriseId:"",adminName:this.$route.query.staffName?this.$route.query.staffName:"",adminForm:{adminList:[],enterpriseList:[]},rules:{adminList:[{type:"array",required:!0,message:"请选择管理员",trigger:"change"}],enterpriseList:[{type:"array",required:!0,message:"请选择授权范围",trigger:"change"}]},loadBtn:!1,tableData:[{}],showAdminFlag:!1,showAuthFlag:!1,enterpriseId:"",selectMode:"",rangeData:[],editIndex:"",editRow:{bindRange:[],bindStoreMode:"",enterpriseId:"",enterpriseName:"",shareRange:[],shareStoreMode:""}}},mounted:function(){var e=this;e.$emit("showAsideMenu",!1),e.getTableList(),e.$route.query.staffId&&(e.adminForm.adminList=[{levelId:e.$route.query.staffId,levelName:e.$route.query.levelName}]),document.documentElement.style.backgroundColor="#f0f2f5"},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},methods:{saveAdmin:function(e){var t=this,a=JSON.parse(JSON.stringify(t.tableData)),r=!0;a.forEach((function(e){2==e.radio&&(e.bindStoreMode="",e.bindRange=""),1==e.radio&&e.bindStoreMode>0&&e.bindRange.length&&(e.bindGroupIds=1==e.bindStoreMode?e.bindRange.map((function(e){return e.storeGroupId})).join(","):"",e.bindStoreIds=2==e.bindStoreMode?e.bindRange.map((function(e){return e.storeInfoId})).join(","):""),1==e.radio&&(e.bindStoreMode>0&&!e.bindRange.length||""===e.bindStoreMode||"null"==String(e.bindStoreMode))&&(r=!1)})),a.forEach((function(e){delete e.bindRange})),t.adminForm.enterpriseList=r?a:[],t.loadBtn=!0,t.$refs[e].validate((function(e){if(!e)return t.loadBtn=!1,!1;t.postSave(a)}))},postSave:function(e){var t=this,a={roleId:t.$route.query.roleId,staffIds:t.$route.query.staffId||t.adminForm.adminList.map((function(e){return e.levelId})).join(","),enterpriseRange:JSON.stringify(e),wxEnterpriseId:t.wxEnterpriseId};Z(a).then((function(e){t.loadBtn=!1,"0000"==e.code?(S["a"].showmsg("保存成功","success"),t.$router.push("/admin-list")):t.$message({message:e.message||"未知错误",type:"warning"})})).catch((function(e){t.loadBtn=!1}))},showAdmin:function(){var e=this;if(e.$route.query.staffId)return!1;e.showAdminFlag=!0},delAdmin:function(e,t){t.splice(e,1)},checkAdmins:function(e){var t=this;if(t.showAdminFlag=!1,"close"==e)return!1;t.adminForm.adminList=e},showAuth:function(e,t){var a=this;a.selectMode="",a.editIndex=e,a.editRow=t,a.enterpriseId=t.enterpriseId,a.selectMode=t.bindStoreMode,a.rangeData=JSON.parse(JSON.stringify(t.bindRange))||[],a.showAuthFlag=!0},closeSet:function(e,t){var a=this;if(a.showAuthFlag=!1,a.selectMode="","close"==e)return!1;a.editRow.bindStoreMode=String(e),a.editRow.bindRange=JSON.parse(JSON.stringify(t))},delAuth:function(e,t){t.splice(e,1)},changeRoute:function(e){this.$router.push(e)},getTableList:function(){var e=this,t={roleId:e.$route.query.roleId,staffId:e.$route.query.staffId,wxEnterpriseId:e.wxEnterpriseId};Y(t).then((function(t){t.result&&t.result.length&&t.result.forEach((function(e){e.radio=(null!=e.bindStoreMode&&""!==e.bindStoreMode||"[]"!=e.bindRange&&""!=e.bindRange)&&-1!=e.bindStoreMode?"1":"2",e.bindRange?e.bindRange=JSON.parse(e.bindRange):e.bindRange=[]})),e.tableData=t.result||[]})).catch((function(e){}))}}},te=ee,ae=(a("4dbe"),Object(w["a"])(te,r,n,!1,null,"5cd06998",null));t["default"]=ae.exports},9304:function(e,t,a){},9614:function(e,t,a){"use strict";var r=a("259b"),n=a.n(r);n.a},b2ab:function(e,t,a){"use strict";var r=a("9304"),n=a.n(r);n.a},bf13:function(e,t,a){},e6f1:function(e,t,a){},f5c9:function(e,t,a){"use strict";var r=a("3582"),n=a.n(r);n.a}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-7198c410"],{"0ef2":function(t,e,a){"use strict";var n=a("50e5"),o=a.n(n);o.a},"2cad":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:"review-wrap"},[a("vue-office-header",{attrs:{"project-name":t.projectName},on:{collapseTag:t.collapseTag,toRouterView:t.toRouterView,leftData:t.leftData}}),a("div",{staticClass:"setting-wrap__body"},[a("div",{staticClass:"content",attrs:{id:"content"}},[a("div",{staticClass:"content-body"},[a("div",{staticClass:"content-body-inner flex border-box"},[a("div",{staticClass:"apps-content-left w-157",staticStyle:{"min-height":"calc(100vh - 86px)"}},[a("common-detail-left",{attrs:{"tab-list-data":t.tabListData,"active-sel-tab":t.activeSelTab},on:{setSelectTab:t.setSelectTab}})],1),a("div",{staticClass:"apps-content-right border-box"},[a("transition",{attrs:{name:"fade",mode:"out-in"}},[a("router-view",{attrs:{"brand-id":t.activeBrand,"active-group-id":t.activeGroup,"tab-type":t.activeTab},on:{showTab:t.showTab}})],1)],1)])])])])],1)},o=[],r=(a("6762"),a("2fdb"),a("ac6a"),a("f777")),i=a("503e"),c=a("5937"),l=c["a"].getRoleMenu,s={name:"ReviewCenter",components:{vueOfficeHeader:r["a"],commonDetailLeft:i["a"]},data:function(){return{projectName:"haoban-manage-web",collapseFlag:!1,activeSelTab:"1",activeTab:"1",tabListData:[]}},methods:{changeRoute:function(t){this.$router.push(t)},setSelectTab:function(t){var e=this;e.activeTab=t.menuUrl,1==t.target?-1!=t.menuUrl.indexOf("http")?window.open(t.menuUrl):window.open("/haoban-4/#".concat(t.menuUrl)):e.$router.push(t.menuUrl)},showTab:function(t){var e=this;e.activeTab=t,e.activeSelTab=t,e.tabListData.forEach((function(e){e.menuUrl==t&&(e.onlyIconActive=!1),e.children&&e.children.forEach((function(a){a.menuUrl==t&&(e.onlyIconActive=!0),a.children&&a.children.forEach((function(a){a.menuUrl==t&&(e.onlyIconActive=!0)}))}))}))},toRouterView:function(t){var e=this;e.$router.push({path:t.path})},collapseTag:function(t){var e=this;e.collapseFlag=t},leftData:function(t){var e=this;t[0].children.forEach((function(t,a){t.tabId=a+1,t.tabName=t.menuName,t.children&&t.children.length&&e.setChildData(t,a+1)})),e.tabListData=t[0].children},setChildData:function(t,e){var a=this;t.children.forEach((function(t,n){t.tabId=e+"-"+(n+1),t.tabName=t.menuName,t.children&&t.children.length&&a.setChildData(t,e+"-"+(n+1))}))},getData:function(){var t=this,e={};l(e).then((function(e){if("0000"==e.code){var a=e.result.map((function(t){return t.menuCode})),n=[];t.tabListData.forEach((function(t){a.includes(t.menuCode)&&n.push(t)})),t.tabListData=n}})).catch((function(t){}))}}},u=s,h=(a("8db5"),a("2877")),f=Object(h["a"])(u,n,o,!1,null,null,null);e["default"]=f.exports},"503e":function(t,e,a){"use strict";var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"p-t-12"},[a("ul",{staticClass:"tab-left-list"},[t._l(t.tabData,(function(e,n){return[a("li",{key:n,class:["tab-left-list-cell color-303133 font-14 border-box p-l-14",e.menuUrl!=t.activeTab||e.children.length?"":"active-tab"],on:{click:function(a){return t.selectTab(e,!1,n)}}},[a("i",{class:["p-r-10 color-303133 iconfont",e.iconUrl,(e.onlyIconActive,"")]}),t._v(t._s(e.tabName)+"\n ")]),a("ul",{key:"childitem"+n,staticClass:"child-tab-left-list"},[t._l(e.children,(function(e,o){return[a("li",{key:o,class:["tab-left-list-cell color-303133 font-14 border-box p-l-40",e.menuUrl!=t.activeTab||e.children.length?"":"active-tab"],on:{click:function(a){return t.selectTab(e,"child",n)}}},[t._v(t._s(e.tabName))]),a("ul",{key:"thirditem"+o,staticClass:"third-tab-left-list"},[t._l(e.children,(function(e,o){return[a("li",{key:o,class:["tab-left-list-cell color-303133 font-14 border-box p-l-60",e.menuUrl!=t.activeTab||e.children.length?"":"active-tab"],on:{click:function(a){return t.selectTab(e,"child",n)}}},[t._v(t._s(e.tabName))])]}))],2)]}))],2)]}))],2)])},o=[],r=(a("ac6a"),a("c5f6"),{name:"CommonDetailLeft",props:{appName:{type:String,default:function(){return""}},activeSelTab:{type:[String,Number],default:function(){return""}},tabListData:{type:[Array,Object],default:function(){return[]}}},data:function(){return{projectName:"",activeTab:"1",tabData:this.tabListData,collapsFlag:!0}},mounted:function(){this.activeTab=this.activeSelTab},methods:{returnBack:function(){var t=this;t.$router.push("appcenter")},selectTab:function(t,e,a){var n=this;if(e?n.tabData[a].onlyIconActive=!0:(n.tabData.forEach((function(t){t.onlyIconActive=!1})),t.hasOwnProperty("children")&&t.children.length&&(n.collapsFlag=!(n.collapsFlag&&t.hasOwnProperty("children")&&t.children.length))),t.hasOwnProperty("children")&&t.children.length)return n.tabData[a].onlyIconActive=!0,t.children[0]&&t.children[0].hasOwnProperty("children")&&t.children[0].children.length?(n.activeTab=t.children[0].children[0].menuUrl,n.$emit("setSelectTab",t.children[0].children[0]),!1):(n.activeTab=t.children[0].menuUrl,n.$emit("setSelectTab",t.children[0]),!1);n.activeTab=t.menuUrl,n.$emit("setSelectTab",t)}},watch:{tabListData:function(t,e){var a=this;a.tabData=t},activeSelTab:function(t,e){var a=this;a.activeTab=t}}}),i=r,c=(a("0ef2"),a("2877")),l=Object(c["a"])(i,n,o,!1,null,"51e072e6",null);e["a"]=l.exports},"50e5":function(t,e,a){},5937:function(t,e,a){"use strict";var n=a("71f6"),o={getRoleMenu:"/list-staff-role-menu"};o=Object(n["a"])(o,"/hb-manage-web"),e["a"]=o},"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 o}));a("ac6a"),a("456d");var n=a("b775");function o(t,e){t=t||{};var a=Object.keys(t);return a.forEach((function(a){var o=t[a];"string"===typeof o&&(o={url:o}),o.url="".concat(e).concat(o.url),t[a]=function(t){return Object(n["a"])(o,t)}})),t}},"7ded":function(t,e,a){"use strict";var n=a("71f6"),o={getLoginQrcode:"/get-login-qrcode",getUserInfo:"/get-login-user",loginOut:{url:"/login-out",method:"post",useFormData:!0}};o=Object(n["a"])(o,"/hb-manage-web/auth"),e["a"]=o},"8db5":function(t,e,a){"use strict";var n=a("f192"),o=a.n(n);o.a},cc0d:function(t,e,a){"use strict";var n=a("ed94"),o=a.n(n);o.a},ed94:function(t,e,a){},f192:function(t,e,a){},f777:function(t,e,a){"use strict";var n=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"nav-header"},[n("div",{staticClass:"nav-header-logo fl cursor-pointer",on:{click:t.toIndex}},[n("span",{staticClass:"pro-name"},[t._v("好办管理平台")])]),n("div",{staticClass:"nav-header-item fl"},[t._l(t.menuHead,(function(e,a){return[n("a",{key:a,class:["item-link menu-font-16"],on:{click:function(a){return t.changeRouter(e)}}},[n("span",{class:["inline-block bottom",-1!=e.menuUrl.indexOf(t.pathName)?"current-module":""]},[t._v(t._s(e.menuName))])])]})),n("div",{staticClass:"navuser-info fr"},[t.userInfo.headImg?n("img",{staticClass:"user-img",attrs:{src:t.userInfo.headImg,alt:""}}):n("img",{staticClass:"user-img",attrs:{src:a("6ce2"),alt:"img"}}),n("el-popover",{staticStyle:{"min-width":"95px"},attrs:{placement:"bottom",title:"",width:"95",trigger:"hover","popper-class":"user-header-pop"}},[n("ul",{staticClass:"navsuer-wrap"},[n("li",[n("p",{staticClass:"font-14 color-606266 hide-item"},[t._v(t._s(t.userInfo.staffName||"--"))]),n("p",{staticClass:"font-12 color-909399 hide-item"},[t._v(t._s(t.userInfo.roleName||"--"))])]),n("li",{staticClass:"user-item text-align",on:{click:function(e){return e.stopPropagation(),t.toLoginOut(e)}}},[n("a",{staticClass:"user-text"},[t._v("退出登录")])])]),n("a",{staticClass:"nav-user-name",attrs:{slot:"reference"},slot:"reference"},[n("span",{staticClass:"font-12 color-606266"},[t._v(t._s(t.userInfo.staffName||"--"))]),n("i",{staticClass:"iconfont iconxiala arrowico color-c0c4cc"})])])],1)],2)])},o=[],r=(a("456d"),a("96cf"),a("1da1")),i=(a("ac6a"),a("28a5"),a("7ded")),c=a("5937"),l=c["a"].getRoleMenu,s=i["a"].getUserInfo,u=i["a"].loginOut,h={name:"VueOfficeHeader",components:{},data:function(){return{checkShow:!0,tipText:"请先完成商户初始化设置后,再进行其他操作",repProjectName:"haoban-manage-web",pathName:"",isCollapse:!1,menuHead:[],roleMenuData:[],routePathName:"",userInfo:{staffName:"",nationCode:"",phoneNumber:"",headImg:"",wxEnterpriseId:"",roleName:""}}},mounted:function(){var t=this;t.pathName=t.$route.path,t.routePathName=window.location.hash.split("/")[1],-1!=t.routePathName.indexOf("?")&&(t.routePathName=t.routePathName.split("?")[0]),-1!=t.routePathName.indexOf("/")&&(t.routePathName=t.routePathName.split("/")[0]),localStorage.removeItem("haoBanUser"),t.toLogin()},methods:{toIndex:function(){var t=this;t.$router.push("/contactsList")},changeRouter:function(t){var e=this;if(1==t.target)-1!=t.menuUrl.indexOf("http")?window.open(t.menuUrl):window.open("/haoban-4/#".concat(t.menuUrl));else{e.setleftData(t);var a={};e.roleMenuData.forEach((function(e){t.menuCode!=e.menuCode||e.children.length||(a=e),t.menuCode==e.menuCode&&e.children.length&&(a=e.children[0])})),e.$router.push(a.menuUrl)}},setleftData:function(t){var e=this,a=[];e.roleMenuData.forEach((function(e){t.menuCode==e.menuCode&&a.push(e)})),e.$emit("leftData",a)},toLoginOut:function(){var t=this;t.$confirm("确认退出吗?","提示",{type:"warning"}).then((function(){u({}).then((function(e){"0000"==e.code&&(t.$message({message:"退出成功",type:"success"}),localStorage.removeItem("haoBanUser"),window.location.href=window.location.origin+"/haoban-4/#/login")})).catch((function(t){}))})).catch((function(){}))},toRouter:function(t,e,a){var n=this,o={path:"/"+t,name:e};n.$emit("toRouterView",o)},toLogin:function(){var t=this;s({}).then((function(e){e.result||(e.result={loginStaff:{staffName:"",nationCode:"",phoneNumber:"",headImg:"",wxEnterpriseId:""},role:{roleName:""}}),localStorage.setItem("haoBanUser",JSON.stringify(e.result.loginStaff)),t.userInfo=Object.assign(e.result.loginStaff,e.result.role),t.getData()})).catch((function(t){}))},treeData:function(t){var e=t.filter((function(e){var a=t.filter((function(t){return e.menuCode==t.parentCode&&1==t.isShow}));return a.length>0?(e.hasSonNode=!0,e.children=a):(e.children=[],e.hasSonNode=!1),""==e.parentCode&&1==e.isShow}));return e},getData:function(){var t=this,e={};l(e).then(function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(a){var n,o,r,i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if("0000"!=a.code){e.next=14;break}return n=[],o={},r={},a.result.forEach((function(e){1==e.level&&1==e.isShow&&n.push(e),t.$route.path==e.menuUrl&&1==e.level&&1==e.isShow&&(o=e),t.$route.path==e.menuUrl&&1!=e.level&&(r=e)})),t.menuHead=n,e.next=8,t.treeData(JSON.parse(JSON.stringify(a.result)));case 8:t.roleMenuData=e.sent,Object.keys(r).length&&2==r.level&&a.result.forEach((function(t){r.parentCode==t.menuCode&&1==t.level&&1==t.isShow&&(o=t)})),i={},Object.keys(r).length&&3==r.level&&a.result.forEach((function(t){r.parentCode==t.menuCode&&2==t.level&&1==t.isShow&&(i=t)})),Object.keys(i).length&&2==i.level&&a.result.forEach((function(t){i.parentCode==t.menuCode&&1==t.level&&1==t.isShow&&(o=t)})),t.setleftData(o);case 14:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(t){}))}}},f=h,d=(a("cc0d"),a("2877")),m=Object(d["a"])(f,n,o,!1,null,"2a4f88b9",null);e["a"]=m.exports}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-730fab8e"],{"21f4":function(e,t,r){"use strict";var n=r("71f6"),a={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},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"};a=Object(n["a"])(a,"/hb-manage-web"),t["a"]=a},"29b6":function(e,t,r){"use strict";var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"nav-wrap border-box"},[r("el-breadcrumb",{attrs:{"separator-class":"el-icon-arrow-right"}},[e._l(e.navpath,(function(t,n){return[t.path?[r("el-breadcrumb-item",{key:"nav"+n,attrs:{to:{path:t.path}},on:{click:function(r){return e.changeRoute(t.path,t.relocation)}}},[r("span",{staticClass:"el-breadcrumb__inner is-link",on:{click:function(r){return e.changeRoute(t.path,t.relocation)}}},[e._v("\n "+e._s(t.name)+"\n ")])])]:[r("el-breadcrumb-item",{key:"nav"+n},[e._v(e._s(t.name))])]]}))],2)],1)},a=[],s={name:"NavPath",props:{navpath:{type:Array,default:function(){return[]}}},data:function(){return{projectName:"member"}},methods:{changeRoute:function(e,t){var r=this;t?window.location.href=e:r.$router.push(e)}}},o=s,c=(r("6b4b"),r("2877")),i=Object(c["a"])(o,n,a,!1,null,"2c2a2724",null);t["a"]=i.exports},3081:function(e,t,r){"use strict";var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"common-alert-tip"},[r("div",{style:{"min-width":e.width}},[r("div",{staticClass:"el-alert el-alert--info flex flex-align-start",style:{width:e.width},attrs:{role:"alert"}},[r("i",{staticClass:"el-alert__icon el-icon-info font-12 color-2f54eb"}),r("div",{staticClass:"el-alert__content"},[r("span",{staticClass:"el-alert__title color-606266 font-13"},[e._v("\n "+e._s(e.tipContent)+"\n ")])])])])])},a=[],s={name:"CommonAlertTip",components:{},props:{width:{type:String,default:"645px"},tipContent:{type:String,default:""}},data:function(){return{}}},o=s,c=r("2877"),i=Object(c["a"])(o,n,a,!1,null,"3070d237",null);t["a"]=i.exports},"418e":function(e,t,r){"use strict";var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"daily-store-select"},[r("div",{staticClass:"font-12 color-909399"},[e._v("最多可选50家门店")]),r("div",{staticClass:"select-search"},[r("el-input",{staticStyle:{width:"100%"},attrs:{placeholder:"请输入门店名称/代码",clearable:""},on:{clear:e.clearSearch},nativeOn:{keyup:function(t){return function(t){return e.toInput(t,e.searchSelect)}(t)}},model:{value:e.searchSelect,callback:function(t){e.searchSelect=t},expression:"searchSelect"}},[r("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})])],1),r("div",{staticClass:"el-scrollbar define-search-select"},[r("div",{staticClass:"el-select-dropdown__wrap el-scrollbar__wrap",staticStyle:{overflow:"auto"}},[r("el-checkbox-group",{attrs:{max:50},on:{change:e.handleStoresChange},model:{value:e.dailyRuleForm.stores,callback:function(t){e.$set(e.dailyRuleForm,"stores",t)},expression:"dailyRuleForm.stores"}},[r("ul",{staticClass:"el-scrollbar__view el-select-dropdown__list"},[e._l(e.stores,(function(t){return r("li",{key:t.storeInfoId,class:["el-select-dropdown__item",t.select?"selected hover":""],on:{click:function(r){return r.stopPropagation(),e.toShowMsg(t)}}},[r("el-checkbox",{attrs:{disabled:1==t.bindFlag||1==t.auditFlag,label:t.storeInfoId}},[e._v(e._s(t.storeInfoName))]),1==t.bindFlag&&1!=t.auditFlag?r("span",{staticClass:"font-12 color-909399 p-l-10"},[e._v(e._s(t.bindWxEnterpriseName)+" 企业已授权")]):e._e(),1==t.auditFlag?r("span",{staticClass:"font-12 color-909399 p-l-10"},[e._v(e._s(t.bindWxEnterpriseName)+" 企业授权中")]):e._e()],1)})),e.stores.length?e._e():r("li",{staticClass:"text-center"},[r("span",[e._v("暂无数据")])])],2)])],1)])])},a=[],s=(r("6762"),r("2fdb"),r("ac6a"),r("d157")),o=r("21f4"),c=r("5b4e6"),i=o["a"].getStoreList,u={name:"StoreAuthStore",props:{companyId:{type:String,default:""},storeType:{type:String,default:"1"},selectStore:{type:[Object,Array],default:function(){return{}}}},data:function(){return{checkAll:!1,isIndeterminate:!1,searchSelect:"",stores:[],storesCopy:[],dailyRuleForm:{stores:[]},pageNum:1,pageSize:300}},mounted:function(){var e=this;e.stores=[],e.storesCopy=[],e.companyId&&(e.pageNum=1,e.getStoreData()),e.selectStore.length?e.dailyRuleForm.stores=e.selectStore.map((function(e){return e.storeInfoId}))||[]:e.dailyRuleForm.stores=[]},methods:{toShowMsg:function(e){if(1==e.auditFlag)return c["a"].showmsg("".concat(e.bindWxEnterpriseName," 企业授权中,无法选择!"),"warning"),!1;1==e.bindFlag&&c["a"].showmsg("当前门店已被其他企业绑定,当前企业无法选择!","warning")},handleStoresChange:function(e){var t=this,r=[];t.stores.forEach((function(t){e.includes(t.storeInfoId)&&r.push(t)})),t.$emit("checkStoreIds",JSON.parse(JSON.stringify(r)))},toInput:Object(s["a"])((function(e,t){var r=this;""!=r.searchSelect&&(r.stores=[],r.pageNum=1,r.getStoreData())}),500),clearSearch:function(){var e=this;e.stores=[],e.pageNum=1,e.getStoreData()},getStoreData:function(){var e=this,t={search:e.searchSelect,enterpriseId:e.companyId,type:e.storeType,pageNum:e.pageNum,pageSize:e.pageSize};i(t).then((function(t){1==e.pageNum?(e.stores=JSON.parse(JSON.stringify(t.result.result))||[],e.storesCopy=JSON.parse(JSON.stringify(t.result.result))||[]):t.result.result.forEach((function(t){e.stores.push(t),e.storesCopy.push(t)})),e.pageNum*e.pageSize<t.result.totalCount&&(e.pageNum++,e.$nextTick((function(){e.getStoreData()})))})).catch((function(e){}))}},watch:{selectStore:function(e,t){var r=this;e.length?r.dailyRuleForm.stores=e.map((function(e){return e.storeInfoId}))||[]:r.dailyRuleForm.stores=[]},companyId:function(e){var t=this;e&&(t.pageNum=1,t.getStoreData())}}},l=u,d=(r("ff8b"),r("2877")),p=Object(d["a"])(l,n,a,!1,null,"1882314e",null);t["a"]=p.exports},"53cd":function(e,t,r){},"5b4e6":function(e,t,r){"use strict";var n=r("5c96");t["a"]={showmsg:function(e,t){Object(n["Message"])({duration:1e3,message:e||"接口异常",type:t})}}},"6b4b":function(e,t,r){"use strict";var n=r("76d4"),a=r.n(n);a.a},"71f6":function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));r("ac6a"),r("456d");var n=r("b775");function a(e,t){e=e||{};var r=Object.keys(e);return r.forEach((function(r){var a=e[r];"string"===typeof a&&(a={url:a}),a.url="".concat(t).concat(a.url),e[r]=function(e){return Object(n["a"])(a,e)}})),e}},"76d4":function(e,t,r){},"7ca9":function(e,t,r){"use strict";var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"bind-store-body"},[r("div",{staticClass:"select-search"},[r("el-input",{attrs:{placeholder:"请输入分组名称",clearable:""},on:{clear:e.clearSearch},nativeOn:{keyup:function(t){return function(t){return e.toInput(t,e.searchSelect)}(t)}},model:{value:e.searchSelect,callback:function(t){e.searchSelect=t},expression:"searchSelect"}},[r("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})])],1),r("div",{staticClass:"select-tree-wrap auth-select-tree m-t-20"},[r("el-tree",{ref:"groupTree",attrs:{"filter-node-method":e.filterNode,"check-strictly":"",data:e.groupData,"node-key":"storeGroupId","show-checkbox":"","default-expand-all":"",props:e.defaultProps,"expand-on-click-node":!1},on:{check:e.checkGroup},scopedSlots:e._u([{key:"default",fn:function(t){var n=t.node,a=t.data;return r("span",{staticClass:"custom-tree-node",attrs:{id:a.storeGroupId},on:{click:function(t){return e.toShowMsg(n,a)}}},[r("span",{staticClass:"font-14 color-606266"},[e._v(e._s(n.label))]),1==a.bindFlag&&1!=a.auditFlag?r("span",{staticClass:"font-12 color-909399 p-l-10"},[e._v(e._s(a.bindWxEnterpriseName)+" 企业已授权")]):e._e(),1==a.auditFlag?r("span",{staticClass:"font-12 color-909399 p-l-10"},[e._v(e._s(a.bindWxEnterpriseName)+" 企业授权中")]):e._e()])}}])})],1)])},a=[],s=(r("96cf"),r("1da1")),o=(r("ac6a"),r("6762"),r("2fdb"),r("d157")),c=r("21f4"),i=r("5b4e6"),u=c["a"].getGroupList,l={name:"StoreAuthGroup",props:{companyId:{type:String,default:""},storeType:{type:String,default:"1"},selectGroup:{type:[Object,Array],default:function(){return{}}}},data:function(){return{searchSelect:"",groupData:[],groupDataCopy:[],defaultProps:{children:"children",label:"storeGroupName"}}},mounted:function(){var e=this;e.companyId&&e.getGroup(),e.selectGroup.length?e.$nextTick((function(){e.$refs.groupTree.setCheckedKeys(e.selectGroup.map((function(e){return e.storeGroupId})))})):e.$nextTick((function(){e.$refs.groupTree.setCheckedKeys([])}))},methods:{toShowMsg:function(e,t){if(1==t.auditFlag)return i["a"].showmsg("".concat(t.bindWxEnterpriseName," 企业授权中,无法选择!"),"warning"),!1;1==t.bindFlag&&i["a"].showmsg("当前分组已被其他企业绑定,当前企业无法选择!","warning")},filterNode:function(e,t){return!e||!t.label||-1!==t.label.indexOf(e)},toInput:Object(o["a"])((function(e,t){var r=this;if(!r.groupDataCopy.length)return!1}),200),clearSearch:function(){return!1},checkGroup:function(e,t){var r=this;if(e.children){var n=document.getElementById(e.storeGroupId).previousElementSibling.children[0].className,a=r.$refs.groupTree.getNode(e.storeGroupId)?r.$refs.groupTree.getNode(e.storeGroupId).parent:"",s=t.checkedKeys.includes(e.storeGroupId);n.includes("is-checked")&&a&&a.data.bindFlag,s||document.getElementById(e.storeGroupId).previousElementSibling.children[0].children[0].setAttribute("style",""),r.$refs.groupTree.setChecked(e.storeGroupId,s,!0),e.children.forEach((function(e){r.$refs.groupTree.setChecked(e.storeGroupId,s,!0),e.disabled=!!s||!!e.bindFlag,e.children&&e.children.length&&r.checkChild(e,s)}))}var o=r.$refs.groupTree.getCheckedNodes();if(o.length){var c=[];o.forEach((function(e){e.disabled||c.push(e)})),r.$emit("checkGroupIds",c)}else r.$emit("checkGroupIds",[]);r.$nextTick((function(){var e=document.querySelectorAll(".el-checkbox__input");e&&e.length&&e.forEach((function(e){e.className.includes("is-checked")&&e.className.includes("is-disabled")&&e.children[0].setAttribute("style","")}))}))},checkChild:function(e,t){var r=this;e.children.forEach((function(e){r.$refs.groupTree.setChecked(e.storeGroupId,t,!0),e.disabled=!!t||!!e.bindFlag,e.children&&e.children.length&&r.checkChild(e,t)}))},treeData:function(e){var t=e.filter((function(t){var r=e.filter((function(e){return t.storeGroupId==e.parentId}));return r.length>0?(t.hasSonNode=!0,t.children=r):(t.children=[],t.hasSonNode=!1),0==t.parentId}));return t},setSelectCheck:function(){var e=this,t=e.selectGroup.map((function(e){return e.storeGroupId}));e.groupData.forEach((function(r){t.includes(r.storeGroupId)&&r.children.length&&e.checkChild(r,!0),t.includes(r.storeGroupId)||e.disableChild(r,t)}))},disableChild:function(e,t){var r=this;e.children.forEach((function(e){t.includes(e.storeGroupId)&&e.children.length&&r.checkChild(e,!0),!t.includes(e.storeGroupId)&&e.children.length&&r.disableChild(e,t)}))},getGroup:function(){var e=this,t={type:e.storeType,enterpriseId:e.companyId};u(t).then(function(){var t=Object(s["a"])(regeneratorRuntime.mark((function t(r){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return r.result&&r.result.length&&r.result.forEach((function(e){e.expand=!1,e.children=[],e.disabled=1==e.bindFlag||1==e.auditFlag,e.label=e.storeGroupName})),t.next=3,e.treeData(JSON.parse(JSON.stringify(r.result)));case 3:if(t.t0=t.sent,t.t0){t.next=6;break}t.t0=[];case 6:e.groupData=t.t0,e.groupDataCopy=JSON.parse(JSON.stringify(r.result)),e.$nextTick((function(){e.setSelectCheck()}));case 9:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(e){}))}},watch:{searchSelect:function(e){this.$refs.groupTree.filter(e)},selectGroup:function(e){var t=this;e.length?t.$nextTick((function(){t.$refs.groupTree.setCheckedKeys(e.map((function(e){return e.storeGroupId})))})):t.$nextTick((function(){t.$refs.groupTree.setCheckedKeys([])}))},companyId:function(e){var t=this;e&&t.getGroup()}}},d=l,p=(r("ae25"),r("2877")),f=Object(p["a"])(d,n,a,!1,null,"417f5acc",null);t["a"]=f.exports},ae25:function(e,t,r){"use strict";var n=r("b686"),a=r.n(n);a.a},b686:function(e,t,r){},d157:function(e,t,r){"use strict";r.d(t,"a",(function(){return n})),r.d(t,"b",(function(){return a})),r.d(t,"c",(function(){return s}));r("c5f6"),r("a481"),r("28a5"),r("6b54");function n(e,t){var r,n=t||200;return function(){var t=this,a=arguments;r&&clearTimeout(r),r=setTimeout((function(){r=null,e.apply(t,a)}),n)}}function a(e,t){var r,n,a=t||200;return function(){var t=this,s=arguments,o=+new Date;r&&o-r<a?(clearTimeout(n),n=setTimeout((function(){r=o,e.apply(t,s)}),a)):(r=o,e.apply(t,s))}}function s(e){return e=e.replace(/\uD83C[\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F]|[\uD800-\uDBFF]|[\uDC00-\uDFFF]|[^\u0020-\u007E\u00A0-\u00BE\u2E80-\uA4CF\uF900-\uFAFF\uFE30-\uFE4F\uFF00-\uFFEF\u0080-\u009F\u2000-\u201f\u2026\u2022\u20ac\r\n]/g,""),unescape(escape(e).replace(/\%uD.{3}/g,""))}},ff8b:function(e,t,r){"use strict";var n=r("53cd"),a=r.n(n);a.a}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-23d376bc"],{"0fd6":function(e,n,t){"use strict";var c=t("cf90"),a=t.n(c);a.a},a088:function(e,n,t){"use strict";t.r(n);var c=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"menu-tree"},[t("ul",{staticClass:"first-menu"},[0==e.menuList.length?t("li",{staticClass:"no-data"},[e._v("暂无数据")]):e._e(),e._l(e.menuList,(function(n){return t("li",{key:n.menuId,class:["first-menu-item",{active:n.menuId==e.activeMenuId}],on:{click:function(t){return e.onMenuChange(n)}}},[e._v("\n "+e._s(n.menuName)+"\n ")])}))],2),t("div",{staticClass:"all-menu"},[t("el-tree",{ref:"menuList",attrs:{data:e.treeData,"show-checkbox":"","default-expand-all":"","node-key":"menuId","expand-on-click-node":!1,"check-on-click-node":!0,props:{label:"menuName"},"default-checked-keys":e.checkedId[e.activeMenuId]},on:{"node-click":e.onNodeClick,check:e.onNodeClick}})],1)])},a=[],i=(t("ac6a"),{name:"MenuTree",props:{menuList:Array,checkedId:Object},data:function(){return{activeMenuId:"",treeData:[]}},methods:{onMenuChange:function(e){this.activeMenuId=e?e.menuId:"",this.treeData=e?[e]:[]},onNodeClick:function(){this.onChange(this.$refs.menuList.getCheckedKeys())},getAllMenuId:function(e){var n=this,t=[];return e.forEach((function(e){t.push(e.menuId),Array.isArray(e.children)&&(t=t.concat(n.getAllMenuId(e.children)))})),t},onChange:function(e){var n={};n[this.activeMenuId]=e,this.$emit("change",Object.assign({},this.checkedId,n))}},watch:{checkedId:{deep:!0,handler:function(e){this.$refs.menuList.setCheckedKeys(e[this.activeMenuId]||[])}},menuList:{immediate:!0,handler:function(e){this.onMenuChange(e[0])}}}}),s=i,u=(t("0fd6"),t("2877")),d=Object(u["a"])(s,c,a,!1,null,"6d51b677",null);n["default"]=d.exports},cf90:function(e,n,t){}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-784402ec"],{"0fd6":function(e,n,t){"use strict";var c=t("cf90"),a=t.n(c);a.a},a088:function(e,n,t){"use strict";t.r(n);var c=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"menu-tree"},[t("ul",{staticClass:"first-menu"},[0==e.menuList.length?t("li",{staticClass:"no-data"},[e._v("暂无数据")]):e._e(),e._l(e.menuList,(function(n){return t("li",{key:n.menuId,class:["first-menu-item",{active:n.menuId==e.activeMenuId}],on:{click:function(t){return e.onMenuChange(n)}}},[e._v("\n "+e._s(n.menuName)+"\n ")])}))],2),t("div",{staticClass:"all-menu"},[t("el-tree",{ref:"menuList",attrs:{data:e.treeData,"show-checkbox":"","default-expand-all":"","node-key":"menuId","expand-on-click-node":!1,"check-on-click-node":!0,props:{label:"menuName"},"default-checked-keys":e.checkedId[e.activeMenuId]},on:{"node-click":e.onNodeClick,check:e.onNodeClick}})],1)])},a=[],i=(t("ac6a"),{name:"MenuTree",props:{menuList:Array,checkedId:Object},data:function(){return{activeMenuId:"",treeData:[]}},methods:{onMenuChange:function(e){this.activeMenuId=e?e.menuId:"",this.treeData=e?[e]:[]},onNodeClick:function(){this.onChange(this.$refs.menuList.getCheckedKeys())},getAllMenuId:function(e){var n=this,t=[];return e.forEach((function(e){t.push(e.menuId),Array.isArray(e.children)&&(t=t.concat(n.getAllMenuId(e.children)))})),t},onChange:function(e){var n={};n[this.activeMenuId]=e,this.$emit("change",Object.assign({},this.checkedId,n))}},watch:{checkedId:{deep:!0,handler:function(e){this.$refs.menuList.setCheckedKeys(e[this.activeMenuId]||[])}},menuList:{immediate:!0,handler:function(e){this.onMenuChange(e[0])}}}}),s=i,u=(t("0fd6"),t("2877")),d=Object(u["a"])(s,c,a,!1,null,"6d51b677",null);n["default"]=d.exports},cf90:function(e,n,t){}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-7b0069c2"],{"30a6":function(t,e,a){"use strict";var o=a("beb0"),s=a.n(o);s.a},"3cf8":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:"common-app-right"},[a("div",{staticClass:"m-b-20"},[a("el-checkbox",{staticClass:"w-195",model:{value:t.customerShowData.allStoreOrder,callback:function(e){t.$set(t.customerShowData,"allStoreOrder",e)},expression:"customerShowData.allStoreOrder"}},[t._v("展示所有门店的订单")]),a("div",{staticClass:"font-14 color-909399 set-tip-item"},[t._v("注:保存勾选项后,门店导购和店长可查看顾客在本店以外的消费订单")])],1),a("div",{staticClass:"m-b-20"},[a("el-checkbox",{staticClass:"w-195",model:{value:t.customerShowData.shopOrder,callback:function(e){t.$set(t.customerShowData,"shopOrder",e)},expression:"customerShowData.shopOrder"}},[t._v("展示微商城的订单")]),a("div",{staticClass:"font-14 color-909399 set-tip-item"},[t._v("注:保存勾选项后,门店导购和店长可查看顾客在微商城的消费订单")])],1),a("div",{staticClass:"m-b-20"},[a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"勾选后将会在“顾客详情页”进行显示",placement:"top-start"}},[a("span",{staticClass:"font-14 color-606266 m-r-20 common-bottom-border"},[t._v("导购联系顾客方式")])]),a("el-checkbox",{model:{value:t.myCustomData.allowGuideMobile,callback:function(e){t.$set(t.myCustomData,"allowGuideMobile",e)},expression:"myCustomData.allowGuideMobile"}},[t._v("电话")]),a("el-checkbox",{model:{value:t.myCustomData.allowGuideMessage,callback:function(e){t.$set(t.myCustomData,"allowGuideMessage",e)},expression:"myCustomData.allowGuideMessage"}},[t._v("短信")]),a("el-checkbox",{model:{value:t.myCustomData.allowGuideOnlineChat,callback:function(e){t.$set(t.myCustomData,"allowGuideOnlineChat",e)},expression:"myCustomData.allowGuideOnlineChat"}},[t._v("添加会员/发消息")])],1),a("div",{staticClass:"m-t-46"},[a("el-button",{attrs:{type:"primary",loading:t.loading},on:{click:function(e){return t.submit()}}},[t._v("保存")])],1)])},s=[],u=a("d11a"),r=a("d157"),n=a("5b4e6"),i=u["a"].getCustomerSet,l=u["a"].saveCustomerSet,c={name:"CustomerDataSet",components:{},props:{brandId:{type:String,default:""}},data:function(){return{customerShowData:{allStoreOrder:!1,shopOrder:!1,allowGuideMobile:!1,allowGuideMessage:!1,allowGuideOnlineChat:!1},loading:!1}},mounted:function(){var t=this;t.brandId&&t.getCustomerData()},methods:{submit:Object(r["a"])((function(){var t=this;t.loading=!0,t.setData()}),500),setData:function(){var t=this,e={enterpriseId:t.brandId,allStoreOrder:t.customerShowData.allStoreOrder?1:"0",shopOrder:t.customerShowData.shopOrder?1:"0",allowGuideMobile:t.customerShowData.allowGuideMobile?1:"0",allowGuideMessage:t.customerShowData.allowGuideMessage?1:"0",allowGuideOnlineChat:t.customerShowData.allowGuideOnlineChat?1:"0"};l(e).then((function(e){t.loading=!1,t.getCustomerData(),"0000"==e.code?n["a"].showmsg("操作成功","success"):n["a"].showmsg(e.message||"接口异常","warning")})).catch((function(e){t.loading=!1}))},getCustomerData:function(){var t=this,e={enterpriseId:t.brandId};i(e).then((function(e){t.customerShowData=e.result||[]})).catch((function(t){}))}},watch:{brandId:function(t){var e=this;t&&e.getCustomerData()}}},m=c,d=(a("30a6"),a("2877")),p=Object(d["a"])(m,o,s,!1,null,"516479cd",null);e["default"]=p.exports},"5b4e6":function(t,e,a){"use strict";var o=a("5c96");e["a"]={showmsg:function(t,e){Object(o["Message"])({duration:1e3,message:t||"接口异常",type:e})}}},"71f6":function(t,e,a){"use strict";a.d(e,"a",(function(){return s}));a("ac6a"),a("456d");var o=a("b775");function s(t,e){t=t||{};var a=Object.keys(t);return a.forEach((function(a){var s=t[a];"string"===typeof s&&(s={url:s}),s.url="".concat(e).concat(s.url),t[a]=function(t){return Object(o["a"])(s,t)}})),t}},beb0:function(t,e,a){},d11a:function(t,e,a){"use strict";var o=a("71f6"),s={getGroupList:"/department-list",getStoreList:"/store-list",getAssignStatus:"/app-distribute-status",getNavChain:"/get-chain",getMemberList:{url:"/app-get-member-info-list",method:"post",useFormData:!0},getClerkList:"/clerk-list",getMemberCount:"",saveAssign:{url:"/",method:"post",useFormData:!0},getMemberData:"",getServiceData:"",saveSortMember:{url:"/",method:"post",useFormData:!0,useIntercept:!1},getShowSet:"",saveShowSet:{url:"",method:"post",useFormData:!0,useIntercept:!1},getCustomerSet:"",saveCustomerSet:{url:"",method:"post",useFormData:!0,useIntercept:!1},getGroupData:"",getClassifyData:"",postSortGroup:{url:"/",method:"post",useFormData:!0,useIntercept:!1},getSyncMemberData:"",saveSync:{url:"/",method:"post",useFormData:!0,useIntercept:!1},saveVisiable:{url:"/",method:"post",useFormData:!0,useIntercept:!1},getTagClassify:"",addClassify:"",delClassify:{url:"/",method:"post",useFormData:!0,useIntercept:!1},getClerkTag:"",addClerkTag:"",delClerkTag:{url:"/",method:"post",useFormData:!0,useIntercept:!1}};s=Object(o["a"])(s,"/hb-manage-web"),e["a"]=s},d157:function(t,e,a){"use strict";a.d(e,"a",(function(){return o})),a.d(e,"b",(function(){return s})),a.d(e,"c",(function(){return u}));a("c5f6"),a("a481"),a("28a5"),a("6b54");function o(t,e){var a,o=e||200;return function(){var e=this,s=arguments;a&&clearTimeout(a),a=setTimeout((function(){a=null,t.apply(e,s)}),o)}}function s(t,e){var a,o,s=e||200;return function(){var e=this,u=arguments,r=+new Date;a&&r-a<s?(clearTimeout(o),o=setTimeout((function(){a=r,t.apply(e,u)}),s)):(a=r,t.apply(e,u))}}function u(t){return t=t.replace(/\uD83C[\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F]|[\uD800-\uDBFF]|[\uDC00-\uDFFF]|[^\u0020-\u007E\u00A0-\u00BE\u2E80-\uA4CF\uF900-\uFAFF\uFE30-\uFE4F\uFF00-\uFFEF\u0080-\u009F\u2000-\u201f\u2026\u2022\u20ac\r\n]/g,""),unescape(escape(t).replace(/\%uD.{3}/g,""))}}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-7d62a3f8"],{"28a5":function(e,t,n){"use strict";var a=n("aae3"),o=n("cb7c"),r=n("ebd6"),i=n("0390"),s=n("9def"),c=n("5f1b"),u=n("520a"),l=n("79e5"),f=Math.min,h=[].push,d="split",m="length",p="lastIndex",g=4294967295,v=!l((function(){RegExp(g,"y")}));n("214f")("split",2,(function(e,t,n,l){var w;return w="c"=="abbc"[d](/(b)*/)[1]||4!="test"[d](/(?:)/,-1)[m]||2!="ab"[d](/(?:ab)*/)[m]||4!="."[d](/(.?)(.?)/)[m]||"."[d](/()()/)[m]>1||""[d](/.?/)[m]?function(e,t){var o=String(this);if(void 0===e&&0===t)return[];if(!a(e))return n.call(o,e,t);var r,i,s,c=[],l=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),f=0,d=void 0===t?g:t>>>0,v=new RegExp(e.source,l+"g");while(r=u.call(v,o)){if(i=v[p],i>f&&(c.push(o.slice(f,r.index)),r[m]>1&&r.index<o[m]&&h.apply(c,r.slice(1)),s=r[0][m],f=i,c[m]>=d))break;v[p]===r.index&&v[p]++}return f===o[m]?!s&&v.test("")||c.push(""):c.push(o.slice(f)),c[m]>d?c.slice(0,d):c}:"0"[d](void 0,0)[m]?function(e,t){return void 0===e&&0===t?[]:n.call(this,e,t)}:n,[function(n,a){var o=e(this),r=void 0==n?void 0:n[t];return void 0!==r?r.call(n,o,a):w.call(String(o),n,a)},function(e,t){var a=l(w,e,this,t,w!==n);if(a.done)return a.value;var u=o(e),h=String(this),d=r(u,RegExp),m=u.unicode,p=(u.ignoreCase?"i":"")+(u.multiline?"m":"")+(u.unicode?"u":"")+(v?"y":"g"),b=new d(v?u:"^(?:"+u.source+")",p),C=void 0===t?g:t>>>0;if(0===C)return[];if(0===h.length)return null===c(b,h)?[h]:[];var x=0,N=0,I=[];while(N<h.length){b.lastIndex=v?N:0;var O,S=c(b,v?h:h.slice(N));if(null===S||(O=f(s(b.lastIndex+(v?0:N)),h.length))===x)N=i(h,N,m);else{if(I.push(h.slice(x,N)),I.length===C)return I;for(var y=1;y<=S.length-1;y++)if(I.push(S[y]),I.length===C)return I;N=x=O}}return I.push(h.slice(x)),I}]}))},5937:function(e,t,n){"use strict";var a=n("71f6"),o={getRoleMenu:"/list-staff-role-menu"};o=Object(a["a"])(o,"/hb-manage-web"),t["a"]=o},"6ce2":function(e,t,n){e.exports=n.p+"img/member.1eda5d6c.png"},"71f6":function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));n("ac6a"),n("456d");var a=n("b775");function o(e,t){e=e||{};var n=Object.keys(e);return n.forEach((function(n){var o=e[n];"string"===typeof o&&(o={url:o}),o.url="".concat(t).concat(o.url),e[n]=function(e){return Object(a["a"])(o,e)}})),e}},"7ded":function(e,t,n){"use strict";var a=n("71f6"),o={getLoginQrcode:"/get-login-qrcode",getUserInfo:"/get-login-user",loginOut:{url:"/login-out",method:"post",useFormData:!0}};o=Object(a["a"])(o,"/hb-manage-web/auth"),t["a"]=o},"7f2e":function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"enterprise-wrap"},[n("vue-office-header",{attrs:{"project-name":e.projectName},on:{collapseTag:e.collapseTag,toRouterView:e.toRouterView}}),n("div",{staticClass:"enterprise-wrap__body"},[n("div",{staticClass:"content",attrs:{id:"content"}},[n("div",{staticClass:"content-body",style:{height:e.contentHeight}},[n("transition",{attrs:{name:"fade",mode:"out-in"}},[n("router-view")],1)],1)])])],1)},o=[],r=n("f777"),i={name:"AppIndexPage",components:{vueOfficeHeader:r["a"]},data:function(){return{projectName:"haoban-manage-web",collapseFlag:!1,contentHeight:window.screen.availHeight-5+"px"}},mounted:function(){var e=this;e.contentHeight=(document.documentElement.clientHeight||document.body.clientHeight)-64+"px"},methods:{toRouterView:function(e){var t=this;t.$router.push({path:e.path})},collapseTag:function(e){var t=this;t.collapseFlag=e}},computed:{}},s=i,c=(n("ed605"),n("2877")),u=Object(c["a"])(s,a,o,!1,null,"7b2e96ec",null);t["default"]=u.exports},cc0d:function(e,t,n){"use strict";var a=n("ed94"),o=n.n(a);o.a},ed605:function(e,t,n){"use strict";var a=n("fc51"),o=n.n(a);o.a},ed94:function(e,t,n){},f777:function(e,t,n){"use strict";var a=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"nav-header"},[a("div",{staticClass:"nav-header-logo fl cursor-pointer",on:{click:e.toIndex}},[a("span",{staticClass:"pro-name"},[e._v("好办管理平台")])]),a("div",{staticClass:"nav-header-item fl"},[e._l(e.menuHead,(function(t,n){return[a("a",{key:n,class:["item-link menu-font-16"],on:{click:function(n){return e.changeRouter(t)}}},[a("span",{class:["inline-block bottom",-1!=t.menuUrl.indexOf(e.pathName)?"current-module":""]},[e._v(e._s(t.menuName))])])]})),a("div",{staticClass:"navuser-info fr"},[e.userInfo.headImg?a("img",{staticClass:"user-img",attrs:{src:e.userInfo.headImg,alt:""}}):a("img",{staticClass:"user-img",attrs:{src:n("6ce2"),alt:"img"}}),a("el-popover",{staticStyle:{"min-width":"95px"},attrs:{placement:"bottom",title:"",width:"95",trigger:"hover","popper-class":"user-header-pop"}},[a("ul",{staticClass:"navsuer-wrap"},[a("li",[a("p",{staticClass:"font-14 color-606266 hide-item"},[e._v(e._s(e.userInfo.staffName||"--"))]),a("p",{staticClass:"font-12 color-909399 hide-item"},[e._v(e._s(e.userInfo.roleName||"--"))])]),a("li",{staticClass:"user-item text-align",on:{click:function(t){return t.stopPropagation(),e.toLoginOut(t)}}},[a("a",{staticClass:"user-text"},[e._v("退出登录")])])]),a("a",{staticClass:"nav-user-name",attrs:{slot:"reference"},slot:"reference"},[a("span",{staticClass:"font-12 color-606266"},[e._v(e._s(e.userInfo.staffName||"--"))]),a("i",{staticClass:"iconfont iconxiala arrowico color-c0c4cc"})])])],1)],2)])},o=[],r=(n("456d"),n("96cf"),n("1da1")),i=(n("ac6a"),n("28a5"),n("7ded")),s=n("5937"),c=s["a"].getRoleMenu,u=i["a"].getUserInfo,l=i["a"].loginOut,f={name:"VueOfficeHeader",components:{},data:function(){return{checkShow:!0,tipText:"请先完成商户初始化设置后,再进行其他操作",repProjectName:"haoban-manage-web",pathName:"",isCollapse:!1,menuHead:[],roleMenuData:[],routePathName:"",userInfo:{staffName:"",nationCode:"",phoneNumber:"",headImg:"",wxEnterpriseId:"",roleName:""}}},mounted:function(){var e=this;e.pathName=e.$route.path,e.routePathName=window.location.hash.split("/")[1],-1!=e.routePathName.indexOf("?")&&(e.routePathName=e.routePathName.split("?")[0]),-1!=e.routePathName.indexOf("/")&&(e.routePathName=e.routePathName.split("/")[0]),localStorage.removeItem("haoBanUser"),e.toLogin()},methods:{toIndex:function(){var e=this;e.$router.push("/contactsList")},changeRouter:function(e){var t=this;if(1==e.target)-1!=e.menuUrl.indexOf("http")?window.open(e.menuUrl):window.open("/haoban-4/#".concat(e.menuUrl));else{t.setleftData(e);var n={};t.roleMenuData.forEach((function(t){e.menuCode!=t.menuCode||t.children.length||(n=t),e.menuCode==t.menuCode&&t.children.length&&(n=t.children[0])})),t.$router.push(n.menuUrl)}},setleftData:function(e){var t=this,n=[];t.roleMenuData.forEach((function(t){e.menuCode==t.menuCode&&n.push(t)})),t.$emit("leftData",n)},toLoginOut:function(){var e=this;e.$confirm("确认退出吗?","提示",{type:"warning"}).then((function(){l({}).then((function(t){"0000"==t.code&&(e.$message({message:"退出成功",type:"success"}),localStorage.removeItem("haoBanUser"),window.location.href=window.location.origin+"/haoban-4/#/login")})).catch((function(e){}))})).catch((function(){}))},toRouter:function(e,t,n){var a=this,o={path:"/"+e,name:t};a.$emit("toRouterView",o)},toLogin:function(){var e=this;u({}).then((function(t){t.result||(t.result={loginStaff:{staffName:"",nationCode:"",phoneNumber:"",headImg:"",wxEnterpriseId:""},role:{roleName:""}}),localStorage.setItem("haoBanUser",JSON.stringify(t.result.loginStaff)),e.userInfo=Object.assign(t.result.loginStaff,t.result.role),e.getData()})).catch((function(e){}))},treeData:function(e){var t=e.filter((function(t){var n=e.filter((function(e){return t.menuCode==e.parentCode&&1==e.isShow}));return n.length>0?(t.hasSonNode=!0,t.children=n):(t.children=[],t.hasSonNode=!1),""==t.parentCode&&1==t.isShow}));return t},getData:function(){var e=this,t={};c(t).then(function(){var t=Object(r["a"])(regeneratorRuntime.mark((function t(n){var a,o,r,i;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if("0000"!=n.code){t.next=14;break}return a=[],o={},r={},n.result.forEach((function(t){1==t.level&&1==t.isShow&&a.push(t),e.$route.path==t.menuUrl&&1==t.level&&1==t.isShow&&(o=t),e.$route.path==t.menuUrl&&1!=t.level&&(r=t)})),e.menuHead=a,t.next=8,e.treeData(JSON.parse(JSON.stringify(n.result)));case 8:e.roleMenuData=t.sent,Object.keys(r).length&&2==r.level&&n.result.forEach((function(e){r.parentCode==e.menuCode&&1==e.level&&1==e.isShow&&(o=e)})),i={},Object.keys(r).length&&3==r.level&&n.result.forEach((function(e){r.parentCode==e.menuCode&&2==e.level&&1==e.isShow&&(i=e)})),Object.keys(i).length&&2==i.level&&n.result.forEach((function(e){i.parentCode==e.menuCode&&1==e.level&&1==e.isShow&&(o=e)})),e.setleftData(o);case 14:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(e){}))}}},h=f,d=(n("cc0d"),n("2877")),m=Object(d["a"])(h,a,o,!1,null,"2a4f88b9",null);t["a"]=m.exports},fc51:function(e,t,n){}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-8f5b7c26"],{"0d254":function(t,e,a){"use strict";var n=a("ec21"),i=a.n(n);i.a},"0ef2":function(t,e,a){"use strict";var n=a("50e5"),i=a.n(n);i.a},"503e":function(t,e,a){"use strict";var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"p-t-12"},[a("ul",{staticClass:"tab-left-list"},[t._l(t.tabData,(function(e,n){return[a("li",{key:n,class:["tab-left-list-cell color-303133 font-14 border-box p-l-14",e.menuUrl!=t.activeTab||e.children.length?"":"active-tab"],on:{click:function(a){return t.selectTab(e,!1,n)}}},[a("i",{class:["p-r-10 color-303133 iconfont",e.iconUrl,(e.onlyIconActive,"")]}),t._v(t._s(e.tabName)+"\n ")]),a("ul",{key:"childitem"+n,staticClass:"child-tab-left-list"},[t._l(e.children,(function(e,i){return[a("li",{key:i,class:["tab-left-list-cell color-303133 font-14 border-box p-l-40",e.menuUrl!=t.activeTab||e.children.length?"":"active-tab"],on:{click:function(a){return t.selectTab(e,"child",n)}}},[t._v(t._s(e.tabName))]),a("ul",{key:"thirditem"+i,staticClass:"third-tab-left-list"},[t._l(e.children,(function(e,i){return[a("li",{key:i,class:["tab-left-list-cell color-303133 font-14 border-box p-l-60",e.menuUrl!=t.activeTab||e.children.length?"":"active-tab"],on:{click:function(a){return t.selectTab(e,"child",n)}}},[t._v(t._s(e.tabName))])]}))],2)]}))],2)]}))],2)])},i=[],o=(a("ac6a"),a("c5f6"),{name:"CommonDetailLeft",props:{appName:{type:String,default:function(){return""}},activeSelTab:{type:[String,Number],default:function(){return""}},tabListData:{type:[Array,Object],default:function(){return[]}}},data:function(){return{projectName:"",activeTab:"1",tabData:this.tabListData,collapsFlag:!0}},mounted:function(){this.activeTab=this.activeSelTab},methods:{returnBack:function(){var t=this;t.$router.push("appcenter")},selectTab:function(t,e,a){var n=this;if(e?n.tabData[a].onlyIconActive=!0:(n.tabData.forEach((function(t){t.onlyIconActive=!1})),t.hasOwnProperty("children")&&t.children.length&&(n.collapsFlag=!(n.collapsFlag&&t.hasOwnProperty("children")&&t.children.length))),t.hasOwnProperty("children")&&t.children.length)return n.tabData[a].onlyIconActive=!0,t.children[0]&&t.children[0].hasOwnProperty("children")&&t.children[0].children.length?(n.activeTab=t.children[0].children[0].menuUrl,n.$emit("setSelectTab",t.children[0].children[0]),!1):(n.activeTab=t.children[0].menuUrl,n.$emit("setSelectTab",t.children[0]),!1);n.activeTab=t.menuUrl,n.$emit("setSelectTab",t)}},watch:{tabListData:function(t,e){var a=this;a.tabData=t},activeSelTab:function(t,e){var a=this;a.activeTab=t}}}),r=o,c=(a("0ef2"),a("2877")),s=Object(c["a"])(r,n,i,!1,null,"51e072e6",null);e["a"]=s.exports},"50e5":function(t,e,a){},5937:function(t,e,a){"use strict";var n=a("71f6"),i={getRoleMenu:"/list-staff-role-menu"};i=Object(n["a"])(i,"/hb-manage-web"),e["a"]=i},"6ce2":function(t,e,a){t.exports=a.p+"img/member.1eda5d6c.png"},"71f6":function(t,e,a){"use strict";a.d(e,"a",(function(){return i}));a("ac6a"),a("456d");var n=a("b775");function i(t,e){t=t||{};var a=Object.keys(t);return a.forEach((function(a){var i=t[a];"string"===typeof i&&(i={url:i}),i.url="".concat(e).concat(i.url),t[a]=function(t){return Object(n["a"])(i,t)}})),t}},"7ded":function(t,e,a){"use strict";var n=a("71f6"),i={getLoginQrcode:"/get-login-qrcode",getUserInfo:"/get-login-user",loginOut:{url:"/login-out",method:"post",useFormData:!0}};i=Object(n["a"])(i,"/hb-manage-web/auth"),e["a"]=i},cc0d:function(t,e,a){"use strict";var n=a("ed94"),i=a.n(n);i.a},ea02:function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"my-customer-wrap common-set-wrap"},[a("vue-office-header",{attrs:{"project-name":t.projectName},on:{collapseTag:t.collapseTag,toRouterView:t.toRouterView,leftData:t.leftData}}),a("div",{staticClass:"enterprise-wrap__body"},[a("div",{staticClass:"content",attrs:{id:"content"}},[a("div",{staticClass:"content-body"},[a("div",{staticClass:"right-content border-box",style:{padding:t.showAsideMenu?"20px":"0 20px 20px 20px"}},[a("div",{staticClass:"right-box",staticStyle:{"min-height":"calc(100vh - 86px)"}},[a("div",{staticClass:"apps-content flex",staticStyle:{"min-height":"calc(100vh - 86px)"}},[a("div",{directives:[{name:"show",rawName:"v-show",value:t.showAsideMenu,expression:"showAsideMenu"}],staticClass:"apps-content-left w-157",staticStyle:{"min-height":"calc(100vh - 86px)"}},[a("common-detail-left",{attrs:{"tab-list-data":t.tabListData,"active-sel-tab":t.activeSelTab},on:{setSelectTab:t.setSelectTab}})],1),a("div",{staticClass:"apps-content-right border-box",style:{width:t.showAsideMenu?"calc(100% - 157px)":"100%",paddingLeft:t.showAsideMenu?"10px":"0"}},[a("transition",{attrs:{name:"fade",mode:"out-in"}},[a("router-view",{attrs:{"brand-id":t.activeBrand,"active-group-id":t.activeGroup,"tab-type":t.activeTab},on:{showTab:t.showTab,showAsideMenu:function(e){return t.showAsideMenu=e}}})],1)],1)])])])])])])],1)},i=[],o=(a("ac6a"),a("503e")),r=a("f777"),c={name:"EnterpriseSetIndex",components:{commonDetailLeft:o["a"],vueOfficeHeader:r["a"]},data:function(){return{bgHeight:window.screen.availHeight-288+"px",activeSelTab:"1",activeTab:"1",tabListData:[],activeBrand:"",activeGroup:"",showAsideMenu:!0}},mounted:function(){document.documentElement.style.backgroundColor="#f0f2f5"},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},methods:{toRouterView:function(t){var e=this;e.$router.push({path:t.path})},changeRoute:function(t){this.$router.push(t)},selectBrandId:function(t,e){var a=this;a.activeBrand=t,a.activeGroup=e},setSelectTab:function(t){var e=this;e.activeTab=t.menuUrl,1==t.target?-1!=t.menuUrl.indexOf("http")?window.open(t.menuUrl):window.open("/haoban-4/#".concat(t.menuUrl)):e.$router.push(t.menuUrl)},showTab:function(t){var e=this;e.activeTab=t,e.activeSelTab=t,e.tabListData.forEach((function(e){e.menuUrl==t&&(e.onlyIconActive=!1),e.children&&e.children.forEach((function(a){a.menuUrl==t&&(e.onlyIconActive=!0),a.children&&a.children.forEach((function(a){a.menuUrl==t&&(e.onlyIconActive=!0)}))}))}))},leftData:function(t){var e=this;t[0].children.forEach((function(t,a){t.tabId=a+1,t.tabName=t.menuName,t.children&&t.children.length&&e.setChildData(t,a+1)})),e.tabListData=t[0].children},setChildData:function(t,e){var a=this;t.children.forEach((function(t,n){t.tabId=e+"-"+(n+1),t.tabName=t.menuName,t.children&&t.children.length&&a.setChildData(t,e+"-"+(n+1))}))}},watch:{"$route.path":function(){this.showAsideMenu=!0},activeBrand:function(t,e){var a=this;a.activeBrand=t},activeGroup:function(t,e){var a=this;a.activeGroup=t}}},s=c,l=(a("0d254"),a("2877")),u=Object(l["a"])(s,n,i,!1,null,"d0aed7ba",null);e["default"]=u.exports},ec21:function(t,e,a){},ed94:function(t,e,a){},f777:function(t,e,a){"use strict";var n=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"nav-header"},[n("div",{staticClass:"nav-header-logo fl cursor-pointer",on:{click:t.toIndex}},[n("span",{staticClass:"pro-name"},[t._v("好办管理平台")])]),n("div",{staticClass:"nav-header-item fl"},[t._l(t.menuHead,(function(e,a){return[n("a",{key:a,class:["item-link menu-font-16"],on:{click:function(a){return t.changeRouter(e)}}},[n("span",{class:["inline-block bottom",-1!=e.menuUrl.indexOf(t.pathName)?"current-module":""]},[t._v(t._s(e.menuName))])])]})),n("div",{staticClass:"navuser-info fr"},[t.userInfo.headImg?n("img",{staticClass:"user-img",attrs:{src:t.userInfo.headImg,alt:""}}):n("img",{staticClass:"user-img",attrs:{src:a("6ce2"),alt:"img"}}),n("el-popover",{staticStyle:{"min-width":"95px"},attrs:{placement:"bottom",title:"",width:"95",trigger:"hover","popper-class":"user-header-pop"}},[n("ul",{staticClass:"navsuer-wrap"},[n("li",[n("p",{staticClass:"font-14 color-606266 hide-item"},[t._v(t._s(t.userInfo.staffName||"--"))]),n("p",{staticClass:"font-12 color-909399 hide-item"},[t._v(t._s(t.userInfo.roleName||"--"))])]),n("li",{staticClass:"user-item text-align",on:{click:function(e){return e.stopPropagation(),t.toLoginOut(e)}}},[n("a",{staticClass:"user-text"},[t._v("退出登录")])])]),n("a",{staticClass:"nav-user-name",attrs:{slot:"reference"},slot:"reference"},[n("span",{staticClass:"font-12 color-606266"},[t._v(t._s(t.userInfo.staffName||"--"))]),n("i",{staticClass:"iconfont iconxiala arrowico color-c0c4cc"})])])],1)],2)])},i=[],o=(a("456d"),a("96cf"),a("1da1")),r=(a("ac6a"),a("28a5"),a("7ded")),c=a("5937"),s=c["a"].getRoleMenu,l=r["a"].getUserInfo,u=r["a"].loginOut,h={name:"VueOfficeHeader",components:{},data:function(){return{checkShow:!0,tipText:"请先完成商户初始化设置后,再进行其他操作",repProjectName:"haoban-manage-web",pathName:"",isCollapse:!1,menuHead:[],roleMenuData:[],routePathName:"",userInfo:{staffName:"",nationCode:"",phoneNumber:"",headImg:"",wxEnterpriseId:"",roleName:""}}},mounted:function(){var t=this;t.pathName=t.$route.path,t.routePathName=window.location.hash.split("/")[1],-1!=t.routePathName.indexOf("?")&&(t.routePathName=t.routePathName.split("?")[0]),-1!=t.routePathName.indexOf("/")&&(t.routePathName=t.routePathName.split("/")[0]),localStorage.removeItem("haoBanUser"),t.toLogin()},methods:{toIndex:function(){var t=this;t.$router.push("/contactsList")},changeRouter:function(t){var e=this;if(1==t.target)-1!=t.menuUrl.indexOf("http")?window.open(t.menuUrl):window.open("/haoban-4/#".concat(t.menuUrl));else{e.setleftData(t);var a={};e.roleMenuData.forEach((function(e){t.menuCode!=e.menuCode||e.children.length||(a=e),t.menuCode==e.menuCode&&e.children.length&&(a=e.children[0])})),e.$router.push(a.menuUrl)}},setleftData:function(t){var e=this,a=[];e.roleMenuData.forEach((function(e){t.menuCode==e.menuCode&&a.push(e)})),e.$emit("leftData",a)},toLoginOut:function(){var t=this;t.$confirm("确认退出吗?","提示",{type:"warning"}).then((function(){u({}).then((function(e){"0000"==e.code&&(t.$message({message:"退出成功",type:"success"}),localStorage.removeItem("haoBanUser"),window.location.href=window.location.origin+"/haoban-4/#/login")})).catch((function(t){}))})).catch((function(){}))},toRouter:function(t,e,a){var n=this,i={path:"/"+t,name:e};n.$emit("toRouterView",i)},toLogin:function(){var t=this;l({}).then((function(e){e.result||(e.result={loginStaff:{staffName:"",nationCode:"",phoneNumber:"",headImg:"",wxEnterpriseId:""},role:{roleName:""}}),localStorage.setItem("haoBanUser",JSON.stringify(e.result.loginStaff)),t.userInfo=Object.assign(e.result.loginStaff,e.result.role),t.getData()})).catch((function(t){}))},treeData:function(t){var e=t.filter((function(e){var a=t.filter((function(t){return e.menuCode==t.parentCode&&1==t.isShow}));return a.length>0?(e.hasSonNode=!0,e.children=a):(e.children=[],e.hasSonNode=!1),""==e.parentCode&&1==e.isShow}));return e},getData:function(){var t=this,e={};s(e).then(function(){var e=Object(o["a"])(regeneratorRuntime.mark((function e(a){var n,i,o,r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if("0000"!=a.code){e.next=14;break}return n=[],i={},o={},a.result.forEach((function(e){1==e.level&&1==e.isShow&&n.push(e),t.$route.path==e.menuUrl&&1==e.level&&1==e.isShow&&(i=e),t.$route.path==e.menuUrl&&1!=e.level&&(o=e)})),t.menuHead=n,e.next=8,t.treeData(JSON.parse(JSON.stringify(a.result)));case 8:t.roleMenuData=e.sent,Object.keys(o).length&&2==o.level&&a.result.forEach((function(t){o.parentCode==t.menuCode&&1==t.level&&1==t.isShow&&(i=t)})),r={},Object.keys(o).length&&3==o.level&&a.result.forEach((function(t){o.parentCode==t.menuCode&&2==t.level&&1==t.isShow&&(r=t)})),Object.keys(r).length&&2==r.level&&a.result.forEach((function(t){r.parentCode==t.menuCode&&1==t.level&&1==t.isShow&&(i=t)})),t.setleftData(i);case 14:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(t){}))}}},f=h,d=(a("cc0d"),a("2877")),m=Object(d["a"])(f,n,i,!1,null,"2a4f88b9",null);e["a"]=m.exports}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-96ef390e"],{"28a5":function(t,e,a){"use strict";var n=a("aae3"),r=a("cb7c"),o=a("ebd6"),s=a("0390"),u=a("9def"),i=a("5f1b"),c=a("520a"),l=a("79e5"),d=Math.min,m=[].push,g="split",h="length",p="lastIndex",f=4294967295,v=!l((function(){RegExp(f,"y")}));a("214f")("split",2,(function(t,e,a,l){var S;return S="c"=="abbc"[g](/(b)*/)[1]||4!="test"[g](/(?:)/,-1)[h]||2!="ab"[g](/(?:ab)*/)[h]||4!="."[g](/(.?)(.?)/)[h]||"."[g](/()()/)[h]>1||""[g](/.?/)[h]?function(t,e){var r=String(this);if(void 0===t&&0===e)return[];if(!n(t))return a.call(r,t,e);var o,s,u,i=[],l=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),d=0,g=void 0===e?f:e>>>0,v=new RegExp(t.source,l+"g");while(o=c.call(v,r)){if(s=v[p],s>d&&(i.push(r.slice(d,o.index)),o[h]>1&&o.index<r[h]&&m.apply(i,o.slice(1)),u=o[0][h],d=s,i[h]>=g))break;v[p]===o.index&&v[p]++}return d===r[h]?!u&&v.test("")||i.push(""):i.push(r.slice(d)),i[h]>g?i.slice(0,g):i}:"0"[g](void 0,0)[h]?function(t,e){return void 0===t&&0===e?[]:a.call(this,t,e)}:a,[function(a,n){var r=t(this),o=void 0==a?void 0:a[e];return void 0!==o?o.call(a,r,n):S.call(String(r),a,n)},function(t,e){var n=l(S,t,this,e,S!==a);if(n.done)return n.value;var c=r(t),m=String(this),g=o(c,RegExp),h=c.unicode,p=(c.ignoreCase?"i":"")+(c.multiline?"m":"")+(c.unicode?"u":"")+(v?"y":"g"),F=new g(v?c:"^(?:"+c.source+")",p),b=void 0===e?f:e>>>0;if(0===b)return[];if(0===m.length)return null===i(F,m)?[m]:[];var D=0,w=0,C=[];while(w<m.length){F.lastIndex=v?w:0;var y,k=i(F,v?m:m.slice(w));if(null===k||(y=d(u(F.lastIndex+(v?0:w)),m.length))===D)w=s(m,w,h);else{if(C.push(m.slice(D,w)),C.length===b)return C;for(var I=1;I<=k.length-1;I++)if(C.push(k[I]),C.length===b)return C;w=D=y}}return C.push(m.slice(D)),C}]}))},5898:function(t,e,a){"use strict";var n=a("d363"),r=a.n(n);r.a},"5b4e":function(t,e,a){"use strict";var n=a("5c96");e["a"]={showmsg:function(t,e){Object(n["Message"])({duration:1e3,message:t||"接口异常",type:e})}}},"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){return Object(n["a"])(r,t)}})),t}},d11a:function(t,e,a){"use strict";var n=a("71f6"),r={getGroupList:"/department-list",getStoreList:"/store-list",getAssignStatus:"/app-distribute-status",getNavChain:"/get-chain",getMemberList:{url:"/app-get-member-info-list",method:"post",useFormData:!0},getClerkList:"/clerk-list",getMemberCount:"",saveAssign:{url:"/",method:"post",useFormData:!0},getMemberData:"",getServiceData:"",saveSortMember:{url:"/",method:"post",useFormData:!0,useIntercept:!1},getShowSet:"",saveShowSet:{url:"",method:"post",useFormData:!0,useIntercept:!1},getCustomerSet:"",saveCustomerSet:{url:"",method:"post",useFormData:!0,useIntercept:!1},getGroupData:"",getClassifyData:"",postSortGroup:{url:"/",method:"post",useFormData:!0,useIntercept:!1},getSyncMemberData:"",saveSync:{url:"/",method:"post",useFormData:!0,useIntercept:!1},saveVisiable:{url:"/",method:"post",useFormData:!0,useIntercept:!1},getTagClassify:"",addClassify:"",delClassify:{url:"/",method:"post",useFormData:!0,useIntercept:!1},getClerkTag:"",addClerkTag:"",delClerkTag:{url:"/",method:"post",useFormData:!0,useIntercept:!1}};r=Object(n["a"])(r,"/hb-manage-web"),e["a"]=r},d157:function(t,e,a){"use strict";a.d(e,"a",(function(){return n})),a.d(e,"b",(function(){return r})),a.d(e,"c",(function(){return o}));a("c5f6"),a("a481"),a("28a5"),a("6b54");function n(t,e){var a,n=e||200;return function(){var e=this,r=arguments;a&&clearTimeout(a),a=setTimeout((function(){a=null,t.apply(e,r)}),n)}}function r(t,e){var a,n,r=e||200;return function(){var e=this,o=arguments,s=+new Date;a&&s-a<r?(clearTimeout(n),n=setTimeout((function(){a=s,t.apply(e,o)}),r)):(a=s,t.apply(e,o))}}function o(t){return t=t.replace(/\uD83C[\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F]|[\uD800-\uDBFF]|[\uDC00-\uDFFF]|[^\u0020-\u007E\u00A0-\u00BE\u2E80-\uA4CF\uF900-\uFAFF\uFE30-\uFE4F\uFF00-\uFFEF\u0080-\u009F\u2000-\u201f\u2026\u2022\u20ac\r\n]/g,""),unescape(escape(t).replace(/\%uD.{3}/g,""))}},d363:function(t,e,a){},f766: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:"common-app-right"},[a("div",{staticClass:"m-b-20"},[a("el-checkbox",{staticClass:"w-195",model:{value:t.customerShowData.mainStoreFlag,callback:function(e){t.$set(t.customerShowData,"mainStoreFlag",e)},expression:"customerShowData.mainStoreFlag"}},[t._v("展示服务门店顾客")]),a("div",{staticClass:"font-14 color-909399 set-tip-item"},[t._v("注:保存勾选项后,门店导购和店长可查看本门店作为服务门店名下顾客")])],1),a("div",{staticClass:"m-b-20"},[a("el-checkbox",{staticClass:"w-195",model:{value:t.customerShowData.minorStoreFlag,callback:function(e){t.$set(t.customerShowData,"minorStoreFlag",e)},expression:"customerShowData.minorStoreFlag"}},[t._v("展示协管门店顾客")]),a("div",{staticClass:"font-14 color-909399 set-tip-item"},[t._v("注:保存勾选项后,门店导购和店长可查看本门店作为协管门店名下顾客")])],1),a("div",{staticClass:"m-b-20"},[a("el-checkbox",{staticClass:"w-195",model:{value:t.customerShowData.openCardStoreFlag,callback:function(e){t.$set(t.customerShowData,"openCardStoreFlag",e)},expression:"customerShowData.openCardStoreFlag"}},[t._v("展示开卡门店顾客")]),a("div",{staticClass:"font-14 color-909399 set-tip-item"},[t._v("注:保存勾选项后,门店导购和店长可查看本门店作为开卡门店名下顾客")])],1),a("div",{staticClass:"m-t-46"},[a("el-button",{attrs:{type:"primary",loading:t.loading},on:{click:function(e){return t.submit()}}},[t._v("保存")])],1)])},r=[],o=a("d11a"),s=a("d157"),u=a("5b4e"),i=o["a"].getShowSet,c=o["a"].saveShowSet,l={name:"CustomerShowSet",components:{},props:{brandId:{type:String,default:""}},data:function(){return{customerShowData:{mainStoreFlag:!1,minorStoreFlag:!1,openCardStoreFlag:!1},loading:!1}},mounted:function(){var t=this;t.brandId&&t.getShowData()},methods:{submit:Object(s["a"])((function(){var t=this;t.loading=!0,t.setData()}),500),setData:function(){var t=this,e={enterpriseId:t.brandId,mainStoreFlag:t.customerShowData.mainStoreFlag?1:"0",minorStoreFlag:t.customerShowData.minorStoreFlag?1:"0",openCardStoreFlag:t.customerShowData.openCardStoreFlag?1:"0"};c(e).then((function(e){t.loading=!1,t.getShowData(),"0000"==e.code?u["a"].showmsg("操作成功","success"):u["a"].showmsg(e.message||"接口异常","warning")})).catch((function(e){t.loading=!1}))},getShowData:function(){var t=this,e={enterpriseId:t.brandId};i(e).then((function(e){t.customerShowData=e.result||[]})).catch((function(t){}))}},watch:{brandId:function(t){var e=this;t&&e.getShowData()}}},d=l,m=(a("5898"),a("2877")),g=Object(m["a"])(d,n,r,!1,null,"fdef3edc",null);e["default"]=g.exports}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-a5cbb47e"],{"19f9":function(t,e,a){"use strict";var n=a("7d04"),o=a.n(n);o.a},"29b6":function(t,e,a){"use strict";var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"nav-wrap border-box"},[a("el-breadcrumb",{attrs:{"separator-class":"el-icon-arrow-right"}},[t._l(t.navpath,(function(e,n){return[e.path?[a("el-breadcrumb-item",{key:"nav"+n,attrs:{to:{path:e.path}},on:{click:function(a){return t.changeRoute(e.path,e.relocation)}}},[a("span",{staticClass:"el-breadcrumb__inner is-link",on:{click:function(a){return t.changeRoute(e.path,e.relocation)}}},[t._v("\n "+t._s(e.name)+"\n ")])])]:[a("el-breadcrumb-item",{key:"nav"+n},[t._v(t._s(e.name))])]]}))],2)],1)},o=[],s={name:"NavPath",props:{navpath:{type:Array,default:function(){return[]}}},data:function(){return{projectName:"member"}},methods:{changeRoute:function(t,e){var a=this;e?window.location.href=t:a.$router.push(t)}}},l=s,r=(a("6b4b"),a("2877")),i=Object(r["a"])(l,n,o,!1,null,"2c2a2724",null);e["a"]=i.exports},3081:function(t,e,a){"use strict";var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"common-alert-tip"},[a("div",{style:{"min-width":t.width}},[a("div",{staticClass:"el-alert el-alert--info flex flex-align-start",style:{width:t.width},attrs:{role:"alert"}},[a("i",{staticClass:"el-alert__icon el-icon-info font-12 color-2f54eb"}),a("div",{staticClass:"el-alert__content"},[a("span",{staticClass:"el-alert__title color-606266 font-13"},[t._v("\n "+t._s(t.tipContent)+"\n ")])])])])])},o=[],s={name:"CommonAlertTip",components:{},props:{width:{type:String,default:"645px"},tipContent:{type:String,default:""}},data:function(){return{}}},l=s,r=a("2877"),i=Object(r["a"])(l,n,o,!1,null,"3070d237",null);e["a"]=i.exports},"6b4b":function(t,e,a){"use strict";var n=a("76d4"),o=a.n(n);o.a},"71f6":function(t,e,a){"use strict";a.d(e,"a",(function(){return o}));a("ac6a"),a("456d");var n=a("b775");function o(t,e){t=t||{};var a=Object.keys(t);return a.forEach((function(a){var o=t[a];"string"===typeof o&&(o={url:o}),o.url="".concat(e).concat(o.url),t[a]=function(t){return Object(n["a"])(o,t)}})),t}},"76d4":function(t,e,a){},"7d04":function(t,e,a){},b155:function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"my-customer-wrap common-set-wrap"},[a("nav-crumb",{attrs:{navpath:t.navpath}}),a("div",{staticClass:"right-content"},[a("div",{staticClass:"right-box",staticStyle:{"min-height":"calc(100vh - 86px)"}},[a("div",{staticClass:"apps-content flex",staticStyle:{"min-height":"calc(100vh - 86px)"}},[a("div",{staticClass:"apps-content-right"},[a("el-tabs",{on:{"tab-click":t.handleClick},model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},[a("el-tab-pane",{attrs:{label:"绑定变更日志",name:"first"}},[a("div",{staticClass:"flex flex-space-between"},[a("div",{},[a("el-input",{staticClass:"w-293",attrs:{placeholder:"请输入导购手机号或代码","prefix-icon":"el-icon-search",clearable:""},on:{clear:t.clearInput},nativeOn:{keyup:function(e){return function(e){return t.toInput(e,t.searchInput)}(e)}},model:{value:t.searchInput,callback:function(e){t.searchInput=e},expression:"searchInput"}}),a("el-select",{staticClass:"w-168 m-l-10",attrs:{placeholder:"请选择"},on:{change:t.changeBindList},model:{value:t.optType,callback:function(e){t.optType=e},expression:"optType"}},[a("el-option",{attrs:{label:"全部状态",value:""}}),a("el-option",{attrs:{label:"绑定",value:"0"}}),a("el-option",{attrs:{label:"解绑",value:"1"}})],1)],1),a("common-alert-tip",{attrs:{width:"284px","tip-content":t.tipContent}})],1),a("div",{staticClass:"m-t-20"},[a("el-table",{ref:"multipleTable",staticClass:"select-table",style:{width:"100%"},attrs:{data:t.tableBindData,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{prop:"",label:"类型","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(0==e.row.optType?"绑定":"解绑"))]}}])}),a("el-table-column",{attrs:{label:"导购账号"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-popover",{attrs:{placement:"top",width:"242",trigger:"hover"}},[a("div",[a("div",{staticClass:"flex flex-space-between line-28"},[a("span",{staticClass:"font-14 color-606266"},[t._v("姓名")]),a("span",{staticClass:"font-14 color-303133"},[t._v(t._s(e.row.clerkName||"--")+"("+t._s(1==e.row.sex?"男":2==e.row.sex?"女":"--")+" )")])]),a("div",{staticClass:"flex flex-space-between line-28"},[a("span",{staticClass:"font-14 color-606266"},[t._v("手机号")]),a("span",{staticClass:"font-14 color-303133"},[t._v(t._s(e.row.clerkNationCode||"--")+"-"+t._s(e.row.clerkPhoneNumber||"--"))])]),a("div",{staticClass:"flex flex-space-between line-28"},[a("span",{staticClass:"font-14 color-606266 min-w-90"},[t._v("所在门店")]),a("span",{staticClass:"font-14 color-303133"},[t._v(t._s(e.row.storeName||"--"))])])]),a("span",{staticClass:"common-bottom-border",attrs:{slot:"reference"},slot:"reference"},[t._v(t._s(e.row.clerkName||"--")+"("+t._s(e.row.clerkCode||"--")+")")])])]}}])}),a("el-table-column",{attrs:{label:"企微账号","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.wxUserId||"--"))]}}])}),a("el-table-column",{attrs:{label:"手机号","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.phoneNumber||"--"))]}}])}),a("el-table-column",{attrs:{prop:"",label:"更新时间","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"line-h-18"},[t._v(t._s(t._f("timeStampToYmd")(e.row.updateTime))+" "+t._s(e.row.updateTime?"":"--"))]),a("div",{staticClass:"line-h-18"},[t._v(t._s(t._f("timeStampToHms")(e.row.updateTime))+" "+t._s(e.row.updateTime?"":"--"))])]}}])}),a("el-table-column",{attrs:{label:"操作人","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.optStaffName||"--"))]}}])}),a("el-table-column",{attrs:{prop:"",label:"原因","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[1001==e.row.channelCode?a("span",{attrs:{type:"text"}},[t._v("后台管理员绑定")]):t._e(),1002==e.row.channelCode?a("span",{attrs:{type:"text"}},[t._v("好办客户端绑定")]):t._e(),1003==e.row.channelCode?a("span",{attrs:{type:"text"}},[t._v("审核绑定")]):t._e(),1004==e.row.channelCode?a("span",{attrs:{type:"text"}},[t._v("GIC 同步绑定")]):t._e(),1005==e.row.channelCode?a("span",{attrs:{type:"text"}},[t._v("企业同步绑定")]):t._e(),2001==e.row.channelCode?a("span",{attrs:{type:"text"}},[t._v("后台管理员解绑")]):t._e(),2002==e.row.channelCode?a("span",{attrs:{type:"text"}},[t._v("好办客户端解绑")]):t._e(),2003==e.row.channelCode?a("span",{attrs:{type:"text"}},[t._v("GIC 同步解绑")]):t._e(),2004==e.row.channelCode?a("span",{attrs:{type:"text"}},[t._v("企业同步解绑")]):t._e(),2005==e.row.channelCode?a("span",{attrs:{type:"text"}},[t._v("授权范围变更解绑")]):t._e()]}}])})],1),0!=t.tableBindData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("dm-pagination",{attrs:{background:"","current-page":t.currentPage,"page-sizes":[20,40,60,80],"page-size":t.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1):t._e()],1)]),a("el-tab-pane",{attrs:{label:"通讯录刷新日志",name:"second"}},[a("div",{staticClass:"flex flex-space-between"},[a("common-alert-tip",{attrs:{width:"284px","tip-content":"仅保存近一年的日志"}})],1),a("div",{staticClass:"m-t-20"},[a("el-table",{ref:"multipleTable",staticClass:"select-table",style:{width:"100%",minHeight:t.tableH},attrs:{data:t.tableData,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{label:"提交人","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.optName||"--"))]}}])}),a("el-table-column",{attrs:{prop:"",label:"同步时间","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"line-18"},[t._v(t._s(t._f("timeStampToYmd")(e.row.createTime))+t._s(e.row.createTime?"":"--"))]),a("div",{staticClass:"line-18"},[t._v(t._s(t._f("timeStampToHms")(e.row.createTime))+t._s(e.row.createTime?"":"--"))])]}}])}),a("el-table-column",{attrs:{prop:"",label:"完成时间","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{staticClass:"line-18"},[t._v(t._s(t._f("timeStampToYmd")(e.row.updateTime))+t._s(e.row.updateTime?"":"--"))]),a("div",{staticClass:"line-18"},[t._v(t._s(t._f("timeStampToHms")(e.row.updateTime))+t._s(e.row.updateTime?"":"--"))])]}}])}),a("el-table-column",{attrs:{prop:"",label:"同步内容","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(t._f("'--'")(e.row.taskDesc)))]}}])}),a("el-table-column",{attrs:{prop:"",label:"状态","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",{class:["span-dot",4==e.row.statusFlag?"bg-52c41a":"bg-f5222d"]}),4==e.row.statusFlag?a("span",{staticClass:"font-14 color-606266"},[t._v(t._s(4==e.row.statusFlag?"成功":""))]):t._e(),0==e.row.statusFlag?a("span",{staticClass:"font-14 color-606266"},[t._v("初始化")]):t._e(),1==e.row.statusFlag||2==e.row.statusFlag||3==e.row.statusFlag?a("span",{staticClass:"font-14 color-606266"},[t._v("分组/门店/成员同步中")]):t._e(),5==e.row.statusFlag||6==e.row.statusFlag?a("el-popover",{staticClass:"item",attrs:{trigger:"hover",content:5==e.row.statusFlag?"完成有错误":"有错误关闭",placement:"top"}},[a("span",{staticClass:"common-bottom-border",attrs:{slot:"reference"},slot:"reference"},[t._v("失败")])]):t._e()]}}])})],1),0!=t.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("dm-pagination",{attrs:{background:"","current-page":t.currentPage,"page-sizes":[20,40,60,80],"page-size":t.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1):t._e()],1)])],1)],1)])])]),t.logShow?a("fail-log",{attrs:{"task-id":t.taskId},on:{closeLog:t.closeLog}}):t._e()],1)},o=[],s=(a("7f7f"),function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("el-dialog",{attrs:{title:"查看失败日志",visible:t.dialogVisible,width:"995px","before-close":t.handleClose},on:{"update:visible":function(e){t.dialogVisible=e}}},[a("div",{staticClass:"overstore-tip"},[a("div",{staticClass:"el-alert el-alert--info flex flex-align-start",attrs:{role:"alert"}},[a("i",{staticClass:"el-alert__icon el-icon-info font-12 color-2f54eb"}),a("div",{staticClass:"el-alert__content"},[a("span",{staticClass:"el-alert__title color-606266 font-14"},[t._v("失败可能:分组创建失败或门店及成员创建失败"),a("br"),t._v("\n 通讯录同步分为两步串联创建:"),a("br"),t._v("\n 第一步同步分组,若出现分组创建失败,则分组及下面的门店及成员均会创建失败"),a("br"),t._v("\n 第二步同步门店及成员,若分组创建成功,会同步门店及成员,若门店创建失败,则门店下成员也会创建失败")])])])]),a("div",{staticClass:"m-t-20"},[a("el-table",{ref:"multipleTable",staticClass:"select-table",style:{width:"100%",minHeight:t.tableH},attrs:{height:"450",data:t.tableData,"tooltip-effect":"dark"}},[a("el-table-column",{attrs:{label:"分组/门店名称","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.dataName))]}}])}),a("el-table-column",{attrs:{prop:"",label:"分组/门店code","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.dataCode)+"\n ")]}}])}),a("el-table-column",{attrs:{prop:"",label:"所属分组","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.chainName)+"\n ")]}}])}),a("el-table-column",{attrs:{prop:"",label:"数据类型","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(0==e.row.dataType?"分组":1==e.row.dataType?"门店":"成员")+"\n ")]}}])}),a("el-table-column",{attrs:{prop:"",label:"同步状态","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",{class:["span-dot",2==e.row.statusFlag?"bg-52c41a":"bg-f5222d"]}),a("span",{staticClass:"font-14 color-606266"},[t._v(t._s(3==e.row.statusFlag?"同步失败":1==e.row.statusFlag?"同步处理中":"--"))])]}}])}),a("el-table-column",{attrs:{prop:"",label:"失败原因","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(t._f("'--'")(e.row.reason)))]}}])})],1),0!=t.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("dm-pagination",{attrs:{background:"","current-page":t.currentPage,"page-sizes":[20,40,60,80],"page-size":t.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1):t._e()],1)])}),l=[],r=a("e230"),i=r["a"].getSyncFailDetail,c={name:"FailLog",props:{taskId:{type:String,default:function(){return""}}},data:function(){return{dialogVisible:!0,currentPage:1,pageSize:20,total:0,tableData:[]}},mounted:function(){var t=this;t.taskId&&t.getTableList(),document.documentElement.style.backgroundColor="#f0f2f5"},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},methods:{handleClose:function(){var t=this;t.tableData=[],t.$emit("closeLog")},changeRoute:function(t){this.$router.push(t)},handleSizeChange:function(t){var e=this;e.currentPage=1,e.pageSize=t,e.getTableList()},handleCurrentChange:function(t){var e=this;e.currentPage=t,e.getTableList()},getTableList:function(){var t=this,e={keyWord:t.searchInput||"",taskId:t.taskId,pageNum:t.currentPage,pageSize:t.pageSize};i(e).then((function(e){t.tableData=e.result.result||[],t.total=e.result.totalCount})).catch((function(t){}))}},watch:{taskId:function(t,e){var a=this;t&&a.getTableList()}}},u=c,p=(a("b8b7"),a("2877")),d=Object(p["a"])(u,s,l,!1,null,"cae564e0",null),f=d.exports,g=a("29b6"),h=a("3081"),m=a("d157"),b=r["a"].getBindLog,v=r["a"].getRefreshLog,_=r["a"].getWxEnterprise,w={name:"SyncLog",components:{navCrumb:g["a"],failLog:f,commonAlertTip:h["a"]},data:function(){return{tipContent:"仅保存近一年绑定解绑的日志",navpath:[{name:"通讯录",path:"/contactsList"},{name:"日志详情",path:""}],wxEnterpriseId:localStorage.getItem("haoBanUser")?JSON.parse(localStorage.getItem("haoBanUser")).wxEnterpriseId:"",activeName:"first",searchInput:"",currentPage:1,pageSize:20,total:0,tableData:[],tableBindData:[],logShow:!1,taskId:"",optType:"",enterpriseId:"",brandOptions:[]}},mounted:function(){var t=this;t.getBrandData(),t.getBindList(),document.documentElement.style.backgroundColor="#f0f2f5"},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},methods:{clearInput:function(){var t=this;t.currentPage=1,t.getBindList()},changeBindList:function(){var t=this;t.currentPage=1,t.getBindList()},toInput:Object(m["a"])((function(t){var e=this;e.currentPage=1,e.getBindList()}),200),handleClick:function(t){var e=this;e.currentPage=1,e.pageSize=20,e.total=0,e.enterpriseId="","second"==t.name?e.getTableList():(e.getBrandData(),e.getBindList())},toShowLog:function(t,e){var a=this;a.taskId=e.taskId,a.logShow=!0},closeLog:function(){var t=this;t.taskId="",t.logShow=!1},changeRoute:function(t){this.$router.push(t)},handleSizeChange:function(t){var e=this;e.currentPage=1,e.pageSize=t,"second"==e.activeName?e.getTableList():e.getBindList()},handleCurrentChange:function(t){var e=this;e.currentPage=t,"second"==e.activeName?e.getTableList():e.getBindList()},getBrandData:function(){var t=this;_({wxEnterpriseId:t.wxEnterpriseId}).then((function(e){e.result&&e.result.length&&(t.brandOptions=e.result)})).catch((function(t){}))},getBindList:function(){var t=this,e={search:t.searchInput||"",enterpriseId:t.enterpriseId,wxEnterpriseId:t.wxEnterpriseId,optType:t.optType,pageNum:t.currentPage,pageSize:t.pageSize};b(e).then((function(e){t.tableBindData=e.result.result||[],t.total=e.result.totalCount})).catch((function(t){}))},getTableList:function(){var t=this,e={enterpriseId:t.enterpriseId,wxEnterpriseId:t.wxEnterpriseId,pageNum:t.currentPage,pageSize:t.pageSize};v(e).then((function(e){t.tableData=e.result.result||[],t.total=e.result.totalCount})).catch((function(t){}))}}},C=w,y=(a("19f9"),Object(p["a"])(C,n,o,!1,null,"7a59c3f6",null));e["default"]=y.exports},b8b7:function(t,e,a){"use strict";var n=a("ced6"),o=a.n(n);o.a},ced6:function(t,e,a){},d157:function(t,e,a){"use strict";a.d(e,"a",(function(){return n})),a.d(e,"b",(function(){return o})),a.d(e,"c",(function(){return s}));a("c5f6"),a("a481"),a("28a5"),a("6b54");function n(t,e){var a,n=e||200;return function(){var e=this,o=arguments;a&&clearTimeout(a),a=setTimeout((function(){a=null,t.apply(e,o)}),n)}}function o(t,e){var a,n,o=e||200;return function(){var e=this,s=arguments,l=+new Date;a&&l-a<o?(clearTimeout(n),n=setTimeout((function(){a=l,t.apply(e,s)}),o)):(a=l,t.apply(e,s))}}function s(t){return t=t.replace(/\uD83C[\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F]|[\uD800-\uDBFF]|[\uDC00-\uDFFF]|[^\u0020-\u007E\u00A0-\u00BE\u2E80-\uA4CF\uF900-\uFAFF\uFE30-\uFE4F\uFF00-\uFFEF\u0080-\u009F\u2000-\u201f\u2026\u2022\u20ac\r\n]/g,""),unescape(escape(t).replace(/\%uD.{3}/g,""))}},e230:function(t,e,a){"use strict";var n=a("71f6"),o={getSyncCheck:"/sync/sync-check",refreshWx:"/sync/sync-contact",getDepartmentList:"/department-list-level",getCompanyDepartList:"/contact/get-department-list",getStaffList:"/contact/get-staff-list",getStaffDetail:"/contact/staff-detail",getStaffRelation:"/bind/staff-clerk-relation",delStaffRelation:{url:"/bind/staff-unbind",method:"post",useFormData:!0,useIntercept:!1},addStaffRelation:{url:"/bind/staff-bind",method:"post",useFormData:!0,useIntercept:!1},getClerkRelation:"/bind/search-clerk-list",getWxEnterprise:"/auth-enterprise-list",getBindLog:"/bind/bind-log-list",getRefreshLog:"/sync/sync-task",getSyncFailDetail:"/sync-task-detail",getNationCode:"/nationcode/get-nationcode-list",getGicGroup:"/gic-department-list",getGicStore:"/get-store-list"};o=Object(n["a"])(o,"/hb-manage-web"),e["a"]=o}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-ab296cf2"],{"28a5":function(t,e,a){"use strict";var n=a("aae3"),s=a("cb7c"),i=a("ebd6"),r=a("0390"),l=a("9def"),o=a("5f1b"),c=a("520a"),u=a("79e5"),f=Math.min,d=[].push,p="split",g="length",h="lastIndex",v=4294967295,m=!u((function(){RegExp(v,"y")}));a("214f")("split",2,(function(t,e,a,u){var b;return b="c"=="abbc"[p](/(b)*/)[1]||4!="test"[p](/(?:)/,-1)[g]||2!="ab"[p](/(?:ab)*/)[g]||4!="."[p](/(.?)(.?)/)[g]||"."[p](/()()/)[g]>1||""[p](/.?/)[g]?function(t,e){var s=String(this);if(void 0===t&&0===e)return[];if(!n(t))return a.call(s,t,e);var i,r,l,o=[],u=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),f=0,p=void 0===e?v:e>>>0,m=new RegExp(t.source,u+"g");while(i=c.call(m,s)){if(r=m[h],r>f&&(o.push(s.slice(f,i.index)),i[g]>1&&i.index<s[g]&&d.apply(o,i.slice(1)),l=i[0][g],f=r,o[g]>=p))break;m[h]===i.index&&m[h]++}return f===s[g]?!l&&m.test("")||o.push(""):o.push(s.slice(f)),o[g]>p?o.slice(0,p):o}:"0"[p](void 0,0)[g]?function(t,e){return void 0===t&&0===e?[]:a.call(this,t,e)}:a,[function(a,n){var s=t(this),i=void 0==a?void 0:a[e];return void 0!==i?i.call(a,s,n):b.call(String(s),a,n)},function(t,e){var n=u(b,t,this,e,b!==a);if(n.done)return n.value;var c=s(t),d=String(this),p=i(c,RegExp),g=c.unicode,h=(c.ignoreCase?"i":"")+(c.multiline?"m":"")+(c.unicode?"u":"")+(m?"y":"g"),C=new p(m?c:"^(?:"+c.source+")",h),w=void 0===e?v:e>>>0;if(0===w)return[];if(0===d.length)return null===o(C,d)?[d]:[];var _=0,D=0,x=[];while(D<d.length){C.lastIndex=m?D:0;var y,S=o(C,m?d:d.slice(D));if(null===S||(y=f(l(C.lastIndex+(m?0:D)),d.length))===_)D=r(d,D,g);else{if(x.push(d.slice(_,D)),x.length===w)return x;for(var F=1;F<=S.length-1;F++)if(x.push(S[F]),x.length===w)return x;D=_=y}}return x.push(d.slice(_)),x}]}))},2938:function(t,e,a){"use strict";var n=a("c44f"),s=a.n(n);s.a},6300:function(t,e,a){"use strict";var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"custom-dialog-wrap"},[a("el-dialog",{attrs:{title:"门店图片变更",visible:t.customDialog,width:"600px","before-close":t.handleCardClose},on:{"update:visible":function(e){t.customDialog=e}}},[a("div",{staticClass:"dialog-content"},[a("el-row",[a("el-col",{attrs:{span:11}},[a("div",{staticClass:"grid-content bg-purple-dark"},[t._v("\n 变更前\n ")]),a("div",{staticClass:"data-body"},[a("div",{staticClass:"data-body-content flex flex-column"},[t._l(t.leftData,(function(t,e){return[a("img",{key:"img"+e,attrs:{src:t,alt:""}})]}))],2)])]),a("el-col",{attrs:{span:11}},[a("div",{staticClass:"grid-content bg-purple-dark"},[t._v("\n 变更后\n ")]),a("div",{staticClass:"data-body"},[a("div",{staticClass:"data-body-content flex flex-column"},[t._l(t.rightData,(function(t,e){return[a("img",{key:"img0"+e,attrs:{src:t,alt:""}})]}))],2)])])],1)],1)])],1)},s=[],i={name:"StoreChangeDialog",props:{value:{type:Boolean,default:!1},storeChangeData:{type:[Object,Array]}},data:function(){return{repProjectName:"haoban-web",customDialog:this.value,leftData:[],rightData:[]}},mounted:function(){var t=this;t.leftData=t.storeChangeData.beforeContent,t.rightData=t.storeChangeData.afterContent},methods:{handleCardClose:function(){var t=this;t.customCancel()},customCancel:function(){var t=this;t.customDialog=!1,t.$emit("input",t.customDialog)}},watch:{value:function(t,e){var a=this;a.customDialog=t},storeChangeData:function(t,e){var a=this;a.leftData=t.beforeContent,a.rightData=t.afterContent}}},r=i,l=(a("8709"),a("2877")),o=Object(l["a"])(r,n,s,!1,null,"bce7ed18",null);e["a"]=o.exports},"6ce2":function(t,e,a){t.exports=a.p+"img/member.1eda5d6c.png"},"71f6":function(t,e,a){"use strict";a.d(e,"a",(function(){return s}));a("ac6a"),a("456d");var n=a("b775");function s(t,e){t=t||{};var a=Object.keys(t);return a.forEach((function(a){var s=t[a];"string"===typeof s&&(s={url:s}),s.url="".concat(e).concat(s.url),t[a]=function(t){return Object(n["a"])(s,t)}})),t}},7842:function(t,e,a){},8709:function(t,e,a){"use strict";var n=a("7842"),s=a.n(n);s.a},"96b6":function(t,e,a){"use strict";var n=a("71f6"),s={getReview:"/audit/audit-list",getWxEnterprise:"/auth-enterprise-list",getStaffInfo:"/get-staff-info",postAudit:{url:"/audit/agree",method:"post",useFormData:!0,useIntercept:!1},postBatchApprove:{url:"/audit/batch-agree",method:"post",useFormData:!0,useIntercept:!1},postRefuse:{url:"/audit/refuse",method:"post",useFormData:!0,useIntercept:!1},getAuditDetail:"/audit/batch-log-list"};s=Object(n["a"])(s,"/hb-manage-web"),e["a"]=s},c44f:function(t,e,a){},d157:function(t,e,a){"use strict";a.d(e,"a",(function(){return n})),a.d(e,"b",(function(){return s})),a.d(e,"c",(function(){return i}));a("c5f6"),a("a481"),a("28a5"),a("6b54");function n(t,e){var a,n=e||200;return function(){var e=this,s=arguments;a&&clearTimeout(a),a=setTimeout((function(){a=null,t.apply(e,s)}),n)}}function s(t,e){var a,n,s=e||200;return function(){var e=this,i=arguments,r=+new Date;a&&r-a<s?(clearTimeout(n),n=setTimeout((function(){a=r,t.apply(e,i)}),s)):(a=r,t.apply(e,i))}}function i(t){return t=t.replace(/\uD83C[\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F]|[\uD800-\uDBFF]|[\uDC00-\uDFFF]|[^\u0020-\u007E\u00A0-\u00BE\u2E80-\uA4CF\uF900-\uFAFF\uFE30-\uFE4F\uFF00-\uFFEF\u0080-\u009F\u2000-\u201f\u2026\u2022\u20ac\r\n]/g,""),unescape(escape(t).replace(/\%uD.{3}/g,""))}},dacc:function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"reviewed-wrap common-set-wrap"},[n("div",{staticClass:"right-content"},[n("div",{staticClass:"right-box",staticStyle:{"min-height":"calc(100vh - 86px)"}},[n("div",{staticClass:"reviewed-body-head"},[t._m(0),n("el-input",{staticClass:"w-344",attrs:{maxlength:"50",placeholder:"请输入提交人姓名/账号/手机号","prefix-icon":"el-icon-search",clearable:""},on:{clear:t.clearSearch},nativeOn:{keyup:function(e){return function(e){return t.searchEnterFun(e,t.searchInput)}(e)}},model:{value:t.searchValue,callback:function(e){t.searchValue=e},expression:"searchValue"}}),n("el-select",{staticClass:"w-130 m-l-10",attrs:{placeholder:"全部事项"},on:{change:t.changeTableList},model:{value:t.auditType,callback:function(e){t.auditType=e},expression:"auditType"}},t._l(t.filterOptions,(function(t){return n("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1),n("el-select",{staticClass:"w-168 m-l-10",attrs:{placeholder:"全部品牌"},on:{change:t.changeTableList},model:{value:t.filterBrand,callback:function(e){t.filterBrand=e},expression:"filterBrand"}},[n("el-option",{attrs:{label:"全部品牌",value:""}}),t._l(t.brandOptions,(function(t){return n("el-option",{key:t.enterpriseId,attrs:{label:t.enterpriseName,value:t.enterpriseId}})}))],2)],1),n("div",{staticClass:"reviewed-body-content"},[n("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],ref:"multipleTable",staticStyle:{width:"100%"},attrs:{data:t.tableData,"tooltip-effect":"dark"}},[n("el-table-column",{attrs:{label:"审核事项"},scopedSlots:t._u([{key:"default",fn:function(e){return[1==e.row.auditType?n("span",[t._v("导购账号绑定")]):t._e()]}}])}),n("el-table-column",{attrs:{label:"提交人","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[n("div",{staticClass:"flex"},[n("el-popover",{attrs:{placement:"top",width:"300",trigger:"hover"},on:{show:function(a){return t.showSingleInfo(e.row.submitStaffId)}}},[n("div",{staticClass:"apply-info-detail"},[n("div",{staticClass:"flex"},[n("div",{staticClass:"apply-info-img flex-align-center flex-pack-center bg-82c5ff "},[t.userData.headImg?n("img",{attrs:{src:t.userData.headImg,alt:"img"}}):n("img",{attrs:{src:a("6ce2"),alt:"img"}})]),n("div",{staticClass:"flex flex-column apply-info-right flex-pack-center"},[n("div",{staticClass:"apply-info-name"},[n("span",{staticClass:"font-14 color-303133"},[t._v(t._s(t.userData.staffName||"--"))]),n("span",{staticClass:"font-14 color-90939"},[t._v("( "+t._s(1==t.userData.sex?"男":2==t.userData.sex?"女":"--")+")")])])])]),n("div",{staticClass:"flex flex-space-between line-26 m-t-15"},[n("div",{staticClass:"font-14 color-606266"},[t._v("账号")]),n("div",{staticClass:"font-14 color-303133"},[t._v(t._s(t.userData.wxUserId||"--"))])]),n("div",{staticClass:"flex flex-space-between line-26"},[n("div",{staticClass:"font-14 color-606266"},[t._v("职务")]),n("div",{staticClass:"font-14 color-303133"},[t._v(t._s(t.userData.postion||"--"))])]),n("div",{staticClass:"flex flex-space-between line-26"},[n("div",{staticClass:"font-14 color-606266"},[t._v("手机号")]),n("div",{staticClass:"font-14 color-303133"},[t._v(t._s(t.userData.nationCode||"--")+"-"+t._s(t.userData.phoneNumber||"--"))])]),n("div",{staticClass:"flex flex-space-between line-26"},[n("div",{staticClass:"font-14 color-606266 w-m-100"},[t._v("部门")]),n("div",{staticClass:"font-14 color-303133"},[t._v(t._s(t.userData.departmentInfo.map((function(t){return t.departmentName})).join(";")||"--"))])])]),n("div",{attrs:{slot:"reference"},slot:"reference"},[n("div",{staticClass:"flex flex-align-center flex-pack-center bg-82c5ff table-head-pic cursor-pointer"},[e.row.submitHeadImg?n("img",{attrs:{src:e.row.submitHeadImg,alt:"img"}}):n("img",{attrs:{src:a("6ce2"),alt:"img"}})])])]),n("div",{staticClass:"flex flex-column apply-info",staticStyle:{overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"}},[n("span",{staticClass:"font-14 color-606266 hide-ellipsis"},[t._v(t._s(e.row.submitStaffName||"--"))]),n("span",{staticClass:"font-12 color-909399 hide-ellipsis"},[t._v(t._s(e.row.submitWxUserId||"--"))])])],1)]}}])}),n("el-table-column",{attrs:{label:"详情","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.content||"--")+"\n ")]}}])}),n("el-table-column",{attrs:{label:"提交时间","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[n("div",{staticClass:"line-h-18"},[t._v(t._s(t._f("timeStampToYmd")(e.row.createTime)))]),n("div",{staticClass:"line-h-18"},[t._v(t._s(t._f("timeStampToHms")(e.row.createTime)))])]}}])}),n("el-table-column",{attrs:{label:"审核人","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.auditStaffName||"--")+"\n ")]}}])}),n("el-table-column",{attrs:{label:"状态"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("span",{class:["span-dot",1==e.row.auditFlag?"bg-52c41a":"bg-f5222d"]}),1==e.row.auditFlag?n("span",[t._v("已同意")]):t._e(),2==e.row.auditFlag?n("el-popover",{attrs:{placement:"top",width:"200",trigger:"hover",content:e.row.reason}},[n("span",{staticClass:"common-bottom-border",attrs:{slot:"reference"},slot:"reference"},[t._v("已拒绝")])]):t._e()]}}])}),n("el-table-column",{attrs:{label:"结果"},scopedSlots:t._u([{key:"default",fn:function(e){return[2==e.row.statusFlag&&1==e.row.auditFlag?n("span",[t._v("成功")]):t._e(),2==e.row.auditFlag?n("span",[t._v("--")]):t._e(),1==e.row.statusFlag&&1==e.row.auditFlag?n("el-popover",{attrs:{placement:"top",width:"200",trigger:"hover",content:e.row.reason}},[n("span",{staticClass:"common-bottom-border",attrs:{slot:"reference"},slot:"reference"},[t._v("失败")])]):t._e()]}}])})],1),0!=t.tableData.length?n("div",{staticClass:"block common-wrap__page text-right"},[n("dm-pagination",{attrs:{background:"","current-page":t.currentPage,"page-sizes":[20,40,60,80],"page-size":t.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1):t._e()],1)])]),n("store-change",{attrs:{"store-change-data":t.storeChangeData},model:{value:t.showStoreDialog,callback:function(e){t.showStoreDialog=e},expression:"showStoreDialog"}})],1)},s=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"tip-body m-b-20"},[a("div",{staticClass:"el-alert el-alert--info",attrs:{role:"alert"}},[a("i",{staticClass:"el-alert__icon el-icon-info"}),a("div",{staticClass:"el-alert__content"},[a("span",{staticClass:"el-alert__title"},[t._v("展示管理员审核及绑定解绑记录及门店成员自助增删导购及用户绑定记录")])])])])}],i=(a("28a5"),a("ac6a"),a("6300")),r=a("96b6"),l=a("e230"),o=a("d157"),c=l["a"].getStaffDetail,u=r["a"].getReview,f=r["a"].getWxEnterprise,d={name:"ReviewedPage",components:{storeChange:i["a"]},data:function(){return{wxEnterpriseId:localStorage.getItem("haoBanUser")?JSON.parse(localStorage.getItem("haoBanUser")).wxEnterpriseId:"",auditType:"",filterBrand:"",brandOptions:[],filterOptions:[{label:"全部事项",value:""},{label:"导购账号绑定",value:"1"}],searchValue:"",loading:!1,tableData:[],multipleSelection:[],currentPage:1,pageSize:20,total:0,showStoreDialog:!1,storeChangeData:{},userData:{staffName:"",phoneNumber:"",nationCode:"",postion:"",departmentInfo:[],headImg:"",wxUserId:"",sex:1}}},mounted:function(){var t=this;t.$emit("showTab","/reviewed"),t.getTableList(),t.getBrandData()},methods:{changeTableList:function(){var t=this;t.currentPage=1,t.getTableList()},clearSearch:function(){var t=this;t.currentPage=1,t.getTableList()},searchEnterFun:Object(o["a"])((function(t){var e=this,a=String(t.target.value).trim();if(!a)return!1;e.currentPage=1,e.getTableList()}),200),toggleReason:function(t){var e=this;t.visible=!0,e.tableData.forEach((function(e,a){e.enterpriseAuditingId!=t.enterpriseAuditingId&&(e.visible=!1)}))},handleSelectionChange:function(t){var e=this;e.multipleSelection=t},handleSizeChange:function(t){var e=this;e.currentPage=1,e.pageSize=t,e.getTableList()},handleCurrentChange:function(t){var e=this;e.currentPage=t,e.getTableList()},showSingleInfo:function(t){var e=this,a={staffId:t};c(a).then((function(t){e.userData=t.result||{staffName:"",phoneNumber:"",nationCode:"",postion:"",departmentInfo:[],headImg:"",wxUserId:"",sex:1}})).catch((function(t){}))},showStoreChange:function(t){var e=this;e.storeChangeData={beforeContent:[],afterContent:[]},e.showStoreDialog=!0,e.storeChangeData={beforeContent:""!=t.oldValue?t.oldValue.split(","):[],afterContent:""!=t.newValue?t.newValue.split(","):[]}},getBrandData:function(){var t=this;f({wxEnterpriseId:t.wxEnterpriseId}).then((function(e){e.result&&e.result.length&&(t.brandOptions=e.result)})).catch((function(t){}))},getTableList:function(){var t=this;t.loading=!0;var e={wxEnterpriseId:t.wxEnterpriseId,auditType:t.auditType,searchType:"1",search:t.searchValue||"",pageNum:t.currentPage,pageSize:t.pageSize,enterpriseId:t.filterBrand};u(e).then((function(e){t.loading=!1,t.tableData=e.result.result||[],t.total=e.result.totalCount})).catch((function(e){t.loading=!1}))}}},p=d,g=(a("2938"),a("2877")),h=Object(g["a"])(p,n,s,!1,null,"7c0c5ee4",null);e["default"]=h.exports},e230:function(t,e,a){"use strict";var n=a("71f6"),s={getSyncCheck:"/sync/sync-check",refreshWx:"/sync/sync-contact",getDepartmentList:"/department-list-level",getCompanyDepartList:"/contact/get-department-list",getStaffList:"/contact/get-staff-list",getStaffDetail:"/contact/staff-detail",getStaffRelation:"/bind/staff-clerk-relation",delStaffRelation:{url:"/bind/staff-unbind",method:"post",useFormData:!0,useIntercept:!1},addStaffRelation:{url:"/bind/staff-bind",method:"post",useFormData:!0,useIntercept:!1},getClerkRelation:"/bind/search-clerk-list",getWxEnterprise:"/auth-enterprise-list",getBindLog:"/bind/bind-log-list",getRefreshLog:"/sync/sync-task",getSyncFailDetail:"/sync-task-detail",getNationCode:"/nationcode/get-nationcode-list",getGicGroup:"/gic-department-list",getGicStore:"/get-store-list"};s=Object(n["a"])(s,"/hb-manage-web"),e["a"]=s}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-ac12b2a4"],{"0fb7":function(e,t,a){"use strict";var i=a("67ae"),n=a.n(i);n.a},1005:function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"unreview-wrap common-set-wrap"},[i("div",{staticClass:"right-content"},[i("div",{staticClass:"right-box",staticStyle:{"min-height":"calc(100vh - 86px)"}},[i("div",{staticClass:"reviewed-body-head flex flex-space-between"},[i("div",[i("el-input",{staticClass:"w-344",attrs:{maxlength:"50",placeholder:"请输入提交人姓名/账号/手机号","prefix-icon":"el-icon-search",clearable:""},on:{clear:e.clearSearch},nativeOn:{keyup:function(t){return function(t){return e.searchEnterFun(t,e.searchInput)}(t)}},model:{value:e.searchValue,callback:function(t){e.searchValue=t},expression:"searchValue"}}),i("el-select",{staticClass:"w-130 m-l-10",attrs:{placeholder:"全部事项"},on:{change:e.changeTableList},model:{value:e.auditType,callback:function(t){e.auditType=t},expression:"auditType"}},e._l(e.filterOptions,(function(e){return i("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1),i("el-select",{staticClass:"w-168 m-l-10",attrs:{placeholder:"全部品牌"},on:{change:e.changeTableList},model:{value:e.filterBrand,callback:function(t){e.filterBrand=t},expression:"filterBrand"}},[i("el-option",{attrs:{label:"全部品牌",value:""}}),e._l(e.brandOptions,(function(e){return i("el-option",{key:e.enterpriseId,attrs:{label:e.enterpriseName,value:e.enterpriseId}})}))],2)],1),i("dm-perm-button",{attrs:{disabled:e.$itemPerm(e.$itemCode.batchAudit),type:"primary"},on:{click:e.approveAll}},[e._v("批量同意")])],1),i("div",{staticClass:"reviewed-body-content"},[i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"multipleTable",staticStyle:{width:"100%"},attrs:{data:e.tableData,"tooltip-effect":"dark"},on:{"selection-change":e.handleSelectionChange}},[i("el-table-column",{attrs:{type:"selection",width:"55"}}),i("el-table-column",{attrs:{label:"审核事项"},scopedSlots:e._u([{key:"default",fn:function(t){return[1==t.row.auditType?i("span",[e._v("导购账号绑定")]):e._e()]}}])}),i("el-table-column",{attrs:{label:"提交人","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("div",{staticClass:"flex"},[i("el-popover",{attrs:{placement:"top",width:"300",trigger:"hover"},on:{show:function(a){return e.showSingleInfo(t.row.submitStaffId)}}},[i("div",{staticClass:"apply-info-detail"},[i("div",{staticClass:"flex"},[i("div",{staticClass:"apply-info-img flex-align-center flex-pack-center bg-82c5ff "},[e.userData.headImg?i("img",{attrs:{src:e.userData.headImg,alt:"img"}}):i("img",{attrs:{src:a("6ce2"),alt:"img"}})]),i("div",{staticClass:"flex flex-column apply-info-right flex-pack-center"},[i("div",{staticClass:"apply-info-name"},[i("span",{staticClass:"font-14 color-303133"},[e._v(e._s(e.userData.staffName||"--"))]),i("span",{staticClass:"font-14 color-90939"},[e._v("( "+e._s(1==e.userData.sex?"男":2==e.userData.sex?"女":"--")+")")])])])]),i("div",{staticClass:"flex flex-space-between line-26 m-t-15"},[i("div",{staticClass:"font-14 color-606266"},[e._v("账号")]),i("div",{staticClass:"font-14 color-303133"},[e._v(e._s(e.userData.wxUserId||"--"))])]),i("div",{staticClass:"flex flex-space-between line-26"},[i("div",{staticClass:"font-14 color-606266"},[e._v("职务")]),i("div",{staticClass:"font-14 color-303133"},[e._v(e._s(e.userData.postion||"--"))])]),i("div",{staticClass:"flex flex-space-between line-26"},[i("div",{staticClass:"font-14 color-606266"},[e._v("手机号")]),i("div",{staticClass:"font-14 color-303133"},[e._v(e._s(e.userData.nationCode||"--")+"-"+e._s(e.userData.phoneNumber||"--"))])]),i("div",{staticClass:"flex flex-space-between line-26"},[i("div",{staticClass:"font-14 color-606266 w-m-100"},[e._v("部门")]),i("div",{staticClass:"font-14 color-303133"},[e._v(e._s(e.userData.departmentInfo.map((function(e){return e.departmentName})).join(";")||"--"))])])]),i("div",{attrs:{slot:"reference"},slot:"reference"},[i("div",{staticClass:"flex flex-align-center flex-pack-center bg-82c5ff table-head-pic cursor-pointer"},[t.row.submitHeadImg?i("img",{attrs:{src:t.row.submitHeadImg,alt:"img"}}):i("img",{attrs:{src:a("6ce2"),alt:"img"}})])])]),i("div",{staticClass:"flex flex-column apply-info hide-ellipsis"},[i("span",{staticClass:"font-14 color-606266 hide-ellipsis"},[e._v(e._s(t.row.submitStaffName||"--"))]),i("span",{staticClass:"font-12 color-909399 hide-ellipsis"},[e._v(e._s(t.row.submitWxUserId||"--"))])])],1)]}}])}),i("el-table-column",{attrs:{label:"详情","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.content||"--")+"\n ")]}}])}),i("el-table-column",{attrs:{label:"提交时间","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[i("div",{staticClass:"line-h-18"},[e._v(e._s(e._f("timeStampToYmd")(t.row.createTime)))]),i("div",{staticClass:"line-h-18"},[e._v(e._s(e._f("timeStampToHms")(t.row.createTime)))])]}}])}),i("el-table-column",{attrs:{label:"操作",width:"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[i("el-button",{attrs:{type:"text"},on:{click:function(a){return e.handleClick(t.$index,t.row)}}},[e._v("同意")]),i("el-button",{attrs:{type:"text"},on:{click:function(a){return e.handleClick(t.$index,t.row,"refuse")}}},[e._v("拒绝")])]}}])})],1),0!=e.tableData.length?i("div",{staticClass:"block common-wrap__page text-right"},[i("dm-pagination",{attrs:{background:"","current-page":e.currentPage,"page-sizes":[20,40,60,80],"page-size":e.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1):e._e()],1)])]),i("store-change",{attrs:{"store-change-data":e.storeChangeData},model:{value:e.showStoreDialog,callback:function(t){e.showStoreDialog=t},expression:"showStoreDialog"}}),i("el-dialog",{staticClass:"approve-dialog",attrs:{title:"",visible:e.approveVisible,width:"422px"},on:{"update:visible":function(t){e.approveVisible=t}}},[i("div",{staticClass:"approve-body text-center"},[i("div",[i("i",{staticClass:"el-icon-success"}),i("span",{staticClass:"approve-icon-tip"},[e._v("同意")])]),i("div",{staticClass:"approve-tip"},[e._v("是否确认同意")])]),i("div",{staticClass:"approve-footer dialog-footer",staticStyle:{"text-align":"center"},attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:function(t){e.approveVisible=!1}}},[e._v("取 消")]),i("el-button",{attrs:{type:"primary"},on:{click:e.sendApprove}},[e._v("确 定")])],1)]),i("el-dialog",{staticClass:"refuse-dialog",attrs:{title:"提示",visible:e.refuseVisible,"before-close":e.cancelRefuse,width:"422px"},on:{"update:visible":function(t){e.refuseVisible=t}}},[i("div",[i("div",{staticClass:"refuse-tip"},[e._v("请输入拒绝理由")]),i("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,rules:e.rules}},[i("el-form-item",{attrs:{label:"",prop:"refuseReason"}},[i("el-input",{staticClass:"font-14",attrs:{type:"textarea",placeholder:"最多 50 个字",rows:3},model:{value:e.ruleForm.refuseReason,callback:function(t){e.$set(e.ruleForm,"refuseReason",t)},expression:"ruleForm.refuseReason"}})],1)],1)],1),i("div",{staticClass:"approve-footer dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:function(t){return e.cancelRefuse("ruleForm")}}},[e._v("取 消")]),i("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.sendRefuse("ruleForm")}}},[e._v("确 定")])],1)]),i("review-result-detail",{attrs:{"audit-ids":e.auditIds,"detail-show":e.detailShow},on:{hideDetailDialog:e.hideDetailDialog}}),i("el-dialog",{attrs:{title:"提示",visible:e.dialogVisible,width:"30%"},on:{"update:visible":function(t){e.dialogVisible=t}}},[i("span",[e._v("共"+e._s(e.multipleSelection.length)+"条审核事项,是否批量同意?")]),i("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:function(t){e.dialogVisible=!1}}},[e._v("取 消")]),i("el-button",{attrs:{type:"primary",loading:e.loadBtn},on:{click:function(t){e.postAllApprove(e.multipleSelection.map((function(e){return e.auditId})).join(","))}}},[e._v("确 定")])],1)])],1)},n=[],s=(a("28a5"),a("6300")),l=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{directives:[{name:"show",rawName:"v-show",value:e.customDialog,expression:"customDialog"}]},[a("el-dialog",{staticClass:"edit-dialog",attrs:{title:"审核详情",visible:e.customDialog,width:"600px","before-close":e.handleClose},on:{"update:visible":function(t){e.customDialog=t}}},[a("div",{staticClass:"edit-dialog-body"},[a("div",{staticClass:"font-14 color-606266 m-b-8"},[e._v("共 "+e._s(e.multLength||"")+" 条审核事项, "+e._s(e.success||"0")+" 条成功, "),a("span",{staticClass:"color-f5222d"},[e._v(e._s(e.fail||"0")+" ")]),e._v(" 条失败,失败详情如下:")]),a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.tableData,height:"332"}},[a("el-table-column",{attrs:{prop:"publishRecordId",label:"审核事项","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[1==t.row.auditType?a("span",[e._v("导购账号绑定")]):e._e()]}}])}),a("el-table-column",{attrs:{label:"商户","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.enterpriseName||"--")+"\n ")]}}])}),a("el-table-column",{attrs:{label:"提交人","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.submitStaffName||"--")+"\n ")]}}])}),a("el-table-column",{attrs:{label:"提交时间",width:"120"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"color-606266 line-18"},[e._v(e._s(e._f("timeStampToYmd")(t.row.createTime))+" "+e._s(t.row.createTime?"":"--"))]),a("div",{staticClass:"color-606266 line-18"},[e._v(e._s(e._f("timeStampToHms")(t.row.createTime))+" "+e._s(t.row.createTime?"":"--"))])]}}])}),a("el-table-column",{attrs:{label:"状态"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",{class:["span-dot",1==t.row.auditFlag?"bg-52c41a":"bg-f5222d"]}),1==t.row.auditFlag?a("span",[e._v("已同意")]):e._e()]}}])}),a("el-table-column",{attrs:{label:"结果"},scopedSlots:e._u([{key:"default",fn:function(t){return[2==t.row.statusFlag&&1==t.row.auditFlag?a("span",[e._v("成功")]):e._e(),2==t.row.auditFlag?a("span",[e._v("--")]):e._e(),1==t.row.statusFlag&&1==t.row.auditFlag?a("el-popover",{attrs:{placement:"top",width:"200",trigger:"hover",content:t.row.reason}},[a("span",{staticClass:"common-bottom-border",attrs:{slot:"reference"},slot:"reference"},[e._v("失败")])]):e._e()]}}])})],1)],1)])],1)},o=[],r=a("96b6"),c=r["a"].getAuditDetail,u={name:"ReviewResultDetail",props:{detailShow:{type:Boolean,default:!1},auditIds:{type:String,default:function(){return""}},tableListData:{type:Object,default:function(){return[]}}},data:function(){return{customDialog:!1,tableData:[],fail:"",success:""}},mounted:function(){var e=this;e.customDialog=e.detailShow,e.auditIds&&(e.multLength=e.auditIds.split(",").length,e.getTableData())},methods:{handleClose:function(e){var t=this;e(),t.hideDialog()},customCancel:function(){var e=this;e.hideDialog()},hideDialog:function(){var e=this;e.customDialog=!1,e.$emit("hideDetailDialog")},getTableData:function(){var e=this,t={auditIds:e.auditIds};c(t).then((function(t){e.tableData=t.result.resultList||[],e.fail=t.result.fail,e.success=t.result.success})).catch((function(e){}))}},watch:{detailShow:function(e,t){var a=this;a.customDialog=e},auditIds:function(e,t){var a=this;e&&(a.multLength=e.split(",").length,a.getTableData())}}},d=u,f=(a("0fb7"),a("2877")),p=Object(f["a"])(d,l,o,!1,null,"62237765",null),g=p.exports,h=a("5b4e"),m=a("d157"),v=a("e230"),b=v["a"].getStaffDetail,w=r["a"].getReview,C=r["a"].getWxEnterprise,D=r["a"].postAudit,_=r["a"].postBatchApprove,y=r["a"].postRefuse,x=r["a"].getAuditDetail,S={name:"UnreviewPage",components:{storeChange:s["a"],reviewResultDetail:g},data:function(){return{wxEnterpriseId:localStorage.getItem("haoBanUser")?JSON.parse(localStorage.getItem("haoBanUser")).wxEnterpriseId:"",auditName:localStorage.getItem("haoBanUser")?JSON.parse(localStorage.getItem("haoBanUser")).staffName:"",auditType:"",filterBrand:"",brandOptions:[],searchValue:"",filterOptions:[{label:"全部事项",value:""},{label:"导购账号绑定",value:"1"}],loading:!1,tableData:[],multipleSelection:[],currentPage:1,pageSize:20,total:0,selectId:"",ruleForm:{refuseReason:""},rules:{refuseReason:[{required:!0,message:"拒绝理由不能为空",trigger:"change"},{min:1,max:50,message:"长度在 1 到 50 个字",trigger:"change"}]},showStoreDialog:!1,storeChangeData:{beforeContent:[],afterContent:[]},approveVisible:!1,refuseVisible:!1,detailShow:!1,resultShow:!1,tableListData:[],resultText:"",failCount:"0",userData:{staffName:"",phoneNumber:"",nationCode:"",postion:"",departmentInfo:[],headImg:"",wxUserId:"",sex:1},dialogVisible:!1,loadBtn:!1,timeFlag:null,loadingFull:""}},mounted:function(){var e=this;e.$emit("showTab","/unreview"),e.getTableList(),e.getBrandData()},beforeDestroy:function(){window.clearInterval(this.timeFlag),this.timeFlag=null},methods:{clearSearch:function(){var e=this;e.currentPage=1,e.getTableList()},changeTableList:function(){var e=this;e.currentPage=1,e.getTableList()},searchEnterFun:Object(m["a"])((function(e){var t=this,a=String(e.target.value).trim();if(!a)return!1;t.currentPage=1,t.getTableList()}),200),hideDetailDialog:function(){var e=this;e.detailShow=!1,e.currentPage=1,e.getTableList()},handleSelectionChange:function(e){var t=this;t.multipleSelection=e},handleSizeChange:function(e){var t=this;t.currentPage=1,t.pageSize=e,t.getTableList()},handleCurrentChange:function(e){var t=this;t.currentPage=e,t.getTableList()},handleClick:function(e,t,a){var i=this;if(i.selectId=t.auditId,a&&(i.refuseVisible=!0),a)return!1;i.$confirm("是否确认同意?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){i.sendApprove()})).catch((function(){i.selectId=""}))},sendApprove:Object(m["a"])((function(){var e=this;e.postApprove(e.selectId)}),500),postApprove:function(e){var t=this,a={auditId:e,auditName:t.auditName};D(a).then((function(e){"0000"==e.code?(h["a"].showmsg("操作成功","success"),t.approveVisible=!1,t.currentPage=1,t.getTableList(),t.$forceUpdate()):(t.currentPage=1,t.getTableList(),t.$message({message:e.message||"接口异常",type:"warning"}))})).catch((function(e){}))},approveAll:function(){var e=this,t=e.multipleSelection.length?e.multipleSelection.map((function(e){return e.auditId})).join(","):"";if(!t)return e.$message({message:"请至少选择一条审核事项",type:"warning"}),!1;e.dialogVisible=!0},postAllApprove:function(e){var t=this;t.loadBtn=!0;var a={auditIds:e,auditName:t.auditName};_(a).then((function(e){t.loadBtn=!1,"0000"==e.code?(t.dialogVisible=!1,t.$nextTick((function(){t.loadingFull=t.$loading({lock:!0,text:"数据处理中,请耐心等待",spinner:"el-icon-loading",background:"rgba(0, 0, 0, 0.7)"}),window.clearInterval(t.timeFlag),t.timeFlag=null,t.timeFlag=window.setInterval((function(){t.getDetailFlag()}),3e3),t.$once("hook:beforeDestroy",(function(){window.clearInterval(t.timeFlag),t.timeFlag=null}))}))):t.$message({message:e.message||"接口异常",type:"warning"})})).catch((function(e){t.loadBtn=!1}))},getDetailFlag:function(){var e=this,t={auditIds:e.multipleSelection.map((function(e){return e.auditId})).join(",")||""};x(t).then((function(t){t.result.auditResult?(e.auditIds=e.multipleSelection.map((function(e){return e.auditId})).join(","),e.loadingFull.close(),window.clearInterval(e.timeFlag),e.timeFlag=null,e.detailShow=!0,e.currentPage=1,e.getTableList()):e.detailShow=!1})).catch((function(e){}))},cancelRefuse:function(e){var t=this;t.refuseVisible=!1,t.$refs["ruleForm"].resetFields()},sendRefuse:Object(m["a"])((function(e){var t=this;t.$refs[e].validate((function(e){if(!e)return!1;t.postRefuseData()}))}),500),postRefuseData:function(){var e=this,t={auditName:e.auditName,auditId:e.selectId,reason:Object(m["c"])(e.ruleForm.refuseReason)};y(t).then((function(t){"0000"==t.code?(h["a"].showmsg("操作成功","success"),e.refuseVisible=!1,e.$refs["ruleForm"].resetFields(),e.currentPage=1,e.getTableList()):(e.$message({message:t.message||"接口异常",type:"warning"}),e.currentPage=1,e.getTableList())})).catch((function(t){e.$message.error({duration:1e3,message:t.message})}))},showSingleInfo:function(e){var t=this,a={staffId:e};b(a).then((function(e){t.userData=e.result||{staffName:"",phoneNumber:"",nationCode:"",postion:"",departmentInfo:[],headImg:"",wxUserId:"",sex:1}})).catch((function(e){}))},showStoreChange:function(e){var t=this;t.storeChangeData={beforeContent:[],afterContent:[]},t.showStoreDialog=!0,t.storeChangeData={beforeContent:""!=e.oldValue?e.oldValue.split(","):[],afterContent:""!=e.newValue?e.newValue.split(","):[]}},getBrandData:function(){var e=this;C({wxEnterpriseId:e.wxEnterpriseId}).then((function(t){e.brandOptions=t.result||[]})).catch((function(e){}))},getTableList:function(){var e=this;e.loading=!0;var t={wxEnterpriseId:e.wxEnterpriseId,auditType:e.auditType,searchType:"0",search:e.searchValue,pageNum:e.currentPage,pageSize:e.pageSize,enterpriseId:e.filterBrand};w(t).then((function(t){e.loading=!1,e.tableData=t.result.result||[],e.total=t.result.totalCount})).catch((function(t){e.loading=!1}))}}},F=S,I=(a("c686"),Object(f["a"])(F,i,n,!1,null,"169957e5",null));t["default"]=I.exports},"28a5":function(e,t,a){"use strict";var i=a("aae3"),n=a("cb7c"),s=a("ebd6"),l=a("0390"),o=a("9def"),r=a("5f1b"),c=a("520a"),u=a("79e5"),d=Math.min,f=[].push,p="split",g="length",h="lastIndex",m=4294967295,v=!u((function(){RegExp(m,"y")}));a("214f")("split",2,(function(e,t,a,u){var b;return b="c"=="abbc"[p](/(b)*/)[1]||4!="test"[p](/(?:)/,-1)[g]||2!="ab"[p](/(?:ab)*/)[g]||4!="."[p](/(.?)(.?)/)[g]||"."[p](/()()/)[g]>1||""[p](/.?/)[g]?function(e,t){var n=String(this);if(void 0===e&&0===t)return[];if(!i(e))return a.call(n,e,t);var s,l,o,r=[],u=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),d=0,p=void 0===t?m:t>>>0,v=new RegExp(e.source,u+"g");while(s=c.call(v,n)){if(l=v[h],l>d&&(r.push(n.slice(d,s.index)),s[g]>1&&s.index<n[g]&&f.apply(r,s.slice(1)),o=s[0][g],d=l,r[g]>=p))break;v[h]===s.index&&v[h]++}return d===n[g]?!o&&v.test("")||r.push(""):r.push(n.slice(d)),r[g]>p?r.slice(0,p):r}:"0"[p](void 0,0)[g]?function(e,t){return void 0===e&&0===t?[]:a.call(this,e,t)}:a,[function(a,i){var n=e(this),s=void 0==a?void 0:a[t];return void 0!==s?s.call(a,n,i):b.call(String(n),a,i)},function(e,t){var i=u(b,e,this,t,b!==a);if(i.done)return i.value;var c=n(e),f=String(this),p=s(c,RegExp),g=c.unicode,h=(c.ignoreCase?"i":"")+(c.multiline?"m":"")+(c.unicode?"u":"")+(v?"y":"g"),w=new p(v?c:"^(?:"+c.source+")",h),C=void 0===t?m:t>>>0;if(0===C)return[];if(0===f.length)return null===r(w,f)?[f]:[];var D=0,_=0,y=[];while(_<f.length){w.lastIndex=v?_:0;var x,S=r(w,v?f:f.slice(_));if(null===S||(x=d(o(w.lastIndex+(v?0:_)),f.length))===D)_=l(f,_,g);else{if(y.push(f.slice(D,_)),y.length===C)return y;for(var F=1;F<=S.length-1;F++)if(y.push(S[F]),y.length===C)return y;_=D=x}}return y.push(f.slice(D)),y}]}))},"5b4e":function(e,t,a){"use strict";var i=a("5c96");t["a"]={showmsg:function(e,t){Object(i["Message"])({duration:1e3,message:e||"接口异常",type:t})}}},6300:function(e,t,a){"use strict";var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"custom-dialog-wrap"},[a("el-dialog",{attrs:{title:"门店图片变更",visible:e.customDialog,width:"600px","before-close":e.handleCardClose},on:{"update:visible":function(t){e.customDialog=t}}},[a("div",{staticClass:"dialog-content"},[a("el-row",[a("el-col",{attrs:{span:11}},[a("div",{staticClass:"grid-content bg-purple-dark"},[e._v("\n 变更前\n ")]),a("div",{staticClass:"data-body"},[a("div",{staticClass:"data-body-content flex flex-column"},[e._l(e.leftData,(function(e,t){return[a("img",{key:"img"+t,attrs:{src:e,alt:""}})]}))],2)])]),a("el-col",{attrs:{span:11}},[a("div",{staticClass:"grid-content bg-purple-dark"},[e._v("\n 变更后\n ")]),a("div",{staticClass:"data-body"},[a("div",{staticClass:"data-body-content flex flex-column"},[e._l(e.rightData,(function(e,t){return[a("img",{key:"img0"+t,attrs:{src:e,alt:""}})]}))],2)])])],1)],1)])],1)},n=[],s={name:"StoreChangeDialog",props:{value:{type:Boolean,default:!1},storeChangeData:{type:[Object,Array]}},data:function(){return{repProjectName:"haoban-web",customDialog:this.value,leftData:[],rightData:[]}},mounted:function(){var e=this;e.leftData=e.storeChangeData.beforeContent,e.rightData=e.storeChangeData.afterContent},methods:{handleCardClose:function(){var e=this;e.customCancel()},customCancel:function(){var e=this;e.customDialog=!1,e.$emit("input",e.customDialog)}},watch:{value:function(e,t){var a=this;a.customDialog=e},storeChangeData:function(e,t){var a=this;a.leftData=e.beforeContent,a.rightData=e.afterContent}}},l=s,o=(a("8709"),a("2877")),r=Object(o["a"])(l,i,n,!1,null,"bce7ed18",null);t["a"]=r.exports},"67ae":function(e,t,a){},"6ce2":function(e,t,a){e.exports=a.p+"img/member.1eda5d6c.png"},"71f6":function(e,t,a){"use strict";a.d(t,"a",(function(){return n}));a("ac6a"),a("456d");var i=a("b775");function n(e,t){e=e||{};var a=Object.keys(e);return a.forEach((function(a){var n=e[a];"string"===typeof n&&(n={url:n}),n.url="".concat(t).concat(n.url),e[a]=function(e){return Object(i["a"])(n,e)}})),e}},7842:function(e,t,a){},8709:function(e,t,a){"use strict";var i=a("7842"),n=a.n(i);n.a},"96b6":function(e,t,a){"use strict";var i=a("71f6"),n={getReview:"/audit/audit-list",getWxEnterprise:"/auth-enterprise-list",getStaffInfo:"/get-staff-info",postAudit:{url:"/audit/agree",method:"post",useFormData:!0,useIntercept:!1},postBatchApprove:{url:"/audit/batch-agree",method:"post",useFormData:!0,useIntercept:!1},postRefuse:{url:"/audit/refuse",method:"post",useFormData:!0,useIntercept:!1},getAuditDetail:"/audit/batch-log-list"};n=Object(i["a"])(n,"/hb-manage-web"),t["a"]=n},a605:function(e,t,a){},c686:function(e,t,a){"use strict";var i=a("a605"),n=a.n(i);n.a},d157:function(e,t,a){"use strict";a.d(t,"a",(function(){return i})),a.d(t,"b",(function(){return n})),a.d(t,"c",(function(){return s}));a("c5f6"),a("a481"),a("28a5"),a("6b54");function i(e,t){var a,i=t||200;return function(){var t=this,n=arguments;a&&clearTimeout(a),a=setTimeout((function(){a=null,e.apply(t,n)}),i)}}function n(e,t){var a,i,n=t||200;return function(){var t=this,s=arguments,l=+new Date;a&&l-a<n?(clearTimeout(i),i=setTimeout((function(){a=l,e.apply(t,s)}),n)):(a=l,e.apply(t,s))}}function s(e){return e=e.replace(/\uD83C[\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F]|[\uD800-\uDBFF]|[\uDC00-\uDFFF]|[^\u0020-\u007E\u00A0-\u00BE\u2E80-\uA4CF\uF900-\uFAFF\uFE30-\uFE4F\uFF00-\uFFEF\u0080-\u009F\u2000-\u201f\u2026\u2022\u20ac\r\n]/g,""),unescape(escape(e).replace(/\%uD.{3}/g,""))}},e230:function(e,t,a){"use strict";var i=a("71f6"),n={getSyncCheck:"/sync/sync-check",refreshWx:"/sync/sync-contact",getDepartmentList:"/department-list-level",getCompanyDepartList:"/contact/get-department-list",getStaffList:"/contact/get-staff-list",getStaffDetail:"/contact/staff-detail",getStaffRelation:"/bind/staff-clerk-relation",delStaffRelation:{url:"/bind/staff-unbind",method:"post",useFormData:!0,useIntercept:!1},addStaffRelation:{url:"/bind/staff-bind",method:"post",useFormData:!0,useIntercept:!1},getClerkRelation:"/bind/search-clerk-list",getWxEnterprise:"/auth-enterprise-list",getBindLog:"/bind/bind-log-list",getRefreshLog:"/sync/sync-task",getSyncFailDetail:"/sync-task-detail",getNationCode:"/nationcode/get-nationcode-list",getGicGroup:"/gic-department-list",getGicStore:"/get-store-list"};n=Object(i["a"])(n,"/hb-manage-web"),t["a"]=n}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-b5b34ad2","chunk-784402ec"],{"0a49":function(e,t,n){var r=n("9b43"),a=n("626a"),i=n("4bf8"),u=n("9def"),c=n("cd1c");e.exports=function(e,t){var n=1==e,o=2==e,s=3==e,l=4==e,d=6==e,f=5==e||d,h=t||c;return function(t,c,p){for(var m,v,y=i(t),b=a(y),g=r(c,p,3),I=u(b.length),k=0,x=n?h(t,I):o?h(t,0):void 0;I>k;k++)if((f||k in b)&&(m=b[k],v=g(m,k,y),e))if(n)x[k]=v;else if(v)switch(e){case 3:return!0;case 5:return m;case 6:return k;case 2:x.push(m)}else if(l)return!1;return d?-1:s||l?l:x}}},"0fd6":function(e,t,n){"use strict";var r=n("cf90"),a=n.n(r);a.a},1169:function(e,t,n){var r=n("2d95");e.exports=Array.isArray||function(e){return"Array"==r(e)}},"20d6":function(e,t,n){"use strict";var r=n("5ca1"),a=n("0a49")(6),i="findIndex",u=!0;i in[]&&Array(1)[i]((function(){u=!1})),r(r.P+r.F*u,"Array",{findIndex:function(e){return a(this,e,arguments.length>1?arguments[1]:void 0)}}),n("9c6c")(i)},2249:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("nav-crumb",{attrs:{navpath:e.bread}}),n("div",{staticStyle:{padding:"20px",background:"#fff"}},[n("el-alert",{staticStyle:{"margin-bottom":"30px",width:"572px"},attrs:{type:"info",title:"管理角色:查看区域或门店日常业务,进行一些经营性的管理工作。不必关联导购账号。",closable:!1,"show-icon":""}}),n("el-form",{ref:"roleData",attrs:{model:e.roleData,rules:e.roleDataRule,"label-width":"140px"}},[n("el-form-item",{attrs:{label:"角色名称",prop:"roleName"}},[n("el-input",{staticStyle:{width:"432px"},attrs:{placeholder:"请输入角色名称",maxlength:"20","show-word-limit":""},model:{value:e.roleData.roleName,callback:function(t){e.$set(e.roleData,"roleName","string"===typeof t?t.trim():t)},expression:"roleData.roleName"}})],1),n("el-form-item",{attrs:{label:"权限配置",prop:"menuIds"}},[n("el-radio-group",{staticClass:"specter",attrs:{size:"small"},model:{value:e.activeType,callback:function(t){e.activeType=t},expression:"activeType"}},e._l(e.tabList,(function(t){return n("el-radio-button",{key:t.appType,attrs:{label:t.appType}},[e._v(e._s(t.label))])})),1),n("menu-tree",{staticStyle:{"margin-top":"12px"},attrs:{"menu-list":e.getActiveMenuList(),"checked-id":e.getActiveMenuChecked()},on:{change:e.onCheckedChange}})],1),n("el-form-item",{staticStyle:{"margin-top":"50px"}},[n("el-button",{attrs:{type:"primary",loading:e.roleData.loading},on:{click:e.onSave}},[e._v(e._s(e.roleData.roleId?"保存":"确认新建"))])],1)],1)],1)],1)},a=[],i=(n("20d6"),n("28a5"),n("5df3"),n("ac6a"),n("96cf"),n("1da1")),u=n("29b6"),c=n("a088"),o=n("f286"),s=o["a"].menuList,l=o["a"].addRole,d=o["a"].editRole,f=o["a"].roleDetail,h={name:"EditRole",components:{navCrumb:u["a"],MenuTree:c["default"]},data:function(){var e=function(e,t,n){Array.isArray(t)&&0!=t.length&&!t.every((function(e){return 0==e.menuIds.length}))||n(new Error("请至少选择一个权限菜单")),n()};return{bread:[{name:"管理员",path:"/admin-list"},{name:"新建管理角色"}],roleData:{loading:!1,roleId:"",roleName:"",menuIds:[]},roleDataRule:{roleName:[{required:!0,message:"角色名称不能为空",trigger:"blur"}],menuIds:[{required:!0,validator:e}]},activeType:1,tabList:[{label:"好办后台",appType:1,flatMenu:[],menuList:[],checkedId:{}},{label:"应用后台",appType:2,flatMenu:[],menuList:[],checkedId:{}},{label:"好办小程序",appType:3,flatMenu:[],menuList:[],checkedId:{}},{label:"小程序应用",appType:4,flatMenu:[],menuList:[],checkedId:{}}]}},created:function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=this.$route.query.roleId,this.$emit("showAsideMenu",!1),e.next=4,this.getMenuList();case 4:t&&(this.bread[1]={name:"编辑管理角色"},this.getRoleDetail(t));case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),methods:{getMenuList:function(){var e=this,t=JSON.parse(localStorage.getItem("haoBanUser")||"{}"),n={wxEnterpriseId:t.wxEnterpriseId},r=[];return this.tabList.forEach((function(t){r.push(s(Object.assign({},n,{appType:t.appType,roleType:1})).then((function(n){t.menuList=e.flatDataToTree(n.result||[]),t.flatMenu=n.result||[],t.menuList.forEach((function(n){e.$set(t.checkedId,n.menuId,[])}))})))})),Promise.all(r)},getRoleDetail:function(e){var t=this;function n(e,t){var r=[];return e.forEach((function(e){t.some((function(t){return t==e.menuId}))&&r.push(e.menuId),Array.isArray(e.children)&&(r=r.concat(n(e.children,t)))})),r}function r(e,t){var n=[];return e.map((function(e){if(t.some((function(t){return t==e.menuId}))){var i=[];Array.isArray(e.children)&&(i=a(e.children)),(0==i.length||i.every((function(e){return t.some((function(t){return t==e}))})))&&n.push(e.menuId),Array.isArray(e.children)&&(n=n.concat(r(e.children,t)))}})),n}function a(e){var t=[];return e.forEach((function(e){t.push(e.menuId),Array.isArray(e.children)&&(t=t.concat(a(e.children)))})),t}f({roleId:e}).then((function(e){var a=e.result,i=a.roleId,u=a.roleName,c=a.menuIds;c="string"==typeof c?c.split(","):[],Object.assign(t.roleData,{roleId:i,roleName:u}),t.tabList.forEach((function(e){var a=[];e.menuList.forEach((function(t){e.checkedId[t.menuId]=r([t],c),a=a.concat(n([t],c))})),t.roleData.menuIds.push({appType:e.appType,menuIds:a})}))}))},flatDataToTree:function(e){return e.filter((function(t){var n=e.filter((function(e){return e.parentId==t.menuId}));return n.length>0&&(t.children=n),""==t.parentCode}))},getActiveMenuList:function(){var e=this,t=this.tabList.filter((function(t){return t.appType==e.activeType}));return t[0].menuList},getActiveMenuChecked:function(){var e=this,t=this.tabList.filter((function(t){return t.appType==e.activeType}));return t[0].checkedId},onCheckedChange:function(e){var t=this,n=[],r=[],a=[];for(var i in e)n=n.concat(e[i]);function u(e,t){var n=[e];return t.some((function(r){return r.menuId==e&&r.parentId>0&&(n=n.concat(u(r.parentId,t))),r.menuId==e})),n}this.tabList=this.tabList.map((function(n){return n.appType==t.activeType&&(n.checkedId=e,r=n.flatMenu),n})),n.map((function(e){a=a.concat(u(e,r))})),a=a.filter((function(e,t){return t==a.findIndex((function(t){return t==e}))})),this.roleData.menuIds.some((function(e){return e.appType==t.activeType}))?this.roleData.menuIds.forEach((function(e){e.appType==t.activeType&&(e.menuIds=a)})):this.roleData.menuIds.push({appType:this.activeType,menuIds:a})},onSave:function(){var e=this;this.$refs.roleData.validate((function(t){if(t){var n=e.roleData,r=n.roleId,a=n.roleName,i=n.menuIds,u={roleName:a,menuIds:JSON.stringify(i)};e.roleData.loading=!0,r?(u.roleId=r,d(u).then(c.bind(e,"保存成功!")).finally((function(){return e.roleData.loading=!1}))):l(u).then(c.bind(e,"新建成功!")).finally((function(){return e.roleData.loading=!1}))}function c(e){this.$message.success(e),this.$router.go(-1)}}))}}},p=h,m=n("2877"),v=Object(m["a"])(p,r,a,!1,null,null,null);t["default"]=v.exports},"28a5":function(e,t,n){"use strict";var r=n("aae3"),a=n("cb7c"),i=n("ebd6"),u=n("0390"),c=n("9def"),o=n("5f1b"),s=n("520a"),l=n("79e5"),d=Math.min,f=[].push,h="split",p="length",m="lastIndex",v=4294967295,y=!l((function(){RegExp(v,"y")}));n("214f")("split",2,(function(e,t,n,l){var b;return b="c"=="abbc"[h](/(b)*/)[1]||4!="test"[h](/(?:)/,-1)[p]||2!="ab"[h](/(?:ab)*/)[p]||4!="."[h](/(.?)(.?)/)[p]||"."[h](/()()/)[p]>1||""[h](/.?/)[p]?function(e,t){var a=String(this);if(void 0===e&&0===t)return[];if(!r(e))return n.call(a,e,t);var i,u,c,o=[],l=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),d=0,h=void 0===t?v:t>>>0,y=new RegExp(e.source,l+"g");while(i=s.call(y,a)){if(u=y[m],u>d&&(o.push(a.slice(d,i.index)),i[p]>1&&i.index<a[p]&&f.apply(o,i.slice(1)),c=i[0][p],d=u,o[p]>=h))break;y[m]===i.index&&y[m]++}return d===a[p]?!c&&y.test("")||o.push(""):o.push(a.slice(d)),o[p]>h?o.slice(0,h):o}:"0"[h](void 0,0)[p]?function(e,t){return void 0===e&&0===t?[]:n.call(this,e,t)}:n,[function(n,r){var a=e(this),i=void 0==n?void 0:n[t];return void 0!==i?i.call(n,a,r):b.call(String(a),n,r)},function(e,t){var r=l(b,e,this,t,b!==n);if(r.done)return r.value;var s=a(e),f=String(this),h=i(s,RegExp),p=s.unicode,m=(s.ignoreCase?"i":"")+(s.multiline?"m":"")+(s.unicode?"u":"")+(y?"y":"g"),g=new h(y?s:"^(?:"+s.source+")",m),I=void 0===t?v:t>>>0;if(0===I)return[];if(0===f.length)return null===o(g,f)?[f]:[];var k=0,x=0,L=[];while(x<f.length){g.lastIndex=y?x:0;var T,w=o(g,y?f:f.slice(x));if(null===w||(T=d(c(g.lastIndex+(y?0:x)),f.length))===k)x=u(f,x,p);else{if(L.push(f.slice(k,x)),L.length===I)return L;for(var D=1;D<=w.length-1;D++)if(L.push(w[D]),L.length===I)return L;x=k=T}}return L.push(f.slice(k)),L}]}))},"29b6":function(e,t,n){"use strict";var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"nav-wrap border-box"},[n("el-breadcrumb",{attrs:{"separator-class":"el-icon-arrow-right"}},[e._l(e.navpath,(function(t,r){return[t.path?[n("el-breadcrumb-item",{key:"nav"+r,attrs:{to:{path:t.path}},on:{click:function(n){return e.changeRoute(t.path,t.relocation)}}},[n("span",{staticClass:"el-breadcrumb__inner is-link",on:{click:function(n){return e.changeRoute(t.path,t.relocation)}}},[e._v("\n "+e._s(t.name)+"\n ")])])]:[n("el-breadcrumb-item",{key:"nav"+r},[e._v(e._s(t.name))])]]}))],2)],1)},a=[],i={name:"NavPath",props:{navpath:{type:Array,default:function(){return[]}}},data:function(){return{projectName:"member"}},methods:{changeRoute:function(e,t){var n=this;t?window.location.href=e:n.$router.push(e)}}},u=i,c=(n("6b4b"),n("2877")),o=Object(c["a"])(u,r,a,!1,null,"2c2a2724",null);t["a"]=o.exports},"6b4b":function(e,t,n){"use strict";var r=n("76d4"),a=n.n(r);a.a},"71f6":function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));n("ac6a"),n("456d");var r=n("b775");function a(e,t){e=e||{};var n=Object.keys(e);return n.forEach((function(n){var a=e[n];"string"===typeof a&&(a={url:a}),a.url="".concat(t).concat(a.url),e[n]=function(e){return Object(r["a"])(a,e)}})),e}},"76d4":function(e,t,n){},a088:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"menu-tree"},[n("ul",{staticClass:"first-menu"},[0==e.menuList.length?n("li",{staticClass:"no-data"},[e._v("暂无数据")]):e._e(),e._l(e.menuList,(function(t){return n("li",{key:t.menuId,class:["first-menu-item",{active:t.menuId==e.activeMenuId}],on:{click:function(n){return e.onMenuChange(t)}}},[e._v("\n "+e._s(t.menuName)+"\n ")])}))],2),n("div",{staticClass:"all-menu"},[n("el-tree",{ref:"menuList",attrs:{data:e.treeData,"show-checkbox":"","default-expand-all":"","node-key":"menuId","expand-on-click-node":!1,"check-on-click-node":!0,props:{label:"menuName"},"default-checked-keys":e.checkedId[e.activeMenuId]},on:{"node-click":e.onNodeClick,check:e.onNodeClick}})],1)])},a=[],i=(n("ac6a"),{name:"MenuTree",props:{menuList:Array,checkedId:Object},data:function(){return{activeMenuId:"",treeData:[]}},methods:{onMenuChange:function(e){this.activeMenuId=e?e.menuId:"",this.treeData=e?[e]:[]},onNodeClick:function(){this.onChange(this.$refs.menuList.getCheckedKeys())},getAllMenuId:function(e){var t=this,n=[];return e.forEach((function(e){n.push(e.menuId),Array.isArray(e.children)&&(n=n.concat(t.getAllMenuId(e.children)))})),n},onChange:function(e){var t={};t[this.activeMenuId]=e,this.$emit("change",Object.assign({},this.checkedId,t))}},watch:{checkedId:{deep:!0,handler:function(e){this.$refs.menuList.setCheckedKeys(e[this.activeMenuId]||[])}},menuList:{immediate:!0,handler:function(e){this.onMenuChange(e[0])}}}}),u=i,c=(n("0fd6"),n("2877")),o=Object(c["a"])(u,r,a,!1,null,"6d51b677",null);t["default"]=o.exports},cd1c:function(e,t,n){var r=n("e853");e.exports=function(e,t){return new(r(e))(t)}},cf90:function(e,t,n){},e853:function(e,t,n){var r=n("d3f4"),a=n("1169"),i=n("2b4c")("species");e.exports=function(e){var t;return a(e)&&(t=e.constructor,"function"!=typeof t||t!==Array&&!a(t.prototype)||(t=void 0),r(t)&&(t=t[i],null===t&&(t=void 0))),void 0===t?Array:t}},f286:function(e,t,n){"use strict";var r=n("71f6"),a={addRole:{url:"/add-role",method:"post",useFormData:!0},delRole:"/role-del",editRole:{url:"/role-edit",method:"post",useFormData:!0},roleDetail:"/role-detail",roleList:"/role-list",menuList:"/menu-list",roleAdminList:"/role-admin-list",delAdmin:"/admin-del",enterpriseList:"/auth-enterprise-list",resourceList:"/resource-list"};t["a"]=Object(r["a"])(a,"/hb-manage-web")}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-bc8a8204"],{"55f3":function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"common-app-right"},[a("div",{staticClass:"data-dimension-tip"},[a("common-alert-tip",{attrs:{width:"100%","tip-content":e.tipContent}})],1),a("div",{staticClass:"data-dimension-table flex"},[a("div",{staticClass:"data-dimension-table_left flex-1"},[a("div",{staticClass:"m-b-18"},[a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",placement:"right"}},[a("div",{attrs:{slot:"content"},slot:"content"},[e._v("\n 排序越靠上的权重越高,当一家门店拥有多个会员卡时,优先展示排序最靠上的会员卡\n ")]),a("span",{staticClass:"common-bottom-border table-title"},[e._v("会员卡权重")])])],1),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loadingMember,expression:"loadingMember"}],ref:"memberCardData",staticStyle:{width:"100%"},attrs:{data:e.memberCardData,"row-key":"memberCardId"}},[a("el-table-column",{attrs:{prop:"",label:"",width:"56","class-name":"move-row-cell show-icon"}},[[a("span",{staticClass:"font-22 iconfont icontuozhuaiopen color-c0c4cc",staticStyle:{cursor:"move"}})]],2),a("el-table-column",{attrs:{prop:"name",label:"会员卡名称","show-overflow-tooltip":""}})],1)],1),a("div",{staticClass:"data-dimension-table_right flex-1"},[a("div",{staticClass:"m-b-18"},[a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",placement:"right"}},[a("div",{attrs:{slot:"content"},slot:"content"},[e._v("\n 排序越靠上的权重越高,当一家门店拥有多个服务号时,优先展示排序最靠上的服务号\n ")]),a("span",{staticClass:"common-bottom-border table-title"},[e._v("服务号权重")])])],1),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loadingService,expression:"loadingService"}],ref:"serviceNumData",staticStyle:{width:"100%"},attrs:{data:e.serviceNumData,"row-key":"serviceCardId"}},[a("el-table-column",{attrs:{prop:"",label:"",width:"56","class-name":"move-row-cell show-icon"}},[[a("span",{staticClass:"font-22 iconfont icontuozhuaiopen color-c0c4cc",staticStyle:{cursor:"move"}})]],2),a("el-table-column",{attrs:{prop:"name",label:"服务号名称","show-overflow-tooltip":""}})],1)],1)])])},r=[],i=a("aa47"),o=a("d11a"),s=a("5b4e"),c=o["a"].getMemberData,l=o["a"].getServiceData,d=o["a"].saveSortMember,m={name:"DataDimensionPage",components:{},props:{brandId:{type:String,default:""}},data:function(){return{tipContent:"当商户有多个会员卡和服务号时,会造成单家门店适用于多个会员卡或服务号,即单个顾客会有多个域的身份信息,这容易造成门店成员的困扰。请为以下会员卡和服务号域做权重排序,当顾客有多个域的身份信息时,门店成员将只能看到权重最高域的一个身份信息。",memberCardData:[],serviceNumData:[],loadingMember:!1,loadingService:!1}},mounted:function(){var e=this;e.rowDrop("memberCardData"),e.rowDrop("serviceNumData"),e.brandId&&(e.getMemberCrad(),e.getServiceNum())},methods:{rowDrop:function(e){var t=this.$refs[e].$el.querySelectorAll(".el-table__body-wrapper > table > tbody")[0],a=this;i["a"].create(t,{onEnd:function(t){var n=t.newIndex,r=t.oldIndex;if(n==r)return!1;var i=JSON.parse(JSON.stringify(a[e])),o=i.splice(r,1)[0];i.splice(n,0,o),a.setSort(i)}})},setSort:function(){var e=this,t={enterpriseId:e.brandId};d(t).then((function(t){e.getMemberCrad(),e.getServiceNum(),"0000"==t.code?s["a"].showmsg("操作成功","success"):s["a"].showmsg(t.message||"接口异常","warning")})).catch((function(e){}))},getMemberCrad:function(){var e=this;e.loadingMember=!0;var t={enterpriseId:e.brandId};c(t).then((function(t){e.loadingMember=!1,e.memberCardData=t.result||[]})).catch((function(t){e.loadingMember=!1}))},getServiceNum:function(){var e=this;e.loadingService=!0;var t={enterpriseId:e.brandId};l(t).then((function(t){e.loadingService=!1,e.serviceNumData=t.result||[]})).catch((function(t){e.loadingService=!1}))}},watch:{brandId:function(e){var t=this;e&&(t.getMemberCrad(),t.getServiceNum())}}},b=m,v=(a("b7cf"),a("2877")),u=Object(v["a"])(b,n,r,!1,null,"6c03d857",null);t["default"]=u.exports},b7cf:function(e,t,a){"use strict";var n=a("e0b1"),r=a.n(n);r.a},e0b1:function(e,t,a){}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-bfbebd78"],{"37f9":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",{attrs:{id:"index"}},[a("vue-office-header",{ref:"headerMenu",attrs:{"project-name":t.projectName},on:{collapseTag:t.collapseTag,toRouterView:t.toRouterView}}),a("div",{staticClass:"content",attrs:{id:"content"}},[a("div",{staticClass:"content-body border-box",staticStyle:{"min-height":"calc(100vh - 46px)"}},[a("div",{staticClass:"index-body flex flex-row"},[a("div",{staticClass:"index-body-left"},[a("div",{staticClass:"index-body-left_top border-box"},[t._m(0),a("ul",t._l(t.purchaseApp,(function(e,n){return a("li",{key:n+"app",staticClass:"border-box",on:{click:function(a){return t.toAppView(e)}}},[a("div",{staticClass:"app-li-cell border-box flex"},[a("div",{staticClass:"app-cell-left"},[a("img",{attrs:{src:e.applicationUrl,alt:"img"}})]),a("div",{staticClass:"app-cell-right flex flex-column flex-align-center flex-pack-center"},[a("div",{staticClass:"app-name font-14 color-303133"},[t._v(t._s(e.applicationName))]),e.applicationPath?t._e():a("div",{staticClass:"app-info"},[a("span",{staticClass:"font-14 color-909399"},[t._v("里面为空~")])])]),a("div",{staticClass:"app-cell-arrow"},[a("el-dropdown",{staticClass:"app-cell-dropdown",attrs:{trigger:"hover"}},[a("span",{staticClass:"el-dropdown-link"},[a("i",{staticClass:"el-icon-more el-icon--right",staticStyle:{cursor:"pointer"}})]),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[a("el-dropdown-item",{staticClass:"p-0"},[a("span",{on:{click:function(a){return a.stopPropagation(),t.changeSwitch(e)}}},[t._v(t._s(1==e.openFlag?"停用":"启用"))])])],1)],1)],1)])])})),0)]),t.noPurchaseApp.length?a("div",{staticClass:"bg-space"}):t._e(),a("div",{class:["index-body-left_bottom border-box",t.noPurchaseApp.length?"bottom-0":"bottom-9999"]},[a("div",{staticClass:"app-title font-16 color-303133"},[t._v("已停用")]),a("ul",t._l(t.noPurchaseApp,(function(e,n){return a("li",{key:n+"appno",staticClass:"border-box"},[a("div",{staticClass:"app-li-cell border-box flex"},[a("div",{staticClass:"app-cell-left"},[a("img",{attrs:{src:e.applicationUrl,alt:"img"}})]),a("div",{staticClass:"app-cell-right"},[a("div",{staticClass:"app-name stop-app-name font-14 color-303133"},[t._v(t._s(e.applicationName))]),a("div",{staticClass:"app-info stop-app-info"},[a("el-switch",{attrs:{"active-text":"","inactive-text":""},on:{change:function(a){return t.changeAppSwitch(a,e)}},model:{value:e.openFlag,callback:function(a){t.$set(e,"openFlag",a)},expression:"item.openFlag"}})],1)])])])})),0)])]),a("div",{staticClass:"index-body-right"},[a("div",{staticClass:"index-body-right_top border-box"},[a("div",{staticClass:"serve-info"},[a("div",{staticClass:"serve-date-info"},[a("div",{staticClass:"font-14 color-909399 p-t-10 m-b-13",staticStyle:{"font-weight":"300"}},[t._v(t._s(t._f("timeStampToYm")((new Date).getTime())))]),a("div",{staticClass:"font-12 color-909399"},[t._v("农历"+t._s(t.getLunarDay((new Date).getFullYear(),(new Date).getMonth()+1,(new Date).getDate())))]),a("div",{staticClass:"serve-date-day"},[a("div",{staticClass:"serve-date-day_inner "},[a("div",{staticClass:"color-fff font-26 p-t-10",staticStyle:{"letter-spacing":"2px"}},[t._v(t._s((new Date).getDate()))]),a("div",{staticClass:"color-fff font-12"},[t._v(t._s(t.weeks[(new Date).getDay()]))])])])]),a("div",{staticClass:"serve-version flex"},[a("span",{staticClass:"w-86 font-14 color-909399 text-left"},[t._v("企业")]),a("span",{staticClass:"font-14 color-303133"},[t._v(t._s(t.versionData.corpName))])]),a("div",{staticClass:"serve-date flex m-t-20"},[a("span",{staticClass:"w-86 font-14 color-909399 text-left"},[t._v("版本")]),a("span",{staticClass:"font-14 color-303133"},[t._v(t._s(t.versionData.smallVersion))])]),t._e()])]),a("div",{staticClass:"bg-margin-10"}),a("div",{staticClass:"index-body-right_bottom border-box"},[a("div",{staticClass:"help-title font-16 color-303133 font-w-600"},[t._v("帮助中心")]),a("ul",{staticClass:"help-list m-t-15"},[t._l(t.helpList,(function(e,n){return a("li",{key:n+"help",staticClass:"cursor-pointer font-14 color-606266",on:{click:function(a){return t.toRedirect(e)}}},[t._v("\n "+t._s(e.helpTitle)+"\n ")])})),a("li",{staticClass:"text-center li-more cursor-pointer",on:{click:t.goUdesk}},[t._v("查看更多")])],2)])])])])])],1)},o=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"app-title font-16 color-303133 flex flex-space-between"},[a("span",{staticClass:"font-16 color-303133 font-w-600 line-h-32 color-primary"},[t._v("已使用")])])}],i=(a("96cf"),a("1da1")),s=a("f777"),r=a("5b4e6"),c={name:"IndexPage",components:{vueOfficeHeader:s["a"]},data:function(){return{checkShow:!0,tipText:"请先完成商户初始化设置后,再进行其他操作",projectName:"haoban-manage-web",collapseFlag:!1,showCustomDialog:!1,customType:"",customTitle:"",wxEnterpriseId:localStorage.getItem("haoBanUser")?JSON.parse(localStorage.getItem("haoBanUser")).wxEnterpriseId:"",purchaseApp:[],weeks:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],noPurchaseApp:[],versionData:{id:1,smallVersion:"",corpName:"",date:(new Date).getTime(),storeNum:100,storeTotal:""},helpList:[]}},mounted:function(){var t=Object(i["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.toLogin();case 3:e.wxEnterpriseId=t.sent;case 4:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),methods:{goUdesk:function(){window.open("https://demogic.udesk.cn/hc/categories/96671?api_name=")},getLunarDay:function(t,e,a){var n=[0,31,59,90,120,151,181,212,243,273,304,334],o="一二三四五六七八九十",i="正二三四五六七八九十冬腊",s=[2635,333387,1701,1748,267701,694,2391,133423,1175,396438,3402,3749,331177,1453,694,201326,2350,465197,3221,3402,400202,2901,1386,267611,605,2349,137515,2709,464533,1738,2901,330421,1242,2651,199255,1323,529706,3733,1706,398762,2741,1206,267438,2647,1318,204070,3477,461653,1386,2413,330077,1197,2637,268877,3365,531109,2900,2922,398042,2395,1179,267415,2635,661067,1701,1748,398772,2742,2391,330031,1175,1611,200010,3749,527717,1452,2742,332397,2350,3222,268949,3402,3493,133973,1386,464219,605,2349,334123,2709,2890,267946,2773,592565,1210,2651,395863,1323,2707,265877];if(!(t<1921||t>2100)){e=parseInt(e)>0?e-1:11;var r,c,l,u,p,f,h=[t,e,a],d=3!==h.length?new Date:new Date(h[0],h[1],h[2]),m=!1,g=d.getFullYear();for(r=365*(g-1921)+Math.floor((g-1921)/4)+n[d.getMonth()]+d.getDate()-38,g%4===0&&d.getMonth()>1&&r++,c=0;;c++){for(u=s[c]<4095?11:12,l=u;l>=0;l--){if(r<=this.getBit(s[c],l)){m=!0;break}r-=this.getBit(s[c],l)}if(m)break}p=u-l+1,f=r,12===u&&(p===Math.floor(s[c]/65536)+1&&(p=1-p),p>Math.floor(s[c]/65536)+1&&p--);var v=o.charAt(f-1);return f%10===0&&10!==f||(v=o.charAt((f-1)%10)),1===f?i.charAt(p-1)+"月初一":i.charAt(p-1)+"月"+(f<11?"初":f<20?"十":f<30?"廿":"三十")+v}},getBit:function(t,e){return 29+(t>>e&1)},toRedirect:function(t){if(!t.helpUrl)return!1;window.open(t.helpUrl)},changeRoute:function(t){this.$router.push(t)},toOverStore:function(){var t=this;t.changeRoute("/overStoreList")},toAppView:function(t){var e=this;if(!t.applicationPath)return r["a"].showmsg("无更多设置项,不可进入!","warning"),!1;e.changeRoute("".concat(t.applicationPath))},goShopping:function(){var t=this;t.changeRoute("/")},toRouterView:function(t){var e=this;e.$router.push({path:t.path})},changeSwitch:function(t){var e=this,a=1==t.openFlag?"关闭":"开启";e.$confirm("确认".concat(a,"【").concat(t.applicationName,"】应用吗?"),"提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){e.postSwitch(t)})).catch((function(){t.openFlag}))},collapseTag:function(t){var e=this;e.collapseFlag=t},toAlert:function(){var t=this;t.$confirm("您所在企业尚未订购好办 ,请前往升级版本后继续使用。","提示",{confirmButtonText:"立即前往订购",cancelButtonText:"取消",type:"warning"}).then((function(){window.open("")}))},toTip:function(){var t=this;t.$confirm("您没有该功能的使用权限,请联系管理员授权后继续使用。","提示",{confirmButtonText:"知道了",type:"warning"}).then((function(){window.open("")}))}}},l=c,u=(a("a45c"),a("2877")),p=Object(u["a"])(l,n,o,!1,null,"82ae9e10",null);e["default"]=p.exports},"54d2":function(t,e,a){},5937:function(t,e,a){"use strict";var n=a("71f6"),o={getRoleMenu:"/list-staff-role-menu"};o=Object(n["a"])(o,"/hb-manage-web"),e["a"]=o},"5b4e6":function(t,e,a){"use strict";var n=a("5c96");e["a"]={showmsg:function(t,e){Object(n["Message"])({duration:1e3,message:t||"接口异常",type:e})}}},"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 o}));a("ac6a"),a("456d");var n=a("b775");function o(t,e){t=t||{};var a=Object.keys(t);return a.forEach((function(a){var o=t[a];"string"===typeof o&&(o={url:o}),o.url="".concat(e).concat(o.url),t[a]=function(t){return Object(n["a"])(o,t)}})),t}},"7ded":function(t,e,a){"use strict";var n=a("71f6"),o={getLoginQrcode:"/get-login-qrcode",getUserInfo:"/get-login-user",loginOut:{url:"/login-out",method:"post",useFormData:!0}};o=Object(n["a"])(o,"/hb-manage-web/auth"),e["a"]=o},a45c:function(t,e,a){"use strict";var n=a("54d2"),o=a.n(n);o.a},cc0d:function(t,e,a){"use strict";var n=a("ed94"),o=a.n(n);o.a},ed94:function(t,e,a){},f777:function(t,e,a){"use strict";var n=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"nav-header"},[n("div",{staticClass:"nav-header-logo fl cursor-pointer",on:{click:t.toIndex}},[n("span",{staticClass:"pro-name"},[t._v("好办管理平台")])]),n("div",{staticClass:"nav-header-item fl"},[t._l(t.menuHead,(function(e,a){return[n("a",{key:a,class:["item-link menu-font-16"],on:{click:function(a){return t.changeRouter(e)}}},[n("span",{class:["inline-block bottom",-1!=e.menuUrl.indexOf(t.pathName)?"current-module":""]},[t._v(t._s(e.menuName))])])]})),n("div",{staticClass:"navuser-info fr"},[t.userInfo.headImg?n("img",{staticClass:"user-img",attrs:{src:t.userInfo.headImg,alt:""}}):n("img",{staticClass:"user-img",attrs:{src:a("6ce2"),alt:"img"}}),n("el-popover",{staticStyle:{"min-width":"95px"},attrs:{placement:"bottom",title:"",width:"95",trigger:"hover","popper-class":"user-header-pop"}},[n("ul",{staticClass:"navsuer-wrap"},[n("li",[n("p",{staticClass:"font-14 color-606266 hide-item"},[t._v(t._s(t.userInfo.staffName||"--"))]),n("p",{staticClass:"font-12 color-909399 hide-item"},[t._v(t._s(t.userInfo.roleName||"--"))])]),n("li",{staticClass:"user-item text-align",on:{click:function(e){return e.stopPropagation(),t.toLoginOut(e)}}},[n("a",{staticClass:"user-text"},[t._v("退出登录")])])]),n("a",{staticClass:"nav-user-name",attrs:{slot:"reference"},slot:"reference"},[n("span",{staticClass:"font-12 color-606266"},[t._v(t._s(t.userInfo.staffName||"--"))]),n("i",{staticClass:"iconfont iconxiala arrowico color-c0c4cc"})])])],1)],2)])},o=[],i=(a("456d"),a("96cf"),a("1da1")),s=(a("ac6a"),a("28a5"),a("7ded")),r=a("5937"),c=r["a"].getRoleMenu,l=s["a"].getUserInfo,u=s["a"].loginOut,p={name:"VueOfficeHeader",components:{},data:function(){return{checkShow:!0,tipText:"请先完成商户初始化设置后,再进行其他操作",repProjectName:"haoban-manage-web",pathName:"",isCollapse:!1,menuHead:[],roleMenuData:[],routePathName:"",userInfo:{staffName:"",nationCode:"",phoneNumber:"",headImg:"",wxEnterpriseId:"",roleName:""}}},mounted:function(){var t=this;t.pathName=t.$route.path,t.routePathName=window.location.hash.split("/")[1],-1!=t.routePathName.indexOf("?")&&(t.routePathName=t.routePathName.split("?")[0]),-1!=t.routePathName.indexOf("/")&&(t.routePathName=t.routePathName.split("/")[0]),localStorage.removeItem("haoBanUser"),t.toLogin()},methods:{toIndex:function(){var t=this;t.$router.push("/contactsList")},changeRouter:function(t){var e=this;if(1==t.target)-1!=t.menuUrl.indexOf("http")?window.open(t.menuUrl):window.open("/haoban-4/#".concat(t.menuUrl));else{e.setleftData(t);var a={};e.roleMenuData.forEach((function(e){t.menuCode!=e.menuCode||e.children.length||(a=e),t.menuCode==e.menuCode&&e.children.length&&(a=e.children[0])})),e.$router.push(a.menuUrl)}},setleftData:function(t){var e=this,a=[];e.roleMenuData.forEach((function(e){t.menuCode==e.menuCode&&a.push(e)})),e.$emit("leftData",a)},toLoginOut:function(){var t=this;t.$confirm("确认退出吗?","提示",{type:"warning"}).then((function(){u({}).then((function(e){"0000"==e.code&&(t.$message({message:"退出成功",type:"success"}),localStorage.removeItem("haoBanUser"),window.location.href=window.location.origin+"/haoban-4/#/login")})).catch((function(t){}))})).catch((function(){}))},toRouter:function(t,e,a){var n=this,o={path:"/"+t,name:e};n.$emit("toRouterView",o)},toLogin:function(){var t=this;l({}).then((function(e){e.result||(e.result={loginStaff:{staffName:"",nationCode:"",phoneNumber:"",headImg:"",wxEnterpriseId:""},role:{roleName:""}}),localStorage.setItem("haoBanUser",JSON.stringify(e.result.loginStaff)),t.userInfo=Object.assign(e.result.loginStaff,e.result.role),t.getData()})).catch((function(t){}))},treeData:function(t){var e=t.filter((function(e){var a=t.filter((function(t){return e.menuCode==t.parentCode&&1==t.isShow}));return a.length>0?(e.hasSonNode=!0,e.children=a):(e.children=[],e.hasSonNode=!1),""==e.parentCode&&1==e.isShow}));return e},getData:function(){var t=this,e={};c(e).then(function(){var e=Object(i["a"])(regeneratorRuntime.mark((function e(a){var n,o,i,s;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if("0000"!=a.code){e.next=14;break}return n=[],o={},i={},a.result.forEach((function(e){1==e.level&&1==e.isShow&&n.push(e),t.$route.path==e.menuUrl&&1==e.level&&1==e.isShow&&(o=e),t.$route.path==e.menuUrl&&1!=e.level&&(i=e)})),t.menuHead=n,e.next=8,t.treeData(JSON.parse(JSON.stringify(a.result)));case 8:t.roleMenuData=e.sent,Object.keys(i).length&&2==i.level&&a.result.forEach((function(t){i.parentCode==t.menuCode&&1==t.level&&1==t.isShow&&(o=t)})),s={},Object.keys(i).length&&3==i.level&&a.result.forEach((function(t){i.parentCode==t.menuCode&&2==t.level&&1==t.isShow&&(s=t)})),Object.keys(s).length&&2==s.level&&a.result.forEach((function(t){s.parentCode==t.menuCode&&1==t.level&&1==t.isShow&&(o=t)})),t.setleftData(o);case 14:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(t){}))}}},f=p,h=(a("cc0d"),a("2877")),d=Object(h["a"])(f,n,o,!1,null,"2a4f88b9",null);e["a"]=d.exports}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-c871c2ac"],{"0b7e":function(t,e,a){},"220a":function(t,e,a){},2484:function(t,e,a){"use strict";var n=a("37e0"),r=a.n(n);r.a},"37e0":function(t,e,a){},"3c06":function(t,e,a){},5501:function(t,e,a){},"58f2":function(t,e,a){"use strict";var n=a("0b7e"),r=a.n(n);r.a},"62a7":function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"my-customer-wrap common-set-wrap"},[a("nav-crumb",{attrs:{navpath:t.navpath}}),a("div",{staticClass:"right-content"},[a("div",{staticClass:"right-box",staticStyle:{"min-height":"calc(100vh - 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,n){return a("li",{key:n+"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.brandName||"--"))])]),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,n){return[a("span",{key:n+"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(n,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,n){return[a("span",{key:n+"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(n,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()],1)},r=[],i=(a("96cf"),a("1da1")),s=(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),p=d.exports,h=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{}},methods:{changeRoute:function(t){this.$router.push(t)}}},v=g,b=(a("8cd5"),Object(m["a"])(v,h,f,!1,null,"24435593",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,R=(a("8d79"),Object(m["a"])(C,y,_,!1,null,"647310ec",null)),x=R.exports,N=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,n){return[a("span",{key:n+"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)},I=[],D=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)},M=[],k=(a("c5f6"),a("4917"),{getByteLen:function(t){for(var e=""==t||null==t?"":t,a=0,n=0;n<e.length;n++){var r=e.charAt(n);null!=r.match(/[^\x00-\xff]/gi)?a+=2:a+=1}return a},getZhLen:function(t){for(var e=""==t||null==t?"":t,a=0,n=0;n<e.length;n++){var r=e.charAt(n);null!=r.match(/[^\x00-\xff]/gi)?a+=1:a+=.5}return Math.ceil(a)},cutStr:function(t,e,a){for(var n=0,r=0;r<t.length;r++){var i=t.charAt(r);if(1==a&&(encodeURI(i).length>2?n+=1:n+=.5),2==a&&(n+=1),n>=e){var s=n==e?r+1:r;return t.substr(0,s)}}},getByteVal:function(t,e){for(var a=""==t||null==t?"":t,n="",r=0,i=0;i<a.length;i++){if(null!=a[i].match(/[^\x00-\xff]/gi)?r+=1:r+=.5,r>e)break;n+=a[i]}return n},getCharVal:function(t,e){for(var a=""==t||null==t?"":t,n="",r=0,i=0;i<a.length;i++){if(null!=a[i].match(/[^\x00-\xff]/gi)?r+=2:r+=1,r>e)break;n+=a[i]}return n},regPos:function(t){var e=/^\d+(\.\d+)?$/;return e.test(t)}}),L={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=k.getZhLen(t.inputValue):t.inputNum=k.getByteLen(t.inputValue)},methods:{toInput:function(t){var e=this,a="";"word"==e.getByType?(a=k.getByteVal(t.target.value,e.limitLength),e.itemValue=a,e.inputNum=k.getZhLen(e.itemValue)):(a=k.getCharVal(t.target.value,e.limitLength),e.itemValue=a,e.inputNum=k.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=k.getZhLen(a.itemValue):a.inputNum=k.getByteLen(a.itemValue)}}},O=L,$=(a("fa90"),Object(m["a"])(O,w,M,!1,null,"730049ed",null)),A=$.exports,V=a("d157"),J={name:"AuthCommit",components:{commonAlertTip:D["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("eddb"),Object(m["a"])(E,N,I,!1,null,"e858e1f0",null)),T=B.exports,G=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)])},j=[],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("58f2"),Object(m["a"])(W,G,j,!1,null,"083200de",null)),z=Z.exports,H=a("21f4"),K=H["a"].getAuthDetail,Q=H["a"].getEnterprise,X=H["a"].getEnterpriseDetail,Y=H["a"].getGicAdmin,tt=H["a"].postEnterpriseAuth,et={name:"NewAuthMerchant",components:{navCrumb:s["a"],authStep:p,authTip:S,authCommitSuccess:x,authCommit:T,storeAuthDialog:z},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"}]},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:{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){Q(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(i["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;e.authForm.enterpriseId=t.enterpriseId,e.authForm.enterpriseName=t.enterpriseName,e.authForm.bindRange=[],e.authForm.shareRange=[],e.authForm.shareStoreMode="",e.authForm.bindStoreMode="",e.adminList=[],e.$refs["authForm"].validate((function(t){return!!t&&void 0})),e.getAdminList(t.enterpriseId)},getAdminList:function(t){var e=this;Y({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};tt(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;X({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};K(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){}))}}},at=et,nt=(a("2484"),Object(m["a"])(at,n,r,!1,null,"dbbd3738",null));e["default"]=nt.exports},8250:function(t,e,a){},"8cd5":function(t,e,a){"use strict";var n=a("db66"),r=a.n(n);r.a},"8d79":function(t,e,a){"use strict";var n=a("5501"),r=a.n(n);r.a},db66:function(t,e,a){},de0b:function(t,e,a){"use strict";var n=a("220a"),r=a.n(n);r.a},eddb:function(t,e,a){"use strict";var n=a("8250"),r=a.n(n);r.a},fa90:function(t,e,a){"use strict";var n=a("3c06"),r=a.n(n);r.a}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-d5950102"],{"28a5":function(t,e,a){"use strict";var s=a("aae3"),o=a("cb7c"),r=a("ebd6"),u=a("0390"),n=a("9def"),i=a("5f1b"),l=a("520a"),c=a("79e5"),d=Math.min,m=[].push,h="split",p="length",f="lastIndex",g=4294967295,v=!c((function(){RegExp(g,"y")}));a("214f")("split",2,(function(t,e,a,c){var b;return b="c"=="abbc"[h](/(b)*/)[1]||4!="test"[h](/(?:)/,-1)[p]||2!="ab"[h](/(?:ab)*/)[p]||4!="."[h](/(.?)(.?)/)[p]||"."[h](/()()/)[p]>1||""[h](/.?/)[p]?function(t,e){var o=String(this);if(void 0===t&&0===e)return[];if(!s(t))return a.call(o,t,e);var r,u,n,i=[],c=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),d=0,h=void 0===e?g:e>>>0,v=new RegExp(t.source,c+"g");while(r=l.call(v,o)){if(u=v[f],u>d&&(i.push(o.slice(d,r.index)),r[p]>1&&r.index<o[p]&&m.apply(i,r.slice(1)),n=r[0][p],d=u,i[p]>=h))break;v[f]===r.index&&v[f]++}return d===o[p]?!n&&v.test("")||i.push(""):i.push(o.slice(d)),i[p]>h?i.slice(0,h):i}:"0"[h](void 0,0)[p]?function(t,e){return void 0===t&&0===e?[]:a.call(this,t,e)}:a,[function(a,s){var o=t(this),r=void 0==a?void 0:a[e];return void 0!==r?r.call(a,o,s):b.call(String(o),a,s)},function(t,e){var s=c(b,t,this,e,b!==a);if(s.done)return s.value;var l=o(t),m=String(this),h=r(l,RegExp),p=l.unicode,f=(l.ignoreCase?"i":"")+(l.multiline?"m":"")+(l.unicode?"u":"")+(v?"y":"g"),D=new h(v?l:"^(?:"+l.source+")",f),w=void 0===e?g:e>>>0;if(0===w)return[];if(0===m.length)return null===i(D,m)?[m]:[];var C=0,S=0,F=[];while(S<m.length){D.lastIndex=v?S:0;var y,O=i(D,v?m:m.slice(S));if(null===O||(y=d(n(D.lastIndex+(v?0:S)),m.length))===C)S=u(m,S,p);else{if(F.push(m.slice(C,S)),F.length===w)return F;for(var k=1;k<=O.length-1;k++)if(F.push(O[k]),F.length===w)return F;S=C=y}}return F.push(m.slice(C)),F}]}))},"30a6":function(t,e,a){"use strict";var s=a("beb0"),o=a.n(s);o.a},"3cf8":function(t,e,a){"use strict";a.r(e);var s=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"common-app-right"},[a("div",{staticClass:"m-b-20"},[a("el-checkbox",{staticClass:"w-195",model:{value:t.customerShowData.allStoreOrder,callback:function(e){t.$set(t.customerShowData,"allStoreOrder",e)},expression:"customerShowData.allStoreOrder"}},[t._v("展示所有门店的订单")]),a("div",{staticClass:"font-14 color-909399 set-tip-item"},[t._v("注:保存勾选项后,门店导购和店长可查看顾客在本店以外的消费订单")])],1),a("div",{staticClass:"m-b-20"},[a("el-checkbox",{staticClass:"w-195",model:{value:t.customerShowData.shopOrder,callback:function(e){t.$set(t.customerShowData,"shopOrder",e)},expression:"customerShowData.shopOrder"}},[t._v("展示微商城的订单")]),a("div",{staticClass:"font-14 color-909399 set-tip-item"},[t._v("注:保存勾选项后,门店导购和店长可查看顾客在微商城的消费订单")])],1),a("div",{staticClass:"m-b-20"},[a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"勾选后将会在“顾客详情页”进行显示",placement:"top-start"}},[a("span",{staticClass:"font-14 color-606266 m-r-20 common-bottom-border"},[t._v("导购联系顾客方式")])]),a("el-checkbox",{model:{value:t.myCustomData.allowGuideMobile,callback:function(e){t.$set(t.myCustomData,"allowGuideMobile",e)},expression:"myCustomData.allowGuideMobile"}},[t._v("电话")]),a("el-checkbox",{model:{value:t.myCustomData.allowGuideMessage,callback:function(e){t.$set(t.myCustomData,"allowGuideMessage",e)},expression:"myCustomData.allowGuideMessage"}},[t._v("短信")]),a("el-checkbox",{model:{value:t.myCustomData.allowGuideOnlineChat,callback:function(e){t.$set(t.myCustomData,"allowGuideOnlineChat",e)},expression:"myCustomData.allowGuideOnlineChat"}},[t._v("添加会员/发消息")])],1),a("div",{staticClass:"m-t-46"},[a("el-button",{attrs:{type:"primary",loading:t.loading},on:{click:function(e){return t.submit()}}},[t._v("保存")])],1)])},o=[],r=a("d11a"),u=a("d157"),n=a("5b4e"),i=r["a"].getCustomerSet,l=r["a"].saveCustomerSet,c={name:"CustomerDataSet",components:{},props:{brandId:{type:String,default:""}},data:function(){return{customerShowData:{allStoreOrder:!1,shopOrder:!1,allowGuideMobile:!1,allowGuideMessage:!1,allowGuideOnlineChat:!1},loading:!1}},mounted:function(){var t=this;t.brandId&&t.getCustomerData()},methods:{submit:Object(u["a"])((function(){var t=this;t.loading=!0,t.setData()}),500),setData:function(){var t=this,e={enterpriseId:t.brandId,allStoreOrder:t.customerShowData.allStoreOrder?1:"0",shopOrder:t.customerShowData.shopOrder?1:"0",allowGuideMobile:t.customerShowData.allowGuideMobile?1:"0",allowGuideMessage:t.customerShowData.allowGuideMessage?1:"0",allowGuideOnlineChat:t.customerShowData.allowGuideOnlineChat?1:"0"};l(e).then((function(e){t.loading=!1,t.getCustomerData(),"0000"==e.code?n["a"].showmsg("操作成功","success"):n["a"].showmsg(e.message||"接口异常","warning")})).catch((function(e){t.loading=!1}))},getCustomerData:function(){var t=this,e={enterpriseId:t.brandId};i(e).then((function(e){t.customerShowData=e.result||[]})).catch((function(t){}))}},watch:{brandId:function(t){var e=this;t&&e.getCustomerData()}}},d=c,m=(a("30a6"),a("2877")),h=Object(m["a"])(d,s,o,!1,null,"516479cd",null);e["default"]=h.exports},"5b4e":function(t,e,a){"use strict";var s=a("5c96");e["a"]={showmsg:function(t,e){Object(s["Message"])({duration:1e3,message:t||"接口异常",type:e})}}},"71f6":function(t,e,a){"use strict";a.d(e,"a",(function(){return o}));a("ac6a"),a("456d");var s=a("b775");function o(t,e){t=t||{};var a=Object.keys(t);return a.forEach((function(a){var o=t[a];"string"===typeof o&&(o={url:o}),o.url="".concat(e).concat(o.url),t[a]=function(t){return Object(s["a"])(o,t)}})),t}},beb0:function(t,e,a){},d11a:function(t,e,a){"use strict";var s=a("71f6"),o={getGroupList:"/department-list",getStoreList:"/store-list",getAssignStatus:"/app-distribute-status",getNavChain:"/get-chain",getMemberList:{url:"/app-get-member-info-list",method:"post",useFormData:!0},getClerkList:"/clerk-list",getMemberCount:"",saveAssign:{url:"/",method:"post",useFormData:!0},getMemberData:"",getServiceData:"",saveSortMember:{url:"/",method:"post",useFormData:!0,useIntercept:!1},getShowSet:"",saveShowSet:{url:"",method:"post",useFormData:!0,useIntercept:!1},getCustomerSet:"",saveCustomerSet:{url:"",method:"post",useFormData:!0,useIntercept:!1},getGroupData:"",getClassifyData:"",postSortGroup:{url:"/",method:"post",useFormData:!0,useIntercept:!1},getSyncMemberData:"",saveSync:{url:"/",method:"post",useFormData:!0,useIntercept:!1},saveVisiable:{url:"/",method:"post",useFormData:!0,useIntercept:!1},getTagClassify:"",addClassify:"",delClassify:{url:"/",method:"post",useFormData:!0,useIntercept:!1},getClerkTag:"",addClerkTag:"",delClerkTag:{url:"/",method:"post",useFormData:!0,useIntercept:!1}};o=Object(s["a"])(o,"/hb-manage-web"),e["a"]=o},d157:function(t,e,a){"use strict";a.d(e,"a",(function(){return s})),a.d(e,"b",(function(){return o})),a.d(e,"c",(function(){return r}));a("c5f6"),a("a481"),a("28a5"),a("6b54");function s(t,e){var a,s=e||200;return function(){var e=this,o=arguments;a&&clearTimeout(a),a=setTimeout((function(){a=null,t.apply(e,o)}),s)}}function o(t,e){var a,s,o=e||200;return function(){var e=this,r=arguments,u=+new Date;a&&u-a<o?(clearTimeout(s),s=setTimeout((function(){a=u,t.apply(e,r)}),o)):(a=u,t.apply(e,r))}}function r(t){return t=t.replace(/\uD83C[\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F]|[\uD800-\uDBFF]|[\uDC00-\uDFFF]|[^\u0020-\u007E\u00A0-\u00BE\u2E80-\uA4CF\uF900-\uFAFF\uFE30-\uFE4F\uFF00-\uFFEF\u0080-\u009F\u2000-\u201f\u2026\u2022\u20ac\r\n]/g,""),unescape(escape(t).replace(/\%uD.{3}/g,""))}}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-d7315c84"],{"0973":function(t,s,i){t.exports=i.p+"img/error_404.bf587478.svg"},"1c41":function(t,s,i){t.exports=i.p+"img/error_500.ed0cba44.svg"},"2de8":function(t,s,i){"use strict";var a=i("cd38"),c=i.n(a);c.a},"4cf1":function(t,s,i){"use strict";i.r(s);var a=function(){var t=this,s=t.$createElement,i=t._self._c||s;return i("div",{staticStyle:{background:"#f0f2f5","margin-top":"-20px",height:"100vh"}},[i("div",{staticClass:"wscn-http-404"},[i("div",{staticClass:"pic-404"},[i("img",{staticClass:"pic-404__parent",attrs:{src:t.imgSrc,alt:"404"}})]),i("div",{staticClass:"bullshit"},[i("div",{staticClass:"bullshit__headline"},[t._v(t._s(t.message))]),i("a",{staticClass:"bullshit__return-home",attrs:{href:"#/contactsList"}},[t._v("返回首页")])])])])},c=[],e=(i("28a5"),i("d1ea")),r=i.n(e),n=i("0973"),o=i.n(n),u=i("1c41"),l=i.n(u),d={name:"ErrPage",data:function(){return{imgSrc:"",message:"",srcList:{403:r.a,404:o.a,500:l.a},msgList:{403:"抱歉,你无权访问该页面",404:"抱歉,你访问的页面不存在",500:"抱歉,服务器出错了"}}},mounted:function(){var t=this,s=t.$route.path.split("/")[1];t.imgSrc=t.srcList[s],t.message=t.msgList[s]}},p=d,g=(i("2de8"),i("2877")),f=Object(g["a"])(p,a,c,!1,null,"0d9d0575",null);s["default"]=f.exports},cd38:function(t,s,i){},d1ea:function(t,s,i){t.exports=i.p+"img/error_403.829774f4.svg"}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-e0185d66"],{"28a5":function(e,t,s){"use strict";var a=s("aae3"),n=s("cb7c"),r=s("ebd6"),o=s("0390"),i=s("9def"),l=s("5f1b"),c=s("520a"),u=s("79e5"),p=Math.min,f=[].push,d="split",m="length",h="lastIndex",g=4294967295,v=!u((function(){RegExp(g,"y")}));s("214f")("split",2,(function(e,t,s,u){var b;return b="c"=="abbc"[d](/(b)*/)[1]||4!="test"[d](/(?:)/,-1)[m]||2!="ab"[d](/(?:ab)*/)[m]||4!="."[d](/(.?)(.?)/)[m]||"."[d](/()()/)[m]>1||""[d](/.?/)[m]?function(e,t){var n=String(this);if(void 0===e&&0===t)return[];if(!a(e))return s.call(n,e,t);var r,o,i,l=[],u=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),p=0,d=void 0===t?g:t>>>0,v=new RegExp(e.source,u+"g");while(r=c.call(v,n)){if(o=v[h],o>p&&(l.push(n.slice(p,r.index)),r[m]>1&&r.index<n[m]&&f.apply(l,r.slice(1)),i=r[0][m],p=o,l[m]>=d))break;v[h]===r.index&&v[h]++}return p===n[m]?!i&&v.test("")||l.push(""):l.push(n.slice(p)),l[m]>d?l.slice(0,d):l}:"0"[d](void 0,0)[m]?function(e,t){return void 0===e&&0===t?[]:s.call(this,e,t)}:s,[function(s,a){var n=e(this),r=void 0==s?void 0:s[t];return void 0!==r?r.call(s,n,a):b.call(String(n),s,a)},function(e,t){var a=u(b,e,this,t,b!==s);if(a.done)return a.value;var c=n(e),f=String(this),d=r(c,RegExp),m=c.unicode,h=(c.ignoreCase?"i":"")+(c.multiline?"m":"")+(c.unicode?"u":"")+(v?"y":"g"),w=new d(v?c:"^(?:"+c.source+")",h),y=void 0===t?g:t>>>0;if(0===y)return[];if(0===f.length)return null===l(w,f)?[f]:[];var F=0,x=0,_=[];while(x<f.length){w.lastIndex=v?x:0;var C,S=l(w,v?f:f.slice(x));if(null===S||(C=p(i(w.lastIndex+(v?0:x)),f.length))===F)x=o(f,x,m);else{if(_.push(f.slice(F,x)),_.length===y)return _;for(var I=1;I<=S.length-1;I++)if(_.push(S[I]),_.length===y)return _;x=F=C}}return _.push(f.slice(F)),_}]}))},"42c3":function(e,t,s){},"4cd9":function(e,t,s){},"5b4e":function(e,t,s){"use strict";var a=s("5c96");t["a"]={showmsg:function(e,t){Object(a["Message"])({duration:1e3,message:e||"接口异常",type:t})}}},"71f6":function(e,t,s){"use strict";s.d(t,"a",(function(){return n}));s("ac6a"),s("456d");var a=s("b775");function n(e,t){e=e||{};var s=Object.keys(e);return s.forEach((function(s){var n=e[s];"string"===typeof n&&(n={url:n}),n.url="".concat(t).concat(n.url),e[s]=function(e){return Object(a["a"])(n,e)}})),e}},a30a:function(e,t,s){"use strict";var a=s("71f6"),n={wxEnterpriseRefresh:"/setting/wx-enterprise-info-flush",wxEnterpriseDetail:"/setting/wx-enterprise-info",getSelfApp:"/setting/secret-list",addSelfApp:{url:"/setting/set-secret",method:"post",useFormData:!0,useIntercept:!1},editSelfApp:{url:"/setting/set-secret",method:"post",useFormData:!0,useIntercept:!1},delSelfApp:{url:"/setting/del-secret",method:"post",useFormData:!0,useIntercept:!1},refreshSelfApp:{url:"/setting/reflush-secret",method:"post",useFormData:!0},getAdmin:"/setting/super-admin-list"};n=Object(a["a"])(n,"/hb-manage-web"),t["a"]=n},a86a:function(e,t,s){"use strict";var a=s("4cd9"),n=s.n(a);n.a},b735:function(e,t,s){"use strict";s.r(t);var a=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"daily-set-wrap "},[s("div",{staticClass:"company-set-content border-box"},[s("div",{staticClass:"company-title m-b-20 flex flex-space-between"},[s("div",{staticClass:"line-h-32"},[s("span",{staticClass:"color-303133 font-14 font-w-600"},[e._v("企业微信基本信息")]),s("el-button",{staticClass:"m-l-20",attrs:{type:"text",loading:e.loadRefesh},on:{click:e.refeshData}},[e._v("同步刷新 ")])],1)]),s("div",{staticClass:"company-info-body"},[s("el-form",{ref:"form",attrs:{model:e.form,"label-width":"105px"}},[s("el-form-item",{attrs:{label:"小程序版本"}},[s("span",{staticClass:"font-14 color-303133"},[e._v(e._s(e.companyObj.smallVersion||"免费版"))])]),s("el-form-item",{attrs:{label:"企业名称"}},[s("span",{staticClass:"font-14 color-303133 p-r-10"},[e._v(e._s(e.companyObj.wxEnterpriseName||"--"))]),s("el-tag",[e._v(" "+e._s("verified"==e.companyObj.corpType?"已认证":"未认证"))]),"verified"==e.companyObj.corpType?s("span",{staticClass:"p-l-10 font-12 color-909399"},[e._v("认证到期 "+e._s(e._f("timeStampToYmd")(e.companyObj.verifiedEndTime)))]):e._e()],1),s("el-form-item",{attrs:{label:"企业ID"}},[s("span",{staticClass:"font-14 color-303133"},[e._v(e._s(e.companyObj.corpId||"--"))])]),s("el-form-item",{attrs:{label:"行业类型"}},[s("span",{staticClass:"font-14 color-303133"},[e._v(e._s(e.companyObj.corpIndustry||"--")+" / "+e._s(e.companyObj.corpSubIndustry||"--"))])]),s("el-form-item",{attrs:{label:"人员规模"}},[s("span",{staticClass:"font-14 color-303133"},[e._v(e._s(e.companyObj.corpScale||"0人"))])]),s("el-form-item",{attrs:{label:"地址"}},[s("span",{staticClass:"font-14 color-303133"},[e._v(e._s(e.companyObj.location||"--"))])])],1)],1),e._m(0),s("div",{staticClass:"company-info-body secret-body"},[s("div",{staticClass:"m-b-20 secret-cell flex"},[s("div",{staticClass:" secret-cell-title"},[s("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"用于获取登录小程序用户的手机号/姓名/部门信息。必填项",placement:"top-start"}},[s("span",{staticClass:"font-14 color-606266 common-bottom-border"},[e._v("自建应用:")])])],1),s("div",[e._l(e.tableData,(function(t,a){return s("div",{key:a+"app",staticClass:"self-app-info"},[s("div",{staticClass:"self-app-item secret-name flex flex-space-between"},[s("div",[s("span",{staticClass:"font-14 color-303133 font-w-600 secret-name-span"},[e._v(e._s(t.secretName||"--"))]),s("span",{staticClass:"font-12 color-606266 p-l-15"},[e._v("编辑时间:"+e._s(e._f("formatTimeStamp")(t.updateTime)))])]),s("div",[s("el-button",{attrs:{type:"text",loading:e.loadApp},on:{click:function(s){return e.refreshApp(t)}}},[e._v("同步刷新")]),s("el-button",{attrs:{type:"text"},on:{click:function(s){return e.toEdit(t)}}},[e._v("编辑")]),s("el-button",{attrs:{type:"text"},on:{click:function(s){return e.toDel(t)}}},[e._v("删除")])],1)]),s("div",{staticClass:"m-t-10"},[s("el-form",{ref:"form",refInFor:!0,attrs:{"label-width":"110px"}},[s("el-form-item",{attrs:{label:"Agentld"}},[s("span",{staticClass:"font-14 color-303133"},[e._v(e._s(t.agentId))])]),s("el-form-item",{attrs:{label:"Secret"}},[s("span",{staticClass:"font-14 color-303133"},[e._v(e._s(t.secretVal))]),s("span",{staticClass:"p-l-15 font-14 color-303133"},[s("span",{class:["iconfont",t.checkFlag?"color-49c958 iconchenggong":"color-f83431 iconshibai"]}),s("span",{staticClass:"p-l-10"},[e._v(e._s(t.checkFlag?"校验成功":"校验失败"))])])]),s("el-form-item",{attrs:{label:"应用可见范围"}},e._l(t.displayRange,(function(a,n){return s("span",{key:n+"child",staticClass:"font-14 color-303133 inline-block"},[e._v(e._s(a.name)+" "+e._s(t.displayRange.length>1?";":""))])})),0)],1)],1)])})),e.tableData.length?e._e():s("div",{staticClass:"add-self-app font-14 color-606266 cursor-pointer",on:{click:e.addSecret}},[s("span",{staticClass:"iconfont icontianjiajiahaowubiankuang font-12"}),s("span",{staticClass:"p-l-10"},[e._v("添加")])])],2)])])]),e.addShow?s("add-self-app",{attrs:{"edit-row":e.editRow},on:{closeText:e.closeText,submitText:e.submitText}}):e._e()],1)},n=[function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"company-title m-b-20 m-t-30"},[s("span",{staticClass:"color-303133 font-14 font-w-600"},[e._v("客户密钥维护")])])}],r=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("el-dialog",{attrs:{title:(e.editRow.materialId,"自建应用"),visible:e.dialogVisible,width:"600px","before-close":e.handleClose},on:{"update:visible":function(t){e.dialogVisible=t}}},[s("div",{},[s("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,rules:e.rules,"label-width":"100px"}},[s("el-form-item",{attrs:{label:"应用名称",prop:"secretName"}},[s("el-input",{staticClass:"w-440",attrs:{type:"text","max-length":"30"},model:{value:e.ruleForm.secretName,callback:function(t){e.$set(e.ruleForm,"secretName",t)},expression:"ruleForm.secretName"}}),s("span",{staticClass:"input-cell-tip"},[e._v(e._s(e.ruleForm.secretName.length)+"/30")])],1),s("el-form-item",{attrs:{label:"Agentld",prop:"agentId"}},[s("el-input",{staticClass:"w-440",attrs:{type:"textarea",rows:"3","max-length":"30"},model:{value:e.ruleForm.agentId,callback:function(t){e.$set(e.ruleForm,"agentId",t)},expression:"ruleForm.agentId"}}),s("span",{staticClass:"input-cell-tip top-40"},[e._v(e._s(e.ruleForm.agentId.length)+"/30")])],1),s("el-form-item",{attrs:{label:"Secret",prop:"secretVal"}},[s("el-input",{staticClass:"w-440",attrs:{type:"textarea",rows:"3","max-length":"100"},model:{value:e.ruleForm.secretVal,callback:function(t){e.$set(e.ruleForm,"secretVal",t)},expression:"ruleForm.secretVal"}}),s("span",{staticClass:"input-cell-tip top-40"},[e._v(e._s(e.ruleForm.secretVal.length)+"/100")])],1)],1)],1),s("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[s("el-button",{on:{click:e.toCancel}},[e._v("取消")]),s("el-button",{attrs:{type:"primary",loading:e.loadBtn},on:{click:function(t){return e.submitForm("ruleForm")}}},[e._v("确认")])],1)])},o=[],i=(s("ac6a"),s("456d"),s("d157")),l=s("a30a"),c=s("5b4e"),u=l["a"].addSelfApp,p={name:"AddSelfApp",props:{editRow:{type:Object,default:function(){return{}}},categoryId:{type:Object,default:function(){return""}}},data:function(){return{dialogVisible:!0,ruleForm:{secretName:"",secretVal:"",agentId:"",secretId:""},rules:{secretName:[{required:!0,message:"请输入应用名称",trigger:"blur"}],secretVal:[{required:!0,message:"请输入secret",trigger:"blur"}],agentId:[{required:!0,message:"请输入Agentld",trigger:"blur"}]},loadBtn:!1,brandOptions:[]}},mounted:function(){var e=this;Object.keys(e.editRow).length&&(e.ruleForm=JSON.parse(JSON.stringify(e.editRow)))},methods:{toCancel:function(){var e=this;e.$emit("closeText"),e.$refs["ruleForm"].resetFields()},handleClose:function(e){var t=this;t.$emit("closeText"),t.$refs["ruleForm"].resetFields()},submitForm:Object(i["a"])((function(e){var t=this;t.$refs[e].validate((function(e){e&&t.postSave()}))}),300),postSave:function(){var e=this;e.loadBtn=!0;var t={agentId:Object(i["c"])(e.ruleForm.agentId),secretName:Object(i["c"])(e.ruleForm.secretName),secretVal:Object(i["c"])(e.ruleForm.secretVal),secretId:e.ruleForm.secretId,secretType:3};u(t).then((function(t){e.loadBtn=!1,"0000"==t.code?(c["a"].showmsg("操作成功","success"),e.$refs["ruleForm"].resetFields(),e.$emit("submitText")):(e.$message({message:t.message||"未知错误",type:"warning"}),e.$emit("submitText"))})).catch((function(t){e.loadBtn=!1}))}},watch:{editRow:function(e){var t=this;Object.keys(e).length&&(t.ruleForm=JSON.parse(JSON.stringify(e)))}}},f=p,d=(s("deee"),s("2877")),m=Object(d["a"])(f,r,o,!1,null,"2fce93fc",null),h=m.exports,g=l["a"].wxEnterpriseRefresh,v=l["a"].wxEnterpriseDetail,b=l["a"].getSelfApp,w=l["a"].delSelfApp,y=l["a"].refreshSelfApp,F={name:"EnterpriseSetPage",components:{addSelfApp:h},data:function(){return{checkShow:!0,tipText:"请在企业密钥维护中输入对应的secret",wxEnterpriseId:localStorage.getItem("haoBanUser")?JSON.parse(localStorage.getItem("haoBanUser")).wxEnterpriseId:"",companyObj:{smallVersion:"",corpName:"",corpId:"",contactFlag:!1,verifiedEndTime:"",corpIndustry:"",corpSubIndustry:"",corpUserMax:"",location:""},loadRefesh:!1,tableData:[],addShow:!1,editRow:{},loadApp:!1}},mounted:function(){var e=this;e.$emit("showTab","/enterpriseSet"),document.documentElement.style.backgroundColor="#f0f2f5",e.getData(),e.getApp()},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},methods:{addSecret:function(){var e=this;e.addShow=!0,e.editRow={}},toEdit:function(e){var t=this;t.addShow=!0,t.editRow=JSON.parse(JSON.stringify(e))},closeText:function(){var e=this;e.addShow=!1,e.editRow={}},submitText:function(){var e=this;e.addShow=!1,e.editRow={},e.getApp()},refreshApp:function(e){var t=this;t.loadApp=!0;var s={secretId:e.secretId};y(s).then((function(e){t.loadApp=!1,"0000"==e.code?(c["a"].showmsg("刷新成功","success"),t.getApp()):(c["a"].showmsg(e.message,"warning"),t.getApp())})).catch((function(e){t.loadApp=!1}))},toDel:function(e){var t=this;t.$confirm("确定删除当前自建应用?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){t.postDel(e)})).catch((function(){}))},postDel:function(e){var t=this,s={secretId:e.secretId};w(s).then((function(e){"0000"==e.code?(c["a"].showmsg("删除成功","success"),t.getApp()):(t.$message({message:e.message||"接口异常",type:"warning"}),t.getApp())})).catch((function(e){}))},refeshData:function(){var e=this;e.refreshData()},refreshData:function(){var e=this;e.loadRefesh=!0;var t={wxEnterpriseId:e.wxEnterpriseId};g(t).then((function(t){e.loadRefesh=!1,"0000"==t.code&&c["a"].showmsg("刷新成功","success"),e.getData()})).catch((function(t){e.loadRefesh=!1}))},getApp:function(){var e=this,t={secretType:3};b(t).then((function(t){e.tableData=t.result||[]})).catch((function(e){}))},getData:function(){var e=this,t={wxEnterpriseId:e.wxEnterpriseId};v(t).then((function(t){e.companyObj=t.result||{}})).catch((function(e){}))}}},x=F,_=(s("a86a"),Object(d["a"])(x,a,n,!1,null,"c1faccc4",null));t["default"]=_.exports},d157:function(e,t,s){"use strict";s.d(t,"a",(function(){return a})),s.d(t,"b",(function(){return n})),s.d(t,"c",(function(){return r}));s("c5f6"),s("a481"),s("28a5"),s("6b54");function a(e,t){var s,a=t||200;return function(){var t=this,n=arguments;s&&clearTimeout(s),s=setTimeout((function(){s=null,e.apply(t,n)}),a)}}function n(e,t){var s,a,n=t||200;return function(){var t=this,r=arguments,o=+new Date;s&&o-s<n?(clearTimeout(a),a=setTimeout((function(){s=o,e.apply(t,r)}),n)):(s=o,e.apply(t,r))}}function r(e){return e=e.replace(/\uD83C[\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F]|[\uD800-\uDBFF]|[\uDC00-\uDFFF]|[^\u0020-\u007E\u00A0-\u00BE\u2E80-\uA4CF\uF900-\uFAFF\uFE30-\uFE4F\uFF00-\uFFEF\u0080-\u009F\u2000-\u201f\u2026\u2022\u20ac\r\n]/g,""),unescape(escape(e).replace(/\%uD.{3}/g,""))}},deee:function(e,t,s){"use strict";var a=s("42c3"),n=s.n(a);n.a}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-f4b91c90","chunk-33b0918a"],{"0082":function(e,t,n){"use strict";n.r(t);var o=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("ul",{staticClass:"role-menu"},[Array.isArray(e.roleList)&&0!=e.roleList.length?e._e():n("li",{staticClass:"no-data"},[e._v("暂无数据")]),e._l(e.roleList,(function(t){return n("li",{key:t,class:["role-item",{active:e.activeRoleId==t.roleId}],on:{click:function(n){return e.onChangeRole(t)}}},[n("span",{staticClass:"role-name"},[e._v(e._s(t.roleName))]),n("el-dropdown",{attrs:{placement:"bottom-start"}},[n("i",{staticClass:"iconfont icongengduo edit-icon"}),n("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[n("el-dropdown-item",{nativeOn:{click:function(n){return e.onEditRole(t)}}},[e._v("编辑")]),e.showDelRoleButton?n("el-dropdown-item",{nativeOn:{click:function(n){return e.onDelRole(t)}}},[e._v("删除")]):e._e()],1)],1)],1)}))],2),n("el-dialog",{attrs:{visible:e.delRole.show,title:"删除角色",width:"600px"},on:{"update:visible":function(t){return e.$set(e.delRole,"show",t)},closed:e.onDelRoleClose}},[n("div",{staticClass:"del-role"},[n("i",{staticClass:"el-icon-warning"}),n("div",{staticClass:"del-role-content"},[n("p",{staticClass:"del-role-tip"},[e._v("确认删除“"+e._s(e.delRole.roleName)+"”角色吗?")]),n("p",{staticClass:"del-role-tip"},[e._v("请在输入框中输入该角色名称,以避免误操作。")]),n("el-input",{staticStyle:{"margin-top":"10px",width:"440px"},model:{value:e.delRole.roleNameInput,callback:function(t){e.$set(e.delRole,"roleNameInput","string"===typeof t?t.trim():t)},expression:"delRole.roleNameInput"}})],1)]),n("template",{slot:"footer"},[n("el-button",{on:{click:function(t){e.delRole.show=!1}}},[e._v("取消")]),n("el-button",{attrs:{type:"primary",loading:e.delRole.loading},on:{click:e.onDelRoleSure}},[e._v("确定")])],1)],2)],1)},i=[],l=(n("c5f6"),n("f286")),a=l["a"].delRole,r={name:"RoleList",props:{roleList:{type:Array,default:function(){return[]}},activeRoleId:[String,Number],showDelRoleButton:{type:Boolean,default:!1}},data:function(){return{delRole:{show:!1,loading:!1,roleId:"",roleName:"",roleNameInput:""}}},methods:{onChangeRole:function(e){this.$emit("change-role",e)},onEditRole:function(e){this.$emit("edit-role",e)},onDelRole:function(e){var t=e.roleId,n=e.roleName;Object.assign(this.delRole,{show:!0,roleId:t,roleName:n})},onDelRoleClose:function(){Object.assign(this.delRole,{roleId:"",roleName:"",roleNameInput:""})},onDelRoleSure:function(){var e=this,t=this.delRole,n=t.roleId,o=t.roleName,i=t.roleNameInput;return 0==i.length?this.$message.warning("请输入角色名称!"):o!=i?this.$message.warning("请输入正确的角色名称!"):(this.delRole.loading=!0,void a({roleId:n}).then((function(t){"0000"==t.code&&(e.$message.success("删除成功!"),e.$emit("del-role-succ",n==e.activeRoleId),e.delRole.show=!1)})).finally((function(){return e.delRole.loading=!1})))}}},s=r,c=(n("575f"),n("2877")),u=Object(c["a"])(s,o,i,!1,null,"7c337432",null);t["default"]=u.exports},"386d":function(e,t,n){"use strict";var o=n("cb7c"),i=n("83a1"),l=n("5f1b");n("214f")("search",1,(function(e,t,n,a){return[function(n){var o=e(this),i=void 0==n?void 0:n[t];return void 0!==i?i.call(n,o):new RegExp(n)[t](String(o))},function(e){var t=a(n,e,this);if(t.done)return t.value;var r=o(e),s=String(this),c=r.lastIndex;i(c,0)||(r.lastIndex=0);var u=l(r,s);return i(r.lastIndex,c)||(r.lastIndex=c),null===u?-1:u.index}]}))},"44e1":function(e,t,n){},"575f":function(e,t,n){"use strict";var o=n("44e1"),i=n.n(o);i.a},"71f6":function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));n("ac6a"),n("456d");var o=n("b775");function i(e,t){e=e||{};var n=Object.keys(e);return n.forEach((function(n){var i=e[n];"string"===typeof i&&(i={url:i}),i.url="".concat(t).concat(i.url),e[n]=function(e){return Object(o["a"])(i,e)}})),e}},"83a1":function(e,t){e.exports=Object.is||function(e,t){return e===t?0!==e||1/e===1/t:e!=e&&t!=t}},b6fa:function(e,t,n){"use strict";var o=n("e2aa"),i=n.n(o);i.a},db80:function(e,t,n){"use strict";n.r(t);var o=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"admin"},[n("div",{staticClass:"role-list"},[n("div",{staticClass:"add-role"},[n("el-button",{on:{click:function(t){return e.onEditRole()}}},[n("i",{staticClass:"iconfont icontianjiajiahaowubiankuang"}),e._v(" 新建管理角色")])],1),n("role-list",{attrs:{"role-list":e.roleList,"active-role-id":e.activeRoleId,"show-del-role-button":""},on:{"del-role-succ":e.onDelRoleSucc,"edit-role":e.onEditRole,"change-role":e.onChangeRole}})],1),n("div",{staticClass:"admin-list"},[n("h3",{staticClass:"admin-list-title"},[e._v("管理员列表")]),n("el-input",{staticStyle:{width:"277px"},attrs:{placeholder:"请输入姓名/账号/手机号码","prefix-icon":"el-icon-search",clearable:""},on:{change:e.onSearch},model:{value:e.search,callback:function(t){e.search="string"===typeof t?t.trim():t},expression:"search"}}),n("el-button",{staticStyle:{float:"right"},attrs:{type:"primary"},on:{click:e.toEditAdmin}},[e._v("添加管理员")]),n("el-table",{staticStyle:{"margin-top":"20px"},attrs:{data:e.adminList}},[n("el-table-column",{attrs:{label:"姓名",prop:"staffName",formatter:function(e,t,n){return n||"--"}}}),n("el-table-column",{attrs:{label:"账号",prop:"wxUserId",formatter:function(e,t,n){return n||"--"},"show-overflow-tooltip":""}}),n("el-table-column",{attrs:{label:"手机号码",prop:"phoneNumber",formatter:function(e,t,n){return n||"--"}}}),n("el-table-column",{attrs:{label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){var o=t.row;return[n("el-button",{attrs:{type:"text"},on:{click:function(t){return e.toEditAdmin(o)}}},[e._v("管辖范围")]),n("el-button",{attrs:{type:"text"},on:{click:function(t){return e.onDelAdmin(o)}}},[e._v("删除")])]}}])})],1),e.pager.total>0?n("dm-pagination",{staticStyle:{"text-align":"right"},attrs:{background:"",layout:"total,sizes,prev,pager,next",total:e.pager.total,"page-sizes":e.pager.pageSizes,"page-size":e.pager.pageSize,"current-page":e.pager.currentPage},on:{"size-change":e.onSizeChange,"current-change":e.onCurrentChange}}):e._e()],1)])},i=[],l=(n("386d"),n("0082")),a=n("f286"),r=a["a"].roleList,s=a["a"].roleAdminList,c=a["a"].delAdmin,u={name:"AdminList",components:{RoleList:l["default"]},data:function(){return{activeRoleId:"",roleList:[],search:"",pager:{total:0,pageSizes:[20,40,60,80],pageSize:20,currentPage:1},adminList:[]}},created:function(){this.$emit("showTab","/admin-list"),this.getRoleList()},methods:{getRoleList:function(){var e=this;r({roleType:2}).then((function(t){e.roleList=t.result||[],e.roleList.length>0&&!e.activeRoleId&&(e.activeRoleId=e.roleList[0].roleId,e.getAdminList())}))},onEditRole:function(e){var t=e||{},n=t.roleId;this.$router.push("/edit-role".concat(n?"?roleId=".concat(n):""))},onChangeRole:function(e){this.activeRoleId=e.roleId,this.getAdminList()},onDelRoleSucc:function(e){e&&(this.activeRoleId=""),this.getRoleList()},getAdminList:function(){var e=this,t=this.pager,n=t.currentPage,o=t.pageSize,i={roleId:this.activeRoleId,search:this.search,pageNum:n,pageSize:o};s(i).then((function(t){var n=t.result||{},o=n.totalCount,i=n.result;e.pager.total=o,e.adminList=i||[]}))},onSearch:function(){this.pager.currentPage=1,this.getAdminList()},onSizeChange:function(e){this.pager.pageSize=e,this.onSearch()},onCurrentChange:function(e){this.pager.currentPage=e,this.getAdminList()},toEditAdmin:function(e){var t=e||{},n=t.staffId,o=t.staffName;this.$router.push("/edit-admin?roleId=".concat(this.activeRoleId).concat(o?"&staffName=".concat(o):"").concat(n?"&staffId=".concat(n):""))},onDelAdmin:function(e){var t=this,n=e.staffName,o=e.staffId;this.$confirm("确定删除【 ".concat(n," 】吗?"),"提示",{type:"warning"}).then((function(){var e={staffId:o,roleId:t.activeRoleId};c(e).then((function(e){"0000"==e.code&&(t.$message.success("删除成功!"),t.pager.currentPage>1&&1==t.adminList.length&&t.pager.currentPage--,t.getAdminList())}))}))}}},d=u,f=(n("b6fa"),n("2877")),h=Object(f["a"])(d,o,i,!1,null,"2e313758",null);t["default"]=h.exports},e2aa:function(e,t,n){},f286:function(e,t,n){"use strict";var o=n("71f6"),i={addRole:{url:"/add-role",method:"post",useFormData:!0},delRole:"/role-del",editRole:{url:"/role-edit",method:"post",useFormData:!0},roleDetail:"/role-detail",roleList:"/role-list",menuList:"/menu-list",roleAdminList:"/role-admin-list",delAdmin:"/admin-del",enterpriseList:"/auth-enterprise-list",resourceList:"/resource-list"};t["a"]=Object(o["a"])(i,"/hb-manage-web")}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-ff69e9d6"],{"0ef2":function(t,e,n){"use strict";var a=n("50e5"),i=n.n(a);i.a},"28a5":function(t,e,n){"use strict";var a=n("aae3"),i=n("cb7c"),r=n("ebd6"),c=n("0390"),o=n("9def"),l=n("5f1b"),s=n("520a"),u=n("79e5"),h=Math.min,f=[].push,d="split",m="length",v="lastIndex",p=4294967295,b=!u((function(){RegExp(p,"y")}));n("214f")("split",2,(function(t,e,n,u){var g;return g="c"=="abbc"[d](/(b)*/)[1]||4!="test"[d](/(?:)/,-1)[m]||2!="ab"[d](/(?:ab)*/)[m]||4!="."[d](/(.?)(.?)/)[m]||"."[d](/()()/)[m]>1||""[d](/.?/)[m]?function(t,e){var i=String(this);if(void 0===t&&0===e)return[];if(!a(t))return n.call(i,t,e);var r,c,o,l=[],u=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),h=0,d=void 0===e?p:e>>>0,b=new RegExp(t.source,u+"g");while(r=s.call(b,i)){if(c=b[v],c>h&&(l.push(i.slice(h,r.index)),r[m]>1&&r.index<i[m]&&f.apply(l,r.slice(1)),o=r[0][m],h=c,l[m]>=d))break;b[v]===r.index&&b[v]++}return h===i[m]?!o&&b.test("")||l.push(""):l.push(i.slice(h)),l[m]>d?l.slice(0,d):l}:"0"[d](void 0,0)[m]?function(t,e){return void 0===t&&0===e?[]:n.call(this,t,e)}:n,[function(n,a){var i=t(this),r=void 0==n?void 0:n[e];return void 0!==r?r.call(n,i,a):g.call(String(i),n,a)},function(t,e){var a=u(g,t,this,e,g!==n);if(a.done)return a.value;var s=i(t),f=String(this),d=r(s,RegExp),m=s.unicode,v=(s.ignoreCase?"i":"")+(s.multiline?"m":"")+(s.unicode?"u":"")+(b?"y":"g"),w=new d(b?s:"^(?:"+s.source+")",v),C=void 0===e?p:e>>>0;if(0===C)return[];if(0===f.length)return null===l(w,f)?[f]:[];var y=0,x=0,S=[];while(x<f.length){w.lastIndex=b?x:0;var N,D=l(w,b?f:f.slice(x));if(null===D||(N=h(o(w.lastIndex+(b?0:x)),f.length))===y)x=c(f,x,m);else{if(S.push(f.slice(y,x)),S.length===C)return S;for(var T=1;T<=D.length-1;T++)if(S.push(D[T]),S.length===C)return S;x=y=N}}return S.push(f.slice(y)),S}]}))},"2cad":function(t,e,n){"use strict";n.r(e);var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"review-wrap"},[n("vue-office-header",{attrs:{"project-name":t.projectName},on:{collapseTag:t.collapseTag,toRouterView:t.toRouterView,leftData:t.leftData}}),n("div",{staticClass:"setting-wrap__body"},[n("div",{staticClass:"content",attrs:{id:"content"}},[n("div",{staticClass:"content-body"},[n("div",{staticClass:"content-body-inner flex border-box"},[n("div",{staticClass:"apps-content-left w-157",staticStyle:{"min-height":"calc(100vh - 86px)"}},[n("common-detail-left",{attrs:{"tab-list-data":t.tabListData,"active-sel-tab":t.activeSelTab},on:{setSelectTab:t.setSelectTab}})],1),n("div",{staticClass:"apps-content-right border-box"},[n("transition",{attrs:{name:"fade",mode:"out-in"}},[n("router-view",{attrs:{"brand-id":t.activeBrand,"active-group-id":t.activeGroup,"tab-type":t.activeTab},on:{showTab:t.showTab}})],1)],1)])])])])],1)},i=[],r=(n("6762"),n("2fdb"),n("ac6a"),n("f777")),c=n("503e"),o=n("5937"),l=o["a"].getRoleMenu,s={name:"ReviewCenter",components:{vueOfficeHeader:r["a"],commonDetailLeft:c["a"]},data:function(){return{projectName:"haoban-manage-web",collapseFlag:!1,activeSelTab:"1",activeTab:"1",tabListData:[]}},methods:{changeRoute:function(t){this.$router.push(t)},setSelectTab:function(t){var e=this;e.activeTab=t.menuUrl,1==t.target?-1!=t.menuUrl.indexOf("http")?window.open(t.menuUrl):window.open("/haoban-4/#".concat(t.menuUrl)):e.$router.push(t.menuUrl)},showTab:function(t){var e=this;e.activeTab=t,e.activeSelTab=t,e.tabListData.forEach((function(e){e.menuUrl==t&&(e.onlyIconActive=!1),e.children&&e.children.forEach((function(n){n.menuUrl==t&&(e.onlyIconActive=!0),n.children&&n.children.forEach((function(n){n.menuUrl==t&&(e.onlyIconActive=!0)}))}))}))},toRouterView:function(t){var e=this;e.$router.push({path:t.path})},collapseTag:function(t){var e=this;e.collapseFlag=t},leftData:function(t){var e=this;t[0].children.forEach((function(t,n){t.tabId=n+1,t.tabName=t.menuName,t.children&&t.children.length&&e.setChildData(t,n+1)})),e.tabListData=t[0].children},setChildData:function(t,e){var n=this;t.children.forEach((function(t,a){t.tabId=e+"-"+(a+1),t.tabName=t.menuName,t.children&&t.children.length&&n.setChildData(t,e+"-"+(a+1))}))},getData:function(){var t=this,e={};l(e).then((function(e){if("0000"==e.code){var n=e.result.map((function(t){return t.menuCode})),a=[];t.tabListData.forEach((function(t){n.includes(t.menuCode)&&a.push(t)})),t.tabListData=a}})).catch((function(t){}))}}},u=s,h=(n("8db5"),n("2877")),f=Object(h["a"])(u,a,i,!1,null,null,null);e["default"]=f.exports},"2fdb":function(t,e,n){"use strict";var a=n("5ca1"),i=n("d2c8"),r="includes";a(a.P+a.F*n("51479")(r),"String",{includes:function(t){return!!~i(this,t,r).indexOf(t,arguments.length>1?arguments[1]:void 0)}})},"503e":function(t,e,n){"use strict";var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"p-t-12"},[n("ul",{staticClass:"tab-left-list"},[t._l(t.tabData,(function(e,a){return[n("li",{key:a,class:["tab-left-list-cell color-303133 font-14 border-box p-l-14",e.menuUrl!=t.activeTab||e.children.length?"":"active-tab"],on:{click:function(n){return t.selectTab(e,!1,a)}}},[n("i",{class:["p-r-10 color-303133 iconfont",e.iconUrl,(e.onlyIconActive,"")]}),t._v(t._s(e.tabName)+"\n ")]),n("ul",{key:"childitem"+a,staticClass:"child-tab-left-list"},[t._l(e.children,(function(e,i){return[n("li",{key:i,class:["tab-left-list-cell color-303133 font-14 border-box p-l-40",e.menuUrl!=t.activeTab||e.children.length?"":"active-tab"],on:{click:function(n){return t.selectTab(e,"child",a)}}},[t._v(t._s(e.tabName))]),n("ul",{key:"thirditem"+i,staticClass:"third-tab-left-list"},[t._l(e.children,(function(e,i){return[n("li",{key:i,class:["tab-left-list-cell color-303133 font-14 border-box p-l-60",e.menuUrl!=t.activeTab||e.children.length?"":"active-tab"],on:{click:function(n){return t.selectTab(e,"child",a)}}},[t._v(t._s(e.tabName))])]}))],2)]}))],2)]}))],2)])},i=[],r=(n("ac6a"),n("c5f6"),{name:"CommonDetailLeft",props:{appName:{type:String,default:function(){return""}},activeSelTab:{type:[String,Number],default:function(){return""}},tabListData:{type:[Array,Object],default:function(){return[]}}},data:function(){return{projectName:"",activeTab:"1",tabData:this.tabListData,collapsFlag:!0}},mounted:function(){this.activeTab=this.activeSelTab},methods:{returnBack:function(){var t=this;t.$router.push("appcenter")},selectTab:function(t,e,n){var a=this;if(e?a.tabData[n].onlyIconActive=!0:(a.tabData.forEach((function(t){t.onlyIconActive=!1})),t.hasOwnProperty("children")&&t.children.length&&(a.collapsFlag=!(a.collapsFlag&&t.hasOwnProperty("children")&&t.children.length))),t.hasOwnProperty("children")&&t.children.length)return a.tabData[n].onlyIconActive=!0,t.children[0]&&t.children[0].hasOwnProperty("children")&&t.children[0].children.length?(a.activeTab=t.children[0].children[0].menuUrl,a.$emit("setSelectTab",t.children[0].children[0]),!1):(a.activeTab=t.children[0].menuUrl,a.$emit("setSelectTab",t.children[0]),!1);a.activeTab=t.menuUrl,a.$emit("setSelectTab",t)}},watch:{tabListData:function(t,e){var n=this;n.tabData=t},activeSelTab:function(t,e){var n=this;n.activeTab=t}}}),c=r,o=(n("0ef2"),n("2877")),l=Object(o["a"])(c,a,i,!1,null,"51e072e6",null);e["a"]=l.exports},"50e5":function(t,e,n){},51479:function(t,e,n){var a=n("2b4c")("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[a]=!1,!"/./"[t](e)}catch(i){}}return!0}},5937:function(t,e,n){"use strict";var a=n("71f6"),i={getRoleMenu:"/list-staff-role-menu"};i=Object(a["a"])(i,"/hb-manage-web"),e["a"]=i},6762:function(t,e,n){"use strict";var a=n("5ca1"),i=n("c366")(!0);a(a.P,"Array",{includes:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),n("9c6c")("includes")},"6ce2":function(t,e,n){t.exports=n.p+"img/member.1eda5d6c.png"},"71f6":function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));n("ac6a"),n("456d");var a=n("b775");function i(t,e){t=t||{};var n=Object.keys(t);return n.forEach((function(n){var i=t[n];"string"===typeof i&&(i={url:i}),i.url="".concat(e).concat(i.url),t[n]=function(t){return Object(a["a"])(i,t)}})),t}},"7ded":function(t,e,n){"use strict";var a=n("71f6"),i={getLoginQrcode:"/get-login-qrcode",getUserInfo:"/get-login-user",loginOut:{url:"/login-out",method:"post",useFormData:!0}};i=Object(a["a"])(i,"/hb-manage-web/auth"),e["a"]=i},"8db5":function(t,e,n){"use strict";var a=n("f192"),i=n.n(a);i.a},cc0d:function(t,e,n){"use strict";var a=n("ed94"),i=n.n(a);i.a},d2c8:function(t,e,n){var a=n("aae3"),i=n("be13");t.exports=function(t,e,n){if(a(e))throw TypeError("String#"+n+" doesn't accept regex!");return String(i(t))}},ed94:function(t,e,n){},f192:function(t,e,n){},f777:function(t,e,n){"use strict";var a=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"nav-header"},[a("div",{staticClass:"nav-header-logo fl cursor-pointer",on:{click:t.toIndex}},[a("span",{staticClass:"pro-name"},[t._v("好办管理平台")])]),a("div",{staticClass:"nav-header-item fl"},[t._l(t.menuHead,(function(e,n){return[a("a",{key:n,class:["item-link menu-font-16"],on:{click:function(n){return t.changeRouter(e)}}},[a("span",{class:["inline-block bottom",-1!=e.menuUrl.indexOf(t.pathName)?"current-module":""]},[t._v(t._s(e.menuName))])])]})),a("div",{staticClass:"navuser-info fr"},[t.userInfo.headImg?a("img",{staticClass:"user-img",attrs:{src:t.userInfo.headImg,alt:""}}):a("img",{staticClass:"user-img",attrs:{src:n("6ce2"),alt:"img"}}),a("el-popover",{staticStyle:{"min-width":"95px"},attrs:{placement:"bottom",title:"",width:"95",trigger:"hover","popper-class":"user-header-pop"}},[a("ul",{staticClass:"navsuer-wrap"},[a("li",[a("p",{staticClass:"font-14 color-606266 hide-item"},[t._v(t._s(t.userInfo.staffName||"--"))]),a("p",{staticClass:"font-12 color-909399 hide-item"},[t._v(t._s(t.userInfo.roleName||"--"))])]),a("li",{staticClass:"user-item text-align",on:{click:function(e){return e.stopPropagation(),t.toLoginOut(e)}}},[a("a",{staticClass:"user-text"},[t._v("退出登录")])])]),a("a",{staticClass:"nav-user-name",attrs:{slot:"reference"},slot:"reference"},[a("span",{staticClass:"font-12 color-606266"},[t._v(t._s(t.userInfo.staffName||"--"))]),a("i",{staticClass:"iconfont iconxiala arrowico color-c0c4cc"})])])],1)],2)])},i=[],r=(n("456d"),n("96cf"),n("1da1")),c=(n("ac6a"),n("28a5"),n("7ded")),o=n("5937"),l=o["a"].getRoleMenu,s=c["a"].getUserInfo,u=c["a"].loginOut,h={name:"VueOfficeHeader",components:{},data:function(){return{checkShow:!0,tipText:"请先完成商户初始化设置后,再进行其他操作",repProjectName:"haoban-manage-web",pathName:"",isCollapse:!1,menuHead:[],roleMenuData:[],routePathName:"",userInfo:{staffName:"",nationCode:"",phoneNumber:"",headImg:"",wxEnterpriseId:"",roleName:""}}},mounted:function(){var t=this;t.pathName=t.$route.path,t.routePathName=window.location.hash.split("/")[1],-1!=t.routePathName.indexOf("?")&&(t.routePathName=t.routePathName.split("?")[0]),-1!=t.routePathName.indexOf("/")&&(t.routePathName=t.routePathName.split("/")[0]),localStorage.removeItem("haoBanUser"),t.toLogin()},methods:{toIndex:function(){var t=this;t.$router.push("/contactsList")},changeRouter:function(t){var e=this;if(1==t.target)-1!=t.menuUrl.indexOf("http")?window.open(t.menuUrl):window.open("/haoban-4/#".concat(t.menuUrl));else{e.setleftData(t);var n={};e.roleMenuData.forEach((function(e){t.menuCode!=e.menuCode||e.children.length||(n=e),t.menuCode==e.menuCode&&e.children.length&&(n=e.children[0])})),e.$router.push(n.menuUrl)}},setleftData:function(t){var e=this,n=[];e.roleMenuData.forEach((function(e){t.menuCode==e.menuCode&&n.push(e)})),e.$emit("leftData",n)},toLoginOut:function(){var t=this;t.$confirm("确认退出吗?","提示",{type:"warning"}).then((function(){u({}).then((function(e){"0000"==e.code&&(t.$message({message:"退出成功",type:"success"}),localStorage.removeItem("haoBanUser"),window.location.href=window.location.origin+"/haoban-4/#/login")})).catch((function(t){}))})).catch((function(){}))},toRouter:function(t,e,n){var a=this,i={path:"/"+t,name:e};a.$emit("toRouterView",i)},toLogin:function(){var t=this;s({}).then((function(e){e.result||(e.result={loginStaff:{staffName:"",nationCode:"",phoneNumber:"",headImg:"",wxEnterpriseId:""},role:{roleName:""}}),localStorage.setItem("haoBanUser",JSON.stringify(e.result.loginStaff)),t.userInfo=Object.assign(e.result.loginStaff,e.result.role),t.getData()})).catch((function(t){}))},treeData:function(t){var e=t.filter((function(e){var n=t.filter((function(t){return e.menuCode==t.parentCode&&1==t.isShow}));return n.length>0?(e.hasSonNode=!0,e.children=n):(e.children=[],e.hasSonNode=!1),""==e.parentCode&&1==e.isShow}));return e},getData:function(){var t=this,e={};l(e).then(function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(n){var a,i,r,c;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if("0000"!=n.code){e.next=14;break}return a=[],i={},r={},n.result.forEach((function(e){1==e.level&&1==e.isShow&&a.push(e),t.$route.path==e.menuUrl&&1==e.level&&1==e.isShow&&(i=e),t.$route.path==e.menuUrl&&1!=e.level&&(r=e)})),t.menuHead=a,e.next=8,t.treeData(JSON.parse(JSON.stringify(n.result)));case 8:t.roleMenuData=e.sent,Object.keys(r).length&&2==r.level&&n.result.forEach((function(t){r.parentCode==t.menuCode&&1==t.level&&1==t.isShow&&(i=t)})),c={},Object.keys(r).length&&3==r.level&&n.result.forEach((function(t){r.parentCode==t.menuCode&&2==t.level&&1==t.isShow&&(c=t)})),Object.keys(c).length&&2==c.level&&n.result.forEach((function(t){c.parentCode==t.menuCode&&1==t.level&&1==t.isShow&&(i=t)})),t.setleftData(i);case 14:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(t){}))}}},f=h,d=(n("cc0d"),n("2877")),m=Object(d["a"])(f,a,i,!1,null,"2a4f88b9",null);e["a"]=m.exports}}]);
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -4,7 +4,7 @@
* @Author: 无尘
* @Date: 2020-07-16 16:37:05
* @LastEditors: 无尘
* @LastEditTime: 2020-08-17 15:32:03
* @LastEditTime: 2020-09-02 18:17:10
*/
import 'babel-polyfill';
import 'element-ui/lib/theme-chalk/index.css';
......@@ -40,8 +40,9 @@ Vue.config.productionTip = false;
Object.keys(filters).forEach(key => {
Vue.filter(key, filters[key]);
});
const localRoute = [ '/data-dimension', '/crowd-scene', '/customer-data-set', '/clerk-tag', '/customer-assign' ];
permission({
whiteRoute: [ '/login', '/contactsList', '/gic-error', '/403', '/404', '/500' ],
whiteRoute: [ '/login', '/contactsList', '/gic-error', '/403', '/404', '/500', ...localRoute ],
router,
routes,
createApp() {
......
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