Commit a66f9596 by 无尘

fix: 修改接口参数

parent 29a7fa78
<!DOCTYPE html><html><head><meta charset=utf-8><link rel="shortcut icon" href=./favicon.ico><title>好办管理平台</title><link href=./static/css/app.7740a853a9581dea708338239886789b.css rel=stylesheet></head><body style="min-width: 1400px;"><div id=app></div><script src=//web-1251519181.file.myqcloud.com/lib/vue/2.6.6/vue.min.js></script><script src=//web-1251519181.file.myqcloud.com/lib/vue-router/3.0.2/vue-router.min.js></script><script src=//web-1251519181.file.myqcloud.com/lib/vuex/3.1.0/vuex.min.js></script><script src=//web-1251519181.file.myqcloud.com/components/img-preview.2.0.00.js></script><script>// Raven.config('https://3715a345910d4c768e7a1ec14619c2d5@sentry.io/1413672').install();</script><script type=text/javascript src=./static/js/manifest.a1e71f8c0168bca5b573.js></script><script type=text/javascript src=./static/js/vendor.334b7ab8931aff0857ff.js></script><script type=text/javascript src=./static/js/app.61672353028ad899554b.js></script></body></html> <!DOCTYPE html><html><head><meta charset=utf-8><link rel="shortcut icon" href=./favicon.ico><title>好办管理平台</title><link href=./static/css/app.ce8e8dea84d362e423e683e48ca7b4e8.css rel=stylesheet></head><body style="min-width: 1400px;"><div id=app></div><script src=//web-1251519181.file.myqcloud.com/lib/vue/2.6.6/vue.min.js></script><script src=//web-1251519181.file.myqcloud.com/lib/vue-router/3.0.2/vue-router.min.js></script><script src=//web-1251519181.file.myqcloud.com/lib/vuex/3.1.0/vuex.min.js></script><script src=//web-1251519181.file.myqcloud.com/components/img-preview.2.0.00.js></script><script>// Raven.config('https://3715a345910d4c768e7a1ec14619c2d5@sentry.io/1413672').install();</script><script type=text/javascript src=./static/js/manifest.30174b53b8de914ef6ca.js></script><script type=text/javascript src=./static/js/vendor.334b7ab8931aff0857ff.js></script><script type=text/javascript src=./static/js/app.61672353028ad899554b.js></script></body></html>
\ No newline at end of file \ No newline at end of file
webpackJsonp([6],{"1ThA":function(e,t){},"4kf4":function(e,t){},"7SJI":function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a("fZjL"),s=a.n(r),o=a("Xxa5"),n=a.n(o),i=a("exGp"),l=a.n(i),c=a("3Xzz"),u=a("ATfr"),d=a("P9l9"),p={name:"storeView",props:{tableData:{type:Array,default:function(){return[]}},departmentId:{type:[String,Number],default:""},brandId:{type:[String,Number],default:""},firstLevelId:{type:[String,Number],default:""},gicFlag:{type:Boolean,default:!0}},data:function(){return{tableH:window.screen.availHeight-440-180-70,selectedList:[],showChildMember:!0,typeArr:["全部类型","自营","联营","代理(加盟)","代销","托管"],statusArr:["待审核","正常","审核失败","停业整顿","回收站","删除"]}},methods:{changeRouter:function(e){this.$router.push(e)},delStores:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a=this;a.$confirm("是否删除所选店铺","提示",{type:"warning"}).then(function(){var r="";if(t)r=e.storeId;else{var s=[];a.selectedList.forEach(function(e){s.push(e.storeId)}),r=s.join(",")}var o={ids:r};a.postDel(o)})},postDel:function(e,t){var a=this;Object(d.a)("/haoban-manage-web/store/delByIds",e).then(function(e){1==e.data.errorCode?(a.$message.success({duration:1e3,message:"操作成功"}),t&&(t.popVisible=!1),a.$emit("getStoreList")):a.$message.error({duration:1e3,message:e.data.message})}).catch(function(e){a.$message.error({duration:1e3,message:e.message})})},selectMember:function(e){this.selectedList=e},setChildMemberShow:function(){this.$emit("setChildMemberShow",this.showChildMember)},cancelDelTag:function(e,t){t.popVisible=!1},toDelTag:function(e,t){var a={ids:t.storeId};this.postDel(a,t)}},computed:{disabledDel:function(){return this.selectedList.length<1}}},m={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("div",{staticClass:"common-right-button-box"},[a("a",{on:{click:function(t){e.changeRouter("/storeInfo?firstLevelId="+e.firstLevelId)}}},[e.gicFlag?e._e():a("el-button",{attrs:{type:"primary"}},[e._v("添加门店")])],1),e._v(" "),a("a",{on:{click:function(t){e.changeRouter("/storeIo?importCode=store&departmentId="+e.departmentId+"&showChildMember="+1*e.showChildMember+"&brandId="+e.brandId)}}},[a("el-button",[e._v("批量导入/导出")])],1),e._v(" "),e.gicFlag?e._e():a("el-button",{attrs:{type:"danger",disabled:e.disabledDel},on:{click:e.delStores}},[e._v("批量删除")]),e._v(" "),a("span",{staticClass:"J_show-children el-button",attrs:{size:"small"}},[a("el-checkbox",{staticClass:"m-r-10",on:{change:e.setChildMemberShow},model:{value:e.showChildMember,callback:function(t){e.showChildMember=t},expression:"showChildMember"}},[e._v("显示子分组门店")]),a("a",{staticClass:"a-href"})],1)],1),e._v(" "),a("el-table",{ref:"table1",attrs:{data:e.tableData},on:{"selection-change":e.selectMember}},[a("el-table-column",{attrs:{type:"selection",width:"42"}}),e._v(" "),a("el-table-column",{attrs:{label:"门店",prop:"storeName",width:"140"}}),e._v(" "),a("el-table-column",{attrs:{label:"代码",prop:"storeCode",width:"140"}}),e._v(" "),a("el-table-column",{attrs:{label:"类型",prop:"storeType",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.typeArr[1*t.row.storeType+1])+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"地区",prop:"areaChainName","show-overflow-tooltip":!0},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.areaChainName||"--")+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"所属分组",prop:"groupChainName","show-overflow-tooltip":!0}}),e._v(" "),a("el-table-column",{attrs:{label:"操作",width:"120"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("a",{staticClass:"a-href m-r-20",on:{click:function(a){e.changeRouter("/storeInfo?gicFlag="+e.gicFlag+"&storeId="+t.row.storeId+"&firstLevelId="+e.firstLevelId)}}},[e._v("编辑")]),e._v(" "),e.gicFlag?e._e():a("el-popover",{attrs:{placement:"top",width:"160"},model:{value:t.row.popVisible,callback:function(a){e.$set(t.row,"popVisible",a)},expression:"scope.row.popVisible"}},[a("p",{staticStyle:{"line-height":"1.5",padding:"10px 10px 20px"}},[e._v("确认删除吗?")]),e._v(" "),a("div",{staticStyle:{"text-align":"right",margin:"0"}},[a("el-button",{attrs:{size:"mini",type:"text"},on:{click:function(a){e.cancelDelTag(t.$index,t.row)}}},[e._v("取消")]),e._v(" "),a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(a){e.toDelTag(t.$index,t.row)}}},[e._v("确定")])],1),e._v(" "),a("el-button",{staticClass:"p-l-10",attrs:{slot:"reference",type:"text"},slot:"reference"},[e._v("\n 删除\n ")])],1)]}}])})],1)],1)},staticRenderFns:[]};var f=a("VU/8")(p,m,!1,function(e){a("BQJE")},null,null).exports,h=a("Ie7z"),g=a("Ch4/"),v={name:"clerkView",props:{tableData:{type:Array,default:function(){return[]}},firstLevelId:{type:[String,Number],default:""},gicFlag:{type:Boolean,default:!1},clerkStoreId:{type:String,default:""}},components:{vueSelectStore:h.a},data:function(){return{tableH:window.screen.availHeight-440-180-70,storeType:0,typeArr:["全部类型","自营","联营","代理(加盟)","代销","托管"],storeStatus:"",activationStatus:"",showChildMember:!0,treeSet:{isSelectPerson:!1,dialogVisible:!1,isSingle:!0,groupId:"",storeType:"",openNextBool:!0},defaultList:[],transferObj:{}}},methods:{changeRouter:function(e){this.$router.push(e)},handleSelectedList:function(e){e&&e.length&&this.postTrans(e)},postTrans:function(e){var t=this,a={id:t.transferObj.employeeClerkId,storeId:e[0].id,oldStoreId:t.transferObj.storeId};Object(d.a)("/haoban-manage-web/emp/clerkMove",a).then(function(e){1==e.data.errorCode?(t.$message.success({message:"转移成功"}),t.$emit("refreshClerkData")):t.$message.error({message:e.data.message})}).catch(function(e){t.$message.error({message:e.message})})},setChildMemberShow:function(){this.$emit("setChildMemberShow",this.showChildMember)},changeManager:function(e,t){var a=this;if(1==t.isManager)return!1;a.$confirm("确定设置为店长?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){a.postChangeManager(e,t)}).catch(function(){})},postChangeManager:function(e,t){var a=this,r={};e.clerks.some(function(e){return 1==e.isManager&&(r=e),1==e.isManager});var s={employeeClerkId:t.employeeClerkId,managerId:r.employeeClerkId};Object(d.a)("/haoban-manage-web/emp/setManager",s).then(function(e){1==e.data.errorCode?(r.isManager=0,t.isManager=1,a.$message.success({message:"设置成功"})):a.$message.error({message:e.data.message})}).catch(function(e){a.$message.error({message:e.message})})},selectByStatus:function(e){this.$emit("selectByStatus",e)},selectByActivate:function(e){this.$emit("selectActivate",e)},selectByType:function(e){var t="";0!=e&&(t=1*e-1),this.$emit("selectByType",t)},addZero:function(e){return e>9?""+e:"0"+e},formatDate:function(){var e=new Date,t=e.getFullYear(),a=e.getMonth()+1,r=e.getDate(),s=e.getHours(),o=e.getMinutes(),n=e.getSeconds();return t+"-"+this.addZero(a)+"-"+this.addZero(r)+" "+this.addZero(s)+"_"+this.addZero(o)+"_"+this.addZero(n)},exportClerk:function(){var e=this,t={groupId:e.clerkStoreId,type:e.storeType,activationStatus:e.activationStatus,showChild:e.showChildMember?1:0};Object(d.b)("/haoban-manage-web/store/clerk-batch-export",t).then(function(t){if(!t.data)return g.a.errorMsg("暂无数据"),!1;var a=new Blob([t.data],{type:"application/vnd.ms-excel"}),r="门店成员信息表"+e.formatDate()+".csv",s=document.createElement("a");s.download=r,s.style.display="none",s.href=URL.createObjectURL(a),document.body.appendChild(s),s.click(),URL.revokeObjectURL(s.href),document.body.removeChild(s)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},delClerk:function(e,t){var a=this;a.$confirm("是否要删除该员工?","提示",{type:"warning"}).then(function(){var r={ids:e.employeeClerkId};a.postDel(r,t,e)})},postDel:function(e,t,a){var r=this;Object(d.a)("/haoban-manage-web/emp/del",e).then(function(e){1==e.data.errorCode?(t.clerks.forEach(function(e){e.employeeClerkId==a.employeeClerkId&&t.clerks.splice(t.clerks.indexOf(e),1)}),r.$message.success({duration:1e3,message:"操作成功"})):r.$message.error({duration:1e3,message:e.data.message})}).catch(function(e){r.$message.error({duration:1e3,message:e.message})})},cancelDelTag:function(e,t,a){t.popVisible=!1},toDelTag:function(e,t,a){var r={ids:t.employeeClerkId};this.postDel(r,a,t)},toTransfer:function(e,t,a){this.transferObj=t,this.treeSet.storeType="addClerk",this.treeSet.groupId=this.firstLevelId,this.defaultList=[{id:t.storeId,label:t.storeName}],this.treeSet.dialogVisible=!0},addClerkBtn:function(e,t){this.$router.push({path:"/addClerk",query:{storeId:t.storeId,firstLevelId:this.firstLevelId,type:e}})}}},b={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("div",{staticClass:"sf-right-button-box common-right-button-box"},[a("el-select",{attrs:{size:"small"},on:{change:e.selectByType},model:{value:e.storeType,callback:function(t){e.storeType=t},expression:"storeType"}},e._l(e.typeArr,function(e,t){return a("el-option",{key:e,attrs:{label:e,value:t}})})),e._v(" "),a("el-select",{attrs:{size:"small",placeholder:"好办使用状态"},on:{change:e.selectByActivate},model:{value:e.activationStatus,callback:function(t){e.activationStatus=t},expression:"activationStatus"}},[a("el-option",{attrs:{label:"全部使用状态",value:""}}),e._v(" "),a("el-option",{attrs:{label:"已使用好办",value:1}}),e._v(" "),a("el-option",{attrs:{label:"未使用好办",value:0}})],1),e._v(" "),a("span",{staticClass:"J_show-children el-button",staticStyle:{"vertical-align":"middle","margin-right":"0"},attrs:{size:"small"}},[a("el-checkbox",{staticClass:"m-r-10",on:{change:e.setChildMemberShow},model:{value:e.showChildMember,callback:function(t){e.showChildMember=t},expression:"showChildMember"}},[e._v("显示子分组成员")]),a("a",{staticClass:"a-href"})],1),e._v(" "),a("el-button",{staticClass:"vertical-middle",attrs:{plain:""},on:{click:e.exportClerk}},[e._v("批量导出")])],1),e._v(" "),a("el-table",{ref:"clerkViewTable",staticClass:"diy-table",attrs:{data:e.tableData}},[a("el-table-column",{attrs:{label:"门店",width:"300"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[a("p",{staticClass:"m-b-10"},[e._v(e._s(t.row.storeName))]),e._v(" "),a("p",[a("a",{staticClass:"a-href",on:{click:function(a){e.changeRouter("/addClerk?gicFlag="+e.gicFlag+"&storeId="+t.row.storeId+"&firstLevelId="+e.firstLevelId+"&type=addClerk")}}},[e._v("新增店员")])])])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"门店code",prop:"storeCode",width:"300"}}),e._v(" "),a("el-table-column",{attrs:{"min-width":"675"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("ul",e._l(t.row.clerks,function(r,s){return a("li",{key:r.employeeClerkId,staticClass:"clerk-obj-li"},[a("div",{staticClass:"clerk-name clerk-cell"},[a("el-radio",{attrs:{value:1,label:r.isManager}},[a("span",{staticStyle:{display:"inline-block"},on:{click:function(a){e.changeManager(t.row,r)}}},[e._v(e._s(r.name))])]),e._v(" "),1==r.isManager?a("span",{staticClass:"manager"},[e._v("店长")]):e._e()],1),e._v(" "),a("div",{staticClass:"clerk-cell clerk-phone"},[e._v(e._s("86"==r.nationcode?r.phoneNumber:"+"+r.nationcode+"-"+r.phoneNumber))]),e._v(" "),a("div",{staticClass:"clerk-cell clerk-position"},[e._v(e._s(r.code||"--"))]),e._v(" "),a("div",{staticClass:"clerk-cell clerk-position"},[e._v(e._s(r.positionName||"--"))]),e._v(" "),a("div",{staticClass:"clerk-cell clerk-status"},[a("div",{staticClass:"status-icon",class:1==r.activationStatus?"is-active":""},[a("i",{staticClass:"iconfont icon-shouji"})])]),e._v(" "),a("div",{staticClass:"clerk-cell clerk-handle"},[a("a",{staticClass:"a-href m-r-20",on:{click:function(a){e.changeRouter("/addClerk?gicFlag="+e.gicFlag+"&storeId="+t.row.storeId+"&clerkId="+r.employeeClerkId+"&firstLevelId="+e.firstLevelId+"&type=addClerk")}}},[e._v("编辑")]),e._v(" "),a("el-popover",{attrs:{placement:"top",width:"160"},model:{value:r.popVisible,callback:function(t){e.$set(r,"popVisible",t)},expression:"clerk.popVisible"}},[a("p",{staticStyle:{"line-height":"1.5",padding:"10px 10px 20px"}},[e._v("确认删除吗?")]),e._v(" "),a("div",{staticStyle:{"text-align":"right",margin:"0"}},[a("el-button",{attrs:{size:"mini",type:"text"},on:{click:function(a){e.cancelDelTag(s,r,t.row)}}},[e._v("取消")]),e._v(" "),a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(a){e.toDelTag(s,r,t.row)}}},[e._v("确定")])],1),e._v(" "),a("el-button",{staticClass:"p-l-10",attrs:{slot:"reference",type:"text"},slot:"reference"},[e._v("\n 删除\n ")])],1),e._v(" "),1!=r.isManager?a("el-button",{staticClass:"m-l-10",attrs:{type:"text",size:"small"},on:{click:function(a){e.toTransfer(s,r,t.row)}}},[e._v("转移")]):e._e()],1)])}))]}}])},[a("template",{slot:"header"},[a("ul",{staticClass:"diy-header"},[a("li",{staticClass:"name"},[e._v("姓名")]),e._v(" "),a("li",{staticClass:"phone"},[e._v("手机号")]),e._v(" "),a("li",{staticClass:"name"},[e._v("员工code")]),e._v(" "),a("li",{staticClass:"position"},[e._v("职位")]),e._v(" "),a("li",{staticClass:"status"},[e._v("状态")]),e._v(" "),a("li",{staticStyle:{width:"200px"}},[e._v("操作")])])])],2)],1),e._v(" "),a("vue-select-store",{ref:"storeSelector",attrs:{selectType:"store",defaultList:e.defaultList,treeSet:e.treeSet},on:{handleSelectedList:e.handleSelectedList}})],1)},staticRenderFns:[]};var I=a("VU/8")(v,b,!1,function(e){a("kcO4")},"data-v-752283ac",null).exports,_=a("qsKc"),C={name:"add-brand-dialog",components:{limitInput:a("l46T").a},data:function(){return{dialogVisible:!1,brandName:"",brand:""}},methods:{saveFn:function(){if(this.brandName){var e=this,t={brandName:e.brandName};Object(d.a)("/haoban-manage-web/brand/insert",t).then(function(t){1==t.data.errorCode?e.$emit("addSuccess"):e.$message.error({message:t.data.message})}).catch(function(t){e.$message.error({message:t.message})})}else this.$message.error({message:"请输入品牌名称"})}}},y={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("el-dialog",{attrs:{title:"新建品牌",width:"422px",visible:e.dialogVisible},on:{"update:visible":function(t){e.dialogVisible=t}}},[a("p",[e._v("请输入品牌名称")]),e._v(" "),a("div",{staticClass:"m-t-20"},[a("limitInput",{attrs:{inputWidth:380,inputValue:e.brandName,holder:"请输入品牌名称",maxLength:50},on:{"update:inputValue":function(t){e.brandName=t}}})],1),e._v(" "),a("div",{staticClass:"btn-box t-rt m-t-20 m-b-10"},[a("el-button",{on:{click:function(t){e.dialogVisible=!1}}},[e._v("取消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.saveFn}},[e._v("确定")])],1)])],1)},staticRenderFns:[]};var k=a("VU/8")(C,y,!1,function(e){a("nmDM")},null,null).exports,S=a("WSbm"),w=a("oncj"),D=a("unF8"),L={name:"storeEstruturaContainer",components:{navCrumb:c.a,searchMenu:u.a,storeView:f,clerkView:I,employeeInfo:S.a,storeInfo:_.a,addBrand:k,clerkInfo:w.a},data:function(){return{navpath:[{name:"首页",path:"/index"},{name:"企业通讯录",path:"/administrativeFrame"},{name:"门店架构",path:""}],menuData:[],searchResult:{},loading:!0,groupInfo:{groupName:"",departmentId:""},total:0,showChildMember:!0,pageSize:20,pageNumber:1,storeList:[],tableView:2,showEmployee:"node",perId:"",storeInfo:{},disableBtn:!0,storeStatus:"",storeType:"",activationStatus:"",recycleCount:0,firstLevelId:"",gicFlag:!0,tempSearchData:{}}},beforeRouteUpdate:function(e,t,a){a()},methods:{changeRouter:function(e){this.$router.push(e)},handleSearchKey:function(e){var t=this,a={keyWord:e};Object(d.a)("/haoban-manage-web/store/searchpage",a).then(function(e){t.searchResult=e.data.result||{}}).catch(function(e){t.$message.error({message:e.message})})},clearSearch:function(){this.tempSearchData=null},handleEmployeeSelection:function(e,t){var a=this;return l()(n.a.mark(function t(){var r;return n.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return(r=a).tempSearchData=e,r.perId=e.employeeClerkId,r.userId=e.brandId,r.getStoreList(e),t.next=7,r.getGicData();case 7:case"end":return t.stop()}},t,a)}))()},addBrand:function(){this.$refs.add_brand.dialogVisible=!0},addSon:function(){var e="/addGroup?addnew=1&type=childgroup&groupId="+this.groupInfo.departmentId+"&firstLevelId="+this.firstLevelId;this.changeRouter(e)},goToEdit:function(e){var t=0==e?"brand":"group",a="/addGroup?groupId="+this.groupInfo.departmentId+"&type="+t+"&firstLevelId="+this.firstLevelId;this.changeRouter(a)},addSuccess:function(){this.getGroupData(),this.$refs.add_brand.dialogVisible=!1},handleStoreSelection:function(e,t){this.tempSearchData=e,this.getStoreList(e)},handleSizeChange:function(e){this.pageSize=e,this.getStoreList()},handleCurrentChange:function(e){this.pageNumber=e,this.getStoreList()},switchView:function(e){if(this.pageSize=20,this.pageNumber=1,this.storeList=[],this.showChildMember=!0,this.storeStatus="",this.tempSearchData&&s()(this.tempSearchData).length)return this.getStoreList(this.tempSearchData),!1;this.getStoreList()},setChildMemberShow:function(e){this.showChildMember=e,this.getStoreList()},refreshClerkData:function(){this.getStoreList()},getGroupData:function(){var e=this;Object(d.a)("/haoban-manage-web/dept/deptList",{isStoreGroup:1}).then(function(t){1==t.data.errorCode?(e.menuData=t.data.result||[],t.data.result.some(function(t){return 0==t.level&&(e.groupInfo.brandId=t.brandId,e.groupInfo.departmentId=t.groupId,e.groupInfo.groupName=t.name,e.groupInfo.hasPression=t.hasPression,e.firstLevelId=t.chainId.split("-")[1],e.groupInfo.level=0),0==t.level}),e.getStoreList(),e.getGicData()):(e.menuData=[],e.loading=!1,e.$message.error({duration:1e3,message:t.data.message}))}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},getStoreList:function(e){var t=this;if(!t.groupInfo.departmentId)return t.loading=!1,!1;t.loading=!0;var a={storeGroupId:t.groupInfo.departmentId,showChild:1*t.showChildMember,showType:t.tableView,pageSize:t.pageSize,pageNum:t.pageNumber,status:t.storeStatus,storeType:t.storeType,activationStatus:t.activationStatus,storeId:e?e.storeId:"",employeeClerkId:e?e.employeeClerkId:""};Object(d.a)("/haoban-manage-web/store/findSimplePage",a).then(function(e){1==e.data.errorCode?(t.loading=!1,t.total=e.data.result.total,e.data.result.list&&e.data.result.list.length&&e.data.result.list.forEach(function(e,t){e.popVisible=!1,e.clerks&&e.clerks.length&&e.clerks.forEach(function(e,t){e.popVisible=!1})}),t.storeList=e.data.result.list||[],t.getRecycle()):(t.loading=!1,t.storeList=[],t.$message.error({duration:1e3,message:e.data.message}))}).catch(function(e){t.loading=!1,t.$message.error({duration:1e3,message:e.message})})},handleTreeSelection:function(e,t,a){this.groupInfo.departmentId=e.groupId,this.firstLevelId=e.chainId.split("-")[1],this.groupInfo.groupName=e.name,this.groupInfo.brandId=e.brandId,this.showEmployee=a,this.groupInfo.hasPression=e.hasPression,this.groupInfo.level=e.level,this.storeStatus="",this.getStoreList(),this.getRecycle(),this.getGicData()},selectByStatus:function(e){this.storeStatus=e,this.pageNumber=1,this.getStoreList()},selectActivate:function(e){this.activationStatus=e,this.pageNumber=1,this.getStoreList()},selectByType:function(e){this.storeType=e,this.pageNumber=1,this.getStoreList()},cancelClerkInfo:function(e){e&&(this.showEmployee="")},getRecycle:function(){var e=this,t={storeGroupId:e.groupInfo.departmentId};Object(d.a)("/haoban-manage-web/store/get-recycle-count",t).then(function(t){var a=t.data;1==a.errorCode?e.recycleCount=a.result:e.$message.error({duration:1e3,message:a.message})}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},getGicData:function(){var e=this;return l()(n.a.mark(function t(){var a,r,s,o;return n.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if("store"!=(a=e).showEmployee||a.groupInfo.brandId){t.next=4;break}return a.loading=!1,t.abrupt("return",!1);case 4:if(a.userId||a.groupInfo.brandId){t.next=6;break}return t.abrupt("return",!1);case 6:return r={type:1,businessId:"employee"==a.showEmployee?a.userId:a.groupInfo.brandId},t.next=9,Object(D.a)(r);case 9:s=t.sent,1==(o=s.data).errorCode?a.gicFlag=o.result:g.a.errorMsg(o);case 12:case"end":return t.stop()}},t,e)}))()}},beforeMount:function(){this.getGroupData()},mounted:function(){this.disableBtn=!1}},N={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"common-set-wrap store-frame-wrap"},[a("nav-crumb",{attrs:{navpath:e.navpath}}),e._v(" "),a("div",{staticClass:"right-content"},[a("div",{staticClass:"right-box"},[a("div",{staticClass:"store-estrutura-container common-frame-container"},[a("search-menu",{ref:"searchMenu",attrs:{storeFrame:!0,treeData:e.menuData,searchResult:e.searchResult},on:{clearSearch:e.clearSearch,handleSearchKey:e.handleSearchKey,handleTreeSelection:e.handleTreeSelection,handleStoreSelection:e.handleStoreSelection,handleEmployeeSelection:e.handleEmployeeSelection}},[a("template",{slot:"buttonBox"},[a("div",{staticClass:"slot-button"},[a("el-button",{attrs:{disabled:e.disableBtn},on:{click:e.addBrand}},[e._v("新建品牌")]),e._v(" "),a("el-popover",{attrs:{placement:"right",width:"200",content:"若您的企业为集团企业,可通过新建品牌,不同品牌的门店可以创建在不同的品牌下面",trigger:"hover"}},[a("i",{staticClass:"el-icon-info",attrs:{slot:"reference"},slot:"reference"})])],1)])],2),e._v(" "),"employee"==e.showEmployee?a("clerk-info",{attrs:{gicFlag:e.gicFlag,perId:e.perId},on:{cancelClerkInfo:e.cancelClerkInfo}}):"store"==e.showEmployee?a("store-info",{ref:"store_info",attrs:{gicFlag:e.gicFlag,storeInfo:e.storeInfo}}):a("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"sf-right-container common-right-container"},[a("div",{staticClass:"sf-right-header common-right-header"},[a("span",{staticClass:"title-span"},[e._v(e._s(e.groupInfo.groupName)+"("+e._s(e.total)+"家)")]),e._v(" "),a("span",{staticClass:"id-span"},[e._v("部门ID: "+e._s(e.groupInfo.departmentId))]),e._v(" "),e.gicFlag?a("el-popover",{attrs:{placement:"right",width:"200",content:"该品牌已与 GIC门店同步",trigger:"hover"}},[a("i",{staticClass:"el-icon-info",staticStyle:{color:"#c0c4cc",cursor:"pointer"},attrs:{slot:"reference"},slot:"reference"})]):e._e(),e._v(" "),e.gicFlag?e._e():a("span",{staticClass:"handle-area"},[a("el-button",{staticClass:"no-bdr-btn",on:{click:e.addSon}},[e._v(" 添加子分组 ")]),a("span",{staticClass:"hurdle"}),a("el-button",{staticClass:"no-bdr-btn",on:{click:function(t){e.goToEdit(e.groupInfo.level)}}},[e._v(" 编辑 ")])],1)],1),e._v(" "),a("div",{staticClass:"tab-div"},[a("el-radio-group",{on:{change:e.switchView},model:{value:e.tableView,callback:function(t){e.tableView=t},expression:"tableView"}},[a("el-radio-button",{attrs:{label:1}},[e._v("门店视图")]),e._v(" "),a("el-radio-button",{attrs:{label:2}},[e._v("店员视图")])],1),e._v(" "),a("a",{staticClass:"a-href fr",on:{click:function(t){e.changeRouter("/recycle?brandId="+e.groupInfo.brandId+"&dept="+e.groupInfo.departmentId+"&showChild=1&type="+e.storeType)}}},[a("el-button",{attrs:{type:"primary",icon:"el-icon-delete"}},[e._v("回收站("+e._s(e.recycleCount)+")")])],1)],1),e._v(" "),a("div",[1==e.tableView?[a("store-view",{attrs:{gicFlag:e.gicFlag,tableData:e.storeList,departmentId:e.groupInfo.departmentId,brandId:e.groupInfo.brandId,firstLevelId:e.firstLevelId},on:{setChildMemberShow:e.setChildMemberShow,getStoreList:e.getStoreList}})]:[a("clerk-view",{attrs:{gicFlag:e.gicFlag,tableData:e.storeList,clerkStoreId:e.groupInfo.departmentId,firstLevelId:e.firstLevelId},on:{setChildMemberShow:e.setChildMemberShow,selectByStatus:e.selectByStatus,selectByType:e.selectByType,selectActivate:e.selectActivate,refreshClerkData:e.refreshClerkData}})]],2),e._v(" "),e.storeList.length?a("div",{staticClass:"pagination"},[a("el-pagination",{attrs:{background:"","page-sizes":[20,40,60,80],"page-size":e.pageSize,"current-page":e.pageNumber,layout:"total, sizes, prev, pager, next",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1):e._e()]),e._v(" "),a("add-brand",{ref:"add_brand",on:{addSuccess:e.addSuccess}})],1)])]),e._v(" "),a("vue-gic-footer")],1)},staticRenderFns:[]};var x=a("VU/8")(L,N,!1,function(e){a("kcn3")},null,null);t.default=x.exports},ATfr:function(e,t,a){"use strict";var r=a("0xDb"),s={name:"searchMenu",components:{},props:{treeData:{type:Array,required:!0},searchResult:{type:Object,required:!0},storeFrame:{type:Boolean,default:!1}},data:function(){return{searchKey:"",searchResultShow:!1,myProps:{children:"childrens",label:"label",disabled:"disabled"},menuData:[],defaultOpen:[],defaultId:""}},methods:{clearFn:function(){this.searchResultShow=!1,this.$nextTick(function(){document.querySelector(".el-tree-node").classList.add("is-current")}),this.$emit("clearSearch")},searchFn:function(){if(""==this.searchKey)return this.searchResultShow=!1,!1;this.searchResultShow=!0,this.$emit("handleSearchKey",this.searchKey)},handleNodeClick:function(e,t){e.id!=this.defaultId&&document.querySelector(".el-tree-node")&&document.querySelector(".el-tree-node").classList.remove("is-current"),this.defaultId=e.groupId,this.$emit("handleTreeSelection",e,t,"node")},selectEmployee:function(e){this.defaultId=e.employeeClerkId,this.$emit("handleEmployeeSelection",e,"employee")},handleStoreClick:function(e){this.$emit("handleStoreSelection",e,"store")}},filter:{},computed:{employeeList:function(){return this.searchResult.searchList?this.searchResult.searchList:[]},departmentList:function(){return this.searchResult.departmentList?this.searchResult.departmentList:[]},brandList:function(){return this.searchResult.brandList?this.searchResult.brandList:[]}},watch:{treeData:function(e,t){var a=this,s=Object(r.c)(e);a.defaultOpen=s.defaultOpen,a.menuData=s.menuArr,a.menuData.length&&a.$nextTick(function(){a.defaultId=a.menuData.length?a.menuData[0].id:"",document.querySelector(".el-tree-node").classList.add("is-current")})}}},o={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"searh-menu-container"},[a("div",{staticClass:"p-0-15"},[a("el-input",{attrs:{"prefix-icon":"el-icon-search",placeholder:e.storeFrame?"姓名/手机号/部门/code":"姓名/手机号/部门",clearable:""},on:{clear:e.clearFn},nativeOn:{keyup:function(t){return"button"in t||!e._k(t.keyCode,"enter",13,t.key,"Enter")?e.searchFn(t):null}},model:{value:e.searchKey,callback:function(t){e.searchKey=t},expression:"searchKey"}}),e._v(" "),e._t("buttonBox"),e._v(" "),e.searchResultShow?e._e():a("el-tree",{staticClass:"search-menu",attrs:{"node-key":"id","default-expanded-keys":e.defaultOpen,data:e.menuData,"highlight-current":!0,"expand-on-click-node":!1,props:e.myProps},on:{"node-click":e.handleNodeClick},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.node;return t.data,a("span",{staticClass:"custom-tree-node"},[a("i",{staticClass:"iconfont",class:1==r.level?"icon-2zuzhijiagou":"icon-tongshi-zuzhijiagou"}),e._v(" "),a("span",[e._v(e._s(r.label))])])}}])})],2),e._v(" "),e.searchResultShow?a("div",{staticClass:"search-result-container m-t-15"},[e.storeFrame?[e._l(e.brandList,function(t,r){return[t.departmentList.length>0||t.storeList.length>0||t.searchList.length>0?a("div",{key:t.topDepartment.brandId+"_"+r},[a("div",[a("p",{staticClass:"brand-title"},[e._v(e._s(t.topDepartment.name))]),e._v(" "),t.departmentList.length>0?a("ul",{staticClass:"search-result-ul"},[a("p",{staticClass:"title store-frame-title"},[e._v("分组列表")]),e._v(" "),e._l(t.departmentList,function(t,r){return a("li",{key:r+"_"+t.groupId,staticClass:"group-item items",on:{click:function(a){e.handleNodeClick(t)}}},[a("i",{staticClass:"iconfont icon-tongshi-zuzhijiagou"}),e._v("\n "+e._s(t.name)+"\n ")])})],2):e._e(),e._v(" "),t.storeList.length>0?a("ul",{staticClass:"search-result-ul"},[a("p",{staticClass:"title store-frame-title"},[e._v("门店列表")]),e._v(" "),e._l(t.storeList,function(t,r){return a("li",{key:r+"_"+t.storeGroupId,staticClass:"group-item items",on:{click:function(a){e.handleStoreClick(t)}}},[a("i",{staticClass:"iconfont icon-tongshi-zuzhijiagou"}),e._v("\n "+e._s(t.storeName)+"\n ")])})],2):e._e(),e._v(" "),t.searchList.length>0?a("ul",{staticClass:"search-result-ul"},[a("p",{staticClass:"title store-frame-title"},[e._v("人员列表")]),e._v(" "),e._l(t.searchList,function(t,r){return a("li",{key:r+"_"+t.employeeClerkId,staticClass:"person-item items",on:{click:function(a){e.selectEmployee(t)}}},[a("i",{staticClass:"iconfont icon-chengyuan"}),e._v("\n "+e._s(t.name)+"\n "),a("span",{staticClass:"from-group"},[e._v(e._s(t.departmentName))])])})],2):e._e()])]):e._e()]}),e._v(" "),e.brandList.length<1?a("p",{staticClass:"no-data-tip"},[e._v("暂无数据")]):e._e()]:[e.departmentList.length>0?a("ul",{staticClass:"search-result-ul"},[a("p",{staticClass:"title"},[e._v("部门列表")]),e._v(" "),e._l(e.departmentList,function(t,r){return a("li",{key:r+"_"+t.groupId,class:["group-item items",e.defaultId==t.groupId?"active-item":""],on:{click:function(a){e.handleNodeClick(t)}}},[a("i",{staticClass:"iconfont icon-tongshi-zuzhijiagou"}),e._v("\n "+e._s(t.name)+"\n ")])})],2):e._e(),e._v(" "),e.employeeList.length>0?a("ul",{staticClass:"search-result-ul"},[a("p",{staticClass:"title"},[e._v("人员列表")]),e._v(" "),e._l(e.employeeList,function(t,r){return a("li",{key:r+"_"+t.employeeClerkId,class:["person-item items",e.defaultId==t.employeeClerkId?"active-item":""],on:{click:function(a){e.selectEmployee(t)}}},[a("i",{staticClass:"iconfont icon-chengyuan"}),e._v("\n "+e._s(t.name)+"\n "),a("span",{staticClass:"from-group"},[e._v(e._s(t.departmentName))])])})],2):e._e(),e._v(" "),e.departmentList.length<1&&e.employeeList.length<1?a("p",{staticClass:"no-data-tip"},[e._v("暂无数据")]):e._e()]],2):e._e()])},staticRenderFns:[]};var n=a("VU/8")(s,o,!1,function(e){a("4kf4")},null,null);t.a=n.exports},BQJE:function(e,t){},bY6o:function(e,t){},kcO4:function(e,t){},kcn3:function(e,t){},nmDM:function(e,t){},oncj:function(e,t,a){"use strict";var r=a("l46T"),s=a("Ie7z"),o=a("P9l9"),n=a("XDyb"),i=a("T+u5"),l=a.n(i),c={name:"clerk-info-form",props:{isAddnew:{type:Boolean,default:!1},perId:{type:[String,Number],default:""},firstLevelId:{type:[String,Number],default:""},storeType:{type:[String,Number],default:""},gicFlag:{type:Boolean,default:!1}},components:{vueSelectStore:s.a,countryMobile:n.a,limitInput:r.a},data:function(){var e=this;return{rules:{name:[{required:!0,message:"请输入店员姓名",trigger:"blur"}],phoneNumber:[{required:!0,validator:function(t,a,r){if(!a)return r(new Error("请输入手机号"));var s=new l.a("+"+e.clerkInfo.nationcode+a);s.isValid()&&s.isMobile()?r():r(new Error("手机号格式不正确"))},trigger:"blur"}],storeName:[{required:!0,message:"请选择门店",trigger:"change"}],code:[{required:!0,validator:function(t,a,r){if(""==a)return r(new Error("请输入code"));/^[A-Za-z0-9_\u4e00-\u9fa5]+$/.test(a)?r():e.clerkInfo.code=a.replace(/[^A-Za-z0-9_\u4e00-\u9fa5]+/g,"")},trigger:"blur"}],positionName:[{required:!0,message:"请输入店员职位",trigger:"blur"}]},clerkInfo:{storeName:"",storeId:"",managerMode:!1,positionName:"职员",nationcode:"86"},treeSet:{isSelectPerson:!1,dialogVisible:!1,isSingle:!0,groupId:"",storeType:"",openNextBool:!0},defaultList:[]}},methods:{toInputCode:function(e){var t=this.clerkInfo.code;""!==t&&(this.clerkInfo.code=t.replace(/[^A-Za-z0-9]+/g,""))},saveFn:function(e){var t=!0;this.$refs.clerk_info.validate(function(e){e||(t=!1)}),t&&this.addEmployee(this.clerkInfo,e)},callSelector:function(){this.treeSet.dialogVisible=!0},handleSelectedList:function(e){this.clerkInfo.storeName=e&&e.length?e[0].label:"",this.clerkInfo.storeId=e&&e.length?e[0].id:"",this.$forceUpdate()},addEmployee:function(e,t){var a=this,r={name:e.name,isClerk:1,phoneNumber:e.phoneNumber,positionName:e.positionName,storeId:e.storeId,managerMode:1*e.managerMode,code:e.code,employeeClerkId:e.employeeClerkId||"",nationcode:e.nationcode},s=a.isAddnew?"/haoban-manage-web/emp/add":"/haoban-manage-web/emp/update";Object(o.a)(s,r).then(function(e){1==e.data.errorCode?(a.$message.success({message:"操作成功"}),1==t?(a.clerkInfo={name:"",isClerk:1,phoneNumber:"",positionName:"职员",storeId:"",managerMode:!1,code:"",nationcode:"86"},a.defaultList=[],a.$refs.clerk_info.resetFields()):a.$router.push("/storeFrame")):a.$message.error({message:e.data.message})}).catch(function(e){a.$message.error({message:e.message})})},cancel:function(){var e=this;this.$confirm(" 是否确认取消,取消后当前页面信息将丢失 ?","提示",{type:"warning"}).then(function(){e.$router.go(-1)}).catch(function(e){})},getClerkInfo:function(){var e=this,t={id:e.$route.query.clerkId?e.$route.query.clerkId:e.perId};Object(o.a)("/haoban-manage-web/emp/findOne",t).then(function(t){1==t.data.errorCode?(e.clerkInfo=t.data.result,e.defaultList=[{id:t.data.result.storeId,label:t.data.result.storeName}]):e.$message.error({message:t.data.message})}).catch(function(t){e.$message.error({message:t})})}},beforeMount:function(){this.treeSet.storeType=this.storeType,this.treeSet.groupId=this.firstLevelId,this.isAddnew||this.getClerkInfo()},watch:{perId:function(e,t){this.getClerkInfo(e)}}},u={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"form-container bdr-box"},[a("el-form",{ref:"clerk_info",staticClass:"add-clerk-form",attrs:{model:e.clerkInfo,rules:e.rules,"label-width":"80px"}},[a("el-form-item",{attrs:{label:"姓名",prop:"name"}},[a("limitInput",{attrs:{inputWidth:380,inputValue:e.clerkInfo.name,holder:"请输入姓名",maxLength:10},on:{"update:inputValue":function(t){e.$set(e.clerkInfo,"name",t)}}})],1),e._v(" "),a("el-form-item",{attrs:{label:"手机号",prop:"phoneNumber"}},[a("countryMobile",{attrs:{inputWidth:380,nationCode:e.clerkInfo.nationcode,holder:"请输入手机号",disflag:!e.isAddnew},on:{"update:nationCode":function(t){e.$set(e.clerkInfo,"nationcode",t)}},model:{value:e.clerkInfo.phoneNumber,callback:function(t){e.$set(e.clerkInfo,"phoneNumber",t)},expression:"clerkInfo.phoneNumber"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"门店",prop:"storeName"}},[a("el-input",{staticClass:"clerk-info-input",attrs:{disabled:!e.isAddnew},on:{focus:e.callSelector},model:{value:e.clerkInfo.storeName,callback:function(t){e.$set(e.clerkInfo,"storeName",t)},expression:"clerkInfo.storeName"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"code",prop:"code"}},[a("limitInput",{attrs:{inputWidth:380,disflag:e.gicFlag&&!e.isAddnew,inputValue:e.clerkInfo.code,holder:"请输入code",maxLength:20},on:{"update:inputValue":function(t){e.$set(e.clerkInfo,"code",t)}}})],1),e._v(" "),a("el-form-item",{attrs:{label:"职位",prop:"positionName"}},[a("limitInput",{attrs:{inputWidth:380,inputValue:e.clerkInfo.positionName,holder:"请输入职位",maxLength:20},on:{"update:inputValue":function(t){e.$set(e.clerkInfo,"positionName",t)}}})],1)],1),e._v(" "),a("div",{staticClass:"btn-box"},[a("el-button",{attrs:{type:"primary"},on:{click:e.saveFn}},[e._v("保 存")]),e._v(" "),!e.gicFlag&&e.isAddnew?a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.saveFn(1)}}},[e._v("保存并继续添加")]):e._e(),e._v(" "),e.gicFlag?e._e():a("el-button",{on:{click:e.cancel}},[e._v("取 消")])],1),e._v(" "),a("vue-select-store",{ref:"storeSelector",attrs:{selectType:"store",defaultList:e.defaultList,treeSet:e.treeSet},on:{handleSelectedList:e.handleSelectedList}})],1)},staticRenderFns:[]};var d=a("VU/8")(c,u,!1,function(e){a("bY6o")},null,null);t.a=d.exports},qsKc:function(e,t,a){"use strict";var r=a("Xxa5"),s=a.n(r),o=a("//Fk"),n=a.n(o),i=a("exGp"),l=a.n(i),c=a("mvHQ"),u=a.n(c),d=a("P9l9"),p=a("Ie7z"),m=a("XDyb"),f=a("T+u5"),h=a.n(f),g=a("l46T"),v=a("Kkt8"),b={name:"store-detail",components:{vueSelectStore:p.a,countryMobile:m.a,limitInput:g.a,limitTextarea:v.a},props:{storeInfo:{type:Object,default:function(){return{}}},gicFlag:{type:Boolean,default:!0}},data:function(){var e=this;return{areaChainName:"",location:"",areaOptions:{},imgs:[],uploadUrl:"/haoban-manage-web/upload-img",defaultList:[],currentBrand:this.storeInfo.storeGroupId,treeSet:{isSelectPerson:!1,dialogVisible:!1,isSingle:!0,groupId:this.storeInfo.brandId,openNextBool:!0},selectType:"group",disableFlag:!1,storeInfoData:JSON.parse(u()(this.storeInfo)),rules:{storeName:[{required:!0,message:"请输入门店名称",trigger:"blur"}],departmentName:[{required:!0,message:"请选择所属分组",trigger:"blur"}],groupChainName:[{required:!0,message:"请选择部门",trigger:"change"}],imageUrls:[{type:"array",required:!0,message:"请选择门店图片",trigger:"change"}],areaId:[{required:!0,message:"请选择门店地址",trigger:"blur"}],storeType:[{required:!0,message:"请选择门店类型",trigger:"blur"}],openTime:[{required:!0,validator:function(t,a,r){return a&&e.storeInfo.closeTime?r():r(new Error("请选择营业时间"))},trigger:"blur"}],location:[{required:!0,message:"请选择经纬度",trigger:"blur"}],phoneNumber:[{required:!0,validator:function(e,t,a){return t?a():a(new Error("请输入联系电话"))},trigger:"blur"}],storeCode:[{required:!0,validator:function(t,a,r){return a?/^[A-Za-z0-9_\u4e00-\u9fa5]+$/.test(a)?r():void(e.storeInfoData.storeCode=a.replace(/[^A-Za-z0-9_\u4e00-\u9fa5]+/g,"")):r(new Error("请输入门店代码"))},trigger:"blur"}],managerName:[{required:!0,message:"请输入店长姓名",trigger:"blur"}],managerPhone:[{required:!0,validator:function(t,a,r){if(!a)return r(new Error("请输入手机号码"));var s=new h.a("+"+e.storeInfoData.managerNationcode+a);s.isValid()&&s.isMobile()?r():r(new Error("手机号格式不正确"))},trigger:"blur"}],managerCode:[{required:!0,validator:function(t,a,r){return a?/^[A-Za-z0-9_\u4e00-\u9fa5]+$/.test(a)?r():void(e.storeInfoData.managerCode=a.replace(/[^A-Za-z0-9_\u4e00-\u9fa5]+/g,"")):r(new Error("请输入店长代码"))},trigger:"blur"}],specialService:[{max:20,message:"长度在 20 个字符以内",trigger:"blur"}],personCost:[{validator:function(e,t,a){if(t)return/^\d+(\.\d+)?$/.test(1*t)?a():a(new Error("人均消费只能为非负整数或者小数"));return a()},trigger:"blur"}]}}},methods:{inputBlur:function(e){this.storeInfoData.storeArea||(this.storeInfoData.storeArea=""),this.storeInfoData.storeArea=Number(this.storeInfoData.storeArea.replace(/[^\d.]/g,""))?this.storeInfoData.storeArea.replace(/[^\d+(.\d+)]/g,""):"",this.storeInfoData.storeArea=Number(this.storeInfoData.storeArea).toFixed(2),this.storeInfoData.storeArea>=999999&&(this.storeInfoData.storeArea=Number(999999).toFixed(2))},callSelector:function(){this.treeSet={isSelectPerson:!1,dialogVisible:!0,isSingle:!0,groupId:this.storeInfoData.brandId,openNextBool:!0}},handleSelectedList:function(e){this.storeInfoData.groupChainName=e.length?e[0].chainName:"",this.storeInfoData.departmentName=e.length?e[0].label:"",this.storeInfoData.storeGroupId=e.length?e[0].id:""},selected:function(e){this.areaChainName=e.provinceName+"/"+e.cityName+"/"+e.countryName},uploadOnSuccess:function(e,t){e.file.url=e.res.result[0].qcloudImageUrl,t.push(e.file)},sortImg:function(e){this.storeInfoData.imageUrls=e},deleteImage:function(e){this.storeInfoData.imageUrls.splice(e,1)},clickToSave:function(){var e=this;return l()(s.a.mark(function t(){var a,r,o,i;return s.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:a=e,r=new n.a(function(e,t){a.$refs.storeInfoData.validate(function(t){t&&e()})}),o=new n.a(function(e,t){a.$refs.storeManagerForm.validate(function(t){t&&e()})}),i=new n.a(function(e,t){a.$refs.storeOperateForm.validate(function(t){t&&e()})}),n.a.all([r,o,i]).then(function(){a.save()});case 5:case"end":return t.stop()}},t,e)}))()},save:function(){var e=this,t=e.location.split(",");e.storeInfoData.longitude=t[1],e.storeInfoData.latitude=2!==t.length?"":t[0],e.storeInfoData.managerPhone=e.storeInfoData.managerPhone,e.storeInfoData.areaChainName=e.areaOptions.provinceName+"/"+e.areaOptions.cityName+"/"+e.areaOptions.countryName;var a=JSON.parse(u()(e.storeInfoData)),r=[];e.storeInfoData.imageUrls.forEach(function(e){r.push(e.url)}),a.imageUrls=r.join(","),Object(d.e)("/haoban-manage-web/store/update",a).then(function(t){1==t.data.errorCode?e.$message.success({message:"操作成功!"}):e.$message.error({message:t.data.message})}).catch(function(t){e.$message.error({message:t.message})})},formatStoreInfo:function(e){this.defaultList=[{id:e.storeGroupId,label:e.departmentName}],e.managerNationcode||(e.managerNationcode="86");var t=(e.areaChainName||"").split("/");this.areaOptions={provinceName:t[0],provinceId:e.provinceId,cityName:t[1],cityId:e.cityId,countryName:t[2],countyId:e.countyId},this.imgs=e.imageUrl?e.imageUrl.split(","):[];var a=[];this.imgs.forEach(function(e){a.push({url:e})}),e.imageUrls=a,e.location=e.longitude?e.latitude+","+e.longitude:"",this.location=e.longitude?e.latitude+","+e.longitude:"",this.disableFlag=!!e.managerPhone}},watch:{storeInfo:function(e){this.treeSet.groupId=e.brandId,this.storeInfoData=e,this.formatStoreInfo(this.storeInfoData)}},beforeMount:function(){this.treeSet.groupId=this.storeInfo.brandId},mounted:function(){this.storeInfoData=JSON.parse(u()(this.storeInfo)),this.formatStoreInfo(this.storeInfoData)}},I={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"store-info"},[a("div",{staticClass:"info-cell"},[a("p",{staticClass:"title"},[e._v("门店信息")]),e._v(" "),a("el-form",{ref:"storeInfoData",staticClass:"store-info-form info-form",attrs:{"label-width":"90px",rules:e.rules,model:e.storeInfoData}},[a("el-form-item",{attrs:{label:"门店名称",prop:"storeName"}},[a("limitInput",{attrs:{inputWidth:500,inputValue:e.storeInfoData.storeName,holder:"请输入门店名称",maxLength:20},on:{"update:inputValue":function(t){e.$set(e.storeInfoData,"storeName",t)}}})],1),e._v(" "),a("el-form-item",{attrs:{label:"所属分组",prop:"departmentName"}},[a("el-input",{staticClass:"w-500",attrs:{disabled:e.gicFlag},on:{focus:e.callSelector},model:{value:e.storeInfoData.groupChainName,callback:function(t){e.$set(e.storeInfoData,"groupChainName",t)},expression:"storeInfoData.groupChainName"}},[a("i",{staticClass:"el-input__icon el-icon-arrow-down",attrs:{slot:"suffix"},slot:"suffix"})])],1),e._v(" "),a("el-form-item",{attrs:{label:"门店图片(640*340)",prop:"imageUrls"}},[a("div",{staticClass:"member-upload-image"},[a("vue-office-upload-image",{attrs:{projectName:"haoban-manage-web",wxFlag:"0",actionUrl:e.uploadUrl,imageList:e.storeInfoData.imageUrls,limitW:640,limitH:340,maxImageLength:10},on:{uploadOnSuccess:e.uploadOnSuccess,sortImg:e.sortImg,deleteImage:e.deleteImage}})],1),e._v(" "),a("div",{staticClass:"tip font-12 color-909399 m-t-8 line-h-1"},[e._v("门店图片(640*340),支持.jpg,.jepg,.png类型文件,最多添加10张图片")])]),e._v(" "),a("el-form-item",{attrs:{label:"联系电话",prop:"phoneNumber"}},[a("el-input",{staticClass:"w-500",model:{value:e.storeInfoData.phoneNumber,callback:function(t){e.$set(e.storeInfoData,"phoneNumber",t)},expression:"storeInfoData.phoneNumber"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"营业时间",prop:"openTime"}},[a("el-time-select",{attrs:{placeholder:"起始时间","picker-options":{start:"00:00",step:"00:05",end:"24:00"}},model:{value:e.storeInfoData.openTime,callback:function(t){e.$set(e.storeInfoData,"openTime",t)},expression:"storeInfoData.openTime"}}),e._v("\n ~\n "),a("el-time-select",{attrs:{placeholder:"结束时间","picker-options":{start:"00:00",step:"00:05",end:"24:00",minTime:e.storeInfoData.openTime}},model:{value:e.storeInfoData.closeTime,callback:function(t){e.$set(e.storeInfoData,"closeTime",t)},expression:"storeInfoData.closeTime"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"门店类型",prop:"storeType"}},[a("el-radio-group",{model:{value:e.storeInfoData.storeType,callback:function(t){e.$set(e.storeInfoData,"storeType",t)},expression:"storeInfoData.storeType"}},[a("el-radio",{attrs:{label:0}},[e._v("自营")]),e._v(" "),a("el-radio",{attrs:{label:1}},[e._v("联营")]),e._v(" "),a("el-radio",{attrs:{label:2}},[e._v("代理")]),e._v(" "),a("el-radio",{attrs:{label:3}},[e._v("代销")]),e._v(" "),a("el-radio",{attrs:{label:4}},[e._v("托管")])],1)],1),e._v(" "),a("el-form-item",{attrs:{label:"门店地址",prop:"areaId"}},[a("vue-office-area",{attrs:{areaOptions:e.areaOptions,projectName:"haoban-web",postUrl:"/api-admin/dict-district-list"},on:{selected:e.selected}}),e._v(" "),a("limitInput",{attrs:{inputWidth:500,inputValue:e.storeInfoData.storeCode,holder:"请输入门店地址",maxLength:50},on:{"update:inputValue":function(t){e.$set(e.storeInfoData,"storeCode",t)}}})],1),e._v(" "),a("el-form-item",{attrs:{label:"GPS坐标",prop:"location"}},[a("el-input",{staticClass:"w-500 m-r-10",model:{value:e.storeInfoData.location,callback:function(t){e.$set(e.storeInfoData,"location",t)},expression:"storeInfoData.location"}}),e._v(" "),a("a",{staticClass:"a-href",attrs:{href:"http://m.gpsspg.com/maps.htm",target:"_blank"}},[e._v("经纬度测试工具")])],1),e._v(" "),a("el-form-item",[a("template",{slot:"label"},[e._v("\n 门店代码\n ")]),e._v(" "),a("limitInput",{attrs:{inputWidth:500,inputValue:e.storeInfoData.storeCode,disflag:e.gicFlag,holder:"请输入门店代码",maxLength:20},on:{"update:inputValue":function(t){e.$set(e.storeInfoData,"storeCode",t)}}})],2),e._v(" "),a("el-form-item",{attrs:{label:"门店面积"}},[a("el-input",{staticClass:"w-500",on:{blur:function(t){return e.inputBlur(t)}},model:{value:e.storeInfoData.storeArea,callback:function(t){e.$set(e.storeInfoData,"storeArea",t)},expression:"storeInfoData.storeArea"}}),a("span",{staticClass:"font-14 p-l-10"},[e._v("平方米")])],1)],1)],1),e._v(" "),a("div",{staticClass:"info-cell"},[a("p",{staticClass:"title"},[e._v("店长信息")]),e._v(" "),a("el-form",{ref:"storeManagerForm",staticClass:"store-manager-info-form info-form",attrs:{"label-width":"90px",rules:e.rules,model:e.storeInfoData}},[a("el-form-item",{attrs:{label:"店长姓名",prop:"managerName"}},[a("limitInput",{attrs:{inputWidth:500,inputValue:e.storeInfoData.managerName,disflag:e.gicFlag,holder:"请输入店长姓名",maxLength:10},on:{"update:inputValue":function(t){e.$set(e.storeInfoData,"managerName",t)}}})],1),e._v(" "),a("el-form-item",{attrs:{label:"手机号码",prop:"managerPhone"}},[a("countryMobile",{attrs:{inputWidth:500,nationCode:e.storeInfoData.managerNationcode,holder:"请输入手机号",disflag:e.disableFlag||e.gicFlag},on:{"update:nationCode":function(t){e.$set(e.storeInfoData,"managerNationcode",t)}},model:{value:e.storeInfoData.managerPhone,callback:function(t){e.$set(e.storeInfoData,"managerPhone",t)},expression:"storeInfoData.managerPhone"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"店长性别"}},[a("el-radio-group",{attrs:{disabled:e.gicFlag},model:{value:e.storeInfoData.managerSex,callback:function(t){e.$set(e.storeInfoData,"managerSex",t)},expression:"storeInfoData.managerSex"}},[a("el-radio",{attrs:{label:1}},[e._v("男")]),e._v(" "),a("el-radio",{attrs:{label:2}},[e._v("女")])],1)],1),e._v(" "),a("el-form-item",{attrs:{label:"店长代码",prop:"managerCode"}},[a("limitInput",{attrs:{inputWidth:500,inputValue:e.storeInfoData.managerCode,disflag:e.gicFlag,holder:"请输入店长代码",maxLength:20},on:{"update:inputValue":function(t){e.$set(e.storeInfoData,"managerCode",t)}}})],1)],1)],1),e._v(" "),a("div",{staticClass:"info-cell"},[a("p",{staticClass:"title"},[e._v("经营信息")]),e._v(" "),a("el-form",{ref:"storeOperateForm",staticClass:"operate-info-form info-form",attrs:{"label-width":"90px",rules:e.rules,model:e.storeInfoData}},[a("el-form-item",{attrs:{label:"特色服务"}},[a("limit-textarea",{attrs:{inputWidth:500,inputValue:e.storeInfoData.specialService,holder:"请输入特色服务",getByType:"word",maxLength:100},on:{"update:inputValue":function(t){e.$set(e.storeInfoData,"specialService",t)}}})],1),e._v(" "),a("el-form-item",{attrs:{label:"人均消费"}},[a("limitInput",{attrs:{inputWidth:500,inputValue:e.storeInfoData.personCost,holder:"请输入人均消费",maxLength:10},on:{"update:inputValue":function(t){e.$set(e.storeInfoData,"personCost",t)}}})],1),e._v(" "),a("el-form-item",{attrs:{label:"推荐商品"}},[a("limit-textarea",{attrs:{inputWidth:500,inputValue:e.storeInfoData.recommendGoods,holder:"请输入推荐商品",getByType:"word",maxLength:100},on:{"update:inputValue":function(t){e.$set(e.storeInfoData,"recommendGoods",t)}}})],1),e._v(" "),a("el-form-item",{attrs:{label:"品牌介绍"}},[a("limit-textarea",{attrs:{inputWidth:500,inputValue:e.storeInfoData.brandDes,holder:"请输入品牌介绍",getByType:"word",maxLength:200},on:{"update:inputValue":function(t){e.$set(e.storeInfoData,"brandDes",t)}}})],1)],1)],1),e._v(" "),a("div",{staticClass:"handle-area"},[a("el-button",{attrs:{type:"primary"},on:{click:e.clickToSave}},[e._v("保 存")])],1),e._v(" "),a("vue-select-store",{ref:"storeSelector",attrs:{defaultList:e.defaultList,currentBrand:e.currentBrand,treeSet:e.treeSet,selectType:e.selectType},on:{handleSelectedList:e.handleSelectedList}})],1)},staticRenderFns:[]};var _=a("VU/8")(b,I,!1,function(e){a("1ThA")},null,null);t.a=_.exports}});
\ No newline at end of file
webpackJsonp([6],{"1ThA":function(e,t){},"4kf4":function(e,t){},"7SJI":function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a("fZjL"),s=a.n(r),o=a("Xxa5"),n=a.n(o),i=a("exGp"),l=a.n(i),c=a("3Xzz"),u=a("ATfr"),d=a("P9l9"),p={name:"storeView",props:{tableData:{type:Array,default:function(){return[]}},departmentId:{type:[String,Number],default:""},brandId:{type:[String,Number],default:""},firstLevelId:{type:[String,Number],default:""},gicFlag:{type:Boolean,default:!0}},data:function(){return{tableH:window.screen.availHeight-440-180-70,selectedList:[],showChildMember:!0,typeArr:["全部类型","自营","联营","代理(加盟)","代销","托管"],statusArr:["待审核","正常","审核失败","停业整顿","回收站","删除"]}},methods:{changeRouter:function(e){this.$router.push(e)},delStores:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a=this;a.$confirm("是否删除所选店铺","提示",{type:"warning"}).then(function(){var r="";if(t)r=e.storeId;else{var s=[];a.selectedList.forEach(function(e){s.push(e.storeId)}),r=s.join(",")}var o={ids:r};a.postDel(o)})},postDel:function(e,t){var a=this;Object(d.a)("/haoban-manage-web/store/delByIds",e).then(function(e){1==e.data.errorCode?(a.$message.success({duration:1e3,message:"操作成功"}),t&&(t.popVisible=!1),a.$emit("getStoreList")):a.$message.error({duration:1e3,message:e.data.message})}).catch(function(e){a.$message.error({duration:1e3,message:e.message})})},selectMember:function(e){this.selectedList=e},setChildMemberShow:function(){this.$emit("setChildMemberShow",this.showChildMember)},cancelDelTag:function(e,t){t.popVisible=!1},toDelTag:function(e,t){var a={ids:t.storeId};this.postDel(a,t)}},computed:{disabledDel:function(){return this.selectedList.length<1}}},m={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("div",{staticClass:"common-right-button-box"},[a("a",{on:{click:function(t){e.changeRouter("/storeInfo?firstLevelId="+e.firstLevelId)}}},[e.gicFlag?e._e():a("el-button",{attrs:{type:"primary"}},[e._v("添加门店")])],1),e._v(" "),a("a",{on:{click:function(t){e.changeRouter("/storeIo?importCode=store&departmentId="+e.departmentId+"&showChildMember="+1*e.showChildMember+"&brandId="+e.brandId)}}},[a("el-button",[e._v("批量导入/导出")])],1),e._v(" "),e.gicFlag?e._e():a("el-button",{attrs:{type:"danger",disabled:e.disabledDel},on:{click:e.delStores}},[e._v("批量删除")]),e._v(" "),a("span",{staticClass:"J_show-children el-button",attrs:{size:"small"}},[a("el-checkbox",{staticClass:"m-r-10",on:{change:e.setChildMemberShow},model:{value:e.showChildMember,callback:function(t){e.showChildMember=t},expression:"showChildMember"}},[e._v("显示子分组门店")]),a("a",{staticClass:"a-href"})],1)],1),e._v(" "),a("el-table",{ref:"table1",attrs:{data:e.tableData},on:{"selection-change":e.selectMember}},[a("el-table-column",{attrs:{type:"selection",width:"42"}}),e._v(" "),a("el-table-column",{attrs:{label:"门店",prop:"storeName",width:"140"}}),e._v(" "),a("el-table-column",{attrs:{label:"代码",prop:"storeCode",width:"140"}}),e._v(" "),a("el-table-column",{attrs:{label:"类型",prop:"storeType",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(e.typeArr[1*t.row.storeType+1])+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"地区",prop:"areaChainName","show-overflow-tooltip":!0},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.areaChainName||"--")+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"所属分组",prop:"groupChainName","show-overflow-tooltip":!0}}),e._v(" "),a("el-table-column",{attrs:{label:"操作",width:"120"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("a",{staticClass:"a-href m-r-20",on:{click:function(a){e.changeRouter("/storeInfo?gicFlag="+e.gicFlag+"&storeId="+t.row.storeId+"&firstLevelId="+e.firstLevelId)}}},[e._v("编辑")]),e._v(" "),e.gicFlag?e._e():a("el-popover",{attrs:{placement:"top",width:"160"},model:{value:t.row.popVisible,callback:function(a){e.$set(t.row,"popVisible",a)},expression:"scope.row.popVisible"}},[a("p",{staticStyle:{"line-height":"1.5",padding:"10px 10px 20px"}},[e._v("确认删除吗?")]),e._v(" "),a("div",{staticStyle:{"text-align":"right",margin:"0"}},[a("el-button",{attrs:{size:"mini",type:"text"},on:{click:function(a){e.cancelDelTag(t.$index,t.row)}}},[e._v("取消")]),e._v(" "),a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(a){e.toDelTag(t.$index,t.row)}}},[e._v("确定")])],1),e._v(" "),a("el-button",{staticClass:"p-l-10",attrs:{slot:"reference",type:"text"},slot:"reference"},[e._v("\n 删除\n ")])],1)]}}])})],1)],1)},staticRenderFns:[]};var f=a("VU/8")(p,m,!1,function(e){a("BQJE")},null,null).exports,h=a("Ie7z"),g=a("Ch4/"),v={name:"clerkView",props:{tableData:{type:Array,default:function(){return[]}},firstLevelId:{type:[String,Number],default:""},gicFlag:{type:Boolean,default:!1},clerkStoreId:{type:String,default:""}},components:{vueSelectStore:h.a},data:function(){return{tableH:window.screen.availHeight-440-180-70,storeType:0,typeArr:["全部类型","自营","联营","代理(加盟)","代销","托管"],storeStatus:"",activationStatus:"",showChildMember:!0,treeSet:{isSelectPerson:!1,dialogVisible:!1,isSingle:!0,groupId:"",storeType:"",openNextBool:!0},defaultList:[],transferObj:{}}},methods:{changeRouter:function(e){this.$router.push(e)},handleSelectedList:function(e){e&&e.length&&this.postTrans(e)},postTrans:function(e){var t=this,a={id:t.transferObj.employeeClerkId,storeId:e[0].id,oldStoreId:t.transferObj.storeId};Object(d.a)("/haoban-manage-web/emp/clerkMove",a).then(function(e){1==e.data.errorCode?(t.$message.success({message:"转移成功"}),t.$emit("refreshClerkData")):t.$message.error({message:e.data.message})}).catch(function(e){t.$message.error({message:e.message})})},setChildMemberShow:function(){this.$emit("setChildMemberShow",this.showChildMember)},changeManager:function(e,t){var a=this;if(1==t.isManager)return!1;a.$confirm("确定设置为店长?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){a.postChangeManager(e,t)}).catch(function(){})},postChangeManager:function(e,t){var a=this,r={};e.clerks.some(function(e){return 1==e.isManager&&(r=e),1==e.isManager});var s={employeeClerkId:t.employeeClerkId,managerId:r.employeeClerkId};Object(d.a)("/haoban-manage-web/emp/setManager",s).then(function(e){1==e.data.errorCode?(r.isManager=0,t.isManager=1,a.$message.success({message:"设置成功"})):a.$message.error({message:e.data.message})}).catch(function(e){a.$message.error({message:e.message})})},selectByStatus:function(e){this.$emit("selectByStatus",e)},selectByActivate:function(e){this.$emit("selectActivate",e)},selectByType:function(e){var t="";0!=e&&(t=1*e-1),this.$emit("selectByType",t)},addZero:function(e){return e>9?""+e:"0"+e},formatDate:function(){var e=new Date,t=e.getFullYear(),a=e.getMonth()+1,r=e.getDate(),s=e.getHours(),o=e.getMinutes(),n=e.getSeconds();return t+"-"+this.addZero(a)+"-"+this.addZero(r)+" "+this.addZero(s)+"_"+this.addZero(o)+"_"+this.addZero(n)},exportClerk:function(){var e=this,t={groupId:e.clerkStoreId,type:e.storeType,activationStatus:e.activationStatus,showChild:e.showChildMember?1:0};Object(d.b)("/haoban-manage-web/store/clerk-batch-export",t).then(function(t){if(!t.data)return g.a.errorMsg("暂无数据"),!1;var a=new Blob([t.data],{type:"application/vnd.ms-excel"}),r="门店成员信息表"+e.formatDate()+".csv",s=document.createElement("a");s.download=r,s.style.display="none",s.href=URL.createObjectURL(a),document.body.appendChild(s),s.click(),URL.revokeObjectURL(s.href),document.body.removeChild(s)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},delClerk:function(e,t){var a=this;a.$confirm("是否要删除该员工?","提示",{type:"warning"}).then(function(){var r={ids:e.employeeClerkId};a.postDel(r,t,e)})},postDel:function(e,t,a){var r=this;Object(d.a)("/haoban-manage-web/emp/del",e).then(function(e){1==e.data.errorCode?(t.clerks.forEach(function(e){e.employeeClerkId==a.employeeClerkId&&t.clerks.splice(t.clerks.indexOf(e),1)}),r.$message.success({duration:1e3,message:"操作成功"})):r.$message.error({duration:1e3,message:e.data.message})}).catch(function(e){r.$message.error({duration:1e3,message:e.message})})},cancelDelTag:function(e,t,a){t.popVisible=!1},toDelTag:function(e,t,a){var r={ids:t.employeeClerkId};this.postDel(r,a,t)},toTransfer:function(e,t,a){this.transferObj=t,this.treeSet.storeType="addClerk",this.treeSet.groupId=this.firstLevelId,this.defaultList=[{id:t.storeId,label:t.storeName}],this.treeSet.dialogVisible=!0},addClerkBtn:function(e,t){this.$router.push({path:"/addClerk",query:{storeId:t.storeId,firstLevelId:this.firstLevelId,type:e}})}}},b={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("div",{staticClass:"sf-right-button-box common-right-button-box"},[a("el-select",{attrs:{size:"small"},on:{change:e.selectByType},model:{value:e.storeType,callback:function(t){e.storeType=t},expression:"storeType"}},e._l(e.typeArr,function(e,t){return a("el-option",{key:e,attrs:{label:e,value:t}})})),e._v(" "),a("el-select",{attrs:{size:"small",placeholder:"好办使用状态"},on:{change:e.selectByActivate},model:{value:e.activationStatus,callback:function(t){e.activationStatus=t},expression:"activationStatus"}},[a("el-option",{attrs:{label:"全部使用状态",value:""}}),e._v(" "),a("el-option",{attrs:{label:"已使用好办",value:"1"}}),e._v(" "),a("el-option",{attrs:{label:"未使用好办",value:"0"}})],1),e._v(" "),a("span",{staticClass:"J_show-children el-button",staticStyle:{"vertical-align":"middle","margin-right":"0"},attrs:{size:"small"}},[a("el-checkbox",{staticClass:"m-r-10",on:{change:e.setChildMemberShow},model:{value:e.showChildMember,callback:function(t){e.showChildMember=t},expression:"showChildMember"}},[e._v("显示子分组成员")]),a("a",{staticClass:"a-href"})],1),e._v(" "),a("el-button",{staticClass:"vertical-middle",attrs:{plain:""},on:{click:e.exportClerk}},[e._v("批量导出")])],1),e._v(" "),a("el-table",{ref:"clerkViewTable",staticClass:"diy-table",attrs:{data:e.tableData}},[a("el-table-column",{attrs:{label:"门店",width:"300"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[a("p",{staticClass:"m-b-10"},[e._v(e._s(t.row.storeName))]),e._v(" "),a("p",[a("a",{staticClass:"a-href",on:{click:function(a){e.changeRouter("/addClerk?gicFlag="+e.gicFlag+"&storeId="+t.row.storeId+"&firstLevelId="+e.firstLevelId+"&type=addClerk")}}},[e._v("新增店员")])])])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"门店code",prop:"storeCode",width:"300"}}),e._v(" "),a("el-table-column",{attrs:{"min-width":"675"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("ul",e._l(t.row.clerks,function(r,s){return a("li",{key:r.employeeClerkId,staticClass:"clerk-obj-li"},[a("div",{staticClass:"clerk-name clerk-cell"},[a("el-radio",{attrs:{value:1,label:r.isManager}},[a("span",{staticStyle:{display:"inline-block"},on:{click:function(a){e.changeManager(t.row,r)}}},[e._v(e._s(r.name))])]),e._v(" "),1==r.isManager?a("span",{staticClass:"manager"},[e._v("店长")]):e._e()],1),e._v(" "),a("div",{staticClass:"clerk-cell clerk-phone"},[e._v(e._s("86"==r.nationcode?r.phoneNumber:"+"+r.nationcode+"-"+r.phoneNumber))]),e._v(" "),a("div",{staticClass:"clerk-cell clerk-position"},[e._v(e._s(r.code||"--"))]),e._v(" "),a("div",{staticClass:"clerk-cell clerk-position"},[e._v(e._s(r.positionName||"--"))]),e._v(" "),a("div",{staticClass:"clerk-cell clerk-status"},[a("div",{staticClass:"status-icon",class:1==r.activationStatus?"is-active":""},[a("i",{staticClass:"iconfont icon-shouji"})])]),e._v(" "),a("div",{staticClass:"clerk-cell clerk-handle"},[a("a",{staticClass:"a-href m-r-20",on:{click:function(a){e.changeRouter("/addClerk?gicFlag="+e.gicFlag+"&storeId="+t.row.storeId+"&clerkId="+r.employeeClerkId+"&firstLevelId="+e.firstLevelId+"&type=addClerk")}}},[e._v("编辑")]),e._v(" "),a("el-popover",{attrs:{placement:"top",width:"160"},model:{value:r.popVisible,callback:function(t){e.$set(r,"popVisible",t)},expression:"clerk.popVisible"}},[a("p",{staticStyle:{"line-height":"1.5",padding:"10px 10px 20px"}},[e._v("确认删除吗?")]),e._v(" "),a("div",{staticStyle:{"text-align":"right",margin:"0"}},[a("el-button",{attrs:{size:"mini",type:"text"},on:{click:function(a){e.cancelDelTag(s,r,t.row)}}},[e._v("取消")]),e._v(" "),a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(a){e.toDelTag(s,r,t.row)}}},[e._v("确定")])],1),e._v(" "),a("el-button",{staticClass:"p-l-10",attrs:{slot:"reference",type:"text"},slot:"reference"},[e._v("\n 删除\n ")])],1),e._v(" "),1!=r.isManager?a("el-button",{staticClass:"m-l-10",attrs:{type:"text",size:"small"},on:{click:function(a){e.toTransfer(s,r,t.row)}}},[e._v("转移")]):e._e()],1)])}))]}}])},[a("template",{slot:"header"},[a("ul",{staticClass:"diy-header"},[a("li",{staticClass:"name"},[e._v("姓名")]),e._v(" "),a("li",{staticClass:"phone"},[e._v("手机号")]),e._v(" "),a("li",{staticClass:"name"},[e._v("员工code")]),e._v(" "),a("li",{staticClass:"position"},[e._v("职位")]),e._v(" "),a("li",{staticClass:"status"},[e._v("状态")]),e._v(" "),a("li",{staticStyle:{width:"200px"}},[e._v("操作")])])])],2)],1),e._v(" "),a("vue-select-store",{ref:"storeSelector",attrs:{selectType:"store",defaultList:e.defaultList,treeSet:e.treeSet},on:{handleSelectedList:e.handleSelectedList}})],1)},staticRenderFns:[]};var I=a("VU/8")(v,b,!1,function(e){a("MS7U")},"data-v-8f25b278",null).exports,_=a("qsKc"),C={name:"add-brand-dialog",components:{limitInput:a("l46T").a},data:function(){return{dialogVisible:!1,brandName:"",brand:""}},methods:{saveFn:function(){if(this.brandName){var e=this,t={brandName:e.brandName};Object(d.a)("/haoban-manage-web/brand/insert",t).then(function(t){1==t.data.errorCode?e.$emit("addSuccess"):e.$message.error({message:t.data.message})}).catch(function(t){e.$message.error({message:t.message})})}else this.$message.error({message:"请输入品牌名称"})}}},y={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("el-dialog",{attrs:{title:"新建品牌",width:"422px",visible:e.dialogVisible},on:{"update:visible":function(t){e.dialogVisible=t}}},[a("p",[e._v("请输入品牌名称")]),e._v(" "),a("div",{staticClass:"m-t-20"},[a("limitInput",{attrs:{inputWidth:380,inputValue:e.brandName,holder:"请输入品牌名称",maxLength:50},on:{"update:inputValue":function(t){e.brandName=t}}})],1),e._v(" "),a("div",{staticClass:"btn-box t-rt m-t-20 m-b-10"},[a("el-button",{on:{click:function(t){e.dialogVisible=!1}}},[e._v("取消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.saveFn}},[e._v("确定")])],1)])],1)},staticRenderFns:[]};var k=a("VU/8")(C,y,!1,function(e){a("nmDM")},null,null).exports,S=a("WSbm"),w=a("oncj"),D=a("unF8"),L={name:"storeEstruturaContainer",components:{navCrumb:c.a,searchMenu:u.a,storeView:f,clerkView:I,employeeInfo:S.a,storeInfo:_.a,addBrand:k,clerkInfo:w.a},data:function(){return{navpath:[{name:"首页",path:"/index"},{name:"企业通讯录",path:"/administrativeFrame"},{name:"门店架构",path:""}],menuData:[],searchResult:{},loading:!0,groupInfo:{groupName:"",departmentId:""},total:0,showChildMember:!0,pageSize:20,pageNumber:1,storeList:[],tableView:2,showEmployee:"node",perId:"",storeInfo:{},disableBtn:!0,storeStatus:"",storeType:"",activationStatus:"",recycleCount:0,firstLevelId:"",gicFlag:!0,tempSearchData:{}}},beforeRouteUpdate:function(e,t,a){a()},methods:{changeRouter:function(e){this.$router.push(e)},handleSearchKey:function(e){var t=this,a={keyWord:e};Object(d.a)("/haoban-manage-web/store/searchpage",a).then(function(e){t.searchResult=e.data.result||{}}).catch(function(e){t.$message.error({message:e.message})})},clearSearch:function(){this.tempSearchData=null},handleEmployeeSelection:function(e,t){var a=this;return l()(n.a.mark(function t(){var r;return n.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return(r=a).tempSearchData=e,r.perId=e.employeeClerkId,r.userId=e.brandId,r.getStoreList(e),t.next=7,r.getGicData();case 7:case"end":return t.stop()}},t,a)}))()},addBrand:function(){this.$refs.add_brand.dialogVisible=!0},addSon:function(){var e="/addGroup?addnew=1&type=childgroup&groupId="+this.groupInfo.departmentId+"&firstLevelId="+this.firstLevelId;this.changeRouter(e)},goToEdit:function(e){var t=0==e?"brand":"group",a="/addGroup?groupId="+this.groupInfo.departmentId+"&type="+t+"&firstLevelId="+this.firstLevelId;this.changeRouter(a)},addSuccess:function(){this.getGroupData(),this.$refs.add_brand.dialogVisible=!1},handleStoreSelection:function(e,t){this.tempSearchData=e,this.getStoreList(e)},handleSizeChange:function(e){this.pageSize=e,this.getStoreList()},handleCurrentChange:function(e){this.pageNumber=e,this.getStoreList()},switchView:function(e){if(this.pageSize=20,this.pageNumber=1,this.storeList=[],this.showChildMember=!0,this.storeStatus="",this.tempSearchData&&s()(this.tempSearchData).length)return this.getStoreList(this.tempSearchData),!1;this.getStoreList()},setChildMemberShow:function(e){this.showChildMember=e,this.getStoreList()},refreshClerkData:function(){this.getStoreList()},getGroupData:function(){var e=this;Object(d.a)("/haoban-manage-web/dept/deptList",{isStoreGroup:1}).then(function(t){1==t.data.errorCode?(e.menuData=t.data.result||[],t.data.result.some(function(t){return 0==t.level&&(e.groupInfo.brandId=t.brandId,e.groupInfo.departmentId=t.groupId,e.groupInfo.groupName=t.name,e.groupInfo.hasPression=t.hasPression,e.firstLevelId=t.chainId.split("-")[1],e.groupInfo.level=0),0==t.level}),e.getStoreList(),e.getGicData()):(e.menuData=[],e.loading=!1,e.$message.error({duration:1e3,message:t.data.message}))}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},getStoreList:function(e){var t=this;if(!t.groupInfo.departmentId)return t.loading=!1,!1;t.loading=!0;var a={storeGroupId:t.groupInfo.departmentId,showChild:1*t.showChildMember,showType:t.tableView,pageSize:t.pageSize,pageNum:t.pageNumber,status:t.storeStatus,storeType:t.storeType,activationStatus:t.activationStatus,storeId:e?e.storeId:"",employeeClerkId:e?e.employeeClerkId:""};Object(d.a)("/haoban-manage-web/store/findSimplePage",a).then(function(e){1==e.data.errorCode?(t.loading=!1,t.total=e.data.result.total,e.data.result.list&&e.data.result.list.length&&e.data.result.list.forEach(function(e,t){e.popVisible=!1,e.clerks&&e.clerks.length&&e.clerks.forEach(function(e,t){e.popVisible=!1})}),t.storeList=e.data.result.list||[],t.getRecycle()):(t.loading=!1,t.storeList=[],t.$message.error({duration:1e3,message:e.data.message}))}).catch(function(e){t.loading=!1,t.$message.error({duration:1e3,message:e.message})})},handleTreeSelection:function(e,t,a){this.groupInfo.departmentId=e.groupId,this.firstLevelId=e.chainId.split("-")[1],this.groupInfo.groupName=e.name,this.groupInfo.brandId=e.brandId,this.showEmployee=a,this.groupInfo.hasPression=e.hasPression,this.groupInfo.level=e.level,this.storeStatus="",this.getStoreList(),this.getRecycle(),this.getGicData()},selectByStatus:function(e){this.storeStatus=e,this.pageNumber=1,this.getStoreList()},selectActivate:function(e){this.activationStatus=e,this.pageNumber=1,this.getStoreList()},selectByType:function(e){this.storeType=e,this.pageNumber=1,this.getStoreList()},cancelClerkInfo:function(e){e&&(this.showEmployee="")},getRecycle:function(){var e=this,t={storeGroupId:e.groupInfo.departmentId};Object(d.a)("/haoban-manage-web/store/get-recycle-count",t).then(function(t){var a=t.data;1==a.errorCode?e.recycleCount=a.result:e.$message.error({duration:1e3,message:a.message})}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},getGicData:function(){var e=this;return l()(n.a.mark(function t(){var a,r,s,o;return n.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if("store"!=(a=e).showEmployee||a.groupInfo.brandId){t.next=4;break}return a.loading=!1,t.abrupt("return",!1);case 4:if(a.userId||a.groupInfo.brandId){t.next=6;break}return t.abrupt("return",!1);case 6:return r={type:1,businessId:"employee"==a.showEmployee?a.userId:a.groupInfo.brandId},t.next=9,Object(D.a)(r);case 9:s=t.sent,1==(o=s.data).errorCode?a.gicFlag=o.result:g.a.errorMsg(o);case 12:case"end":return t.stop()}},t,e)}))()}},beforeMount:function(){this.getGroupData()},mounted:function(){this.disableBtn=!1}},N={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"common-set-wrap store-frame-wrap"},[a("nav-crumb",{attrs:{navpath:e.navpath}}),e._v(" "),a("div",{staticClass:"right-content"},[a("div",{staticClass:"right-box"},[a("div",{staticClass:"store-estrutura-container common-frame-container"},[a("search-menu",{ref:"searchMenu",attrs:{storeFrame:!0,treeData:e.menuData,searchResult:e.searchResult},on:{clearSearch:e.clearSearch,handleSearchKey:e.handleSearchKey,handleTreeSelection:e.handleTreeSelection,handleStoreSelection:e.handleStoreSelection,handleEmployeeSelection:e.handleEmployeeSelection}},[a("template",{slot:"buttonBox"},[a("div",{staticClass:"slot-button"},[a("el-button",{attrs:{disabled:e.disableBtn},on:{click:e.addBrand}},[e._v("新建品牌")]),e._v(" "),a("el-popover",{attrs:{placement:"right",width:"200",content:"若您的企业为集团企业,可通过新建品牌,不同品牌的门店可以创建在不同的品牌下面",trigger:"hover"}},[a("i",{staticClass:"el-icon-info",attrs:{slot:"reference"},slot:"reference"})])],1)])],2),e._v(" "),"employee"==e.showEmployee?a("clerk-info",{attrs:{gicFlag:e.gicFlag,perId:e.perId},on:{cancelClerkInfo:e.cancelClerkInfo}}):"store"==e.showEmployee?a("store-info",{ref:"store_info",attrs:{gicFlag:e.gicFlag,storeInfo:e.storeInfo}}):a("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"sf-right-container common-right-container"},[a("div",{staticClass:"sf-right-header common-right-header"},[a("span",{staticClass:"title-span"},[e._v(e._s(e.groupInfo.groupName)+"("+e._s(e.total)+"家)")]),e._v(" "),a("span",{staticClass:"id-span"},[e._v("部门ID: "+e._s(e.groupInfo.departmentId))]),e._v(" "),e.gicFlag?a("el-popover",{attrs:{placement:"right",width:"200",content:"该品牌已与 GIC门店同步",trigger:"hover"}},[a("i",{staticClass:"el-icon-info",staticStyle:{color:"#c0c4cc",cursor:"pointer"},attrs:{slot:"reference"},slot:"reference"})]):e._e(),e._v(" "),e.gicFlag?e._e():a("span",{staticClass:"handle-area"},[a("el-button",{staticClass:"no-bdr-btn",on:{click:e.addSon}},[e._v(" 添加子分组 ")]),a("span",{staticClass:"hurdle"}),a("el-button",{staticClass:"no-bdr-btn",on:{click:function(t){e.goToEdit(e.groupInfo.level)}}},[e._v(" 编辑 ")])],1)],1),e._v(" "),a("div",{staticClass:"tab-div"},[a("el-radio-group",{on:{change:e.switchView},model:{value:e.tableView,callback:function(t){e.tableView=t},expression:"tableView"}},[a("el-radio-button",{attrs:{label:1}},[e._v("门店视图")]),e._v(" "),a("el-radio-button",{attrs:{label:2}},[e._v("店员视图")])],1),e._v(" "),a("a",{staticClass:"a-href fr",on:{click:function(t){e.changeRouter("/recycle?brandId="+e.groupInfo.brandId+"&dept="+e.groupInfo.departmentId+"&showChild=1&type="+e.storeType)}}},[a("el-button",{attrs:{type:"primary",icon:"el-icon-delete"}},[e._v("回收站("+e._s(e.recycleCount)+")")])],1)],1),e._v(" "),a("div",[1==e.tableView?[a("store-view",{attrs:{gicFlag:e.gicFlag,tableData:e.storeList,departmentId:e.groupInfo.departmentId,brandId:e.groupInfo.brandId,firstLevelId:e.firstLevelId},on:{setChildMemberShow:e.setChildMemberShow,getStoreList:e.getStoreList}})]:[a("clerk-view",{attrs:{gicFlag:e.gicFlag,tableData:e.storeList,clerkStoreId:e.groupInfo.departmentId,firstLevelId:e.firstLevelId},on:{setChildMemberShow:e.setChildMemberShow,selectByStatus:e.selectByStatus,selectByType:e.selectByType,selectActivate:e.selectActivate,refreshClerkData:e.refreshClerkData}})]],2),e._v(" "),e.storeList.length?a("div",{staticClass:"pagination"},[a("el-pagination",{attrs:{background:"","page-sizes":[20,40,60,80],"page-size":e.pageSize,"current-page":e.pageNumber,layout:"total, sizes, prev, pager, next",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1):e._e()]),e._v(" "),a("add-brand",{ref:"add_brand",on:{addSuccess:e.addSuccess}})],1)])]),e._v(" "),a("vue-gic-footer")],1)},staticRenderFns:[]};var x=a("VU/8")(L,N,!1,function(e){a("kcn3")},null,null);t.default=x.exports},ATfr:function(e,t,a){"use strict";var r=a("0xDb"),s={name:"searchMenu",components:{},props:{treeData:{type:Array,required:!0},searchResult:{type:Object,required:!0},storeFrame:{type:Boolean,default:!1}},data:function(){return{searchKey:"",searchResultShow:!1,myProps:{children:"childrens",label:"label",disabled:"disabled"},menuData:[],defaultOpen:[],defaultId:""}},methods:{clearFn:function(){this.searchResultShow=!1,this.$nextTick(function(){document.querySelector(".el-tree-node").classList.add("is-current")}),this.$emit("clearSearch")},searchFn:function(){if(""==this.searchKey)return this.searchResultShow=!1,!1;this.searchResultShow=!0,this.$emit("handleSearchKey",this.searchKey)},handleNodeClick:function(e,t){e.id!=this.defaultId&&document.querySelector(".el-tree-node")&&document.querySelector(".el-tree-node").classList.remove("is-current"),this.defaultId=e.groupId,this.$emit("handleTreeSelection",e,t,"node")},selectEmployee:function(e){this.defaultId=e.employeeClerkId,this.$emit("handleEmployeeSelection",e,"employee")},handleStoreClick:function(e){this.$emit("handleStoreSelection",e,"store")}},filter:{},computed:{employeeList:function(){return this.searchResult.searchList?this.searchResult.searchList:[]},departmentList:function(){return this.searchResult.departmentList?this.searchResult.departmentList:[]},brandList:function(){return this.searchResult.brandList?this.searchResult.brandList:[]}},watch:{treeData:function(e,t){var a=this,s=Object(r.c)(e);a.defaultOpen=s.defaultOpen,a.menuData=s.menuArr,a.menuData.length&&a.$nextTick(function(){a.defaultId=a.menuData.length?a.menuData[0].id:"",document.querySelector(".el-tree-node").classList.add("is-current")})}}},o={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"searh-menu-container"},[a("div",{staticClass:"p-0-15"},[a("el-input",{attrs:{"prefix-icon":"el-icon-search",placeholder:e.storeFrame?"姓名/手机号/部门/code":"姓名/手机号/部门",clearable:""},on:{clear:e.clearFn},nativeOn:{keyup:function(t){return"button"in t||!e._k(t.keyCode,"enter",13,t.key,"Enter")?e.searchFn(t):null}},model:{value:e.searchKey,callback:function(t){e.searchKey=t},expression:"searchKey"}}),e._v(" "),e._t("buttonBox"),e._v(" "),e.searchResultShow?e._e():a("el-tree",{staticClass:"search-menu",attrs:{"node-key":"id","default-expanded-keys":e.defaultOpen,data:e.menuData,"highlight-current":!0,"expand-on-click-node":!1,props:e.myProps},on:{"node-click":e.handleNodeClick},scopedSlots:e._u([{key:"default",fn:function(t){var r=t.node;return t.data,a("span",{staticClass:"custom-tree-node"},[a("i",{staticClass:"iconfont",class:1==r.level?"icon-2zuzhijiagou":"icon-tongshi-zuzhijiagou"}),e._v(" "),a("span",[e._v(e._s(r.label))])])}}])})],2),e._v(" "),e.searchResultShow?a("div",{staticClass:"search-result-container m-t-15"},[e.storeFrame?[e._l(e.brandList,function(t,r){return[t.departmentList.length>0||t.storeList.length>0||t.searchList.length>0?a("div",{key:t.topDepartment.brandId+"_"+r},[a("div",[a("p",{staticClass:"brand-title"},[e._v(e._s(t.topDepartment.name))]),e._v(" "),t.departmentList.length>0?a("ul",{staticClass:"search-result-ul"},[a("p",{staticClass:"title store-frame-title"},[e._v("分组列表")]),e._v(" "),e._l(t.departmentList,function(t,r){return a("li",{key:r+"_"+t.groupId,staticClass:"group-item items",on:{click:function(a){e.handleNodeClick(t)}}},[a("i",{staticClass:"iconfont icon-tongshi-zuzhijiagou"}),e._v("\n "+e._s(t.name)+"\n ")])})],2):e._e(),e._v(" "),t.storeList.length>0?a("ul",{staticClass:"search-result-ul"},[a("p",{staticClass:"title store-frame-title"},[e._v("门店列表")]),e._v(" "),e._l(t.storeList,function(t,r){return a("li",{key:r+"_"+t.storeGroupId,staticClass:"group-item items",on:{click:function(a){e.handleStoreClick(t)}}},[a("i",{staticClass:"iconfont icon-tongshi-zuzhijiagou"}),e._v("\n "+e._s(t.storeName)+"\n ")])})],2):e._e(),e._v(" "),t.searchList.length>0?a("ul",{staticClass:"search-result-ul"},[a("p",{staticClass:"title store-frame-title"},[e._v("人员列表")]),e._v(" "),e._l(t.searchList,function(t,r){return a("li",{key:r+"_"+t.employeeClerkId,staticClass:"person-item items",on:{click:function(a){e.selectEmployee(t)}}},[a("i",{staticClass:"iconfont icon-chengyuan"}),e._v("\n "+e._s(t.name)+"\n "),a("span",{staticClass:"from-group"},[e._v(e._s(t.departmentName))])])})],2):e._e()])]):e._e()]}),e._v(" "),e.brandList.length<1?a("p",{staticClass:"no-data-tip"},[e._v("暂无数据")]):e._e()]:[e.departmentList.length>0?a("ul",{staticClass:"search-result-ul"},[a("p",{staticClass:"title"},[e._v("部门列表")]),e._v(" "),e._l(e.departmentList,function(t,r){return a("li",{key:r+"_"+t.groupId,class:["group-item items",e.defaultId==t.groupId?"active-item":""],on:{click:function(a){e.handleNodeClick(t)}}},[a("i",{staticClass:"iconfont icon-tongshi-zuzhijiagou"}),e._v("\n "+e._s(t.name)+"\n ")])})],2):e._e(),e._v(" "),e.employeeList.length>0?a("ul",{staticClass:"search-result-ul"},[a("p",{staticClass:"title"},[e._v("人员列表")]),e._v(" "),e._l(e.employeeList,function(t,r){return a("li",{key:r+"_"+t.employeeClerkId,class:["person-item items",e.defaultId==t.employeeClerkId?"active-item":""],on:{click:function(a){e.selectEmployee(t)}}},[a("i",{staticClass:"iconfont icon-chengyuan"}),e._v("\n "+e._s(t.name)+"\n "),a("span",{staticClass:"from-group"},[e._v(e._s(t.departmentName))])])})],2):e._e(),e._v(" "),e.departmentList.length<1&&e.employeeList.length<1?a("p",{staticClass:"no-data-tip"},[e._v("暂无数据")]):e._e()]],2):e._e()])},staticRenderFns:[]};var n=a("VU/8")(s,o,!1,function(e){a("4kf4")},null,null);t.a=n.exports},BQJE:function(e,t){},MS7U:function(e,t){},bY6o:function(e,t){},kcn3:function(e,t){},nmDM:function(e,t){},oncj:function(e,t,a){"use strict";var r=a("l46T"),s=a("Ie7z"),o=a("P9l9"),n=a("XDyb"),i=a("T+u5"),l=a.n(i),c={name:"clerk-info-form",props:{isAddnew:{type:Boolean,default:!1},perId:{type:[String,Number],default:""},firstLevelId:{type:[String,Number],default:""},storeType:{type:[String,Number],default:""},gicFlag:{type:Boolean,default:!1}},components:{vueSelectStore:s.a,countryMobile:n.a,limitInput:r.a},data:function(){var e=this;return{rules:{name:[{required:!0,message:"请输入店员姓名",trigger:"blur"}],phoneNumber:[{required:!0,validator:function(t,a,r){if(!a)return r(new Error("请输入手机号"));var s=new l.a("+"+e.clerkInfo.nationcode+a);s.isValid()&&s.isMobile()?r():r(new Error("手机号格式不正确"))},trigger:"blur"}],storeName:[{required:!0,message:"请选择门店",trigger:"change"}],code:[{required:!0,validator:function(t,a,r){if(""==a)return r(new Error("请输入code"));/^[A-Za-z0-9_\u4e00-\u9fa5]+$/.test(a)?r():e.clerkInfo.code=a.replace(/[^A-Za-z0-9_\u4e00-\u9fa5]+/g,"")},trigger:"blur"}],positionName:[{required:!0,message:"请输入店员职位",trigger:"blur"}]},clerkInfo:{storeName:"",storeId:"",managerMode:!1,positionName:"职员",nationcode:"86"},treeSet:{isSelectPerson:!1,dialogVisible:!1,isSingle:!0,groupId:"",storeType:"",openNextBool:!0},defaultList:[]}},methods:{toInputCode:function(e){var t=this.clerkInfo.code;""!==t&&(this.clerkInfo.code=t.replace(/[^A-Za-z0-9]+/g,""))},saveFn:function(e){var t=!0;this.$refs.clerk_info.validate(function(e){e||(t=!1)}),t&&this.addEmployee(this.clerkInfo,e)},callSelector:function(){this.treeSet.dialogVisible=!0},handleSelectedList:function(e){this.clerkInfo.storeName=e&&e.length?e[0].label:"",this.clerkInfo.storeId=e&&e.length?e[0].id:"",this.$forceUpdate()},addEmployee:function(e,t){var a=this,r={name:e.name,isClerk:1,phoneNumber:e.phoneNumber,positionName:e.positionName,storeId:e.storeId,managerMode:1*e.managerMode,code:e.code,employeeClerkId:e.employeeClerkId||"",nationcode:e.nationcode},s=a.isAddnew?"/haoban-manage-web/emp/add":"/haoban-manage-web/emp/update";Object(o.a)(s,r).then(function(e){1==e.data.errorCode?(a.$message.success({message:"操作成功"}),1==t?(a.clerkInfo={name:"",isClerk:1,phoneNumber:"",positionName:"职员",storeId:"",managerMode:!1,code:"",nationcode:"86"},a.defaultList=[],a.$refs.clerk_info.resetFields()):a.$router.push("/storeFrame")):a.$message.error({message:e.data.message})}).catch(function(e){a.$message.error({message:e.message})})},cancel:function(){var e=this;this.$confirm(" 是否确认取消,取消后当前页面信息将丢失 ?","提示",{type:"warning"}).then(function(){e.$router.go(-1)}).catch(function(e){})},getClerkInfo:function(){var e=this,t={id:e.$route.query.clerkId?e.$route.query.clerkId:e.perId};Object(o.a)("/haoban-manage-web/emp/findOne",t).then(function(t){1==t.data.errorCode?(e.clerkInfo=t.data.result,e.defaultList=[{id:t.data.result.storeId,label:t.data.result.storeName}]):e.$message.error({message:t.data.message})}).catch(function(t){e.$message.error({message:t})})}},beforeMount:function(){this.treeSet.storeType=this.storeType,this.treeSet.groupId=this.firstLevelId,this.isAddnew||this.getClerkInfo()},watch:{perId:function(e,t){this.getClerkInfo(e)}}},u={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"form-container bdr-box"},[a("el-form",{ref:"clerk_info",staticClass:"add-clerk-form",attrs:{model:e.clerkInfo,rules:e.rules,"label-width":"80px"}},[a("el-form-item",{attrs:{label:"姓名",prop:"name"}},[a("limitInput",{attrs:{inputWidth:380,inputValue:e.clerkInfo.name,holder:"请输入姓名",maxLength:10},on:{"update:inputValue":function(t){e.$set(e.clerkInfo,"name",t)}}})],1),e._v(" "),a("el-form-item",{attrs:{label:"手机号",prop:"phoneNumber"}},[a("countryMobile",{attrs:{inputWidth:380,nationCode:e.clerkInfo.nationcode,holder:"请输入手机号",disflag:!e.isAddnew},on:{"update:nationCode":function(t){e.$set(e.clerkInfo,"nationcode",t)}},model:{value:e.clerkInfo.phoneNumber,callback:function(t){e.$set(e.clerkInfo,"phoneNumber",t)},expression:"clerkInfo.phoneNumber"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"门店",prop:"storeName"}},[a("el-input",{staticClass:"clerk-info-input",attrs:{disabled:!e.isAddnew},on:{focus:e.callSelector},model:{value:e.clerkInfo.storeName,callback:function(t){e.$set(e.clerkInfo,"storeName",t)},expression:"clerkInfo.storeName"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"code",prop:"code"}},[a("limitInput",{attrs:{inputWidth:380,disflag:e.gicFlag&&!e.isAddnew,inputValue:e.clerkInfo.code,holder:"请输入code",maxLength:20},on:{"update:inputValue":function(t){e.$set(e.clerkInfo,"code",t)}}})],1),e._v(" "),a("el-form-item",{attrs:{label:"职位",prop:"positionName"}},[a("limitInput",{attrs:{inputWidth:380,inputValue:e.clerkInfo.positionName,holder:"请输入职位",maxLength:20},on:{"update:inputValue":function(t){e.$set(e.clerkInfo,"positionName",t)}}})],1)],1),e._v(" "),a("div",{staticClass:"btn-box"},[a("el-button",{attrs:{type:"primary"},on:{click:e.saveFn}},[e._v("保 存")]),e._v(" "),!e.gicFlag&&e.isAddnew?a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.saveFn(1)}}},[e._v("保存并继续添加")]):e._e(),e._v(" "),e.gicFlag?e._e():a("el-button",{on:{click:e.cancel}},[e._v("取 消")])],1),e._v(" "),a("vue-select-store",{ref:"storeSelector",attrs:{selectType:"store",defaultList:e.defaultList,treeSet:e.treeSet},on:{handleSelectedList:e.handleSelectedList}})],1)},staticRenderFns:[]};var d=a("VU/8")(c,u,!1,function(e){a("bY6o")},null,null);t.a=d.exports},qsKc:function(e,t,a){"use strict";var r=a("Xxa5"),s=a.n(r),o=a("//Fk"),n=a.n(o),i=a("exGp"),l=a.n(i),c=a("mvHQ"),u=a.n(c),d=a("P9l9"),p=a("Ie7z"),m=a("XDyb"),f=a("T+u5"),h=a.n(f),g=a("l46T"),v=a("Kkt8"),b={name:"store-detail",components:{vueSelectStore:p.a,countryMobile:m.a,limitInput:g.a,limitTextarea:v.a},props:{storeInfo:{type:Object,default:function(){return{}}},gicFlag:{type:Boolean,default:!0}},data:function(){var e=this;return{areaChainName:"",location:"",areaOptions:{},imgs:[],uploadUrl:"/haoban-manage-web/upload-img",defaultList:[],currentBrand:this.storeInfo.storeGroupId,treeSet:{isSelectPerson:!1,dialogVisible:!1,isSingle:!0,groupId:this.storeInfo.brandId,openNextBool:!0},selectType:"group",disableFlag:!1,storeInfoData:JSON.parse(u()(this.storeInfo)),rules:{storeName:[{required:!0,message:"请输入门店名称",trigger:"blur"}],departmentName:[{required:!0,message:"请选择所属分组",trigger:"blur"}],groupChainName:[{required:!0,message:"请选择部门",trigger:"change"}],imageUrls:[{type:"array",required:!0,message:"请选择门店图片",trigger:"change"}],areaId:[{required:!0,message:"请选择门店地址",trigger:"blur"}],storeType:[{required:!0,message:"请选择门店类型",trigger:"blur"}],openTime:[{required:!0,validator:function(t,a,r){return a&&e.storeInfo.closeTime?r():r(new Error("请选择营业时间"))},trigger:"blur"}],location:[{required:!0,message:"请选择经纬度",trigger:"blur"}],phoneNumber:[{required:!0,validator:function(e,t,a){return t?a():a(new Error("请输入联系电话"))},trigger:"blur"}],storeCode:[{required:!0,validator:function(t,a,r){return a?/^[A-Za-z0-9_\u4e00-\u9fa5]+$/.test(a)?r():void(e.storeInfoData.storeCode=a.replace(/[^A-Za-z0-9_\u4e00-\u9fa5]+/g,"")):r(new Error("请输入门店代码"))},trigger:"blur"}],managerName:[{required:!0,message:"请输入店长姓名",trigger:"blur"}],managerPhone:[{required:!0,validator:function(t,a,r){if(!a)return r(new Error("请输入手机号码"));var s=new h.a("+"+e.storeInfoData.managerNationcode+a);s.isValid()&&s.isMobile()?r():r(new Error("手机号格式不正确"))},trigger:"blur"}],managerCode:[{required:!0,validator:function(t,a,r){return a?/^[A-Za-z0-9_\u4e00-\u9fa5]+$/.test(a)?r():void(e.storeInfoData.managerCode=a.replace(/[^A-Za-z0-9_\u4e00-\u9fa5]+/g,"")):r(new Error("请输入店长代码"))},trigger:"blur"}],specialService:[{max:20,message:"长度在 20 个字符以内",trigger:"blur"}],personCost:[{validator:function(e,t,a){if(t)return/^\d+(\.\d+)?$/.test(1*t)?a():a(new Error("人均消费只能为非负整数或者小数"));return a()},trigger:"blur"}]}}},methods:{inputBlur:function(e){this.storeInfoData.storeArea||(this.storeInfoData.storeArea=""),this.storeInfoData.storeArea=Number(this.storeInfoData.storeArea.replace(/[^\d.]/g,""))?this.storeInfoData.storeArea.replace(/[^\d+(.\d+)]/g,""):"",this.storeInfoData.storeArea=Number(this.storeInfoData.storeArea).toFixed(2),this.storeInfoData.storeArea>=999999&&(this.storeInfoData.storeArea=Number(999999).toFixed(2))},callSelector:function(){this.treeSet={isSelectPerson:!1,dialogVisible:!0,isSingle:!0,groupId:this.storeInfoData.brandId,openNextBool:!0}},handleSelectedList:function(e){this.storeInfoData.groupChainName=e.length?e[0].chainName:"",this.storeInfoData.departmentName=e.length?e[0].label:"",this.storeInfoData.storeGroupId=e.length?e[0].id:""},selected:function(e){this.areaChainName=e.provinceName+"/"+e.cityName+"/"+e.countryName},uploadOnSuccess:function(e,t){e.file.url=e.res.result[0].qcloudImageUrl,t.push(e.file)},sortImg:function(e){this.storeInfoData.imageUrls=e},deleteImage:function(e){this.storeInfoData.imageUrls.splice(e,1)},clickToSave:function(){var e=this;return l()(s.a.mark(function t(){var a,r,o,i;return s.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:a=e,r=new n.a(function(e,t){a.$refs.storeInfoData.validate(function(t){t&&e()})}),o=new n.a(function(e,t){a.$refs.storeManagerForm.validate(function(t){t&&e()})}),i=new n.a(function(e,t){a.$refs.storeOperateForm.validate(function(t){t&&e()})}),n.a.all([r,o,i]).then(function(){a.save()});case 5:case"end":return t.stop()}},t,e)}))()},save:function(){var e=this,t=e.location.split(",");e.storeInfoData.longitude=t[1],e.storeInfoData.latitude=2!==t.length?"":t[0],e.storeInfoData.managerPhone=e.storeInfoData.managerPhone,e.storeInfoData.areaChainName=e.areaOptions.provinceName+"/"+e.areaOptions.cityName+"/"+e.areaOptions.countryName;var a=JSON.parse(u()(e.storeInfoData)),r=[];e.storeInfoData.imageUrls.forEach(function(e){r.push(e.url)}),a.imageUrls=r.join(","),Object(d.e)("/haoban-manage-web/store/update",a).then(function(t){1==t.data.errorCode?e.$message.success({message:"操作成功!"}):e.$message.error({message:t.data.message})}).catch(function(t){e.$message.error({message:t.message})})},formatStoreInfo:function(e){this.defaultList=[{id:e.storeGroupId,label:e.departmentName}],e.managerNationcode||(e.managerNationcode="86");var t=(e.areaChainName||"").split("/");this.areaOptions={provinceName:t[0],provinceId:e.provinceId,cityName:t[1],cityId:e.cityId,countryName:t[2],countyId:e.countyId},this.imgs=e.imageUrl?e.imageUrl.split(","):[];var a=[];this.imgs.forEach(function(e){a.push({url:e})}),e.imageUrls=a,e.location=e.longitude?e.latitude+","+e.longitude:"",this.location=e.longitude?e.latitude+","+e.longitude:"",this.disableFlag=!!e.managerPhone}},watch:{storeInfo:function(e){this.treeSet.groupId=e.brandId,this.storeInfoData=e,this.formatStoreInfo(this.storeInfoData)}},beforeMount:function(){this.treeSet.groupId=this.storeInfo.brandId},mounted:function(){this.storeInfoData=JSON.parse(u()(this.storeInfo)),this.formatStoreInfo(this.storeInfoData)}},I={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"store-info"},[a("div",{staticClass:"info-cell"},[a("p",{staticClass:"title"},[e._v("门店信息")]),e._v(" "),a("el-form",{ref:"storeInfoData",staticClass:"store-info-form info-form",attrs:{"label-width":"90px",rules:e.rules,model:e.storeInfoData}},[a("el-form-item",{attrs:{label:"门店名称",prop:"storeName"}},[a("limitInput",{attrs:{inputWidth:500,inputValue:e.storeInfoData.storeName,holder:"请输入门店名称",maxLength:20},on:{"update:inputValue":function(t){e.$set(e.storeInfoData,"storeName",t)}}})],1),e._v(" "),a("el-form-item",{attrs:{label:"所属分组",prop:"departmentName"}},[a("el-input",{staticClass:"w-500",attrs:{disabled:e.gicFlag},on:{focus:e.callSelector},model:{value:e.storeInfoData.groupChainName,callback:function(t){e.$set(e.storeInfoData,"groupChainName",t)},expression:"storeInfoData.groupChainName"}},[a("i",{staticClass:"el-input__icon el-icon-arrow-down",attrs:{slot:"suffix"},slot:"suffix"})])],1),e._v(" "),a("el-form-item",{attrs:{label:"门店图片(640*340)",prop:"imageUrls"}},[a("div",{staticClass:"member-upload-image"},[a("vue-office-upload-image",{attrs:{projectName:"haoban-manage-web",wxFlag:"0",actionUrl:e.uploadUrl,imageList:e.storeInfoData.imageUrls,limitW:640,limitH:340,maxImageLength:10},on:{uploadOnSuccess:e.uploadOnSuccess,sortImg:e.sortImg,deleteImage:e.deleteImage}})],1),e._v(" "),a("div",{staticClass:"tip font-12 color-909399 m-t-8 line-h-1"},[e._v("门店图片(640*340),支持.jpg,.jepg,.png类型文件,最多添加10张图片")])]),e._v(" "),a("el-form-item",{attrs:{label:"联系电话",prop:"phoneNumber"}},[a("el-input",{staticClass:"w-500",model:{value:e.storeInfoData.phoneNumber,callback:function(t){e.$set(e.storeInfoData,"phoneNumber",t)},expression:"storeInfoData.phoneNumber"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"营业时间",prop:"openTime"}},[a("el-time-select",{attrs:{placeholder:"起始时间","picker-options":{start:"00:00",step:"00:05",end:"24:00"}},model:{value:e.storeInfoData.openTime,callback:function(t){e.$set(e.storeInfoData,"openTime",t)},expression:"storeInfoData.openTime"}}),e._v("\n ~\n "),a("el-time-select",{attrs:{placeholder:"结束时间","picker-options":{start:"00:00",step:"00:05",end:"24:00",minTime:e.storeInfoData.openTime}},model:{value:e.storeInfoData.closeTime,callback:function(t){e.$set(e.storeInfoData,"closeTime",t)},expression:"storeInfoData.closeTime"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"门店类型",prop:"storeType"}},[a("el-radio-group",{model:{value:e.storeInfoData.storeType,callback:function(t){e.$set(e.storeInfoData,"storeType",t)},expression:"storeInfoData.storeType"}},[a("el-radio",{attrs:{label:0}},[e._v("自营")]),e._v(" "),a("el-radio",{attrs:{label:1}},[e._v("联营")]),e._v(" "),a("el-radio",{attrs:{label:2}},[e._v("代理")]),e._v(" "),a("el-radio",{attrs:{label:3}},[e._v("代销")]),e._v(" "),a("el-radio",{attrs:{label:4}},[e._v("托管")])],1)],1),e._v(" "),a("el-form-item",{attrs:{label:"门店地址",prop:"areaId"}},[a("vue-office-area",{attrs:{areaOptions:e.areaOptions,projectName:"haoban-web",postUrl:"/api-admin/dict-district-list"},on:{selected:e.selected}}),e._v(" "),a("limitInput",{attrs:{inputWidth:500,inputValue:e.storeInfoData.storeCode,holder:"请输入门店地址",maxLength:50},on:{"update:inputValue":function(t){e.$set(e.storeInfoData,"storeCode",t)}}})],1),e._v(" "),a("el-form-item",{attrs:{label:"GPS坐标",prop:"location"}},[a("el-input",{staticClass:"w-500 m-r-10",model:{value:e.storeInfoData.location,callback:function(t){e.$set(e.storeInfoData,"location",t)},expression:"storeInfoData.location"}}),e._v(" "),a("a",{staticClass:"a-href",attrs:{href:"http://m.gpsspg.com/maps.htm",target:"_blank"}},[e._v("经纬度测试工具")])],1),e._v(" "),a("el-form-item",[a("template",{slot:"label"},[e._v("\n 门店代码\n ")]),e._v(" "),a("limitInput",{attrs:{inputWidth:500,inputValue:e.storeInfoData.storeCode,disflag:e.gicFlag,holder:"请输入门店代码",maxLength:20},on:{"update:inputValue":function(t){e.$set(e.storeInfoData,"storeCode",t)}}})],2),e._v(" "),a("el-form-item",{attrs:{label:"门店面积"}},[a("el-input",{staticClass:"w-500",on:{blur:function(t){return e.inputBlur(t)}},model:{value:e.storeInfoData.storeArea,callback:function(t){e.$set(e.storeInfoData,"storeArea",t)},expression:"storeInfoData.storeArea"}}),a("span",{staticClass:"font-14 p-l-10"},[e._v("平方米")])],1)],1)],1),e._v(" "),a("div",{staticClass:"info-cell"},[a("p",{staticClass:"title"},[e._v("店长信息")]),e._v(" "),a("el-form",{ref:"storeManagerForm",staticClass:"store-manager-info-form info-form",attrs:{"label-width":"90px",rules:e.rules,model:e.storeInfoData}},[a("el-form-item",{attrs:{label:"店长姓名",prop:"managerName"}},[a("limitInput",{attrs:{inputWidth:500,inputValue:e.storeInfoData.managerName,disflag:e.gicFlag,holder:"请输入店长姓名",maxLength:10},on:{"update:inputValue":function(t){e.$set(e.storeInfoData,"managerName",t)}}})],1),e._v(" "),a("el-form-item",{attrs:{label:"手机号码",prop:"managerPhone"}},[a("countryMobile",{attrs:{inputWidth:500,nationCode:e.storeInfoData.managerNationcode,holder:"请输入手机号",disflag:e.disableFlag||e.gicFlag},on:{"update:nationCode":function(t){e.$set(e.storeInfoData,"managerNationcode",t)}},model:{value:e.storeInfoData.managerPhone,callback:function(t){e.$set(e.storeInfoData,"managerPhone",t)},expression:"storeInfoData.managerPhone"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"店长性别"}},[a("el-radio-group",{attrs:{disabled:e.gicFlag},model:{value:e.storeInfoData.managerSex,callback:function(t){e.$set(e.storeInfoData,"managerSex",t)},expression:"storeInfoData.managerSex"}},[a("el-radio",{attrs:{label:1}},[e._v("男")]),e._v(" "),a("el-radio",{attrs:{label:2}},[e._v("女")])],1)],1),e._v(" "),a("el-form-item",{attrs:{label:"店长代码",prop:"managerCode"}},[a("limitInput",{attrs:{inputWidth:500,inputValue:e.storeInfoData.managerCode,disflag:e.gicFlag,holder:"请输入店长代码",maxLength:20},on:{"update:inputValue":function(t){e.$set(e.storeInfoData,"managerCode",t)}}})],1)],1)],1),e._v(" "),a("div",{staticClass:"info-cell"},[a("p",{staticClass:"title"},[e._v("经营信息")]),e._v(" "),a("el-form",{ref:"storeOperateForm",staticClass:"operate-info-form info-form",attrs:{"label-width":"90px",rules:e.rules,model:e.storeInfoData}},[a("el-form-item",{attrs:{label:"特色服务"}},[a("limit-textarea",{attrs:{inputWidth:500,inputValue:e.storeInfoData.specialService,holder:"请输入特色服务",getByType:"word",maxLength:100},on:{"update:inputValue":function(t){e.$set(e.storeInfoData,"specialService",t)}}})],1),e._v(" "),a("el-form-item",{attrs:{label:"人均消费"}},[a("limitInput",{attrs:{inputWidth:500,inputValue:e.storeInfoData.personCost,holder:"请输入人均消费",maxLength:10},on:{"update:inputValue":function(t){e.$set(e.storeInfoData,"personCost",t)}}})],1),e._v(" "),a("el-form-item",{attrs:{label:"推荐商品"}},[a("limit-textarea",{attrs:{inputWidth:500,inputValue:e.storeInfoData.recommendGoods,holder:"请输入推荐商品",getByType:"word",maxLength:100},on:{"update:inputValue":function(t){e.$set(e.storeInfoData,"recommendGoods",t)}}})],1),e._v(" "),a("el-form-item",{attrs:{label:"品牌介绍"}},[a("limit-textarea",{attrs:{inputWidth:500,inputValue:e.storeInfoData.brandDes,holder:"请输入品牌介绍",getByType:"word",maxLength:200},on:{"update:inputValue":function(t){e.$set(e.storeInfoData,"brandDes",t)}}})],1)],1)],1),e._v(" "),a("div",{staticClass:"handle-area"},[a("el-button",{attrs:{type:"primary"},on:{click:e.clickToSave}},[e._v("保 存")])],1),e._v(" "),a("vue-select-store",{ref:"storeSelector",attrs:{defaultList:e.defaultList,currentBrand:e.currentBrand,treeSet:e.treeSet,selectType:e.selectType},on:{handleSelectedList:e.handleSelectedList}})],1)},staticRenderFns:[]};var _=a("VU/8")(b,I,!1,function(e){a("1ThA")},null,null);t.a=_.exports}});
\ No newline at end of file
!function(e){var c=window.webpackJsonp;window.webpackJsonp=function(a,b,n){for(var r,t,o,i=0,u=[];i<a.length;i++)t=a[i],f[t]&&u.push(f[t][0]),f[t]=0;for(r in b)Object.prototype.hasOwnProperty.call(b,r)&&(e[r]=b[r]);for(c&&c(a,b,n);u.length;)u.shift()();if(n)for(i=0;i<n.length;i++)o=d(d.s=n[i]);return o};var a={},f={82:0};function d(c){if(a[c])return a[c].exports;var f=a[c]={i:c,l:!1,exports:{}};return e[c].call(f.exports,f,f.exports,d),f.l=!0,f.exports}d.e=function(e){var c=f[e];if(0===c)return new Promise(function(e){e()});if(c)return c[2];var a=new Promise(function(a,d){c=f[e]=[a,d]});c[2]=a;var b=document.getElementsByTagName("head")[0],n=document.createElement("script");n.type="text/javascript",n.charset="utf-8",n.async=!0,n.timeout=12e4,d.nc&&n.setAttribute("nonce",d.nc),n.src=d.p+"static/js/"+e+"."+{0:"5bc4b751dc85b64edd21",1:"0ebe3ead93207dc78a78",2:"d3c62c00c91d9891f916",3:"a43577b9e52a5719a124",4:"18929084ede2c2225e24",5:"baa22d481d8bbd83425c",6:"14f54c4620b58fc4adca",7:"8f462a353a2ce9c0c116",8:"4210ed7b336c1bcfc531",9:"860dbe8cf83334f9e3c0",10:"a2aa031ae677b8acbf17",11:"e34a64dea1b7a059dcfd",12:"bdcf26a1bcccf7e0239b",13:"6c87f5cefdf77374932d",14:"8a2d85b6cc3b95b868d9",15:"92854409541cf66d1361",16:"c4ebe5ae46670e5c0754",17:"43a28ed857836d70649f",18:"ca2eb072a4ce38f9e487",19:"7971a9a5d92fefa82083",20:"75e0997b94e5d6294ec8",21:"58c0c6a374fc0ec6158e",22:"047f5bba500bca0d62fe",23:"9efbbc6dd315a676ce09",24:"4637a4566383d6e864cf",25:"a579fe9e82eab9ece806",26:"8f0bb144b5e757399727",27:"b5f0e5bd5920771b58af",28:"140ad99228544036c969",29:"36261093da9264fa5f33",30:"0d4999d53befa8fd9eaa",31:"8baa6bca929d1c9a38f6",32:"836f4d0e323c721473e9",33:"7b62b2ff369669fe322c",34:"f9d53c31059aaff9b360",35:"c75699cc6fe47597f200",36:"031f3a5aae4656aba067",37:"8016d3ac07df8acaf73d",38:"23b83bd7920693bc35c6",39:"d17e2c61f3cc8d6972fa",40:"56797b378549955e7f19",41:"78d64ae1581e8ea232cc",42:"61ae052e4f4fc3284000",43:"9d05f4d2f06b9c6bba0e",44:"96d0b6e88fc87f60bac7",45:"0fe24e1d16072c526787",46:"d3a9c6eba924ac8207b3",47:"c8b46666a5089512baa4",48:"854c6c054adb5cba1f06",49:"33530ea069fc872b0d5f",50:"331006123edd2049b7d9",51:"244dc6f576a64b7c174b",52:"43d3ca00e0c9087e4956",53:"9dce74b07cc47cdf56db",54:"1503b643475934e2b5e1",55:"c423570fcbf037d349d9",56:"94bbfa32e0086c5f0bbc",57:"a5308ec502fd9436e4d8",58:"78fea9e14de750887bf1",59:"e232c753f68c56d9e59c",60:"2a9bebb0261ef9a7a939",61:"8833a156f1e38036fb28",62:"44d1241f8d57451d0c10",63:"25cb3ac91e9616a47dde",64:"ebc341a9017c4b2c1112",65:"afcb60484e7a9ec39f28",66:"0c2656f4decfecb59972",67:"d7e3675c4b4931db738d",68:"13404d9aa7a460952885",69:"ff1445c96fd757245229",70:"3720d31e136a7f99a873",71:"458af30d30795059cdbe",72:"cba3aa56f0a846445e33",73:"dc84bab89c2090b47673",74:"a9dae9c87c825ba65aa1",75:"29e0d3d537fd9fa5eabc",76:"e24f155e1168c927ee44",77:"9f7ea81c191a5e1bbaa2",78:"51dbc832d510b2a1c0a3",81:"be325ddaae712f760e1a"}[e]+".js";var r=setTimeout(t,12e4);function t(){n.onerror=n.onload=null,clearTimeout(r);var c=f[e];0!==c&&(c&&c[1](new Error("Loading chunk "+e+" failed.")),f[e]=void 0)}return n.onerror=n.onload=t,b.appendChild(n),a},d.m=e,d.c=a,d.d=function(e,c,a){d.o(e,c)||Object.defineProperty(e,c,{configurable:!1,enumerable:!0,get:a})},d.n=function(e){var c=e&&e.__esModule?function(){return e.default}:function(){return e};return d.d(c,"a",c),c},d.o=function(e,c){return Object.prototype.hasOwnProperty.call(e,c)},d.p="./",d.oe=function(e){throw console.error(e),e}}([]); !function(e){var c=window.webpackJsonp;window.webpackJsonp=function(a,b,n){for(var r,t,o,i=0,u=[];i<a.length;i++)t=a[i],f[t]&&u.push(f[t][0]),f[t]=0;for(r in b)Object.prototype.hasOwnProperty.call(b,r)&&(e[r]=b[r]);for(c&&c(a,b,n);u.length;)u.shift()();if(n)for(i=0;i<n.length;i++)o=d(d.s=n[i]);return o};var a={},f={82:0};function d(c){if(a[c])return a[c].exports;var f=a[c]={i:c,l:!1,exports:{}};return e[c].call(f.exports,f,f.exports,d),f.l=!0,f.exports}d.e=function(e){var c=f[e];if(0===c)return new Promise(function(e){e()});if(c)return c[2];var a=new Promise(function(a,d){c=f[e]=[a,d]});c[2]=a;var b=document.getElementsByTagName("head")[0],n=document.createElement("script");n.type="text/javascript",n.charset="utf-8",n.async=!0,n.timeout=12e4,d.nc&&n.setAttribute("nonce",d.nc),n.src=d.p+"static/js/"+e+"."+{0:"5bc4b751dc85b64edd21",1:"0ebe3ead93207dc78a78",2:"d3c62c00c91d9891f916",3:"a43577b9e52a5719a124",4:"18929084ede2c2225e24",5:"baa22d481d8bbd83425c",6:"34351cc45fbe6ddb1d37",7:"8f462a353a2ce9c0c116",8:"4210ed7b336c1bcfc531",9:"860dbe8cf83334f9e3c0",10:"a2aa031ae677b8acbf17",11:"e34a64dea1b7a059dcfd",12:"bdcf26a1bcccf7e0239b",13:"6c87f5cefdf77374932d",14:"8a2d85b6cc3b95b868d9",15:"92854409541cf66d1361",16:"c4ebe5ae46670e5c0754",17:"43a28ed857836d70649f",18:"ca2eb072a4ce38f9e487",19:"7971a9a5d92fefa82083",20:"75e0997b94e5d6294ec8",21:"58c0c6a374fc0ec6158e",22:"047f5bba500bca0d62fe",23:"9efbbc6dd315a676ce09",24:"4637a4566383d6e864cf",25:"a579fe9e82eab9ece806",26:"8f0bb144b5e757399727",27:"b5f0e5bd5920771b58af",28:"140ad99228544036c969",29:"36261093da9264fa5f33",30:"0d4999d53befa8fd9eaa",31:"8baa6bca929d1c9a38f6",32:"836f4d0e323c721473e9",33:"7b62b2ff369669fe322c",34:"f9d53c31059aaff9b360",35:"c75699cc6fe47597f200",36:"031f3a5aae4656aba067",37:"8016d3ac07df8acaf73d",38:"23b83bd7920693bc35c6",39:"d17e2c61f3cc8d6972fa",40:"56797b378549955e7f19",41:"78d64ae1581e8ea232cc",42:"61ae052e4f4fc3284000",43:"9d05f4d2f06b9c6bba0e",44:"96d0b6e88fc87f60bac7",45:"0fe24e1d16072c526787",46:"d3a9c6eba924ac8207b3",47:"c8b46666a5089512baa4",48:"854c6c054adb5cba1f06",49:"33530ea069fc872b0d5f",50:"331006123edd2049b7d9",51:"244dc6f576a64b7c174b",52:"43d3ca00e0c9087e4956",53:"9dce74b07cc47cdf56db",54:"1503b643475934e2b5e1",55:"c423570fcbf037d349d9",56:"94bbfa32e0086c5f0bbc",57:"a5308ec502fd9436e4d8",58:"78fea9e14de750887bf1",59:"e232c753f68c56d9e59c",60:"2a9bebb0261ef9a7a939",61:"8833a156f1e38036fb28",62:"44d1241f8d57451d0c10",63:"25cb3ac91e9616a47dde",64:"ebc341a9017c4b2c1112",65:"afcb60484e7a9ec39f28",66:"0c2656f4decfecb59972",67:"d7e3675c4b4931db738d",68:"13404d9aa7a460952885",69:"ff1445c96fd757245229",70:"3720d31e136a7f99a873",71:"458af30d30795059cdbe",72:"cba3aa56f0a846445e33",73:"dc84bab89c2090b47673",74:"a9dae9c87c825ba65aa1",75:"29e0d3d537fd9fa5eabc",76:"e24f155e1168c927ee44",77:"9f7ea81c191a5e1bbaa2",78:"51dbc832d510b2a1c0a3",81:"be325ddaae712f760e1a"}[e]+".js";var r=setTimeout(t,12e4);function t(){n.onerror=n.onload=null,clearTimeout(r);var c=f[e];0!==c&&(c&&c[1](new Error("Loading chunk "+e+" failed.")),f[e]=void 0)}return n.onerror=n.onload=t,b.appendChild(n),a},d.m=e,d.c=a,d.d=function(e,c,a){d.o(e,c)||Object.defineProperty(e,c,{configurable:!1,enumerable:!0,get:a})},d.n=function(e){var c=e&&e.__esModule?function(){return e.default}:function(){return e};return d.d(c,"a",c),c},d.o=function(e,c){return Object.prototype.hasOwnProperty.call(e,c)},d.p="./",d.oe=function(e){throw console.error(e),e}}([]);
\ No newline at end of file \ No newline at end of file
...@@ -11,8 +11,8 @@ ...@@ -11,8 +11,8 @@
</el-select> --> </el-select> -->
<el-select v-model="activationStatus" @change="selectByActivate" size="small" placeholder="好办使用状态"> <el-select v-model="activationStatus" @change="selectByActivate" size="small" placeholder="好办使用状态">
<el-option label="全部使用状态" value=""></el-option> <el-option label="全部使用状态" value=""></el-option>
<el-option label="已使用好办" :value="1"></el-option> <el-option label="已使用好办" value="1"></el-option>
<el-option label="未使用好办" :value="0"></el-option> <el-option label="未使用好办" value="0"></el-option>
</el-select> </el-select>
<span style="vertical-align: middle;margin-right: 0" class="J_show-children el-button" size="small"> <el-checkbox class="m-r-10" v-model="showChildMember" @change="setChildMemberShow">显示子分组成员</el-checkbox><a class="a-href"></a> </span> <span style="vertical-align: middle;margin-right: 0" class="J_show-children el-button" size="small"> <el-checkbox class="m-r-10" v-model="showChildMember" @change="setChildMemberShow">显示子分组成员</el-checkbox><a class="a-href"></a> </span>
<el-button class="vertical-middle" plain @click="exportClerk">批量导出</el-button> <el-button class="vertical-middle" plain @click="exportClerk">批量导出</el-button>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment