Commit c0f7ff61 by 无尘

fix: 修改选择管理员

parent 8b6fe548
.bind-store-body[data-v-7ce58aba]{width:331px;padding:10px;margin:0 auto;border:1px solid #e4e7ed}.bind-store-body .w-215[data-v-7ce58aba]{width:215px}.bind-store-body .w-115[data-v-7ce58aba]{width:115px}.bind-store-body .select-tree-wrap[data-v-7ce58aba]{height:323px;overflow-y:auto}.bind-store-body .select-tree-wrap .el-tree[data-v-7ce58aba]{width:309px;height:323px;overflow-x:auto}.bind-store-body .select-tree-wrap .el-tree .custom-tree-node[data-v-7ce58aba]{-webkit-box-flex:1;-ms-flex:1;flex:1;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;font-size:14px;padding-right:8px}.bind-store-body .select-tree-wrap .el-select-dropdown__wrap[data-v-7ce58aba]{max-height:343px}.bind-store-body .select-tree-wrap .el-checkbox-group[data-v-7ce58aba]{overflow-x:auto;max-height:306px}.bind-store-body .select-tree-wrap .el-checkbox-group ul[data-v-7ce58aba]{height:100%}.bind-store-body .select-tree-wrap .el-checkbox-group ul li[data-v-7ce58aba]{overflow:unset;text-overflow:unset}.bind-store-body[data-v-7071110a]{width:331px;padding:10px;margin:20px 0 0 0;border:1px solid #e4e7ed}.bind-store-body .w-215[data-v-7071110a]{width:215px}.bind-store-body .w-115[data-v-7071110a]{width:115px}.bind-store-body .select-tree-wrap[data-v-7071110a]{height:323px;overflow-y:auto}.bind-store-body .select-tree-wrap .el-tree[data-v-7071110a]{width:309px;height:323px;overflow-x:auto}.bind-store-body .select-tree-wrap .el-tree .custom-tree-node[data-v-7071110a]{-webkit-box-flex:1;-ms-flex:1;flex:1;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;font-size:14px;padding-right:8px}.daily-store-select[data-v-1f8586f8]{position:relative;width:331px;min-height:398px;margin:20px 0 0 0;padding:10px;border:1px solid #e4e7ed}.daily-store-select .define-search-select .el-select-dropdown__wrap[data-v-1f8586f8]{max-height:343px}.daily-store-select .define-search-select .el-checkbox-group[data-v-1f8586f8]{overflow-x:auto;height:338px}.daily-store-select .define-search-select .el-checkbox-group ul[data-v-1f8586f8]{height:100%}.daily-store-select .define-search-select .el-checkbox-group ul li[data-v-1f8586f8]{overflow:unset;text-overflow:unset}.store-auth-range[data-v-b34621e2]{display:block;-webkit-transition:all .3s;transition:all .3s}.store-auth-range.show-range .common-mask[data-v-b34621e2],.store-auth-range.show-range[data-v-b34621e2]{display:block}.store-auth-range.show-range .bind-body[data-v-b34621e2]{right:0}.store-auth-range.hide-range .common-mask[data-v-b34621e2]{display:none;opacity:0}.store-auth-range.hide-range .bind-body[data-v-b34621e2]{right:-620px}.common-mask[data-v-b34621e2]{left:0;opacity:.5;background:#000;z-index:1000}.bind-body[data-v-b34621e2],.common-mask[data-v-b34621e2]{position:fixed;top:0;bottom:0;right:0;-webkit-transition:all .3s;transition:all .3s}.bind-body[data-v-b34621e2]{width:604px;padding:20px;z-index:5000;overflow-y:auto;background:#fff}.my-customer-wrap[data-v-6a673ce6]{height:100%}.my-customer-wrap .navwrap[data-v-6a673ce6]{padding-left:0;background:#f0f2f5}.my-customer-wrap .apps-content-right[data-v-6a673ce6]{width:100%;padding:20px}.my-customer-wrap .apps-content-right .admin-list-wrap .add-admin-btn[data-v-6a673ce6]{width:114px;height:32px;line-height:32px;text-align:center;border:1px solid #e4e7ed}.my-customer-wrap .apps-content-right .store-item-content[data-v-6a673ce6]{position:relative;display:inline-block;vertical-align:middle;width:302px;height:32px;line-height:32px;overflow:hidden;white-space:nowrap;border-radius:2px;border:1px solid #c4c6cf;cursor:pointer;-webkit-box-sizing:border-box;box-sizing:border-box}.my-customer-wrap .apps-content-right .store-item-content.admin-select[data-v-6a673ce6]{border:none}.my-customer-wrap .apps-content-right .store-item-content .el-select__tags[data-v-6a673ce6]{max-width:348px;white-space:nowrap;overflow:hidden}
\ No newline at end of file
.bind-store-body[data-v-68845ea0]{width:331px;padding:10px;margin:0 auto;border:1px solid #e4e7ed}.bind-store-body .w-215[data-v-68845ea0]{width:215px}.bind-store-body .w-115[data-v-68845ea0]{width:115px}.bind-store-body .select-tree-wrap[data-v-68845ea0]{height:323px;overflow-y:auto}.bind-store-body .select-tree-wrap .el-tree[data-v-68845ea0]{width:309px;height:323px;overflow-x:auto}.bind-store-body .select-tree-wrap .el-tree .custom-tree-node[data-v-68845ea0]{-webkit-box-flex:1;-ms-flex:1;flex:1;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;font-size:14px;padding-right:8px}.bind-store-body .select-tree-wrap .el-select-dropdown__wrap[data-v-68845ea0]{max-height:343px}.bind-store-body .select-tree-wrap .el-checkbox-group[data-v-68845ea0]{overflow-x:auto;max-height:306px}.bind-store-body .select-tree-wrap .el-checkbox-group ul[data-v-68845ea0]{height:100%}.bind-store-body .select-tree-wrap .el-checkbox-group ul li[data-v-68845ea0]{overflow:unset;text-overflow:unset}.bind-store-body[data-v-7071110a]{width:331px;padding:10px;margin:20px 0 0 0;border:1px solid #e4e7ed}.bind-store-body .w-215[data-v-7071110a]{width:215px}.bind-store-body .w-115[data-v-7071110a]{width:115px}.bind-store-body .select-tree-wrap[data-v-7071110a]{height:323px;overflow-y:auto}.bind-store-body .select-tree-wrap .el-tree[data-v-7071110a]{width:309px;height:323px;overflow-x:auto}.bind-store-body .select-tree-wrap .el-tree .custom-tree-node[data-v-7071110a]{-webkit-box-flex:1;-ms-flex:1;flex:1;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;font-size:14px;padding-right:8px}.daily-store-select[data-v-1f8586f8]{position:relative;width:331px;min-height:398px;margin:20px 0 0 0;padding:10px;border:1px solid #e4e7ed}.daily-store-select .define-search-select .el-select-dropdown__wrap[data-v-1f8586f8]{max-height:343px}.daily-store-select .define-search-select .el-checkbox-group[data-v-1f8586f8]{overflow-x:auto;height:338px}.daily-store-select .define-search-select .el-checkbox-group ul[data-v-1f8586f8]{height:100%}.daily-store-select .define-search-select .el-checkbox-group ul li[data-v-1f8586f8]{overflow:unset;text-overflow:unset}.store-auth-range[data-v-b34621e2]{display:block;-webkit-transition:all .3s;transition:all .3s}.store-auth-range.show-range .common-mask[data-v-b34621e2],.store-auth-range.show-range[data-v-b34621e2]{display:block}.store-auth-range.show-range .bind-body[data-v-b34621e2]{right:0}.store-auth-range.hide-range .common-mask[data-v-b34621e2]{display:none;opacity:0}.store-auth-range.hide-range .bind-body[data-v-b34621e2]{right:-620px}.common-mask[data-v-b34621e2]{left:0;opacity:.5;background:#000;z-index:1000}.bind-body[data-v-b34621e2],.common-mask[data-v-b34621e2]{position:fixed;top:0;bottom:0;right:0;-webkit-transition:all .3s;transition:all .3s}.bind-body[data-v-b34621e2]{width:604px;padding:20px;z-index:5000;overflow-y:auto;background:#fff}.my-customer-wrap[data-v-6a673ce6]{height:100%}.my-customer-wrap .navwrap[data-v-6a673ce6]{padding-left:0;background:#f0f2f5}.my-customer-wrap .apps-content-right[data-v-6a673ce6]{width:100%;padding:20px}.my-customer-wrap .apps-content-right .admin-list-wrap .add-admin-btn[data-v-6a673ce6]{width:114px;height:32px;line-height:32px;text-align:center;border:1px solid #e4e7ed}.my-customer-wrap .apps-content-right .store-item-content[data-v-6a673ce6]{position:relative;display:inline-block;vertical-align:middle;width:302px;height:32px;line-height:32px;overflow:hidden;white-space:nowrap;border-radius:2px;border:1px solid #c4c6cf;cursor:pointer;-webkit-box-sizing:border-box;box-sizing:border-box}.my-customer-wrap .apps-content-right .store-item-content.admin-select[data-v-6a673ce6]{border:none}.my-customer-wrap .apps-content-right .store-item-content .el-select__tags[data-v-6a673ce6]{max-width:348px;white-space:nowrap;overflow:hidden}
\ 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-0242a426.ac116cab.css rel=prefetch><link href=css/chunk-0e261f8e.43d31ae2.css rel=prefetch><link href=css/chunk-179a3874.dc84d9e8.css rel=prefetch><link href=css/chunk-22274e8e.060dcf46.css rel=prefetch><link href=css/chunk-2308777a.77b3a9c1.css rel=prefetch><link href=css/chunk-286e5feb.f909098e.css rel=prefetch><link href=css/chunk-2966b566.cb15c587.css rel=prefetch><link href=css/chunk-33fdfb11.68aa2400.css rel=prefetch><link href=css/chunk-3feed9c7.9c429f6a.css rel=prefetch><link href=css/chunk-455ce796.b1d8aa7b.css rel=prefetch><link href=css/chunk-48391fe3.4aa421f5.css rel=prefetch><link href=css/chunk-4b3bcf32.866e420f.css rel=prefetch><link href=css/chunk-4badec06.03bda020.css rel=prefetch><link href=css/chunk-55339910.943c31ad.css rel=prefetch><link href=css/chunk-55cc2c59.c7e70006.css rel=prefetch><link href=css/chunk-5f5b6428.25690855.css rel=prefetch><link href=css/chunk-60db2d5e.8657539c.css rel=prefetch><link href=css/chunk-63077e53.30f8c618.css rel=prefetch><link href=css/chunk-6fb5055b.ccd0d92d.css rel=prefetch><link href=css/chunk-71d9e72b.d52f2c12.css rel=prefetch><link href=css/chunk-79b0d838.eee69b00.css rel=prefetch><link href=css/chunk-7ebef5b3.eedd98c6.css rel=prefetch><link href=css/chunk-872ed9ae.1bff2b51.css rel=prefetch><link href=css/chunk-a01687d6.7d03d591.css rel=prefetch><link href=css/chunk-ab6d529c.a005521a.css rel=prefetch><link href=css/chunk-eaa74a32.0c73c4d7.css rel=prefetch><link href=css/chunk-f2cea2de.8570a767.css rel=prefetch><link href=css/chunk-fcf99900.77b98ef5.css rel=prefetch><link href=js/chunk-0242a426.b988c32a.js rel=prefetch><link href=js/chunk-0e261f8e.3423cbbd.js rel=prefetch><link href=js/chunk-179a3874.759cb20d.js rel=prefetch><link href=js/chunk-22274e8e.70e639ee.js rel=prefetch><link href=js/chunk-2308777a.03a2790d.js rel=prefetch><link href=js/chunk-286e5feb.bb070c15.js rel=prefetch><link href=js/chunk-2966b566.b18fffe4.js rel=prefetch><link href=js/chunk-33fdfb11.5b5a96d0.js rel=prefetch><link href=js/chunk-3feed9c7.f1e388ea.js rel=prefetch><link href=js/chunk-455ce796.0e765e22.js rel=prefetch><link href=js/chunk-48391fe3.9bbfca3d.js rel=prefetch><link href=js/chunk-4b3bcf32.b2ff1a0d.js rel=prefetch><link href=js/chunk-4badec06.b776832f.js rel=prefetch><link href=js/chunk-55339910.7fe2ced0.js rel=prefetch><link href=js/chunk-55cc2c59.707a2891.js rel=prefetch><link href=js/chunk-5f5b6428.4c60cdfc.js rel=prefetch><link href=js/chunk-60db2d5e.e34c00d7.js rel=prefetch><link href=js/chunk-63077e53.f4ad7b21.js rel=prefetch><link href=js/chunk-6fb5055b.d46de816.js rel=prefetch><link href=js/chunk-71d9e72b.6c820ba8.js rel=prefetch><link href=js/chunk-79b0d838.f2f0b7d5.js rel=prefetch><link href=js/chunk-7ebef5b3.1aee1940.js rel=prefetch><link href=js/chunk-872ed9ae.eb64afa4.js rel=prefetch><link href=js/chunk-a01687d6.10e3d16e.js rel=prefetch><link href=js/chunk-ab6d529c.f6d19047.js rel=prefetch><link href=js/chunk-eaa74a32.164b5c17.js rel=prefetch><link href=js/chunk-f2cea2de.f6435ef6.js rel=prefetch><link href=js/chunk-fcf99900.77c291c5.js rel=prefetch><link href=css/app.dc6afa5f.css rel=preload as=style><link href=css/chunk-vendors.635bc84a.css rel=preload as=style><link href=js/app.e32098b6.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.dc6afa5f.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.e32098b6.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-0242a426.ac116cab.css rel=prefetch><link href=css/chunk-0e261f8e.43d31ae2.css rel=prefetch><link href=css/chunk-22274e8e.060dcf46.css rel=prefetch><link href=css/chunk-2308777a.77b3a9c1.css rel=prefetch><link href=css/chunk-286e5feb.f909098e.css rel=prefetch><link href=css/chunk-2966b566.cb15c587.css rel=prefetch><link href=css/chunk-33fdfb11.68aa2400.css rel=prefetch><link href=css/chunk-3feed9c7.9c429f6a.css rel=prefetch><link href=css/chunk-455ce796.b1d8aa7b.css rel=prefetch><link href=css/chunk-48391fe3.4aa421f5.css rel=prefetch><link href=css/chunk-4b3bcf32.866e420f.css rel=prefetch><link href=css/chunk-4badec06.03bda020.css rel=prefetch><link href=css/chunk-55339910.943c31ad.css rel=prefetch><link href=css/chunk-55cc2c59.c7e70006.css rel=prefetch><link href=css/chunk-5f5b6428.25690855.css rel=prefetch><link href=css/chunk-60db2d5e.8657539c.css rel=prefetch><link href=css/chunk-63077e53.30f8c618.css rel=prefetch><link href=css/chunk-6c2eda07.895238e0.css rel=prefetch><link href=css/chunk-6fb5055b.ccd0d92d.css rel=prefetch><link href=css/chunk-71d9e72b.d52f2c12.css rel=prefetch><link href=css/chunk-79b0d838.eee69b00.css rel=prefetch><link href=css/chunk-7ebef5b3.eedd98c6.css rel=prefetch><link href=css/chunk-872ed9ae.1bff2b51.css rel=prefetch><link href=css/chunk-a01687d6.7d03d591.css rel=prefetch><link href=css/chunk-ab6d529c.a005521a.css rel=prefetch><link href=css/chunk-eaa74a32.0c73c4d7.css rel=prefetch><link href=css/chunk-f2cea2de.8570a767.css rel=prefetch><link href=css/chunk-fcf99900.77b98ef5.css rel=prefetch><link href=js/chunk-0242a426.ae07c758.js rel=prefetch><link href=js/chunk-0e261f8e.afea68bc.js rel=prefetch><link href=js/chunk-22274e8e.15736c32.js rel=prefetch><link href=js/chunk-2308777a.8d1a528e.js rel=prefetch><link href=js/chunk-286e5feb.64db64a0.js rel=prefetch><link href=js/chunk-2966b566.b6b16bb3.js rel=prefetch><link href=js/chunk-33fdfb11.d73cc037.js rel=prefetch><link href=js/chunk-3feed9c7.6734b2de.js rel=prefetch><link href=js/chunk-455ce796.c004c241.js rel=prefetch><link href=js/chunk-48391fe3.2ed40ff7.js rel=prefetch><link href=js/chunk-4b3bcf32.576556bc.js rel=prefetch><link href=js/chunk-4badec06.1aa2db84.js rel=prefetch><link href=js/chunk-55339910.b3966479.js rel=prefetch><link href=js/chunk-55cc2c59.92b2c7d3.js rel=prefetch><link href=js/chunk-5f5b6428.575cacb3.js rel=prefetch><link href=js/chunk-60db2d5e.3cc2f1b0.js rel=prefetch><link href=js/chunk-63077e53.47b600a7.js rel=prefetch><link href=js/chunk-6c2eda07.93abc754.js rel=prefetch><link href=js/chunk-6fb5055b.841a0818.js rel=prefetch><link href=js/chunk-71d9e72b.f6cbfc57.js rel=prefetch><link href=js/chunk-79b0d838.9805521d.js rel=prefetch><link href=js/chunk-7ebef5b3.d59e6025.js rel=prefetch><link href=js/chunk-872ed9ae.6c413584.js rel=prefetch><link href=js/chunk-a01687d6.7c4597bf.js rel=prefetch><link href=js/chunk-ab6d529c.d75df545.js rel=prefetch><link href=js/chunk-eaa74a32.b68843ab.js rel=prefetch><link href=js/chunk-f2cea2de.7a62d87e.js rel=prefetch><link href=js/chunk-fcf99900.a9437183.js rel=prefetch><link href=css/app.dc6afa5f.css rel=preload as=style><link href=css/chunk-vendors.635bc84a.css rel=preload as=style><link href=js/app.b697a89c.js rel=preload as=script><link href=js/chunk-vendors.4dbffdb2.js rel=preload as=script><link href=css/chunk-vendors.635bc84a.css rel=stylesheet><link href=css/app.dc6afa5f.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.4dbffdb2.js></script><script src=js/app.b697a89c.js></script></body></html>
\ No newline at end of file
(function(e){function n(n){for(var r,c,u=n[0],i=n[1],s=n[2],h=0,d=[];h<u.length;h++)c=u[h],Object.prototype.hasOwnProperty.call(a,c)&&a[c]&&d.push(a[c][0]),a[c]=0;for(r in i)Object.prototype.hasOwnProperty.call(i,r)&&(e[r]=i[r]);f&&f(n);while(d.length)d.shift()();return o.push.apply(o,s||[]),t()}function t(){for(var e,n=0;n<o.length;n++){for(var t=o[n],r=!0,c=1;c<t.length;c++){var u=t[c];0!==a[u]&&(r=!1)}r&&(o.splice(n--,1),e=i(i.s=t[0]))}return e}var r={},c={app:0},a={app:0},o=[];function u(e){return i.p+"js/"+({}[e]||e)+"."+{"chunk-0242a426":"ae07c758","chunk-0e261f8e":"afea68bc","chunk-6c2eda07":"93abc754","chunk-f2cea2de":"7a62d87e","chunk-22274e8e":"15736c32","chunk-2308777a":"8d1a528e","chunk-286e5feb":"64db64a0","chunk-2966b566":"b6b16bb3","chunk-33fdfb11":"d73cc037","chunk-3feed9c7":"6734b2de","chunk-455ce796":"c004c241","chunk-48391fe3":"2ed40ff7","chunk-4b3bcf32":"576556bc","chunk-4badec06":"1aa2db84","chunk-55339910":"b3966479","chunk-872ed9ae":"6c413584","chunk-55cc2c59":"92b2c7d3","chunk-5f5b6428":"575cacb3","chunk-60db2d5e":"3cc2f1b0","chunk-63077e53":"47b600a7","chunk-6fb5055b":"841a0818","chunk-71d9e72b":"f6cbfc57","chunk-79b0d838":"9805521d","chunk-7ebef5b3":"d59e6025","chunk-a01687d6":"7c4597bf","chunk-ab6d529c":"d75df545","chunk-eaa74a32":"b68843ab","chunk-fcf99900":"a9437183"}[e]+".js"}function i(n){if(r[n])return r[n].exports;var t=r[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-0242a426":1,"chunk-0e261f8e":1,"chunk-6c2eda07":1,"chunk-f2cea2de":1,"chunk-22274e8e":1,"chunk-2308777a":1,"chunk-286e5feb":1,"chunk-2966b566":1,"chunk-33fdfb11":1,"chunk-3feed9c7":1,"chunk-455ce796":1,"chunk-48391fe3":1,"chunk-4b3bcf32":1,"chunk-4badec06":1,"chunk-55339910":1,"chunk-872ed9ae":1,"chunk-55cc2c59":1,"chunk-5f5b6428":1,"chunk-60db2d5e":1,"chunk-63077e53":1,"chunk-6fb5055b":1,"chunk-71d9e72b":1,"chunk-79b0d838":1,"chunk-7ebef5b3":1,"chunk-a01687d6":1,"chunk-ab6d529c":1,"chunk-eaa74a32":1,"chunk-fcf99900":1};c[e]?n.push(c[e]):0!==c[e]&&t[e]&&n.push(c[e]=new Promise((function(n,t){for(var r="css/"+({}[e]||e)+"."+{"chunk-0242a426":"ac116cab","chunk-0e261f8e":"43d31ae2","chunk-6c2eda07":"895238e0","chunk-f2cea2de":"8570a767","chunk-22274e8e":"060dcf46","chunk-2308777a":"77b3a9c1","chunk-286e5feb":"f909098e","chunk-2966b566":"cb15c587","chunk-33fdfb11":"68aa2400","chunk-3feed9c7":"9c429f6a","chunk-455ce796":"b1d8aa7b","chunk-48391fe3":"4aa421f5","chunk-4b3bcf32":"866e420f","chunk-4badec06":"03bda020","chunk-55339910":"943c31ad","chunk-872ed9ae":"1bff2b51","chunk-55cc2c59":"c7e70006","chunk-5f5b6428":"25690855","chunk-60db2d5e":"8657539c","chunk-63077e53":"30f8c618","chunk-6fb5055b":"ccd0d92d","chunk-71d9e72b":"d52f2c12","chunk-79b0d838":"eee69b00","chunk-7ebef5b3":"eedd98c6","chunk-a01687d6":"7d03d591","chunk-ab6d529c":"a005521a","chunk-eaa74a32":"0c73c4d7","chunk-fcf99900":"77b98ef5"}[e]+".css",a=i.p+r,o=document.getElementsByTagName("link"),u=0;u<o.length;u++){var s=o[u],h=s.getAttribute("data-href")||s.getAttribute("href");if("stylesheet"===s.rel&&(h===r||h===a))return n()}var d=document.getElementsByTagName("style");for(u=0;u<d.length;u++){s=d[u],h=s.getAttribute("data-href");if(h===r||h===a)return n()}var f=document.createElement("link");f.rel="stylesheet",f.type="text/css",f.onload=n,f.onerror=function(n){var r=n&&n.target&&n.target.src||a,o=new Error("Loading CSS chunk "+e+" failed.\n("+r+")");o.code="CSS_CHUNK_LOAD_FAILED",o.request=r,delete c[e],f.parentNode.removeChild(f),t(o)},f.href=a;var p=document.getElementsByTagName("head")[0];p.appendChild(f)})).then((function(){c[e]=0})));var r=a[e];if(0!==r)if(r)n.push(r[2]);else{var o=new Promise((function(n,t){r=a[e]=[n,t]}));n.push(r[2]=o);var s,h=document.createElement("script");h.charset="utf-8",h.timeout=120,i.nc&&h.setAttribute("nonce",i.nc),h.src=u(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 r=n&&("load"===n.type?"missing":n.type),c=n&&n.target&&n.target.src;d.message="Loading chunk "+e+" failed.\n("+r+": "+c+")",d.name="ChunkLoadError",d.type=r,d.request=c,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=r,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 r in e)i.d(t,r,function(n){return e[n]}.bind(null,r));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 console.error(e),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;o.push([0,"chunk-vendors"]),t()})({0:function(e,n,t){t("db4d"),e.exports=t("56d7")},"1a5d":function(e,n,t){var r={"./business/audit-log.vue":["0912","chunk-4b3bcf32"],"./business/auth-merchant.vue":["56b3","chunk-eaa74a32"],"./business/contacts.vue":["a269","chunk-7ebef5b3"],"./business/index.vue":["50c8","chunk-0242a426"],"./business/new-auth-merchant.vue":["62a7","chunk-0e261f8e","chunk-f2cea2de"],"./business/sync-log.vue":["b155","chunk-5f5b6428"],"./enterprise/admin-list.vue":["db80","chunk-71d9e72b"],"./enterprise/admin-list/role-list.vue":["0082","chunk-60db2d5e"],"./enterprise/edit-admin.vue":["7dc6","chunk-0e261f8e","chunk-6c2eda07"],"./enterprise/edit-role.vue":["2249","chunk-33fdfb11"],"./enterprise/edit-role/menu-tree.vue":["a088","chunk-48391fe3"],"./enterprise/edit-store-role.vue":["a960","chunk-22274e8e"],"./enterprise/enterprise-set.vue":["b735","chunk-a01687d6"],"./enterprise/index.vue":["ea02","chunk-4badec06","chunk-872ed9ae"],"./enterprise/store-admin-list.vue":["2058","chunk-455ce796"],"./enterprise/super-admin.vue":["9b74","chunk-63077e53"],"./error-page/403.vue":["5140","chunk-3feed9c7"],"./error-page/404.vue":["1db4","chunk-79b0d838"],"./error-page/500.vue":["721c","chunk-fcf99900"],"./error-page/gic-error.vue":["442d","chunk-2966b566"],"./error-page/index.vue":["4cf1","chunk-6fb5055b"],"./index/index.vue":["37f9","chunk-55cc2c59"],"./login/index.vue":["9ed6","chunk-286e5feb"],"./review-center/index.vue":["2cad","chunk-4badec06","chunk-55339910"],"./review-center/reviewed.vue":["dacc","chunk-ab6d529c"],"./review-center/unreview.vue":["1005","chunk-2308777a"]};function c(e){if(!t.o(r,e))return Promise.resolve().then((function(){var n=new Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n}));var n=r[e],c=n[0];return Promise.all(n.slice(1).map(t.e)).then((function(){return t(c)}))}c.keys=function(){return Object.keys(r)},c.id="1a5d",e.exports=c},"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 r=t("8bbf"),c=t.n(r),a=t("8c4f"),o=t("cebe"),u=t.n(o),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")],1)},d=[],f={name:"App"},p=f,l=t("2877"),b=Object(l["a"])(p,h,d,!1,null,null,null),m=b.exports,g=t("e2b2"),k=t.n(g),v=function(e){t.e("chunk-6fb5055b").then(t.bind(null,"4cf1")).then((function(n){e(n)}))},w=[{path:"/",name:"/",redirect:"login"},{path:"/login",name:"登录",component:k()("login","index")},{path:"/index",name:"index",component:k()("index","index")},{path:"/contacts",name:"通讯录",redirect:"contactsList",component:k()("business","index"),children:[{path:"/contactsList",name:"通讯录",component:k()("business","contacts")},{path:"/syncLog",name:"通讯录日志",component:k()("business","sync-log")},{path:"/authMerchant",name:"授权商户",component:k()("business","auth-merchant")},{path:"/newAuthMerchant",name:"新增授权",component:k()("business","new-auth-merchant")},{path:"/auditLog",name:"审核日志",component:k()("business","audit-log")}]},{path:"/reviewCenter",name:"审核中心",redirect:"unreview",component:k()("review-center","index"),children:[{path:"/reviewed",name:"已审核",component:k()("review-center","reviewed")},{path:"/unreview",name:"未审核",component:k()("review-center","unreview")}]},{path:"/enterprise",name:"企业设置",redirect:"enterpriseSet",component:k()("enterprise","index"),children:[{path:"/enterpriseSet",name:"企业信息",component:k()("enterprise","enterprise-set")},{path:"/admin-list",name:"管理员",component:k()("enterprise","admin-list")},{path:"/edit-role",name:"新建、编辑角色",component:k()("enterprise","edit-role")},{path:"/edit-admin",name:"新建编辑管理员",component:k()("enterprise","edit-admin")},{path:"/store-admin-list",name:"门店角色",component:k()("enterprise","store-admin-list")},{path:"/edit-store-role",name:"编辑门店角色",component:k()("enterprise","edit-store-role")},{path:"/superAdmin",name:"超级管理员",component:k()("enterprise","super-admin")}]},{path:"/gic-error",name:"gic跳转失败页",component:k()("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){e=10===e.toString().length?1e3*e:e;var t=new Date(e),r={"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 c in/(Y+)/.test(n)&&(n=n.replace(RegExp.$1,(t.getFullYear()+"").substr(4-RegExp.$1.length))),r)new RegExp("("+c+")").test(n)&&(n=n.replace(RegExp.$1,1===RegExp.$1.length?r[c]:("00"+r[c]).substr((""+r[c]).length)));return n}}),O=function(e){if(e){var n=new Date(e),t=n.getMonth()+1,r=n.getDate()<10?"0"+n.getDate():n.getDate(),c=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(c,"-").concat(r," ").concat(a,":").concat(o,":").concat(u)}},D=function(e){if(e){var n=new Date(e),t=n.getMonth()+1,r=n.getDate()<10?"0"+n.getDate():n.getDate(),c=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(c,".").concat(r," ").concat(a,":").concat(o,":").concat(u)}},j=function(e){if(e){var n=new Date(e),t=n.getMonth()+1,r=t<10?"0"+t:t;return"".concat(n.getFullYear(),"-").concat(r)}},A=function(e){if(e){var n=new Date(e),t=n.getMonth()+1,r=n.getDate()<10?"0"+n.getDate():n.getDate(),c=t<10?"0"+t:t;return"".concat(n.getFullYear(),"-").concat(c,"-").concat(r)}},E=function(e){if(e){var n=new Date(e),t=n.getHours()<10?"0"+n.getHours():n.getHours(),r=n.getMinutes()<10?"0"+n.getMinutes():n.getMinutes(),c=n.getSeconds()<10?"0"+n.getSeconds():n.getSeconds();return"".concat(t,":").concat(r,":").concat(c)}},T=function(e){if(e){var n=new Date,t=new Date(Number(e)).getTime()-n.getTime();if(t<0)return"";var r=Math.floor(t/864e5),c=t%864e5,a=Math.floor(c/36e5),o=c%36e5,u=Math.floor(o/6e4);return"".concat(r,"天").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),r=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,c=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(r,":").concat(c,":").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 r=$.some((function(n){return n.indexOf("/#")>=0?n=="/#".concat(e.path):n==e.path}));if(r)return t();Y.some((function(n){return n==e.path}))||0==$.length?(window.location.href="".concat(R["c"],"/haoban-4/#/gic-error"),window.location.reload()):t($[0])}function K(e){return!!U[e]}var V=function(e){var n=e.whiteRoute,t=e.router,r=e.routes,c=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(r)&&(Y=J(r)),t.beforeEach(W),"function"==typeof c&&c();case 8:case"end":return e.stop()}}),e)})))};c.a.use(a["a"]),c.a.use(s.a),u.a.defaults.withCredentials=!0,c.a.prototype.axios=u.a,c.a.prototype.$itemPerm=K,c.a.prototype.$itemCode=R["a"],c.a.config.devtools=!1,c.a.config.productionTip=!1,Object.keys(_).forEach((function(e){c.a.filter(e,_[e])})),V({whiteRoute:["/login","/contactsList","/gic-error","/403","/404","/500"],router:M,routes:w,createApp:function(){new c.a({router:M,render:function(e){return e(m)}}).$mount("#app")}})},"8bbf":function(e,n){e.exports=Vue},b775:function(e,n,t){"use strict";t.d(n,"a",(function(){return s}));var r=t("cebe"),c=t.n(r),a=t("4328"),o=t.n(a),u=t("5c96"),i=t("f121");c.a.defaults.baseURL=i["c"],c.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){c()(t).then((function(r){var c=r.data;return c.code==i["b"]?(window.location.href="".concat(i["c"],"/haoban-4/#/login"),void window.location.reload()):t.useIntercept&&c.code!=i["d"]?(Object(u["Message"])({message:c.message||"未知错误",type:"warning"}),n(c)):void e(c)})).catch((function(e){var t=e.response||{},r=t.data||{};Object(u["Message"])({message:r.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(r){t("1a5d")("./"+e+"/"+n+".vue").then((function(e){r(e)}))}}},f121:function(e,n,t){"use strict";function r(){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 c})),t.d(n,"d",(function(){return a})),t.d(n,"b",(function(){return o})),t.d(n,"a",(function(){return u}));var c=r(),a="0000",o="0003",u={batchAudit:"batchAudit"}}});
\ No newline at end of file
(function(e){function n(n){for(var r,c,u=n[0],i=n[1],s=n[2],f=0,d=[];f<u.length;f++)c=u[f],Object.prototype.hasOwnProperty.call(a,c)&&a[c]&&d.push(a[c][0]),a[c]=0;for(r in i)Object.prototype.hasOwnProperty.call(i,r)&&(e[r]=i[r]);h&&h(n);while(d.length)d.shift()();return o.push.apply(o,s||[]),t()}function t(){for(var e,n=0;n<o.length;n++){for(var t=o[n],r=!0,c=1;c<t.length;c++){var u=t[c];0!==a[u]&&(r=!1)}r&&(o.splice(n--,1),e=i(i.s=t[0]))}return e}var r={},c={app:0},a={app:0},o=[];function u(e){return i.p+"js/"+({}[e]||e)+"."+{"chunk-0242a426":"b988c32a","chunk-0e261f8e":"3423cbbd","chunk-179a3874":"759cb20d","chunk-f2cea2de":"f6435ef6","chunk-22274e8e":"70e639ee","chunk-2308777a":"03a2790d","chunk-286e5feb":"bb070c15","chunk-2966b566":"b18fffe4","chunk-33fdfb11":"5b5a96d0","chunk-3feed9c7":"f1e388ea","chunk-455ce796":"0e765e22","chunk-48391fe3":"9bbfca3d","chunk-4b3bcf32":"b2ff1a0d","chunk-4badec06":"b776832f","chunk-55339910":"7fe2ced0","chunk-872ed9ae":"eb64afa4","chunk-55cc2c59":"707a2891","chunk-5f5b6428":"4c60cdfc","chunk-60db2d5e":"e34c00d7","chunk-63077e53":"f4ad7b21","chunk-6fb5055b":"d46de816","chunk-71d9e72b":"6c820ba8","chunk-79b0d838":"f2f0b7d5","chunk-7ebef5b3":"1aee1940","chunk-a01687d6":"10e3d16e","chunk-ab6d529c":"f6d19047","chunk-eaa74a32":"164b5c17","chunk-fcf99900":"77c291c5"}[e]+".js"}function i(n){if(r[n])return r[n].exports;var t=r[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-0242a426":1,"chunk-0e261f8e":1,"chunk-179a3874":1,"chunk-f2cea2de":1,"chunk-22274e8e":1,"chunk-2308777a":1,"chunk-286e5feb":1,"chunk-2966b566":1,"chunk-33fdfb11":1,"chunk-3feed9c7":1,"chunk-455ce796":1,"chunk-48391fe3":1,"chunk-4b3bcf32":1,"chunk-4badec06":1,"chunk-55339910":1,"chunk-872ed9ae":1,"chunk-55cc2c59":1,"chunk-5f5b6428":1,"chunk-60db2d5e":1,"chunk-63077e53":1,"chunk-6fb5055b":1,"chunk-71d9e72b":1,"chunk-79b0d838":1,"chunk-7ebef5b3":1,"chunk-a01687d6":1,"chunk-ab6d529c":1,"chunk-eaa74a32":1,"chunk-fcf99900":1};c[e]?n.push(c[e]):0!==c[e]&&t[e]&&n.push(c[e]=new Promise((function(n,t){for(var r="css/"+({}[e]||e)+"."+{"chunk-0242a426":"ac116cab","chunk-0e261f8e":"43d31ae2","chunk-179a3874":"dc84d9e8","chunk-f2cea2de":"8570a767","chunk-22274e8e":"060dcf46","chunk-2308777a":"77b3a9c1","chunk-286e5feb":"f909098e","chunk-2966b566":"cb15c587","chunk-33fdfb11":"68aa2400","chunk-3feed9c7":"9c429f6a","chunk-455ce796":"b1d8aa7b","chunk-48391fe3":"4aa421f5","chunk-4b3bcf32":"866e420f","chunk-4badec06":"03bda020","chunk-55339910":"943c31ad","chunk-872ed9ae":"1bff2b51","chunk-55cc2c59":"c7e70006","chunk-5f5b6428":"25690855","chunk-60db2d5e":"8657539c","chunk-63077e53":"30f8c618","chunk-6fb5055b":"ccd0d92d","chunk-71d9e72b":"d52f2c12","chunk-79b0d838":"eee69b00","chunk-7ebef5b3":"eedd98c6","chunk-a01687d6":"7d03d591","chunk-ab6d529c":"a005521a","chunk-eaa74a32":"0c73c4d7","chunk-fcf99900":"77b98ef5"}[e]+".css",a=i.p+r,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===r||f===a))return n()}var d=document.getElementsByTagName("style");for(u=0;u<d.length;u++){s=d[u],f=s.getAttribute("data-href");if(f===r||f===a)return n()}var h=document.createElement("link");h.rel="stylesheet",h.type="text/css",h.onload=n,h.onerror=function(n){var r=n&&n.target&&n.target.src||a,o=new Error("Loading CSS chunk "+e+" failed.\n("+r+")");o.code="CSS_CHUNK_LOAD_FAILED",o.request=r,delete c[e],h.parentNode.removeChild(h),t(o)},h.href=a;var p=document.getElementsByTagName("head")[0];p.appendChild(h)})).then((function(){c[e]=0})));var r=a[e];if(0!==r)if(r)n.push(r[2]);else{var o=new Promise((function(n,t){r=a[e]=[n,t]}));n.push(r[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 d=new Error;s=function(n){f.onerror=f.onload=null,clearTimeout(h);var t=a[e];if(0!==t){if(t){var r=n&&("load"===n.type?"missing":n.type),c=n&&n.target&&n.target.src;d.message="Loading chunk "+e+" failed.\n("+r+": "+c+")",d.name="ChunkLoadError",d.type=r,d.request=c,t[1](d)}a[e]=void 0}};var h=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=r,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 r in e)i.d(t,r,function(n){return e[n]}.bind(null,r));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 d=0;d<s.length;d++)n(s[d]);var h=f;o.push([0,"chunk-vendors"]),t()})({0:function(e,n,t){t("db4d"),e.exports=t("56d7")},"1a5d":function(e,n,t){var r={"./business/audit-log.vue":["0912","chunk-4b3bcf32"],"./business/auth-merchant.vue":["56b3","chunk-eaa74a32"],"./business/contacts.vue":["a269","chunk-7ebef5b3"],"./business/index.vue":["50c8","chunk-0242a426"],"./business/new-auth-merchant.vue":["62a7","chunk-0e261f8e","chunk-f2cea2de"],"./business/sync-log.vue":["b155","chunk-5f5b6428"],"./enterprise/admin-list.vue":["db80","chunk-71d9e72b"],"./enterprise/admin-list/role-list.vue":["0082","chunk-60db2d5e"],"./enterprise/edit-admin.vue":["7dc6","chunk-0e261f8e","chunk-179a3874"],"./enterprise/edit-role.vue":["2249","chunk-33fdfb11"],"./enterprise/edit-role/menu-tree.vue":["a088","chunk-48391fe3"],"./enterprise/edit-store-role.vue":["a960","chunk-22274e8e"],"./enterprise/enterprise-set.vue":["b735","chunk-a01687d6"],"./enterprise/index.vue":["ea02","chunk-4badec06","chunk-872ed9ae"],"./enterprise/store-admin-list.vue":["2058","chunk-455ce796"],"./enterprise/super-admin.vue":["9b74","chunk-63077e53"],"./error-page/403.vue":["5140","chunk-3feed9c7"],"./error-page/404.vue":["1db4","chunk-79b0d838"],"./error-page/500.vue":["721c","chunk-fcf99900"],"./error-page/gic-error.vue":["442d","chunk-2966b566"],"./error-page/index.vue":["4cf1","chunk-6fb5055b"],"./index/index.vue":["37f9","chunk-55cc2c59"],"./login/index.vue":["9ed6","chunk-286e5feb"],"./review-center/index.vue":["2cad","chunk-4badec06","chunk-55339910"],"./review-center/reviewed.vue":["dacc","chunk-ab6d529c"],"./review-center/unreview.vue":["1005","chunk-2308777a"]};function c(e){if(!t.o(r,e))return Promise.resolve().then((function(){var n=new Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n}));var n=r[e],c=n[0];return Promise.all(n.slice(1).map(t.e)).then((function(){return t(c)}))}c.keys=function(){return Object.keys(r)},c.id="1a5d",e.exports=c},"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 r=t("8bbf"),c=t.n(r),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)},d=[],h={name:"App"},p=h,l=t("2877"),b=Object(l["a"])(p,f,d,!1,null,null,null),m=b.exports,g=t("e2b2"),k=t.n(g),v=function(e){t.e("chunk-6fb5055b").then(t.bind(null,"4cf1")).then((function(n){e(n)}))},w=[{path:"/",name:"/",redirect:"login"},{path:"/login",name:"登录",component:k()("login","index")},{path:"/index",name:"index",component:k()("index","index")},{path:"/contacts",name:"通讯录",redirect:"contactsList",component:k()("business","index"),children:[{path:"/contactsList",name:"通讯录",component:k()("business","contacts")},{path:"/syncLog",name:"通讯录日志",component:k()("business","sync-log")},{path:"/authMerchant",name:"授权商户",component:k()("business","auth-merchant")},{path:"/newAuthMerchant",name:"新增授权",component:k()("business","new-auth-merchant")},{path:"/auditLog",name:"审核日志",component:k()("business","audit-log")}]},{path:"/reviewCenter",name:"审核中心",redirect:"unreview",component:k()("review-center","index"),children:[{path:"/reviewed",name:"已审核",component:k()("review-center","reviewed")},{path:"/unreview",name:"未审核",component:k()("review-center","unreview")}]},{path:"/enterprise",name:"企业设置",redirect:"enterpriseSet",component:k()("enterprise","index"),children:[{path:"/enterpriseSet",name:"企业信息",component:k()("enterprise","enterprise-set")},{path:"/admin-list",name:"管理员",component:k()("enterprise","admin-list")},{path:"/edit-role",name:"新建、编辑角色",component:k()("enterprise","edit-role")},{path:"/edit-admin",name:"新建编辑管理员",component:k()("enterprise","edit-admin")},{path:"/store-admin-list",name:"门店角色",component:k()("enterprise","store-admin-list")},{path:"/edit-store-role",name:"编辑门店角色",component:k()("enterprise","edit-store-role")},{path:"/superAdmin",name:"超级管理员",component:k()("enterprise","super-admin")}]},{path:"/gic-error",name:"gic跳转失败页",component:k()("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){e=10===e.toString().length?1e3*e:e;var t=new Date(e),r={"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 c in/(Y+)/.test(n)&&(n=n.replace(RegExp.$1,(t.getFullYear()+"").substr(4-RegExp.$1.length))),r)new RegExp("("+c+")").test(n)&&(n=n.replace(RegExp.$1,1===RegExp.$1.length?r[c]:("00"+r[c]).substr((""+r[c]).length)));return n}}),O=function(e){if(e){var n=new Date(e),t=n.getMonth()+1,r=n.getDate()<10?"0"+n.getDate():n.getDate(),c=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(c,"-").concat(r," ").concat(a,":").concat(o,":").concat(u)}},D=function(e){if(e){var n=new Date(e),t=n.getMonth()+1,r=n.getDate()<10?"0"+n.getDate():n.getDate(),c=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(c,".").concat(r," ").concat(a,":").concat(o,":").concat(u)}},j=function(e){if(e){var n=new Date(e),t=n.getMonth()+1,r=t<10?"0"+t:t;return"".concat(n.getFullYear(),"-").concat(r)}},A=function(e){if(e){var n=new Date(e),t=n.getMonth()+1,r=n.getDate()<10?"0"+n.getDate():n.getDate(),c=t<10?"0"+t:t;return"".concat(n.getFullYear(),"-").concat(c,"-").concat(r)}},E=function(e){if(e){var n=new Date(e),t=n.getHours()<10?"0"+n.getHours():n.getHours(),r=n.getMinutes()<10?"0"+n.getMinutes():n.getMinutes(),c=n.getSeconds()<10?"0"+n.getSeconds():n.getSeconds();return"".concat(t,":").concat(r,":").concat(c)}},T=function(e){if(e){var n=new Date,t=new Date(Number(e)).getTime()-n.getTime();if(t<0)return"";var r=Math.floor(t/864e5),c=t%864e5,a=Math.floor(c/36e5),o=c%36e5,u=Math.floor(o/6e4);return"".concat(r,"天").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),r=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,c=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(r,":").concat(c,":").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 r=$.some((function(n){return n.indexOf("/#")>=0?n=="/#".concat(e.path):n==e.path}));if(r)return t();Y.some((function(n){return n==e.path}))||0==$.length?(window.location.href="".concat(R["c"],"/haoban-4/#/gic-error"),window.location.reload()):t($[0])}function K(e){return!!U[e]}var V=function(e){var n=e.whiteRoute,t=e.router,r=e.routes,c=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(r)&&(Y=J(r)),t.beforeEach(W),"function"==typeof c&&c();case 8:case"end":return e.stop()}}),e)})))};c.a.use(a["a"]),c.a.use(s.a),u.a.defaults.withCredentials=!0,c.a.prototype.axios=u.a,c.a.prototype.$itemPerm=K,c.a.prototype.$itemCode=R["a"],c.a.config.devtools=!1,c.a.config.productionTip=!1,Object.keys(_).forEach((function(e){c.a.filter(e,_[e])})),V({whiteRoute:["/login","/contactsList","/gic-error","/403","/404","/500"],router:M,routes:w,createApp:function(){new c.a({router:M,render:function(e){return e(m)}}).$mount("#app")}})},"8bbf":function(e,n){e.exports=Vue},b775:function(e,n,t){"use strict";t.d(n,"a",(function(){return s}));var r=t("cebe"),c=t.n(r),a=t("4328"),o=t.n(a),u=t("5c96"),i=t("f121");c.a.defaults.baseURL=i["c"],c.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){c()(t).then((function(r){var c=r.data;return c.code==i["b"]?(window.location.href="".concat(i["c"],"/haoban-4/#/login"),void window.location.reload()):t.useIntercept&&c.code!=i["d"]?(Object(u["Message"])({message:c.message||"未知错误",type:"warning"}),n(c)):void e(c)})).catch((function(e){var t=e.response||{},r=t.data||{};Object(u["Message"])({message:r.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(r){t("1a5d")("./"+e+"/"+n+".vue").then((function(e){r(e)}))}}},f121:function(e,n,t){"use strict";function r(){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 c})),t.d(n,"d",(function(){return a})),t.d(n,"b",(function(){return o})),t.d(n,"a",(function(){return u}));var c=r(),a="0000",o="0003",u={batchAudit:"batchAudit"}}});
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-179a3874"],{"113a":function(e,t,r){},"13e1":function(e,t,r){},"4b22":function(e,t,r){"use strict";var a=r("59aa"),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)},"4f93":function(e,t,r){"use strict";var a=r("13e1"),n=r.n(a);n.a},"537e":function(e,t,r){},"59aa":function(e,t,r){},"67ab":function(e,t,r){var a=r("ca5a")("meta"),n=r("d3f4"),s=r("69a8"),o=r("86cc").f,i=0,l=Object.isExtensible||function(){return!0},c=!r("79e5")((function(){return l(Object.preventExtensions({}))})),d=function(e){o(e,a,{value:{i:"O"+ ++i,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("确认新建")])],1)],1)],1)]),r("select-admin",{attrs:{showAdminFlag:e.showAdminFlag,selectAdmin:e.adminForm.adminList},on:{checkAdmins:e.checkAdmins}}),r("select-admin-store",{attrs:{showAuthFlag:e.showAuthFlag,enterpriseId:e.enterpriseId,selectMode:e.selectMode,rangeData:e.rangeData,bindType:2},on:{closeSet:e.closeSet}})],1)},n=[],s=(r("ac6a"),r("29b6")),o=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:"请输入成员名称",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"},[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)])},i=[];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"),_=v.getAdminList,y=v.getSearchAdminList,k={name:"select-admin",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:[]}},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.$route.query.staffId)return!1;e.getStaff()},methods:{changeItem: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: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:a.totalIds=h(new Set(h(a.checkedList),h(a.checkedPeople.map((function(e){return e.levelId})))))||[],a.checkedList=h(new Set(h(a.checkedList),h(a.checkedPeople.map((function(e){return e.levelId})))))||[],a.totalNum=a.totalIds.length;case 8:case"end":return e.stop()}}),e,this)})));function t(t,r){return e.apply(this,arguments)}return t}(),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:return t=this,t.checkedPeople=[],e.next=4,t.getCheckData();case 4:if(t.checkedPeople.length||t.checkedList.length){e.next=7;break}return S["a"].showmsg("请选择管理员","warning"),e.abrupt("return",!1);case 7:!t.checkedPeople.length&&t.checkedList.length&&t.searchList.forEach((function(e){e.levelId=e.staffId,e.levelName=e.staffName,t.checkedList.includes(e.levelId)&&t.checkedPeople.push(e)})),t.$emit("checkAdmins",JSON.parse(JSON.stringify(t.checkedPeople)));case 9: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;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:r=this,a=[],r.searchList.forEach((function(e){t.includes(e.levelId)&&a.push(e)})),r.totalNum=t.length,r.totalIds=t,n=0;case 6:if(!(n<r.groupData.length)){e.next=15;break}if(s=r.groupData[n],t.includes(s.levelId)?s.checked=!0:s.checked=!1,!s.children||!s.children.length){e.next=12;break}return e.next=12,r.setChildCheck(s,t);case 12:n++,e.next=6;break;case 15:return r.checkedPeople=[],e.next=18,r.getCheckData();case 18: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};y(r).then((function(e){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};_(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){}))}},watch:{showAdminFlag:function(e){this.setVisible=e}}},I=k,w=(r("84b2"),r("2877")),x=Object(w["a"])(I,o,i,!1,null,"7ce58aba",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%",tipContent: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:{companyId:e.selectEnterpriseId,storeType:1,selectGroup:1==e.bindFormData.bindStoreMode?e.bindFormData.bindRange:[]}}):e._e(),"2"==e.bindFormData.bindStoreMode?r("store-auth-store-dis",{attrs:{companyId:e.selectEnterpriseId,storeType:1,selectStore: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:{companyId:e.selectEnterpriseId,storeType:2,selectGroup:1==e.bindFormData.shareStoreMode?e.bindFormData.shareRange:[]}}):e._e(),"2"==e.bindFormData.shareStoreMode?r("store-auth-store-dis",{attrs:{companyId:e.selectEnterpriseId,storeType:2,selectStore: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:{companyId:e.selectEnterpriseId,storeType:2,selectGroup:e.selectGroupData},on:{checkGroupIds:e.checkGroupIds}}):e._e(),"2"==e.formData.sendRange?r("store-auth-store",{attrs:{companyId:e.selectEnterpriseId,storeType:2,selectStore: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)])},F=[],N=(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)])}),R=[],O=r("21f4"),A=O["a"].getGroupList,E={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()}}},M=E,$=(r("4b22"),Object(w["a"])(M,N,R,!1,null,"7071110a",null)),L=$.exports,J=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"},[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=[],T=O["a"].getStoreList,j={name:"store-auth-store",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};T(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())}}},P=j,q=(r("ed84"),Object(w["a"])(P,J,G,!1,null,"1f8586f8",null)),B=q.exports,z=r("7ca9"),U=r("418e"),K=r("3081"),W=O["a"].getAuthDetail,V={name:"select-admin-store",components:{storeAuthGroup:z["a"],storeAuthStore:U["a"],storeAuthGroupDis:L,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(e){var t=this,r={enterpriseId:t.enterpriseId,wxEnterpriseId:t.wxEnterpriseId};W(r).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=[],t.bindFormData=e.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("4f93"),Object(w["a"])(Y,C,F,!1,null,"b34621e2",null)),Q=H.exports,X=v.getRoleRange,Z=v.addAdmin,ee={name:"edit-admin-page",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(e){var t=this,r={roleId:t.$route.query.roleId,staffId:t.$route.query.staffId,wxEnterpriseId:t.wxEnterpriseId};X(r).then((function(e){e.result&&e.result.length&&e.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=[]})),t.tableData=e.result||[]})).catch((function(e){}))}}},te=ee,re=(r("d5b6"),Object(w["a"])(te,a,n,!1,null,"6a673ce6",null));t["default"]=re.exports},"84b2":function(e,t,r){"use strict";var a=r("113a"),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}},c26b:function(e,t,r){"use strict";var a=r("86cc").f,n=r("2aeb"),s=r("dcbc"),o=r("9b43"),i=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){i(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=o(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)}}},d5b6:function(e,t,r){"use strict";var a=r("537e"),n=r.n(a);n.a},dd62:function(e,t,r){},e0b8:function(e,t,r){"use strict";var a=r("7726"),n=r("5ca1"),s=r("2aba"),o=r("dcbc"),i=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,_=g?"set":"add",y=S&&S.prototype,k={},I=function(e){var t=y[e];s(y,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||y.forEach&&!u((function(){(new S).entries().next()})))){var w=new S,x=w[_](b?{}:-0,1)!=w,D=u((function(){w.has(1)})),C=f((function(e){new S(e)})),F=!b&&u((function(){var e=new S,t=5;while(t--)e[_](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[_],a),a})),S.prototype=y,y.constructor=S),(D||F)&&(I("delete"),I("has"),g&&I("get")),(F||x)&&I(_),b&&y.clear&&delete y.clear}else S=m.getConstructor(t,e,g,_),o(S.prototype,r),i.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}},ed84:function(e,t,r){"use strict";var a=r("dd62"),n=r.n(a);n.a}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2308777a"],{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:{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?"男":"女")+")")])])])]),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("storeChange",{attrs:{storeChangeData: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:{auditIds:e.auditIds,detailShow: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:"review-result-detail",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("6732"),a("2877")),p=Object(f["a"])(d,l,o,!1,null,"b83efdae",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:"unreview-page",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(e){var t=this;e&&(t.currentPage=1),t.loading=!0;var a={wxEnterpriseId:t.wxEnterpriseId,auditType:t.auditType,searchType:"0",search:t.searchValue,pageNum:t.currentPage,pageSize:t.pageSize,enterpriseId:t.filterBrand};w(a).then((function(e){t.loading=!1,t.tableData=e.result.result||[],t.total=e.result.totalCount})).catch((function(e){t.loading=!1}))}}},I=S,F=(a("614f"),Object(f["a"])(I,i,n,!1,null,"2df115b7",null));t["default"]=F.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 I=1;I<=S.length-1;I++)if(y.push(S[I]),y.length===C)return y;_=D=x}}return y.push(f.slice(D)),y}]}))},"4cbd":function(e,t,a){},"4dfe":function(e,t,a){},"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})}}},"614f":function(e,t,a){"use strict";var i=a("4dfe"),n=a.n(i);n.a},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:"store-change-dialog",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("9186"),a("2877")),r=Object(o["a"])(l,i,n,!1,null,"7cd9d396",null);t["a"]=r.exports},6732:function(e,t,a){"use strict";var i=a("4cbd"),n=a.n(i);n.a},"6cae":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}},9186:function(e,t,a){"use strict";var i=a("6cae"),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},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;t=t||200;return function(){var i=this,n=arguments;a&&clearTimeout(a),a=setTimeout((function(){a=null,e.apply(i,n)}),t)}}function n(e,t){var a,i;t=t||200;return function(){var n=this,s=arguments,l=+new Date;a&&l-a<t?(clearTimeout(i),i=setTimeout((function(){a=l,e.apply(n,s)}),t)):(a=l,e.apply(n,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-2308777a"],{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:{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?"男":"女")+")")])])])]),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("storeChange",{attrs:{storeChangeData: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:{auditIds:e.auditIds,detailShow: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:"review-result-detail",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){console.log(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("6732"),a("2877")),p=Object(f["a"])(d,l,o,!1,null,"b83efdae",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:"unreview-page",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(e){var t=this;e&&(t.currentPage=1),t.loading=!0;var a={wxEnterpriseId:t.wxEnterpriseId,auditType:t.auditType,searchType:"0",search:t.searchValue,pageNum:t.currentPage,pageSize:t.pageSize,enterpriseId:t.filterBrand};w(a).then((function(e){t.loading=!1,t.tableData=e.result.result||[],t.total=e.result.totalCount})).catch((function(e){t.loading=!1}))}}},I=S,F=(a("614f"),Object(f["a"])(I,i,n,!1,null,"2df115b7",null));t["default"]=F.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 I=1;I<=S.length-1;I++)if(y.push(S[I]),y.length===C)return y;_=D=x}}return y.push(f.slice(D)),y}]}))},"4cbd":function(e,t,a){},"4dfe":function(e,t,a){},"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})}}},"614f":function(e,t,a){"use strict";var i=a("4dfe"),n=a.n(i);n.a},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:"store-change-dialog",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("9186"),a("2877")),r=Object(o["a"])(l,i,n,!1,null,"7cd9d396",null);t["a"]=r.exports},6732:function(e,t,a){"use strict";var i=a("4cbd"),n=a.n(i);n.a},"6cae":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}},9186:function(e,t,a){"use strict";var i=a("6cae"),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},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;t=t||200;return function(){var i=this,n=arguments;a&&clearTimeout(a),a=setTimeout((function(){a=null,e.apply(i,n)}),t)}}function n(e,t){var a,i;t=t||200;return function(){var n=this,s=arguments,l=+new Date;a&&l-a<t?(clearTimeout(i),i=setTimeout((function(){a=l,e.apply(n,s)}),t)):(a=l,e.apply(n,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-4badec06"],{2176:function(e,t,n){},"28a5":function(e,t,n){"use strict";var a=n("aae3"),r=n("cb7c"),i=n("ebd6"),o=n("0390"),c=n("9def"),l=n("5f1b"),s=n("520a"),u=n("79e5"),h=Math.min,f=[].push,d="split",m="length",p="lastIndex",v=4294967295,g=!u((function(){RegExp(v,"y")}));n("214f")("split",2,(function(e,t,n,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 r=String(this);if(void 0===e&&0===t)return[];if(!a(e))return n.call(r,e,t);var i,o,c,l=[],u=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),h=0,d=void 0===t?v:t>>>0,g=new RegExp(e.source,u+"g");while(i=s.call(g,r)){if(o=g[p],o>h&&(l.push(r.slice(h,i.index)),i[m]>1&&i.index<r[m]&&f.apply(l,i.slice(1)),c=i[0][m],h=o,l[m]>=d))break;g[p]===i.index&&g[p]++}return h===r[m]?!c&&g.test("")||l.push(""):l.push(r.slice(h)),l[m]>d?l.slice(0,d):l}:"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 r=e(this),i=void 0==n?void 0:n[t];return void 0!==i?i.call(n,r,a):b.call(String(r),n,a)},function(e,t){var a=u(b,e,this,t,b!==n);if(a.done)return a.value;var s=r(e),f=String(this),d=i(s,RegExp),m=s.unicode,p=(s.ignoreCase?"i":"")+(s.multiline?"m":"")+(s.unicode?"u":"")+(g?"y":"g"),w=new d(g?s:"^(?:"+s.source+")",p),C=void 0===t?v:t>>>0;if(0===C)return[];if(0===f.length)return null===l(w,f)?[f]:[];var y=0,N=0,x=[];while(N<f.length){w.lastIndex=g?N:0;var S,k=l(w,g?f:f.slice(N));if(null===k||(S=h(c(w.lastIndex+(g?0:N)),f.length))===y)N=o(f,N,m);else{if(x.push(f.slice(y,N)),x.length===C)return x;for(var I=1;I<=k.length-1;I++)if(x.push(k[I]),x.length===C)return x;N=y=S}}return x.push(f.slice(y)),x}]}))},4389:function(e,t,n){},"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,r){return[n("li",{key:r,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"+r,staticClass:"third-tab-left-list"},[e._l(t.children,(function(t,r){return[n("li",{key:r,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)])},r=[],i=(n("ac6a"),n("c5f6"),{name:"common-detail-left",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(console.log(e),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,console.log(a.activeTab),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=i,c=(n("d1b5"),n("2877")),l=Object(c["a"])(o,a,r,!1,null,"34fc82fa",null);t["a"]=l.exports},5778:function(e,t,n){"use strict";var a=n("2176"),r=n.n(a);r.a},5937:function(e,t,n){"use strict";var a=n("71f6"),r={getRoleMenu:"/list-staff-role-menu"};r=Object(a["a"])(r,"/hb-manage-web"),t["a"]=r},"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 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}},"7ded":function(e,t,n){"use strict";var a=n("71f6"),r={getLoginQrcode:"/get-login-qrcode",getUserInfo:"/get-login-user",loginOut:{url:"/login-out",method:"post",useFormData:!0}};r=Object(a["a"])(r,"/hb-manage-web/auth"),t["a"]=r},d1b5:function(e,t,n){"use strict";var a=n("4389"),r=n.n(a);r.a},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)])},r=[],i=(n("456d"),n("96cf"),n("1da1")),o=(n("ac6a"),n("28a5"),n("7ded")),c=n("5937"),l=c["a"].getRoleMenu,s=o["a"].getUserInfo,u=o["a"].loginOut,h={name:"vue-office-header",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,r={path:"/"+e,name:t};a.$emit("toRouterView",r)},toLogin:function(){var e=this;s({}).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={};l(t).then(function(){var t=Object(i["a"])(regeneratorRuntime.mark((function t(n){var a,r,i,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=[],r={},i={},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&&(r=t),e.$route.path==t.menuUrl&&1!=t.level&&(i=t)})),e.menuHead=a,t.next=8,e.treeData(JSON.parse(JSON.stringify(n.result)));case 8:e.roleMenuData=t.sent,Object.keys(i).length&&2==i.level&&n.result.forEach((function(e){i.parentCode==e.menuCode&&1==e.level&&1==e.isShow&&(r=e)})),o={},Object.keys(i).length&&3==i.level&&n.result.forEach((function(e){i.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&&(r=e)})),e.setleftData(r);case 14:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(e){}))}}},f=h,d=(n("5778"),n("2877")),m=Object(d["a"])(f,a,r,!1,null,"c8ca5206",null);t["a"]=m.exports}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-4badec06"],{2176:function(e,t,n){},"28a5":function(e,t,n){"use strict";var a=n("aae3"),r=n("cb7c"),i=n("ebd6"),o=n("0390"),c=n("9def"),l=n("5f1b"),s=n("520a"),u=n("79e5"),h=Math.min,f=[].push,d="split",m="length",p="lastIndex",v=4294967295,g=!u((function(){RegExp(v,"y")}));n("214f")("split",2,(function(e,t,n,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 r=String(this);if(void 0===e&&0===t)return[];if(!a(e))return n.call(r,e,t);var i,o,c,l=[],u=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),h=0,d=void 0===t?v:t>>>0,g=new RegExp(e.source,u+"g");while(i=s.call(g,r)){if(o=g[p],o>h&&(l.push(r.slice(h,i.index)),i[m]>1&&i.index<r[m]&&f.apply(l,i.slice(1)),c=i[0][m],h=o,l[m]>=d))break;g[p]===i.index&&g[p]++}return h===r[m]?!c&&g.test("")||l.push(""):l.push(r.slice(h)),l[m]>d?l.slice(0,d):l}:"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 r=e(this),i=void 0==n?void 0:n[t];return void 0!==i?i.call(n,r,a):b.call(String(r),n,a)},function(e,t){var a=u(b,e,this,t,b!==n);if(a.done)return a.value;var s=r(e),f=String(this),d=i(s,RegExp),m=s.unicode,p=(s.ignoreCase?"i":"")+(s.multiline?"m":"")+(s.unicode?"u":"")+(g?"y":"g"),w=new d(g?s:"^(?:"+s.source+")",p),C=void 0===t?v:t>>>0;if(0===C)return[];if(0===f.length)return null===l(w,f)?[f]:[];var y=0,N=0,x=[];while(N<f.length){w.lastIndex=g?N:0;var S,k=l(w,g?f:f.slice(N));if(null===k||(S=h(c(w.lastIndex+(g?0:N)),f.length))===y)N=o(f,N,m);else{if(x.push(f.slice(y,N)),x.length===C)return x;for(var I=1;I<=k.length-1;I++)if(x.push(k[I]),x.length===C)return x;N=y=S}}return x.push(f.slice(y)),x}]}))},4389:function(e,t,n){},"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,r){return[n("li",{key:r,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"+r,staticClass:"third-tab-left-list"},[e._l(t.children,(function(t,r){return[n("li",{key:r,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)])},r=[],i=(n("ac6a"),n("c5f6"),{name:"common-detail-left",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=i,c=(n("d1b5"),n("2877")),l=Object(c["a"])(o,a,r,!1,null,"34fc82fa",null);t["a"]=l.exports},5778:function(e,t,n){"use strict";var a=n("2176"),r=n.n(a);r.a},5937:function(e,t,n){"use strict";var a=n("71f6"),r={getRoleMenu:"/list-staff-role-menu"};r=Object(a["a"])(r,"/hb-manage-web"),t["a"]=r},"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 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}},"7ded":function(e,t,n){"use strict";var a=n("71f6"),r={getLoginQrcode:"/get-login-qrcode",getUserInfo:"/get-login-user",loginOut:{url:"/login-out",method:"post",useFormData:!0}};r=Object(a["a"])(r,"/hb-manage-web/auth"),t["a"]=r},d1b5:function(e,t,n){"use strict";var a=n("4389"),r=n.n(a);r.a},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)])},r=[],i=(n("456d"),n("96cf"),n("1da1")),o=(n("ac6a"),n("28a5"),n("7ded")),c=n("5937"),l=c["a"].getRoleMenu,s=o["a"].getUserInfo,u=o["a"].loginOut,h={name:"vue-office-header",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,r={path:"/"+e,name:t};a.$emit("toRouterView",r)},toLogin:function(){var e=this;s({}).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={};l(t).then(function(){var t=Object(i["a"])(regeneratorRuntime.mark((function t(n){var a,r,i,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=[],r={},i={},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&&(r=t),e.$route.path==t.menuUrl&&1!=t.level&&(i=t)})),e.menuHead=a,t.next=8,e.treeData(JSON.parse(JSON.stringify(n.result)));case 8:e.roleMenuData=t.sent,Object.keys(i).length&&2==i.level&&n.result.forEach((function(e){i.parentCode==e.menuCode&&1==e.level&&1==e.isShow&&(r=e)})),o={},Object.keys(i).length&&3==i.level&&n.result.forEach((function(e){i.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&&(r=e)})),e.setleftData(r);case 14:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()).catch((function(e){}))}}},f=h,d=(n("5778"),n("2877")),m=Object(d["a"])(f,a,r,!1,null,"c8ca5206",null);t["a"]=m.exports}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-55cc2c59"],{1050:function(t,e,a){"use strict";var n=a("a32c"),o=a.n(n);o.a},2176:function(t,e,a){},"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"),p=Math.min,f=[].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":""),p=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>p&&(c.push(o.slice(p,i.index)),i[d]>1&&i.index<o[d]&&f.apply(c,i.slice(1)),r=i[0][d],p=s,c[d]>=h))break;v[m]===i.index&&v[m]++}return p===o[d]?!r&&v.test("")||c.push(""):c.push(o.slice(p)),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),f=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===f.length)return null===c(C,f)?[f]:[];var x=0,_=0,y=[];while(_<f.length){C.lastIndex=v?_:0;var S,k=c(C,v?f:f.slice(_));if(null===k||(S=p(r(C.lastIndex+(v?0:_)),f.length))===x)_=s(f,_,d);else{if(y.push(f.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(f.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:{projectName: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:"index-page",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(t){var e=this;e.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("1050"),a("2877")),p=Object(u["a"])(l,n,o,!1,null,"85d52c40",null);e["default"]=p.exports},5778:function(t,e,a){"use strict";var n=a("2176"),o=a.n(n);o.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},a32c: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:"vue-office-header",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("5778"),a("2877")),d=Object(h["a"])(f,n,o,!1,null,"c8ca5206",null);e["a"]=d.exports}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-55cc2c59"],{1050:function(t,e,a){"use strict";var n=a("a32c"),o=a.n(n);o.a},2176:function(t,e,a){},"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"),p=Math.min,f=[].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":""),p=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>p&&(c.push(o.slice(p,i.index)),i[d]>1&&i.index<o[d]&&f.apply(c,i.slice(1)),r=i[0][d],p=s,c[d]>=h))break;v[m]===i.index&&v[m]++}return p===o[d]?!r&&v.test("")||c.push(""):c.push(o.slice(p)),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),f=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===f.length)return null===c(C,f)?[f]:[];var x=0,_=0,y=[];while(_<f.length){C.lastIndex=v?_:0;var S,k=c(C,v?f:f.slice(_));if(null===k||(S=p(r(C.lastIndex+(v?0:_)),f.length))===x)_=s(f,_,d);else{if(y.push(f.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(f.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:{projectName: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:"index-page",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)),console.log(),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(t){var e=this;e.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("1050"),a("2877")),p=Object(u["a"])(l,n,o,!1,null,"85d52c40",null);e["default"]=p.exports},5778:function(t,e,a){"use strict";var n=a("2176"),o=a.n(n);o.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},a32c: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:"vue-office-header",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("5778"),a("2877")),d=Object(h["a"])(f,n,o,!1,null,"c8ca5206",null);e["a"]=d.exports}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-6c2eda07"],{"13e1":function(e,t,r){},"452b":function(e,t,r){"use strict";var a=r("b94e"),n=r.n(a);n.a},"4b22":function(e,t,r){"use strict";var a=r("59aa"),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)},"4f93":function(e,t,r){"use strict";var a=r("13e1"),n=r.n(a);n.a},"537e":function(e,t,r){},"59aa":function(e,t,r){},"67ab":function(e,t,r){var a=r("ca5a")("meta"),n=r("d3f4"),s=r("69a8"),o=r("86cc").f,i=0,l=Object.isExtensible||function(){return!0},c=!r("79e5")((function(){return l(Object.preventExtensions({}))})),d=function(e){o(e,a,{value:{i:"O"+ ++i,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("确认新建")])],1)],1)],1)]),r("select-admin",{attrs:{showAdminFlag:e.showAdminFlag,selectAdmin:e.adminForm.adminList},on:{checkAdmins:e.checkAdmins}}),r("select-admin-store",{attrs:{showAuthFlag:e.showAuthFlag,enterpriseId:e.enterpriseId,selectMode:e.selectMode,rangeData:e.rangeData,bindType:2},on:{closeSet:e.closeSet}})],1)},n=[],s=(r("ac6a"),r("29b6")),o=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:"请输入成员名称",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"},[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)])},i=[];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"),_=v.getAdminList,y=v.getSearchAdminList,k={name:"select-admin",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:[]}},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.$route.query.staffId)return!1;e.getStaff()},methods:{changeItem: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:return a=this,console.log("tree:",t,r,a.checkedList),!t&&a.checkedList.indexOf(r.levelId)&&a.checkedList.splice(a.checkedList.indexOf(r.levelId),1),a.checkedPeople=[],e.next=6,a.getCheckData();case 6:console.log("checkedPeople:",a.checkedPeople),a.totalIds=h(new Set(h(a.checkedList),h(a.checkedPeople.map((function(e){return e.levelId})))))||[],a.checkedList=h(new Set(h(a.checkedList),h(a.checkedPeople.map((function(e){return e.levelId})))))||[],a.totalNum=a.totalIds.length,console.log(a.checkedList);case 11:case"end":return e.stop()}}),e,this)})));function t(t,r){return e.apply(this,arguments)}return t}(),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:return t=this,t.checkedPeople=[],e.next=4,t.getCheckData();case 4:if(t.checkedPeople.length||t.checkedList.length){e.next=7;break}return S["a"].showmsg("请选择管理员","warning"),e.abrupt("return",!1);case 7:!t.checkedPeople.length&&t.checkedList.length&&t.searchList.forEach((function(e){e.levelId=e.staffId,e.levelName=e.staffName,t.checkedList.includes(e.levelId)&&t.checkedPeople.push(e)})),t.$emit("checkAdmins",JSON.parse(JSON.stringify(t.checkedPeople)));case 9: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;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:r=this,a=[],r.searchList.forEach((function(e){t.includes(e.levelId)&&a.push(e)})),r.totalNum=t.length,r.totalIds=t,n=0;case 6:if(!(n<r.groupData.length)){e.next=15;break}if(s=r.groupData[n],t.includes(s.levelId)?s.checked=!0:s.checked=!1,!s.children||!s.children.length){e.next=12;break}return e.next=12,r.setChildCheck(s,t);case 12:n++,e.next=6;break;case 15:return r.checkedPeople=[],e.next=18,r.getCheckData();case 18: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};y(r).then((function(e){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};_(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){}))}},watch:{showAdminFlag:function(e){this.setVisible=e}}},I=k,w=(r("452b"),r("2877")),x=Object(w["a"])(I,o,i,!1,null,"68845ea0",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%",tipContent: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:{companyId:e.selectEnterpriseId,storeType:1,selectGroup:1==e.bindFormData.bindStoreMode?e.bindFormData.bindRange:[]}}):e._e(),"2"==e.bindFormData.bindStoreMode?r("store-auth-store-dis",{attrs:{companyId:e.selectEnterpriseId,storeType:1,selectStore: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:{companyId:e.selectEnterpriseId,storeType:2,selectGroup:1==e.bindFormData.shareStoreMode?e.bindFormData.shareRange:[]}}):e._e(),"2"==e.bindFormData.shareStoreMode?r("store-auth-store-dis",{attrs:{companyId:e.selectEnterpriseId,storeType:2,selectStore: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:{companyId:e.selectEnterpriseId,storeType:2,selectGroup:e.selectGroupData},on:{checkGroupIds:e.checkGroupIds}}):e._e(),"2"==e.formData.sendRange?r("store-auth-store",{attrs:{companyId:e.selectEnterpriseId,storeType:2,selectStore: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)])},F=[],N=(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)])}),R=[],O=r("21f4"),A=O["a"].getGroupList,E={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()}}},M=E,$=(r("4b22"),Object(w["a"])(M,N,R,!1,null,"7071110a",null)),L=$.exports,J=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"},[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=[],T=O["a"].getStoreList,j={name:"store-auth-store",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};T(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())}}},P=j,q=(r("ed84"),Object(w["a"])(P,J,G,!1,null,"1f8586f8",null)),B=q.exports,z=r("7ca9"),U=r("418e"),K=r("3081"),W=O["a"].getAuthDetail,V={name:"select-admin-store",components:{storeAuthGroup:z["a"],storeAuthStore:U["a"],storeAuthGroupDis:L,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(e){var t=this,r={enterpriseId:t.enterpriseId,wxEnterpriseId:t.wxEnterpriseId};W(r).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=[],t.bindFormData=e.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("4f93"),Object(w["a"])(Y,C,F,!1,null,"b34621e2",null)),Q=H.exports,X=v.getRoleRange,Z=v.addAdmin,ee={name:"edit-admin-page",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(e){var t=this,r={roleId:t.$route.query.roleId,staffId:t.$route.query.staffId,wxEnterpriseId:t.wxEnterpriseId};X(r).then((function(e){e.result&&e.result.length&&e.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=[]})),t.tableData=e.result||[]})).catch((function(e){}))}}},te=ee,re=(r("d5b6"),Object(w["a"])(te,a,n,!1,null,"6a673ce6",null));t["default"]=re.exports},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}},b94e:function(e,t,r){},c26b:function(e,t,r){"use strict";var a=r("86cc").f,n=r("2aeb"),s=r("dcbc"),o=r("9b43"),i=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){i(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=o(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)}}},d5b6:function(e,t,r){"use strict";var a=r("537e"),n=r.n(a);n.a},dd62:function(e,t,r){},e0b8:function(e,t,r){"use strict";var a=r("7726"),n=r("5ca1"),s=r("2aba"),o=r("dcbc"),i=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,_=g?"set":"add",y=S&&S.prototype,k={},I=function(e){var t=y[e];s(y,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||y.forEach&&!u((function(){(new S).entries().next()})))){var w=new S,x=w[_](b?{}:-0,1)!=w,D=u((function(){w.has(1)})),C=f((function(e){new S(e)})),F=!b&&u((function(){var e=new S,t=5;while(t--)e[_](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[_],a),a})),S.prototype=y,y.constructor=S),(D||F)&&(I("delete"),I("has"),g&&I("get")),(F||x)&&I(_),b&&y.clear&&delete y.clear}else S=m.getConstructor(t,e,g,_),o(S.prototype,r),i.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}},ed84:function(e,t,r){"use strict";var a=r("dd62"),n=r.n(a);n.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.
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-21 10:10:57
* @LastEditors: 无尘
* @LastEditTime: 2020-08-17 11:27:07
* @LastEditTime: 2020-08-17 11:32:28
-->
<!--
选择管理员
......@@ -98,6 +98,7 @@ export default {
*/
async changeItem(val, item) {
const that = this;
console.log('tree:',val, item,that.checkedList)
// 如果不勾选了,需要设置搜索数据中已选删除
if (!val && that.checkedList.indexOf(item.levelId)) {
that.checkedList.splice(that.checkedList.indexOf(item.levelId), 1);
......@@ -105,10 +106,12 @@ export default {
// 需要先获取已选人员(有些问题,获取的时候数据没有)
that.checkedPeople = [];
await that.getCheckData();
console.log('checkedPeople:',that.checkedPeople)
// 每次选择或者不选的时候,合并搜索和树中选择数据,即使如果不选中,数据已经加载了,
that.totalIds = [...new Set([...that.checkedList],[...that.checkedPeople.map(ele => ele.levelId)])] || [];
that.checkedList = [...new Set([...that.checkedList],[...that.checkedPeople.map(ele => ele.levelId)])] || [];
that.totalNum = that.totalIds.length;
console.log(that.checkedList)
},
/**
* 关闭弹窗
......
......@@ -4,7 +4,7 @@
* @Author: 无尘
* @Date: 2020-07-16 16:37:05
* @LastEditors: 无尘
* @LastEditTime: 2020-07-28 15:48:16
* @LastEditTime: 2020-08-17 11:32:45
*/
const path = require("path");
......@@ -51,11 +51,11 @@ module.exports = {
config.entry.app = ["babel-polyfill", "./src/main.js"];
if (process.env.NODE_ENV === 'production') {
config.optimization.minimizer[0].options.terserOptions.compress.warnings = false;
config.optimization.minimizer[0].options.terserOptions.compress.drop_console = true;
//config.optimization.minimizer[0].options.terserOptions.compress.drop_console = true;
config.optimization.minimizer[0].options.terserOptions.compress.drop_debugger = true;
config.optimization.minimizer[0].options.terserOptions.compress.pure_funcs = [
/* config.optimization.minimizer[0].options.terserOptions.compress.pure_funcs = [
'console.log'
];
]; */
}
},
chainWebpack: config => {
......
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