You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1 line
236 KiB
JavaScript

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

(function(e){function t(t){for(var s,o,r=t[0],l=t[1],c=t[2],d=0,m=[];d<r.length;d++)o=r[d],Object.prototype.hasOwnProperty.call(i,o)&&i[o]&&m.push(i[o][0]),i[o]=0;for(s in l)Object.prototype.hasOwnProperty.call(l,s)&&(e[s]=l[s]);u&&u(t);while(m.length)m.shift()();return n.push.apply(n,c||[]),a()}function a(){for(var e,t=0;t<n.length;t++){for(var a=n[t],s=!0,o=1;o<a.length;o++){var l=a[o];0!==i[l]&&(s=!1)}s&&(n.splice(t--,1),e=r(r.s=a[0]))}return e}var s={},i={app:0},n=[];function o(e){return r.p+"assets/js/"+({}[e]||e)+".js"}function r(t){if(s[t])return s[t].exports;var a=s[t]={i:t,l:!1,exports:{}};return e[t].call(a.exports,a,a.exports,r),a.l=!0,a.exports}r.e=function(e){var t=[],a=i[e];if(0!==a)if(a)t.push(a[2]);else{var s=new Promise((function(t,s){a=i[e]=[t,s]}));t.push(a[2]=s);var n,l=document.createElement("script");l.charset="utf-8",l.timeout=120,r.nc&&l.setAttribute("nonce",r.nc),l.src=o(e);var c=new Error;n=function(t){l.onerror=l.onload=null,clearTimeout(d);var a=i[e];if(0!==a){if(a){var s=t&&("load"===t.type?"missing":t.type),n=t&&t.target&&t.target.src;c.message="Loading chunk "+e+" failed.\n("+s+": "+n+")",c.name="ChunkLoadError",c.type=s,c.request=n,a[1](c)}i[e]=void 0}};var d=setTimeout((function(){n({type:"timeout",target:l})}),12e4);l.onerror=l.onload=n,document.head.appendChild(l)}return Promise.all(t)},r.m=e,r.c=s,r.d=function(e,t,a){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:a})},r.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var a=Object.create(null);if(r.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var s in e)r.d(a,s,function(t){return e[t]}.bind(null,s));return a},r.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="/dist/",r.oe=function(e){throw console.error(e),e};var l=window["webpackJsonp"]=window["webpackJsonp"]||[],c=l.push.bind(l);l.push=t,l=l.slice();for(var d=0;d<l.length;d++)t(l[d]);var u=c;n.push([0,"chunk-vendors"]),a()})({0:function(e,t,a){e.exports=a("56d7")},"034f":function(e,t,a){"use strict";var s=a("85ec"),i=a.n(s);i.a},"0481":function(e,t,a){"use strict";var s=a("d7cc"),i=a.n(s);i.a},"082f":function(e,t,a){e.exports=a.p+"assets/img/bsd-logo.png"},"087b":function(e,t,a){},"089d":function(e,t,a){"use strict";var s=a("54d2"),i=a.n(s);i.a},"0b2d":function(e,t,a){"use strict";var s=a("f08d"),i=a.n(s);i.a},"152b":function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAHmSURBVDhPhVNNSwJRFJ3njEoUUdDGnbQQhCwIP6iRKKGVrlpEm3AhSBL9lHathnDRohb+gTYthJIUEZRQiCCiD+mDSsecmnGczmOmQdHJA483d+aec8+79w1hDCSTSXun09liWdaPdVKr1YrZbLZjfLaEzdgZl8tFOI77wuMshHY8Hg9PRfWv1mCNnUG1biQSeZBl+QPhgqZpAezvPp/vqVwuWzoxBShyuZwcDoefIdKy2WwLhJA1HOcVIvdWIn0CFPl8/pvn+bqqqm9w4ccr3m63fwaDwedoNCrDqaZn6hgQoCgUCrLX6607HI5biMzDyVK329VEUayXSiXaJxNDBSgqlYoSi8UeJUm6BnkOr5YhJoVCobtisfijZ/0jQEEbC9sv7Xb7BuRFONmEmIieXP31xByjFarVKkE/xkCeQChBqOV2u82GmhdpCEg8HneigQGQd7HG8e4Id+Q0nU6Leor1EQgu0SRGuIJx7iFmYf3Y6XSeCYLQ0FN0DHNAEonENMirsLuDWME6wDHOUbmF574xDgig8gyqRVB5C7sDax/ju8hkMrKR0odeAZJKpaYURVnHeTcQ/8DBYaPRyIGs6imDMKeAyhzIqyBvI2yisjCKTNH7N9JE+vfVICI0m83LUWSGYZhfPNjtYHCbwX8AAAAASUVORK5CYII="},"1c91":function(e,t,a){"use strict";var s=a("3a05"),i=a.n(s);i.a},"1cad":function(e,t,a){},"1e6a":function(e,t,a){"use strict";var s=a("4b9f"),i=a.n(s);i.a},"204a":function(e,t){e.exports="data:image/gif;base64,R0lGODlhJQAlAJECAL3L2AYrTv///wAAACH/C05FVFNDQVBFMi4wAwEAAAAh+QQFCgACACwAAAAAJQAlAAACi5SPqcvtDyGYIFpF690i8xUw3qJBwUlSadmcLqYmGQu6KDIeM13beGzYWWy3DlB4IYaMk+Dso2RWkFCfLPcRvFbZxFLUDTt21BW56TyjRep1e20+i+eYMR145W2eefj+6VFmgTQi+ECVY8iGxcg35phGo/iDFwlTyXWphwlm1imGRdcnuqhHeop6UAAAIfkEBQoAAgAsEAACAAQACwAAAgWMj6nLXAAh+QQFCgACACwVAAUACgALAAACFZQvgRi92dyJcVJlLobUdi8x4bIhBQAh+QQFCgACACwXABEADAADAAACBYyPqcsFACH5BAUKAAIALBUAFQAKAAsAAAITlGKZwWoMHYxqtmplxlNT7ixGAQAh+QQFCgACACwQABgABAALAAACBYyPqctcACH5BAUKAAIALAUAFQAKAAsAAAIVlC+BGL3Z3IlxUmUuhtR2LzHhsiEFACH5BAUKAAIALAEAEQAMAAMAAAIFjI+pywUAIfkEBQoAAgAsBQAFAAoACwAAAhOUYJnAagwdjGq2amXGU1PuLEYBACH5BAUKAAIALBAAAgAEAAsAAAIFhI+py1wAIfkEBQoAAgAsFQAFAAoACwAAAhWUL4AIvdnciXFSZS6G1HYvMeGyIQUAIfkEBQoAAgAsFwARAAwAAwAAAgWEj6nLBQAh+QQFCgACACwVABUACgALAAACE5RgmcBqDB2MarZqZcZTU+4sRgEAIfkEBQoAAgAsEAAYAAQACwAAAgWEj6nLXAAh+QQFCgACACwFABUACgALAAACFZQvgAi92dyJcVJlLobUdi8x4bIhBQAh+QQFCgACACwBABEADAADAAACBYSPqcsFADs="},2141:function(e,t,a){e.exports=a.p+"assets/img/jt.png"},"2a56":function(e,t,a){},"32c7":function(e,t,a){"use strict";var s=a("fde6"),i=a.n(s);i.a},"3a05":function(e,t,a){},"3c81":function(e,t,a){e.exports=a.p+"assets/img/lbx.png"},4678:function(e,t,a){var s={"./af":"2bfb","./af.js":"2bfb","./ar":"8e73","./ar-dz":"a356","./ar-dz.js":"a356","./ar-kw":"423e","./ar-kw.js":"423e","./ar-ly":"1cfd","./ar-ly.js":"1cfd","./ar-ma":"0a84","./ar-ma.js":"0a84","./ar-sa":"8230","./ar-sa.js":"8230","./ar-tn":"6d83","./ar-tn.js":"6d83","./ar.js":"8e73","./az":"485c","./az.js":"485c","./be":"1fc1","./be.js":"1fc1","./bg":"84aa","./bg.js":"84aa","./bm":"a7fa","./bm.js":"a7fa","./bn":"9043","./bn.js":"9043","./bo":"d26a","./bo.js":"d26a","./br":"6887","./br.js":"6887","./bs":"2554","./bs.js":"2554","./ca":"d716","./ca.js":"d716","./cs":"3c0d","./cs.js":"3c0d","./cv":"03ec","./cv.js":"03ec","./cy":"9797","./cy.js":"9797","./da":"0f14","./da.js":"0f14","./de":"b469","./de-at":"b3eb","./de-at.js":"b3eb","./de-ch":"bb71","./de-ch.js":"bb71","./de.js":"b469","./dv":"598a","./dv.js":"598a","./el":"8d47","./el.js":"8d47","./en-au":"0e6b","./en-au.js":"0e6b","./en-ca":"3886","./en-ca.js":"3886","./en-gb":"39a6","./en-gb.js":"39a6","./en-ie":"e1d3","./en-ie.js":"e1d3","./en-il":"7333","./en-il.js":"7333","./en-in":"ec2e","./en-in.js":"ec2e","./en-nz":"6f50","./en-nz.js":"6f50","./en-sg":"b7e9","./en-sg.js":"b7e9","./eo":"65db","./eo.js":"65db","./es":"898b","./es-do":"0a3c","./es-do.js":"0a3c","./es-us":"55c9","./es-us.js":"55c9","./es.js":"898b","./et":"ec18","./et.js":"ec18","./eu":"0ff2","./eu.js":"0ff2","./fa":"8df4","./fa.js":"8df4","./fi":"81e9","./fi.js":"81e9","./fil":"d69a","./fil.js":"d69a","./fo":"0721","./fo.js":"0721","./fr":"9f26","./fr-ca":"d9f8","./fr-ca.js":"d9f8","./fr-ch":"0e49","./fr-ch.js":"0e49","./fr.js":"9f26","./fy":"7118","./fy.js":"7118","./ga":"5120","./ga.js":"5120","./gd":"f6b4","./gd.js":"f6b4","./gl":"8840","./gl.js":"8840","./gom-deva":"aaf2","./gom-deva.js":"aaf2","./gom-latn":"0caa","./gom-latn.js":"0caa","./gu":"e0c5","./gu.js":"e0c5","./he":"c7aa","./he.js":"c7aa","./hi":"dc4d","./hi.js":"dc4d","./hr":"4ba9","./hr.js":"4ba9","./hu":"5b14","./hu.js":"5b14","./hy-am":"d6b6","./hy-am.js":"d6b6","./id":"5038","./id.js":"5038","./is":"0558","./is.js":"0558","./it":"6e98","./it-ch":"6f12","./it-ch.js":"6f12","./it.js":"6e98","./ja":"079e","./ja.js":"079e","./jv":"b540","./jv.js":"b540","./ka":"201b","./ka.js":"201b","./kk":"6d79","./kk.js":"6d79","./km":"e81d","./km.js":"e81d","./kn":"3e92","./kn.js":"3e92","./ko":"22f8","./ko.js":"22f8","./ku":"2421","./ku.js":"2421","./ky":"9609","./ky.js":"9609","./lb":"440c","./lb.js":"440c","./lo":"b29d","./lo.js":"b29d","./lt":"26f9","./lt.js":"26f9","./lv":"b97c","./lv.js":"b97c","./me":"293c","./me.js":"293c","./mi":"688b","./mi.js":"688b","./mk":"6909","./mk.js":"6909","./ml":"02fb","./ml.js":"02fb","./mn":"958b","./mn.js":"958b","./mr":"39bd","./mr.js":"39bd","./ms":"ebe4","./ms-my":"6403","./ms-my.js":"6403","./ms.js":"ebe4","./mt":"1b45","./mt.js":"1b45","./my":"8689","./my.js":"8689","./nb":"6ce3","./nb.js":"6ce3","./ne":"3a39","./ne.js":"3a39","./nl":"facd","./nl-be":"db29","./nl-be.js":"db29","./nl.js":"facd","./nn":"b84c","./nn.js":"b84c","./oc-lnc":"167b","./oc-lnc.js":"167b","./pa-in":"f3ff","./pa-in.js":"f3ff","./pl":"8d57","./pl.js":"8d57","./pt":"f260","./pt-br":"d2d4","./pt-br.js":"d2d4","./pt.js":"f260","./ro":"972c","./ro.js":"972c","./ru":"957c","./ru.js":"957c","./sd":"6784","./sd.js":"6784","./se":"ffff","./se.js":"ffff","./si":"eda5","./si.js":"eda5","./sk":"7be6","./sk.js":"7be6","./sl":"8155","./sl.js":"8155","./sq":"c8f3","./sq.js":"c8f3","./sr":"cf1e","./sr-cyrl":"13e9","./sr-cyrl.js":"13e9","./sr.js":"cf1e","./ss":"52bd","./ss.js":"52bd","./sv":"5fbd","./sv.js":"5fbd","./sw":"74dc","./sw.js":"74dc","./ta":"3de5","./ta.js":"3de5","./te":"5cbb","./te.js":"5cbb","./tet":"576c","./tet.js":"576c","./tg":"3b1b","./tg.js":"3b1b","./th":"10e8","./th.js":"10e8","./tl-ph":"0f38","./tl-ph.js":"0f38","./tlh":"cf75","./tlh.js":"cf75","./tr":"0e81","./tr.js":"0e81","./tzl":"cf51","./tzl.js":"cf51","./tzm":"c109","./tzm-latn":"b53d","./tzm-latn.js":"b53d","./tzm.js":"c109","./ug-cn":"6117","./ug-cn.js":"6117","./uk":"ada2","./uk.js":"ada2","./ur":"5294","./ur.js":"5294","./uz":"2e8c","./uz-latn":"010e","./uz-latn.js":"010e","./uz.js":"2e8c","./vi":"2921","./vi.js":"2921","./x-pseudo":"fd7e","./x-pseudo.js":"fd7e","./yo":"7f33","./yo.js":"7f33","./zh-cn":"5c3a","./zh-cn.js":"5c3a","./zh-hk":"49ab","./zh-hk.js":"49ab","./zh-mo":"3a6c","./zh-mo.js":"3a6c","./zh-tw":"90ea","./zh-tw.js":"90ea"};function i(e){var t=n(e);return a(t)}function n(e){if(!a.o(s,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return s[e]}i.keys=function(){return Object.keys(s)},i.resolve=n,e.exports=i,i.id="4678"},"49f0":function(e,t,a){},"4a98":function(e,t,a){},"4b63":function(e,t,a){},"4b73":function(e,t,a){},"4b9f":function(e,t,a){},"52be":function(e,t,a){"use strict";var s=a("8053"),i=a.n(s);i.a},"54d2":function(e,t,a){},"56d7":function(e,t,a){"use strict";a.r(t);a("e260"),a("e6cf"),a("cca6"),a("a79d");var s=a("2b0e"),i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{attrs:{id:"app"}},[a("router-view")],1)},n=[],o={name:"App",provide:function(){return{reload:this.reload}},data:function(){return{isAlive:!0}},methods:{reload:function(){this.isAlive=!1,this.$nextTick((function(){this.isAlive=!0}))}}},r=o,l=(a("034f"),a("2877")),c=Object(l["a"])(r,i,n,!1,null,null,null),d=c.exports,u=a("8c4f"),m=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"index",staticStyle:{width:"100%",height:"100%","text-align":"center"},attrs:{id:"app"}},[a("div",{staticClass:"center"},[e._m(0),a("Card",[a("div",{staticStyle:{"text-align":"center"}},[a("Form",{ref:"formInline",attrs:{model:e.formInline,rules:e.ruleInline}},[a("FormItem",{attrs:{prop:"user"}},[a("i-input",{attrs:{type:"text",size:"large",placeholder:"用户名"},on:{"on-focus":e.inputFocus},model:{value:e.formInline.user,callback:function(t){e.$set(e.formInline,"user",t)},expression:"formInline.user"}},[a("Icon",{attrs:{slot:"prepend",type:"ios-person-outline"},slot:"prepend"})],1),e.showPromptUser?a("p",{staticClass:"font-prompt"},[e._v(e._s(e.loginPrompt))]):e._e()],1),a("FormItem",{attrs:{prop:"password"}},[a("i-input",{attrs:{type:"password",size:"large",placeholder:"密码"},on:{"on-focus":e.inputFocus},model:{value:e.formInline.password,callback:function(t){e.$set(e.formInline,"password",t)},expression:"formInline.password"}},[a("Icon",{attrs:{slot:"prepend",type:"ios-lock-outline"},slot:"prepend"})],1),e.showPrompt?a("p",{staticClass:"font-prompt"},[e._v(e._s(e.loginPrompt))]):e._e()],1),a("FormItem",{staticStyle:{"text-align":"left","margin-bottom":"10px"}},[a("Checkbox",{model:{value:e.remember,callback:function(t){e.remember=t},expression:"remember"}},[e._v(" 记住密码")])],1),a("FormItem",[a("Button",{attrs:{loading:e.loading,size:"large",type:"primary",long:!0},on:{click:e.handleSubmit}},[e._v(e._s(e.loginText))])],1)],1)],1)])],1),e._m(1)])},p=[function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticStyle:{height:"110px"}},[a("h1",{staticClass:"ks-font-color",staticStyle:{"font-size":"30px"}},[e._v("优客后台管理")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"flex-row-center reserve-style"},[a("p",[e._v("©上海奇硕网络科技有限公司 │ 沪ICP备05013116号-2")])])}],h=(a("ac1f"),a("1276"),a("498a"),a("d3b7"),a("25f0"),a("3ca3"),a("ddb0"),a("2b3d"),a("bc3a")),f=a.n(h),g=a("4328"),v=a.n(g);function y(){Jn.push("/login")}var S={goToLogin:y};function x(e,t){return new Promise((function(a,s){f.a.get(e,{params:t}).then((function(e){a(e)}),(function(e){s(e)})).catch((function(e){s(e)}))}))}function b(e,t){return new Promise((function(a,s){f.a.post(e,t).then((function(e){a(e)}),(function(e){s(e)})).catch((function(e){s(e)}))}))}function w(e,t){return new Promise((function(a,s){f.a.put(e,t).then((function(e){a(e)}),(function(e){s(e)})).catch((function(e){s(e)}))}))}function C(e,t){return new Promise((function(a,s){f.a.delete(e,t).then((function(e){a(e)}),(function(e){s(e)})).catch((function(e){s(e)}))}))}function A(e,t){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return new Promise((function(s,i){f.a.defaults.headers["content-type"]="application/json;charset=UTF-8",f()({method:"post",url:e,data:a,responseType:"blob"}).then((function(e){s(e.data);var a=new Blob([e.data],{type:"application/zip"});console.log(a);var i=t+".zip";if(window.navigator.msSaveOrOpenBlob)navigator.msSaveBlob(a,i);else{var n=document.createElement("a");n.href=window.URL.createObjectURL(a),n.download=i,n.click(),window.URL.revokeObjectURL(n.href)}}),(function(e){i(e)}))}))}function D(e,t){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=t.split(",");return t=1!=s.length?"店铺发起申请数报表":"零售公司拓客报表",new Promise((function(s,i){f.a.defaults.headers["content-type"]="application/x-www-form-urlencoded;charset=UTF-8",f()({method:"post",url:e,data:a,responseType:"blob"}).then((function(e){s(e.data);var a=new Blob([e.data],{type:"application/vnd.ms-excel"});console.log(a);var i=t+".xls";if(window.navigator.msSaveOrOpenBlob)navigator.msSaveBlob(a,i);else{var n=document.createElement("a");n.href=window.URL.createObjectURL(a),n.download=i,n.click(),window.URL.revokeObjectURL(n.href)}}),(function(e){i(e)}))}))}function I(e,t){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return new Promise((function(s,i){f.a.defaults.headers["content-type"]="application/x-www-form-urlencoded;charset=UTF-8",f()({method:"post",url:e,data:a,responseType:"blob"}).then((function(e){s(e.data);var a=new Blob([e.data],{type:"application/png"});console.log(a);var i=t+".png";if(window.navigator.msSaveOrOpenBlob)navigator.msSaveBlob(a,i);else{var n=document.createElement("a");n.href=window.URL.createObjectURL(a),n.download=i,n.click(),window.URL.revokeObjectURL(n.href)}}),(function(e){i(e)}))}))}function k(e,t,a){return new Promise((function(s,i){f.a.defaults.headers["content-type"]="application/json",f.a.get(e,{params:a,responseType:"blob"}).then((function(e){s({success:!0});var a=new Blob([e.data],{type:"application/vnd.ms-excel"});console.log(a);var i=t+".xls";if(window.navigator.msSaveOrOpenBlob)navigator.msSaveBlob(a,i);else{var n=document.createElement("a");n.href=window.URL.createObjectURL(a),n.download=i,n.click(),window.URL.revokeObjectURL(n.href)}}),(function(e){i(e)}))}))}function M(){return f.a.defaults.baseURL}f.a.defaults.baseURL="/kiisoo-ic",f.a.defaults.timeout=12e4,f.a.defaults.withCredentials=!0,f.a.defaults.headers.post["Content-Type"]="application/x-www-form-urlencoded;charset=UTF-8",f.a.interceptors.request.use((function(e){if(e.headers["X-Requested-With"]="XMLHttpRequest",e.headers["Content-Type"]="application/json;charset=UTF-8;","post"===e.method)if(!0===e.data.isGetActivityInfo)e.headers["Content-Type"]="application/json;charset=UTF-8;";else if("[object FormData]"===Object.prototype.toString.call(e.data))e.headers["Content-Type"]="multipart/form-data";else{e.headers["Content-Type"]="application/x-www-form-urlencoded;charset=UTF-8";var t=v.a.stringify(e.data);e.data=t}return e}),(function(e){return Promise.reject(e)})),f.a.interceptors.response.use((function(e){var t=e.data.results;return"9999"===e.data.code||sessionStorage.getItem("logout")?(S.goToLogin(),Promise.resolve(e)):t?"1001"===t.code||"1002"===t.code||"1003"===t.code||"1004"===t.code||"1005"===t.code||"1006"===t.code||"1007"===t.code||"1009"===t.code||"0001"===t.code||"0000"!==t.code?Promise.resolve(e):e:Promise.resolve(e)}),(function(e){return Promise.reject(e)}));var L={get:x,post:b,downloadZip:A,downloadExcel:D,downloadImg:I,put:w,fetchDelete:C,getBaseUrl:M,downloadFileToExcel:k};function _(e,t,a){return L.get("/login",e).then(t).catch(a)}var Y={login:_},N={name:"Login",data:function(){return{formInline:{user:"",password:""},ruleInline:{user:[{required:!0,message:"请输入用户名",trigger:"blur"}],password:[{required:!0,message:"请输入密码",trigger:"blur"}]},loginPrompt:"",showPrompt:!1,showPromptUser:!1,loading:!1,loginText:"登录",remember:!1}},mounted:function(){this.getCookie()},methods:{inputFocus:function(){this.showPrompt=!1,this.showPromptUser=!1},handleSubmit:function(){this.rememberMe();var e=this;e.setLoading();var t=this.formInline.user.trim(),a=this.formInline.password.trim();if(!t||!a)return e.setNoLoading(),this.formInline.user="",void(this.formInline.password="");var s={login:t,password:a};Y.login(s,(function(t){var a=t.data.code;e.setNoLoading(),"0000"===a?(sessionStorage.setItem("loginInfo",JSON.stringify(t.data.results)),sessionStorage.setItem("userId",t.data.results.userId),sessionStorage.setItem("roleCode",t.data.results.roleCode),e.$router.push("/home"),e.$Message.info("登陆成功")):"0004"===a?e.$Message.info("账号不存在"):"0003"===a?e.$Message.info("密码错误"):"0006"===a?e.$Message.info("该角色没有登录权限"):"1007"===a?e.$Message.info("没有权限"):e.$Message.info("系统繁忙")}),(function(t){e.$Message.error("网络异常,请重试"),e.setNoLoading()}))},setLoading:function(){this.loading=!0,this.loginText="登录中..."},setNoLoading:function(){this.loading=!1,this.loginText="登录"},rememberMe:function(){this.remember?this.setCookie(this.formInline.user,this.formInline.password,30):this.clearCookie()},setCookie:function(e,t,a){var s=new Date;s.setTime(s.getTime()+864e5*a),window.document.cookie="login="+e+";path=/;expires="+s.toGMTString(),window.document.cookie="password="+t+";path=/;expires="+s.toGMTString()},clearCookie:function(){this.setCookie("","",-1)},getCookie:function(){if(document.cookie.length>0)for(var e=document.cookie.split("; "),t=0;t<e.length;t++){var a=e[t].split("=");"login"===a[0]?(this.remember=!0,this.formInline.user=a[1]):"password"===a[0]&&(this.remember=!0,this.formInline.password=a[1])}}}},O=N,E=(a("0b2d"),Object(l["a"])(O,m,p,!1,null,"29476d9b",null)),T=E.exports,V=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticStyle:{"margin-top":"20px"},attrs:{id:"app"}},[a("p",[e._v(e._s(e.data))]),a("p",[e._v(" "+e._s(e.data2)+" ")]),a("img",{attrs:{src:e.data2.qr_code}}),a("p",[e._v(" "+e._s(e.data3)+" ")]),a("img",{attrs:{src:e.data3.qr_code}})])},F=[];function B(e,t){return L.post("/qy/wechat/oauth",e).then(t)}function z(e,t){return L.get("/qy/externalcontact/list",e).then(t)}function $(e,t){return L.get("/qy/externalcontact/contactway",e).then(t)}function R(e,t){return L.post("/qy/externalcontact/add/contactway",e).then(t)}var j={postWechatOauth:B,getExternalContactList:z,getExternalContactWay:$,postExternalcontactAddContactWay:R},P={name:"ExternalContact",data:function(){return{list:[],data:{},data2:{},url:"",data3:{}}},created:function(){var e=this,t={userid:"JiangDeXiang"};j.getExternalContactList(t,(function(t){var a=t.data;if(0==a.errcode){e.data=a;var s=a.external_userid;console.log(s)}}));var a={configId:"a968b279f9029efa25e0e60b585546da"};j.getExternalContactWay(a,(function(t){var a=t.data;0==a.errcode&&(e.data2=a.contact_way,console.log(a))})),j.getExternalContactWay({configId:"048617dd72b4c7e0e887fee8becd755e"},(function(t){var a=t.data;0==a.errcode&&(e.data3=a.contact_way,console.log(a))}))}},U=P,q=Object(l["a"])(U,V,F,!1,null,"52bb342f",null),H=q.exports,G=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"layout"},[s("Layout",{style:{minHeight:"100vh"}},[s("Sider",{attrs:{collapsible:"","collapsed-width":78,"hide-trigger":!0},model:{value:e.isCollapsed,callback:function(t){e.isCollapsed=t},expression:"isCollapsed"}},[s("div",{staticStyle:{margin:"40px 0 20px 10px","font-weight":"bold","font-size":"30px",color:"#ffffff"}},[s("Poptip",{attrs:{placement:"bottom-start",width:"200",offset:-8}},[s("img",{staticStyle:{width:"32px","vertical-align":"middle",cursor:"pointer"},attrs:{src:a("ea97")}}),s("div",{attrs:{slot:"content"},slot:"content"},[s("div",{staticStyle:{cursor:"pointer"},on:{click:e.logoutClick}},[s("span",{staticClass:"logout-span"},[e._v("退出登录")]),s("img",{staticClass:"logout-img",attrs:{src:a("d21d")}})])])]),s("span",{staticClass:"project-title"},[e._v("优客后台管理")])],1),s("Menu",{ref:"menu",attrs:{"active-name":e.selectedItemName,"open-names":e.openName,theme:"dark",width:"auto",accordion:!0},on:{"on-select":e.onSelectLister}},["GLY-ADMIN"===e.roleCode||"DG-YUNYING"===e.roleCode||"GL-YUNYING"===e.roleCode?s("MenuItem",{attrs:{name:0,to:"/customer/view"}},[s("Icon",{attrs:{type:"ios-paper"}}),s("span",{staticStyle:{"margin-left":"7px"}},[e._v("首页")])],1):e._e(),e._l(e.onePermissionList,(function(t){return s("Submenu",{key:t.id,attrs:{name:t.id}},[s("template",{slot:"title"},[s("Icon",{attrs:{type:"ios-paper"}}),e._v(" "+e._s(t.name)+" ")],1),e._l(t.subMenuList,(function(t){return s("MenuItem",{key:t.id,attrs:{name:t.id,to:t.resource}},[e._v(" "+e._s(t.name)+" ")])}))],2)}))],2)],1),s("Layout",[s("Content",{style:{padding:"0 16px 16px"}},[s("Breadcrumb",{style:{margin:"16px 0"}},[s("BreadcrumbItem",[s("span",{staticStyle:{cursor:"pointer"},on:{click:e.breadcrumbClick}},[e._v(e._s(e.selectedMenu))])]),s("BreadcrumbItem",[e._v(e._s(e.selectedSubMenu))])],1),s("Card",[s("div",{style:{"min-height":e.mHeight+"px"}},[s("router-view")],1)])],1)],1)],1)],1)},J=[];a("4de4"),a("4160"),a("b0c0"),a("159b");function Q(e,t){return L.get("/permission/user/login/list",e).then(t)}var Z={listUserLoginPermissionApi:Q},W={provide:function(){return{checkParamBlank:this.checkParamBlank,setMenuName:this.setMenuName}},data:function(){return{roleCode:JSON.parse(sessionStorage.getItem("loginInfo")).roleCode,mainUrl:"/customer/view",isCollapsed:!1,mHeight:600,selectedItemName:"",openName:[],selectedMenu:"",selectedSubMenu:"",onePermissionLevel:1,twoPermissionLevel:2,threePermissionLevel:3,onePermissionList:[],twoPermissionList:[],threePermissionList:[],breadcrumbUrl:""}},mounted:function(){var e=this;this.bus.$on("callBack",(function(t){e.callBack(t)}))},created:function(){this.listOnePermission(this.onePermissionLevel)},computed:{},watch:{selectedItemName:function(e){console.log(e);var t=this;this.$nextTick((function(){t.$refs.menu.updateActiveName()}))}},methods:{onSelectLister:function(e){var t;this.onePermissionList.forEach((function(a){a.subMenuList.forEach((function(a){a.id===e&&(t=a)}))})),t&&sessionStorage.setItem("threeLevel",JSON.stringify(t.subMenuList)),0===e&&(this.selectedMenu="首页",this.selectedSubMenu="",this.breadcrumbUrl=this.mainUrl);for(var a=0;a<this.onePermissionList.length;a++)for(var s=this.onePermissionList[a],i=0;i<s.subMenuList.length;i++){var n=s.subMenuList[i];n.id===e&&(this.selectedMenu=s.name,this.selectedSubMenu=n.name,this.selectedItemName=n.id,this.breadcrumbUrl=n.resource)}},checkParamBlank:function(e){for(var t in e)e[t]=this.checkBlank(e[t])},checkBlank:function(e){return e||0==e?e:"--"},listOnePermission:function(e){var t=this,a=JSON.parse(sessionStorage.getItem("loginInfo")).userId,s={userId:a,level:e};Z.listUserLoginPermissionApi(s,(function(e){if(e=e.data,"0001"!==e.code){if("0000"===e.code){e=e.results;for(var a=0;a<e.length;a++){var s=e[a];s.class="head-permission",t.onePermissionList.push(s)}t.listTwoPermission(t.twoPermissionLevel)}}else t.$Message.error("查询用户权限出错")}))},listTwoPermission:function(e){var t=JSON.parse(sessionStorage.getItem("loginInfo")).userId,a=this;a.twoPermissionList=[];var s={userId:t,level:e};Z.listUserLoginPermissionApi(s,(function(e){if(e=e.data,"0001"!==e.code){if("0000"===e.code){e=e.results,a.twoPermissionList=[];for(var t=0;t<e.length;t++){var s=e[t];a.twoPermissionList.push(s)}a.listThreePermission(a.threePermissionLevel)}}else a.$Message.error("查询用户权限出错")}))},listThreePermission:function(e){var t=JSON.parse(sessionStorage.getItem("loginInfo")).userId,a=this;a.threePermissionList=[];var s={userId:t,level:e};Z.listUserLoginPermissionApi(s,(function(e){if(e=e.data,"0001"!==e.code){if("0000"===e.code){e=e.results,a.threePermissionList=[];for(var t=0;t<e.length;t++){var s=e[t];a.threePermissionList.push(s)}a.twoPermissionList.forEach((function(e){var t=a.threePermissionList.filter((function(t){return t.pid===e.id}));e.subMenuList=t})),a.onePermissionList.forEach((function(e){var t=a.twoPermissionList.filter((function(t){return t.pid===e.id}));e.subMenuList=t})),a.menuInit()}}else a.$Message.error("查询用户权限出错")}))},menuInit:function(){var e=this;"GLY-ADMIN"===this.roleCode||"DG-YUNYING"===this.roleCode||"GL-YUNYING"===this.roleCode?(e.selectedItemName=0,this.$router.push({path:e.mainUrl}),this.selectedMenu="首页",this.breadcrumbUrl=this.mainUrl):(e.selectedItemName=e.onePermissionList[0].subMenuList[0].id,e.openName=[e.onePermissionList[0].id],this.selectedMenu=this.onePermissionList[0].name,this.selectedSubMenu=this.onePermissionList[0].subMenuList[0].name,sessionStorage.setItem("threeLevel",JSON.stringify(this.onePermissionList[0].subMenuList[0].subMenuList)),this.$router.push({path:e.onePermissionList[0].subMenuList[0].resource}))},callBack:function(e){this.selectedMenu="设置管理",this.selectedSubMenu="账户管理",this.selectedItemName=this.onePermissionList[2].subMenuList[0].id,this.$router.push({path:"/account/manager",query:e})},setHeader:function(e){var t=this;this.selectedSubMenu=e.header,this.$nextTick((function(){t.$refs.menu.updateActiveName()}))},setMenuName:function(e,t){this.selectedMenu=e,this.selectedSubMenu=t},breadcrumbClick:function(){"首页"===this.selectedMenu&&(this.selectedSubMenu=""),this.$router.push(this.breadcrumbUrl)},logoutClick:function(){sessionStorage.setItem("loginInfo",""),sessionStorage.setItem("userId",""),sessionStorage.setItem("roleCode",""),this.$router.push("/login"),this.$Message.info("登出成功")}}},K=W,X=(a("74cd"),Object(l["a"])(K,G,J,!1,null,"d1506bf6",null)),ee=X.exports,te=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"div-page"},[[a("Row",{staticClass:"search-row"},[a("i-col",{attrs:{span:"18"}},[a("span",{staticClass:"search-span"},[e._v("账户名")]),a("i-input",{staticClass:"search-select",attrs:{placeholder:"搜索用户名/账户"},model:{value:e.searchContent,callback:function(t){e.searchContent=t},expression:"searchContent"}}),a("span",{staticClass:"search-span"},[e._v("角色")]),a("Select",{staticClass:"left-15 search-select",attrs:{filterable:"",placeholder:"请选择角色"},model:{value:e.changeRoleId,callback:function(t){e.changeRoleId=t},expression:"changeRoleId"}},e._l(e.roleList,(function(t){return a("Option",{key:t.id,attrs:{value:t.id}},[e._v(e._s(t.name))])})),1),a("span",{staticClass:"search-span"},[e._v("店铺")]),a("Select",{staticClass:"left-15 search-select",attrs:{filterable:"",placeholder:"请选择店铺"},model:{value:e.changeShopId,callback:function(t){e.changeShopId=t},expression:"changeShopId"}},e._l(e.shopList,(function(t){return a("Option",{key:t.name,attrs:{value:t.id}},[e._v(e._s(t.name))])})),1),a("Button",{staticClass:"search-btn",attrs:{type:"primary"},on:{click:e.listAccountInfoFunction}},[e._v("查询")])],1),a("i-col",{staticClass:"search-btn-add-row",attrs:{span:"6"}},[a("Button",{attrs:{type:"primary"},on:{click:function(t){return e.addOneAccount()}}},[e._v("+添加账户 ")])],1)],1)],a("Table",{staticClass:"table-account",attrs:{loading:e.loading,columns:e.columns1,data:e.data1,size:"small"}}),a("Page",{attrs:{total:e.totalSize,current:e.pageNum,"page-size":e.pageSize,"show-elevator":"","show-total":"",placement:"top","class-name":"ks-page"},on:{"on-change":e.handlePage}}),a("Modal",{attrs:{title:"删除提示",align:"center"},on:{"on-cancel":e.cancel},model:{value:e.modal13,callback:function(t){e.modal13=t},expression:"modal13"}},[a("p",{staticStyle:{"margin-top":"20px","margin-bottom":"20px"}},[e._v("确定要删除此账户吗?删除后不可恢复")]),a("div",{staticStyle:{"text-align":"center","margin-bottom":"10px","margin-top":"10px"},attrs:{slot:"footer"},slot:"footer"},[a("Button",{staticStyle:{width:"100px"},on:{click:function(t){e.modal13=!1}}},[e._v("取消删除")]),a("Button",{staticStyle:{width:"100px","margin-left":"20px"},attrs:{type:"error"},on:{click:e.ok}},[e._v("确认删除")])],1)])],2)},ae=[];function se(e,t){return L.post("account/info/list",e).then(t)}function ie(e,t){return L.post("account/remove",e).then(t)}function ne(e,t,a){return L.get("/poi/store/all/list",e).then(t).catch(a)}function oe(e,t){return L.get("/role/info/list",e).then(t)}var re={listAccountInfoApi:se,removeAccountApi:ie,listAllShopApi:ne,listRoleInfoApi:oe},le={data:function(){var e=this;return{loading:!1,modal13:!1,roleList:[{id:"0",name:"全部"},{id:"1",name:"系统管理员"},{id:"2",name:"运营人员"},{id:"3",name:"店长"},{id:"4",name:"导购"}],shopList:[],columns1:[{type:"index2",width:80,title:"序号",align:"center",render:function(t,a){return t("span",a.index+(e.pageNum-1)*e.pageSize+1)}},{title:"用户名",key:"userName"},{title:"别名",key:"abbreviation"},{title:"系统账号",key:"account"},{title:"手机号",key:"mobil"},{title:"系统角色",key:"roleName"},{title:"零售公司",key:"companyName"},{title:"店铺",key:"shopName"},{title:"店铺编码",key:"shopCode"},{title:"操作",key:"operation",render:function(t,a){var s=e;return t("div",[t("span",{style:{background:"white",border:"0",color:"#3496EB",marginRight:"15px",cursor:"pointer"},on:{click:function(){e.$router.push({path:"/account/management/modify",query:{accountId:a.row.accountId,userId:a.row.userId,userName:a.row.userName,account:a.row.account,password:a.row.password,confirmPassword:a.row.confirmPassword,roleId:a.row.roleId,roleCode:a.row.roleCode,shopId:a.row.shopId,companyId:a.row.orgId,mobil:a.row.mobil}})}}},"修改"),t("span",{style:{background:"white",border:"0",color:"red",marginRight:"15px",cursor:"pointer"},on:{click:function(){s.modal13=!0,s.updateAccountId=s.data1[a.index].accountId,s.updateUserId=s.data1[a.index].userId}}},"删除")])}}],data1:[],roleId:"",shopId:"",totalSize:0,pageNum:1,pageSize:10,searchContent:null,changeShopId:null,changeRoleId:null,updateAccountId:0,updateUserId:0,item:null}},mounted:function(){this.listRoleInfo(),this.listOfShop(),this.enterKeyup()},methods:{handlePage:function(e){this.pageNum=e,this.listAccountInfoFunction()},addOneAccount:function(){this.$router.push({path:"/account/management/add"})},listRoleInfo:function(){var e=this;e.roleList=[],re.listRoleInfoApi({},(function(t){if(t=t.data,"0001"!==t.code){if("0000"===t.code){t=t.results,e.roleList.push({id:"0",name:"全部"});for(var a=0;a<t.length;a++){var s=t[a];e.roleList.push(s)}null!=e.$route.query?(e.item=e.$route.query,void 0===e.item.id?e.changeRoleId="0":e.changeRoleId=e.item.id):e.changeRoleId="0",e.listAccountInfoFunction()}}else e.$Message.error("查询角色失败!")}))},listOfShop:function(){var e=this;this.loading=!0,e.shopList=[];var t={userId:JSON.parse(sessionStorage.getItem("loginInfo")).userId};re.listAllShopApi(t,(function(t){if(t=t.data,e.loading=!1,"0001"!==t.code){if("0000"===t.code){e.shopList.push({id:"-1",name:"全部"}),e.changeShopId="-1",t=t.results;for(var a=0;a<t.length;a++){var s=t[a];e.shopList.push(s)}}}else e.$Message.error("查询店铺失败!")}),(function(){e.loading=!1}))},listAccountInfoFunction:function(){var e=this,t=e.changeRoleId;"0"===e.changeRoleId&&(t=null);var a=e.changeShopId;"-1"===e.changeShopId&&(a=null);var s={searchContent:e.searchContent,pageNum:e.pageNum,pageSize:e.pageSize,roleId:t,shopId:a};re.listAccountInfoApi(s,(function(t){if(e.data1=[],t=t.data,"0001"!==t.code){if("0000"===t.code&&t){var a=t.results.records;e.totalSize=t.results.total;for(var s=0;s<a.length;s++){var i=a[s];i.channel||(i.channel="--"),i.account||(i.account="--"),i.userName||(i.userName="--"),i.roleName||(i.roleName="--"),i.shopName||(i.shopName="--"),e.data1.push(i)}null!==a&&0!==a.length||(e.totalSize=0)}}else e.$Message.error("系统繁忙!")}))},remove:function(){var e=this,t={accountId:e.updateAccountId,userId:e.updateUserId};re.removeAccountApi(t,(function(t){"0001"!==t.data.code?"0000"===t.data.code&&(e.$Message.info("删除成功"),e.pageNum=1,e.listAccountInfoFunction()):e.$Message.info("删除失败")}))},cancel:function(){},ok:function(){this.modal13=!1,this.remove()},enterKeyup:function(){document.addEventListener("keyup",this.buttonOperation)},buttonOperation:function(){var e=event.keyCode?event.keyCode:event.which?event.which:event.charCode;(13===e||13!==e&&1===e)&&(this.pageNum=1,this.listAccountInfoFunction())}}},ce=le,de=(a("089d"),Object(l["a"])(ce,te,ae,!1,null,"56d06336",null)),ue=de.exports,me=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("row",{staticStyle:{"margin-left":"30px","margin-top":"30px"}},[a("div",{staticStyle:{"text-align":"left"}},[a("span",{staticClass:"title-font"},[e._v("用户信息")])]),a("div",{staticStyle:{"text-align":"left","margin-top":"20px"}},[a("Form",{ref:"addFrom",staticStyle:{"text-align":"left"},attrs:{model:e.addFrom,rules:e.addValidate}},[a("Form-Item",{attrs:{prop:"userName"}},[a("span",{staticClass:"name-font",staticStyle:{width:"80px",display:"inline-block"}},[e._v("用户名")]),a("i-input",{staticStyle:{width:"300px"},attrs:{placeholder:"请输入用户名"},model:{value:e.addFrom.userName,callback:function(t){e.$set(e.addFrom,"userName",t)},expression:"addFrom.userName"}})],1),a("Form-Item",{attrs:{prop:"account"}},[a("span",{staticClass:"name-font",staticStyle:{width:"80px",display:"inline-block"}},[e._v("账号")]),a("i-input",{staticStyle:{width:"300px"},attrs:{placeholder:"请输入账号"},model:{value:e.addFrom.account,callback:function(t){e.$set(e.addFrom,"account",t)},expression:"addFrom.account"}})],1),a("Form-Item",{attrs:{prop:"mobil"}},[a("span",{staticClass:"name-font",staticStyle:{width:"80px",display:"inline-block"}},[e._v("手机号")]),a("i-input",{staticStyle:{width:"300px"},attrs:{placeholder:"请输入手机号"},model:{value:e.addFrom.mobil,callback:function(t){e.$set(e.addFrom,"mobil",t)},expression:"addFrom.mobil"}})],1),a("Form-Item",{attrs:{prop:"password"}},[a("span",{staticClass:"name-font",staticStyle:{width:"80px",display:"inline-block"}},[e._v("密码")]),a("i-input",{staticStyle:{width:"300px"},attrs:{type:"text",placeholder:"默认密码123456"},model:{value:e.addFrom.password,callback:function(t){e.$set(e.addFrom,"password",t)},expression:"addFrom.password"}})],1),a("Form-Item",{attrs:{prop:"confirmPassword"}},[a("span",{staticClass:"name-font",staticStyle:{width:"80px",display:"inline-block"}},[e._v("确认密码")]),a("i-input",{staticStyle:{width:"300px"},attrs:{type:"text",placeholder:"请确认密码"},model:{value:e.addFrom.confirmPassword,callback:function(t){e.$set(e.addFrom,"confirmPassword",t)},expression:"addFrom.confirmPassword"}})],1)],1)],1),a("div",{staticStyle:{"text-align":"left","margin-top":"30px"}},[a("span",{staticClass:"title-font"},[e._v("角色信息")])]),a("div",{staticStyle:{"text-align":"left",margin:"30px 0 0 30px"}},e._l(e.roleList,(function(t){return a("RadioGroup",{key:t.id,staticStyle:{"margin-left":"15px"},on:{"on-change":function(a){return e.roleChange(t)}},model:{value:e.addFrom.roleId,callback:function(t){e.$set(e.addFrom,"roleId",t)},expression:"addFrom.roleId"}},[a("Radio",{attrs:{label:t.id}},[e._v(e._s(t.name))])],1)})),1),e.shopSelectDisplay?a("div",{staticStyle:{"margin-top":"40px"}},[a("span",{staticClass:"name-font",staticStyle:{width:"80px",display:"inline-block"}},[e._v("店铺")]),a("Select",{staticClass:"select-head",staticStyle:{width:"300px"},attrs:{clearable:"",placeholder:"请选择店铺",filterable:""},model:{value:e.addFrom.shopId,callback:function(t){e.$set(e.addFrom,"shopId",t)},expression:"addFrom.shopId"}},e._l(e.shopList,(function(t){return a("Option",{key:t.id,attrs:{value:t.id}},[e._v(e._s(t.name))])})),1)],1):e._e(),e.companySelectDisplay?a("div",{staticStyle:{"margin-top":"40px"}},[a("span",{staticClass:"name-font",staticStyle:{width:"80px",display:"inline-block"}},[e._v("零售公司")]),a("Select",{staticStyle:{width:"300px"},attrs:{filterable:""},model:{value:e.addFrom.companyId,callback:function(t){e.$set(e.addFrom,"companyId",t)},expression:"addFrom.companyId"}},e._l(e.companyList,(function(t){return a("Option",{key:t.id,attrs:{value:t.id}},[e._v(e._s(t.name))])})),1)],1):e._e(),a("row",{staticStyle:{"margin-top":"40px"}},[a("Button",{staticStyle:{height:"39px",width:"101px"},attrs:{type:"primary"},on:{click:function(t){return e.addAccountConfirm()}}},[e._v("完成")]),a("Button",{staticStyle:{height:"39px",width:"101px",border:"0"},on:{click:function(t){return e.addAccountCancel()}}},[e._v("返回")])],1)],1)},pe=[];function he(e,t){return L.get("account/shop/list",e).then(t)}function fe(e,t){return L.post("account/save",e).then(t)}var ge={listShopApi:he,saveAccountInputApi:fe};function ve(e,t){return L.get("/retail/company",e).then(t)}function ye(e,t){return L.get("/retail/store/company",e).then(t)}function Se(e,t){return L.get("/retail/seller/store",e).then(t)}function xe(e,t){return L.get("/retail/retail",e).then(t)}function be(e,t){return L.get("/retail/store",e).then(t)}function we(e,t){return L.get("/retail/seller",e).then(t)}function Ce(e,t){return L.post("/poi/store/user/shop",e).then(t)}function Ae(e,t){return L.post("/poi/seller/user/seller",e).then(t)}var De={listOfRetailCompany:ve,listOfStoreByCompany:ye,listOfSellerByStore:Se,generalizeOfRetail:xe,generalizeOfStore:be,generalizeOfSeller:we,storeInit:Ce,sellerInit:Ae},Ie={data:function(){return{name:"accountManagementAdd",addFrom:{userName:null,roleId:null,account:null,password:"123456",confirmPassword:"123456",shopId:null,type:null,companyId:null,mobil:null},addValidate:{userName:[{required:!0,message:"用户名不能为空",trigger:"blur"},{min:1,max:8,message:"长度在 1 到 8 个字符",trigger:"blur"},{pattern:/^[\u4e00-\u9fa5_0-9a-zA-Z]+$/,message:"只可以输入数字,字母,中文",trigger:"blur"}],account:[{required:!0,message:"账号不能为空",trigger:"blur"},{min:2,max:8,message:"长度在 2 到 8 个字符",trigger:"blur"},{pattern:/^[0-9a-zA-Z]*$/g,message:"只可以输入数字和字母",trigger:"blur"}],mobil:[{pattern:/^[0-9]*$/g,message:"只可以输入数字",trigger:"blur"}],password:[{required:!0,message:"密码不能为空",trigger:"blur"},{min:6,max:18,message:"长度在 6 到 18 个字符",trigger:"blur"},{pattern:/^[0-9a-zA-Z]*$/g,message:"只可以输入数字和字母",trigger:"blur"}],confirmPassword:[{required:!0,message:"确认密码不能为空",trigger:"blur"},{min:6,max:18,message:"长度在 6 到 18 个字符",trigger:"blur"},{pattern:/^[0-9a-zA-Z]*$/g,message:"只可以输入数字和字母",trigger:"blur"}]},roleList:[{id:1,name:"系统管理员"},{id:2,name:"运营人员"},{id:3,name:"店长"}],shopList:[{id:3,name:"店长"}],shopSelectDisplay:!1,companyList:[],companySelectDisplay:!1}},mounted:function(){this.bus.$emit("setHeader",{header:"添加账户"}),this.listRoleInfo()},methods:{listRoleInfo:function(){var e=this;e.roleList=[],re.listRoleInfoApi({},(function(t){if(t=t.data,"0001"!==t.code){if("0000"===t.code)for(var a=t.results,s=0;s<a.length;s++)e.roleList.push(a[s])}else e.$Message.error("查询角色失败!")}))},addAccountConfirm:function(){var e=this;this.addFrom.userName&&(this.addFrom.userName=this.addFrom.userName.trim()),this.addFrom.password&&(this.addFrom.password=this.addFrom.password.trim()),this.addFrom.confirmPassword&&(this.addFrom.confirmPassword=this.addFrom.confirmPassword.trim()),this.addFrom.account&&(this.addFrom.account=this.addFrom.account.trim()),this.$refs["addFrom"].validate((function(t){if(t)if(!e.shopSelectDisplay||e.addFrom.shopId)if(e.addFrom.roleId)if(e.addFrom.confirmPassword===e.addFrom.password){var a=e,s={addFrom:JSON.stringify(a.addFrom)};ge.saveAccountInputApi(s,(function(e){e=e.data,"0001"!==e.code?"0002"!==e.code?"0000"===e.code&&("0001"==e.results?a.$Message.error("添加失败!"):"0002"==e.results?a.$Message.error("该工号已经被使用!"):"0003"==e.results?a.$Message.error("该手机号已经被使用!"):"0004"==e.results?a.$Message.error("该账号已经被使用!"):"0000"==e.results&&(a.$Message.success("保存账号成功"),a.$router.push({path:"/account/manager"}))):a.$Message.info("账号已经存在(登录账号不能重复)"):a.$Message.error("保存账号失败")}))}else e.$Message.info("两次输入密码必须一致");else e.$Message.info("必须选择角色");else e.$Message.info("店长必须选择店铺")}))},addAccountCancel:function(){this.$router.push({path:"/account/manager"})},roleChange:function(e){"DZ-DIANZHANG"===e.code?(this.shopSelectDisplay=!0,this.companySelectDisplay=!1,this.addFrom.companyId=null,this.addFrom.type=1,this.listOfShop()):"DG-DAOGOU"===e.code?(this.shopSelectDisplay=!0,this.companySelectDisplay=!1,this.addFrom.companyId=null,this.addFrom.type=4,this.listOfShop()):"DG-YUNYING"===e.code?(this.companySelectDisplay=!0,this.shopSelectDisplay=!1,this.addFrom.type=3,this.allCompany()):"GL-YUNYING"===e.code?(this.companySelectDisplay=!1,this.shopSelectDisplay=!1,this.addFrom.type=2):(this.shopSelectDisplay=!1,this.addFrom.shopId=null,this.addFrom.companyId=null)},listOfShop:function(){var e=this;e.shopList=[];var t={userId:JSON.parse(sessionStorage.getItem("loginInfo")).userId};re.listAllShopApi(t,(function(t){if(t=t.data,"0001"!==t.code){if("0000"===t.code)for(var a=t.results,s=0;s<a.length;s++)e.shopList.push(a[s])}else e.$Message.error("查询店铺失败!")}))},allCompany:function(){var e=this,t={userId:JSON.parse(sessionStorage.getItem("loginInfo")).userId};this.companyList=[],De.listOfRetailCompany(t,(function(t){t=t.data,"0001"!==t.code?"0000"===t.code&&t.results.forEach((function(t){e.companyList.push(t)})):e.$Message.error("查询零售公司出错!")}))}}},ke=Ie,Me=(a("8141"),Object(l["a"])(ke,me,pe,!1,null,"8ae02f62",null)),Le=Me.exports,_e=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("row",{staticStyle:{"margin-left":"30px","margin-top":"30px"}},[a("div",{staticStyle:{"text-align":"left"}},[a("span",{staticClass:"title-font"},[e._v("用户信息")])]),a("div",{staticStyle:{"text-align":"left","margin-top":"20px"}},[a("Form",{ref:"modifyFrom",staticStyle:{"text-align":"left"},attrs:{model:e.modifyFrom,rules:e.modifyValidate}},[a("Form-Item",{attrs:{prop:"userName"}},[a("span",{staticClass:"name-font",staticStyle:{width:"80px",display:"inline-block"}},[e._v("用户名")]),a("i-input",{staticStyle:{width:"300px"},attrs:{placeholder:"请输入用户名"},model:{value:e.modifyFrom.userName,callback:function(t){e.$set(e.modifyFrom,"userName",t)},expression:"modifyFrom.userName"}})],1),a("Form-Item",{attrs:{prop:"account"}},[a("span",{staticClass:"name-font",staticStyle:{width:"80px",display:"inline-block"}},[e._v("账号")]),a("i-input",{staticStyle:{width:"300px"},attrs:{disabled:"",placeholder:"请输入账号"},model:{value:e.modifyFrom.account,callback:function(t){e.$set(e.modifyFrom,"account",t)},expression:"modifyFrom.account"}})],1),a("Form-Item",{attrs:{prop:"mobil"}},[a("span",{staticClass:"name-font",staticStyle:{width:"80px",display:"inline-block"}},[e._v("手机号")]),a("i-input",{staticStyle:{width:"300px"},attrs:{placeholder:"请输入手机号"},model:{value:e.modifyFrom.mobil,callback:function(t){e.$set(e.modifyFrom,"mobil",t)},expression:"modifyFrom.mobil"}})],1),a("Form-Item",{attrs:{prop:"password"}},[a("span",{staticClass:"name-font",staticStyle:{width:"80px",display:"inline-block"}},[e._v("密码")]),a("i-input",{staticStyle:{width:"300px"},attrs:{placeholder:"请输入密码",type:"password"},on:{"on-change":e.check},model:{value:e.modifyFrom.password,callback:function(t){e.$set(e.modifyFrom,"password",t)},expression:"modifyFrom.password"}})],1),a("Form-Item",{attrs:{prop:"confirmPassword"}},[a("span",{staticClass:"name-font",staticStyle:{width:"80px",display:"inline-block"}},[e._v("确认密码")]),a("i-input",{staticStyle:{width:"300px"},attrs:{placeholder:"请确认密码",type:"password"},model:{value:e.modifyFrom.confirmPassword,callback:function(t){e.$set(e.modifyFrom,"confirmPassword",t)},expression:"modifyFrom.confirmPassword"}})],1)],1)],1),a("div",{staticStyle:{"text-align":"left","margin-top":"30px"}},[a("span",{staticClass:"title-font"},[e._v("角色信息")])]),a("div",{staticStyle:{"text-align":"left",margin:"30px 0 0 30px"}},e._l(e.roleList,(function(t){return a("RadioGroup",{key:t.id,staticStyle:{"margin-left":"15px"},on:{"on-change":function(a){return e.roleChange(t)}},model:{value:e.modifyFrom.roleId,callback:function(t){e.$set(e.modifyFrom,"roleId",t)},expression:"modifyFrom.roleId"}},[a("Radio",{attrs:{label:t.id}},[e._v(e._s(t.name))])],1)})),1),e.shopSelectDisplay?a("div",{staticStyle:{"margin-top":"40px"}},[a("span",{staticClass:"name-font",staticStyle:{width:"80px",display:"inline-block"}},[e._v("店铺")]),a("Select",{staticClass:"select-head",staticStyle:{width:"300px"},attrs:{clearable:"",placeholder:"请选择店铺",filterable:""},model:{value:e.modifyFrom.shopId,callback:function(t){e.$set(e.modifyFrom,"shopId",t)},expression:"modifyFrom.shopId"}},e._l(this.shopList,(function(t){return a("Option",{key:t.id,attrs:{value:t.id}},[e._v(e._s(t.name))])})),1)],1):e._e(),e.companySelectDisplay?a("div",{staticStyle:{"margin-top":"40px"}},[a("span",{staticClass:"name-font",staticStyle:{width:"80px",display:"inline-block"}},[e._v("零售公司")]),a("Select",{staticStyle:{width:"300px"},attrs:{filterable:""},model:{value:e.modifyFrom.companyId,callback:function(t){e.$set(e.modifyFrom,"companyId",t)},expression:"modifyFrom.companyId"}},e._l(e.companyList,(function(t){return a("Option",{key:t.id,attrs:{value:t.id}},[e._v(e._s(t.name))])})),1)],1):e._e(),a("div",{staticStyle:{"margin-top":"40px"}},[a("Button",{staticStyle:{height:"39px",width:"101px"},attrs:{type:"primary"},on:{click:function(t){return e.modifyAccountConfirm()}}},[e._v("完成")]),a("Button",{staticStyle:{height:"39px",width:"101px",border:"0"},on:{click:function(t){return e.modifyAccountcancel()}}},[e._v("返回")])],1)])},Ye=[];function Ne(e,t){return L.post("account/modify",e).then(t)}function Oe(e,t){return L.get("poi/store/all/list",e).then(t)}var Ee={modifyAccountApi:Ne,listShopApi:Oe},Te={data:function(){return{companyList:[],companySelectDisplay:!1,name:"accountManagementModify",modifyFrom:{accountId:this.$route.query.accountId,userId:this.$route.query.userId,userName:this.$route.query.userName,account:this.$route.query.account,password:this.$route.query.password,confirmPassword:this.$route.query.password,roleId:this.$route.query.roleId,shopId:this.$route.query.shopId,type:this.$route.query.type,companyId:this.$route.query.companyId,mobil:this.$route.query.mobil},passwordCheck:[{required:!0,message:"密码不能为空",trigger:"blur"},{min:6,max:18,message:"长度在 6 到 18 个字符",trigger:"blur"},{pattern:/^[0-9a-zA-Z]*$/g,message:"只可以输入数字和字母",trigger:"blur"}],confirmPasswordCheck:[{required:!0,message:"确认密码不能为空",trigger:"blur"},{min:6,max:18,message:"长度在 6 到 18 个字符",trigger:"blur"},{pattern:/^[0-9a-zA-Z]*$/g,message:"只可以输入数字和字母",trigger:"blur"}],modifyValidate:{mobil:[{pattern:/^[0-9]*$/g,message:"只可以输入数字",trigger:"blur"}],userName:[{required:!0,message:"用户名不能为空",trigger:"blur"},{min:1,max:8,message:"长度在 1 到 8 个字符",trigger:"blur"},{pattern:/^[\u4e00-\u9fa5_0-9a-zA-Z]+$/,message:"只可以输入数字,字母,中文",trigger:"blur"}],account:[{required:!0,message:"账号不能为空",trigger:"blur"},{min:2,max:8,message:"长度在 2 到 8 个字符",trigger:"blur"},{pattern:/^[0-9a-zA-Z]*$/g,message:"只可以输入数字和字母",trigger:"blur"}],password:null,confirmPassword:null},selectRole:this.$route.query.roleId,roleList:[],shopList:[],shopSelectDisplay:!1}},mounted:function(){"DZ-DIANZHANG"===this.$route.query.roleCode?(this.shopSelectDisplay=!0,this.modifyFrom.type=1,this.modifyFrom.companyId=null,this.listShop()):"DG-DAOGOU"===this.$route.query.roleCode?(this.shopSelectDisplay=!0,this.modifyFrom.type=4,this.modifyFrom.companyId=null,this.listShop()):"DG-YUNYING"===this.$route.query.roleCode&&(this.companySelectDisplay=!0,this.shopSelectDisplay=!1,this.modifyFrom.type=2,this.allCompany()),this.listRole()},methods:{listRole:function(){var e=this;e.roleList=[],re.listRoleInfoApi({},(function(t){if(t=t.data,"0001"!==t.code){if("0000"===t.code)for(var a=t.results,s=0;s<a.length;s++)e.roleList.push(a[s])}else e.$Message.error("查询失败")}))},modifyAccountConfirm:function(){var e=this;this.modifyFrom.userName&&(this.modifyFrom.userName=this.modifyFrom.userName.trim()),this.modifyFrom.password&&(this.modifyFrom.password=this.modifyFrom.password.trim()),this.modifyFrom.confirmPassword&&(this.modifyFrom.confirmPassword=this.modifyFrom.confirmPassword.trim()),this.modifyFrom.account&&(this.modifyFrom.account=this.modifyFrom.account.trim()),this.$refs["modifyFrom"].validate((function(t){if(t)if(!e.shopSelectDisplay||e.modifyFrom.shopId)if(e.modifyFrom.roleId)if(e.modifyFrom.confirmPassword===e.modifyFrom.password){var a=e,s={modifyForm:JSON.stringify(a.modifyFrom)};Ee.modifyAccountApi(s,(function(e){e=e.data,"0001"!==e.code?"0002"!==e.code?"0000"===e.code&&("0001"==e.results?a.$Message.error("添加失败!"):3==e.results||2==e.results?a.$Message.error("该手机号已经被使用!"):1==e.results?a.$Message.error("该账号已经被使用!"):0==e.results&&(a.$Message.success("修改账号成功"),a.$router.push({path:"/account/manager"}))):a.$Message.info("账号已经存在(登录账号不能重复)"):a.$Message.error("修改账号失败")}))}else e.$Message.info("两次输入密码必须一致");else e.$Message.info("必须选择角色");else e.$Message.info("必须选择店铺")}))},modifyAccountcancel:function(){this.$router.push({path:"/account/manager"})},roleChange:function(e){"DZ-DIANZHANG"===e.code?(this.shopSelectDisplay=!0,this.modifyFrom.type=1,this.companySelectDisplay=!1,this.modifyFrom.companyId=null,this.listShop()):"DG-DAOGOU"===e.code?(this.shopSelectDisplay=!0,this.modifyFrom.type=4,this.companySelectDisplay=!1,this.modifyFrom.companyId=null,this.listShop()):"DG-YUNYING"===e.code?(this.companySelectDisplay=!0,this.shopSelectDisplay=!1,this.modifyFrom.type=2,this.allCompany()):"GL-YUNYING"===e.code?(this.companySelectDisplay=!1,this.shopSelectDisplay=!1,this.addFrom.type=2):(this.shopSelectDisplay=!1,this.modifyFrom.shopId=null,this.modifyFrom.companyId=null)},listShop:function(){var e=this;e.shopList=[],Ee.listShopApi({},(function(t){if(t=t.data,"0001"!==t.code){if("0000"===t.code)for(var a=t.results,s=0;s<a.length;s++)e.shopList.push(a[s])}else e.$Message.error("查询店铺失败")}))},check:function(){this.modifyValidate.password=this.passwordCheck,this.modifyValidate.confirmPassword=this.confirmPasswordCheck},allCompany:function(){var e=this,t={userId:JSON.parse(sessionStorage.getItem("loginInfo")).userId};this.companyList=[],De.listOfRetailCompany(t,(function(t){t=t.data,"0001"!==t.code?"0000"===t.code&&t.results.forEach((function(t){e.companyList.push(t)})):e.$Message.error("查询零售公司出错!")}))}}},Ve=Te,Fe=(a("52be"),Object(l["a"])(Ve,_e,Ye,!1,null,"07c6af1b",null)),Be=Fe.exports,ze=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("Row",{staticStyle:{"text-align":"center","margin-bottom":"20px"}},[a("p",[e._v(" 导入说明:请下载模板,然后将资料填到模板中 "),a("a",{attrs:{href:"../../../static/excel/批量账户导入.xls",download:""}},[e._v("下载模板")])])]),a("Upload",{attrs:{multiple:"",type:"drag",action:"",data:e.data,"on-success":e.upSuccess,"on-error":e.upError}},[a("div",{staticStyle:{padding:"20px 0"}},[a("Icon",{staticStyle:{color:"#3399ff"},attrs:{type:"ios-cloud-upload",size:"70"}}),a("p",[e._v("将文件拖拽到此区域")])],1)]),a("Table",{staticStyle:{"margin-top":"30px"},attrs:{columns:e.columns1,data:e.data1}})],1)},$e=[],Re={data:function(){return{data:{userId:JSON.parse(sessionStorage.getItem("loginInfo")).userId},columns1:[{title:"序号",type:"index",width:100,align:"center"},{title:"错误信息",key:"error",align:"center"}],data1:[]}},mounted:function(){},methods:{upSuccess:function(e,t,a){if(console.log("1111"),e.results){var s=e.results;this.data1=s,this.$message.info("上传失败,请查看错误信息")}else this.$message.info("上传成功,账户已添加")},upError:function(e){this.$message.info("上传失败,请稍后再试")}}},je=Re,Pe=Object(l["a"])(je,ze,$e,!1,null,null,null),Ue=Pe.exports,qe=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticStyle:{height:"100%"}},[a("Row",{staticStyle:{height:"100%"}},[a("i-col",{staticStyle:{height:"100%"},attrs:{span:"5"}},[a("div",{staticStyle:{"border-bottom":"1px solid #EDEFF1"}},[a("div",{staticClass:"title"},[a("span",{staticClass:"title-text"},[e._v("系统角色")])])]),a("div",e._l(e.roleList,(function(t){return a("div",{key:t.id,staticClass:"system-role-div",attrs:{value:t.index}},[a("img",{staticClass:"system-role-img",attrs:{src:t.imgUrl}}),a("span",{class:"selected"===t.selectFlag?"system-role-name-selected":"system-role-name-un-select",attrs:{value:t.id},on:{click:function(a){return e.selectRole(t.id)}}},[e._v(e._s(t.name))]),a("span",{class:"selected"===t.selectFlag?"system-role-number-selected":"system-role-number-un-select",on:{click:function(a){return e.goToAccManagerPage(t)}}},[e._v(e._s(t.number))])])})),0)]),a("i-col",{staticStyle:{"max-width":"5px","background-color":"#EFF3F8",height:"100%"},attrs:{span:"1"}}),a("i-col",{staticStyle:{height:"100%"},attrs:{span:"18"}},[a("div",{staticStyle:{"border-bottom":"1px solid #EDEFF1","margin-left":"17px"}},[a("div",{staticStyle:{margin:"15px 0 15px 0"}},[a("span",{staticStyle:{color:"#697882","font-size":"12px","font-weight":"700"}},[e._v("角色权限")])])]),a("div",{staticStyle:{"margin-left":"30px","margin-top":"39px","border-top":"1px solid #E4E9F1"}},e._l(e.permissionList,(function(t){return a("div",{key:t.id},[a("div",{staticStyle:{"border-bottom":"1px solid #E4E9F1",height:"49px","line-height":"49px","background-color":"#F7F8FA"}},[a("Checkbox",{staticStyle:{"margin-left":"20px",height:"95%",color:"#697882","background-color":"#F7F8FA"},attrs:{indeterminate:t.indeterminate,value:t.check},nativeOn:{click:function(a){return a.preventDefault(),e.handleItemCheckAll(t)}}},[e._v(e._s(t.name)+" ")])],1),e._l(t.sonPermissionList,(function(s){return a("div",{key:s.id,staticStyle:{height:"49px"}},[a("div",{staticStyle:{float:"left",width:"20%","border-right":"1px solid #E4E9F1","border-bottom":"1px solid #E4E9F1",height:"49px","line-height":"49px"}},[a("CheckboxGroup",{model:{value:t.checkArr,callback:function(a){e.$set(t,"checkArr",a)},expression:"item.checkArr"}},[a("Checkbox",{key:s.id,staticStyle:{"margin-left":"30px",color:"#697882"},attrs:{label:s.id,indeterminate:s.indeterminate,value:s.check},nativeOn:{click:function(a){return a.preventDefault(),e.handleItemSonCheckAll(s,t)}}},[e._v(" "+e._s(s.name)+" ")])],1)],1),a("div",{staticStyle:{float:"left",width:"80%",height:"49px","line-height":"49px","border-bottom":"1px solid #E4E9F1"}},[a("CheckboxGroup",{on:{"on-change":function(a){return e.handleGrandSonCheckChange(s,t)}},model:{value:s.checkArr,callback:function(t){e.$set(s,"checkArr",t)},expression:"itemSon.checkArr"}},e._l(s.sonPermissionList,(function(t){return a("Checkbox",{key:t.id,staticStyle:{"margin-left":"30px",color:"#697882"},attrs:{label:t.id,value:t.check}},[e._v(" "+e._s(t.name)+" ")])})),1)],1)])}))],2)})),0),a("div",{staticStyle:{"padding-top":"20px","text-align":"center"}},[a("Button",{staticStyle:{width:"70px",height:"32px","line-height":"32px","background-color":"#2074E2"},attrs:{type:"primary"},on:{click:function(t){return e.savePermission()}}},[e._v("保存 ")])],1)])],1)],1)},He=[];a("c975"),a("a434");function Ge(e,t){return L.get("/role/role/account/count",e).then(t)}function Je(e,t){return L.post("/permission/role/list",e).then(t)}function Qe(e,t){return L.post("/permission/role/save",e).then(t)}var Ze={listRoleInfoApi:Ge,rolePermissionList:Je,saveRolePermission:Qe},We=a("6dd2"),Ke=a.n(We),Xe=a("f1fd"),et=a.n(Xe),tt={data:function(){return{name:"RoleManager",roleSelectId:1,roleList:[{id:1,name:"系统管理员",number:6,imgUrl:Ke.a,selectFlag:"selected"},{id:2,name:"运营人员",number:18,imgUrl:et.a,selectFlag:"unSelect"},{id:3,name:"店长",number:123,imgUrl:et.a,selectFlag:"unSelect"},{id:4,name:"导购",number:423,imgUrl:et.a,selectFlag:"unSelect"}],permissionList:[{id:1,name:"一级权限a",level:1,check:!1,indeterminate:!1,checkArr:[],sonPermissionList:[{id:2,name:"二级权限a",level:2,check:!1,indeterminate:!1,checkArr:[],sonPermissionList:[{id:7,name:"三级权限a",level:3},{id:8,name:"三级权限b",level:3}]},{id:3,name:"二级权限b",level:2,check:!1,indeterminate:!1,checkArr:[],sonPermissionList:[{id:9,name:"三级权限c",level:3},{id:10,name:"三级权限d",level:3}]}]},{id:4,name:"一级权限b",level:1,check:!1,checkArr:[],indeterminate:!1,sonPermissionList:[{id:5,name:"二级权限c",level:2,check:!1,checkArr:[],indeterminate:!1,sonPermissionList:[{id:11,name:"三级权限e",level:3},{id:12,name:"三级权限f",level:3}]},{id:6,name:"二级权限d",level:2,check:!1,checkArr:[],indeterminate:!1,sonPermissionList:[{id:13,name:"三级权限g",level:3},{id:14,name:"三级权限h",level:3}]}]}]}},mounted:function(){this.roleInit()},methods:{handleItemCheckAll:function(e){e.indeterminate?e.check=!1:e.check=!e.check,e.indeterminate=!1,e.check?e.sonPermissionList.forEach((function(t){t.check=!0,e.checkArr.push(t.id);var a=t.sonPermissionList;a.forEach((function(e){t.checkArr.push(e.id)}))})):(e.checkArr=[],e.sonPermissionList.forEach((function(e){e.check=!1,e.checkArr=[]})))},handleItemSonCheckAll:function(e,t){e.indeterminate?e.check=!1:e.check=!e.check,e.indeterminate=!1;var a=e.sonPermissionList;if(a&&a.length>0){if(e.check)a.forEach((function(t){e.checkArr.indexOf(t.id)<0&&e.checkArr.push(t.id)})),t.checkArr.indexOf(e.id)<0&&t.checkArr.push(e.id);else{e.checkArr=[];var s=t.checkArr.indexOf(e.id);t.checkArr.splice(s,s+1)}var i=t.sonPermissionList.length;t.checkArr.length===i?(t.indeterminate=!1,t.check=!0):t.checkArr.length>0?(t.indeterminate=!0,t.check=!1):(t.indeterminate=!1,t.check=!1)}else{if(e.check)t.checkArr.indexOf(e.id)<0&&t.checkArr.push(e.id);else{var n=t.checkArr.indexOf(e.id);t.checkArr.splice(n,n+1)}var o=t.sonPermissionList.length;t.checkArr.length===o?(t.indeterminate=!1,t.check=!0):t.checkArr.length>0?(t.indeterminate=!0,t.check=!1):(t.indeterminate=!1,t.check=!1)}},handleGrandSonCheckChange:function(e,t){var a=e.sonPermissionList.length;if(e.checkArr.length===a)e.indeterminate=!1,e.check=!0,t.checkArr.push(e.id);else if(e.checkArr.length>0)e.indeterminate=!0,e.check=!1;else{e.indeterminate=!1,e.check=!1;var s=t.checkArr.indexOf(e.id);t.checkArr.splice(s,s+1)}var i=t.sonPermissionList.length;t.checkArr.length===i?(t.indeterminate=!1,t.check=!0):t.checkArr.length>0?(t.indeterminate=!0,t.check=!1):(t.indeterminate=!1,t.check=!1)},goToAccManagerPage:function(e){this.bus.$emit("callBack",e)},selectRole:function(e){var t=e,a=this;a.roleList.forEach((function(e){e.id===t?(e.imgUrl=Ke.a,e.selectFlag="selected",a.roleSelectId=e.id):(e.imgUrl=et.a,e.selectFlag="unSelect")})),a.rolePermissionList()},savePermission:function(){var e={roleId:this.roleSelectId,permissionJson:JSON.stringify(this.permissionList)},t=this;Ze.saveRolePermission(e,(function(e){e=e.data,"0001"!==e.code?"0000"===e.code&&t.$Message.info("保存角色权限成功!"):t.$Message.error("保存角色失败!")}))},roleInit:function(){var e=this;e.roleList=[],Ze.listRoleInfoApi({},(function(t){if(t=t.data,"0001"!==t.code){if("0000"===t.code){t=t.results;for(var a=0;a<t.length;a++){var s=t[a];s.imgUrl=et.a,0===a?(s.selectFlag="selected",s.imgUrl=Ke.a):s.selectFlag="unSelect",e.roleList.push(s)}e.roleSelectId=e.roleList[0].id,e.rolePermissionList()}}else e.$Message.error("查询角色失败!")}))},rolePermissionList:function(){var e={roleId:this.roleSelectId};this.permissionList=[];var t=this;Ze.rolePermissionList(e,(function(e){if(e=e.data,"0001"!==e.code){if("0000"===e.code){e=e.results;for(var a=0;a<e.length;a++){var s=e[a];t.permissionList.push(s)}}}else t.$Message.error("查询角色权限失败!")}))}}},at=tt,st=(a("1c91"),Object(l["a"])(at,qe,He,!1,null,"3e4cd008",null)),it=st.exports,nt=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("Menu",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"}],ref:"menu",attrs:{mode:"horizontal","active-name":e.selectedItemName},model:{value:this.threeLevel[0].id,callback:function(t){e.$set(this.threeLevel[0],"id",t)},expression:"this.threeLevel[0].id"}},e._l(e.threeLevel,(function(t){return a("MenuItem",{key:t.id,attrs:{name:t.id,to:t.resource}},[e._v(" "+e._s(t.name)+" ")])})),1),a("div",[a("router-view")],1)],1)},ot=[],rt={name:"ShopIncrease",data:function(){return{threeLevel:[],selectedItemName:null}},created:function(){this.threeLevel=JSON.parse(sessionStorage.getItem("threeLevel")),this.menuInit()},mounted:function(){this.threeLevel=JSON.parse(sessionStorage.getItem("threeLevel")),this.menuInit()},methods:{menuInit:function(){var e=this;e.selectedItemName=e.threeLevel[0].id,this.$nextTick((function(){e.$refs.menu.updateActiveName()}))}}},lt=rt,ct=Object(l["a"])(lt,nt,ot,!1,null,"5f336de8",null),dt=ct.exports,ut=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",[s("Row",{attrs:{gutter:32}},[s("i-col",{attrs:{span:"32"}},[s("row",[s("row",[s("span",[s("span",{staticClass:"title-span"},[s("span",{staticClass:"date-btn",style:"今日"===e.dateBtnValue?"background: #2D8CF0;color: #fff":"",on:{click:function(t){return e.dateBtnClick("今日")}}},[e._v("今日")]),s("span",{staticClass:"date-btn",style:"本周"===e.dateBtnValue?"background: #2D8CF0;color: #fff":"",on:{click:function(t){return e.dateBtnClick("本周")}}},[e._v("本周")]),s("span",{staticClass:"date-btn",style:"本月"===e.dateBtnValue?"background: #2D8CF0;color: #fff":"",on:{click:function(t){return e.dateBtnClick("本月")}}},[e._v("本月")]),s("span",{staticClass:"date-btn",style:"自定义"===e.dateBtnValue?"background: #2D8CF0;color: #fff":"",on:{click:function(t){return e.dateBtnClick("自定义")}}},[e._v("自定义")])])]),s("span",{staticClass:"title-select-date"},[s("span",{staticClass:"view-text"},[e._v(e._s(e.dateBtnValue)+"概览")]),"自定义"!==e.dateBtnValue?s("span",{staticClass:"view-date"},[e._v(e._s(e.viewDate))]):e._e(),"自定义"===e.dateBtnValue?s("span",{staticClass:"left-10",staticStyle:{"vertical-align":"top"}},[s("DatePicker",{staticClass:"date-picker",attrs:{options:e.options1,type:"date",placeholder:"请选择时间",size:"small"},on:{"on-change":e.diyDateChange},model:{value:e.selectStartTime,callback:function(t){e.selectStartTime=t},expression:"selectStartTime"}}),s("span",{staticStyle:{margin:"0 5px"}},[e._v("至")]),s("DatePicker",{staticClass:"date-picker",attrs:{options:e.options2,type:"date",placeholder:"请选择时间",size:"small"},on:{"on-change":e.diyDateChange},model:{value:e.selectEndTime,callback:function(t){e.selectEndTime=t},expression:"selectEndTime"}}),s("Tooltip",{attrs:{content:"限制最大31天",placement:"bottom"}},[s("Icon",{staticStyle:{"margin-left":"5px"},attrs:{type:"ios-alert-outline"}})],1)],1):e._e(),s("img",{staticClass:"title-logo",attrs:{src:a("082f")}})])]),s("row",{staticClass:"top-20"},[s("Row",{staticClass:"text-center"},[s("i-col",{attrs:{span:"10"}},[s("row",{staticClass:"code-row-bg",attrs:{type:"flex",justify:"center"}},[s("i-col",{staticClass:"big-blank",attrs:{span:"5"}}),s("i-col",{staticClass:"big-blank",attrs:{span:"10"}},[s("row",{staticClass:"top-5"},[s("span",{staticClass:"huge-blank-font"},[e._v(e._s(e.customerViewVO.allCustomer))])]),s("row",[s("span",{staticClass:"weight-700"},[e._v("好友总数")])])],1)],1)],1),s("i-col",{attrs:{span:"10"}},[s("row",{staticClass:"code-row-bg",attrs:{type:"flex",justify:"center"}},[s("i-col",{staticClass:"big-blank",attrs:{span:"4"}},[s("row",{staticClass:"top-15"},[s("span",{staticClass:"big-blank-font"},[e._v(e._s(e.customerViewVO.newCustomer))])]),s("row",{staticClass:"top-10"},[s("span",[e._v("新增好友")])])],1)],1)],1)],1)],1),s("row",{staticClass:"top-10"},[s("i-col",{staticClass:"outline",attrs:{span:"16"}},[s("span",{staticClass:"blue-logo"}),s("span",{staticClass:"chart-title-date"},[e._v(e._s(this.$moment(e.startTime).format("YYYY-MM-DD"))+"至"+e._s(this.$moment(e.endTime).format("YYYY-MM-DD"))+""+e._s(e.recentName)+")趋势图")]),s("ve-histogram",{attrs:{data:e.chartData,extend:e.chartExtend,colors:e.chartColor}})],1),s("i-col",{staticClass:"padding-left-10",attrs:{span:"8"}},[s("row",{staticClass:"outline"},[s("span",{staticClass:"blue-logo"}),s("span",{staticClass:"chart-title-span"},[e._v("好友&会员情况")]),s("row",{staticClass:"chart-row"},[s("i-col",{staticStyle:{"border-right":"1px solid #D3D3D3"},attrs:{span:"6"}},[s("row",{staticClass:"chart-row-customer-row1"}),s("row",{staticClass:"percent-text"},[s("span",[e._v("好友总数(去重)")])]),s("row",{staticClass:"chart-row-customer-row2"}),s("row",{staticClass:"percent-text"},[s("span",[e._v("会员总数")])]),s("row",{staticClass:"chart-row-customer-row3"})],1),s("i-col",{attrs:{span:"18"}},[s("row",{staticClass:"chart-row-customer-row1"}),s("row",[s("span",{staticClass:"percent-span",staticStyle:{background:"#EC6A2F"},style:e.percent1}),s("span",[e._v(e._s(e.customerViewVO.allValidCustomer))])]),s("row",{staticClass:"chart-row-customer-row2"}),s("row",[s("span",{staticClass:"percent-span",staticStyle:{background:"#FFCC00"},style:e.percent2}),s("span",[e._v(e._s(e.customerViewVO.allVipCount))])]),s("row",{staticClass:"chart-row-customer-row3"})],1)],1)],1)],1)],1),s("row",{staticClass:"top-10"},[s("i-col",{attrs:{span:"8"}},[s("row",{staticClass:"outline chart-top-10-row"},[s("span",{staticClass:"blue-logo"}),s("span",{staticClass:"chart-top-10-title-span"},[e._v("零售公司店均新增好友top10")]),0===e.customerViewVO.orgNewCustomerList.length?s("row",{staticClass:"text-center"},[e._v("暂无数据 ")]):e._e(),e.customerViewVO.orgNewCustomerList.length>0?s("row",{staticClass:"padding-12"},e._l(e.customerViewVO.orgNewCustomerList,(function(t){return s("row",{key:t.orgId},[s("i-col",{staticClass:"text-ellipsis",staticStyle:{"text-align":"left","padding-right":"5px"},attrs:{span:"8"}},[e._v(" "+e._s(t.orgName)+" ")]),s("i-col",{attrs:{span:"16"}},[s("span",{staticClass:"top10-percent-span",staticStyle:{background:"#FFCC00"},style:"width:"+t.newCustomerCount/e.customerViewVO.orgNewCustomerList[0].newCustomerCount*80+"%"}),s("span",[e._v(e._s(t.newCustomerCount))])])],1)})),1):e._e()],1)],1),s("i-col",{staticClass:"padding-left-10",attrs:{span:"8"}},[s("row",{staticClass:"outline chart-top-10-row"},[s("span",{staticClass:"blue-logo"}),s("span",{staticClass:"chart-top-10-title-span"},[e._v("店铺新增好友top10")]),0===e.customerViewVO.shopNewCustomerList.length?s("row",{staticClass:"text-center"},[e._v("暂无数据 ")]):e._e(),e.customerViewVO.shopNewCustomerList.length>0?s("row",{staticClass:"padding-12"},e._l(e.customerViewVO.shopNewCustomerList,(function(t){return s("row",{key:t.shopId},[s("i-col",{staticClass:"text-ellipsis",staticStyle:{"text-align":"left","padding-right":"5px"},attrs:{span:"9"}},[e._v(" "+e._s(t.shopName)+" ")]),s("i-col",{attrs:{span:"15"}},[s("span",{staticClass:"top10-percent-span",staticStyle:{background:"#EC6A2F"},style:"width:"+t.newCustomerCount/e.customerViewVO.shopNewCustomerList[0].newCustomerCount*80+"%"}),s("span",[e._v(e._s(t.newCustomerCount))])])],1)})),1):e._e()],1)],1),s("i-col",{staticClass:"padding-left-10",attrs:{span:"8"}},[s("row",{staticClass:"outline chart-top-10-row"},[s("span",{staticClass:"blue-logo"}),s("span",{staticClass:"chart-top-10-title-span"},[e._v("推广为0的店铺数")]),s("span",{staticStyle:{position:"absolute",right:"5px",cursor:"pointer"},on:{click:e.zeroExtendMore}},[s("span",{staticStyle:{"vertical-align":"top"}},[e._v("更多")]),s("img",{attrs:{src:a("152b")}})]),0===e.customerViewVO.zeroExtendList.length?s("row",{staticClass:"text-center"},[e._v("暂无数据")]):e._e(),e.customerViewVO.zeroExtendList.length>0?s("row",{staticClass:"padding-12"},[s("row",[s("i-col",{attrs:{span:"1"}},[s("span",{staticStyle:{visibility:"hidden"}},[e._v("visible")])]),s("i-col",{attrs:{span:"9"}},[e._v("零售公司")]),s("i-col",{attrs:{span:"7"}},[e._v("店铺总数")]),s("i-col",{attrs:{span:"7"}},[e._v("0推广店铺数")])],1),e._l(e.customerViewVO.zeroExtendList,(function(t){return s("row",{key:t.orgId},[s("i-col",{attrs:{span:"1"}},[s("span",{staticStyle:{visibility:"hidden"}},[e._v("visible")])]),s("i-col",{staticClass:"text-ellipsis",attrs:{span:"9"}},[e._v(e._s(t.orgName))]),s("i-col",{attrs:{span:"7"}},[e._v(e._s(t.allShopCount))]),s("i-col",{attrs:{span:"7"}},[e._v(e._s(t.zeroShopCount))])],1)}))],2):e._e()],1)],1)],1),e.spinShow?s("Spin",{staticStyle:{top:"50px"},attrs:{size:"large",fix:""}}):e._e()],1)],1)],1)],1)},mt=[];function pt(e,t){return L.get("/customer/view/main",e).then(t)}function ht(e,t){return L.get("/customer/view/main/date",e).then(t)}function ft(e,t){return L.get("/customer/view/main/del",e).then(t)}function gt(e,t){return L.get("/customer/view/all/count",e).then(t)}function vt(e,t){return L.post("/analysis/add/customer",e).then(t)}function yt(e,t){return L.post("/analysis/apply/customer",e).then(t)}function St(e,t,a){return L.downloadExcel("/analysis/download/excel",t,e).then(a)}var xt={getMainRequest:pt,getMainDel:ft,getMainDateRequest:ht,getAllCount:gt,getAnalysisRequest:vt,downLoadExcel:St,getAnalysisApplyRequest:yt},bt={inject:["setMenuName"],data:function(){return{userId:JSON.parse(sessionStorage.getItem("loginInfo")).userId,intervalId:0,spinShow:!1,dateBtnValue:"今日",viewDate:this.$moment(new Date).format("YYYY-MM-DD"),recentName:"近七天",selectStartTime:"",selectEndTime:"",startTime:"",endTime:"",percent1:"width:0%",percent2:"width:0%",customerViewVO:{newCustomer:0,newValidCustomer:0,allCustomer:0,allValidCustomer:0,validDeleteCustomer:0,allVipCount:0,customerList:[],validCustomerList:[],orgNewCustomerList:[],shopNewCustomerList:[],zeroExtendList:[]},chartExtend:{barWidth:28,label:{show:!0,position:"top"}},chartColor:["#ffcc00","#ec6a2f"],chartData:{columns:["date","新增好友","新增好友(去重)"],rows:[{date:"1/1","新增好友":14,"新增好友(去重)":14},{date:"1/1","新增好友":20,"新增好友(去重)":10},{date:"1/1","新增好友":30,"新增好友(去重)":25},{date:"1/1","新增好友":11,"新增好友(去重)":11},{date:"1/1","新增好友":14,"新增好友(去重)":14},{date:"1/1","新增好友":20,"新增好友(去重)":10},{date:"1/1","新增好友":30,"新增好友(去重)":25}]},timer:null}},computed:{options1:function(){var e=this;return{disabledDate:function(t){return null!=e.selectEndTime&&""!=e.selectEndTime&&(t&&t.valueOf()>e.$moment(e.selectEndTime)||t&&t.valueOf()<e.$moment(e.selectEndTime).add(-31,"days"))}}},options2:function(){var e=this;return{disabledDate:function(t){return null!=e.selectStartTime&&""!=e.selectStartTime&&(t&&t.valueOf()<e.$moment(e.selectStartTime)||t&&t.valueOf()>e.$moment(e.selectStartTime).add(31,"days"))}}}},mounted:function(){this.dateBtnClick("今日"),this.timingRefresh()},beforeDestroy:function(){this.timer&&clearInterval(this.timer)},methods:{resizeWindow:function(){var e=document.createEvent("HTMLEvents");e.initEvent("resize",!0,!0),window.dispatchEvent(e)},percentResize:function(){var e=this.customerViewVO.allValidCustomer,t=this.customerViewVO.allVipCount,a=e+t;if(0===a)return this.percent1="width:0%",void(this.percent2="width:0%");if(e>t){var s=Math.floor(t/e*100*100)/100*.8;this.percent1="width:80%",this.percent2="width:"+s+"%"}if(e<t){var i=Math.floor(e/t*100*100)/100*.8;this.percent1="width:"+i+"%",this.percent2="width:80%"}e===t&&(this.percent1="width:80%",this.percent2="width:80%")},checkZero:function(e){return 0===e?null:e},dateBtnClick:function(e){switch(e){case"今日":this.dateBtnValue="今日",this.recentName="近七天",this.dateSelectChange("今日"),this.chartExtend.barWidth=28,this.chartExtend.label.show=!0;break;case"本周":this.dateBtnValue="本周",this.recentName="本周",this.dateSelectChange("本周"),this.chartExtend.barWidth=28,this.chartExtend.label.show=!0;break;case"本月":this.dateBtnValue="本月",this.recentName="本月",this.dateSelectChange("本月"),this.chartExtend.barWidth=8,this.chartExtend.label.show=!1;break;case"自定义":this.dateBtnValue="自定义",this.recentName="自定义",this.diyDateChange();break}},diyDateChange:function(){this.selectStartTime&&this.selectEndTime&&(this.$moment(this.selectEndTime).valueOf()-this.$moment(this.selectStartTime).valueOf()>1296e6?(this.chartExtend.barWidth=8,this.chartExtend.label.show=!1):(this.chartExtend.barWidth=28,this.chartExtend.label.show=!0),this.dateSelectChange("自定义"))},dateSelectChange:function(e){var t=this.$moment(new Date);switch(e){case"今日":this.viewDate=t.format("YYYY-MM-DD"),this.selectStartTime=this.$moment(new Date).format("YYYY-MM-DD 00:00:00"),this.selectEndTime=this.$moment(new Date).format("YYYY-MM-DD HH:mm:ss"),this.startTime=this.$moment(new Date).add(-6,"days").format("YYYY-MM-DD 00:00:00"),this.endTime=this.$moment(new Date).format("YYYY-MM-DD HH:mm:ss");break;case"本周":this.viewDate=t.startOf("week").format("YYYY-MM-DD")+" 至 "+this.$moment(new Date).format("YYYY-MM-DD"),this.selectStartTime=this.$moment(new Date).startOf("week").format("YYYY-MM-DD 00:00:00"),this.selectEndTime=this.$moment(new Date).format("YYYY-MM-DD HH:mm:ss"),this.startTime=this.selectStartTime,this.endTime=this.$moment(new Date).endOf("week").format("YYYY-MM-DD HH:mm:ss");break;case"本月":this.viewDate=t.startOf("month").format("YYYY-MM-DD")+" 至 "+this.$moment(new Date).format("YYYY-MM-DD"),this.selectStartTime=this.$moment(new Date).startOf("month").format("YYYY-MM-DD 00:00:00"),this.selectEndTime=this.$moment(new Date).format("YYYY-MM-DD HH:mm:ss"),this.startTime=this.selectStartTime,this.endTime=this.$moment(new Date).endOf("month").format("YYYY-MM-DD HH:mm:ss");break;case"自定义":this.selectStartTime=this.$moment(this.selectStartTime).format("YYYY-MM-DD 00:00:00"),this.selectEndTime=this.$moment(this.selectEndTime).format("YYYY-MM-DD 23:59:59"),this.startTime=this.selectStartTime,this.endTime=this.selectEndTime;break}this.getMainList(),this.getMainDateList(),this.getMainDel(),this.getAllCount()},getAllCount:function(){var e=this;xt.getAllCount(null,(function(t){"0000"!==t.data.code&&e.$Message.error("系统异常"),t=t.data.results,e.customerViewVO.allCustomer=t.allCustomer,e.customerViewVO.allValidCustomer=t.allValidCustomer}))},getMainList:function(){var e={userId:this.userId,selectStartTime:null==this.selectStartTime?null:this.$moment(this.selectStartTime).format("YYYY-MM-DD 00:00:00"),selectEndTime:null==this.selectEndTime?null:this.$moment(this.selectEndTime).format("YYYY-MM-DD HH:mm:ss"),startTime:this.startTime,endTime:this.endTime},t=this;xt.getMainRequest(e,(function(e){if("0000"!==e.data.code&&t.$Message.error("系统异常"),e=e.data.results,t.customerViewVO.newCustomer=e.newCustomer,t.customerViewVO.newValidCustomer=e.newValidCustomer,t.customerViewVO.allVipCount=e.allVipCount,t.customerViewVO.customerList=e.customerList,t.customerViewVO.validCustomerList=e.validCustomerList,t.chartData.rows=[],t.startTime&&t.endTime){var a=t.startTime,s=function(){var e=t.$moment(a).format("M-DD"),s=t.customerViewVO.customerList.filter((function(a){return e===t.$moment(a.registerTime).format("M-DD")})),i=t.customerViewVO.validCustomerList.filter((function(a){return e===t.$moment(a.registerTime).format("M-DD")})),n=0===s.length?0:s[0].customerSize,o=0===i.length?0:i[0].customerSize,r={date:e,"新增好友":n,"新增好友(去重)":o};t.chartData.rows.push(r),a=t.$moment(a).add(1,"days").format("YYYY-MM-DD HH:mm:ss")};while(t.$moment(a).format("YYYY-MM-DD")<=t.$moment(t.endTime).format("YYYY-MM-DD"))s()}t.percentResize(),t.resizeWindow()}))},getMainDateList:function(){var e={userId:this.userId,selectStartTime:null==this.selectStartTime?null:this.$moment(this.selectStartTime).format("YYYY-MM-DD 00:00:00"),selectEndTime:null==this.selectEndTime?null:this.$moment(this.selectEndTime).format("YYYY-MM-DD HH:mm:ss")},t=this;this.spinShow=!0,xt.getMainDateRequest(e,(function(e){t.spinShow=!1,"0000"!==e.data.code&&t.$Message.error("系统异常"),e=e.data.results,t.customerViewVO.orgNewCustomerList=e.orgNewCustomerList,t.customerViewVO.shopNewCustomerList=e.shopNewCustomerList,t.customerViewVO.zeroExtendList=e.zeroExtendList,t.percentResize(),t.resizeWindow()}))},getMainDel:function(){var e={userId:this.userId},t=this;xt.getMainDel(e,(function(e){"0000"!==e.data.code&&t.$Message.error("系统异常"),t.customerViewVO.validDeleteCustomer=e.validDeleteCustomer}))},zeroExtendMore:function(){this.setMenuName("首页","推广为0店铺数");var e=this;this.$router.push({path:"/zero/extend/detail",query:{userId:e.userId,startDate:e.selectStartTime,endDate:e.selectEndTime}})},timingRefresh:function(){var e=this;e.timer=setInterval((function(){e.dateBtnClick(e.dateBtnValue)}),3e5)}}},wt=bt,Ct=(a("1e6a"),Object(l["a"])(wt,ut,mt,!1,null,"195b46f8",null)),At=Ct.exports,Dt=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("Menu",{ref:"menu",attrs:{mode:"horizontal","active-name":e.selectedItemName},model:{value:this.threeLevel[0].id,callback:function(t){e.$set(this.threeLevel[0],"id",t)},expression:"this.threeLevel[0].id"}},e._l(e.threeLevel,(function(t){return a("MenuItem",{key:t.id,attrs:{name:t.id,to:t.resource}},[e._v(" "+e._s(t.name)+" ")])})),1),a("div",[a("router-view")],1)],1)},It=[],kt={name:"TableAnalysis",data:function(){return{threeLevel:[],selectedItemName:null}},created:function(){this.threeLevel=JSON.parse(sessionStorage.getItem("threeLevel")),this.menuInit()},mounted:function(){this.threeLevel=JSON.parse(sessionStorage.getItem("threeLevel")),this.menuInit()},methods:{menuInit:function(){var e=this;e.selectedItemName=e.threeLevel[0].id,this.$nextTick((function(){e.$refs.menu.updateActiveName()}))}}},Mt=kt,Lt=Object(l["a"])(Mt,Dt,It,!1,null,"35e13d70",null),_t=Lt.exports,Yt=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",[s("Row",{attrs:{gutter:32}},[s("i-col",{attrs:{span:"32"}},[s("row",[s("row",[s("span",[s("span",{staticClass:"title-span"},[s("span",{staticClass:"date-btn",style:"今日"===e.dateBtnValue?"background: #2D8CF0;color: #fff":"",on:{click:function(t){return e.dateBtnClick("今日")}}},[e._v("今日")]),s("span",{staticClass:"date-btn",style:"本周"===e.dateBtnValue?"background: #2D8CF0;color: #fff":"",on:{click:function(t){return e.dateBtnClick("本周")}}},[e._v("本周")]),s("span",{staticClass:"date-btn",style:"本月"===e.dateBtnValue?"background: #2D8CF0;color: #fff":"",on:{click:function(t){return e.dateBtnClick("本月")}}},[e._v("本月")]),s("span",{staticClass:"date-btn",style:"自定义"===e.dateBtnValue?"background: #2D8CF0;color: #fff":"",on:{click:function(t){return e.dateBtnClick("自定义")}}},[e._v("自定义")])])]),s("span",{staticClass:"title-select-date"},[s("span",{staticClass:"view-text"},[e._v(e._s(e.dateBtnValue)+"概览")]),"自定义"!==e.dateBtnValue?s("span",{staticClass:"view-date"},[e._v(e._s(e.viewDate))]):e._e(),"自定义"===e.dateBtnValue?s("span",{staticClass:"left-10",staticStyle:{"vertical-align":"top"}},[s("DatePicker",{staticClass:"date-picker",attrs:{type:"date",placeholder:"请选择时间",size:"small"},on:{"on-change":e.diyDateChange},model:{value:e.selectStartTime,callback:function(t){e.selectStartTime=t},expression:"selectStartTime"}}),s("span",{staticStyle:{margin:"0 5px"}},[e._v("至")]),s("DatePicker",{staticClass:"date-picker",attrs:{type:"date",placeholder:"请选择时间",size:"small"},on:{"on-change":e.diyDateChange},model:{value:e.selectEndTime,callback:function(t){e.selectEndTime=t},expression:"selectEndTime"}})],1):e._e(),s("img",{staticClass:"title-logo",attrs:{src:a("082f")}})])]),s("row",{staticClass:"top-10"},[s("i-col",{staticClass:"outline",attrs:{span:"24"}},[s("span",{staticClass:"blue-logo"}),s("span",{staticClass:"chart-title-date"},[e._v("累计拓客报表")]),s("ve-histogram",{attrs:{data:e.chartData,extend:e.chartExtend,height:"500px","mark-line":e.markLine,colors:e.chartColor}})],1)],1),s("row",{staticClass:"top-10"},[s("i-col",{staticClass:"outline",attrs:{span:"24"}},[s("span",{staticClass:"blue-logo"}),s("span",{staticClass:"chart-title-date"},[e._v("店均拓客报表")]),s("ve-histogram",{attrs:{data:e.chartStoreData,extend:e.chartExtend,height:"500px","mark-line":e.avgMarkLine,colors:e.chartColor}})],1)],1),e.spinShow?s("Spin",{staticStyle:{top:"50px"},attrs:{size:"large",fix:""}}):e._e()],1)],1)],1)],1)},Nt=[],Ot=(a("95a8"),a("0a6d"),a("b11c"),{inject:["setMenuName"],data:function(){return{userId:JSON.parse(sessionStorage.getItem("loginInfo")).userId,spinShow:!1,dateBtnValue:"今日",viewDate:this.$moment(new Date).format("YYYY-MM-DD"),recentName:"近七天",selectStartTime:"",selectEndTime:"",startTime:"",endTime:"",chartExtend:{barWidth:28,grid:{left:50,right:50},toolbox:{show:!0,feature:{dataView:{show:!0,readOnly:!1},restore:{show:!0},saveAsImage:{show:!0},myTool1:{show:!0,title:"下载excel",icon:"path://M877.6 289.5L656 68.4c-2.8-2.8-6.6-4.4-10.6-4.4h-463c-22.3 0-40.5 18.1-40.5 40.4v815.2c0 22.3 18.1 40.4 40.5 40.4h659.1c22.3 0 40.5-18.1 40.5-40.4V300.1c0-4-1.6-7.8-4.4-10.6zM641.2 96.1l207.6 207.2H641.2V96.1zM841.5 930h-659c-5.8 0-10.5-4.7-10.5-10.4V104.4c0-5.6 4.8-10.4 10.5-10.4h428.8v224.3c0 8.3 6.7 15 15 15H852v586.3c0 5.7-4.7 10.4-10.5 10.4z M447.9 520.2h-32l-44.8 74.2c-3.3 5.7-6 11-8.3 16.1h-0.6c-2.5-5.9-5-11-7.6-15.4l-42.8-74.9h-34.3l66.3 107.7-72.1 108.6H306l49.8-81.3c3.2-6.8 4.8-10.6 5-11.3h0.7c2.1 5.6 3.8 9.3 4.9 11.2l48.4 81.4h34l-68.7-109.1 67.8-107.2zM509 520.2h-28v216.3h114.4v-24.7H509zM693.9 616.5c-19.3-9.5-31.9-17-37.6-22.5-5.8-5.5-8.7-12.6-8.7-21.4 0-9.9 4.2-17.6 12.5-23.1s19.1-8.3 32.4-8.3c20 0 36.5 4.5 49.5 13.5v-30.4c-10.1-5.2-25.9-7.8-47.4-7.8-22 0-40.3 5.3-54.7 15.8-14.5 10.5-21.7 24.8-21.7 42.7 0 11.9 3.5 22.5 10.4 31.8s21.2 19.3 43 30.1c15.7 7.7 26.4 13.5 32 17.2 5.7 3.7 10.2 8 13.4 12.8 3.3 4.8 4.9 10.3 4.9 16.3 0 21.6-15.2 32.4-45.6 32.4-10 0-20.5-1.9-31.6-5.6-11.1-3.7-20-8.5-26.6-14.2v31.8c5.2 3.5 13.5 6.5 25 8.9 11.4 2.4 21.4 3.6 30 3.6 24.5 0 43.7-5.1 57.5-15.2 13.8-10.1 20.7-24.7 20.7-43.7 0-12.7-4.2-24.1-12.7-34.2-8.6-10.2-23.4-20.3-44.7-30.5z",onclick:function(e){var t=JSON.stringify(e.getOption().series[0].name),a=JSON.stringify(e.getOption().series[0].data),s=JSON.stringify(e.getOption().xAxis[0].data),i={title:t,jsonData:a,company:s};xt.downLoadExcel(i,t,null)}}}},label:{show:!1,position:"top"},xAxis:{axisLabel:{interval:0,rotate:45,fontSize:10,fontWeight:"normal"},triggerEvent:!0},dataZoom:{type:"slider",realtime:!0,height:25,start:0,end:100}},chartColor:["#FFCC00"],chartData:{columns:["零售公司","累计拓客"],rows:[{"零售公司":"qishuo","累计拓客":14},{"零售公司":"qishuo","累计拓客":7},{"零售公司":"qishuo","累计拓客":8},{"零售公司":"qishuo","累计拓客":5},{"零售公司":"qishuo","累计拓客":10}]},chartStoreData:{columns:["零售公司","店铺平均拓客"],rows:[{"零售公司":"qishuo","店铺平均拓客":14},{"零售公司":"qishuo","店铺平均拓客":7},{"零售公司":"qishuo","店铺平均拓客":8},{"零售公司":"qishuo","店铺平均拓客":5},{"零售公司":"qishuo","店铺平均拓客":10}]},markLine:{precision:0,data:[{name:"平均线",type:"average",lineStyle:{color:"#FF0000"}}]},avgMarkLine:{precision:0,data:[{name:"平均线",yAxis:6,lineStyle:{color:"#FF0000"}}]}}},mounted:function(){this.dateBtnClick("今日"),this.timingRefresh()},methods:{resizeWindow:function(){var e=document.createEvent("HTMLEvents");e.initEvent("resize",!0,!0),window.dispatchEvent(e)},dateBtnClick:function(e){switch(e){case"今日":this.dateBtnValue="今日",this.recentName="近七天",this.dateSelectChange("今日"),this.chartExtend.barWidth=28,this.chartExtend.label.show=!0;break;case"本周":this.dateBtnValue="本周",this.recentName="本周",this.dateSelectChange("本周"),this.chartExtend.barWidth=28,this.chartExtend.label.show=!0;break;case"本月":this.dateBtnValue="本月",this.recentName="本月",this.dateSelectChange("本月"),this.chartExtend.barWidth=28,this.chartExtend.label.show=!0;break;case"自定义":this.dateBtnValue="自定义",this.recentName="自定义",this.diyDateChange();break}},diyDateChange:function(){this.selectStartTime&&this.selectEndTime&&this.dateSelectChange("自定义")},dateSelectChange:function(e){var t=this.$moment(new Date);switch(e){case"今日":this.viewDate=t.format("YYYY-MM-DD"),this.selectStartTime=this.$moment(new Date).format("YYYY-MM-DD 00:00:00"),this.selectEndTime=this.$moment(new Date).format("YYYY-MM-DD HH:mm:ss"),this.startTime=this.$moment(new Date).add(-6,"days").format("YYYY-MM-DD 00:00:00"),this.endTime=this.$moment(new Date).format("YYYY-MM-DD HH:mm:ss");break;case"本周":this.viewDate=t.startOf("week").format("YYYY-MM-DD")+" 至 "+this.$moment(new Date).format("YYYY-MM-DD"),this.selectStartTime=this.$moment(new Date).startOf("week").format("YYYY-MM-DD 00:00:00"),this.selectEndTime=this.$moment(new Date).format("YYYY-MM-DD HH:mm:ss"),this.startTime=this.selectStartTime,this.endTime=this.$moment(new Date).endOf("week").format("YYYY-MM-DD HH:mm:ss");break;case"本月":this.viewDate=t.startOf("month").format("YYYY-MM-DD")+" 至 "+this.$moment(new Date).format("YYYY-MM-DD"),this.selectStartTime=this.$moment(new Date).startOf("month").format("YYYY-MM-DD 00:00:00"),this.selectEndTime=this.$moment(new Date).format("YYYY-MM-DD HH:mm:ss"),this.startTime=this.selectStartTime,this.endTime=this.$moment(new Date).endOf("month").format("YYYY-MM-DD HH:mm:ss");break;case"自定义":this.selectStartTime=this.$moment(this.selectStartTime).format("YYYY-MM-DD 00:00:00"),this.selectEndTime=this.$moment(this.selectEndTime).format("YYYY-MM-DD 23:59:59"),this.startTime=this.selectStartTime,this.endTime=this.selectEndTime;break}this.getMainList()},getMainList:function(){var e={selectStartTime:null==this.selectStartTime?null:this.$moment(this.selectStartTime).format("YYYY-MM-DD 00:00:00"),selectEndTime:null==this.selectEndTime?null:this.$moment(this.selectEndTime).format("YYYY-MM-DD HH:mm:ss")},t=this;this.spinShow=!0,xt.getAnalysisRequest(e,(function(e){t.spinShow=!1,"0000"!==e.data.code&&t.$Message.error("系统异常"),e=e.data.results,t.chartData.rows=[],t.chartStoreData.rows=[];for(var a=0,s=0,i=0;i<e.length;i++){var n={"零售公司":e[i].companyName,"累计拓客":e[i].addCustomer};t.chartData.rows.push(n);var o={"零售公司":e[i].companyName,"店铺平均拓客":e[i].avgAddCustomer};t.chartStoreData.rows.push(o),a+=e[i].addCustomer,s+=e[i].storeNum}t.avgMarkLine.data[0].yAxis=a/s,t.resizeWindow()}))}}}),Et=Ot,Tt=(a("ee8a"),Object(l["a"])(Et,Yt,Nt,!1,null,"14211786",null)),Vt=Tt.exports,Ft=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",[s("Row",{attrs:{gutter:32}},[s("i-col",{attrs:{span:"32"}},[s("row",[s("row",[s("span",[s("span",{staticClass:"title-span"},[s("span",{staticClass:"date-btn",style:"今日"===e.dateBtnValue?"background: #2D8CF0;color: #fff":"",on:{click:function(t){return e.dateBtnClick("今日")}}},[e._v("今日")]),s("span",{staticClass:"date-btn",style:"本周"===e.dateBtnValue?"background: #2D8CF0;color: #fff":"",on:{click:function(t){return e.dateBtnClick("本周")}}},[e._v("本周")]),s("span",{staticClass:"date-btn",style:"本月"===e.dateBtnValue?"background: #2D8CF0;color: #fff":"",on:{click:function(t){return e.dateBtnClick("本月")}}},[e._v("本月")]),s("span",{staticClass:"date-btn",style:"自定义"===e.dateBtnValue?"background: #2D8CF0;color: #fff":"",on:{click:function(t){return e.dateBtnClick("自定义")}}},[e._v("自定义")])])]),s("span",{staticClass:"title-select-date"},[s("span",{staticClass:"view-text"},[e._v(e._s(e.dateBtnValue)+"概览")]),"自定义"!==e.dateBtnValue?s("span",{staticClass:"view-date"},[e._v(e._s(e.viewDate))]):e._e(),"自定义"===e.dateBtnValue?s("span",{staticClass:"left-10",staticStyle:{"vertical-align":"top"}},[s("DatePicker",{staticClass:"date-picker",attrs:{type:"date",placeholder:"请选择时间",size:"small"},on:{"on-change":e.diyDateChange},model:{value:e.selectStartTime,callback:function(t){e.selectStartTime=t},expression:"selectStartTime"}}),s("span",{staticStyle:{margin:"0 5px"}},[e._v("至")]),s("DatePicker",{staticClass:"date-picker",attrs:{type:"date",placeholder:"请选择时间",size:"small"},on:{"on-change":e.diyDateChange},model:{value:e.selectEndTime,callback:function(t){e.selectEndTime=t},expression:"selectEndTime"}})],1):e._e(),s("img",{staticClass:"title-logo",attrs:{src:a("082f")}})])]),s("row",{staticClass:"top-10"},[s("i-col",{staticClass:"outline",attrs:{span:"24"}},[s("span",{staticClass:"blue-logo"}),s("span",{staticClass:"chart-title-date"},[e._v("累计拓客报表")]),s("span",{staticStyle:{"font-size":"14px",color:"#666","margin-left":"100px"}},[e._v(" 拓客"),s("input-number",{attrs:{size:"small",min:1},model:{value:e.count,callback:function(t){e.count=t},expression:"count"}}),e._v("以内门店数量 ")],1),s("ve-histogram",{attrs:{data:e.chartData,extend:e.chartExtend,settings:e.chartSettings,colors:e.chartColor}})],1)],1),e.spinShow?s("Spin",{staticStyle:{top:"50px"},attrs:{size:"large",fix:""}}):e._e()],1)],1)],1)],1)},Bt=[],zt=(a("ef97"),{inject:["setMenuName"],data:function(){return{userId:JSON.parse(sessionStorage.getItem("loginInfo")).userId,spinShow:!1,count:3,dateBtnValue:"今日",viewDate:this.$moment(new Date).format("YYYY-MM-DD"),recentName:"近七天",selectStartTime:"",selectEndTime:"",startTime:"",endTime:"",chartExtend:{barWidth:28,grid:{left:50,right:50},toolbox:{show:!0,feature:{dataView:{show:!0,readOnly:!1},restore:{show:!0},saveAsImage:{show:!0},myTool1:{show:!0,title:"下载excel",icon:"path://M877.6 289.5L656 68.4c-2.8-2.8-6.6-4.4-10.6-4.4h-463c-22.3 0-40.5 18.1-40.5 40.4v815.2c0 22.3 18.1 40.4 40.5 40.4h659.1c22.3 0 40.5-18.1 40.5-40.4V300.1c0-4-1.6-7.8-4.4-10.6zM641.2 96.1l207.6 207.2H641.2V96.1zM841.5 930h-659c-5.8 0-10.5-4.7-10.5-10.4V104.4c0-5.6 4.8-10.4 10.5-10.4h428.8v224.3c0 8.3 6.7 15 15 15H852v586.3c0 5.7-4.7 10.4-10.5 10.4z M447.9 520.2h-32l-44.8 74.2c-3.3 5.7-6 11-8.3 16.1h-0.6c-2.5-5.9-5-11-7.6-15.4l-42.8-74.9h-34.3l66.3 107.7-72.1 108.6H306l49.8-81.3c3.2-6.8 4.8-10.6 5-11.3h0.7c2.1 5.6 3.8 9.3 4.9 11.2l48.4 81.4h34l-68.7-109.1 67.8-107.2zM509 520.2h-28v216.3h114.4v-24.7H509zM693.9 616.5c-19.3-9.5-31.9-17-37.6-22.5-5.8-5.5-8.7-12.6-8.7-21.4 0-9.9 4.2-17.6 12.5-23.1s19.1-8.3 32.4-8.3c20 0 36.5 4.5 49.5 13.5v-30.4c-10.1-5.2-25.9-7.8-47.4-7.8-22 0-40.3 5.3-54.7 15.8-14.5 10.5-21.7 24.8-21.7 42.7 0 11.9 3.5 22.5 10.4 31.8s21.2 19.3 43 30.1c15.7 7.7 26.4 13.5 32 17.2 5.7 3.7 10.2 8 13.4 12.8 3.3 4.8 4.9 10.3 4.9 16.3 0 21.6-15.2 32.4-45.6 32.4-10 0-20.5-1.9-31.6-5.6-11.1-3.7-20-8.5-26.6-14.2v31.8c5.2 3.5 13.5 6.5 25 8.9 11.4 2.4 21.4 3.6 30 3.6 24.5 0 43.7-5.1 57.5-15.2 13.8-10.1 20.7-24.7 20.7-43.7 0-12.7-4.2-24.1-12.7-34.2-8.6-10.2-23.4-20.3-44.7-30.5z",onclick:function(e){var t=JSON.stringify(e.getOption().series[0].name);t+=","+JSON.stringify(e.getOption().series[1].name);var a=JSON.stringify(e.getOption().series[0].data);a+="##"+JSON.stringify(e.getOption().series[1].data);var s=JSON.stringify(e.getOption().xAxis[0].data),i={title:t,jsonData:a,company:s};this.spinShow=!0,xt.downLoadExcel(i,t,(function(e){}))}}}},label:{show:!1,position:"top"},xAxis:{axisLabel:{interval:0,rotate:45,fontSize:10,fontWeight:"normal"},triggerEvent:!0},dataZoom:{type:"slider",realtime:!0,height:25,start:0,end:100}},chartColor:["#FFCC00","#EC6A2F"],chartData:{columns:["零售公司","店铺数","发起申请数"],rows:[{"零售公司":"qishuo","发起申请数":14,"店铺数":7},{"零售公司":"qishuo","发起申请数":7,"店铺数":3},{"零售公司":"qishuo","发起申请数":8,"店铺数":4},{"零售公司":"qishuo","发起申请数":5,"店铺数":2},{"零售公司":"qishuo","发起申请数":10,"店铺数":9}]},chartSettings:{showLine:["发起申请数"]}}},mounted:function(){this.dateBtnClick("今日"),this.timingRefresh()},methods:{resizeWindow:function(){var e=document.createEvent("HTMLEvents");e.initEvent("resize",!0,!0),window.dispatchEvent(e)},dateBtnClick:function(e){switch(e){case"今日":this.dateBtnValue="今日",this.recentName="近七天",this.dateSelectChange("今日"),this.chartExtend.barWidth=28,this.chartExtend.label.show=!0;break;case"本周":this.dateBtnValue="本周",this.recentName="本周",this.dateSelectChange("本周"),this.chartExtend.barWidth=28,this.chartExtend.label.show=!0;break;case"本月":this.dateBtnValue="本月",this.recentName="本月",this.dateSelectChange("本月"),this.chartExtend.barWidth=28,this.chartExtend.label.show=!0;break;case"自定义":this.dateBtnValue="自定义",this.recentName="自定义",this.diyDateChange();break}},diyDateChange:function(){this.selectStartTime&&this.selectEndTime&&this.dateSelectChange("自定义")},dateSelectChange:function(e){var t=this.$moment(new Date);switch(e){case"今日":this.viewDate=t.format("YYYY-MM-DD"),this.selectStartTime=this.$moment(new Date).format("YYYY-MM-DD 00:00:00"),this.selectEndTime=this.$moment(new Date).format("YYYY-MM-DD HH:mm:ss"),this.startTime=this.$moment(new Date).add(-6,"days").format("YYYY-MM-DD 00:00:00"),this.endTime=this.$moment(new Date).format("YYYY-MM-DD HH:mm:ss");break;case"本周":this.viewDate=t.startOf("week").format("YYYY-MM-DD")+" 至 "+this.$moment(new Date).format("YYYY-MM-DD"),this.selectStartTime=this.$moment(new Date).startOf("week").format("YYYY-MM-DD 00:00:00"),this.selectEndTime=this.$moment(new Date).format("YYYY-MM-DD HH:mm:ss"),this.startTime=this.selectStartTime,this.endTime=this.$moment(new Date).endOf("week").format("YYYY-MM-DD HH:mm:ss");break;case"本月":this.viewDate=t.startOf("month").format("YYYY-MM-DD")+" 至 "+this.$moment(new Date).format("YYYY-MM-DD"),this.selectStartTime=this.$moment(new Date).startOf("month").format("YYYY-MM-DD 00:00:00"),this.selectEndTime=this.$moment(new Date).format("YYYY-MM-DD HH:mm:ss"),this.startTime=this.selectStartTime,this.endTime=this.$moment(new Date).endOf("month").format("YYYY-MM-DD HH:mm:ss");break;case"自定义":this.selectStartTime=this.$moment(this.selectStartTime).format("YYYY-MM-DD 00:00:00"),this.selectEndTime=this.$moment(this.selectEndTime).format("YYYY-MM-DD 23:59:59"),this.startTime=this.selectStartTime,this.endTime=this.selectEndTime;break}this.getMainList()},getMainList:function(){var e={count:this.count,selectStartTime:null==this.selectStartTime?null:this.$moment(this.selectStartTime).format("YYYY-MM-DD 00:00:00"),selectEndTime:null==this.selectEndTime?null:this.$moment(this.selectEndTime).format("YYYY-MM-DD HH:mm:ss")},t=this;this.spinShow=!0,xt.getAnalysisApplyRequest(e,(function(e){t.spinShow=!1,"0000"!==e.data.code&&t.$Message.error("系统异常"),e=e.data.results,t.chartData.rows=[];for(var a=0;a<e.length;a++){var s={"零售公司":e[a].companyName,"发起申请数":e[a].applyCustomer,"店铺数":e[a].storeNum};t.chartData.rows.push(s)}t.resizeWindow()}))}}}),$t=zt,Rt=(a("a2e8"),Object(l["a"])($t,Ft,Bt,!1,null,"7c103164",null)),jt=Rt.exports,Pt=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("Row",{attrs:{gutter:32}},[a("i-col",{attrs:{span:"32"}},[a("row",[a("row",{staticClass:"search-row"},[a("row",[a("span",{staticClass:"search-span"},[e._v("选择日期")]),a("DatePicker",{staticClass:"date-picker",attrs:{separator:"至",type:"daterange",placement:"bottom-start","split-panels":"",placeholder:"请选择日期区间"},model:{value:e.dateRange,callback:function(t){e.dateRange=t},expression:"dateRange"}}),a("span",{staticClass:"search-span"},[e._v("大区")]),a("Select",{staticClass:"search-select",attrs:{filterable:"",placeholder:"请选择大区"},on:{"on-change":e.regionSelect},model:{value:e.regionId,callback:function(t){e.regionId=t},expression:"regionId"}},e._l(e.regionList,(function(t){return a("Option",{key:t.id,attrs:{value:t.id}},[e._v(e._s(t.name))])})),1),a("span",{staticClass:"search-span"},[e._v("零售公司")]),a("Select",{staticClass:"search-select",attrs:{filterable:"",placeholder:"请选择零售公司"},on:{"on-change":e.companySelect},model:{value:e.companyId,callback:function(t){e.companyId=t},expression:"companyId"}},e._l(e.companyList,(function(t){return a("Option",{key:t.id,attrs:{value:t.id}},[e._v(e._s(t.name))])})),1),a("span",{staticClass:"search-span"},[e._v("客户")]),a("Select",{staticClass:"search-select",attrs:{filterable:"",placeholder:"请选择客户"},model:{value:e.customerId,callback:function(t){e.customerId=t},expression:"customerId"}},e._l(e.customerList,(function(t){return a("Option",{key:t.id,attrs:{value:t.id}},[e._v(e._s(t.name))])})),1),a("Button",{staticClass:"search-btn",attrs:{type:"primary"},on:{click:e.searchBtnClick}},[e._v("查询")]),a("Button",{staticStyle:{"margin-left":"20px"},attrs:{type:"primary"},on:{click:e.exportZeroExtend}},[e._v("导出数据")])],1)],1),a("row",{staticStyle:{"margin-top":"30px"}},[a("Table",{attrs:{columns:e.columns1,data:e.data1,size:"small"}}),e.spinShow?a("Spin",{staticStyle:{top:"40px",height:"200px"},attrs:{size:"large",fix:""}}):e._e(),a("Page",{staticStyle:{"margin-top":"20px",float:"right"},attrs:{total:e.totalSize,current:e.pageNum,"page-size":e.pageSize,"show-elevator":"","show-total":"",placement:"top"},on:{"on-change":e.handlePage}})],1)],1)],1)],1)],1)},Ut=[];a("d81d");function qt(e,t){return L.get("/customer/view/all/zero",e).then(t)}function Ht(e,t){return L.get("/retail/org",e).then(t)}var Gt={getMainRequest:qt,getSelectListRequest:Ht},Jt={inject:["checkParamBlank"],data:function(){return{columns1:[{title:"序号",width:"80px",key:"number",align:"center"},{title:"店铺名称",key:"shopName",align:"left",width:"300px"},{title:"店铺编码",key:"shopCode",align:"left",width:"150px"},{title:"大区",key:"region",align:"left",width:"200px"},{title:"零售公司",key:"company",width:"170px",align:"left"},{title:"客户",key:"customer",align:"left"}],userId:JSON.parse(sessionStorage.getItem("loginInfo")).userId,spinShow:!1,data1:[],orginAllData:[],dateRange:[this.$route.query.startDate,this.$route.query.endDate],organizationalList:[],regionList:[],regionId:0,companyList:[],companyId:0,customerList:[],customerId:0,totalSize:0,pageNum:1,pageSize:15}},mounted:function(){this.getSelectList(),this.getMainList()},methods:{formartDate:function(e,t,a){return e?null==a?this.$moment(e).format(t)+" 00:00:00":this.$moment(e).format(t)+" 23:59:59":null},regionSelect:function(){var e=this.regionId;if(0===e)this.companyList=this.organizationalList.filter((function(e){return 2===e.level})),this.customerList=this.organizationalList.filter((function(e){return 3===e.level}));else{this.companyList=this.organizationalList.filter((function(t){return t.parentId===e&&2===t.level}));var t=this.companyList.map((function(e){return e.id}));this.customerList=this.organizationalList.filter((function(e){return-1!==t.indexOf(e.parentId)&&3===e.level}))}this.insertAllOption(),this.companyId=0,this.customerId=0},companySelect:function(){var e=this.companyId;if(0===e){var t=this.companyList.map((function(e){return e.id}));this.customerList=this.organizationalList.filter((function(e){return-1!==t.indexOf(e.parentId)&&3===e.level}))}else this.customerList=this.organizationalList.filter((function(t){return t.parentId===e&&3===t.level}));this.insertAllOption(),this.customerId=0},insertAllOption:function(){0!==this.regionList.length&&0===this.regionList[0].id||this.regionList.splice(0,0,{id:0,name:"全部"}),0!==this.companyList.length&&0===this.companyList[0].id||this.companyList.splice(0,0,{id:0,name:"全部"}),0!==this.customerList.length&&0===this.customerList[0].id||this.customerList.splice(0,0,{id:0,name:"全部"})},searchBtnClick:function(){this.pageNum=1,this.getMainList()},exportZeroExtend:function(){var e="0推广店铺";if(this.dateRange[0]){var t=this.$moment(this.dateRange[0]).format("YYYY-MM-DD"),s=this.$moment(this.dateRange[1]).format("YYYY-MM-DD");e+=""+t+"至"+s+""}this.originAllData=[];var i=this,n={userId:i.userId,pageNum:1,pageSize:i.totalSize,regionId:0===i.regionId?null:i.regionId,companyId:0===i.companyId?null:i.companyId,customerId:0===i.customerId?null:i.customerId,startTime:this.formartDate(i.dateRange[0],"YYYY-MM-DD"),endTime:this.formartDate(i.dateRange[1],"YYYY-MM-DD",!0)};Gt.getMainRequest(n,(function(t){if("0000"!==t.data.code&&i.$Message.error("系统异常"),t=t.data.results,t&&t.length>0){i.totalSize=t[0].totalSize;for(var s=0;s<t.length;s++){var n=t[s];i.originAllData.push(n)}a.e("chunk-753dcded").then(function(){var t=a("39a0"),s=t.export_json_to_excel,n=["序号","店铺名称","店铺编码","大区","零售公司","客户"],o=["number","shopName","shopCode","region","company","customer"],r=i.originAllData,l=i.formatJson(o,r);s(n,l,e)}.bind(null,a)).catch(a.oe)}t&&0===t.length&&i.$Message.info("暂无数据")}))},formatJson:function(e,t){return t.map((function(t){return e.map((function(e){return t[e]}))}))},getMainList:function(){this.data1=[];var e=this,t={userId:e.userId,pageNum:e.pageNum,pageSize:e.pageSize,regionId:0===e.regionId?null:e.regionId,companyId:0===e.companyId?null:e.companyId,customerId:0===e.customerId?null:e.customerId,startTime:this.formartDate(e.dateRange[0],"YYYY-MM-DD"),endTime:this.formartDate(e.dateRange[1],"YYYY-MM-DD",!0)};this.spinShow=!0,Gt.getMainRequest(t,(function(t){if(e.data1=[],e.spinShow=!1,"0000"!==t.data.code&&e.$Message.error("系统异常"),t=t.data.results,t&&t.length>0){e.totalSize=t[0].totalSize;for(var a=0;a<t.length;a++){var s=t[a];e.data1.push(s),e.checkParamBlank(s)}}null!=t&&0!==t.length||(e.totalSize=0)}))},getSelectList:function(){var e=this,t={userId:this.userId};Gt.getSelectListRequest(t,(function(t){"0000"!==t.data.code&&e.$Message.error("系统异常"),t=t.data.results,t&&(e.organizationalList=t,e.regionList=e.organizationalList.filter((function(e){return 1===e.level})),e.companyList=e.organizationalList.filter((function(e){return 2===e.level})),e.customerList=e.organizationalList.filter((function(e){return 3===e.level}))),e.insertAllOption()}))},handlePage:function(e){this.pageNum=e,this.getMainList(),sessionStorage.setItem("hisOrderPageNum",this.pageNum)}}},Qt=Jt,Zt=(a("eca9"),Object(l["a"])(Qt,Pt,Ut,!1,null,"7c60d4b9",null)),Wt=Zt.exports,Kt=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("Row",{attrs:{gutter:32}},[a("i-col",{attrs:{span:"32"}},[a("row",[a("row",{staticClass:"search-row"},[a("span",{staticClass:"left-15"},[e._v("选择日期")]),a("DatePicker",{staticClass:"left-15 date-picker",attrs:{type:"daterange",placement:"bottom-start","split-panels":"",placeholder:"请选择日期区间"},model:{value:e.dateRange,callback:function(t){e.dateRange=t},expression:"dateRange"}}),a("span",{staticClass:"left-15 txt-font-a"},[e._v("零售公司")]),a("Select",{staticClass:"left-15 txt-font-a search-select",attrs:{filterable:""},on:{"on-change":e.companySelect},model:{value:e.companyId,callback:function(t){e.companyId=t},expression:"companyId"}},e._l(e.companyList,(function(t){return a("Option",{key:t.id,attrs:{value:t.id}},[e._v(e._s(t.name))])})),1),a("span",{staticClass:"left-15 txt-font-a"},[e._v("店铺")]),a("Select",{staticClass:"left-15 txt-font-a search-select",attrs:{filterable:"",placeholder:"全部"},on:{"on-change":e.downShopChange},model:{value:e.shopId,callback:function(t){e.shopId=t},expression:"shopId"}},e._l(e.shopList,(function(t){return a("Option",{key:t.id,attrs:{value:t.id}},[e._v(e._s(t.name))])})),1),a("span",{staticClass:"left-15 txt-font-a"},[e._v("导购")]),a("Select",{staticClass:"left-15 txt-font-a search-select",attrs:{filterable:"",placeholder:"全部"},model:{value:e.sellerId,callback:function(t){e.sellerId=t},expression:"sellerId"}},e._l(e.sellerList,(function(t){return a("Option",{key:t.id,attrs:{value:t.staffId}},[e._v(e._s(t.name)+" ")])})),1),a("Button",{staticClass:"txt-font-a search-btn",attrs:{type:"primary"},on:{click:e.searchCustomerDataBtnClick}},[e._v("查询 ")]),a("Button",{staticClass:"txt-font-a search-btn",attrs:{type:"primary"},on:{click:e.exportData}},[e._v("导出数据 ")])],1),a("row",[a("Table",{ref:"table",staticStyle:{"margin-top":"20px"},attrs:{loading:e.loading,columns:e.columns1,data:e.data1,size:"small","no-data-text":"--"}})],1),a("Modal",{attrs:{draggable:"",scrollable:"",title:"好友信息",width:e.vipModalWidth+"px",height:"651px"},model:{value:e.modal12,callback:function(t){e.modal12=t},expression:"modal12"}},[a("row",{staticStyle:{padding:"10px 0"}},[e.ifVip?a("i-col",{attrs:{span:"24"}},[a("row",[a("span",{staticClass:"txt-font-b margin-right",staticStyle:{width:"80px",display:"inline-block","text-align":"right"}},[e._v("好友名称")]),a("i-input",{staticStyle:{width:"300px","font-weight":"600"},attrs:{placeholder:e.customerData.name},model:{value:e.customerName,callback:function(t){e.customerName=t},expression:"customerName"}})],1)],1):e._e(),e.ifVip?e._e():a("i-col",{attrs:{span:"12"}},[a("row",[a("span",{staticClass:"txt-font-b margin-right",staticStyle:{width:"80px",display:"inline-block","text-align":"right"}},[e._v("好友名称")]),a("i-input",{staticStyle:{width:"300px","font-weight":"600"},attrs:{placeholder:e.customerData.name},model:{value:e.customerName,callback:function(t){e.customerName=t},expression:"customerName"}})],1)],1),e.ifVip?e._e():a("i-col",{staticStyle:{"border-left":"1px solid #E8ECF2"},attrs:{span:"12"}},[a("row",{staticStyle:{"margin-left":"50px"}},[a("span",{staticClass:"txt-font-b",staticStyle:{width:"80px",display:"inline-block","text-align":"right"}},[e._v("关联会员")])]),a("row",{staticStyle:{"margin-top":"16px","margin-left":"98px"}},[a("span",{staticClass:"txt-font-b margin-right",staticStyle:{width:"80px",display:"inline-block","text-align":"left"}},[e._v("会员名称")]),a("span",{staticClass:"txt-font-b",staticStyle:{"font-weight":"600"}},[e._v(e._s(e.customerData.vipName))]),a("Button",{staticStyle:{"margin-left":"10px",height:"19px","margin-bottom":"3px"},attrs:{type:"primary",size:"small"}})],1),a("row",{staticStyle:{"margin-top":"16px","margin-left":"98px"}},[a("span",{staticClass:"txt-font-b margin-right",staticStyle:{width:"80px",display:"inline-block","text-align":"left"}},[e._v("手机号")]),a("span",{staticClass:"txt-font-b",staticStyle:{"font-weight":"600"}},[e._v(e._s(e.customerData.vipPhone))])]),a("row",{staticStyle:{"margin-top":"16px","margin-left":"98px"}},[a("span",{staticClass:"txt-font-b margin-right",staticStyle:{width:"80px",display:"inline-block","text-align":"left"}},[e._v("会员生日")]),a("span",{staticClass:"txt-font-b",staticStyle:{"font-weight":"600"}},[e._v(e._s(e.customerData.birthday))])]),a("row",{staticStyle:{"margin-top":"16px","margin-left":"98px"}},[a("span",{staticClass:"txt-font-b margin-right",staticStyle:{width:"80px",display:"inline-block","text-align":"left"}},[e._v("消费次数")]),a("span",{staticClass:"txt-font-b",staticStyle:{"font-weight":"600"}},[e._v(e._s(e.customerData.salesNum))])]),a("row",{staticStyle:{"margin-top":"16px","margin-left":"98px"}},[a("span",{staticClass:"txt-font-b margin-right",staticStyle:{width:"80px",display:"inline-block","text-align":"left"}},[e._v("消费金额")]),a("span",{staticClass:"txt-font-b",staticStyle:{"font-weight":"600"}},[e._v(e._s(e.customerData.salesAmt))])]),a("row",{staticStyle:{"margin-top":"16px","margin-left":"98px"}},[a("span",{staticClass:"txt-font-b margin-right",staticStyle:{width:"80px",display:"inline-block","text-align":"left"}},[e._v("最近消费")]),a("span",{staticClass:"txt-font-b",staticStyle:{"font-weight":"600"}},[e._v(e._s(e.customerData.lastSalesDay))])]),a("row",{staticStyle:{"margin-top":"16px","margin-left":"98px"}},[a("span",{staticClass:"txt-font-b margin-right",staticStyle:{width:"80px",display:"inline-block","text-align":"left"}},[e._v("专属导购")]),a("span",{staticClass:"txt-font-b",staticStyle:{"font-weight":"600"}},[e._v(e._s(e.customerData.sellerName))])]),a("row",{staticStyle:{"margin-top":"16px","margin-left":"98px"}},[a("span",{staticClass:"txt-font-b margin-right",staticStyle:{width:"80px",display:"inline-block","text-align":"left"}},[e._v("所属门店")]),a("span",{staticClass:"txt-font-b",staticStyle:{"font-size":"16px","font-weight":"600"}},[e._v(e._s(e.customerData.shopName))])])],1)],1),a("div",{attrs:{slot:"footer"},slot:"footer"},[a("Button",{staticStyle:{float:"left","margin-left":"110px"},attrs:{type:"primary",size:"large"},on:{click:e.asyncOK}},[e._v(" 保存 ")]),a("Button",{staticStyle:{"margin-left":"42px",float:"left",border:"none"},attrs:{type:"text",size:"large"},on:{click:e.asyncCancel}},[e._v("取消 ")]),a("i-input",{staticStyle:{"background-color":"Transparent",visibility:"hidden",height:"50px"}})],1)],1),a("Page",{attrs:{total:e.totalSize,current:e.pageNum,"page-size":e.pageSize,"show-elevator":"","show-total":"",placement:"top","class-name":"ks-page"},on:{"on-change":e.handlePage}})],1)],1)],1)],1)},Xt=[];function ea(e,t,a){return L.post("/customer/info",e).then(t).catch(a)}function ta(e,t){return L.post("/poi/seller/user/seller",e).then(t)}function aa(e,t){return L.post("/poi/store/user/shop",e).then(t)}function sa(e,t){return L.post("/customer/edit/info",e).then(t)}function ia(e,t){return L.post("/region/user/only/region",e).then(t)}function na(e,t){return L.get("/retail/company",e).then(t)}var oa={dataDetail:ea,downSellerData:ta,downShopData:aa,downRegionData:ia,editCustomerData:sa,downCompanyData:na};function ra(e,t){return L.get("/store/staff/list",e).then(t)}function la(e,t){return L.post("/region/user/only/region",e).then(t)}function ca(e,t){return L.post("/poi/store/user/shop",e).then(t)}function da(e,t){return L.get("/role/info/list",e).then(t)}function ua(e,t){return L.post("/store/staff/add",e).then(t)}function ma(e,t){return L.post("/store/staff/edit",e).then(t)}function pa(e,t){return L.post("/store/staff/delete",e).then(t)}var ha={getStaffList:ra,downRegionData:la,downShopData:ca,downRoleData:da,addSattf:ua,editSattf:ma,removeStaff:pa},fa={inject:["checkParamBlank"],data:function(){return{loading:!1,userId:JSON.parse(sessionStorage.getItem("loginInfo")).userId,totalSize:null,pageNum:1,pageSize:10,modal12:!1,startDate:null,endDate:null,customerName:null,dateRange:[],customerList:[],companyList:[],companyId:0,organizationalList:[],shopId:null,shopList:[],sellerId:null,sellerList:[],customerData:{},vipModalWidth:997,columns1:[{title:"序号",key:"number"},{title:"好友名称",key:"name"},{title:"所属门店",key:"shopName"},{title:"店铺编号",key:"shopCode"},{title:"所属导购",key:"sellerName"},{title:"工号",key:"sellerCode"},{title:"创建时间",key:"createTime"},{title:"好友手机号",key:"vipPhone"},{title:"关联会员",key:"vipName"},{title:"会员等级",key:"vipLevel"},{title:"会员生日",key:"birthday"}],data1:[]}},mounted:function(){this.getCustomerData(),this.getSelectList(),this.downSellerData(),this.downShopData(),this.downRegionData()},methods:{getSelectList:function(){var e=this,t={userId:this.userId};Gt.getSelectListRequest(t,(function(t){"0000"!==t.data.code&&e.$Message.error("系统异常"),t=t.data.results,t&&(e.organizationalList=t,e.companyList=e.organizationalList.filter((function(e){return 2===e.level}))),e.insertAllOption()}))},checkParamBlank:function(e){for(var t in e)e[t]=this.checkBlank(e[t])},checkBlank:function(e){return e&&""!==e?e:"--"},searchCustomerDataBtnClick:function(){this.totalSize=null,this.getCustomerData()},exportData:function(){var e=this,t=null,s=null;e.dateRange[0]&&(t=this.$moment(e.dateRange[0]).format("YYYY-MM-DD"),s=this.$moment(e.dateRange[1]).format("YYYY-MM-DD"));var i=[],n={userId:e.userId,startDate:t,endDate:s,companyId:e.changeData(e.companyId),shopId:e.changeData(e.shopId),sellerId:e.changeData(e.sellerId),pageNum:1,pageSize:e.totalSize};oa.dataDetail(n,(function(n){if(n=n.data.results,n){for(var o=0;o<n.length;o++){var r=n[o];if(r){0===o&&(e.totalSize=r.totalSize);var l=r.birthday,c=r.createTime;l&&(r.birthday=e.$moment(l).format("MM-DD")),c&&(r.createTime=e.$moment(c).format("YYYY-MM-DD")),e.checkParamBlank(r),i.push(r)}}null==t&&(t="--"),null==s&&(s="--");var d="客户明细";a.e("chunk-753dcded").then(function(){var t=a("39a0"),s=t.export_json_to_excel,n=["序号","好友名称","所属门店","店铺编号","所属导购","工号","创建时间","好友手机号","关联会员","会员等级","会员生日"],o=["number","name","shopName","shopCode","sellerName","sellerCode","createTime","phone","vipName","vipLevel","birthday"],r=i,l=e.formatJson(o,r);s(n,l,d)}.bind(null,a)).catch(a.oe)}}))},formatJson:function(e,t){return t.map((function(t){return e.map((function(e){return t[e]}))}))},getCustomerData:function(){var e=this;this.loading=!0,e.data1=[];var t=null,a=null;e.dateRange[0]&&(t=this.$moment(e.dateRange[0]).format("YYYY-MM-DD"),a=this.$moment(e.dateRange[1]).format("YYYY-MM-DD"));var s={userId:e.userId,startDate:t,endDate:a,companyId:e.changeData(e.companyId),shopId:e.changeData(e.shopId),sellerId:e.changeData(e.sellerId),pageNum:e.pageNum,pageSize:e.pageSize};oa.dataDetail(s,(function(t){if(e.data1=[],e.loading=!1,t=t.data.results,t)for(var a=0;a<t.length;a++){var s=t[a];if(s){0===a&&(e.totalSize=s.totalSize);var i=s.birthday,n=s.createTime;i&&(s.birthday=e.$moment(i).format("MM-DD")),n&&(s.createTime=e.$moment(n).format("YYYY-MM-DD")),e.data1.push(s),e.checkParamBlank(s)}}}),(function(){e.loading=!1}))},downSellerData:function(){var e=this;e.sellerList=[{id:0,name:"全部"}];var t={userId:e.userId,companyId:e.changeData(e.companyId),shopId:e.changeData(e.shopId)};oa.downSellerData(t,(function(t){if(t=t.data.results,t)for(var a=0;a<t.length;a++){var s=t[a];s&&e.sellerList.push(s)}}))},insertAllOption:function(){0!==this.companyList.length&&0===this.companyList[0].id||this.companyList.splice(0,0,{id:0,name:"全部"}),0!==this.shopList.length&&0===this.shopList[0].id||this.shopList.splice(0,0,{id:0,name:"全部"})},downShopData:function(e){var t=this,a=e;e||(a=t.companyId);var s=[];this.customerList=[],0===a||(this.customerList=this.organizationalList.filter((function(e){return e.parentId===a&&3===e.level})),this.insertAllOption()),s=this.customerList.map((function(e){return e.id}));var i={userId:t.userId,customerIds:JSON.stringify(s)};ha.downShopData(i,(function(e){if(e=e.data.results,e){t.shopList=[{id:0,name:"全部"}];for(var a=0;a<e.length;a++){var s=e[a];s&&t.shopList.push(s)}}}))},companySelect:function(){this.downShopData(this.companyId),this.selectedStore=0;var e=this;e.downSellerData()},downShopChange:function(){var e=this;e.downSellerData()},changeData:function(e){return 0==e?null:e},asyncOK:function(){var e=this;if(e.customerName){var t={customerId:e.customerData.id,name:e.customerName};oa.editCustomerData(t,null),e.getCustomerData()}e.asyncCancel()},asyncCancel:function(){var e=this;e.modal12=!1},ifVip:function(){var e=this,t="--"!==e.customerData.vipName;return t||(e.vipModalWidth=500),t},handlePage:function(e){this.pageNum=e,this.getCustomerData()}},computed:{options1:function(){var e=this;return{disabledDate:function(t){return null!=e.endDate&&""!=e.endDate&&(t&&t.valueOf()>e.endDate)}}},options2:function(){var e=this;return{disabledDate:function(t){return null!=e.startDate&&""!=e.startDate&&(t&&t.valueOf()<e.startDate)}}}}},ga=fa,va=(a("fd21"),Object(l["a"])(ga,Kt,Xt,!1,null,"e7e560ec",null)),ya=va.exports,Sa=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("Menu",{ref:"menu",attrs:{mode:"horizontal","active-name":e.selectedItemName}},e._l(e.threeLevel,(function(t){return a("MenuItem",{key:t.id,attrs:{name:t.id,to:t.resource}},[e._v(" "+e._s(t.name)+" ")])})),1),a("div",[a("router-view")],1)],1)},xa=[],ba={name:"IncreaseData",data:function(){return{threeLevel:null,selectedItemName:null}},created:function(){this.threeLevel=JSON.parse(sessionStorage.getItem("threeLevel")),this.menuInit()},mounted:function(){this.threeLevel=JSON.parse(sessionStorage.getItem("threeLevel")),this.menuInit()},methods:{menuInit:function(){var e=this;e.selectedItemName=e.threeLevel[0].id,this.$nextTick((function(){e.$refs.menu.updateActiveName()}))}}},wa=ba,Ca=Object(l["a"])(wa,Sa,xa,!1,null,"11878a10",null),Aa=Ca.exports,Da=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("Row",{staticClass:"search-row"},[a("i-col",{staticClass:"search-col",attrs:{span:"24"}},[a("Row",{staticClass:"row-style"},[a("span",{staticClass:"search-span"},[e._v("选择日期")]),a("DatePicker",{staticClass:"date-picker",attrs:{value:e.selectDate,type:"daterange","split-panels":"",placeholder:"请选择日期"},on:{"on-change":e.onChangeDateLister}}),a("span",{staticClass:"search-span"},[e._v("零售公司")]),a("Select",{staticClass:"search-select",attrs:{filterable:""},model:{value:e.selectedCompany,callback:function(t){e.selectedCompany=t},expression:"selectedCompany"}},e._l(e.companyList,(function(t){return a("Option",{key:t.id,attrs:{value:t.id}},[e._v(e._s(t.name))])})),1),a("Button",{staticClass:"search-btn",attrs:{type:"primary"},on:{click:e.generalizeOfRetail}},[e._v("查询")]),a("div",{staticClass:"search-div-btn"},[a("Button",{attrs:{type:"primary",loading:e.loading},on:{click:e.exportZeroExtend}},[e._v("导出数据")])],1)],1)],1)],1),a("Table",{ref:"table",staticStyle:{"margin-top":"20px"},attrs:{loading:e.tableLoading,columns:e.columns1,data:e.data1,size:"small"}}),a("Page",{attrs:{total:e.totalSize,current:e.pageNum,"page-size":e.pageSize,"show-elevator":"","show-total":"",placement:"top","class-name":"ks-page"},on:{"on-change":e.handlePage}})],1)},Ia=[],ka={name:"IncreaseDataCompany",data:function(){var e=this;return{loading:!1,selectedCompany:null,companyList:[],columns1:[{title:"序号",key:"index",width:"80px"},{title:"零售公司名称",key:"retailCompany",width:"250px"},{title:"总好友数",key:"allCustomer"},{title:"总好友数(去重)",key:"effectiveCustomer"},{title:"新增好友数",key:"newCustomer",render:function(t,a){var s=e;return null!=s.data1[a.index].newCustomer?t("div",[t("span",{},s.data1[a.index].newCustomer)]):t("div",[t("span",{},"0")])}},{title:"新增好友数(去重)",key:"newEffectiveCustomer",render:function(t,a){var s=e;return null!=s.data1[a.index].newEffectiveCustomer?t("div",[t("span",{},s.data1[a.index].newEffectiveCustomer)]):t("div",[t("span",{},"0")])}},{title:"日增好友平均",key:"avgNewCustomer",render:function(t,a){var s=e;return null!=s.data1[a.index].avgNewCustomer?t("div",[t("span",{},s.data1[a.index].avgNewCustomer)]):t("div",[t("span",{},"0")])}},{title:"日增好友平均(去重)",key:"avgNewEffectiveCustomer",render:function(t,a){var s=e;return null!=s.data1[a.index].avgNewEffectiveCustomer?t("div",[t("span",{},s.data1[a.index].avgNewEffectiveCustomer)]):t("div",[t("span",{},"0")])}},{title:"删除/拉黑成员客户数(累计)",key:"delCustomer"},{title:"拉黑率(累计)",key:"delRate"}],data1:[],totalSize:0,pageNum:1,pageSize:10,selectDate:[],tableLoading:!1}},mounted:function(){var e=this.$moment(new Date).add(-29,"day").format("YYYY-MM-DD"),t=this.$moment(new Date).format("YYYY-MM-DD");this.selectDate.push(e),this.selectDate.push(t),this.allCompany(),this.generalizeOfRetail()},methods:{onChangeDateLister:function(e){this.selectDate=e},allCompany:function(){var e=this,t={userId:JSON.parse(sessionStorage.getItem("loginInfo")).userId};this.companyList=[],De.listOfRetailCompany(t,(function(t){t=t.data,"0001"!==t.code?"0000"===t.code&&(e.companyList.push({id:"-1",name:"全部"}),e.selectedCompany="-1",t.results.forEach((function(t){e.companyList.push(t)}))):e.$Message.error("查询零售公司出错!")}))},generalizeOfRetail:function(){if(this.tableLoading=!0,""!==this.selectDate[0]){var e=this.selectedCompany;"-1"===this.selectedCompany&&(e=null);var t={startTime:this.selectDate[0],endTime:this.selectDate[1],orgId:e,pageNum:this.pageNum,pageSize:this.pageSize,userId:JSON.parse(sessionStorage.getItem("loginInfo")).userId},a=this;De.generalizeOfRetail(t,(function(e){if(a.data1=[],a.tableLoading=!1,e=e.data,"0001"!==e.code){if("0000"===e.code&&(a.tableLoading=!1,a.data1=e.results.dataVOS,a.totalSize=e.results.sizeNum,a.data1))for(var t=0;t<a.data1.length;t++)a.data1[t].index=(a.pageNum-1)*a.pageSize+t+1}else a.$Message.info("查询推广数据失败!")}))}else this.$Message.info("请选择日期")},handlePage:function(e){this.pageNum=e,this.generalizeOfRetail()},exportZeroExtend:function(){if(this.loading=!0,""!==this.selectDate[0]){var e=this.selectedCompany;"-1"===this.selectedCompany&&(e=null);var t={startTime:this.selectDate[0],endTime:this.selectDate[1],orgId:e,pageNum:1,pageSize:this.totalSize,userId:JSON.parse(sessionStorage.getItem("loginInfo")).userId},s=this,i=[];De.generalizeOfRetail(t,(function(e){if("0000"!==e.data.code&&s.$Message.error("系统异常"),e=e.data.results.dataVOS,e&&e.length>0){s.loading=!1;for(var t=0;t<e.length;t++){var n=e[t];n.index=t+1,i.push(n)}var o="零售公司推广情况"+s.selectDate[0]+"-"+s.selectDate[1];a.e("chunk-753dcded").then(function(){var e=a("39a0"),t=e.export_json_to_excel,n=["序号","零售公司名称","总好友数","总好友数(去重)","新增好友数","新增好友数(去重)","日增好友平均","日增好友平均(去重)","删除/拉黑成员客户数(累计)","拉黑率(累计)"],r=["index","retailCompany","allCustomer","effectiveCustomer","newCustomer","newEffectiveCustomer","avgNewCustomer","avgNewEffectiveCustomer","delCustomer","delRate"],l=s.formatJson(r,i);t(n,l,o)}.bind(null,a)).catch(a.oe)}e&&0!==e.length||s.$Message.info("暂无数据")}))}else this.$Message.info("请选择日期")},formatJson:function(e,t){return t.map((function(t){return e.map((function(e){return t[e]}))}))}}},Ma=ka,La=(a("d3af"),Object(l["a"])(Ma,Da,Ia,!1,null,"fb9b0d64",null)),_a=La.exports,Ya=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("Row",{staticClass:"search-row"},[a("i-col",{staticClass:"search-col",attrs:{span:"24"}},[a("Row",{staticClass:"row-style"},[a("span",{staticClass:"search-span"},[e._v("选择日期")]),a("DatePicker",{staticClass:"date-picker",attrs:{value:e.selectDate,type:"daterange","split-panels":"",placeholder:"请选择日期"},on:{"on-change":e.onChangeDateLister}}),a("span",{staticClass:"search-span"},[e._v("零售公司")]),a("Select",{staticClass:"search-select",attrs:{filterable:""},on:{"on-change":e.storeOfCompany},model:{value:e.selectedCompany,callback:function(t){e.selectedCompany=t},expression:"selectedCompany"}},e._l(e.companyList,(function(t){return a("Option",{key:t.id,attrs:{value:t.id}},[e._v(e._s(t.name))])})),1),a("span",{staticClass:"search-span"},[e._v("店铺")]),a("Select",{staticClass:"search-select",attrs:{filterable:""},on:{"on-change":e.sellerOfStore},model:{value:e.selectedStore,callback:function(t){e.selectedStore=t},expression:"selectedStore"}},e._l(e.storeList,(function(t){return a("Option",{key:t.id,attrs:{value:t.id}},[e._v(e._s(t.name))])})),1),a("span",{staticClass:"search-span"},[e._v("导购")]),a("Select",{staticClass:"search-select",attrs:{filterable:""},model:{value:e.selectedStaff,callback:function(t){e.selectedStaff=t},expression:"selectedStaff"}},e._l(e.staffList,(function(t){return a("Option",{key:t.id,attrs:{value:t.id}},[e._v(e._s(t.name))])})),1),a("Button",{staticClass:"search-btn",attrs:{type:"primary"},on:{click:e.generalizeOfSeller}},[e._v("查询")]),a("div",{staticClass:"search-div-btn"},[a("Button",{attrs:{type:"primary",loading:e.loading},on:{click:e.exportZeroExtend}},[e._v("导出数据")])],1)],1)],1)],1),a("Table",{ref:"table",staticStyle:{"margin-top":"20px"},attrs:{loading:e.tableLoading,columns:e.columns1,data:e.data1,size:"small"}}),a("Page",{attrs:{total:e.totalSize,current:e.pageNum,"page-size":e.pageSize,"show-elevator":"","show-total":"",placement:"top","class-name":"ks-page"},on:{"on-change":e.handlePage}})],1)},Na=[],Oa={name:"IncreaseDataStaff",data:function(){var e=this;return{selectedCompany:null,companyList:[],selectedStore:null,storeList:[],selectedStaff:null,staffList:[],columns1:[{title:"序号",key:"index",width:"80px"},{title:"导购名称",key:"sellerName"},{title:"工号",key:"sellerCode"},{title:"所属店铺",key:"shopName",width:"250px"},{title:"店铺编码",key:"shopCode"},{title:"所属零售公司",key:"companyName",width:"250px"},{title:"总好友数",key:"allCustomer"},{title:"总好友数(去重)",key:"effectiveCustomer",render:function(t,a){var s=e;return null!=s.data1[a.index].effectiveCustomer?t("div",[t("span",{},s.data1[a.index].effectiveCustomer)]):t("div",[t("span",{},"0")])}},{title:"新增好友数",key:"newCustomer"},{title:"新增好友数(去重)",key:"newEffectiveCustomer"},{title:"日增好友平均(去重)",key:"avgNewCustomer"}],data1:[],totalSize:0,pageNum:1,pageSize:10,selectDate:[],loading:!1,tableLoading:!1}},mounted:function(){var e=this.$moment(new Date).add(-29,"day").format("YYYY-MM-DD"),t=this.$moment(new Date).format("YYYY-MM-DD");this.selectDate.push(e),this.selectDate.push(t),this.allCompany(),this.storeInit(),this.sellerInit(),this.generalizeOfSeller()},methods:{onChangeDateLister:function(e){this.selectDate=e},allCompany:function(){var e=this,t={userId:JSON.parse(sessionStorage.getItem("loginInfo")).userId};this.companyList=[],De.listOfRetailCompany(t,(function(t){t=t.data,"0001"!==t.code?"0000"===t.code&&(e.companyList.push({id:"-1",name:"全部"}),e.selectedCompany="-1",t.results.forEach((function(t){e.companyList.push(t)}))):e.$Message.error("查询零售公司出错!")}))},storeInit:function(){var e=this,t={userId:JSON.parse(sessionStorage.getItem("loginInfo")).userId};this.storeList=[],De.storeInit(t,(function(t){t=t.data,"0001"!==t.code?"0000"===t.code&&(e.storeList.push({id:"-1",name:"全部"}),e.selectedStore="-1",t.results.forEach((function(t){e.storeList.push(t)}))):e.$Message.error("查询零售公司的店铺出错!")}))},sellerInit:function(){var e=this,t={userId:JSON.parse(sessionStorage.getItem("loginInfo")).userId};this.staffList=[],De.sellerInit(t,(function(t){t=t.data,"0001"!==t.code?"0000"===t.code&&(e.staffList.push({id:"-1",name:"全部"}),e.selectedStaff="-1",t.results.forEach((function(t){e.staffList.push(t)}))):e.$Message.error("查询零售公司的店铺出错!")}))},storeOfCompany:function(){var e=this;this.selectedStore="";var t=this.selectedCompany;"-1"===this.selectedCompany&&(t=null);var a={orgId:t};this.storeList=[],De.listOfStoreByCompany(a,(function(t){t=t.data,"0001"!==t.code?"0000"===t.code&&(e.storeList.push({id:"-1",name:"全部"}),e.selectedStore="-1",t.results.forEach((function(t){e.storeList.push(t)}))):e.$Message.error("查询零售公司的店铺出错!")}))},sellerOfStore:function(){var e=this;this.selectedStaff="";var t=this.selectedStore;"-1"===this.selectedStore&&(t=null);var a={shopId:t};this.staffList=[],De.listOfSellerByStore(a,(function(t){t=t.data,"0001"!==t.code?"0000"===t.code&&(e.staffList.push({id:"-1",name:"全部"}),e.selectedStaff="-1",t.results.forEach((function(t){e.staffList.push(t)}))):e.$Message.error("查询零售公司的店铺出错!")}))},generalizeOfSeller:function(){if(this.tableLoading=!0,""!==this.selectDate[0]){var e=this,t=this.selectedStaff;"-1"===this.selectedStaff&&(t=null);var a=this.selectedStore;"-1"===this.selectedStore&&(a=null);var s=this.selectedCompany;"-1"===this.selectedCompany&&(s=null);var i={startTime:this.selectDate[0],endTime:this.selectDate[1],orgId:s,shopId:a,sellerId:t,pageNum:this.pageNum,pageSize:this.pageSize,userId:JSON.parse(sessionStorage.getItem("loginInfo")).userId};this.data1=[],De.generalizeOfSeller(i,(function(t){if(e.data1=[],e.tableLoading=!1,t=t.data,"0001"!==t.code){if("0000"===t.code){e.data1=t.results.dataVOS;for(var a=0;a<e.data1.length;a++)e.data1[a].index=(e.pageNum-1)*e.pageSize+a+1;e.totalSize=t.results.sizeNum}}else e.$Message.error("查询零售公司的店铺出错!")}))}else this.$Message.info("请选择日期")},handlePage:function(e){this.pageNum=e,this.generalizeOfSeller()},exportZeroExtend:function(){if(this.loading=!0,""!==this.selectDate[0]){var e=this.selectedStaff;"-1"===this.selectedStaff&&(e=null);var t=this.selectedStore;"-1"===this.selectedStore&&(t=null);var s=this.selectedCompany;"-1"===this.selectedCompany&&(s=null);var i=this,n={startTime:this.selectDate[0],endTime:this.selectDate[1],orgId:s,shopId:t,sellerId:e,pageNum:1,pageSize:this.totalSize,userId:JSON.parse(sessionStorage.getItem("loginInfo")).userId},o=[];De.generalizeOfSeller(n,(function(e){if("0000"!==e.data.code&&i.$Message.error("系统异常"),e=e.data.results.dataVOS,e&&e.length>0){i.loading=!1;for(var t=0;t<e.length;t++){var s=e[t];s.index=t+1,o.push(s)}var n="导购推广情况"+i.selectDate[0]+"-"+i.selectDate[1];a.e("chunk-753dcded").then(function(){var e=a("39a0"),t=e.export_json_to_excel,s=["序号","导购名称","工号","所属店铺","店铺编码","所属零售公司","总好友数","总好友数(去重)","新增好友数","新增好友数(去重)","日增好友平均(去重)"],r=["index","sellerName","sellerCode","shopName","shopCode","companyName","allCustomer","effectiveCustomer","newCustomer","newEffectiveCustomer","avgNewCustomer"],l=i.formatJson(r,o);t(s,l,n)}.bind(null,a)).catch(a.oe)}e&&0!==e.length||i.$Message.info("暂无数据")}))}else this.$Message.info("请选择日期")},formatJson:function(e,t){return t.map((function(t){return e.map((function(e){return t[e]}))}))}}},Ea=Oa,Ta=(a("c5d3"),Object(l["a"])(Ea,Ya,Na,!1,null,"65bcb85c",null)),Va=Ta.exports,Fa=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("Row",{staticClass:"search-row"},[a("i-col",{staticClass:"search-col",attrs:{span:"24"}},[a("Row",{staticClass:"row-style"},[a("span",{staticClass:"search-span"},[e._v("选择日期")]),a("DatePicker",{staticClass:"date-picker",attrs:{value:e.selectDate,type:"daterange","split-panels":"",placeholder:"请选择日期"},on:{"on-change":e.onChangeDateLister}}),a("span",{staticClass:"search-span"},[e._v("零售公司")]),a("Select",{staticClass:"search-select",attrs:{filterable:""},on:{"on-change":e.storeOfCompany},model:{value:e.selectedCompany,callback:function(t){e.selectedCompany=t},expression:"selectedCompany"}},e._l(e.companyList,(function(t){return a("Option",{key:t.id,attrs:{value:t.id}},[e._v(e._s(t.name))])})),1),a("span",{staticClass:"search-span"},[e._v("店铺")]),a("Select",{staticClass:"search-select",attrs:{filterable:""},model:{value:e.selectedStore,callback:function(t){e.selectedStore=t},expression:"selectedStore"}},e._l(e.storeList,(function(t){return a("Option",{key:t.id,attrs:{value:t.id}},[e._v(e._s(t.name))])})),1),a("Button",{staticClass:"search-btn",attrs:{type:"primary"},on:{click:e.generalizeOfStore}},[e._v("查询")]),a("div",{staticClass:"search-div-btn"},[a("Button",{attrs:{loading:e.loading,type:"primary"},on:{click:e.exportZeroExtend}},[e._v("导出数据")])],1)],1)],1)],1),a("Table",{ref:"table",staticStyle:{"margin-top":"20px"},attrs:{loading:e.tableLoading,columns:e.columns1,data:e.data1,size:"small"}}),a("Page",{attrs:{total:e.totalSize,current:e.pageNum,"page-size":e.pageSize,"show-elevator":"","show-total":"",placement:"top","class-name":"ks-page"},on:{"on-change":e.handlePage}})],1)},Ba=[],za={name:"IncreaseDataStore",data:function(){return{selectDate:[],selectedCompany:null,companyList:[],selectedStore:null,storeList:[],columns1:[{title:"序号",key:"index",width:"80px"},{title:"店铺",key:"shopName",width:"250px"},{title:"店铺编号",key:"shopCode"},{title:"所属零售公司",key:"companyName",width:"250px"},{title:"总好友数",key:"allCustomer"},{title:"总好友数(去重)",key:"effectiveCustomer"},{title:"新增好友数",key:"newCustomer"},{title:"新增好友数(去重)",key:"newEffectiveCustomer"},{title:"日增好友平均",key:"avgNewCustomer"},{title:"日增好友平均(去重)",key:"avgNewEffectiveCustomer"},{title:"删除/拉黑成员客户数(累计)",key:"delCustomer"},{title:"拉黑率(累计)",key:"delRate"}],data1:[],totalSize:0,pageNum:1,pageSize:10,loading:!1,tableLoading:!1}},mounted:function(){var e=this.$moment(new Date).add(-29,"day").format("YYYY-MM-DD"),t=this.$moment(new Date).format("YYYY-MM-DD");this.selectDate.push(e),this.selectDate.push(t),this.allCompany(),this.storeInit(),this.generalizeOfStore()},methods:{allCompany:function(){var e=this,t={userId:JSON.parse(sessionStorage.getItem("loginInfo")).userId};this.companyList=[],De.listOfRetailCompany(t,(function(t){t=t.data,"0001"!==t.code?"0000"===t.code&&(e.companyList.push({id:"-1",name:"全部"}),e.selectedCompany="-1",t.results.forEach((function(t){e.companyList.push(t)}))):e.$Message.error("查询零售公司出错!")}))},storeInit:function(){var e=this,t={userId:JSON.parse(sessionStorage.getItem("loginInfo")).userId};this.storeList=[],De.storeInit(t,(function(t){t=t.data,"0001"!==t.code?"0000"===t.code&&(e.storeList.push({id:"-1",name:"全部"}),e.selectedStore="-1",t.results.forEach((function(t){e.storeList.push(t)}))):e.$Message.error("查询零售公司的店铺出错!")}))},storeOfCompany:function(){this.selectedStore=null;var e=this,t=this.selectedCompany;"-1"===this.selectedCompany&&(t=null);var a={orgId:t};this.storeList=[],De.listOfStoreByCompany(a,(function(t){t=t.data,"0001"!==t.code?"0000"===t.code&&(e.storeList.push({id:"-1",name:"全部"}),e.selectedStore="-1",t.results.forEach((function(t){e.storeList.push(t)}))):e.$Message.error("查询零售公司的店铺出错!")}))},generalizeOfStore:function(){if(this.pageNum=1,this.tableLoading=!0,""!==this.selectDate[0]){var e=this.selectedCompany;"-1"===this.selectedCompany&&(e=null);var t=this.selectedStore;"-1"===this.selectedStore&&(t=null);var a={startTime:this.selectDate[0],endTime:this.selectDate[1],orgId:e,shopId:t,pageNum:this.pageNum,pageSize:this.pageSize,userId:JSON.parse(sessionStorage.getItem("loginInfo")).userId},s=this;De.generalizeOfStore(a,(function(e){if(s.data1=[],s.tableLoading=!1,e=e.data,"0001"!==e.code){if("0000"===e.code){s.data1=e.results.dataVOS;for(var t=0;t<s.data1.length;t++)s.data1[t].index=(s.pageNum-1)*s.pageSize+t+1;s.totalSize=e.results.sizeNum}}else s.$Message.info("查询门店推广数据失败!")}))}else this.$Message.info("请选择日期")},handlePage:function(e){this.pageNum=e,this.generalizeOfStore()},onChangeDateLister:function(e){this.selectDate=e},exportZeroExtend:function(){if(this.loading=!0,""!==this.selectDate[0]){var e=this.selectedCompany;"-1"===this.selectedCompany&&(e=null);var t=this.selectedStore;"-1"===this.selectedStore&&(t=null);var s={startTime:this.selectDate[0],endTime:this.selectDate[1],orgId:e,shopId:t,pageNum:this.pageNum,pageSize:this.totalSize,userId:JSON.parse(sessionStorage.getItem("loginInfo")).userId},i=this,n=[];De.generalizeOfStore(s,(function(e){if("0000"!==e.data.code&&i.$Message.error("系统异常"),e=e.data.results.dataVOS,e&&e.length>0){i.loading=!1;for(var t=0;t<e.length;t++){var s=e[t];s.index=t+1,n.push(s)}var o="店铺推广情况"+i.selectDate[0]+"-"+i.selectDate[1];a.e("chunk-753dcded").then(function(){var e=a("39a0"),t=e.export_json_to_excel,s=["序号","店铺","店铺编号","所属零售公司","总好友数","总好友数(去重)","新增好友数","新增好友数(去重)","日增好友平均","日增好友平均(去重)","删除/拉黑成员客户数(累计)","拉黑率(累计)"],r=["index","shopName","shopCode","companyName","allCustomer","effectiveCustomer","newCustomer","newEffectiveCustomer","avgNewCustomer","avgNewEffectiveCustomer","delCustomer","delRate"],l=i.formatJson(r,n);t(s,l,o)}.bind(null,a)).catch(a.oe)}e&&0!==e.length||i.$Message.info("暂无数据")}))}else this.$Message.info("请选择日期")},formatJson:function(e,t){return t.map((function(t){return e.map((function(e){return t[e]}))}))}}},$a=za,Ra=Object(l["a"])($a,Fa,Ba,!1,null,"1950bfb0",null),ja=Ra.exports,Pa=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",[s("Row",{staticClass:"search-row"},[s("i-col",{staticClass:"search-col",attrs:{span:"24"}},[s("Row",{staticClass:"row-style"},[s("i-col",{staticStyle:{"text-align":"left","padding-right":"20px"},attrs:{span:"12"}},[s("Button",{attrs:{type:"primary"},on:{click:function(t){return e.back()}}},[e._v("返回")])],1),s("i-col",{staticStyle:{"text-align":"right","padding-right":"20px"},attrs:{span:"12"}},[s("Button",{attrs:{type:"primary"},on:{click:function(t){return e.open(1)}}},[e._v("添加推广人员")])],1)],1)],1)],1),s("Table",{staticStyle:{"margin-top":"20px"},attrs:{columns:e.columns1,data:e.data1,size:"small"},scopedSlots:e._u([{key:"qrCodeAction",fn:function(t){var i=t.row;return[s("img",{staticStyle:{"margin-left":"5px","margin-top":"5px",width:"30px",height:"30px"},attrs:{src:a("c4ac")},on:{click:function(t){return e.show(i)}}})]}},{key:"state",fn:function(t){var a=t.row,i=t.index;return[s("i-switch",{attrs:{size:"large",value:a.qrCodeState},on:{"on-change":function(t){return e.onSwitchChangeLister(a,i)}}},[s("span",{attrs:{slot:"open"},slot:"open"},[e._v("开启")]),s("span",{attrs:{slot:"close"},slot:"close"},[e._v("关闭")])])]}},{key:"action",fn:function(t){var a=t.row;return[s("Button",{staticStyle:{border:"0px",color:"#2074E2"},attrs:{ghost:"",type:"primary",size:"small"},on:{click:function(t){return e.open(2,a)}}},[e._v("修改 ")]),s("Button",{staticStyle:{border:"0px"},attrs:{ghost:"",type:"error",size:"small"},on:{click:function(t){return e.remove(a)}}},[e._v("删除")])]}}])}),s("Modal",{attrs:{"footer-hide":!0,width:"230","class-name":"vertical-center-modal"},model:{value:e.isShow,callback:function(t){e.isShow=t},expression:"isShow"}},[s("div",{attrs:{slot:"header"},slot:"header"},[s("p")]),s("p",[e._v(e._s(this.showStoreCode))]),s("p",[e._v(e._s(this.showStoreName))]),s("img",{staticStyle:{width:"200px",height:"200px"},attrs:{src:e.qrCodeImage}}),s("div",{staticStyle:{"text-align":"center"}},[s("Button",{attrs:{ghost:"",type:"primary"},on:{click:function(t){return e.download(e.rowData)}}},[e._v("下载")])],1)]),s("Modal",{attrs:{"footer-hide":!0},model:{value:e.isShowAdd,callback:function(t){e.isShowAdd=t},expression:"isShowAdd"}},[s("div",{attrs:{slot:"header"},slot:"header"},[1===e.flag?[s("span",[e._v("添加推广人员")])]:[s("span",[e._v("修改推广人员")])]],2),s("Form",{ref:"formValidate",attrs:{model:e.formValidate,rules:e.ruleValidate,"label-width":80}},[s("FormItem",{attrs:{label:"名称",prop:"name"}},[s("i-input",{attrs:{placeholder:"请输入名字"},model:{value:e.formValidate.name,callback:function(t){e.$set(e.formValidate,"name",t)},expression:"formValidate.name"}})],1),s("FormItem",{attrs:{label:"手机",prop:"phone"}},[s("i-input",{attrs:{placeholder:"成员通过验证该手机号后可加入企业",disabled:1!==e.flag},model:{value:e.formValidate.phone,callback:function(t){e.$set(e.formValidate,"phone",t)},expression:"formValidate.phone"}})],1),s("FormItem",{attrs:{label:"工号",prop:"staffCode"}},[s("i-input",{attrs:{placeholder:"请输入工号",disabled:1!==e.flag},model:{value:e.formValidate.staffCode,callback:function(t){e.$set(e.formValidate,"staffCode",t)},expression:"formValidate.staffCode"}})],1),s("FormItem",{attrs:{label:"角色",prop:"role"}},[s("Select",{attrs:{placeholder:"选择角色",disabled:1!==e.flag},model:{value:e.formValidate.role,callback:function(t){e.$set(e.formValidate,"role",t)},expression:"formValidate.role"}},[s("Option",{attrs:{value:"DZ-DIANZHANG"}},[e._v("店长")]),s("Option",{attrs:{value:"DG-DAOGOU"}},[e._v("导购")])],1)],1),1===e.flag?s("FormItem",{attrs:{label:"",prop:"checkbox"}},[s("CheckboxGroup",{model:{value:e.formValidate.checkbox,callback:function(t){e.$set(e.formValidate,"checkbox",t)},expression:"formValidate.checkbox"}},[s("Checkbox",{attrs:{label:"vail"}},[e._v("同步开通账号")])],1)],1):e._e(),s("FormItem",{staticStyle:{"text-align":"left"}},[s("Row",[s("i-col",{attrs:{span:"16"}},[s("Button",{attrs:{type:"primary"},on:{click:function(t){return e.handleSubmit(e.formValidate)}}},[e._v("保存")]),s("Button",{staticStyle:{"margin-left":"8px"},on:{click:function(t){return e.handleReset("formValidate")}}},[e._v("取消")])],1)],1)],1)],1)],1),s("Modal",{attrs:{title:"删除提示",align:"center"},on:{"on-cancel":e.cancel},model:{value:e.modal13,callback:function(t){e.modal13=t},expression:"modal13"}},[s("p",{staticStyle:{"margin-top":"20px","margin-bottom":"20px"}},[e._v("确定要删除此账户吗?删除后不可恢复")]),s("div",{staticStyle:{"text-align":"center","margin-bottom":"10px","margin-top":"10px"},attrs:{slot:"footer"},slot:"footer"},[s("Button",{staticStyle:{width:"100px"},on:{click:function(t){e.modal13=!1}}},[e._v("取消删除")]),s("Button",{staticStyle:{width:"100px","margin-left":"20px"},attrs:{type:"error"},on:{click:e.deleteStaff}},[e._v("确认删除")])],1)]),s("Page",{staticClass:"ks-page",attrs:{total:e.total,current:e.pageNum,"page-size":e.pageSize,"show-elevator":"","show-total":"",placement:"top"},on:{"on-change":e.handlePage}})],1)},Ua=[],qa=[{prefix:"86",en:"China",cn:"中国"},{prefix:"93",en:"Afghanistan",cn:"阿富汗"},{prefix:"355",en:"Albania",cn:"阿尔巴尼亚"},{prefix:"213",en:"Algera",cn:"阿尔格拉"},{prefix:"376",en:"Andorra",cn:"安道尔"},{prefix:"244",en:"Angola",cn:"安哥拉"},{prefix:"1264",en:"Anguilla",cn:"安圭拉"},{prefix:"247",en:"Ascension",cn:"阿森松岛"},{prefix:"1268",en:"Antigua and Barbuda",cn:"安提瓜和巴布达"},{prefix:"54",en:"Argentina",cn:"阿根廷"},{prefix:"374",en:"Armenia",cn:"亚美尼亚"},{prefix:"297",en:"Aruba",cn:"阿鲁巴"},{prefix:"61",en:"Australia",cn:"澳大利亚"},{prefix:"43",en:"Austria",cn:"奥地利"},{prefix:"994",en:"Azerbaijan",cn:"阿塞拜疆"},{prefix:"1242",en:"Bahamas",cn:"巴哈马"},{prefix:"973",en:"Bahrain",cn:"巴林"},{prefix:"880",en:"Bangladesh",cn:"孟加拉国"},{prefix:"1246",en:"Barbados",cn:"巴巴多斯"},{prefix:"375",en:"Belarus",cn:"白俄罗斯"},{prefix:"32",en:"Belgium",cn:"比利时"},{prefix:"501",en:"Belize",cn:"伯利兹"},{prefix:"229",en:"Benin",cn:"贝宁"},{prefix:"1441",en:"Bermuda",cn:"百慕大"},{prefix:"975",en:"Bhutan",cn:"不丹"},{prefix:"591",en:"Bolivia",cn:"玻利维亚"},{prefix:"387",en:"Bosnia and Herzegovina",cn:"波斯尼亚和黑塞哥维那"},{prefix:"267",en:"Botwana",cn:"博茨瓦纳"},{prefix:"55",en:"Brazill",cn:"巴西"},{prefix:"673",en:"Brunei",cn:"文莱"},{prefix:"359",en:"Bulgaria",cn:"保加利亚"},{prefix:"226",en:"Burkina Faso",cn:"布基纳法索"},{prefix:"257",en:"Burundi",cn:"布隆迪"},{prefix:"855",en:"Cambodia",cn:"柬埔寨"},{prefix:"237",en:"Cameroon",cn:"喀麦隆"},{prefix:"1",en:"Canada",cn:"加拿大"},{prefix:"238",en:"Cape Verde",cn:"佛得角"},{prefix:"1345",en:"Cayman Islands",cn:"开曼群岛"},{prefix:"236",en:"Central African Republic",cn:"中非共和国"},{prefix:"235",en:"Chad",cn:"乍得"},{prefix:"56",en:"Chile",cn:"智利"},{prefix:"57",en:"Colombia",cn:"哥伦比亚"},{prefix:"269",en:"Comoros",cn:"科摩罗"},{prefix:"242",en:"Republic of the Congo",cn:"刚果共和国"},{prefix:"243",en:"Democratic Republic of the Congo",cn:"刚果民主共和国"},{prefix:"682",en:"Cook Islands",cn:"库克群岛"},{prefix:"506",en:"Costa Rica",cn:"哥斯达黎加"},{prefix:"225",en:"Cote divoire",cn:"科特迪沃"},{prefix:"385",en:"Croatia",cn:"克罗地亚"},{prefix:"53",en:"Cuba",cn:"古巴"},{prefix:"357",en:"Cyprus",cn:"塞浦路斯"},{prefix:"420",en:"Czech Republic",cn:"捷克共和国"},{prefix:"45",en:"Denmark",cn:"丹麦"},{prefix:"253",en:"Djibouti",cn:"吉布提"},{prefix:"1767",en:"Dominica",cn:"多米尼加"},{prefix:"1809",en:"Dominican Republic",cn:"多米尼加共和国"},{prefix:"593",en:"Ecuador",cn:"厄瓜多尔"},{prefix:"20",en:"Egypt",cn:"埃及"},{prefix:"503",en:"EISalvador",cn:"艾萨尔瓦多"},{prefix:"372",en:"Estonia",cn:"爱沙尼亚"},{prefix:"251",en:"Ethiopia",cn:"埃塞俄比亚"},{prefix:"298",en:"Faroe Islands",cn:"法罗群岛"},{prefix:"679",en:"Fiji",cn:"斐济"},{prefix:"358",en:"Finland",cn:"芬兰"},{prefix:"33",en:"France",cn:"法国"},{prefix:"594",en:"French Guiana",cn:"法属圭亚那"},{prefix:"689",en:"French Polynesia",cn:"法属波利尼西亚"},{prefix:"241",en:"Gabon",cn:"加蓬"},{prefix:"220",en:"Gambia",cn:"冈比亚"},{prefix:"995",en:"Georgia",cn:"格鲁吉亚"},{prefix:"94",en:"Germany",cn:"德国"},{prefix:"233",en:"Ghana",cn:"加纳"},{prefix:"350",en:"Gibraltar",cn:"直布罗陀"},{prefix:"30",en:"Greece",cn:"希腊"},{prefix:"299",en:"Greenland",cn:"格陵兰"},{prefix:"1473",en:"Grenada",cn:"格林纳达"},{prefix:"590",en:"Guadeloupe",cn:"瓜德罗普"},{prefix:"1671",en:"Guam",cn:"关岛"},{prefix:"502",en:"Guatemala",cn:"危地马拉"},{prefix:"240",en:"Guinea",cn:"几内亚"},{prefix:"44",en:"Guernsey",cn:"根西"},{prefix:"224",en:"Guinea",cn:"几内亚"},{prefix:"592",en:"Guyana",cn:"圭亚那"},{prefix:"509",en:"Haiti",cn:"海地"},{prefix:"504",en:"Honduras",cn:"洪都拉斯"},{prefix:"852",en:"Hong Kong",cn:"香港"},{prefix:"95",en:"Myanmar",cn:"缅甸"},{prefix:"36",en:"Hungary",cn:"匈牙利"},{prefix:"354",en:"Iceland",cn:"冰岛"},{prefix:"91",en:"Indea",cn:"印度"},{prefix:"62",en:"Indonesia",cn:"印度尼西亚"},{prefix:"98",en:"Iran",cn:"伊朗"},{prefix:"964",en:"Iraq",cn:"伊拉克"},{prefix:"353",en:"Ireland",cn:"爱尔兰"},{prefix:"44",en:"Isle of Man",cn:"马恩岛"},{prefix:"972",en:"Israel",cn:"以色列"},{prefix:"93",en:"Italy",cn:"意大利"},{prefix:"1876",en:"Jamaica",cn:"牙买加"},{prefix:"81",en:"Japan",cn:"日本"},{prefix:"44",en:"Jersey",cn:"泽西岛"},{prefix:"962",en:"Jordan",cn:"约旦"},{prefix:"7",en:"Kazeakhstan",cn:"哈萨克斯坦"},{prefix:"254",en:"Kenya",cn:"肯尼亚"},{prefix:"383",en:"Kosovo",cn:"科索沃"},{prefix:"965",en:"Kuwait",cn:"科威特"},{prefix:"996",en:"Kyrgyzstan",cn:"吉尔吉斯斯坦"},{prefix:"856",en:"Laos",cn:"老挝"},{prefix:"371",en:"Latvia",cn:"拉脱维亚"},{prefix:"961",en:"Lebanon",cn:"黎巴嫩"},{prefix:"266",en:"Lesotho",cn:"莱索托"},{prefix:"231",en:"Liberia",cn:"利比里亚"},{prefix:"218",en:"Libya",cn:"利比亚"},{prefix:"423",en:"Liechtenstein",cn:"列支敦士登"},{prefix:"370",en:"Lithuania",cn:"立陶宛"},{prefix:"352",en:"Luxembourg",cn:"卢森堡"},{prefix:"853",en:"Macao",cn:"澳门"},{prefix:"389",en:"Macedonia",cn:"马其顿"},{prefix:"261",en:"Madagascar",cn:"马达加斯加"},{prefix:"265",en:"Malawi",cn:"马拉维"},{prefix:"60",en:"Malaysia",cn:"马来西亚"},{prefix:"960",en:"Maldives",cn:"马尔代夫"},{prefix:"223",en:"Mali",cn:"马里"},{prefix:"356",en:"Malta",cn:"马耳他"},{prefix:"596",en:"Martinique",cn:"马提尼克"},{prefix:"222",en:"Mauritania",cn:"毛里塔尼亚"},{prefix:"230",en:"Mauritius",cn:"毛里求斯"},{prefix:"262",en:"Mayotte",cn:"马约特"},{prefix:"52",en:"Mexico",cn:"墨西哥"},{prefix:"373",en:"Moldova",cn:"摩尔多瓦"},{prefix:"377",en:"Monaco",cn:"摩纳哥"},{prefix:"976",en:"Mongolia",cn:"蒙古"},{prefix:"382",en:"Montenegro",cn:"黑山"},{prefix:"1664",en:"Montserrat",cn:"蒙特塞拉特"},{prefix:"212",en:"Morocco",cn:"摩洛哥"},{prefix:"258",en:"Mozambique",cn:"莫桑比克"},{prefix:"264",en:"Namibia",cn:"纳米比亚"},{prefix:"977",en:"Nepal",cn:"尼泊尔"},{prefix:"31",en:"Netherlands",cn:"荷兰"},{prefix:"599",en:"Netherlands Antillse",cn:"荷属安的列斯"},{prefix:"687",en:"New Caledonia",cn:"新喀里多尼亚"},{prefix:"64",en:"NewZealand",cn:"新西兰"},{prefix:"505",en:"Nicaragua",cn:"尼加拉瓜"},{prefix:"227",en:"Niger",cn:"尼日尔"},{prefix:"234",en:"Nigeria",cn:"尼日利亚"},{prefix:"47",en:"Norway",cn:"挪威"},{prefix:"968",en:"Oman",cn:"阿曼"},{prefix:"92",en:"Pakistan",cn:"巴基斯坦"},{prefix:"970",en:"Palestinian",cn:"巴勒斯坦"},{prefix:"507",en:"Panama",cn:"巴拿马"},{prefix:"675",en:"Papua New Guinea",cn:"巴布亚新几内亚"},{prefix:"595",en:"Paraguay",cn:"巴拉圭"},{prefix:"51",en:"Peru",cn:"秘鲁"},{prefix:"63",en:"Philippines",cn:"菲律宾"},{prefix:"48",en:"Poland",cn:"波兰"},{prefix:"351",en:"Portugal",cn:"葡萄牙"},{prefix:"1",en:"PuertoRico",cn:"波多黎各"},{prefix:"974",en:"Qotar",cn:"库塔"},{prefix:"262",en:"Reunion",cn:"留尼汪"},{prefix:"40",en:"Romania",cn:"罗马尼亚"},{prefix:"7",en:"Russia",cn:"俄罗斯"},{prefix:"250",en:"Rwanda",cn:"卢旺达"},{prefix:"684",en:"Samoa Eastern",cn:"萨摩亚东部"},{prefix:"685",en:"Samoa Western",cn:"萨摩亚西部"},{prefix:"378",en:"San Marino",cn:"圣马力诺"},{prefix:"239",en:"Sao Tome and Principe",cn:"圣多美和普林西比"},{prefix:"966",en:"Saudi Arabia",cn:"沙特阿拉伯"},{prefix:"221",en:"Senegal",cn:"塞内加尔"},{prefix:"381",en:"Serbia",cn:"塞尔维亚"},{prefix:"248",en:"Seychelles",cn:"塞舌尔"},{prefix:"232",en:"Sierra Leone",cn:"塞拉利昂"},{prefix:"65",en:"Singapore",cn:"新加坡"},{prefix:"421",en:"Slovakia",cn:"斯洛伐克"},{prefix:"386",en:"Slovenia",cn:"斯洛文尼亚"},{prefix:"27",en:"South Africa",cn:"南非"},{prefix:"82",en:"Korea",cn:"韩国"},{prefix:"34",en:"Spain",cn:"西班牙"},{prefix:"94",en:"SriLanka",cn:"斯里兰卡"},{prefix:"1869",en:"St Kitts and Nevis",cn:"圣基茨和尼维斯"},{prefix:"1758",en:"St.Lucia",cn:"圣卢西亚"},{prefix:"1784",en:"St.Vincent",cn:"圣文森特"},{prefix:"249",en:"Sudan",cn:"苏丹"},{prefix:"597",en:"Suriname",cn:"苏里南"},{prefix:"268",en:"Swaziland",cn:"斯威士兰"},{prefix:"46",en:"Sweden",cn:"瑞典"},{prefix:"41",en:"Switzerland",cn:"瑞士"},{prefix:"963",en:"Syria",cn:"叙利亚"},{prefix:"886",en:"Taiwan",cn:"台湾"},{prefix:"992",en:"Tajikistan",cn:"塔吉克斯坦"},{prefix:"255",en:"Tanzania",cn:"坦桑尼亚"},{prefix:"66",en:"Thailand",cn:"泰国"},{prefix:"670",en:"Timor Leste",cn:"东帝汶"},{prefix:"228",en:"Togo",cn:"多哥"},{prefix:"676",en:"Tonga",cn:"汤加"},{prefix:"1868",en:"Trinidad and Tobago",cn:"特立尼达和多巴哥"},{prefix:"216",en:"Tunisia",cn:"突尼斯"},{prefix:"90",en:"Turkey",cn:"土耳其"},{prefix:"993",en:"Turkmenistan",cn:"土库曼斯坦"},{prefix:"1649",en:"Turks and Caicos Islands",cn:"特克斯和凯科斯群岛"},{prefix:"256",en:"Uganda",cn:"乌干达"},{prefix:"380",en:"Ukraine",cn:"乌克兰"},{prefix:"971",en:"United Arab Emirates",cn:"阿拉伯联合酋长国"},{prefix:"44",en:"United Kingdom",cn:"英国"},{prefix:"1",en:"USA",cn:"美国"},{prefix:"598",en:"Uruguay",cn:"乌拉圭"},{prefix:"998",en:"Uzbekistan",cn:"乌兹别克斯坦"},{prefix:"678",en:"Vanuatu",cn:"瓦努阿图"},{prefix:"58",en:"Venezuela",cn:"委内瑞拉"},{prefix:"84",en:"Vietnam",cn:"越南"},{prefix:"1340",en:"Virgin Islands",cn:"维尔京群岛"},{prefix:"967",en:"Yemen",cn:"也门"},{prefix:"260",en:"Zambia",cn:"赞比亚"},{prefix:"263",en:"Zimbabwe",cn:"津巴布韦"}],Ha={prefixDefault:qa};function Ga(e,t){return L.post("/store/emp/import",e).then(t)}function Ja(e,t,a){return L.post("/store/emp/list",e).then(t).catch(a)}function Qa(e,t){return L.post("/user/add",e).then(t)}function Za(e,t,a){return L.downloadImg("/user/img/download",t,e).then(a)}function Wa(e,t){return L.get("/retail/company",e).then(t)}function Ka(e,t){return L.get("/retail/big/region",e).then(t)}function Xa(e,t){return L.downloadZip("/store/emp/download/store/code/bsd","门店码",e).then(t)}function es(e,t){return L.downloadZip("/store/emp/download/store/seller/code/bsd","门店导购码",e).then(t)}function ts(){return f.a.defaults.baseURL}function as(e,t,a){return L.downloadFileToExcel("/store/emp/download/store/excel/bsd","推广管理-店铺列表",e).then(t).catch(a)}var ss={uploadUser:Ga,getBaseUrl:ts,storeList:Ja,addStoreWX:Qa,downloadImg:Za,downCompanyData:Wa,downBigRegionData:Ka,downloadStoreCode:Xa,downloadStoreSellerCode:es,downloadDataListToList:as},is={name:"IncreaseStaffManager",inject:["setMenuName"],data:function(){return{modal13:!1,deleteId:null,userId:13,flag:1,prefixDefault:Ha.prefixDefault,isShow:!1,isShowAdd:!1,showStoreName:"",showStoreCode:"",qrCodeImage:"",loading:!0,spuLoading:!1,total:0,pageSize:10,pageNum:1,selectedRegion:null,regionList:[],selectedStore:this.$route.query.storeId,storeList:[],shopList:[],roleList:[],rowData:{},rules:{required:!1},columns1:[{title:"序号",key:"id"},{title:"姓名",key:"name"},{title:"员工ID",key:"staffCode"},{title:"手机号码",key:"mobil"},{title:"店铺",key:"storeName"},{title:"角色",key:"role"},{title:"客户数",key:"customerNum"},{title:"推广码",slot:"qrCodeAction",key:"epWechatQrCode"},{title:"操作",slot:"action"}],data1:[],formValidate:{name:"",staffCode:"",region:"",phone:"",role:"",store:"",userId:"",checkbox:["vail"]},ruleValidate:{name:[{required:!0,message:"名称不能为空",trigger:"blur"}],staffCode:[{required:!0,message:"工号不能为空",trigger:"blur"}],role:[{required:!0,message:"请选择角色",trigger:"change"}],region:[{required:!0,type:String,message:"请选择区域",trigger:"change"}],store:[{required:!0,type:String,message:"请选择店铺",trigger:"change"}]}}},mounted:function(){this.setMenuName("门店推广","推广管理","门店导购管理"),this.listOfLogistics()},methods:{cancel:function(){},listOfLogistics:function(){var e=this,t={shopId:e.selectedStore,pageNum:e.pageNum,pageSize:e.pageSize};ha.getStaffList(t,(function(t){if(t=t.data,"0000"==t.code){e.data1=[];var a=t.results;null==a.total?e.total=0:e.total=a.total,null==a.records&&(a.records=[]),e.data1=a.records}}))},downRegionData:function(){var e=this;e.regionList=[{id:0,name:"全部"}];var t={userId:e.userId};ha.downRegionData(t,(function(t){if(t=t.data.results,t)for(var a=0;a<t.length;a++){var s=t[a];s&&e.regionList.push(s)}}))},downShopData:function(){var e=this;e.shopList=[{id:0,name:"全部"}];var t={userId:e.userId,regionId:e.changeData(e.selectedRegion)};ha.downShopData(t,(function(t){if(t=t.data.results,t)for(var a=0;a<t.length;a++){var s=t[a];s&&e.shopList.push(s)}}))},downRoleData:function(){var e=this;ha.downRoleData({},(function(t){if(t=t.data.results,t)for(var a=0;a<t.length;a++){var s=t[a];s&&e.roleList.push(s)}}))},addSattf:function(e){var t=this;ha.addSattf(e,(function(e){e=e.data,"0000"==e.code&&("0001"==e.results?t.$Message.error("添加失败!"):"0002"==e.results?t.$Message.error("该工号已经被使用!"):"0003"==e.results?t.$Message.error("该手机号已经被使用!"):"0004"==e.results?t.$Message.error("该工号已经被使用!"):"0000"==e.results&&(t.$Message.success("添加成功!"),t.handleAdd(t.formValidate),t.listOfLogistics()))}))},editSattf:function(e){var t=this;ha.editSattf(e,(function(e){e=e.data,"0000"==e.code&&(t.$Message.success("修改成功!"),t.isShowAdd=!1,t.listOfLogistics())}))},searchCustomerDataBtnClick:function(){this.listOfLogistics()},changeData:function(e){return 0==e?null:e},handlePage:function(e){this.pageNum=e,this.listOfLogistics()},downRegionChange:function(){this.downShopData()},onChangeDateLister:function(){},show:function(e){this.isShow=!0,this.showStoreName="姓名:"+e.name,this.showStoreCode="工号:"+e.staffCode,this.qrCodeImage=e.epWechatQrCode,this.rowData=e},download:function(e){var t=e.staffCode+"-"+e.name+"-导购码";ss.downloadImg({url:e.epWechatQrCode},t,(function(){}))},open:function(e,t){var a;this.flag=e,this.isShowAdd=!0,t&&t.type&&(a=1===t.type?"DZ-DIANZHANG":"DG-DAOGOU"),2==e?this.formValidate={name:t.name,staffCode:t.staffCode,phone:t.mobil,role:a,store:t.storeId,userId:t.userId,id:t.id}:this.handleAdd(this.formValidate)},back:function(){this.$router.push({path:"/shop/increase/manager"})},remove:function(e){this.modal13=!0,this.deleteId=e.id},deleteStaff:function(){var e={staffId:this.deleteId},t=this;ha.removeStaff(e,(function(e){e=e.data,e.results?(t.$Message.success("删除成功!"),t.modal13=!1,t.listOfLogistics()):t.$Message.success("删除失败!")}))},onSwitchChangeLister:function(){},handleSubmit:function(e){if(e){var t={};if(1==this.flag){if(null==e.name||""==e.name)return void this.$Message.success("名称不能为空!");if(null==e.staffCode||""==e.staffCode)return void this.$Message.success("工号不能为空!");if(null==e.role||""==e.role)return void this.$Message.success("角色不能为空!");t={name:e.name,storeId:this.selectedStore,mobil:e.phone,staffCode:e.staffCode,role:e.role,isOpen:this.formValidate.checkbox[0]},this.addSattf(t)}else{var a;a="DZ-DIANZHANG"===e.role?1:4,t={name:e.name,storeId:this.selectedStore,mobil:e.phone,staffCode:e.staffCode,roleId:a,userId:this.formValidate.userId,id:this.formValidate.id},this.editSattf(t)}}else this.$Message.error("Fail!")},handleReset:function(e){this.$refs[e].resetFields(),this.isShowAdd=!1},handleAdd:function(e){e.name="",e.store="",e.phone="",e.staffCode="",e.role="",e.region="",e.checkbox=["vail"]}}},ns=is,os=(a("c562"),Object(l["a"])(ns,Pa,Ua,!1,null,"bf24dc40",null)),rs=os.exports,ls=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("Row",{staticStyle:{"text-align":"center","margin-bottom":"20px"}},[a("p",[e._v(" 导入说明:请下载模板,然后将资料填到模板中 "),a("a",{on:{click:e.downLoadImportExcel}},[e._v("下载模板")])])]),a("Upload",{attrs:{multiple:"",type:"drag",action:e.uploadUrl,"on-success":e.upSuccess,"on-error":e.upError}},[a("div",{staticStyle:{padding:"20px 0"}},[a("Icon",{staticStyle:{color:"#3399ff"},attrs:{type:"ios-cloud-upload",size:"70"}}),a("p",[e._v("将文件拖拽到此区域")])],1)]),a("Table",{staticStyle:{"margin-top":"30px"},attrs:{columns:e.columns1,data:e.data1}})],1)},cs=[],ds={name:"IncreaseStaffManagerBatchAdd",data:function(){return{uploadUrl:L.getBaseUrl()+"/store/staff/upload",data:{},columns1:[{title:"序号",type:"index",width:100,align:"center"},{title:"错误信息",key:"error",align:"center"}],data1:[]}},mounted:function(){},methods:{downLoadImportExcel:function(){window.location.href="/推广人员批量添加.xlsx"},upSuccess:function(e,t,a){if(console.log("1111"),e.results){var s=e.results;this.data1=s,this.$message.info("上传失败,请查看错误信息")}else this.$message.info("上传成功")},upError:function(e){this.$message.info("上传失败,请稍后再试")}}},us=ds,ms=Object(l["a"])(us,ls,cs,!1,null,"db94437e",null),ps=ms.exports,hs=function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",[s("Row",{staticClass:"search-row"},[s("i-col",{staticClass:"search-col",attrs:{span:"24"}},[s("Row",{staticClass:"row-style"},[s("i-input",{staticClass:"search-select",attrs:{placeholder:"店铺名称或编码"},model:{value:e.searchShop,callback:function(t){e.searchShop=t},expression:"searchShop"}}),s("span",{staticClass:"search-span"},[e._v("大区")]),s("Select",{staticClass:"search-select",attrs:{filterable:""},on:{"on-change":e.regionSelect},model:{value:e.regionId,callback:function(t){e.regionId=t},expression:"regionId"}},e._l(e.regionList,(function(t,a){return s("Option",{key:a+t.id,attrs:{value:t.id}},[e._v(e._s(t.name))])})),1),s("span",{staticClass:"search-span"},[e._v("零售公司")]),s("Select",{staticClass:"search-select",attrs:{filterable:""},on:{"on-change":e.companySelect},model:{value:e.companyId,callback:function(t){e.companyId=t},expression:"companyId"}},e._l(e.companyList,(function(t,a){return s("Option",{key:a+t.id,attrs:{value:t.id}},[e._v(e._s(t.name))])})),1),s("span",{staticClass:"search-span"},[e._v("店铺")]),s("Select",{staticClass:"search-select",attrs:{filterable:""},model:{value:e.selectedStore,callback:function(t){e.selectedStore=t},expression:"selectedStore"}},e._l(e.shopList,(function(t,a){return s("Option",{key:a+t.id,attrs:{value:t.id}},[e._v(e._s(t.name))])})),1),s("Button",{staticClass:"search-btn",attrs:{type:"primary"},on:{click:e.searchCustomerDataBtnClick}},[e._v("查询")]),s("Button",{staticStyle:{"margin-left":"20px"},attrs:{type:"primary"},on:{click:e.downloadStoreCode}},[e._v("批量下载门店码")]),s("Button",{staticStyle:{"margin-left":"20px"},attrs:{type:"primary"},on:{click:e.downloadStoreSellerCode}},[e._v("批量下载导购码")]),s("Button",{staticStyle:{"margin-left":"20px"},attrs:{type:"primary"},on:{click:e.OnClickListerDownloadData}},[e._v("导出")])],1)],1)],1),s("Table",{ref:"table",staticClass:"table-store",attrs:{loading:e.loading,columns:e.columns1,data:e.data1,size:"small"},on:{"on-row-dblclick":e.onDblClickRowLister},scopedSlots:e._u([{key:"qrCodeAction",fn:function(t){var i=t.row;return[s("img",{staticClass:"table-img-qr-code",attrs:{src:a("c4ac")},on:{click:function(t){return e.show(i)}}})]}},{key:"action",fn:function(t){var a=t.row;return s("router-link",{attrs:{to:{path:"/shop/increase/manager/staff",query:{storeId:a.id}}}},[s("Button",{staticClass:"router-btn",attrs:{ghost:""}},[e._v(" 门店导购管理")])],1)}}])}),s("Modal",{attrs:{title:e.showStoreName,"footer-hide":!0,width:"230","class-name":"vertical-center-modal"},on:{"on-ok":e.ok},model:{value:e.isShow,callback:function(t){e.isShow=t},expression:"isShow"}},[s("div",{attrs:{slot:"header"},slot:"header"},[s("p")]),s("p",[e._v(e._s(this.showStoreName))]),s("img",{staticStyle:{width:"200px",height:"200px"},attrs:{src:e.qrCodeImage}}),s("div",{staticStyle:{"text-align":"center"}},[s("Button",{attrs:{ghost:"",type:"primary"},on:{click:function(t){return e.download(e.rowData)}}},[e._v("下载")])],1)]),s("Modal",{attrs:{"footer-hide":!0},on:{"on-ok":e.ok},model:{value:e.isShowAdd,callback:function(t){e.isShowAdd=t},expression:"isShowAdd"}},[s("div",{attrs:{slot:"header"},slot:"header"},[e._v("开通企业微信号")]),s("Form",{ref:"formValidate",attrs:{model:e.formValidate,rules:e.ruleValidate,"label-width":80}},[s("FormItem",{attrs:{label:"名称",prop:"name"}},[s("i-input",{attrs:{type:"text",placeholder:"请输入名字"},model:{value:e.formValidate.name,callback:function(t){e.$set(e.formValidate,"name",t)},expression:"formValidate.name"}})],1),s("FormItem",{attrs:{label:"别名",prop:"alias"}},[s("i-input",{attrs:{placeholder:"请输入别名"},model:{value:e.formValidate.alias,callback:function(t){e.$set(e.formValidate,"alias",t)},expression:"formValidate.alias"}})],1),s("FormItem",{attrs:{label:"账号",prop:"userId"}},[s("i-input",{attrs:{placeholder:"请输入账号"},model:{value:e.formValidate.userId,callback:function(t){e.$set(e.formValidate,"userId",t)},expression:"formValidate.userId"}})],1),s("FormItem",{attrs:{label:"手机",prop:"mobile"}},[s("i-input",{attrs:{placeholder:"成员通过验证该手机号后可加入企业"},model:{value:e.formValidate.mobile,callback:function(t){e.$set(e.formValidate,"mobile",t)},expression:"formValidate.mobile"}},[s("Select",{staticStyle:{width:"80px"},attrs:{slot:"prepend"},slot:"prepend",model:{value:e.formValidate.selectedPhoneRegion,callback:function(t){e.$set(e.formValidate,"selectedPhoneRegion",t)},expression:"formValidate.selectedPhoneRegion"}},e._l(e.prefixDefault,(function(t){return s("Option",{key:t.prefix+t.en,attrs:{value:t.prefix}},[e._v(" "+e._s(t.prefix)+" ")])})),1)],1)],1),s("FormItem",{attrs:{label:"邮箱",prop:"mail"}},[s("i-input",{attrs:{placeholder:"请输入邮箱"},model:{value:e.formValidate.email,callback:function(t){e.$set(e.formValidate,"email",t)},expression:"formValidate.email"}})],1),s("FormItem",{attrs:{label:"地址",prop:"address"}},[s("i-input",{attrs:{placeholder:"请输入地址"},model:{value:e.formValidate.address,callback:function(t){e.$set(e.formValidate,"address",t)},expression:"formValidate.address"}})],1),s("FormItem",{attrs:{label:"零售公司",prop:"departIds"}},[s("Select",{attrs:{placeholder:"选择零售公司"},on:{"on-change":function(t){return e.downCompanyChange(e.formValidate)}},model:{value:e.formValidate.departIds,callback:function(t){e.$set(e.formValidate,"departIds",t)},expression:"formValidate.departIds"}},e._l(e.regionList,(function(t){return s("Option",{key:t.id,attrs:{value:t.id}},[e._v(e._s(t.name))])})),1)],1),s("FormItem",{attrs:{label:"店铺",prop:"storeId"}},[s("Select",{attrs:{placeholder:"选择店铺"},model:{value:e.formValidate.storeId,callback:function(t){e.$set(e.formValidate,"storeId",t)},expression:"formValidate.storeId"}},e._l(e.shopList,(function(t){return s("Option",{key:t.id,attrs:{value:t.id}},[e._v(e._s(t.name))])})),1)],1),s("FormItem",{attrs:{label:""}},[s("CheckboxGroup",{model:{value:e.formValidate.checkbox,callback:function(t){e.$set(e.formValidate,"checkbox",t)},expression:"formValidate.checkbox"}},[s("Checkbox",{attrs:{label:"vail"}},[e._v("通过邮箱或短信发送企业邀请")])],1)],1),s("FormItem",{staticStyle:{"text-align":"left"}},[s("Button",{attrs:{type:"primary"},on:{click:function(t){return e.handleSubmit(e.formValidate)}}},[e._v("保存并继续添加")]),s("Button",{staticStyle:{"margin-left":"8px"},on:{click:function(t){return e.handleReset("formValidate")}}},[e._v("取消")])],1)],1)],1),s("Modal",{attrs:{width:"85","footer-hide":!0},on:{"on-ok":e.ok},model:{value:e.isShowImport,callback:function(t){e.isShowImport=t},expression:"isShowImport"}},[s("div",{attrs:{slot:"header"},slot:"header"},[e._v("批量开通账号")]),s("div",{directives:[{name:"show",rawName:"v-show",value:e.isShowError,expression:"isShowError"}],staticStyle:{width:"100%",height:"200px","background-color":"#FEE6EE","overflow-y":"auto"}},[s("p",[e._v("导入失败:")]),e._l(e.errorList,(function(t){return s("p",{key:t.row,staticStyle:{"margin-left":"40px"},attrs:{value:t.row}},[e._v(" "+e._s(t.reason))])}))],2),s("div",{staticStyle:{"text-align":"center","background-color":"#FAFAFC",height:"80px","line-height":"80px",width:"50%","margin-left":"25%","margin-top":"10px"}},[e._v(" 导入说明:请下载模板,然后将资料填到模板中 "),s("Button",{staticStyle:{color:"#2074E2",border:"1px solid #2074E2",width:"97px",height:"28px"},on:{click:e.downLoadImportExcel}},[e._v("下载模板 ")])],1),s("Upload",{staticStyle:{"margin-top":"30px",width:"50%","margin-left":"25%"},attrs:{multiple:"",type:"drag",action:e.updateUrl,"on-success":e.updateSuccess}},[s("div",{staticStyle:{padding:"20px 0","background-color":"#FAFAFC"}},[s("Icon",{staticStyle:{color:"#3399ff"},attrs:{type:"ios-cloud-upload",size:"52"}}),s("p",[e._v("点击或拖拽文件")])],1)])],1),s("Page",{attrs:{total:e.total,current:e.pageNum,"page-size":e.pageSize,"show-elevator":"","show-total":"",placement:"top","class-name":"ks-page"},on:{"on-change":e.handlePage}})],1)},fs=[],gs={name:"IncreaseStoreManager",inject:["setMenuName"],data:function(){return{loading:!1,userId:JSON.parse(sessionStorage.getItem("loginInfo")).userId,searchShop:null,total:0,pageSize:10,pageNum:1,prefixDefault:Ha.prefixDefault,isShow:!1,isShowImport:!1,isShowError:!1,isShowAdd:!1,showStoreName:"",updateUrl:ss.getBaseUrl()+"/store/emp/import",downLoadStoreCodeUrl:ss.getBaseUrl()+"/store/emp/download/store/code",qrCodeImage:"",selectedRegion:0,selectedBigRegion:0,organizationalList:[],regionList:[],regionId:0,companyList:[],customerList:[],companyId:0,errorList:[],selectedStore:0,shopList:[],rowData:{},company:null,columns1:[{title:"序号",key:"orderNum",className:"table-width-80"},{title:"店铺名称",key:"name",className:"table-width-300"},{title:"店铺编码",key:"code",className:"table-width-90"},{title:"门店企业号",key:"cpUserId",className:"table-width-140"},{title:"大区名",key:"regionName",className:"table-width-100"},{title:"零售公司",key:"companyName",className:"table-width-200"},{title:"零售公司编码",key:"companyCode",className:"table-width-100"},{title:"员工数",key:"staffNum",className:"table-width-80"},{title:"客户数",key:"customerNum",className:"table-width-80"},{title:"推广码",slot:"qrCodeAction",className:"table-width-80"},{title:"操作",slot:"action"}],data1:[],formValidate:{alias:"",userId:"",gender:"",mobile:"",email:"",address:"",departIds:"",selectedPhoneRegion:"86",duty:"",position:"",interest:[],desc:"",checkbox:["vail"],storeId:""},ruleValidate:{userId:[{required:!0,message:"账号不能为空",trigger:"blur"}],mobile:[{required:!0,message:"手机号码不能为空",trigger:"blur"}],departIds:[{required:!0,message:"请选择部门",trigger:"change"}],storeId:[{required:!0,message:"请选择部门",trigger:"change"}]}}},mounted:function(){this.setMenuName("门店推广","推广管理"),this.listOfStore(),this.getSelectList(),this.downShopData()},methods:{searchCustomerDataBtnClick:function(){this.pageNum=1,this.listOfStore()},listOfStore:function(){var e=this;this.loading=!0;var t={userId:e.userId,regionId:e.changeData(e.regionId),companyId:e.changeData(e.companyId),storeId:e.changeData(e.selectedStore),pageNum:e.pageNum,pageSize:e.pageSize,code:e.searchShop};ss.storeList(t,(function(t){if(t=t.data,e.loading=!1,"0000"==t.code){e.data1=[];var a=t.results;null==a.total?e.total=0:e.total=a.total,null==a.list&&(a.list=[]),e.data1=a.list}}),(function(t){e.loading=!1}))},addStoreWX:function(e){var t=this;ss.addStoreWX(e,(function(e){if(e=e.data,"0000"==e.code)if(-1!=e.results.indexOf("8888")){var a=e.results.split(",");t.$Message.success("该企业微信已被 【"+a[1]+"】绑定 请从新绑定微信号")}else t.$Message.success("添加成功!"),t.listOfStore(),this.handleAdd(this.formValidate)}))},insertAllOption:function(){0!==this.regionList.length&&0===this.regionList[0].id||this.regionList.splice(0,0,{id:0,name:"全部"}),0!==this.companyList.length&&0===this.companyList[0].id||this.companyList.splice(0,0,{id:0,name:"全部"}),0!==this.shopList.length&&0===this.shopList[0].id||this.shopList.splice(0,0,{id:0,name:"全部"})},getSelectList:function(){var e=this,t={userId:this.userId};Gt.getSelectListRequest(t,(function(t){"0000"!==t.data.code&&e.$Message.error("系统异常"),t=t.data.results,t&&(e.organizationalList=t,e.regionList=e.organizationalList.filter((function(e){return 1===e.level})),e.companyList=e.organizationalList.filter((function(e){return 2===e.level}))),e.insertAllOption()}))},regionSelect:function(){var e=this.regionId;this.companyList=0===e?this.organizationalList.filter((function(e){return 2===e.level})):this.organizationalList.filter((function(t){return t.parentId===e&&2===t.level})),this.insertAllOption(),this.companyId=0,this.selectedStore=0,this.downShopData()},companySelect:function(){this.downShopData(this.companyId),this.selectedStore=0},downCompanyChange:function(e){this.downShopData(e.departIds)},downShopData:function(e){var t=this,a=e;e||(a=t.companyId);var s=t.regionId,i=[];if(this.customerList=[],0===s);else{this.companyList=this.organizationalList.filter((function(e){return e.parentId===s&&2===e.level}));var n=this.companyList.map((function(e){return e.id}));this.customerList=this.organizationalList.filter((function(e){return-1!==n.indexOf(e.parentId)&&3===e.level})),this.insertAllOption()}0===a||(this.customerList=this.organizationalList.filter((function(e){return e.parentId===a&&3===e.level})),this.insertAllOption()),i=this.customerList.map((function(e){return e.id}));var o={userId:t.userId,customerIds:JSON.stringify(i)};ha.downShopData(o,(function(e){if(e=e.data.results,e){t.shopList=[{id:0,name:"全部"}];for(var a=0;a<e.length;a++){var s=e[a];s&&t.shopList.push(s)}}}))},changeData:function(e){return 0==e?null:e},show:function(e){this.isShow=!0,this.showStoreName=e.name,this.qrCodeImage=e.qrCodeAction,this.rowData=e},hide:function(){this.isShow=!1},download:function(e){var t=e.name+"-门店码";ss.downloadImg({url:e.qrCodeAction},t,(function(){}))},handlePage:function(e){this.pageNum=e,this.listOfStore()},ok:function(){this.isShow=!1},cancel:function(){this.isShow=!1},open:function(){this.isShowAdd=!0},remove:function(){},showImport:function(){this.isShowImport=!0,this.isShowError=!1},handleSubmit:function(e){e?this.addStoreWX(e):this.$Message.error("Fail!")},handleReset:function(e){this.$refs[e].resetFields(),this.isShowAdd=!1},downLoadImportExcel:function(){window.location.href="/门店号批量开通模板.xlsx"},handleAdd:function(e){e.alias="",e.userId="",e.gender="",e.mobile="",e.email="",e.address="",e.departIds="",e.selectedPhoneRegion="86",e.duty="",e.position="",e.interest=[],e.desc="",e.checkbox=["vail"],e.storeId=""},downloadStoreCode:function(){ss.downloadStoreCode({},null)},downloadStoreSellerCode:function(){ss.downloadStoreSellerCode({},null)},updateSuccess:function(e){if("0000"===e.code){var t=e.results;t&&t.length>0&&(this.errorList=t,this.isShowError=!0)}},onDblClickRowLister:function(e){this.$router.push({path:"/shop/increase/manager/staff",query:{storeId:e.id}})},OnClickListerDownloadData:function(){this.loading=!0;var e=this,t={userId:e.userId,regionId:e.changeData(e.regionId),companyId:e.changeData(e.companyId),storeId:e.changeData(e.selectedStore),code:e.searchShop};ss.downloadDataListToList(t,(function(){e.loading=!1}),(function(){e.loading=!1}))}}},vs=gs,ys=(a("0481"),Object(l["a"])(vs,hs,fs,!1,null,"6ca43211",null)),Ss=ys.exports,xs=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("Menu",{attrs:{mode:"horizontal","active-name":e.selectedItemName}},e._l(e.threeLevel,(function(t){return a("MenuItem",{key:t.id,attrs:{name:t.id,to:t.resource}},[e._v(" "+e._s(t.name)+" ")])})),1),a("div",[a("router-view")],1)],1)},bs=[],ws={name:"IncreaseConfigure",data:function(){return{threeLevel:null,selectedItemName:null}},mounted:function(){this.threeLevel=JSON.parse(sessionStorage.getItem("threeLevel")),this.menuInit()},methods:{menuInit:function(){var e=this,t=this;t.selectedItemName=[t.threeLevel[0].id],this.$nextTick((function(){e.$refs.menu.updateActiveName()}))}}},Cs=ws,As=Object(l["a"])(Cs,xs,bs,!1,null,"c49009e2",null),Ds=As.exports,Is=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("p",{staticStyle:{"margin-top":"30px","margin-bottom":"30px"}},[e._v(" 由管理员或者业务负责人统一配置,配置后,客户将在添加成员为联系人后收到该欢迎语 ")]),a("dic",[a("i-input",{staticStyle:{width:"50%"},attrs:{maxlength:"100",type:"textarea",rows:10,"show-word-limit":"",placeholder:"最多100个字"},model:{value:e.welcomeContent,callback:function(t){e.welcomeContent=t},expression:"welcomeContent"}})],1),a("div",{staticStyle:{"margin-top":"10px"}},[a("i-input",{staticStyle:{width:"50%"},attrs:{placeholder:"添加图片/网页/小程序",readonly:""}},[a("Icon",{attrs:{slot:"prefix",type:"md-add"},slot:"prefix"})],1)],1),e._m(0),a("Row",{staticStyle:{width:"50%","margin-top":"30px"}},[a("i-col",{attrs:{span:"12"}},[a("Button",{staticStyle:{width:"142px",height:"46px","background-color":"#1A80D2",color:"#FFF"}},[e._v(e._s(e.typeName))])],1),a("i-col",{staticStyle:{"text-align":"right"},attrs:{span:"12"}},[a("Button",{directives:[{name:"show",rawName:"v-show",value:e.showDel,expression:"showDel"}],staticStyle:{width:"142px",height:"46px","background-color":"#FFF",color:"#FF0000",border:"0px"}},[e._v("取消")])],1)],1)],1)},ks=[function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticStyle:{"margin-top":"10px"}},[a("p",[e._v(" 使用范围:全体成员 ")])])}],Ms={name:"IncreaseGroupSendConfigure",data:function(){return{welcomeContent:"",typeName:"保存",showDel:!1}},mounted:function(){this.getWelcomeConfig()},methods:{getWelcomeConfig:function(){}}},Ls=Ms,_s=Object(l["a"])(Ls,Is,ks,!1,null,"6694a33a",null),Ys=_s.exports,Ns=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("p",{staticStyle:{"margin-top":"30px","margin-bottom":"30px"}},[e._v(" 由管理员或者业务负责人统一配置,配置后,客户将在添加成员为联系人后收到该欢迎语 ")]),a("dic",[a("i-input",{staticStyle:{width:"50%"},attrs:{maxlength:"100",type:"textarea",rows:10,"show-word-limit":"",placeholder:"最多100个字"},model:{value:e.welcomeContent,callback:function(t){e.welcomeContent=t},expression:"welcomeContent"}})],1),a("div",{staticStyle:{"margin-top":"10px"}},[a("i-input",{staticStyle:{width:"50%"},attrs:{placeholder:"添加图片/网页/小程序",readonly:""}},[a("Icon",{attrs:{slot:"prefix",type:"md-add"},slot:"prefix"})],1)],1),e._m(0),a("Row",{staticStyle:{width:"50%","margin-top":"30px"}},[a("i-col",{attrs:{span:"12"}},[a("Button",{staticStyle:{width:"142px",height:"46px","background-color":"#1A80D2",color:"#FFF"}},[e._v(e._s(e.typeName))])],1),a("i-col",{staticStyle:{"text-align":"right"},attrs:{span:"12"}},[a("Button",{directives:[{name:"show",rawName:"v-show",value:e.showDel,expression:"showDel"}],staticStyle:{width:"142px",height:"46px","background-color":"#FFF",color:"#FF0000",border:"0px"}},[e._v("取消")])],1)],1)],1)},Os=[function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticStyle:{"margin-top":"10px"}},[a("p",[e._v(" 使用范围:全体成员 ")])])}],Es={name:"IncreaseWelcomeConfigure",data:function(){return{welcomeContent:"",typeName:"保存",showDel:!1}},mounted:function(){this.getWelcomeConfig()},methods:{getWelcomeConfig:function(){}}},Ts=Es,Vs=Object(l["a"])(Ts,Ns,Os,!1,null,"6b5ad8c3",null),Fs=Vs.exports,Bs=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("p",{staticStyle:{"margin-top":"30px","margin-bottom":"30px"}},[a("Button",{staticStyle:{width:"112px",height:"20px","background-color":"#FFF",color:"#1A80D2",border:"0px"}},[e._v("选择发送给的客户")])],1),a("dic",[a("i-input",{staticStyle:{width:"50%"},attrs:{type:"textarea",rows:10,"show-word-limit":"",placeholder:"输入消息内容。。。"},model:{value:e.groupContent,callback:function(t){e.groupContent=t},expression:"groupContent"}})],1),a("div",{staticStyle:{"margin-top":"10px"}},[a("i-input",{staticStyle:{width:"50%"},attrs:{placeholder:"添加图片/网页/小程序",readonly:""}},[a("Icon",{attrs:{slot:"prefix",type:"md-add"},slot:"prefix"})],1)],1),a("Row",{staticStyle:{width:"50%","margin-top":"30px"}},[a("i-col",{attrs:{span:"12"}},[a("Button",{staticStyle:{width:"142px",height:"46px","background-color":"#1A80D2",color:"#FFF"}},[e._v("通知成员发送")])],1),a("i-col",{staticStyle:{"text-align":"left"},attrs:{span:"12"}},[e._v(" 通知成员,向选中的客户发送以上企业消息 ")])],1)],1)},zs=[],$s={name:"IncreaseGroupSendConfigureAdd",data:function(){return{groupContent:""}},mounted:function(){},methods:{}},Rs=$s,js=Object(l["a"])(Rs,Bs,zs,!1,null,"22371e43",null),Ps=js.exports,Us=function(){var e=this,t=e.$createElement;e._self._c;return e._m(0)},qs=[function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("span",[e._v("没有此页面的权限")])])}],Hs={name:"NoPermission"},Gs=Hs,Js=Object(l["a"])(Gs,Us,qs,!1,null,"5baada90",null),Qs=Js.exports,Zs=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticStyle:{width:"100%",height:"100%","background-color":"#000d4a"}},[e._m(0),e._m(1),a("div",{staticClass:"mainbox"},[a("ul",{staticClass:"clearfix"},[a("li",[a("div",{staticClass:"boxall",staticStyle:{"min-height":"100px","padding-bottom":"20px"}},[a("div",{staticClass:"div-title"},[e._v("零售公司店均拓客TOP10")]),a("div",{staticStyle:{height:"1px",width:"200px","background-color":"#00B1F7"}}),a("div",{staticStyle:{"margin-top":"10px","min-height":"100px"},attrs:{id:"companyTopList"}},e._l(e.companyTopList,(function(t,s){return a("Row",{key:t.id,style:{"padding-top":"10px","padding-bottom":"10px","border-top":0!==s?"1px #00B1F7 solid":""}},[a("i-col",{attrs:{span:"2"}},[a("span",{staticStyle:{width:"20px",height:"20px","background-color":"#FFCC33","border-radius":"50%",display:"block","text-align":"center",color:"#ffffff"}},[e._v(e._s(t.id))])]),a("i-col",{attrs:{span:"14"}},[a("span",{staticStyle:{color:"#00B1F7","font-size":"14px"}},[e._v(e._s(t.companyName))])]),a("i-col",{staticStyle:{"text-align":"right"},attrs:{span:"8"}},[a("span",{staticStyle:{color:"#00B1F7","font-size":"16px"}},[e._v(e._s(t.avgAddCustomerNum))])])],1)})),1),a("div",{staticClass:"boxfoot"})]),a("div",{staticClass:"boxall",staticStyle:{height:"400px"}},[a("div",{staticClass:"alltitle"},[e._v("模块标题样式")]),a("div",{staticClass:"allnav"},[a("ve-bar",{staticStyle:{height:"380px"},attrs:{"after-set-option":e.companyDataOption}})],1),a("div",{staticClass:"boxfoot"})])]),a("li",[a("div",{staticClass:"bar"},[a("div",{staticClass:"barbox"},[e._m(2),a("ul",{staticClass:"clearfix"},[a("li",{staticClass:"pulll_left counter"},[a("countTo",{staticClass:"counter-num",attrs:{startVal:e.startVal,endVal:e.endVal,duration:3e3}})],1),a("li",{staticClass:"pulll_left counter"},[a("countTo",{staticClass:"counter-num",attrs:{startVal:e.startVal2,endVal:e.endVal2,duration:3e3}})],1)])])]),a("div",{staticClass:"map"},[e._m(3),e._m(4),e._m(5),a("div",{staticClass:"map"},[a("AreaMap")],1)])]),a("li",[a("div",{staticClass:"boxall",staticStyle:{"min-height":"100px"}},[e._m(6),a("div",{staticStyle:{"margin-top":"10px","min-height":"100px"},attrs:{id:"storeTopList"}},e._l(e.storeTopList,(function(t,s){return a("Row",{key:t.id,style:{"padding-top":"10px","padding-bottom":"10px","border-top":0!==s?"1px #00B1F7 solid":""}},[a("i-col",{attrs:{span:"2"}},[a("span",{staticStyle:{width:"20px",height:"20px","background-color":"#FFCC33","border-radius":"50%",display:"block","text-align":"center",color:"#ffffff"}},[e._v(e._s(t.id))])]),a("i-col",{attrs:{span:"14"}},[a("span",{staticStyle:{color:"#00B1F7","font-size":"14px"}},[e._v(e._s(t.storeName))])]),a("i-col",{staticStyle:{"text-align":"right"},attrs:{span:"8"}},[a("span",{staticStyle:{color:"#00B1F7","font-size":"16px"}},[e._v(e._s(t.addCustomerNum))])])],1)})),1),a("div",{staticClass:"boxfoot"})]),a("div",{staticClass:"boxall",staticStyle:{"min-height":"100px"}},[a("div",{staticClass:"div-title",staticStyle:{"text-align":"center"}},[e._v("实时添加记录")]),a("div",{staticStyle:{"margin-top":"10px","min-height":"100px"},attrs:{id:"customerAddList"}},e._l(e.companyTopList,(function(t,s){return a("Row",{key:t.id,staticStyle:{"padding-top":"10px","padding-bottom":"10px","font-size":"14px",color:"#ffffff"}},[a("Avatar",{attrs:{src:"https://i.loli.net/2017/08/21/599a521472424.jpg"}}),a("span",{staticStyle:{"padding-left":"20px",color:"#ffffff"}},[e._v("一起种田的约定,加入武汉光谷店")])],1)})),1),a("div",{staticClass:"boxfoot"})])])])]),a("div",{staticClass:"back"})])},Ws=[function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"loading"},[s("div",{staticClass:"loadbox"},[s("img",{attrs:{src:a("204a")}}),e._v(" 页面加载中...")])])},function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"head"},[s("h1",[s("img",{staticClass:"title-logo",attrs:{src:a("082f")}})])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("ul",{staticClass:"clearfix"},[a("li",{staticClass:"pulll_left counter-num-text"},[e._v("累计好友总数")]),a("li",{staticClass:"pulll_left counter-num-text"},[e._v("新增好友总数")])])},function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"map1"},[s("img",{attrs:{src:a("3c81")}})])},function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"map2"},[s("img",{attrs:{src:a("2141")}})])},function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"map3"},[s("img",{attrs:{src:a("8385")}})])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticStyle:{"text-align":"right"}},[a("div",{staticClass:"div-title"},[e._v("门店店均拓客TOP10")]),a("div",{staticStyle:{height:"1px",width:"200px","background-color":"#00B1F7",float:"right"}})])}],Ks=a("1157"),Xs=a.n(Ks),ei=function(){var e=this,t=e.$createElement;e._self._c;return e._m(0)},ti=[function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("div",{staticClass:"map",attrs:{id:"myChartMap"}})])}],ai=(a("99af"),a("a15b"),a("fb6a"),a("53ca")),si={name:"AreaMap",data:function(){return{}},mounted:function(){var e=a("313e"),t=e.init(document.getElementById("myChartMap")),s=[{name:"张"},{name:"刘"},{name:"李"},{name:"邓"},{name:"熊"},{name:"田"},{name:"周"},{name:"赵"},{name:"钱"},{name:"孙"},{name:"吴"},{name:"郑"},{name:"王"},{name:"冯"},{name:"陈"},{name:"杨"},{name:"朱"},{name:"秦"},{name:"许"},{name:"徐"},{name:"何"},{name:"曹"},{name:"陶"},{name:"邹"},{name:"苏"},{name:"范"},{name:"彭"},{name:"鲁"},{name:"马"},{name:"方"},{name:"唐"},{name:"顾"}],i=null,n={"上海":[119.1803,31.2891],"福建":[119.4543,25.9222],"重庆":[108.384366,30.439702],"北京":[116.4551,40.2539],"辽宁":[123.1238,42.1216],"河北":[114.4995,38.1006],"天津":[117.4219,39.4189],"山西":[112.3352,37.9413],"陕西":[109.1162,34.2004],"甘肃":[103.5901,36.3043],"宁夏":[106.3586,38.1775],"青海":[101.4038,36.8207],"新疆":[87.9236,43.5883],"西藏":[91.11,29.97],"四川":[103.9526,30.7617],"吉林":[125.8154,44.2584],"山东":[117.1582,36.8701],"河南":[113.4668,34.6234],"江苏":[118.8062,31.9208],"安徽":[117.29,32.0581],"湖北":[114.3896,30.6628],"浙江":[119.5313,29.8773],"内蒙古":[110.3467,41.4899],"江西":[116.0046,28.6633],"湖南":[113.0823,28.2568],"贵州":[106.6992,26.7682],"云南":[102.9199,25.4663],"广东":[113.12244,23.009505],"广西":[108.479,23.1152],"海南":[110.3893,19.8516],"黑龙江":[127.9688,45.368],"台湾":[121.4648,25.563]},o=[{name:"北京",value:86},{name:"福建",value:65},{name:"广东",value:53},{name:"上海",value:48},{name:"河北",value:2},{name:"天津",value:6},{name:"山西",value:12},{name:"陕西",value:2},{name:"甘肃",value:4},{name:"宁夏",value:5},{name:"青海",value:3},{name:"新疆",value:.4},{name:"西藏",value:.3},{name:"四川",value:22},{name:"重庆",value:12},{name:"山东",value:9},{name:"河南",value:.9},{name:"江苏",value:24},{name:"安徽",value:15},{name:"湖北",value:6},{name:"浙江",value:15},{name:"内蒙古",value:.3},{name:"江西",value:34},{name:"湖南",value:12},{name:"贵州",value:.8},{name:"广西",value:16},{name:"海南",value:37},{name:"辽宁",value:.2},{name:"吉林",value:.4},{name:"云南",value:34},{name:"黑龙江",value:5},{name:"台湾",value:43}],r=function(e,t){for(var a=[],s=0;s<e.length;s++){var i=n[e[s].name];i&&(2==t?a.push({name:e[s].name,value:i.concat(e[s].value),username:e[s].username,telphone:e[s].telphone,address:e[s].address}):a.push({name:e[s].name,value:i.concat(e[s].value)}))}return a},l=[],c=o;c=c.sort((function(e,t){return t.value-e.value}));for(var d=0;d<c.length;d++)d<10?l.push("0"+d+c[d].name):l.push(d+c[d].name);function u(){var e=2,t="1";while(e<12){if(e<3)while(1){var a=Math.floor(10*Math.random());if(0!==a&&1!==a&&2!==a&&3!==a&&4!==a&&6!==a){t+=a;break}}else t+=e>3&&e<8?"*":Math.floor(10*Math.random());e++}return t}function m(e){var t="",a=Math.floor(32*Math.random());switch(e){case 1:t=s[a].name+"先生";break;case 2:t=s[a].name+"女士";break;default:t=s[a].name+"先生";break}return t}function p(e,t){var a="";switch(t){case 1:a="在"+o[e].name+"-保时捷4S店购买车辆";break;case 2:a="在"+o[e].name+"-奔驰4S店购买车辆";break;default:a="在"+o[e].name+"-法拉利4S店购买车辆";break}return a}i={backgroundColor:"#00013a",title:[{show:!0,text:"实时拓客排行",subtext:"单位:人",subtextStyle:{color:"#ffffff",lineHeight:20},textStyle:{color:"#fff",fontSize:18},right:80,top:20}],grid:{right:0,top:80,bottom:20,width:"120"},xAxis:{show:!1},yAxis:{type:"category",inverse:!0,nameGap:16,axisLine:{show:!1,lineStyle:{color:"#ddd"}},axisTick:{show:!1,lineStyle:{color:"#ddd"}},axisLabel:{interval:0,margin:85,textStyle:{color:"#fff",align:"left",fontSize:14},rich:{a:{color:"#fff",backgroundColor:"#f0515e",width:20,height:20,align:"center",borderRadius:2},b:{color:"#fff",backgroundColor:"#24a5cd",width:20,height:20,align:"center",borderRadius:2}},formatter:function(e){return parseInt(e.slice(0,2))<3?["{a|"+(parseInt(e.slice(0,2))+1)+"} "+e.slice(2)].join("\n"):["{b|"+(parseInt(e.slice(0,2))+1)+"} "+e.slice(2)].join("\n")}},data:l},geo:{map:"china",label:{show:!0,color:"#ffffff",emphasis:{color:"white",show:!1}},roam:!1,left:"left",zoom:1,scaleLimit:{min:0,max:3},itemStyle:{normal:{borderColor:"rgba(26,82,231, 1)",borderWidth:1,areaColor:{type:"radial",x:.5,y:.5,r:.8,colorStops:[{offset:0,color:"rgba(14, 101, 247, .1)"},{offset:1,color:"rgba(125, 183, 252, .1)"}],globalCoord:!1},shadowColor:"rgba(255, 255, 255, 0)",shadowOffsetX:-2,shadowOffsetY:2,shadowBlur:10},emphasis:{borderWidth:0}},tooltip:{show:!1}},series:[{type:"effectScatter",coordinateSystem:"geo",z:1,data:[],symbolSize:14,label:{normal:{show:!0,formatter:function(e){return"{fline|客户:"+e.data.username+" "+e.data.telphone+"}\n{tline|"+e.data.address+"}"},position:"top",backgroundColor:"rgba(254,174,33,.8)",padding:[0,0],borderRadius:3,lineHeight:32,color:"#f7fafb",rich:{fline:{padding:[0,10,10,10],color:"#ffffff"},tline:{padding:[10,10,0,10],color:"#ffffff"}}},emphasis:{show:!0}},itemStyle:{color:"#feae21"}},{type:"effectScatter",coordinateSystem:"geo",z:1,data:[],symbolSize:14,label:{normal:{show:!0,formatter:function(e){return"{fline|客户:"+e.data.username+" "+e.data.telphone+"}\n{tline|"+e.data.address+"}"},position:"top",backgroundColor:"rgba(233,63,66,.9)",padding:[0,0],borderRadius:3,lineHeight:32,color:"#ffffff",rich:{fline:{padding:[0,10,10,10],color:"#ffffff"},tline:{padding:[10,10,0,10],color:"#ffffff"}}},emphasis:{show:!0}},itemStyle:{color:"#e93f42"}},{type:"effectScatter",coordinateSystem:"geo",z:1,data:[],symbolSize:14,label:{normal:{show:!0,formatter:function(e){return"{fline|客户:"+e.data.username+" "+e.data.telphone+"}\n{tline|"+e.data.address+"}"},position:"top",backgroundColor:"rgba(8,186,236,.9)",padding:[0,0],borderRadius:3,lineHeight:32,color:"#ffffff",rich:{fline:{padding:[0,10,10,10],color:"#ffffff"},tline:{padding:[10,10,0,10],color:"#ffffff"}}},emphasis:{show:!0}},itemStyle:{color:"#08baec"}},{type:"map",mapType:"china",geoIndex:0,z:0,data:r(o,1)},{name:"barSer",type:"bar",roam:!1,visualMap:!1,zlevel:2,barMaxWidth:16,barGap:0,itemStyle:{normal:{color:function(e){var t=[{colorStops:[{offset:0,color:"#f0515e"},{offset:1,color:"#ef8554"}]},{colorStops:[{offset:0,color:"#3c38e4"},{offset:1,color:"#24a5cd"}]}];return e.dataIndex<3?t[0]:t[1]},barBorderRadius:[0,15,15,0]}},label:{normal:{show:!0,textBorderColor:"#333",textBorderWidth:2}},data:c.sort((function(e,t){return t.value-e.value}))}]},i&&"object"===Object(ai["a"])(i)&&t.setOption(i,!0);setInterval((function(){var e=Math.floor(3*Math.random()),a=Math.floor(3*Math.random()),s=Math.floor(32*Math.random()),r=Math.floor(10*Math.random());o[s].value=o[s].value+r;var l=n[o[s].name];l.push(r),i.series[a].data=[{name:"",username:m(e),telphone:u(),address:p(s,a),value:l}],i.series[4].data=i.series[4].data.sort((function(e,t){return t.value-e.value})),t.setOption(i,!0)}),3e3)},methods:{}},ii=si,ni=(a("6121"),Object(l["a"])(ii,ei,ti,!1,null,"d1c78b1c",null)),oi=ni.exports,ri=a("ec1b"),li=a.n(ri);function ci(e,t,a){return L.get("/ls/analysis/info",e).then(t).catch(a)}function di(e,t,a){return L.get("/ls/analysis/province/info",e).then(t).catch(a)}function ui(e,t,a){return L.get("/ls/analysis/company/avg/add",e).then(t).catch(a)}function mi(e,t,a){return L.get("/ls/analysis/store/add",e).then(t).catch(a)}function pi(e,t,a){return L.get("/ls/analysis/date/add",e).then(t).catch(a)}var hi,fi={getLsAnalysisInfo:ci,getLsAnalysisProvinceInfo:di,getLsAnalysisCompanyAvgAdd:ui,getLsAnalysisStoreAdd:mi,getLsAnalysisDateAdd:pi},gi={components:{AreaMap:oi,countTo:li.a},data:function(){return{startVal:0,endVal:1e5,lastVal:null,lastVal2:null,startVal2:1,endVal2:1e4,userId:JSON.parse(sessionStorage.getItem("loginInfo")).userId,dateBtnValue:"今日",viewDate:this.$moment(new Date).format("YYYY-MM-DD"),recentName:"近七天",selectStartTime:"",selectEndTime:"",startTime:"",endTime:"",currentDate:this.$moment().format("yyyy/MM/dd"),companyTopList:[{id:1,name:"杭州分公司",num:999},{id:2,name:"杭州分公司",num:999},{id:3,name:"杭州分公司",num:999},{id:4,name:"杭州分公司",num:999},{id:5,name:"杭州分公司",num:999},{id:6,name:"杭州分公司",num:999},{id:7,name:"杭州分公司",num:999},{id:8,name:"杭州分公司",num:999},{id:9,name:"杭州分公司",num:999},{id:10,name:"杭州分公司",num:999}],storeTopList:[],chartMapData:{columns:["位置","税收","人口","面积"],rows:[{"位置":"吉林","税收":123,"人口":123,"面积":92134},{"位置":"北京","税收":1223,"人口":2123,"面积":29234},{"位置":"上海","税收":2123,"人口":1243,"面积":94234},{"位置":"浙江","税收":4123,"人口":5123,"面积":29234}]},chartMapSettings:{},chinaDatas:null,convertData:null,chartMapOption:null,namedata:null,geoCoordMap:null}},created:function(){this.selectStartTime=this.$moment().format("YYYY-MM-DD 00:00:00"),this.selectEndTime=this.$moment().format("YYYY-MM-DD HH:mm:ss"),this.getLsAnalysisInfo(),this.getCompanyTopData(),this.getStoreTopData(),this.getLsAnalysisDateAdd()},mounted:function(){Xs()(".loading").fadeOut(),this.dateBtnClick("今日");var e=Xs()(window).width();Xs()("html").css({fontSize:e/20}),Xs()(window).resize((function(){var e=Xs()(window).width();Xs()("html").css({fontSize:e/20})}))},methods:{checkZero:function(e){return 0===e?null:e},dateBtnClick:function(e){switch(e){case"今日":this.dateBtnValue="今日",this.recentName="近七天";break;case"本周":this.dateBtnValue="本周",this.recentName="本周";break;case"本月":this.dateBtnValue="本月",this.recentName="本月";break;case"自定义":this.dateBtnValue="自定义",this.recentName="自定义";break}},dateSelectChange:function(e){var t=this.$moment(new Date);switch(e){case"今日":this.viewDate=t.format("YYYY-MM-DD"),this.selectStartTime=this.$moment(new Date).format("YYYY-MM-DD 00:00:00"),this.selectEndTime=this.$moment(new Date).format("YYYY-MM-DD HH:mm:ss"),this.startTime=this.$moment(new Date).add(-6,"days").format("YYYY-MM-DD 00:00:00"),this.endTime=this.$moment(new Date).format("YYYY-MM-DD HH:mm:ss");break;case"本周":this.viewDate=t.startOf("week").format("YYYY-MM-DD")+" 至 "+this.$moment(new Date).format("YYYY-MM-DD"),this.selectStartTime=this.$moment(new Date).startOf("week").format("YYYY-MM-DD 00:00:00"),this.selectEndTime=this.$moment(new Date).format("YYYY-MM-DD HH:mm:ss"),this.startTime=this.selectStartTime,this.endTime=this.$moment(new Date).endOf("week").format("YYYY-MM-DD HH:mm:ss");break;case"本月":this.viewDate=t.startOf("month").format("YYYY-MM-DD")+" 至 "+this.$moment(new Date).format("YYYY-MM-DD"),this.selectStartTime=this.$moment(new Date).startOf("month").format("YYYY-MM-DD 00:00:00"),this.selectEndTime=this.$moment(new Date).format("YYYY-MM-DD HH:mm:ss"),this.startTime=this.selectStartTime,this.endTime=this.$moment(new Date).endOf("month").format("YYYY-MM-DD HH:mm:ss");break;case"自定义":this.selectStartTime=this.$moment(this.selectStartTime).format("YYYY-MM-DD 00:00:00"),this.selectEndTime=this.$moment(this.selectEndTime).format("YYYY-MM-DD 23:59:59"),this.startTime=this.selectStartTime,this.endTime=this.selectEndTime;break}},getLsAnalysisInfo:function(){var e=this,t={userId:this.userId,startDate:this.selectStartTime,endDate:this.selectEndTime};e.lastVal=e.startVal,e.lastVal2=e.startVal2,fi.getLsAnalysisInfo(t,(function(t){var a=t.data;if(a.results){var s=a.results.addCustomerNum,i=a.results.newAddCustomerNum;e.endVal=i,e.endVal2=s}}),(function(e){}))},getCompanyTopData:function(){var e=this,t={userId:this.userId,startDate:this.selectStartTime,endDate:this.selectEndTime};fi.getLsAnalysisCompanyAvgAdd(t,(function(t){var a=t.data;a.results?e.companyTopList=a.results:e.companyTopList=[]}),(function(e){}))},getStoreTopData:function(){var e=this,t={userId:this.userId,startDate:this.selectStartTime,endDate:this.selectEndTime};fi.getLsAnalysisStoreAdd(t,(function(t){var a=t.data;a.results?e.storeTopList=a.results:e.storeTopList=[]}),(function(e){}))},getLsAnalysisDateAdd:function(){var e=this,t={userId:this.userId,startDate:this.selectStartTime,endDate:this.selectEndTime};fi.getLsAnalysisDateAdd(t,(function(t){var a=t.data;a.results?e.barChartData=a.results:e.barChartData=[]}),(function(e){}))},companyDataOption:function(e){var t={tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},grid:{left:"0%",top:"10px",right:"0%",bottom:"4%",containLabel:!0},xAxis:[{type:"category",data:["浙江","上海","江苏","广东","北京","深圳","安徽"],axisLine:{show:!0,lineStyle:{color:"rgba(255,255,255,.1)",width:1,type:"solid"}},axisTick:{show:!1},axisLabel:{interval:0,show:!0,splitNumber:15,textStyle:{color:"rgba(255,255,255,.6)",fontSize:"12"}}}],yAxis:[{type:"value",axisLabel:{show:!0,textStyle:{color:"rgba(255,255,255,.6)",fontSize:"12"}},axisTick:{show:!1},axisLine:{show:!0,lineStyle:{color:"rgba(255,255,255,.1\t)",width:1,type:"solid"}},splitLine:{lineStyle:{color:"rgba(255,255,255,.1)"}}}],series:[{type:"bar",data:[1500,1200,600,200,300,300,900],barWidth:"35%",itemStyle:{normal:{color:"#27d08a",opacity:1,barBorderRadius:5}}}]};e.setOption(t),window.addEventListener("resize",(function(){e.resize()}))}}},vi=gi,yi=(a("32c7"),Object(l["a"])(vi,Zs,Ws,!1,null,"350d1342",null)),Si=yi.exports,xi=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[e._v("活动分析")])},bi=[],wi={name:"ActivityAnalysis"},Ci=wi,Ai=Object(l["a"])(Ci,xi,bi,!1,null,"b9af968e",null),Di=Ai.exports,Ii=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"activityManager"},[a("Spin",{directives:[{name:"show",rawName:"v-show",value:e.loading,expression:"loading"}],attrs:{fix:""}},[e._v("加载中...")]),a("Row",e._l(e.activityList,(function(t,s){return a("i-col",{key:s,staticClass:"activityListClass",attrs:{span:"7",offset:"1"}},[a("Card",[a("div",{staticClass:"operateAndThemeItem"},[a("div",{staticClass:"ThemeItem"},[a("img",{staticClass:"img",attrs:{src:"/kiisoo-ic"+t.logo}}),a("div",{staticClass:"tipItem"},[a("span",[e._v(e._s(t.name))]),a("span",[e._v(e._s(t.description))])])]),a("div",{staticClass:"operateItem"},[a("div",{on:{click:function(a){return e.disPlayUseTable(t)}}},[e._v("使用")]),a("div",{on:{click:function(a){return e.dispalyAddActivity(t.id)}}},[e._v("配置")])])])])],1)})),1),a("Row",[a("i-col",{attrs:{span:"7",offset:"1"}},[a("div",{staticClass:"addactivity",on:{click:function(t){return e.dispalyAddActivity("")}}},[a("span",[e._v("+")]),a("span",[e._v("添加活动")])])])],1),a("useTable",{ref:"useTable",attrs:{show:e.showUse,schedule:e.useSchedule},on:{doShow:e.doShow}}),a("addActivity",{attrs:{addActivityModal:e.addActivityModal,id:e.id},on:{dispalyAddActivityModal:e.dispalyAddActivityModal}})],1)},ki=[],Mi=(a("a4d3"),a("e01a"),function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"use_box"},[a("Modal",{attrs:{scrollable:!1,title:"使用活动",loading:e.modal_loading,width:"70%"},on:{"on-cancel":e.cancel},model:{value:e.showUse,callback:function(t){e.showUse=t},expression:"showUse"}},[a("Steps",{staticStyle:{padding:"40px"},attrs:{current:e.currentStep}},[a("Step",{attrs:{title:"基本信息"}}),a("Step",{attrs:{title:"选择零售公司",content:""}}),a("Step",{attrs:{title:"选择店铺",content:""}}),a("Step",{attrs:{title:"确认信息",content:""}})],1),0==e.currentStep?a("useActivityStepOne",{attrs:{schedule:e.schedule}}):e._e(),1==e.currentStep?a("useActivityStepTwo",{attrs:{schedule:e.schedule}}):e._e(),2==e.currentStep?a("useActivityStepThree",{attrs:{schedule:e.schedule}}):e._e(),3==e.currentStep?a("useActivityStepFoure",{attrs:{schedule:e.schedule}}):e._e(),a("div",{attrs:{slot:"footer"},slot:"footer"},[0!==e.currentStep?a("Button",{attrs:{type:"primary",shape:"circle",loading:e.modal_loading},on:{click:e.back}},[e._v("上一步")]):e._e(),3!==e.currentStep?a("Button",{attrs:{type:"primary",shape:"circle",loading:e.modal_loading},on:{click:e.next}},[e._v("下一步")]):e._e(),3==e.currentStep?a("Button",{attrs:{type:"primary",shape:"circle",loading:e.modal_loading},on:{click:e.finish}},[e._v("完成")]):e._e()],1)],1)],1)}),Li=[],_i=a("ade3"),Yi=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("Form",{ref:"formValidate",attrs:{model:e.formValidate,rules:e.ruleValidate,"label-width":80}},[a("Row",[a("i-col",{attrs:{span:"20",offset:"2"}},[a("FormItem",{attrs:{label:"活动名称",prop:"name"}},[a("div",[a("i-input",{attrs:{disabled:"",type:"text",placeholder:""},model:{value:e.schedule.name,callback:function(t){e.$set(e.schedule,"name",t)},expression:"schedule.name"}})],1)]),a("div",{staticClass:"dateClass"},[a("Form-item",{attrs:{label:"活动时间",prop:"activityStartDate"}},[a("Date-picker",{staticStyle:{width:"200px"},attrs:{type:"date",format:"yyyy-MM-dd",placeholder:"请选择开始日期"},on:{"on-change":e.storeStartDate},model:{value:e.formValidate.activityStartDate,callback:function(t){e.$set(e.formValidate,"activityStartDate",t)},expression:"formValidate.activityStartDate"}})],1),a("div",{staticClass:"text"},[e._v("至")]),a("Form-item",{attrs:{label:"",prop:"activityEndDate"}},[a("Date-picker",{staticStyle:{width:"200px"},attrs:{type:"date",format:"yyyy-MM-dd",placeholder:"请选择结束日期"},on:{"on-change":e.storeEndDate},model:{value:e.formValidate.activityEndDate,callback:function(t){e.$set(e.formValidate,"activityEndDate",t)},expression:"formValidate.activityEndDate"}})],1)],1),a("FormItem",{attrs:{label:"活动类型",prop:"activityStyle"}},[a("RadioGroup",{attrs:{vertical:""},model:{value:e.formValidate.activityStyle,callback:function(t){e.$set(e.formValidate,"activityStyle",t)},expression:"formValidate.activityStyle"}},e._l(e.schedule.params,(function(t,s){return a("Radio",{key:s,staticStyle:{"margin-bottom":"10px"},attrs:{border:!0,label:t.id}},[a("Icon",{attrs:{type:"social-apple"}}),a("span",[e._v(e._s(t.name)+" ---- "+e._s(t.key))])],1)})),1)],1)],1)],1)],1)],1)},Ni=[],Oi=a("2f62"),Ei="SET_NUM",Ti="SET_ID",Vi="SET_useData",Fi="RSET_useData",Bi="SET_useModal",zi={state:{number:1},mutations:Object(_i["a"])({},Ei,(function(e,t){e.number=t})),actions:{},getters:{number:function(e){return e.number}}},$i=zi,Ri={state:{useData:{beginTime:"",endTime:"",id:null,name:"",params:[],scheduleId:null,stores:[],company:[]},useModal:!1,id:"",store:[]},mutations:(hi={},Object(_i["a"])(hi,Vi,(function(e,t){e.useData=t})),Object(_i["a"])(hi,Fi,(function(e){e.useData={beginTime:"",endTime:"",id:null,name:"",params:[],scheduleId:null,stores:[],company:[]}})),Object(_i["a"])(hi,Bi,(function(e,t){e.useModal=t})),Object(_i["a"])(hi,Ti,(function(e,t){e.id=t})),hi),actions:{},getters:{useData:function(e){return e.useData},useModal:function(e){return e.useModal},id:function(e){return e.id}}},ji=Ri,Pi=a("b054"),Ui=a.n(Pi);s["a"].use(Oi["a"]);var qi=!0,Hi=new Oi["a"].Store({modules:{home:$i,activity:ji},plugins:qi?[Ui()()]:[]}),Gi={name:"useActivityStepOne",data:function(){return{formValidate:Hi.getters.useData,ruleValidate:{activityName:[{required:!0,message:"活动名称不能为空",trigger:"blur"}],activityStartDate:[{required:!0,type:"date",message:"开始时间不能为空",trigger:"change"}],activityEndDate:[{required:!0,type:"date",message:"结束时间不能为空",trigger:"change"}],activityStyle:[{required:!0,message:"",trigger:"blur"}]}}},props:{schedule:Object},created:function(){this.formValidate=Hi.getters.useData},watch:Object(_i["a"])({},"formValidate.activityStyle",(function(){var e=this,t={};this.schedule.params.forEach((function(a){a.id==e.formValidate.activityStyle&&(t=a)})),Hi.getters.useData.params=[t]})),methods:{storeStartDate:function(e){Hi.getters.useData.beginTime=e},storeEndDate:function(e){Hi.getters.useData.endTime=e}}},Ji=Gi,Qi=(a("6e81"),Object(l["a"])(Ji,Yi,Ni,!1,null,"68d3c134",null)),Zi=Qi.exports,Wi=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticStyle:{padding:"0 40px"}},[a("div",{staticClass:"selectClass"},[a("Checkbox",{attrs:{indeterminate:e.indeterminate,value:e.allSelect},nativeOn:{click:function(t){return t.preventDefault(),e.handleCheckAll(t)}}},[e._v(" 全选")]),a("i-input",{staticStyle:{width:"250px"},attrs:{icon:"search",placeholder:"请输入零售公司名称"},on:{"on-change":e.doSearch}})],1),a("div",{staticClass:"companyTable"},[a("div",{staticClass:"companyListClass"},[a("Row",{attrs:{gutter:10}},[a("div",{directives:[{name:"show",rawName:"v-show",value:e.loading,expression:"loading"}],staticClass:"loading",staticStyle:{padding:"50px 0"}},[a("Spin",{attrs:{fix:""}},[e._v("加载中...")])],1),a("CheckboxGroup",{attrs:{size:"large"},on:{"on-change":e.onChange},model:{value:e.checkCompanys,callback:function(t){e.checkCompanys=t},expression:"checkCompanys"}},e._l(e.companyList,(function(t,s){return a("i-col",{key:s,attrs:{span:"8"}},[a("Checkbox",{attrs:{size:"large",label:t.value,border:""}},[a("span",[e._v(e._s(t.label))])])],1)})),1)],1)],1),e.loading?a("Spin",{attrs:{size:"large",fix:""}}):e._e()],1)])},Ki=[];a("7db0");function Xi(e,t){return L.get("/activity/schedule/list/all",e).then(t)}function en(e,t){return L.post("/activity/schedule/save",e).then(t)}function tn(e,t){return L.get("/activity/schedule/detail",e).then(t)}function an(e,t){return L.post("/upload",e).then(t)}function sn(e,t){return L.get("/retail/company",e).then(t)}function nn(e,t){return L.post("poi/store/user/shopDTO",e).then(t)}function on(e,t){return L.post("activity/instance/save",e).then(t)}function rn(e,t){return L.get("activity/instance/list",e).then(t)}var ln,cn={getActivityList:Xi,addOreditActivity:en,getActivityInfo:tn,uploadImg:an,getCompany:sn,getShop:nn,getActivityTableData:rn,saveActivityData:on},dn={name:"useActivityStepTwo",data:function(){return{indeterminate:!1,allSelect:!1,companyList:[],companyListdata:[],checkCompanys:[],orginCompanyList:[],loading:!1}},mounted:function(){this.getCompanyInfo();var e=this;Hi.getters.useData.company&&Hi.getters.useData.company.forEach((function(t){e.checkCompanys.push(t.id)}))},methods:{onChange:function(e){var t=this;e.length===this.companyList.length?(this.indeterminate=!1,this.allSelect=!0):e.length>0?(this.indeterminate=!0,this.allSelect=!1):(this.indeterminate=!1,this.allSelect=!1),Hi.getters.useData.company=[],e.forEach((function(e){var a=t._.find(t.companyListdata,(function(t){return t.id==e}));a&&Hi.getters.useData.company.push(a)}))},doSearch:function(e){var t=e.target.value,a=this;a.companyList=[],t.length>0?a.orginCompanyList.forEach((function(e){e.label.indexOf(t)>=0&&a.companyList.push(e)})):a.companyList=a.orginCompanyList},getCompanyInfo:function(){var e=this,t={userId:JSON.parse(sessionStorage.getItem("loginInfo")).userId};this.loading=!0,cn.getCompany(t,(function(t){e.companyList=[],e.companyListdata=t.data.results,t.data.results.forEach((function(t){e.companyList.push({label:t.name,value:t.id}),e.orginCompanyList=e.companyList})),e.loading=!1}))},handleCheckAll:function(){var e=this;this.indeterminate?this.allSelect=!1:this.allSelect=!this.allSelect,this.indeterminate=!1,this.allSelect?this.companyList.forEach((function(t){e.checkCompanys.push(t.value)})):this.checkCompanys=[]}}},un=dn,mn=(a("8f22"),Object(l["a"])(un,Wi,Ki,!1,null,"3616e9e6",null)),pn=mn.exports,hn=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticStyle:{padding:"0 40px"}},[a("div",{staticClass:"selectClass"},[a("Checkbox",{attrs:{indeterminate:e.indeterminate,value:e.allSelect},nativeOn:{click:function(t){return t.preventDefault(),e.handleCheckAll(t)}}},[e._v(" 全选")]),a("i-input",{staticStyle:{width:"250px"},attrs:{icon:"search",placeholder:"请输入店铺名称"},on:{"on-change":e.doSearch}})],1),a("div",{staticClass:"companyTable"},[a("div",{staticClass:"companyListClass"},[a("Row",{attrs:{gutter:10}},[e.loading?a("div",{staticClass:"loading",staticStyle:{padding:"50px 0"}},[a("Spin",{attrs:{fix:""}},[e._v("加载中...")])],1):e._e(),a("CheckboxGroup",{attrs:{size:"large"},on:{"on-change":e.onChange},model:{value:e.isSelect,callback:function(t){e.isSelect=t},expression:"isSelect"}},e._l(e.shopList,(function(t,s){return a("i-col",{key:s,attrs:{span:"8"}},[a("Checkbox",{attrs:{size:"large",label:t.value,border:""}},[a("span",[e._v(e._s(t.label))])])],1)})),1)],1)],1),e.loading?a("Spin",{attrs:{size:"large",fix:""}}):e._e()],1)])},fn=[],gn={name:"useActivityStepThree",data:function(){return{indeterminate:!1,allSelect:!1,selected:[],shopList:[],isSelect:[],selectValue:[],shopListData:[],loading:!1,companys:Hi.getters.useData.company,orginShopList:[]}},mounted:function(){this.getShopInfo();var e=this;Hi.getters.useData.stores&&Hi.getters.useData.stores.forEach((function(t){e.isSelect.push(t.id)}))},computed:{userData:function(){return Hi.getters.userData||{}},store:function(){return Hi.getters.store||[]}},methods:{handleCheckAll:function(){var e=this;this.indeterminate?this.allSelect=!1:this.allSelect=!this.allSelect,this.indeterminate=!1,this.allSelect?this.shopList.forEach((function(t){e.isSelect.push(t.value)})):this.isSelect=[]},doSearch:function(e){var t=e.target.value,a=this;a.shopList=[],t.length>0?a.orginShopList.forEach((function(e){e.label.indexOf(t)>=0&&a.shopList.push(e)})):a.shopList=a.orginShopList},onChange:function(e){var t=this;e.length===this.isSelect.length?(this.indeterminate=!1,this.allSelect=!0):e.length>0?(this.indeterminate=!0,this.allSelect=!1):(this.indeterminate=!1,this.allSelect=!1),Hi.getters.useData.stores=[],e.forEach((function(e){var a=t._.find(t.shopListData,(function(t){return t.id==e}));a&&Hi.getters.useData.stores.push(t._.find(t.shopListData,(function(t){return t.id==e})))}))},getShopInfo:function(){var e=this,t=[];this.companys.forEach((function(e){t.push(e.id)}));var a={userId:JSON.parse(sessionStorage.getItem("loginInfo")).userId,customerIds:t.join(",")};e.loading=!0,cn.getShop(a,(function(t){e.shopList=[],e.shopListData=t.data.results,t.data.results.forEach((function(t){e.isSelect.push(""),e.selectValue.push(""),e.shopList.push({label:t.name,value:t.id}),e.orginShopList=e.shopList})),e.loading=!1}))},isSelectAllCompany:function(){var e=this;!0===this.allSelect?(this.isSelect.forEach((function(t,a){e.isSelect.splice(a,1,!0)})),this.shopList.forEach((function(t,a){e.selectValue.splice(a,1,t.id)}))):(this.isSelect.forEach((function(t,a){e.isSelect.splice(a,1,"")})),this.shopList.forEach((function(t,a){e.selectValue.splice(a,1,"")})))},selectTag:function(e,t){var a=this;this.isSelect.splice(t,1,!this.isSelect[t]),!0===this.isSelect[t]?this.selectValue.splice(t,1,e.value):!1===this.isSelect[t]&&this.selectValue.splice(t,1,"");var s=[];this.isSelect.forEach((function(e,t){!0===e&&s.push(a.selectValue[t])}));for(var i=[],n=0;n<s.length;n++)for(var o=0;o<this.shopList.length;o++)this.shopList[o].value===s[n]&&i.push(this.shopListData[o]);Hi.getters.useData.selectShopValue=i}}},vn=gn,yn=(a("fc11"),Object(l["a"])(vn,hn,fn,!1,null,"7fae2b41",null)),Sn=yn.exports,xn=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticStyle:{padding:"0 40px"}},[a("Form",{ref:"formValidate",attrs:{model:e.useData,"label-width":80}},[a("Row",[a("i-col",{attrs:{span:"22",offset:"2"}},[a("FormItem",{attrs:{label:"活动名称",prop:"activityName"}},[a("div",[e._v(e._s(e.useData.name))])]),a("Form-item",{attrs:{label:"活动时间",prop:"activityDate"}},[a("div",[e._v(e._s(e.useData.beginTime)+" - "+e._s(e.useData.endTime))])]),a("FormItem",{attrs:{label:"活动类型",prop:"activityStyle"}},e._l(e.useData.params,(function(t,s){return a("div",{key:s,staticStyle:{display:"flex"}},[a("i-input",{staticClass:"inputClass",attrs:{disabled:"",type:"text",placeholder:""},model:{value:t.name,callback:function(a){e.$set(t,"name",a)},expression:"item.name"}}),a("i-input",{staticClass:"inputClass",staticStyle:{"margin-left":"20px"},attrs:{disabled:"",type:"text",placeholder:""},model:{value:t.key,callback:function(a){e.$set(t,"key",a)},expression:"item.key"}})],1)})),0),a("FormItem",{attrs:{label:"活动范围",prop:"activityRange"}},[a("Collapse",{attrs:{simple:""}},e._l(e.groups,(function(t,s){return a("Panel",{key:s},[e._v(" "+e._s(t.name)+" "+e._s(t.stores.length)+"家店铺 "),a("div",{attrs:{slot:"content"},slot:"content"},[a("div",{staticClass:"activityShopClass"},e._l(t.stores,(function(t,s){return a("div",{key:s,staticClass:"mr10"},[a("Tag",{staticClass:"tagClass",attrs:{color:"blue"}},[e._v(e._s(t.name))])],1)})),0)])])})),1)],1)],1)],1)],1)],1)},bn=[],wn={name:"useActivityStepFoure",data:function(){return{useData:Hi.getters.useData,operate:"收起",displayActivityShopFlag:!1,groups:[]}},created:function(){var e=this,t=this;console.log(this.useData.stores),this.useData.company.forEach((function(a){a.stores=t._.filter(e.useData.stores,(function(e){return e.companyId==a.id||e.parentId==a.id})),t.groups.push(a)})),console.log(this.groups)},methods:{isDisplay:function(){"展开"===this.operate?(this.operate="收起",this.displayActivityShopFlag=!1):(this.operate="展开",this.displayActivityShopFlag=!0)}}},Cn=wn,An=(a("c8a3"),Object(l["a"])(Cn,xn,bn,!1,null,"03f36f5c",null)),Dn=An.exports,In={name:"useTable",components:{useActivityStepOne:Zi,useActivityStepTwo:pn,useActivityStepThree:Sn,useActivityStepFoure:Dn},data:function(){return{currentStep:0,modal_loading:!1,showUse:!1}},props:{id:String,schedule:{},show:Boolean},watch:{show:function(){this.showUse=this.show},schedule:function(){Hi.getters.useData.scheduleId=this.schedule.id}},mounted:function(){},methods:(ln={cancel:function(){this.currentStep=0}},Object(_i["a"])(ln,"cancel",(function(){Hi.commit("RSET_useData"),this.$emit("doShow",!1),this.modal_loading=!1,this.showUse=!1,this.currentStep=0})),Object(_i["a"])(ln,"next",(function(){var e=Hi.getters.useData;if(e.name=this.schedule.name,0===this.currentStep){if(e.params.length<=0)return void this.$Message.error("请选择活动类型");if(!e.beginTime)return void this.$Message.error("请填写活动开始时间");if(!e.endTime)return void this.$Message.error("请填写活动结束时间");if(e.beginTime>e.endTime)return void this.$Message.error("开始时间不能晚于结束时间")}1!==this.currentStep||e.company&&0!==e.company.length?2!==this.currentStep||e.stores&&0!==e.stores.length?(Hi.commit("SET_useData",e),this.currentStep=this.currentStep+1):this.$Message.error("请至少选择1家店铺"):this.$Message.error("请至少选择1家公司")})),Object(_i["a"])(ln,"back",(function(){this.currentStep=this.currentStep-1})),Object(_i["a"])(ln,"finish",(function(){var e=this,t=Hi.getters.useData;t.isGetActivityInfo=!0,this.modal_loading=!0,cn.saveActivityData(Hi.getters.useData,(function(t){Hi.commit("RSET_useData"),e.$emit("doShow",!1),e.$router.push("/activity/plan"),e.currentStep=0,e.modal_loading=!1,e.showUse=!1}))})),ln)},kn=In,Mn=Object(l["a"])(kn,Mi,Li,!1,null,null,null),Ln=Mn.exports,_n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("Modal",{attrs:{width:"1000","mask-closable":!1},on:{"on-cancel":e.cancel,"on-ok":e.save},model:{value:e.dispalyModal,callback:function(t){e.dispalyModal=t},expression:"dispalyModal"}},[a("p",{staticStyle:{color:"#f60","text-align":"left"},attrs:{slot:"header"},slot:"header"},[a("span",[e._v("配置活动")])]),a("div",[e._v("基本配置")]),a("Form",{ref:"formValidate",attrs:{model:e.formValidate,rules:e.ruleValidate,"label-width":80}},[a("Row",[a("i-col",{staticStyle:{"text-align":"left"},attrs:{span:"8"}},[a("FormItem",{attrs:{label:"",prop:"uploadImg"}},[a("Upload",{ref:"upload",staticStyle:{display:"inline-block"},attrs:{"show-upload-list":!1,"on-success":e.uploadImgSuccess,format:["jpg","jpeg","png"],"max-size":2048,"before-upload":e.handleBeforeUpload,multiple:"",type:"drag",action:""}},[a("div",{staticStyle:{width:"200px",height:"200px","line-height":"200px"}},[e.formValidate.logo?e._e():a("span",[e._v("请上传图片")]),e.formValidate.logo?a("img",{staticStyle:{width:"100%",height:"auto"},attrs:{src:"/kiisoo-ic"+e.formValidate.logo,alt:""}}):e._e()])])],1)],1),a("i-col",{attrs:{span:"15",offset:"1"}},[a("FormItem",{attrs:{label:"活动名称",prop:"activityName"}},[a("i-input",{attrs:{type:"text",placeholder:"请输入活动名称"},model:{value:e.formValidate.name,callback:function(t){e.$set(e.formValidate,"name",t)},expression:"formValidate.name"}})],1),a("Form-item",{attrs:{label:"活动描述",prop:"activityDsc"}},[a("i-input",{attrs:{type:"textarea",autosize:{minRows:3},placeholder:"请输入活动描述"},model:{value:e.formValidate.description,callback:function(t){e.$set(e.formValidate,"description",t)},expression:"formValidate.description"}})],1),a("FormItem",{attrs:{label:"APPID",prop:"appId"}},[a("i-input",{attrs:{type:"text",placeholder:"请输入appid"},model:{value:e.formValidate.appId,callback:function(t){e.$set(e.formValidate,"appId",t)},expression:"formValidate.appId"}})],1),a("FormItem",{attrs:{label:"URI",prop:"uri"}},[a("i-input",{attrs:{type:"text",placeholder:"请输入URI"},model:{value:e.formValidate.uri,callback:function(t){e.$set(e.formValidate,"uri",t)},expression:"formValidate.uri"}})],1)],1)],1)],1),a("div",{staticClass:"topic"},[e._v("活动类型")]),e._l(e.formValidate.params,(function(t,s){return a("Row",{key:s,staticClass:"inputItem",attrs:{gutter:10}},[a("i-col",{attrs:{span:2}},[e._v(" 类型"+e._s(s+1)+" ")]),a("i-col",{attrs:{span:9}},[a("i-input",{staticClass:"inputClass",attrs:{type:"text",placeholder:"参数名称"},model:{value:t.name,callback:function(a){e.$set(t,"name",a)},expression:"item.name"}})],1),a("i-col",{attrs:{span:9}},[a("i-input",{staticClass:"inputClass",staticStyle:{"margin-left":"20px"},attrs:{type:"text",placeholder:"默认值"},model:{value:t.key,callback:function(a){e.$set(t,"key",a)},expression:"item.key"}})],1),a("i-col",{attrs:{span:4}},[a("Button",{staticStyle:{"margin-left":"20px"},attrs:{type:"error"},on:{click:function(t){return e.delActivityInput(s)}}},[e._v("删除")])],1)],1)})),a("Button",{staticStyle:{"margin-top":"10px"},attrs:{type:"primary"},on:{click:e.addActivityInput}},[e._v("+添加活动类型")])],2)},Yn=[],Nn=a("5530"),On={name:"addActivity",data:function(){return{dispalyModal:!1,currentStep:0,modal_loading:!1,imageName:"212",formValidate:{},ruleValidate:{name:[{required:!0,message:"活动名称不能为空",trigger:"blur"}],description:[{required:!0,message:"活动描述不能为空",trigger:"blur"}],appId:[{required:!0,message:"appId不能为空",trigger:"blur"}],uri:[{required:!0,message:"URI不能为空",trigger:"blur"}]}}},props:{addActivityModal:Boolean,id:String},watch:{addActivityModal:function(e){this.dispalyModal=e,!0===e&&this.id&&this.getActivityData(),(null==this.id||this.id.length<=0)&&(this.formValidate={}),("undefined"==typeof this.formValidate.params||this.formValidate.params.length<=0)&&(this.formValidate.params=[{defaultVal:"",description:"",id:0,isRequired:0,key:"",limitLower:"",limitUpper:"",name:"",type:0}])}},mounted:function(){},methods:{addActivityInput:function(){this.formValidate.params.push({defaultVal:"",description:"",id:0,isRequired:0,key:"",limitLower:"",limitUpper:"",name:"",type:0})},delActivityInput:function(e){this.formValidate.params.length<=1?this.$Message.error("至少需要填写一个活动类型!"):this.formValidate.params.splice(e,1)},cancel:function(){this.$emit("dispalyAddActivityModal",!1,!1)},getActivityData:function(){var e=this,t={id:e.id};cn.getActivityInfo(t,(function(t){e.formValidate=t.data.results}))},uploadImgSuccess:function(e,t){this.imageName=t.name},handleBeforeUpload:function(e){var t=this,a=new FormData;return a.append("file",e),f()({method:"post",url:"/upload",data:a,headers:{"Content-Type":"multipart/form-data"}}).then((function(e){e.data.success&&(t.formValidate.logo=e.data.results)})),!1},save:function(){var e=this;e.formValidate.params.length<=0?e.$Message.error("至少需要填写一个活动类型!"):this.$refs["formValidate"].validate((function(t){if(t){var a=Object(Nn["a"])(Object(Nn["a"])({},e.formValidate),{},{isGetActivityInfo:!0});cn.addOreditActivity(a,(function(t){e.addActivityModal=!1,e.formValidate={},e.$emit("dispalyAddActivityModal",!1,!0)}))}else e.$Message.error("表单验证失败!")}))}}},En=On,Tn=(a("6460"),Object(l["a"])(En,_n,Yn,!1,null,"0350c00a",null)),Vn=Tn.exports,Fn={name:"ActivityManager",components:{useTable:Ln,addActivity:Vn},inject:["setMenuName"],data:function(){return{showUse:!1,addActivityModal:!1,activityList:[],id:"",inputActivityList:[],useSchedule:{},loading:!1}},mounted:function(){this.setMenuName("活动管理","活动池"),this.getActivityTable()},methods:{doShow:function(e){this.showUse=e},getActivityData:function(e){var t=this,a={instanceId:e};t.loading=!0,cn.getActivityInfo(a,(function(e){t.inputActivityList=[],e.data.results.params.forEach((function(e){t.inputActivityList.push({value1:e.name,value2:e.description})})),this.useModal=!0,t.loading=!1}))},getActivityTable:function(){var e=this;cn.getActivityList({},(function(t){e.activityList=t.data.results}))},disPlayUseTable:function(e){var t=this,a={id:e.id};cn.getActivityInfo(a,(function(e){t.useSchedule=e.data.results,t.showUse=!0}))},dispalyAddActivity:function(e){this.addActivityModal=!0,this.id=e.toString()},dispalyuseModal:function(e,t){this.useModal=e,!0===t&&this.getActivityTable()},dispalyAddActivityModal:function(e,t){this.addActivityModal=e,!0===t&&this.getActivityTable()}}},Bn=Fn,zn=(a("cf16"),Object(l["a"])(Bn,Ii,ki,!1,null,"8130e3a4",null)),$n=zn.exports,Rn=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("Form",{ref:"formValidate",attrs:{model:e.formValidate,"label-width":80}},[a("Row",[a("i-col",{attrs:{span:"6"}},[a("FormItem",{attrs:{label:"零售公司",prop:""}},[a("Select",{attrs:{filterable:"",placeholder:"全部",clearable:""},model:{value:e.formValidate.companyData,callback:function(t){e.$set(e.formValidate,"companyData",t)},expression:"formValidate.companyData"}},e._l(e.companyList,(function(t,s){return a("Option",{key:s,attrs:{value:t.value}},[e._v(e._s(t.label)+" ")])})),1)],1)],1),a("i-col",{attrs:{span:"6"}},[a("FormItem",{attrs:{label:"店铺",prop:""}},[a("Select",{attrs:{filterable:"",placeholder:"全部",clearable:""},model:{value:e.formValidate.shopData,callback:function(t){e.$set(e.formValidate,"shopData",t)},expression:"formValidate.shopData"}},e._l(e.shopList,(function(t,s){return a("Option",{key:s,attrs:{value:t.value}},[e._v(e._s(t.label)+" ")])})),1)],1)],1),a("i-col",{attrs:{span:"4"}},[a("FormItem",{attrs:{label:"活动状态",prop:""}},[a("Select",{model:{value:e.formValidate.activityStatus,callback:function(t){e.$set(e.formValidate,"activityStatus",t)},expression:"formValidate.activityStatus"}},e._l(e.activityStatusList,(function(t,s){return a("Option",{key:s,attrs:{value:t.value}},[e._v(e._s(t.label)+" ")])})),1)],1)],1),a("i-col",{attrs:{span:"7"}},[a("FormItem",{attrs:{label:"选择日期",prop:""}},[a("Date-picker",{attrs:{value:e.formValidate.date,type:"daterange",placement:"bottom-end",placeholder:"选择日期区间"}})],1)],1),a("i-col",{attrs:{span:"1"}},[a("Button",{attrs:{type:"primary"},on:{click:e.searchTable}},[e._v("查询")])],1)],1),a("Row",{staticStyle:{"margin-top":"50px"}},[a("Table",{attrs:{border:"",columns:e.columns1,data:e.data}}),a("Page",{attrs:{total:e.totalSize,current:e.pageNum,"page-size":e.pageSize,"show-elevator":"","show-total":"",placement:"top","class-name":"ks-page"},on:{"on-change":e.handlePage}})],1)],1)],1)},jn=[],Pn={name:"ActivityPlan",inject:["setMenuName"],components:{useTable:Ln},data:function(){return{totalSize:0,pageNum:1,pageSize:10,data:[],companyList:[],shopList:[],activityStatus:"进行中",formValidate:{date:"",companyData:"",shopData:"",activityStatus:"进行中"},activityData:[{activityStatus:"进行中"},{activityStatus:"已结束"}],activityStatusList:[{label:"全部",value:"全部"},{label:"进行中",value:"进行中"},{label:"未开始",value:"未开始"},{label:"已结束",value:"已结束"}],columns1:[{type:"index",width:60,align:"center"},{title:"活动名称",key:"name"},{title:"活动类型",key:"scheduleVO.name",render:function(e,t){return e("span",t.row["scheduleVO"]["name"])}},{title:"活动开始时间",key:"beginTime"},{title:"活动结束时间",key:"endTime"},{title:"店铺",key:"shop",render:function(e,t){return e("span",(t.row.stores.length||0)+"家")}},{title:"添加好友数",key:"addFriendNum",render:function(e,t){return e("span",(t.row.friends||0)+"人")}},{title:"参与活动客户数",key:"joinActivityClientNum",render:function(e,t){return e("span",(t.row.friends||0)+"人")}},{title:"活动码",key:"activityCode",render:function(e){return e("Button",{props:{type:"primary",size:"small"}},"查看详情")}},{title:"活动状态",key:"status",render:function(e,t){var a=t.row.status;return 1===a?e("span","未开始"):2===a?e("span","进行中"):3===a?e("span","已结束"):4===a?e("span","取消"):void 0}},{title:"操作",key:"action",width:200,render:function(e,t){var a=this;return e("div",[e("Button",{props:{type:"primary",size:"small"},style:{marginRight:"8px"},on:{click:function(){return a.stop(t.row)}}},"终止"),e("Button",{props:{type:"primary",size:"small"},on:{click:function(){return a.modify(t.row)}}},"修改")])}}]}},mounted:function(){this.setMenuName("活动管理","活动计划"),this.getCompanyInfo(),this.getShopInfo(),this.searchTable()},methods:{getCompanyInfo:function(){var e=this,t={userId:JSON.parse(sessionStorage.getItem("loginInfo")).userId};cn.getCompany(t,(function(t){e.companyList=[],t.data.results.forEach((function(t){e.companyList.push({label:t.name,value:t.id})}))}))},getShopInfo:function(){var e=this,t={userId:JSON.parse(sessionStorage.getItem("loginInfo")).userId};cn.getShop(t,(function(t){e.shopList=[],t.data.results.forEach((function(t){e.shopList.push({label:t.name,value:t.id})}))}))},handlePage:function(e){this.pageNum=e,this.searchTable()},searchTable:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};t.pageNum=this.pageNum,t.pageSize=this.pageSize,L.get("/activity/instance/list",t).then((function(t){var a=t.data.results.this||{};e.data=a.list||[],e.totalSize=a.total||0}))}}},Un=Pn,qn=Object(l["a"])(Un,Rn,jn,!1,null,"57475390",null),Hn=qn.exports;s["a"].use(u["a"]);var Gn=new u["a"]({mode:"history",base:"/youke",routes:[{path:"/",redirect:"/login"},{path:"/login",name:"login",component:T},{path:"/external/contact",name:"externalContact",component:H},{path:"/home",name:"Home",component:ee,children:[{path:"/activity/manager",name:"ActivityManager",component:$n},{path:"/activity/plan",name:"ActivityPlan",component:Hn},{path:"/activity/analysis",name:"ActivityAnalysis",component:Di},{path:"/account/manager",name:"AccountManager",component:ue},{path:"/account/management/add",name:"AccountManagerAdd",component:Le},{path:"/account/management/modify",name:"AccountManagementModify",component:Be},{path:"/account/upload",name:"AccountManagerUpload",component:Ue},{path:"/role/manager",name:"RoleManager",component:it},{path:"/shop/increase/manager",name:"IncreaseManager",component:dt,children:[{path:"/",redirect:"/shop/increase/manager/store"},{path:"/shop/increase/manager/store",name:"IncreaseStoreManager",component:Ss},{path:"/shop/increase/manager/staff",name:"IncreaseStaffManager",component:rs},{path:"/shop/increase/manager/staff/batch/add",name:"IncreaseStaffManagerBatchAdd",component:ps}]},{path:"/table/analysis",name:"TableAnalysis",component:_t,children:[{path:"/",redirect:"/table/analysis/customer/add"},{path:"/table/analysis/customer/add",name:"AddCustomerTable",component:Vt},{path:"/table/analysis/customer/apply",name:"ApplyCustomerTable",component:jt}]},{path:"/shop/increase/configure",name:"IncreaseConfigure",component:Ds,children:[{path:"/",redirect:"/shop/increase/configure/welcome"},{path:"/shop/increase/configure/group",name:"IncreaseGroupSendConfigure",component:Ys},{path:"/shop/increase/configure/welcome",name:"IncreaseWelcomeConfigure",component:Fs},{path:"/shop/increase/configure/group/add",name:"IncreaseGroupSendConfigureAdd",component:Ps}]},{path:"/shop/increase/data",name:"IncreaseData",component:Aa,children:[{path:"/",redirect:"/shop/increase/data/region"},{path:"/shop/increase/data/region",name:"IncreaseDataCompany",component:_a},{path:"/shop/increase/data/store",name:"IncreaseDataStore",component:ja},{path:"/shop/increase/data/staff",name:"IncreaseDataStaff",component:Va}]},{path:"/customer/view",name:"CustomerView",component:At},{path:"/zero/extend/detail",name:"ZeroExtendDetail",component:Wt},{path:"/customer/data/detail",name:"CustomerDetail",component:ya},{path:"/no/permission",name:"NoPermission",component:Qs}]},{path:"/customer/view/home",name:"CustomerViewHome",component:Si}]});Gn.beforeEach((function(e,t,a){a()}));var Jn=Gn,Qn=a("c1df"),Zn=a.n(Qn),Wn=a("3642"),Kn=a("8554"),Xn=a("5867"),eo=a("6906"),to=a("fe66"),ao=a("be95"),so=a("4cf6"),io=a("9768"),no=a("2d48"),oo=a("aa30"),ro=a("9259"),lo=a("4191"),co=a("8144"),uo=a("efc9"),mo=a("b062"),po=a("5689"),ho=a("2a34"),fo=a("4dc6"),go=a("5f81"),vo=a("76ea"),yo=a("b3e6"),So=a("d596"),xo=a("c3a8"),bo=a("af63"),wo=a("25e7"),Co=a("78a0"),Ao=a("5c16"),Do=a("674c"),Io=a("2a43"),ko=a("8679"),Mo=a("beb5"),Lo=a("5250"),_o=a("8729"),Yo=a("96c4"),No=a("8d8f"),Oo=a("8b1e"),Eo=a("4d39"),To=a("11a7"),Vo=a("4e47"),Fo=a("8203"),Bo=a("e3f5");a("f8ce");s["a"].component("Button",Bo["a"]),s["a"].component("Collapse",Fo["a"]),s["a"].component("Panel",Vo["a"]),s["a"].component("Tag",To["a"]),s["a"].component("Table",Eo["a"]),s["a"].component("Card",Oo["a"]),s["a"].component("Form",No["a"]),s["a"].component("FormItem",Yo["a"]),s["a"].component("InputNumber",_o["a"]),s["a"].component("Icon",Lo["a"]),s["a"].component("i-input",Mo["a"]),s["a"].component("Layout",ko["a"]),s["a"].component("Sider",Io["a"]),s["a"].component("Avatar",Do["a"]),s["a"].component("Menu",Ao["a"]),s["a"].component("MenuItem",Co["a"]),s["a"].component("Submenu",wo["a"]),s["a"].component("Content",bo["a"]),s["a"].component("Breadcrumb",xo["a"]),s["a"].component("BreadcrumbItem",So["a"]),s["a"].component("Row",yo["a"]),s["a"].component("i-col",vo["a"]),s["a"].component("Select",go["a"]),s["a"].component("Option",fo["a"]),s["a"].component("Poptip",ho["a"]),s["a"].component("DatePicker",po["a"]),s["a"].component("CheckboxGroup",mo["a"]),s["a"].component("Checkbox",uo["a"]),s["a"].component("RadioGroup",co["a"]),s["a"].component("i-switch",lo["a"]),s["a"].component("Modal",ro["a"]),s["a"].component("Message",oo["a"]),s["a"].prototype.$Modal=ro["a"],s["a"].prototype.$Message=oo["a"],s["a"].component("Radio",no["a"]),s["a"].component("List",io["a"]),s["a"].component("Divider",so["a"]),s["a"].component("Page",ao["a"]),s["a"].component("Spin",to["a"]),s["a"].component("Upload",eo["a"]),s["a"].component("Tooltip",Xn["a"]),s["a"].component("Step",Kn["a"]),s["a"].component("Steps",Wn["a"]);var zo=a("2819"),$o=a.n(zo);s["a"].use($o.a);a("499a");var Ro=a("2ef0"),jo=a.n(Ro),Po=a("313e"),Uo=a.n(Po);a("3139");s["a"].prototype.$axios=f.a,s["a"].prototype.$qs=v.a,s["a"].prototype.$moment=Zn.a,s["a"].config.productionTip=!1,s["a"].prototype.$moment=Zn.a,s["a"].prototype._=jo.a,s["a"].prototype.$echarts=Uo.a,Zn.a.locale("zh-cn"),s["a"].use(Oi["a"]),s["a"].prototype.bus=new s["a"],new s["a"]({render:function(e){return e(d)},router:Jn}).$mount("#app");var qo=u["a"].prototype.push;u["a"].prototype.push=function(e){return qo.call(this,e).catch((function(e){return e}))}},6121:function(e,t,a){"use strict";var s=a("1cad"),i=a.n(s);i.a},6460:function(e,t,a){"use strict";var s=a("49f0"),i=a.n(s);i.a},"6ae5":function(e,t,a){},"6dd2":function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAYAAABWdVznAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAADFSURBVChTY2RAAvL59wUYWZjrGRgZEsAC/xkWPOiVKwSzoYAJSoMBIytzPlBxAZApAMZAtkLxo/lgSShA0QA0EWIyMmBkCICywABVAyPYZLwA3YYFUBYCoImhaAB78D/DBCj3A0jx/z9/G6F88gBGsDIwMzswMP1XYGRg5P//j+Eiw9+/Bx5OVPwAVQLRIF9834GRgbkfyDMAi2KA/weAmhc+7JNfwKhQ8qgeKNIAkSAAgP5jAhKYYY8LAFMAEzFhjwAMAgCUljIYozEKbAAAAABJRU5ErkJggg=="},"6e81":function(e,t,a){"use strict";var s=a("4a98"),i=a.n(s);i.a},"74cd":function(e,t,a){"use strict";var s=a("8f96"),i=a.n(s);i.a},8053:function(e,t,a){},8141:function(e,t,a){"use strict";var s=a("d620"),i=a.n(s);i.a},8385:function(e,t,a){e.exports=a.p+"assets/img/map.png"},"85ec":function(e,t,a){},8773:function(e,t,a){},"8f22":function(e,t,a){"use strict";var s=a("4b63"),i=a.n(s);i.a},"8f96":function(e,t,a){},"997c":function(e,t,a){},a2e8:function(e,t,a){"use strict";var s=a("b8cc"),i=a.n(s);i.a},b07e:function(e,t,a){},b8cc:function(e,t,a){},c4ac:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAE4AAABOCAYAAACOqiAdAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAM4SURBVHhe7dyxbtNQFAbge+xSglSJDAwdGIrEA5SNAUT7CEg8AAykdRUJ8gQpI+qQpUrSMqQPwMDGSBEMjBkZkACJoVuLxBAV7IOdHgbXN0b946pV+3/SbX0kx3H/yro3176R3lZvX8TV3bmg66uNtRdW5HT73edBIB0rz1xgv+mEGByIwYEYHIjBgRgcKCgbiojG9zV2t6psTvW1Hf5EgsBdt82i9Ji+95qmZX+7Hd2rdByXHSCKom9WVqK/1R04kcdWHoON49S5N1EjemhlJTqDTv3a79q+lQW8VEEMDsTgQAwOxOBAM+jMSO9VryOJLlqZ80eSVrPRHFpZibLhiKge2GbB5vbm4owG/t44kGH0NGpZmVMb1eoutMIjUHUT37TMODSRJV8TlQXbrTJJ4n7aZoGKTPznh3FY953juCVuyXYrGNVGpbnwUgUxOBCDAzE4EIMDlc6OlMmGHBq7ZV87nD3ctd0qgw5H0t5x6DvHrMUSP7HdCsbDkRKcHZmAsyOnhMGBGByIwYEYHEj62720U5rg6MbKr6OiKnLPibttxTGTe9X+dredvnbdyjx1X9IfH62qylza+z+y7QI+dAPipQpicCAGB2JwIAYHSocjWTd/Pmgs76Mo8s6s9Hq9JQn1gZVERER0YVzq4Yg6+R41oh0rc47uOVx9ZmXBpZ4dUXXDaCW6Y2UOb9acEgYHYnAgBgdicKCLcbMGpE4/p8d8aWWeJjdEgg2rCi7EsyNngZcqiMGBGByIwYEYHKh0OFLWq2YrVsaLLzyyx0dbT1rex0vRXvU/w5G9dOiUDi2K1Ek9HTV4VwBNA15Zky3zkdC987XZw9mJK1ZQpStrnPu0urK27Gsucd4lR9PipQpicCAGB2JwIAYHglfWZItk0yHArq+paKUTAxl0ZU0cxge+c5y2cWUNiJcqiMGBGByIwYEYHKh0diT7KrAkCX9YWQkJdGPyihVwdkR1J/1A7120OxgMaqPRaN7KnDiOR81mc8/KnHa7PTM/P3/TyoLS2RGV8IOE7muVbXJo5dDvHUlDu+s7j6yFV8K3tltBfaE+53vNv8ZLFcTgQAwOxOBADA7E4CDO/QXutjcvOVsm0wAAAABJRU5ErkJggg=="},c562:function(e,t,a){"use strict";var s=a("6ae5"),i=a.n(s);i.a},c5d3:function(e,t,a){"use strict";var s=a("2a56"),i=a.n(s);i.a},c8a3:function(e,t,a){"use strict";var s=a("4b73"),i=a.n(s);i.a},cab6:function(e,t,a){},cf16:function(e,t,a){"use strict";var s=a("087b"),i=a.n(s);i.a},d21d:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAJtSURBVDhPfZPLaxNRFMYzk6cpbYJ1IxIFJQiK1NbYQOvCaFDyIImIwV0X3SlK9T/IQuhKLIqYbZZZhTxdiCERFVJBkEoQEvGBFKqISlI7TjLj744xpPg48HHO+c53zn3MHcn0DysUCntwdUmS7L1e73QikXj1q7LdhgN0XZdo8siyLEUikXfFYvEwzQ/grXAXu93uQ5vNdhAooVDoNTVd9Jl/N+fz+TmEyxTONJvNOkIH/ILQwGfxE2azeQUu2mq11r1e75tarabLYoBYjaJoDiGYtlgsVsGPmt1u/4HbD06hueH3+6cEL2cymTEaFyHnwQcGXYpGo29FcdTY9kvqC2jbpMf7/f7VbDbrkt1u9yGIRbBJcSkcDpdFw98sFovVcFfAF3DB6XTOiCOcAGIXdc76iNgwbn54wZqmDWOO8pS8SOgEZ+mR5wl0yFKn0/ksRMLYosqWdQZrqqpuDmhTMBj8BncfbJHOyQS7CRQGbSSTyb6hwlwuVxvuNjPuejye1QFtQi/mdgkV/E6ZlddJrCS7uBTjswoLBAK9RqOxzIWmfD6fOqCNT46NEdrAVxniOYH4bBEuZQI/tFQqpSHWBqlhlUplHBcEDmoNcYk1hnwnOQl8QvQ/426mONo5elR2X5Eh1mgsURMvL10ul6fT6fQfD6larVpKpdIRtPdoHMeLp/3M+Dy8xGM03yGcBe8p3kS0iuCjoiji3JM8sBn46/AH2MELFr4cj8cfGwO4PJvD4ZilcIv0KFDEIBo/4cVPM0nzXvwOsAaW0D7h0Snb/sZcLrePVc8z/RoC8TuP2gaaFXaQ5UW2Gchgk+knUCUe2s+C56sAAAAASUVORK5CYII="},d3af:function(e,t,a){"use strict";var s=a("8773"),i=a.n(s);i.a},d620:function(e,t,a){},d7cc:function(e,t,a){},df0a:function(e,t,a){},ea97:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAA0nSURBVHhezVvtbxzFHZ6Z3bvzy9mO7aQJcZw2QEKAkFBBUAvNB6QiyoeWthSnKm8iVIXSSq36tf9BP7RCamlRRaLyooKhQOFD1CJUoVBakSCaxNDY2Am1E3CCX+L49e52Z/o8s3uH73xn396tSR77dzM7Ozszv2d+85uZfZFiFXHglGloymUud6R7gzBmpxByK8LNRpj1Uoo2IVRzkFPPGiOmhJTncH5YSjmA+DHfeO/OJVInH9wiF4J88SN2Ap4f1h3Ogn8LlLtdaH0zauhCcgqhCyVdKK4QOkiDnjgCDMAARz5iGqEnDESIDMIzQqm3pa//viDdt+/ZLsd4TVyIjYC/DGZ2CN+92xh9GzTphj6tUKQRVSTCLDXC5EDKvDRiGiyNIHzdF/qFvVenjocZ6kJdBKDj5CsDYldGe/crJffQvFFgO/q2TqUrwIAMISZR/rDW5lBKuU99e5s4CkOiBdWEmgjo7TWO2WU2ONK7T2t5pxTyCiFNB4qjaX8OMD4GzAR8yZBS5q++cZ+WR+VoT4/0wwxVIzIBvX0mLV1vDxqxD4c3gfru/Fj+vEHfgYpHEH0Hquw3nnuoZ4ecCc5Wh6obzrp6B8xG+KbvKi33SmV2GyGT4emLCilM1mh5WCvzfE7mXr53a9OZaodFVQTQ5NXOzFZfOffAK38PF20PT11SgMYnhBYvK62fXXsu2X/rrZIzybJYkYAnjphEe0P2WlDwAHq9B5dsDE9dksCMMQomXlSOs3/igux7+EaZC0+VxbIE9BrjiAFxnRbeD6U2e2FWa8NTlzS0MRNwzM9J5f5RbBPHe2Rl51iRAI755/oy22XCeRgujqZfs/KsxFFCNLpSNGCeSEBUWLOnA1nwMNnDYP2aJ7RiYIYYBwnP6Jz/xPd3pE5U8gkVCXj66OymRMJ9BDn2SakuC5Mjg8qmE1KsSQnR0SCtNGGVkAADGk3KQOMFKD6xYMQ4ZCojxCxme5JSL7Ao+wRM7M/lvD/ct6v5dJhchLIEcKrznAwUl4+CxavC5EhgwQ2uEOublPhSmxJrG6VwKtIdgL0/OqvFRxe0GJszIMc6troAS+iHNT/udqT296xfOkXCMIvBce+7mT0wmB5poDxbEFFobE1QfusaJXauc0DCysoTzNOVVuJ6XPPFVmWHizXcOoQ6QHr8SW+P9WklWEKAPzi/Ebb5EJabu8OkyGiGyV/d6Ygr1zgY92FiBPD6azpVeH0VzK0EKXZjY/bQ/Pvz3JgVoYgROr7jn4qfC6PuhPm3h8mR4ILSa9c6YjPMPrmE7+rhwEe0wm/AN4qJDLaI7NGaIR0s2tocR+kdnerQm2++WSityAJe/DB7PQbiN8DExnLmVI1sgeluaJYiucS2oiOFMdHdokRXMworU1c0MRsxld+x7a5ffhlHBRQ1M5vT9yPnlTAZDL3of81YGHe1SOv140JbSoqNaeyrMXMsrivqn9XJmCuE498bFm1RIOCpD7Cfl+pr2F3UZPrEJvRWSxI1xae/XS+0Y+qkVdULqxt0tLqGKBDgSnU3zGQzcjm8PxNV2FB6+4Y4nFYJ6BQ7YAna12XrrlaoGyKbra4hLAFPD+hWrf2vI0/Nvc+eb0JDq5nuooKOlbNJA1yZrs8bcjC0U1fqzGNLgMxlbyEziCYWj5sof63oITZ0NUCVk7AsWkLW87nWL9Qb9Q9IUFerMxA0WYs7QEOLPV+jNGLKWyX9LTiyUvjxtBY5rJMDk65RqKvVGW0+8A/TgOJuATtN5fJWK/QBq3FfiGXzh0WzDiqegy/w6A/C89HFNFFn6q7cdZnLkdaNKuq6kcl1PAuPE7a8sFAGNH0bR0gr8Gv2B1bXbuqupNQ34KDuW1tZMMD21NqkUrAc6mtDCHeH2UW7epKRoz9ApSSkBiSxW7xRaV9ehyJcFlKPzGMLi+EZC1BcoHWIgABum4sVpQXk/NApRhXojAt30m9xx1fDlqUY09mY9vBlQrTX9v4s6iiFB8vzIVQqEqizVFsVnAGmP8nHVbaiWoWN4zBgPFagPPbwAtjljZJyoEMkCXYIVilWZyE2wwLkFzAW6ti3BUD91gpyvIlhK4gOXmYbGBwW4hmYPsvOO8FSMDUH7a0/CJJWBCwGyyqxHj3vtyFS0+an9G9sXosFMsEK7G/1sPkXXZRXnqY9A+UnUfZyYD5OjxqOaHGblvnD2lpj92IfUUvslMJK65Bzs751VIgiwf4H8WqwKKMtz4aBWbP3x1cggGB++oRgZgjLqSBWZynTsS7ezmeC3kJHFMHWVwE8V14CInMoazqrrVQDDhPODoGSywBswVqyCr+zuMjmr1fYW7ypOQNnZdP4sxLyF+eBOFvDaynnF3iDFGa9OM8KIAG+WWGlKPmvZrG6NFO8U1CosU75eNoTFzIYizgkmMwaw8OyyJ+zRYRHjNOdTMD0ObSigrOCz4VJ2K5SYZ8b6c8o9P45UGFdVxzCqWoUDea0yGOiNMyDbcnDtisMaeyMT4FIKj9fsgCqFvQFfOXEllsiAE1kTGE6HEae6gZYFWDPn+Z9/XkuUwuVFdVM5KMlycExfuhHPpn2LZk8rgWWzNAIShHoLEe4EBpArR4zxSUcAiMgYRLjt0g7gIf5pEIcP0H8s946N+djOPlirsLip1pwdNMSSkcDPADXTx8qZeRx7DVXfIwcBbQCNn54yodD/MwZWRQaEB7y2IYcl8G1F0DcR+e9yM6vEjgzsPwiQGdHimOYBvURMJQNGhCfzEHx/015loT5RSTkm4EsVvJglMrTd5yE8iSQzw3jAkkI1geBcAr0pXlXqanxk2BjBE1Y9jl6LTiPoTA44YlT52EJoVO0gh9YZIEMKm57HuuIoUnm98pufOqFJcEWC12hc2JNekg9eOuWBSnkP2ETczZXjKCiXMH1j3uWiLMzOtg2I53toDBOaxnFuUEoPziRE9MggudWA9YCoCt15guYdiWI3jiojZ5mg/MNi1O4lB2c9EXfmCeGYA0jF3x4eB34CcSHcO79MV98NAWCYvVG5eH7GrWLg4zbu3iPDejWxunZgxipu5VQsb7jx/uECYfPCT+7YciXJewx2OE4D8wyALe93NSwM1YDsIAc2nQ405q+42fb1AVrAYxgrfUGtoSTNJA4/xRqc7HeZJgXvtyWQU/z+T/7YPE5vjjBcLWAkidR/xvUmceFzZBxRC9OD6PR0dedFcC7uOxpCuPVSMpVsJh4H6/lQd2wAxw2CeoaoEDAo9e39GE19JbxJRiiqdQnqC0wfRfKo5Yo0pAISIgdWk5iJniLuoYpxc8ypNLPCGmGME6oQl1gTzYlHPS+Eg66M4qkcA2vjZMEq5MUQ0nlPBMmWRQRcPbV37xnpD4IU/k4GMHR/9j1jUklWhoc9CQUQg21SBPKaEUZJDIOgMqPpZQHT7/6q/fCJIslFD9xZGKz9p1f48w3MRCrfl7Agmju6RQUR6MVBnS9/Uc6eTucK8m5LGeH2gwTnZ9FC19T0vnFwzc2DYfJFkvobT/ZfgYZn0RVh4P+LC+ECxNNp5TobE6Iy9qSYn1LUrSAgCQIoOfnay71CMtogDm0wRLWpxMoPyHWNDqiET6C56sFev6wcuST7Scbz4RJBZQt5bd9Jq3mZ/bBpB9FBvuaHDOyUlbOh5Q0TVpnMH0FoUXZEmMAWCfx+eUsvRQtIoN1A9cSDEtvxYXoR/7HdWN6/0/LvElesbmP/XtskysTPwZ7D8IrX8aepfJUmkRQaZwLc18c0K9xVHCTQzI4VGbCoUKy8DuKPAdc3338R1+J8KIkgQvl796ZuGZduvGRdFL9AMp3UPGLq3JlUGHeEeZKkvcRZ7P+RE7rPxutfv+Tm9IfoLOYZQkqulhecO1cR39ns3OgJSV7sZgZD3r/0hS2jbNOK3zEumZnAmGvI5z9n86l+yspT6zYoUeOmERmQ3aHo9wHhNF8Xb7m94Y/Fxhz1hfqBc/zDpwYSx6v63X5PPiKafcnmW2ucPiK2V0wj5reH159mH5h1EtaymfnTsh4PpjIgz7h2Om5Li+Z+g7c8F74v91R1gmrCn5NZsQ72EP2Jj33pZ2bZLyfzCxG31mTzkpvjxJyHzzPTUi6qB9NoRNGpDaHfWWeTBr30I4yb4Qvh5oaziGxa9xswL79fuxsv4WkKzFB8HvBup8yVwVj+PBnEo0fRDe/llTqT0c75ehyX4ZUQl09x2ExcF7sgsN5AAuhPSitG1axqh9Ooo5J1DGijTyUMN5TW9cl/1OtuZdDbKb733F9HYK7pTC3WSKEaEGDm6RUdb19Yoz2QCjvV05Tcdj864i/cHWnuvifzpbDiTNmrdNobkan3A4L+Soa34VaUqjIhQIu4gohXAj+GBLSPqbidpWhRsiHYfyAOgMG6ND+BWP7mz8v397edYl+PF0Op06ZhlyLudxNiBvgK3ZCx6ukMZugXAdOtykt7OfzWolZBFNozISR8jS46YdRH/Ny4t3EtDy5ZdU+nxfi/+1N4sPlg/5cAAAAAElFTkSuQmCC"},eca9:function(e,t,a){"use strict";var s=a("997c"),i=a.n(s);i.a},ee8a:function(e,t,a){"use strict";var s=a("cab6"),i=a.n(s);i.a},f08d:function(e,t,a){},f1fd:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAYAAABWdVznAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAADFSURBVChTY2RAAufPnxdgY+OoZ2RkSADx//9nWKCtrVkIloQCJigNBuzs7PlAxQVApgAIg9jXrl2bD5aEAhQNQBPBJqMCxgAoAwxQNDAyMoJMxgvQbVgAZcIBuhiKBpAHgQomQLkfgMoX/Pr1oxHKJw9gCVY2B6BfFIBc/v///1/89evXAUNDQ6BtEADWcPnydQdmZoZ+INMAxEcHQI0H/v9nXKijo7mAERjO9UB9DVA5vADkPybsYY8dgFIAEzFhjwAMAgBOhT0nT6ZFEgAAAABJRU5ErkJggg=="},fc11:function(e,t,a){"use strict";var s=a("b07e"),i=a.n(s);i.a},fd21:function(e,t,a){"use strict";var s=a("df0a"),i=a.n(s);i.a},fde6:function(e,t,a){}});