Commit fc376680 by 无尘

fix: 修改文案

parent 82ce0240
<!DOCTYPE html><html><head><meta charset=utf-8><link rel="shortcut icon" href=./favicon.ico><title>好办管理平台</title><link href=./static/css/app.52e8641459134e5ba069a3277de408b1.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.e5d798ad0658114a9564.js></script><script type=text/javascript src=./static/js/vendor.fe563ee1a7b37e2ffba9.js></script><script type=text/javascript src=./static/js/app.bea79e4d35b85719c4de.js></script></body></html>
\ No newline at end of file
<!DOCTYPE html><html><head><meta charset=utf-8><link rel="shortcut icon" href=./favicon.ico><title>好办管理平台</title><link href=./static/css/app.52e8641459134e5ba069a3277de408b1.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.a99b59d769cd4dca41f2.js></script><script type=text/javascript src=./static/js/vendor.fe563ee1a7b37e2ffba9.js></script><script type=text/javascript src=./static/js/app.bea79e4d35b85719c4de.js></script></body></html>
\ No newline at end of file
webpackJsonp([15],{NNAT:function(e,t,a){"use strict";var o=a("fZjL"),i=a.n(o),s=a("mvHQ"),r=a.n(s),n=a("P9l9"),l=a("Xxa5"),c=a.n(l),d=a("exGp"),p=a.n(d),u=a("0xDb"),h=a("unF8"),m=a("Ch4/"),f={name:"list-item",props:{item:{type:String,required:!0}},filters:{formatDate:u.b},data:function(){return{typeList:["全部","全职","兼职","外包","实习","无类型"],statusList:["全部","正式","试用","离职"],reasons:["","家庭原因","个人原因","发展原因","合同到期不续签","协议解除","无法胜任工作","经济性裁员","严重违法违纪","其他"],propList:{headPic:{label:"",slot:!0,width:50},clerkName:{label:"姓名",width:90},clerkPhone:{label:"手机号"},groupName:{label:"部门"},clerkCode:{label:"code"},positionName:{label:"职位"},clerkType:{label:"员工类型",slot:!0},clerkStatus:{label:"员工状态",slot:!0},hireDate:{label:"入职日期",needSort:"custom",slot:!0},correctionDate:{label:"转正日期",needSort:"custom",slot:!0},fireDate:{label:"离职日期",needSort:"custom",slot:!0},fireReason:{label:"离职原因",slot:!0},handleEmployee:{label:"操作",slot:!0},handleUnEmployee:{label:"操作",slot:!0}}}},methods:{changeRouter:function(e){this.$router.push(e)},callHandle:function(e){if("编辑员工资料"!=e.typeTitle)this.$emit("callHandle",e.obj,e.type,e.typeTitle);else{var t="/recordInfo?recordId="+e.obj.recordId;this.changeRouter(t)}},getGicData:function(e){var t=this;return p()(c.a.mark(function a(){var o,i,s,r;return c.a.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return o=t,i={type:3,businessId:e.obj.recordId},a.next=4,Object(h.a)(i);case 4:if(s=a.sent,1!=(r=s.data).errorCode){a.next=12;break}if(!r.result){a.next=10;break}return o.$message.error({duration:1e3,message:"已经与 GIC 门店同步,暂无操作权限"}),a.abrupt("return",!1);case 10:a.next=13;break;case 12:m.a.errorMsg(r);case 13:case"end":return a.stop()}},a,t)}))()}},mounted:function(){}},y={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return e.propList[e.item].slot?a("el-table-column",{attrs:{label:e.propList[e.item].label,width:e.propList[e.item].width,sortable:e.propList[e.item].needSort,prop:e.item},scopedSlots:e._u([{key:"default",fn:function(t){return["clerkType"==e.item?a("div",[e._v("\n "+e._s(e.typeList[t.row[e.item]||5])+"\n ")]):e._e(),e._v(" "),"clerkStatus"==e.item?a("div",[e._v("\n "+e._s(e.statusList[t.row[e.item]]||"无状态")+"\n ")]):"hireDate"==e.item||"correctionDate"==e.item||"fireDate"==e.item?a("div",[e._v("\n "+e._s(e._f("formatDate")(t.row[e.item],"YY-MM-DD")||"--")+"\n ")]):"headPic"==e.item?a("div",[t.row[e.item]?a("img",{staticClass:"header-pic",attrs:{src:t.row[e.item]}}):a("div",{staticClass:"replace-head-img"},[a("i",{staticClass:"iconfont icon-yewuduanmorentouxian"})])]):"fireReason"==e.item?a("div",[e._v("\n "+e._s(e.reasons[t.row[e.item]]||"--")+"\n ")]):"handleEmployee"==e.item?a("div",[a("div",{staticClass:"table-handle"},[a("el-dropdown",{staticClass:"more",on:{command:e.callHandle}},[a("span",{staticClass:"el-dropdown-link"},[e._v(" 更多"),a("i",{staticClass:"el-icon-arrow-down el-icon--right"})]),e._v(" "),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[2==t.row.clerkStatus?[a("el-dropdown-item",{attrs:{command:{obj:t.row,type:"turnPositive",typeTitle:"办理转正"}}},[e._v("办理转正")]),e._v(" "),a("el-dropdown-item",{attrs:{command:{obj:t.row,type:"eidtCorrectionTime",typeTitle:"修改转正时间"}}},[e._v("修改转正时间")])]:e._e(),e._v(" "),a("el-dropdown-item",{attrs:{command:{obj:t.row,type:"editEmployee",typeTitle:"编辑员工资料"}}},[e._v("编辑员工资料")]),e._v(" "),a("el-dropdown-item",{attrs:{command:{obj:t.row,type:"resignation",typeTitle:"办理离职"}}},[e._v("办理离职")])],2)],1)],1)]):"handleUnEmployee"==e.item?a("div",[a("div",{staticClass:"table-handle"},[a("a",{staticClass:"a-href",on:{click:function(a){e.changeRouter("/recordInfo?recordId="+t.row.recordId+"&type=unemployee")}}},[e._v("编辑")])])]):e._e()]}}])}):"clerkPhone"!=e.item?a("el-table-column",{attrs:{"class-name":"clerkName"==e.item?"control-width":"",label:e.propList[e.item].label,width:e.propList[e.item].width,prop:e.item,"show-overflow-tooltip":""}}):"clerkPhone"==e.item?a("el-table-column",{attrs:{"class-name":"clerkName"==e.item?"control-width":"",label:e.propList[e.item].label,width:e.propList[e.item].width,prop:e.item,"show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s("86"==t.row.nationcode||null==t.row.nationcode?t.row.clerkPhone:"+"+t.row.nationcode+"-"+t.row.clerkPhone)+"\n ")]}}])}):e._e()},staticRenderFns:[]};var g=a("VU/8")(f,y,!1,function(e){a("yjiq")},null,null).exports,v=a("IVno"),S=a("Ie7z"),k=a("c4uw"),b={name:"employeeRecordList",props:{isUnEmployee:{type:Boolean,default:!1}},components:{listItem:g,handleDialog:v.a,vueSelectStore:S.a,vueSelectEmployee:k.a},data:function(){return{tableH:window.screen.availHeight-440-160,pickerOptions2:{shortcuts:[{text:"最近一周",onClick:function(e){var t=new Date,a=new Date;a.setTime(a.getTime()-6048e5),e.$emit("pick",[a,t])}},{text:"最近一个月",onClick:function(e){var t=new Date,a=new Date;a.setTime(a.getTime()-2592e6),e.$emit("pick",[a,t])}},{text:"最近三个月",onClick:function(e){var t=new Date,a=new Date;a.setTime(a.getTime()-7776e6),e.$emit("pick",[a,t])}}]},employeeList:[],pageNum:1,pageSize:20,sortType:"desc",sortColumn:"hireDate",statusList:[{label:"全部状态",id:"0"},{label:"正式",id:"1"},{label:"试用",id:"2"},{label:"无状态",id:"-1"}],typeLsit:["全部类型","全职","兼职","外包","实习","无类型"],clerkType:0,clerkStatus:"0",total:0,handleType:"turnPositive",typeTitle:"",dialogVisible:!1,employeeObj:{},fireDate:[],startDate:"",endDate:"",showSelector:!0,searchParam:"",departMentSet:{},storeSet:{},treeData:{},selectionList:[],disabled:!0,chooseClerkIdList:[],chooseGroupIdList:[],chooseStoreIdList:[],adDefaultSelection:[],changed:0,defaultStoreList:[],treeSetDepart:{isSelectPerson:!0,dialogVisible:!1,isSingle:!1,openNextBool:!0},treeSetStore:{isSelectPerson:!0,dialogVisible:!1,isSingle:!1,openNextBool:!0}}},methods:{searchFn:function(){this.getEmloyeeList()},getGroupData:function(){var e=this;Object(n.a)("/haoban-manage-web/dept/deptListForCompany",{isStoreGroup:0}).then(function(t){var a=[],o=[];1==t.data.errorCode&&(a=t.data.result.departmentList||[],o=t.data.result.searchList||[]),e.treeData={treeData:a,personData:o},e.disabled=!1}).catch(function(e){})},callSelector:function(){this.treeSetDepart.dialogVisible=!0},callStoreSelector:function(){this.treeSetStore.dialogVisible=!0},showExportSet:function(){if(this.isUnEmployee){var e=window.location.origin;-1!=e.indexOf("localhost")&&(e="http://www.gicdev.com");var t=0==this.clerkType?"":this.clerkType;location.href=e+"/haoban-manage-web/record/export-fire-employee-record?clerkType="+t+"&sortType="+this.sortType+"&sortColumn="+this.sortColumn+"&startDate="+this.startDate+"&endDate="+this.endDate+"&searchParam="+this.searchParam+"&chooseClerkIdList="+this.chooseClerkIdList.join(",")+"&chooseGroupIdList="+this.chooseGroupIdList.join(",")+"&chooseStoreIdList="+this.chooseStoreIdList.join(",")}else this.$emit("showExportSetFn")},handleSelectedList:function(e){this.adDefaultSelection=e||[],this.concatList()},handleStoreSelectedList:function(e){this.defaultStoreList=e||[],this.concatList()},concatList:function(){this.selectionList=this.adDefaultSelection.concat(this.defaultStoreList),this.formatSelectionList(this.selectionList)},formatSelectionList:function(e){var t=this,a=t.unique(e);t.selectionList=a,t.chooseClerkIdList=[],t.chooseStoreIdList=[],t.chooseGroupIdList=[],a.length&&a.forEach(function(e){1==e.type?t.chooseClerkIdList.push(e.employeeClerkId):3==e.type?t.chooseStoreIdList.push(e.storeId):2==e.type&&t.chooseGroupIdList.push(e.groupId)}),t.pageNum=1,t.getEmloyeeList()},unique:function(e){var t={};return e.forEach(function(e){t[r()(e)]=e}),e=i()(t).map(function(e){return JSON.parse(e)})},delSld:function(e,t){var a=this,o=a.selectionList.indexOf(e);a.selectionList.splice(o,1),(3==e.type||e.hasOwnProperty("isStoreGroup")&&1==e.isStoreGroup||e.hasOwnProperty("isClerk")&&1==e.isClerk)&&a.defaultStoreList.forEach(function(t,o){t.id==e.id&&a.defaultStoreList.splice(o,1)}),(e.hasOwnProperty("isStoreGroup")&&0==e.isStoreGroup||e.hasOwnProperty("isClerk")&&0==e.isClerk)&&a.adDefaultSelection.forEach(function(t,o){t.id==e.id&&a.adDefaultSelection.splice(o,1)}),a.formatSelectionList(a.selectionList),a.changed+=1},handleSuccess:function(){this.dialogVisible=!1,this.getEmloyeeList()},callHandle:function(e,t,a){this.handleType=t,this.employeeObj=e,this.typeTitle=a,this.dialogVisible=!0},handleSizeChange:function(e){this.pageSize=e,this.getEmloyeeList()},handleCurrentChange:function(e){this.pageNum=e,this.getEmloyeeList()},sortList:function(e){this.sortColumn=e.prop,this.sortType="descending"==e.order?"desc":"asc",this.getEmloyeeList()},reGetList:function(){this.getEmloyeeList()},getEmloyeeList:function(){var e=this,t=e.isUnEmployee,a=t?"/haoban-manage-web/record/find-fire-employee-record-page":"/haoban-manage-web/record/find-on-work-employee-record-page",o={pageNum:e.pageNum,chooseClerkIdList:e.chooseClerkIdList.join(","),chooseGroupIdList:e.chooseGroupIdList.join(","),chooseStoreIdList:e.chooseStoreIdList.join(","),pageSize:e.pageSize,sortType:e.sortType,clerkStatus:0==e.clerkStatus?"":e.clerkStatus,sortColumn:e.sortColumn,clerkType:0==e.clerkType?"":e.clerkType,startDate:e.startDate,endDate:e.endDate,searchParam:e.searchParam};Object(n.a)(a,o).then(function(a){1==a.data.errorCode?(e.employeeList=a.data.result.list,e.total=t?a.data.result.total:a.data.result.pageInfo.total):e.$message.error({message:a.data.message})}).catch(function(t){e.$message({message:t.message})})},selectDate:function(e){e?(this.startDate=e[0],this.endDate=e[1]):(this.startDate="",this.endDate=""),this.getEmloyeeList()}},beforeMount:function(){this.getEmloyeeList(),this.getGroupData()},computed:{propList:function(){return this.isUnEmployee?["headPic","clerkName","clerkPhone","groupName","clerkCode","positionName","clerkType","clerkStatus","hireDate","fireDate","fireReason","handleUnEmployee"]:["headPic","clerkName","clerkPhone","groupName","clerkCode","positionName","clerkType","clerkStatus","hireDate","correctionDate","handleEmployee"]}}},L={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"e-r-l-container"},[a("div",{staticClass:"handle-area"},[a("div",{staticClass:"flex1"},[a("el-button",{staticStyle:{"margin-right":"10px",height:"32px"},attrs:{disabled:e.disabled},on:{click:e.callSelector}},[e._v("行政架构选人")]),e._v(" "),a("el-button",{staticStyle:{"margin-right":"10px",height:"32px"},on:{click:e.callStoreSelector}},[e._v("门店架构选人")]),e._v(" "),e.isUnEmployee?a("div",{staticClass:"block"},[a("span",{staticClass:"demonstration"},[e._v("离职日期")]),e._v(" "),a("el-date-picker",{attrs:{type:"daterange",align:"right","value-format":"yyyy-MM-dd","unlink-panels":"","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期","picker-options":e.pickerOptions2},on:{change:e.selectDate},model:{value:e.fireDate,callback:function(t){e.fireDate=t},expression:"fireDate"}})],1):[a("el-select",{staticClass:"m-r-10 w-130",attrs:{placeholder:"选择类型"},on:{change:e.reGetList},model:{value:e.clerkType,callback:function(t){e.clerkType=t},expression:"clerkType"}},e._l(e.typeLsit,function(e,t){return a("el-option",{key:t,attrs:{label:e,value:t}})})),e._v(" "),a("el-select",{staticClass:"w-130",attrs:{placeholder:"选择状态"},on:{change:e.reGetList},model:{value:e.clerkStatus,callback:function(t){e.clerkStatus=t},expression:"clerkStatus"}},e._l(e.statusList,function(e,t){return a("el-option",{key:t,attrs:{label:e.label,value:e.id}})})),e._v(" "),a("span",{staticClass:"demonstration p-l-10",staticStyle:{"line-height":"34px","white-space":"nowrap"}},[e._v("入职时间")]),e._v(" "),a("el-date-picker",{attrs:{type:"daterange",align:"right","value-format":"yyyy-MM-dd","unlink-panels":"","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期","picker-options":e.pickerOptions2},on:{change:e.selectDate},model:{value:e.fireDate,callback:function(t){e.fireDate=t},expression:"fireDate"}})],e._v(" "),a("el-input",{staticStyle:{width:"218px","margin-left":"10px"},attrs:{placeholder:"请输入姓名/手机号/code",clearable:""},on:{clear:e.searchFn},nativeOn:{keyup:function(t){return"button"in t||!e._k(t.keyCode,"enter",13,t.key,"Enter")?e.searchFn(t):null}},model:{value:e.searchParam,callback:function(t){e.searchParam=t},expression:"searchParam"}})],2),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.showExportSet}},[a("i",{staticClass:"iconfont icon-icon_yunxiazai p-r-6"}),e._v("导出")])],1),e._v(" "),e.selectionList.length?a("ul",{staticClass:"selector-selected-list"},[e._l(e.selectionList,function(t,o){return[a("li",{key:o+t.id+t.label,staticClass:"sld"},[e._v(e._s(t.label)+" "),a("i",{staticClass:"el-icon-close",on:{click:function(a){e.delSld(t,t.isStoreGroup)}}})])]}),e._v(" "),a("li",{staticClass:"sld tip"},[e._v("共筛选出"+e._s(e.total)+"人")])],2):e._e(),e._v(" "),a("el-table",{staticClass:"list-table",attrs:{data:e.employeeList,"default-sort":{prop:"hireDate",order:"descending"}},on:{"sort-change":e.sortList}},[e._l(e.propList,function(t){return[a("list-item",{key:t,attrs:{item:t},on:{callHandle:e.callHandle}})]})],2),e._v(" "),e.employeeList.length?a("el-pagination",{staticClass:"pagination",attrs:{background:"","page-sizes":[20,40,60,80],"page-size":e.pageSize,"current-page":e.pageNum,layout:"total, sizes, prev, pager, next",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}}):e._e(),e._v(" "),a("el-dialog",{attrs:{title:e.typeTitle,visible:e.dialogVisible,width:"480px"},on:{"update:visible":function(t){e.dialogVisible=t}}},[a("handle-dialog",{attrs:{employee:e.employeeObj,handleType:e.handleType,typeTitle:e.typeTitle},on:{handleSuccess:e.handleSuccess}})],1),e._v(" "),a("vue-select-store",{ref:"storeSelector",attrs:{defaultList:e.defaultStoreList,treeSet:e.treeSetStore},on:{handleSelectedList:e.handleStoreSelectedList}}),e._v(" "),a("vue-select-employee",{ref:"departmentSelector",attrs:{treeSet:e.treeSetDepart,changed:e.changed,treeData:e.treeData,defaultSelection:e.adDefaultSelection},on:{handleSelectedList:e.handleSelectedList}})],1)},staticRenderFns:[]};var w=a("VU/8")(b,L,!1,function(e){a("ZtD+")},null,null);t.a=w.exports},TGrv:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=a("3Xzz"),i=a("NNAT"),s={name:"employeeRecord",components:{navCrumb:o.a,employeeList:i.a},data:function(){return{navpath:[{name:"首页",path:"/index"},{name:"通讯录",path:"/administrativeFrame"},{name:"员工档案",path:"/fileSet"},{name:"离职员工",path:""}],typeObj:{onWorkCout:"在职员工",allWorkCount:"全职",partTimeWorkCount:"兼职",outWorkCount:"外包",practiceWorkCount:"实习",noTypeWorkCount:"无类型",regularCount:"正式",onTrialCount:"试用",noStatusCount:"无状态"},countObj:{}}},beforeMount:function(){}},r={render:function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"common-set-wrap unemployee-wrap"},[t("nav-crumb",{attrs:{navpath:this.navpath}}),this._v(" "),t("div",{staticClass:"right-content"},[t("div",{staticClass:"right-box"},[t("div",{staticClass:"e-record-container"},[t("employee-list",{attrs:{isUnEmployee:!0}})],1)])]),this._v(" "),t("vue-gic-footer")],1)},staticRenderFns:[]};var n=a("VU/8")(s,r,!1,function(e){a("XAGK")},null,null);t.default=n.exports},XAGK:function(e,t){},"ZtD+":function(e,t){},yjiq:function(e,t){}});
\ No newline at end of file
webpackJsonp([15],{NNAT:function(e,t,a){"use strict";var o=a("fZjL"),i=a.n(o),s=a("mvHQ"),r=a.n(s),n=a("P9l9"),l=a("Xxa5"),c=a.n(l),d=a("exGp"),p=a.n(d),u=a("0xDb"),h=a("unF8"),m=a("Ch4/"),f={name:"list-item",props:{item:{type:String,required:!0}},filters:{formatDate:u.b},data:function(){return{typeList:["全部","全职","兼职","外包","实习","无类型"],statusList:["全部","正式","试用","离职"],reasons:["","家庭原因","个人原因","发展原因","合同到期不续签","协议解除","无法胜任工作","经济性裁员","严重违法违纪","其他"],propList:{headPic:{label:"",slot:!0,width:50},clerkName:{label:"姓名",width:90},clerkPhone:{label:"手机号"},groupName:{label:"部门"},clerkCode:{label:"code"},positionName:{label:"职位"},clerkType:{label:"员工类型",slot:!0},clerkStatus:{label:"员工状态",slot:!0},hireDate:{label:"入职日期",needSort:"custom",slot:!0},correctionDate:{label:"转正日期",needSort:"custom",slot:!0},fireDate:{label:"离职日期",needSort:"custom",slot:!0},fireReason:{label:"离职原因",slot:!0},handleEmployee:{label:"操作",slot:!0},handleUnEmployee:{label:"操作",slot:!0}}}},methods:{changeRouter:function(e){this.$router.push(e)},callHandle:function(e){if("编辑员工资料"!=e.typeTitle)this.$emit("callHandle",e.obj,e.type,e.typeTitle);else{var t="/recordInfo?recordId="+e.obj.recordId;this.changeRouter(t)}},getGicData:function(e){var t=this;return p()(c.a.mark(function a(){var o,i,s,r;return c.a.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return o=t,i={type:3,businessId:e.obj.recordId},a.next=4,Object(h.a)(i);case 4:if(s=a.sent,1!=(r=s.data).errorCode){a.next=12;break}if(!r.result){a.next=10;break}return o.$message.error({duration:1e3,message:"已经与 GIC 门店同步,暂无操作权限"}),a.abrupt("return",!1);case 10:a.next=13;break;case 12:m.a.errorMsg(r);case 13:case"end":return a.stop()}},a,t)}))()}},mounted:function(){}},y={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return e.propList[e.item].slot?a("el-table-column",{attrs:{label:e.propList[e.item].label,width:e.propList[e.item].width,sortable:e.propList[e.item].needSort,prop:e.item},scopedSlots:e._u([{key:"default",fn:function(t){return["clerkType"==e.item?a("div",[e._v("\n "+e._s(e.typeList[t.row[e.item]||5])+"\n ")]):e._e(),e._v(" "),"clerkStatus"==e.item?a("div",[e._v("\n "+e._s(e.statusList[t.row[e.item]]||"无状态")+"\n ")]):"hireDate"==e.item||"correctionDate"==e.item||"fireDate"==e.item?a("div",[e._v("\n "+e._s(e._f("formatDate")(t.row[e.item],"YY-MM-DD")||"--")+"\n ")]):"headPic"==e.item?a("div",[t.row[e.item]?a("img",{staticClass:"header-pic",attrs:{src:t.row[e.item]}}):a("div",{staticClass:"replace-head-img"},[a("i",{staticClass:"iconfont icon-yewuduanmorentouxian"})])]):"fireReason"==e.item?a("div",[e._v("\n "+e._s(e.reasons[t.row[e.item]]||"--")+"\n ")]):"handleEmployee"==e.item?a("div",[a("div",{staticClass:"table-handle"},[a("el-dropdown",{staticClass:"more",on:{command:e.callHandle}},[a("span",{staticClass:"el-dropdown-link"},[e._v(" 更多"),a("i",{staticClass:"el-icon-arrow-down el-icon--right"})]),e._v(" "),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[2==t.row.clerkStatus?[a("el-dropdown-item",{attrs:{command:{obj:t.row,type:"turnPositive",typeTitle:"办理转正"}}},[e._v("办理转正")]),e._v(" "),a("el-dropdown-item",{attrs:{command:{obj:t.row,type:"eidtCorrectionTime",typeTitle:"修改转正时间"}}},[e._v("修改转正时间")])]:e._e(),e._v(" "),a("el-dropdown-item",{attrs:{command:{obj:t.row,type:"editEmployee",typeTitle:"编辑员工资料"}}},[e._v("编辑员工资料")]),e._v(" "),a("el-dropdown-item",{attrs:{command:{obj:t.row,type:"resignation",typeTitle:"办理离职"}}},[e._v("办理离职")])],2)],1)],1)]):"handleUnEmployee"==e.item?a("div",[a("div",{staticClass:"table-handle"},[a("a",{staticClass:"a-href",on:{click:function(a){e.changeRouter("/recordInfo?recordId="+t.row.recordId+"&type=unemployee")}}},[e._v("编辑")])])]):e._e()]}}])}):"clerkPhone"!=e.item?a("el-table-column",{attrs:{"class-name":"clerkName"==e.item?"control-width":"",label:e.propList[e.item].label,width:e.propList[e.item].width,prop:e.item,"show-overflow-tooltip":""}}):"clerkPhone"==e.item?a("el-table-column",{attrs:{"class-name":"clerkName"==e.item?"control-width":"",label:e.propList[e.item].label,width:e.propList[e.item].width,prop:e.item,"show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s("86"==t.row.nationcode||null==t.row.nationcode?t.row.clerkPhone:"+"+t.row.nationcode+"-"+t.row.clerkPhone)+"\n ")]}}])}):e._e()},staticRenderFns:[]};var g=a("VU/8")(f,y,!1,function(e){a("yjiq")},null,null).exports,v=a("IVno"),S=a("Ie7z"),k=a("c4uw"),b={name:"employeeRecordList",props:{isUnEmployee:{type:Boolean,default:!1}},components:{listItem:g,handleDialog:v.a,vueSelectStore:S.a,vueSelectEmployee:k.a},data:function(){return{tableH:window.screen.availHeight-440-160,pickerOptions2:{shortcuts:[{text:"最近一周",onClick:function(e){var t=new Date,a=new Date;a.setTime(a.getTime()-6048e5),e.$emit("pick",[a,t])}},{text:"最近一个月",onClick:function(e){var t=new Date,a=new Date;a.setTime(a.getTime()-2592e6),e.$emit("pick",[a,t])}},{text:"最近三个月",onClick:function(e){var t=new Date,a=new Date;a.setTime(a.getTime()-7776e6),e.$emit("pick",[a,t])}}]},employeeList:[],pageNum:1,pageSize:20,sortType:"desc",sortColumn:"hireDate",statusList:[{label:"全部状态",id:"0"},{label:"正式",id:"1"},{label:"试用",id:"2"},{label:"无状态",id:"-1"}],typeLsit:["全部类型","全职","兼职","外包","实习","无类型"],clerkType:0,clerkStatus:"0",total:0,handleType:"turnPositive",typeTitle:"",dialogVisible:!1,employeeObj:{},fireDate:[],startDate:"",endDate:"",showSelector:!0,searchParam:"",departMentSet:{},storeSet:{},treeData:{},selectionList:[],disabled:!0,chooseClerkIdList:[],chooseGroupIdList:[],chooseStoreIdList:[],adDefaultSelection:[],changed:0,defaultStoreList:[],treeSetDepart:{isSelectPerson:!0,dialogVisible:!1,isSingle:!1,openNextBool:!0},treeSetStore:{isSelectPerson:!0,dialogVisible:!1,isSingle:!1,openNextBool:!0}}},methods:{searchFn:function(){this.getEmloyeeList()},getGroupData:function(){var e=this;Object(n.a)("/haoban-manage-web/dept/deptListForCompany",{isStoreGroup:0}).then(function(t){var a=[],o=[];1==t.data.errorCode&&(a=t.data.result.departmentList||[],o=t.data.result.searchList||[]),e.treeData={treeData:a,personData:o},e.disabled=!1}).catch(function(e){})},callSelector:function(){this.treeSetDepart.dialogVisible=!0},callStoreSelector:function(){this.treeSetStore.dialogVisible=!0},showExportSet:function(){if(this.isUnEmployee){var e=window.location.origin;-1!=e.indexOf("localhost")&&(e="http://www.gicdev.com");var t=0==this.clerkType?"":this.clerkType;location.href=e+"/haoban-manage-web/record/export-fire-employee-record?clerkType="+t+"&sortType="+this.sortType+"&sortColumn="+this.sortColumn+"&startDate="+this.startDate+"&endDate="+this.endDate+"&searchParam="+this.searchParam+"&chooseClerkIdList="+this.chooseClerkIdList.join(",")+"&chooseGroupIdList="+this.chooseGroupIdList.join(",")+"&chooseStoreIdList="+this.chooseStoreIdList.join(",")}else this.$emit("showExportSetFn")},handleSelectedList:function(e){this.adDefaultSelection=e||[],this.concatList()},handleStoreSelectedList:function(e){this.defaultStoreList=e||[],this.concatList()},concatList:function(){this.selectionList=this.adDefaultSelection.concat(this.defaultStoreList),this.formatSelectionList(this.selectionList)},formatSelectionList:function(e){var t=this,a=t.unique(e);t.selectionList=a,t.chooseClerkIdList=[],t.chooseStoreIdList=[],t.chooseGroupIdList=[],a.length&&a.forEach(function(e){1==e.type?t.chooseClerkIdList.push(e.employeeClerkId):3==e.type?t.chooseStoreIdList.push(e.storeId):2==e.type&&t.chooseGroupIdList.push(e.groupId)}),t.pageNum=1,t.getEmloyeeList()},unique:function(e){var t={};return e.forEach(function(e){t[r()(e)]=e}),e=i()(t).map(function(e){return JSON.parse(e)})},delSld:function(e,t){var a=this,o=a.selectionList.indexOf(e);a.selectionList.splice(o,1),(3==e.type||e.hasOwnProperty("isStoreGroup")&&1==e.isStoreGroup||e.hasOwnProperty("isClerk")&&1==e.isClerk)&&a.defaultStoreList.forEach(function(t,o){t.id==e.id&&a.defaultStoreList.splice(o,1)}),(e.hasOwnProperty("isStoreGroup")&&0==e.isStoreGroup||e.hasOwnProperty("isClerk")&&0==e.isClerk)&&a.adDefaultSelection.forEach(function(t,o){t.id==e.id&&a.adDefaultSelection.splice(o,1)}),a.formatSelectionList(a.selectionList),a.changed+=1},handleSuccess:function(){this.dialogVisible=!1,this.getEmloyeeList()},callHandle:function(e,t,a){this.handleType=t,this.employeeObj=e,this.typeTitle=a,this.dialogVisible=!0},handleSizeChange:function(e){this.pageSize=e,this.getEmloyeeList()},handleCurrentChange:function(e){this.pageNum=e,this.getEmloyeeList()},sortList:function(e){this.sortColumn=e.prop,this.sortType="descending"==e.order?"desc":"asc",this.getEmloyeeList()},reGetList:function(){this.getEmloyeeList()},getEmloyeeList:function(){var e=this,t=e.isUnEmployee,a=t?"/haoban-manage-web/record/find-fire-employee-record-page":"/haoban-manage-web/record/find-on-work-employee-record-page",o={pageNum:e.pageNum,chooseClerkIdList:e.chooseClerkIdList.join(","),chooseGroupIdList:e.chooseGroupIdList.join(","),chooseStoreIdList:e.chooseStoreIdList.join(","),pageSize:e.pageSize,sortType:e.sortType,clerkStatus:0==e.clerkStatus?"":e.clerkStatus,sortColumn:e.sortColumn,clerkType:0==e.clerkType?"":e.clerkType,startDate:e.startDate,endDate:e.endDate,searchParam:e.searchParam};Object(n.a)(a,o).then(function(a){1==a.data.errorCode?(e.employeeList=a.data.result.list,e.total=t?a.data.result.total:a.data.result.pageInfo.total):e.$message.error({message:a.data.message})}).catch(function(t){e.$message({message:t.message})})},selectDate:function(e){e?(this.startDate=e[0],this.endDate=e[1]):(this.startDate="",this.endDate=""),this.getEmloyeeList()}},beforeMount:function(){this.getEmloyeeList(),this.getGroupData()},computed:{propList:function(){return this.isUnEmployee?["headPic","clerkName","clerkPhone","groupName","clerkCode","positionName","clerkType","clerkStatus","hireDate","fireDate","fireReason","handleUnEmployee"]:["headPic","clerkName","clerkPhone","groupName","clerkCode","positionName","clerkType","clerkStatus","hireDate","correctionDate","handleEmployee"]}}},L={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"e-r-l-container"},[a("div",{staticClass:"handle-area"},[a("div",{staticClass:"flex1"},[a("el-button",{staticStyle:{"margin-right":"10px",height:"32px"},attrs:{disabled:e.disabled},on:{click:e.callSelector}},[e._v("行政架构选人")]),e._v(" "),a("el-button",{staticStyle:{"margin-right":"10px",height:"32px"},on:{click:e.callStoreSelector}},[e._v("门店架构选人")]),e._v(" "),e.isUnEmployee?a("div",{staticClass:"block"},[a("span",{staticClass:"demonstration"},[e._v("离职日期")]),e._v(" "),a("el-date-picker",{attrs:{type:"daterange",align:"right","value-format":"yyyy-MM-dd","unlink-panels":"","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期","picker-options":e.pickerOptions2},on:{change:e.selectDate},model:{value:e.fireDate,callback:function(t){e.fireDate=t},expression:"fireDate"}})],1):[a("el-select",{staticClass:"m-r-10 w-130",attrs:{placeholder:"选择类型"},on:{change:e.reGetList},model:{value:e.clerkType,callback:function(t){e.clerkType=t},expression:"clerkType"}},e._l(e.typeLsit,function(e,t){return a("el-option",{key:t,attrs:{label:e,value:t}})})),e._v(" "),a("el-select",{staticClass:"w-130",attrs:{placeholder:"选择状态"},on:{change:e.reGetList},model:{value:e.clerkStatus,callback:function(t){e.clerkStatus=t},expression:"clerkStatus"}},e._l(e.statusList,function(e,t){return a("el-option",{key:t,attrs:{label:e.label,value:e.id}})})),e._v(" "),a("span",{staticClass:"demonstration p-l-10",staticStyle:{"line-height":"34px","white-space":"nowrap"}},[e._v("入职时间")]),e._v(" "),a("el-date-picker",{attrs:{type:"daterange",align:"right","value-format":"yyyy-MM-dd","unlink-panels":"","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期","picker-options":e.pickerOptions2},on:{change:e.selectDate},model:{value:e.fireDate,callback:function(t){e.fireDate=t},expression:"fireDate"}})],e._v(" "),a("el-input",{staticStyle:{width:"218px","margin-left":"10px"},attrs:{placeholder:"请输入姓名/手机号/员工code",clearable:""},on:{clear:e.searchFn},nativeOn:{keyup:function(t){return"button"in t||!e._k(t.keyCode,"enter",13,t.key,"Enter")?e.searchFn(t):null}},model:{value:e.searchParam,callback:function(t){e.searchParam=t},expression:"searchParam"}})],2),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.showExportSet}},[a("i",{staticClass:"iconfont icon-icon_yunxiazai p-r-6"}),e._v("导出")])],1),e._v(" "),e.selectionList.length?a("ul",{staticClass:"selector-selected-list"},[e._l(e.selectionList,function(t,o){return[a("li",{key:o+t.id+t.label,staticClass:"sld"},[e._v(e._s(t.label)+" "),a("i",{staticClass:"el-icon-close",on:{click:function(a){e.delSld(t,t.isStoreGroup)}}})])]}),e._v(" "),a("li",{staticClass:"sld tip"},[e._v("共筛选出"+e._s(e.total)+"人")])],2):e._e(),e._v(" "),a("el-table",{staticClass:"list-table",attrs:{data:e.employeeList,"default-sort":{prop:"hireDate",order:"descending"}},on:{"sort-change":e.sortList}},[e._l(e.propList,function(t){return[a("list-item",{key:t,attrs:{item:t},on:{callHandle:e.callHandle}})]})],2),e._v(" "),e.employeeList.length?a("el-pagination",{staticClass:"pagination",attrs:{background:"","page-sizes":[20,40,60,80],"page-size":e.pageSize,"current-page":e.pageNum,layout:"total, sizes, prev, pager, next",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}}):e._e(),e._v(" "),a("el-dialog",{attrs:{title:e.typeTitle,visible:e.dialogVisible,width:"480px"},on:{"update:visible":function(t){e.dialogVisible=t}}},[a("handle-dialog",{attrs:{employee:e.employeeObj,handleType:e.handleType,typeTitle:e.typeTitle},on:{handleSuccess:e.handleSuccess}})],1),e._v(" "),a("vue-select-store",{ref:"storeSelector",attrs:{defaultList:e.defaultStoreList,treeSet:e.treeSetStore},on:{handleSelectedList:e.handleStoreSelectedList}}),e._v(" "),a("vue-select-employee",{ref:"departmentSelector",attrs:{treeSet:e.treeSetDepart,changed:e.changed,treeData:e.treeData,defaultSelection:e.adDefaultSelection},on:{handleSelectedList:e.handleSelectedList}})],1)},staticRenderFns:[]};var w=a("VU/8")(b,L,!1,function(e){a("Rm52")},null,null);t.a=w.exports},Rm52:function(e,t){},TGrv:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=a("3Xzz"),i=a("NNAT"),s={name:"employeeRecord",components:{navCrumb:o.a,employeeList:i.a},data:function(){return{navpath:[{name:"首页",path:"/index"},{name:"通讯录",path:"/administrativeFrame"},{name:"员工档案",path:"/fileSet"},{name:"离职员工",path:""}],typeObj:{onWorkCout:"在职员工",allWorkCount:"全职",partTimeWorkCount:"兼职",outWorkCount:"外包",practiceWorkCount:"实习",noTypeWorkCount:"无类型",regularCount:"正式",onTrialCount:"试用",noStatusCount:"无状态"},countObj:{}}},beforeMount:function(){}},r={render:function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"common-set-wrap unemployee-wrap"},[t("nav-crumb",{attrs:{navpath:this.navpath}}),this._v(" "),t("div",{staticClass:"right-content"},[t("div",{staticClass:"right-box"},[t("div",{staticClass:"e-record-container"},[t("employee-list",{attrs:{isUnEmployee:!0}})],1)])]),this._v(" "),t("vue-gic-footer")],1)},staticRenderFns:[]};var n=a("VU/8")(s,r,!1,function(e){a("XAGK")},null,null);t.default=n.exports},XAGK:function(e,t){},yjiq:function(e,t){}});
\ No newline at end of file
webpackJsonp([4],{"4WTo":function(e,t,n){var a=n("NWt+");e.exports=function(e,t){var n=[];return a(e,!1,n.push,n,t),n}},"7Doy":function(e,t,n){var a=n("EqjI"),s=n("7UMu"),o=n("dSzd")("species");e.exports=function(e){var t;return s(e)&&("function"!=typeof(t=e.constructor)||t!==Array&&!s(t.prototype)||(t=void 0),a(t)&&null===(t=t[o])&&(t=void 0)),void 0===t?Array:t}},"9Bbf":function(e,t,n){"use strict";var a=n("kM2E");e.exports=function(e){a(a.S,e,{of:function(){for(var e=arguments.length,t=new Array(e);e--;)t[e]=arguments[e];return new this(t)}})}},"9C8M":function(e,t,n){"use strict";var a=n("evD5").f,s=n("Yobk"),o=n("xH/j"),r=n("+ZMJ"),i=n("2KxR"),l=n("NWt+"),c=n("vIB/"),u=n("EGZi"),d=n("bRrM"),h=n("+E39"),p=n("06OY").fastKey,f=n("LIJb"),m=h?"_s":"size",v=function(e,t){var n,a=p(t);if("F"!==a)return e._i[a];for(n=e._f;n;n=n.n)if(n.k==t)return n};e.exports={getConstructor:function(e,t,n,c){var u=e(function(e,a){i(e,u,t,"_i"),e._t=t,e._i=s(null),e._f=void 0,e._l=void 0,e[m]=0,void 0!=a&&l(a,n,e[c],e)});return o(u.prototype,{clear:function(){for(var e=f(this,t),n=e._i,a=e._f;a;a=a.n)a.r=!0,a.p&&(a.p=a.p.n=void 0),delete n[a.i];e._f=e._l=void 0,e[m]=0},delete:function(e){var n=f(this,t),a=v(n,e);if(a){var s=a.n,o=a.p;delete n._i[a.i],a.r=!0,o&&(o.n=s),s&&(s.p=o),n._f==a&&(n._f=s),n._l==a&&(n._l=o),n[m]--}return!!a},forEach:function(e){f(this,t);for(var n,a=r(e,arguments.length>1?arguments[1]:void 0,3);n=n?n.n:this._f;)for(a(n.v,n.k,this);n&&n.r;)n=n.p},has:function(e){return!!v(f(this,t),e)}}),h&&a(u.prototype,"size",{get:function(){return f(this,t)[m]}}),u},def:function(e,t,n){var a,s,o=v(e,t);return o?o.v=n:(e._l=o={i:s=p(t,!0),k:t,v:n,p:a=e._l,n:void 0,r:!1},e._f||(e._f=o),a&&(a.n=o),e[m]++,"F"!==s&&(e._i[s]=o)),e},getEntry:v,setStrong:function(e,t,n){c(e,t,function(e,n){this._t=f(e,t),this._k=n,this._l=void 0},function(){for(var e=this._k,t=this._l;t&&t.r;)t=t.p;return this._t&&(this._l=t=t?t.n:this._t._f)?u(0,"keys"==e?t.k:"values"==e?t.v:[t.k,t.v]):(this._t=void 0,u(1))},n?"entries":"values",!n,!0),d(t)}}},"9prw":function(e,t){},ALrJ:function(e,t,n){var a=n("+ZMJ"),s=n("MU5D"),o=n("sB3e"),r=n("QRG4"),i=n("oeOm");e.exports=function(e,t){var n=1==e,l=2==e,c=3==e,u=4==e,d=6==e,h=5==e||d,p=t||i;return function(t,i,f){for(var m,v,g=o(t),_=s(g),y=a(i,f,3),b=r(_.length),C=0,k=n?p(t,b):l?p(t,0):void 0;b>C;C++)if((h||C in _)&&(v=y(m=_[C],C,g),e))if(n)k[C]=v;else if(v)switch(e){case 3:return!0;case 5:return m;case 6:return C;case 2:k.push(m)}else if(u)return!1;return d?-1:c||u?u:k}}},ATfr:function(e,t,n){"use strict";var a=n("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")})},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 n=this,s=Object(a.c)(e);n.defaultOpen=s.defaultOpen,n.menuData=s.menuArr,n.menuData.length&&n.$nextTick(function(){n.defaultId=n.menuData.length?n.menuData[0].id:"",document.querySelector(".el-tree-node").classList.add("is-current")})}}},o={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"searh-menu-container"},[n("div",{staticClass:"p-0-15"},[n("el-input",{attrs:{"prefix-icon":"el-icon-search",placeholder:"姓名/手机号/部门/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():n("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 a=t.node;return t.data,n("span",{staticClass:"custom-tree-node"},[n("i",{staticClass:"iconfont",class:1==a.level?"icon-2zuzhijiagou":"icon-tongshi-zuzhijiagou"}),e._v(" "),n("span",[e._v(e._s(a.label))])])}}])})],2),e._v(" "),e.searchResultShow?n("div",{staticClass:"search-result-container m-t-15"},[e.storeFrame?[e._l(e.brandList,function(t,a){return[t.departmentList.length>0||t.storeList.length>0||t.searchList.length>0?n("div",{key:t.topDepartment.brandId+"_"+a},[n("div",[n("p",{staticClass:"brand-title"},[e._v(e._s(t.topDepartment.name))]),e._v(" "),t.departmentList.length>0?n("ul",{staticClass:"search-result-ul"},[n("p",{staticClass:"title store-frame-title"},[e._v("分组列表")]),e._v(" "),e._l(t.departmentList,function(t,a){return n("li",{key:a+"_"+t.groupId,staticClass:"group-item items",on:{click:function(n){e.handleNodeClick(t)}}},[n("i",{staticClass:"iconfont icon-tongshi-zuzhijiagou"}),e._v("\n "+e._s(t.name)+"\n ")])})],2):e._e(),e._v(" "),t.storeList.length>0?n("ul",{staticClass:"search-result-ul"},[n("p",{staticClass:"title store-frame-title"},[e._v("门店列表")]),e._v(" "),e._l(t.storeList,function(t,a){return n("li",{key:a+"_"+t.storeGroupId,staticClass:"group-item items",on:{click:function(n){e.handleStoreClick(t)}}},[n("i",{staticClass:"iconfont icon-tongshi-zuzhijiagou"}),e._v("\n "+e._s(t.storeName)+"\n ")])})],2):e._e(),e._v(" "),t.searchList.length>0?n("ul",{staticClass:"search-result-ul"},[n("p",{staticClass:"title store-frame-title"},[e._v("人员列表")]),e._v(" "),e._l(t.searchList,function(t,a){return n("li",{key:a+"_"+t.employeeClerkId,staticClass:"person-item items",on:{click:function(n){e.selectEmployee(t)}}},[n("i",{staticClass:"iconfont icon-chengyuan"}),e._v("\n "+e._s(t.name)+"\n "),n("span",{staticClass:"from-group"},[e._v(e._s(t.departmentName))])])})],2):e._e()])]):e._e()]}),e._v(" "),e.brandList.length<1?n("p",{staticClass:"no-data-tip"},[e._v("暂无数据")]):e._e()]:[e.departmentList.length>0?n("ul",{staticClass:"search-result-ul"},[n("p",{staticClass:"title"},[e._v("部门列表")]),e._v(" "),e._l(e.departmentList,function(t,a){return n("li",{key:a+"_"+t.groupId,class:["group-item items",e.defaultId==t.groupId?"active-item":""],on:{click:function(n){e.handleNodeClick(t)}}},[n("i",{staticClass:"iconfont icon-tongshi-zuzhijiagou"}),e._v("\n "+e._s(t.name)+"\n ")])})],2):e._e(),e._v(" "),e.employeeList.length>0?n("ul",{staticClass:"search-result-ul"},[n("p",{staticClass:"title"},[e._v("人员列表")]),e._v(" "),e._l(e.employeeList,function(t,a){return n("li",{key:a+"_"+t.employeeClerkId,class:["person-item items",e.defaultId==t.employeeClerkId?"active-item":""],on:{click:function(n){e.selectEmployee(t)}}},[n("i",{staticClass:"iconfont icon-chengyuan"}),e._v("\n "+e._s(t.name)+"\n "),n("span",{staticClass:"from-group"},[e._v(e._s(t.departmentName))])])})],2):e._e(),e._v(" "),e.departmentList.length<1&&e.employeeList.length<1?n("p",{staticClass:"no-data-tip"},[e._v("暂无数据")]):e._e()]],2):e._e()])},staticRenderFns:[]};var r=n("VU/8")(s,o,!1,function(e){n("9prw")},null,null);t.a=r.exports},BDhv:function(e,t,n){var a=n("kM2E");a(a.P+a.R,"Set",{toJSON:n("m9gC")("Set")})},BQQe:function(e,t){},HpRW:function(e,t,n){"use strict";var a=n("kM2E"),s=n("lOnJ"),o=n("+ZMJ"),r=n("NWt+");e.exports=function(e){a(a.S,e,{from:function(e){var t,n,a,i,l=arguments[1];return s(this),(t=void 0!==l)&&s(l),void 0==e?new this:(n=[],t?(a=0,i=o(l,arguments[2],2),r(e,!1,function(e){n.push(i(e,a++))})):r(e,!1,n.push,n),new this(n))}})}},LIJb:function(e,t,n){var a=n("EqjI");e.exports=function(e,t){if(!a(e)||e._t!==t)throw TypeError("Incompatible receiver, "+t+" required!");return e}},ioQ5:function(e,t,n){n("HpRW")("Set")},kLcy:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=n("lHA8"),s=n.n(a),o=n("3Xzz"),r=n("ATfr"),i=n("WSbm"),l={name:"employee-table",props:{employeeList:{type:Array,default:function(){return[]}},headList:{type:Array,default:function(){return["selection","name","phoneNumber","positionName","activationStatus"]}}},data:function(){return{tableH:window.screen.availHeight-180}},methods:{selectMember:function(e){this.$emit("selectMember",e)},linkToDetail:function(e){var t="/employee?employeeClerkId="+e.employeeClerkId;this.$router.push(t)}}},c={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"employee-table"},[n("el-table",{attrs:{data:e.employeeList},on:{"selection-change":e.selectMember,"row-click":e.linkToDetail}},[e._l(e.headList,function(t){return["selection"==t?n("el-table-column",{key:t,attrs:{type:"selection",width:"42"}}):e._e(),e._v(" "),"name"==t?n("el-table-column",{key:t,attrs:{label:"姓名"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",[e._v(e._s(t.row.name))]),e._v(" "),1==t.row.isManager?n("span",{staticClass:"is-manager"},[e._v("部门负责人")]):e._e()]}}])}):e._e(),e._v(" "),"phoneNumber"==t?n("el-table-column",{key:t,attrs:{label:"手机号"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s("86"==t.row.nationcode?t.row.phoneNumber:"+"+t.row.nationcode+"-"+t.row.phoneNumber||"--")+"\n ")]}}])}):e._e(),e._v(" "),"positionName"==t?n("el-table-column",{key:t,attrs:{label:"职位",prop:"positionName"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.positionName?t.row.positionName:"--")+"\n ")]}}])}):e._e(),e._v(" "),"activationStatus"==t?n("el-table-column",{key:t,attrs:{label:"状态"},scopedSlots:e._u([{key:"default",fn:function(e){return[n("div",{staticClass:"status-icon",class:1==e.row.activationStatus?"is-active":""},[n("i",{staticClass:"iconfont icon-shouji"})])]}}])}):e._e()]})],2)],1)},staticRenderFns:[]};var u=n("VU/8")(l,c,!1,function(e){n("BQQe")},null,null).exports,d=n("P9l9"),h={name:"administrativeEstrutura",components:{navCrumb:o.a,searchMenu:r.a,employeeInfo:i.a,employeeList:u},data:function(){return{navpath:[{name:"首页",path:"/index"},{name:"企业通讯录",path:"/administrativeFrame"},{name:"行政架构",path:""}],showChildMember:!0,setDisabledDel:!1,menuData:[],pageSize:20,currentPage:1,selectedList:[],total:0,loading:!0,groupInfo:{groupName:"",departmentId:"",hasPression:""},employeeList:[],searchResult:{},showEmployee:!1,selectedEmployee:{}}},created:function(){},beforeMount:function(){this.getGroupData(),this.getEmployee()},methods:{changeRouter:function(e){this.$router.push(e)},handleSizeChange:function(e){this.pageSize=e,this.getEmployee()},handleCurrentChange:function(e){this.currentPage=e,this.getEmployee()},addSon:function(){var e="/addDepartment?type=group&addnew=1&departmentId="+this.groupInfo.departmentId;this.changeRouter(e)},goToEdit:function(e){var t=0==e?"company":"group",n="/addDepartment?departmentId="+this.groupInfo.departmentId+"&type="+t;this.changeRouter(n)},handleSearchKey:function(e){var t=this,n={keyWord:e};Object(d.a)("/haoban-manage-web/emp/searchpage",n).then(function(e){t.searchResult=e.data.result}).catch(function(e){})},handleTreeSelection:function(e,t,n){this.groupInfo.departmentId=e.groupId,this.groupInfo.groupName=e.name,this.showEmployee=n,this.groupInfo.hasPression=e.hasPression,this.groupInfo.level=e.level,this.loading=!0,this.getEmployee()},handleEmployeeSelection:function(e,t){this.selectedEmployee=e,this.showEmployee=t},selectMember:function(e){this.selectedList=e},delMembers:function(){var e=this;e.$confirm("是否要删除选中的员工?","提示",{type:"warning"}).then(function(){e.loading=!0;var t=[];if(e.selectedList.forEach(function(e){t.push(e.employeeClerkId)}),!t.length)return e.$message({message:"请选择员工",type:"warning"}),e.loading=!1,!1;var n={ids:t.join(",")};Object(d.a)("/haoban-manage-web/emp/del",n).then(function(t){if(1==t.data.errorCode){var n=e.selectedList,a=e.employeeList,o=new s.a(n),r=new s.a(a);e.employeeList=n.concat(a).filter(function(e){return!o.has(e)||!r.has(e)}),e.$message.success({message:t.data.message})}else e.$message.error({message:t.data.message});e.loading=!1}).catch(function(t){e.loading=!1,e.$message.error({message:t.message})})})},setChildMemberShow:function(){this.getEmployee()},getGroupData:function(e){var t=this;Object(d.a)("/haoban-manage-web/dept/deptListForCompany",{isStoreGroup:0}).then(function(e){t.menuData=e.data.result.departmentList||[],t.menuData.some(function(e){return 0==e.level&&(t.groupInfo.departmentId=e.groupId,t.groupInfo.groupName=e.name,t.groupInfo.hasPression=e.hasPression,t.groupInfo.level=0),0==e.level}),t.getEmployee()}).catch(function(e){console.log(e,"error")})},getEmployee:function(){var e=this,t={departmentId:e.groupInfo.departmentId,showChild:1*e.showChildMember,pageSize:e.pageSize,pageNum:e.currentPage,status:1};Object(d.a)("/haoban-manage-web/emp/findsimplepage",t).then(function(t){var n=[],a=0;1==t.data.errorCode&&(n=t.data.result&&t.data.result.list?t.data.result.list:[],a=t.data.result&&t.data.result.total?t.data.result.total:0),e.employeeList=n,e.total=a,e.loading=!1}).catch(function(t){console.log(t,"error"),e.loading=!1})}},computed:{disabledDel:function(){return!this.selectedList.length&&!this.setDisabledDel&&1!=this.groupInfo.hasPression}}},p={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"common-set-wrap admin-frame"},[n("nav-crumb",{attrs:{navpath:e.navpath}}),e._v(" "),n("div",{staticClass:"right-content"},[n("div",{staticClass:"right-box"},[n("div",{staticClass:"administrative-estrutura-container common-frame-container",style:{minHeight:e.$store.state.bgHeight}},[n("search-menu",{attrs:{treeData:e.menuData,searchResult:e.searchResult},on:{handleSearchKey:e.handleSearchKey,handleTreeSelection:e.handleTreeSelection,handleEmployeeSelection:e.handleEmployeeSelection}}),e._v(" "),"employee"==e.showEmployee?n("employee-info",{attrs:{perId:e.selectedEmployee.employeeClerkId}}):n("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"af-right-container common-right-container"},[n("div",{staticClass:"af-right-header common-right-header"},[n("span",{staticClass:"title-span"},[e._v(e._s(e.groupInfo.groupName)+"("+e._s(e.total)+"人)")]),e._v(" "),n("span",{staticClass:"id-span"},[e._v("部门ID: "+e._s(e.groupInfo.departmentId))]),e._v(" "),n("span",{staticClass:"handle-area"},[n("el-button",{staticClass:"no-bdr-btn",attrs:{disabled:1!=e.groupInfo.hasPression},on:{click:e.addSon}},[e._v("\n 添加子分组 ")]),n("span",{staticClass:"hurdle"}),n("el-button",{staticClass:"no-bdr-btn",attrs:{href:"#/addGroup?groupId="+e.groupInfo.departmentId,disabled:1!=e.groupInfo.hasPression},on:{click:function(t){e.goToEdit(e.groupInfo.level)}}},[e._v("编辑")])],1)]),e._v(" "),n("div",{staticClass:"af-right-button-box common-right-button-box"},[n("a",{on:{click:function(t){e.changeRouter("/employee?addnew=1&departmentId="+e.groupInfo.departmentId)}}},[n("el-button",{attrs:{type:"primary"}},[e._v("添加成员")])],1),e._v(" "),n("a",{on:{click:function(t){e.changeRouter("/employeeIo?importCode=employee&departmentId="+e.groupInfo.departmentId+"&showChildMember="+1*e.showChildMember)}}},[n("el-button",[e._v("批量导入/导出")])],1),e._v(" "),n("el-button",{attrs:{type:"danger",disabled:e.disabledDel},on:{click:e.delMembers}},[e._v("批量删除")]),e._v(" "),n("span",{staticClass:"J_show-children inline-block el-button"},[n("el-checkbox",{staticClass:"m-r-10",on:{change:e.setChildMemberShow},model:{value:e.showChildMember,callback:function(t){e.showChildMember=t},expression:"showChildMember"}},[e._v("显示子部门")])],1)],1),e._v(" "),n("employee-list",{attrs:{employeeList:e.employeeList},on:{selectMember:e.selectMember}}),e._v(" "),e.employeeList.length?n("div",{staticClass:"pagination"},[n("el-pagination",{attrs:{background:"","page-sizes":[20,40,60,80],"page-size":e.pageSize,"current-page":e.currentPage,layout:"total, sizes, prev, pager, next",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1):e._e()],1)],1)])]),e._v(" "),n("vue-gic-footer")],1)},staticRenderFns:[]};var f=n("VU/8")(h,p,!1,function(e){n("qxxY")},null,null);t.default=f.exports},lHA8:function(e,t,n){e.exports={default:n("pPW7"),__esModule:!0}},m9gC:function(e,t,n){var a=n("RY/4"),s=n("4WTo");e.exports=function(e){return function(){if(a(this)!=e)throw TypeError(e+"#toJSON isn't generic");return s(this)}}},oNmr:function(e,t,n){n("9Bbf")("Set")},oeOm:function(e,t,n){var a=n("7Doy");e.exports=function(e,t){return new(a(e))(t)}},pPW7:function(e,t,n){n("M6a0"),n("zQR9"),n("+tPU"),n("ttyz"),n("BDhv"),n("oNmr"),n("ioQ5"),e.exports=n("FeBl").Set},qo66:function(e,t,n){"use strict";var a=n("7KvD"),s=n("kM2E"),o=n("06OY"),r=n("S82l"),i=n("hJx8"),l=n("xH/j"),c=n("NWt+"),u=n("2KxR"),d=n("EqjI"),h=n("e6n0"),p=n("evD5").f,f=n("ALrJ")(0),m=n("+E39");e.exports=function(e,t,n,v,g,_){var y=a[e],b=y,C=g?"set":"add",k=b&&b.prototype,I={};return m&&"function"==typeof b&&(_||k.forEach&&!r(function(){(new b).entries().next()}))?(b=t(function(t,n){u(t,b,e,"_c"),t._c=new y,void 0!=n&&c(n,g,t[C],t)}),f("add,clear,delete,forEach,get,has,set,keys,values,entries,toJSON".split(","),function(e){var t="add"==e||"set"==e;e in k&&(!_||"clear"!=e)&&i(b.prototype,e,function(n,a){if(u(this,b,e),!t&&_&&!d(n))return"get"==e&&void 0;var s=this._c[e](0===n?0:n,a);return t?this:s})}),_||p(b.prototype,"size",{get:function(){return this._c.size}})):(b=v.getConstructor(t,e,g,C),l(b.prototype,n),o.NEED=!0),h(b,e),I[e]=b,s(s.G+s.W+s.F,I),_||v.setStrong(b,e,g),b}},qxxY:function(e,t){},ttyz:function(e,t,n){"use strict";var a=n("9C8M"),s=n("LIJb");e.exports=n("qo66")("Set",function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},{add:function(e){return a.def(s(this,"Set"),e=0===e?0:e,e)}},a)}});
\ No newline at end of file
webpackJsonp([4],{"4WTo":function(e,t,n){var a=n("NWt+");e.exports=function(e,t){var n=[];return a(e,!1,n.push,n,t),n}},"7Doy":function(e,t,n){var a=n("EqjI"),s=n("7UMu"),o=n("dSzd")("species");e.exports=function(e){var t;return s(e)&&("function"!=typeof(t=e.constructor)||t!==Array&&!s(t.prototype)||(t=void 0),a(t)&&null===(t=t[o])&&(t=void 0)),void 0===t?Array:t}},"9Bbf":function(e,t,n){"use strict";var a=n("kM2E");e.exports=function(e){a(a.S,e,{of:function(){for(var e=arguments.length,t=new Array(e);e--;)t[e]=arguments[e];return new this(t)}})}},"9C8M":function(e,t,n){"use strict";var a=n("evD5").f,s=n("Yobk"),o=n("xH/j"),i=n("+ZMJ"),r=n("2KxR"),l=n("NWt+"),c=n("vIB/"),u=n("EGZi"),d=n("bRrM"),h=n("+E39"),p=n("06OY").fastKey,f=n("LIJb"),m=h?"_s":"size",v=function(e,t){var n,a=p(t);if("F"!==a)return e._i[a];for(n=e._f;n;n=n.n)if(n.k==t)return n};e.exports={getConstructor:function(e,t,n,c){var u=e(function(e,a){r(e,u,t,"_i"),e._t=t,e._i=s(null),e._f=void 0,e._l=void 0,e[m]=0,void 0!=a&&l(a,n,e[c],e)});return o(u.prototype,{clear:function(){for(var e=f(this,t),n=e._i,a=e._f;a;a=a.n)a.r=!0,a.p&&(a.p=a.p.n=void 0),delete n[a.i];e._f=e._l=void 0,e[m]=0},delete:function(e){var n=f(this,t),a=v(n,e);if(a){var s=a.n,o=a.p;delete n._i[a.i],a.r=!0,o&&(o.n=s),s&&(s.p=o),n._f==a&&(n._f=s),n._l==a&&(n._l=o),n[m]--}return!!a},forEach:function(e){f(this,t);for(var n,a=i(e,arguments.length>1?arguments[1]:void 0,3);n=n?n.n:this._f;)for(a(n.v,n.k,this);n&&n.r;)n=n.p},has:function(e){return!!v(f(this,t),e)}}),h&&a(u.prototype,"size",{get:function(){return f(this,t)[m]}}),u},def:function(e,t,n){var a,s,o=v(e,t);return o?o.v=n:(e._l=o={i:s=p(t,!0),k:t,v:n,p:a=e._l,n:void 0,r:!1},e._f||(e._f=o),a&&(a.n=o),e[m]++,"F"!==s&&(e._i[s]=o)),e},getEntry:v,setStrong:function(e,t,n){c(e,t,function(e,n){this._t=f(e,t),this._k=n,this._l=void 0},function(){for(var e=this._k,t=this._l;t&&t.r;)t=t.p;return this._t&&(this._l=t=t?t.n:this._t._f)?u(0,"keys"==e?t.k:"values"==e?t.v:[t.k,t.v]):(this._t=void 0,u(1))},n?"entries":"values",!n,!0),d(t)}}},ALrJ:function(e,t,n){var a=n("+ZMJ"),s=n("MU5D"),o=n("sB3e"),i=n("QRG4"),r=n("oeOm");e.exports=function(e,t){var n=1==e,l=2==e,c=3==e,u=4==e,d=6==e,h=5==e||d,p=t||r;return function(t,r,f){for(var m,v,g=o(t),_=s(g),y=a(r,f,3),b=i(_.length),C=0,k=n?p(t,b):l?p(t,0):void 0;b>C;C++)if((h||C in _)&&(v=y(m=_[C],C,g),e))if(n)k[C]=v;else if(v)switch(e){case 3:return!0;case 5:return m;case 6:return C;case 2:k.push(m)}else if(u)return!1;return d?-1:c||u?u:k}}},ATfr:function(e,t,n){"use strict";var a=n("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")})},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 n=this,s=Object(a.c)(e);n.defaultOpen=s.defaultOpen,n.menuData=s.menuArr,n.menuData.length&&n.$nextTick(function(){n.defaultId=n.menuData.length?n.menuData[0].id:"",document.querySelector(".el-tree-node").classList.add("is-current")})}}},o={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"searh-menu-container"},[n("div",{staticClass:"p-0-15"},[n("el-input",{attrs:{"prefix-icon":"el-icon-search",placeholder:"/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():n("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 a=t.node;return t.data,n("span",{staticClass:"custom-tree-node"},[n("i",{staticClass:"iconfont",class:1==a.level?"icon-2zuzhijiagou":"icon-tongshi-zuzhijiagou"}),e._v(" "),n("span",[e._v(e._s(a.label))])])}}])})],2),e._v(" "),e.searchResultShow?n("div",{staticClass:"search-result-container m-t-15"},[e.storeFrame?[e._l(e.brandList,function(t,a){return[t.departmentList.length>0||t.storeList.length>0||t.searchList.length>0?n("div",{key:t.topDepartment.brandId+"_"+a},[n("div",[n("p",{staticClass:"brand-title"},[e._v(e._s(t.topDepartment.name))]),e._v(" "),t.departmentList.length>0?n("ul",{staticClass:"search-result-ul"},[n("p",{staticClass:"title store-frame-title"},[e._v("分组列表")]),e._v(" "),e._l(t.departmentList,function(t,a){return n("li",{key:a+"_"+t.groupId,staticClass:"group-item items",on:{click:function(n){e.handleNodeClick(t)}}},[n("i",{staticClass:"iconfont icon-tongshi-zuzhijiagou"}),e._v("\n "+e._s(t.name)+"\n ")])})],2):e._e(),e._v(" "),t.storeList.length>0?n("ul",{staticClass:"search-result-ul"},[n("p",{staticClass:"title store-frame-title"},[e._v("门店列表")]),e._v(" "),e._l(t.storeList,function(t,a){return n("li",{key:a+"_"+t.storeGroupId,staticClass:"group-item items",on:{click:function(n){e.handleStoreClick(t)}}},[n("i",{staticClass:"iconfont icon-tongshi-zuzhijiagou"}),e._v("\n "+e._s(t.storeName)+"\n ")])})],2):e._e(),e._v(" "),t.searchList.length>0?n("ul",{staticClass:"search-result-ul"},[n("p",{staticClass:"title store-frame-title"},[e._v("人员列表")]),e._v(" "),e._l(t.searchList,function(t,a){return n("li",{key:a+"_"+t.employeeClerkId,staticClass:"person-item items",on:{click:function(n){e.selectEmployee(t)}}},[n("i",{staticClass:"iconfont icon-chengyuan"}),e._v("\n "+e._s(t.name)+"\n "),n("span",{staticClass:"from-group"},[e._v(e._s(t.departmentName))])])})],2):e._e()])]):e._e()]}),e._v(" "),e.brandList.length<1?n("p",{staticClass:"no-data-tip"},[e._v("暂无数据")]):e._e()]:[e.departmentList.length>0?n("ul",{staticClass:"search-result-ul"},[n("p",{staticClass:"title"},[e._v("部门列表")]),e._v(" "),e._l(e.departmentList,function(t,a){return n("li",{key:a+"_"+t.groupId,class:["group-item items",e.defaultId==t.groupId?"active-item":""],on:{click:function(n){e.handleNodeClick(t)}}},[n("i",{staticClass:"iconfont icon-tongshi-zuzhijiagou"}),e._v("\n "+e._s(t.name)+"\n ")])})],2):e._e(),e._v(" "),e.employeeList.length>0?n("ul",{staticClass:"search-result-ul"},[n("p",{staticClass:"title"},[e._v("人员列表")]),e._v(" "),e._l(e.employeeList,function(t,a){return n("li",{key:a+"_"+t.employeeClerkId,class:["person-item items",e.defaultId==t.employeeClerkId?"active-item":""],on:{click:function(n){e.selectEmployee(t)}}},[n("i",{staticClass:"iconfont icon-chengyuan"}),e._v("\n "+e._s(t.name)+"\n "),n("span",{staticClass:"from-group"},[e._v(e._s(t.departmentName))])])})],2):e._e(),e._v(" "),e.departmentList.length<1&&e.employeeList.length<1?n("p",{staticClass:"no-data-tip"},[e._v("暂无数据")]):e._e()]],2):e._e()])},staticRenderFns:[]};var i=n("VU/8")(s,o,!1,function(e){n("JhDL")},null,null);t.a=i.exports},BDhv:function(e,t,n){var a=n("kM2E");a(a.P+a.R,"Set",{toJSON:n("m9gC")("Set")})},BQQe:function(e,t){},HpRW:function(e,t,n){"use strict";var a=n("kM2E"),s=n("lOnJ"),o=n("+ZMJ"),i=n("NWt+");e.exports=function(e){a(a.S,e,{from:function(e){var t,n,a,r,l=arguments[1];return s(this),(t=void 0!==l)&&s(l),void 0==e?new this:(n=[],t?(a=0,r=o(l,arguments[2],2),i(e,!1,function(e){n.push(r(e,a++))})):i(e,!1,n.push,n),new this(n))}})}},JhDL:function(e,t){},LIJb:function(e,t,n){var a=n("EqjI");e.exports=function(e,t){if(!a(e)||e._t!==t)throw TypeError("Incompatible receiver, "+t+" required!");return e}},ioQ5:function(e,t,n){n("HpRW")("Set")},kLcy:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=n("lHA8"),s=n.n(a),o=n("3Xzz"),i=n("ATfr"),r=n("WSbm"),l={name:"employee-table",props:{employeeList:{type:Array,default:function(){return[]}},headList:{type:Array,default:function(){return["selection","name","phoneNumber","positionName","activationStatus"]}}},data:function(){return{tableH:window.screen.availHeight-180}},methods:{selectMember:function(e){this.$emit("selectMember",e)},linkToDetail:function(e){var t="/employee?employeeClerkId="+e.employeeClerkId;this.$router.push(t)}}},c={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"employee-table"},[n("el-table",{attrs:{data:e.employeeList},on:{"selection-change":e.selectMember,"row-click":e.linkToDetail}},[e._l(e.headList,function(t){return["selection"==t?n("el-table-column",{key:t,attrs:{type:"selection",width:"42"}}):e._e(),e._v(" "),"name"==t?n("el-table-column",{key:t,attrs:{label:"姓名"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",[e._v(e._s(t.row.name))]),e._v(" "),1==t.row.isManager?n("span",{staticClass:"is-manager"},[e._v("部门负责人")]):e._e()]}}])}):e._e(),e._v(" "),"phoneNumber"==t?n("el-table-column",{key:t,attrs:{label:"手机号"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s("86"==t.row.nationcode?t.row.phoneNumber:"+"+t.row.nationcode+"-"+t.row.phoneNumber||"--")+"\n ")]}}])}):e._e(),e._v(" "),"positionName"==t?n("el-table-column",{key:t,attrs:{label:"职位",prop:"positionName"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.positionName?t.row.positionName:"--")+"\n ")]}}])}):e._e(),e._v(" "),"activationStatus"==t?n("el-table-column",{key:t,attrs:{label:"状态"},scopedSlots:e._u([{key:"default",fn:function(e){return[n("div",{staticClass:"status-icon",class:1==e.row.activationStatus?"is-active":""},[n("i",{staticClass:"iconfont icon-shouji"})])]}}])}):e._e()]})],2)],1)},staticRenderFns:[]};var u=n("VU/8")(l,c,!1,function(e){n("BQQe")},null,null).exports,d=n("P9l9"),h={name:"administrativeEstrutura",components:{navCrumb:o.a,searchMenu:i.a,employeeInfo:r.a,employeeList:u},data:function(){return{navpath:[{name:"首页",path:"/index"},{name:"企业通讯录",path:"/administrativeFrame"},{name:"行政架构",path:""}],showChildMember:!0,setDisabledDel:!1,menuData:[],pageSize:20,currentPage:1,selectedList:[],total:0,loading:!0,groupInfo:{groupName:"",departmentId:"",hasPression:""},employeeList:[],searchResult:{},showEmployee:!1,selectedEmployee:{}}},created:function(){},beforeMount:function(){this.getGroupData(),this.getEmployee()},methods:{changeRouter:function(e){this.$router.push(e)},handleSizeChange:function(e){this.pageSize=e,this.getEmployee()},handleCurrentChange:function(e){this.currentPage=e,this.getEmployee()},addSon:function(){var e="/addDepartment?type=group&addnew=1&departmentId="+this.groupInfo.departmentId;this.changeRouter(e)},goToEdit:function(e){var t=0==e?"company":"group",n="/addDepartment?departmentId="+this.groupInfo.departmentId+"&type="+t;this.changeRouter(n)},handleSearchKey:function(e){var t=this,n={keyWord:e};Object(d.a)("/haoban-manage-web/emp/searchpage",n).then(function(e){t.searchResult=e.data.result}).catch(function(e){})},handleTreeSelection:function(e,t,n){this.groupInfo.departmentId=e.groupId,this.groupInfo.groupName=e.name,this.showEmployee=n,this.groupInfo.hasPression=e.hasPression,this.groupInfo.level=e.level,this.loading=!0,this.getEmployee()},handleEmployeeSelection:function(e,t){this.selectedEmployee=e,this.showEmployee=t},selectMember:function(e){this.selectedList=e},delMembers:function(){var e=this;e.$confirm("是否要删除选中的员工?","提示",{type:"warning"}).then(function(){e.loading=!0;var t=[];if(e.selectedList.forEach(function(e){t.push(e.employeeClerkId)}),!t.length)return e.$message({message:"请选择员工",type:"warning"}),e.loading=!1,!1;var n={ids:t.join(",")};Object(d.a)("/haoban-manage-web/emp/del",n).then(function(t){if(1==t.data.errorCode){var n=e.selectedList,a=e.employeeList,o=new s.a(n),i=new s.a(a);e.employeeList=n.concat(a).filter(function(e){return!o.has(e)||!i.has(e)}),e.$message.success({message:t.data.message})}else e.$message.error({message:t.data.message});e.loading=!1}).catch(function(t){e.loading=!1,e.$message.error({message:t.message})})})},setChildMemberShow:function(){this.getEmployee()},getGroupData:function(e){var t=this;Object(d.a)("/haoban-manage-web/dept/deptListForCompany",{isStoreGroup:0}).then(function(e){t.menuData=e.data.result.departmentList||[],t.menuData.some(function(e){return 0==e.level&&(t.groupInfo.departmentId=e.groupId,t.groupInfo.groupName=e.name,t.groupInfo.hasPression=e.hasPression,t.groupInfo.level=0),0==e.level}),t.getEmployee()}).catch(function(e){console.log(e,"error")})},getEmployee:function(){var e=this,t={departmentId:e.groupInfo.departmentId,showChild:1*e.showChildMember,pageSize:e.pageSize,pageNum:e.currentPage,status:1};Object(d.a)("/haoban-manage-web/emp/findsimplepage",t).then(function(t){var n=[],a=0;1==t.data.errorCode&&(n=t.data.result&&t.data.result.list?t.data.result.list:[],a=t.data.result&&t.data.result.total?t.data.result.total:0),e.employeeList=n,e.total=a,e.loading=!1}).catch(function(t){console.log(t,"error"),e.loading=!1})}},computed:{disabledDel:function(){return!this.selectedList.length&&!this.setDisabledDel&&1!=this.groupInfo.hasPression}}},p={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"common-set-wrap admin-frame"},[n("nav-crumb",{attrs:{navpath:e.navpath}}),e._v(" "),n("div",{staticClass:"right-content"},[n("div",{staticClass:"right-box"},[n("div",{staticClass:"administrative-estrutura-container common-frame-container",style:{minHeight:e.$store.state.bgHeight}},[n("search-menu",{attrs:{treeData:e.menuData,searchResult:e.searchResult},on:{handleSearchKey:e.handleSearchKey,handleTreeSelection:e.handleTreeSelection,handleEmployeeSelection:e.handleEmployeeSelection}}),e._v(" "),"employee"==e.showEmployee?n("employee-info",{attrs:{perId:e.selectedEmployee.employeeClerkId}}):n("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"af-right-container common-right-container"},[n("div",{staticClass:"af-right-header common-right-header"},[n("span",{staticClass:"title-span"},[e._v(e._s(e.groupInfo.groupName)+"("+e._s(e.total)+"人)")]),e._v(" "),n("span",{staticClass:"id-span"},[e._v("部门ID: "+e._s(e.groupInfo.departmentId))]),e._v(" "),n("span",{staticClass:"handle-area"},[n("el-button",{staticClass:"no-bdr-btn",attrs:{disabled:1!=e.groupInfo.hasPression},on:{click:e.addSon}},[e._v("\n 添加子分组 ")]),n("span",{staticClass:"hurdle"}),n("el-button",{staticClass:"no-bdr-btn",attrs:{href:"#/addGroup?groupId="+e.groupInfo.departmentId,disabled:1!=e.groupInfo.hasPression},on:{click:function(t){e.goToEdit(e.groupInfo.level)}}},[e._v("编辑")])],1)]),e._v(" "),n("div",{staticClass:"af-right-button-box common-right-button-box"},[n("a",{on:{click:function(t){e.changeRouter("/employee?addnew=1&departmentId="+e.groupInfo.departmentId)}}},[n("el-button",{attrs:{type:"primary"}},[e._v("添加成员")])],1),e._v(" "),n("a",{on:{click:function(t){e.changeRouter("/employeeIo?importCode=employee&departmentId="+e.groupInfo.departmentId+"&showChildMember="+1*e.showChildMember)}}},[n("el-button",[e._v("批量导入/导出")])],1),e._v(" "),n("el-button",{attrs:{type:"danger",disabled:e.disabledDel},on:{click:e.delMembers}},[e._v("批量删除")]),e._v(" "),n("span",{staticClass:"J_show-children inline-block el-button"},[n("el-checkbox",{staticClass:"m-r-10",on:{change:e.setChildMemberShow},model:{value:e.showChildMember,callback:function(t){e.showChildMember=t},expression:"showChildMember"}},[e._v("显示子部门")])],1)],1),e._v(" "),n("employee-list",{attrs:{employeeList:e.employeeList},on:{selectMember:e.selectMember}}),e._v(" "),e.employeeList.length?n("div",{staticClass:"pagination"},[n("el-pagination",{attrs:{background:"","page-sizes":[20,40,60,80],"page-size":e.pageSize,"current-page":e.currentPage,layout:"total, sizes, prev, pager, next",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1):e._e()],1)],1)])]),e._v(" "),n("vue-gic-footer")],1)},staticRenderFns:[]};var f=n("VU/8")(h,p,!1,function(e){n("qxxY")},null,null);t.default=f.exports},lHA8:function(e,t,n){e.exports={default:n("pPW7"),__esModule:!0}},m9gC:function(e,t,n){var a=n("RY/4"),s=n("4WTo");e.exports=function(e){return function(){if(a(this)!=e)throw TypeError(e+"#toJSON isn't generic");return s(this)}}},oNmr:function(e,t,n){n("9Bbf")("Set")},oeOm:function(e,t,n){var a=n("7Doy");e.exports=function(e,t){return new(a(e))(t)}},pPW7:function(e,t,n){n("M6a0"),n("zQR9"),n("+tPU"),n("ttyz"),n("BDhv"),n("oNmr"),n("ioQ5"),e.exports=n("FeBl").Set},qo66:function(e,t,n){"use strict";var a=n("7KvD"),s=n("kM2E"),o=n("06OY"),i=n("S82l"),r=n("hJx8"),l=n("xH/j"),c=n("NWt+"),u=n("2KxR"),d=n("EqjI"),h=n("e6n0"),p=n("evD5").f,f=n("ALrJ")(0),m=n("+E39");e.exports=function(e,t,n,v,g,_){var y=a[e],b=y,C=g?"set":"add",k=b&&b.prototype,I={};return m&&"function"==typeof b&&(_||k.forEach&&!i(function(){(new b).entries().next()}))?(b=t(function(t,n){u(t,b,e,"_c"),t._c=new y,void 0!=n&&c(n,g,t[C],t)}),f("add,clear,delete,forEach,get,has,set,keys,values,entries,toJSON".split(","),function(e){var t="add"==e||"set"==e;e in k&&(!_||"clear"!=e)&&r(b.prototype,e,function(n,a){if(u(this,b,e),!t&&_&&!d(n))return"get"==e&&void 0;var s=this._c[e](0===n?0:n,a);return t?this:s})}),_||p(b.prototype,"size",{get:function(){return this._c.size}})):(b=v.getConstructor(t,e,g,C),l(b.prototype,n),o.NEED=!0),h(b,e),I[e]=b,s(s.G+s.W+s.F,I),_||v.setStrong(b,e,g),b}},qxxY:function(e,t){},ttyz:function(e,t,n){"use strict";var a=n("9C8M"),s=n("LIJb");e.exports=n("qo66")("Set",function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},{add:function(e){return a.def(s(this,"Set"),e=0===e?0:e,e)}},a)}});
\ No newline at end of file
webpackJsonp([6],{"1ThA":function(e,t){},"4OIh":function(e,t){},"7SJI":function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a("Xxa5"),s=a.n(r),o=a("exGp"),n=a.n(o),i=a("3Xzz"),l=a("ATfr"),c=a("P9l9"),d={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(c.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}}},u={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 p=a("VU/8")(d,u,!1,function(e){a("BQJE")},null,null).exports,m=a("Ie7z"),f=a("Ch4/"),h={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:m.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(c.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;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(c.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||"",status:e.storeStatus||"",showChild:e.showChildMember?1:0};Object(c.b)("/haoban-manage-web/store/clerk-batch-export",t).then(function(t){if(!t.data)return f.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(c.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}})}}},g={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},on:{change: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 v=a("VU/8")(h,g,!1,function(e){a("Sxtf")},"data-v-6d27ed5e",null).exports,b=a("qsKc"),I={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(c.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:"请输入品牌名称"})}}},_={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 C=a("VU/8")(I,_,!1,function(e){a("nmDM")},null,null).exports,y=a("WSbm"),k=a("oncj"),S=a("unF8"),w={name:"storeEstruturaContainer",components:{navCrumb:i.a,searchMenu:l.a,storeView:p,clerkView:v,employeeInfo:y.a,storeInfo:b.a,addBrand:C,clerkInfo:k.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}},beforeRouteUpdate:function(e,t,a){a()},methods:{changeRouter:function(e){this.$router.push(e)},handleSearchKey:function(e){var t=this,a={keyWord:e};Object(c.a)("/haoban-manage-web/store/searchpage",a).then(function(e){t.searchResult=e.data.result||{}}).catch(function(e){t.$message.error({message:e.message})})},handleEmployeeSelection:function(e,t){var a=this;return n()(s.a.mark(function r(){return s.a.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return a.perId=e.employeeClerkId,a.userId=e.brandId,a.showEmployee=t,r.next=5,a.getGicData();case 5:case"end":return r.stop()}},r,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){var a=this,r={storeId:e.storeId};Object(c.a)("/haoban-manage-web/store/findStoreById",r).then(function(e){1==e.data.errorCode?(a.storeInfo=e.data.result,a.groupInfo.brandId=e.data.result.brandId,a.showEmployee=t,a.getGicData()):a.$message.error({message:e.data.message})})},handleSizeChange:function(e){this.pageSize=e,this.getStoreList()},handleCurrentChange:function(e){this.pageNumber=e,this.getStoreList()},switchView:function(e){this.pageSize=20,this.pageNumber=1,this.storeList=[],this.showChildMember=!0,this.storeStatus="",this.getStoreList()},setChildMemberShow:function(e){this.showChildMember=e,this.getStoreList()},refreshClerkData:function(){this.getStoreList()},getGroupData:function(){var e=this;Object(c.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(){var e=this;if(!e.groupInfo.departmentId)return e.loading=!1,!1;e.loading=!0;var t={storeGroupId:e.groupInfo.departmentId,showChild:1*e.showChildMember,showType:e.tableView,pageSize:e.pageSize,pageNum:e.pageNumber,status:e.storeStatus,storeType:e.storeType,activationStatus:e.activationStatus};Object(c.a)("/haoban-manage-web/store/findSimplePage",t).then(function(t){1==t.data.errorCode?(e.loading=!1,e.total=t.data.result.total,t.data.result.list&&t.data.result.list.length&&t.data.result.list.forEach(function(e,t){e.popVisible=!1,e.clerks&&e.clerks.length&&e.clerks.forEach(function(e,t){e.popVisible=!1})}),e.storeList=t.data.result.list||[],e.getRecycle()):(e.loading=!1,e.storeList=[],e.$message.error({duration:1e3,message:t.data.message}))}).catch(function(t){e.loading=!1,e.$message.error({duration:1e3,message:t.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(c.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 n()(s.a.mark(function t(){var a,r,o,n;return s.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(S.a)(r);case 9:o=t.sent,1==(n=o.data).errorCode?a.gicFlag=n.result:f.a.errorMsg(n);case 12:case"end":return t.stop()}},t,e)}))()}},beforeMount:function(){this.getGroupData()},mounted:function(){this.disableBtn=!1}},D={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:{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 L=a("VU/8")(w,D,!1,function(e){a("4OIh")},null,null);t.default=L.exports},"9prw":function(e,t){},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")})},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:"姓名/手机号/部门/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("9prw")},null,null);t.a=n.exports},BQJE:function(e,t){},Sxtf:function(e,t){},bY6o: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)}}},d={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 u=a("VU/8")(c,d,!1,function(e){a("bY6o")},null,null);t.a=u.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"),d=a.n(c),u=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(d()(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(d()(e.storeInfoData)),r=[];e.storeInfoData.imageUrls.forEach(function(e){r.push(e.url)}),a.imageUrls=r.join(","),Object(u.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(d()(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){},"7SJI":function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a("Xxa5"),s=a.n(r),o=a("exGp"),n=a.n(o),i=a("3Xzz"),l=a("ATfr"),c=a("P9l9"),d={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(c.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}}},u={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 p=a("VU/8")(d,u,!1,function(e){a("BQJE")},null,null).exports,m=a("Ie7z"),f=a("Ch4/"),h={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:m.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(c.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;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(c.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||"",status:e.storeStatus||"",showChild:e.showChildMember?1:0};Object(c.b)("/haoban-manage-web/store/clerk-batch-export",t).then(function(t){if(!t.data)return f.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(c.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}})}}},g={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},on:{change: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 v=a("VU/8")(h,g,!1,function(e){a("Sxtf")},"data-v-6d27ed5e",null).exports,b=a("qsKc"),I={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(c.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:"请输入品牌名称"})}}},_={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 y=a("VU/8")(I,_,!1,function(e){a("nmDM")},null,null).exports,C=a("WSbm"),k=a("oncj"),S=a("unF8"),w={name:"storeEstruturaContainer",components:{navCrumb:i.a,searchMenu:l.a,storeView:p,clerkView:v,employeeInfo:C.a,storeInfo:b.a,addBrand:y,clerkInfo:k.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}},beforeRouteUpdate:function(e,t,a){a()},methods:{changeRouter:function(e){this.$router.push(e)},handleSearchKey:function(e){var t=this,a={keyWord:e};Object(c.a)("/haoban-manage-web/store/searchpage",a).then(function(e){t.searchResult=e.data.result||{}}).catch(function(e){t.$message.error({message:e.message})})},handleEmployeeSelection:function(e,t){var a=this;return n()(s.a.mark(function r(){return s.a.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return console.log("employee, type:",e,t),a.perId=e.employeeClerkId,a.userId=e.brandId,a.showEmployee=t,r.next=6,a.getGicData();case 6:case"end":return r.stop()}},r,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){var a=this,r={storeId:e.storeId};Object(c.a)("/haoban-manage-web/store/findStoreById",r).then(function(e){1==e.data.errorCode?(a.storeInfo=e.data.result,a.groupInfo.brandId=e.data.result.brandId,a.showEmployee=t,a.getGicData()):a.$message.error({message:e.data.message})})},handleSizeChange:function(e){this.pageSize=e,this.getStoreList()},handleCurrentChange:function(e){this.pageNumber=e,this.getStoreList()},switchView:function(e){this.pageSize=20,this.pageNumber=1,this.storeList=[],this.showChildMember=!0,this.storeStatus="",this.getStoreList()},setChildMemberShow:function(e){this.showChildMember=e,this.getStoreList()},refreshClerkData:function(){this.getStoreList()},getGroupData:function(){var e=this;Object(c.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(){var e=this;if(!e.groupInfo.departmentId)return e.loading=!1,!1;e.loading=!0;var t={storeGroupId:e.groupInfo.departmentId,showChild:1*e.showChildMember,showType:e.tableView,pageSize:e.pageSize,pageNum:e.pageNumber,status:e.storeStatus,storeType:e.storeType,activationStatus:e.activationStatus};Object(c.a)("/haoban-manage-web/store/findSimplePage",t).then(function(t){1==t.data.errorCode?(e.loading=!1,e.total=t.data.result.total,t.data.result.list&&t.data.result.list.length&&t.data.result.list.forEach(function(e,t){e.popVisible=!1,e.clerks&&e.clerks.length&&e.clerks.forEach(function(e,t){e.popVisible=!1})}),e.storeList=t.data.result.list||[],e.getRecycle()):(e.loading=!1,e.storeList=[],e.$message.error({duration:1e3,message:t.data.message}))}).catch(function(t){e.loading=!1,e.$message.error({duration:1e3,message:t.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(c.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 n()(s.a.mark(function t(){var a,r,o,n;return s.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(S.a)(r);case 9:o=t.sent,1==(n=o.data).errorCode?a.gicFlag=n.result:f.a.errorMsg(n);case 12:case"end":return t.stop()}},t,e)}))()}},beforeMount:function(){this.getGroupData()},mounted:function(){this.disableBtn=!1}},D={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:{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 L=a("VU/8")(w,D,!1,function(e){a("yj4W")},null,null);t.default=L.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")})},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:"/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("JhDL")},null,null);t.a=n.exports},BQJE:function(e,t){},JhDL:function(e,t){},Sxtf:function(e,t){},bY6o: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)}}},d={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 u=a("VU/8")(c,d,!1,function(e){a("bY6o")},null,null);t.a=u.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"),d=a.n(c),u=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(d()(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(d()(e.storeInfoData)),r=[];e.storeInfoData.imageUrls.forEach(function(e){r.push(e.url)}),a.imageUrls=r.join(","),Object(u.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(d()(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},yj4W:function(e,t){}});
\ No newline at end of file
webpackJsonp([8],{J8vX:function(e,t){},NNAT:function(e,t,i){"use strict";var o=i("fZjL"),a=i.n(o),s=i("mvHQ"),n=i.n(s),r=i("P9l9"),l=i("Xxa5"),c=i.n(l),d=i("exGp"),h=i.n(d),u=i("0xDb"),p=i("unF8"),m=i("Ch4/"),f={name:"list-item",props:{item:{type:String,required:!0}},filters:{formatDate:u.b},data:function(){return{typeList:["全部","全职","兼职","外包","实习","无类型"],statusList:["全部","正式","试用","离职"],reasons:["","家庭原因","个人原因","发展原因","合同到期不续签","协议解除","无法胜任工作","经济性裁员","严重违法违纪","其他"],propList:{headPic:{label:"",slot:!0,width:50},clerkName:{label:"姓名",width:90},clerkPhone:{label:"手机号"},groupName:{label:"部门"},clerkCode:{label:"code"},positionName:{label:"职位"},clerkType:{label:"员工类型",slot:!0},clerkStatus:{label:"员工状态",slot:!0},hireDate:{label:"入职日期",needSort:"custom",slot:!0},correctionDate:{label:"转正日期",needSort:"custom",slot:!0},fireDate:{label:"离职日期",needSort:"custom",slot:!0},fireReason:{label:"离职原因",slot:!0},handleEmployee:{label:"操作",slot:!0},handleUnEmployee:{label:"操作",slot:!0}}}},methods:{changeRouter:function(e){this.$router.push(e)},callHandle:function(e){if("编辑员工资料"!=e.typeTitle)this.$emit("callHandle",e.obj,e.type,e.typeTitle);else{var t="/recordInfo?recordId="+e.obj.recordId;this.changeRouter(t)}},getGicData:function(e){var t=this;return h()(c.a.mark(function i(){var o,a,s,n;return c.a.wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return o=t,a={type:3,businessId:e.obj.recordId},i.next=4,Object(p.a)(a);case 4:if(s=i.sent,1!=(n=s.data).errorCode){i.next=12;break}if(!n.result){i.next=10;break}return o.$message.error({duration:1e3,message:"已经与 GIC 门店同步,暂无操作权限"}),i.abrupt("return",!1);case 10:i.next=13;break;case 12:m.a.errorMsg(n);case 13:case"end":return i.stop()}},i,t)}))()}},mounted:function(){}},v={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return e.propList[e.item].slot?i("el-table-column",{attrs:{label:e.propList[e.item].label,width:e.propList[e.item].width,sortable:e.propList[e.item].needSort,prop:e.item},scopedSlots:e._u([{key:"default",fn:function(t){return["clerkType"==e.item?i("div",[e._v("\n "+e._s(e.typeList[t.row[e.item]||5])+"\n ")]):e._e(),e._v(" "),"clerkStatus"==e.item?i("div",[e._v("\n "+e._s(e.statusList[t.row[e.item]]||"无状态")+"\n ")]):"hireDate"==e.item||"correctionDate"==e.item||"fireDate"==e.item?i("div",[e._v("\n "+e._s(e._f("formatDate")(t.row[e.item],"YY-MM-DD")||"--")+"\n ")]):"headPic"==e.item?i("div",[t.row[e.item]?i("img",{staticClass:"header-pic",attrs:{src:t.row[e.item]}}):i("div",{staticClass:"replace-head-img"},[i("i",{staticClass:"iconfont icon-yewuduanmorentouxian"})])]):"fireReason"==e.item?i("div",[e._v("\n "+e._s(e.reasons[t.row[e.item]]||"--")+"\n ")]):"handleEmployee"==e.item?i("div",[i("div",{staticClass:"table-handle"},[i("el-dropdown",{staticClass:"more",on:{command:e.callHandle}},[i("span",{staticClass:"el-dropdown-link"},[e._v(" 更多"),i("i",{staticClass:"el-icon-arrow-down el-icon--right"})]),e._v(" "),i("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[2==t.row.clerkStatus?[i("el-dropdown-item",{attrs:{command:{obj:t.row,type:"turnPositive",typeTitle:"办理转正"}}},[e._v("办理转正")]),e._v(" "),i("el-dropdown-item",{attrs:{command:{obj:t.row,type:"eidtCorrectionTime",typeTitle:"修改转正时间"}}},[e._v("修改转正时间")])]:e._e(),e._v(" "),i("el-dropdown-item",{attrs:{command:{obj:t.row,type:"editEmployee",typeTitle:"编辑员工资料"}}},[e._v("编辑员工资料")]),e._v(" "),i("el-dropdown-item",{attrs:{command:{obj:t.row,type:"resignation",typeTitle:"办理离职"}}},[e._v("办理离职")])],2)],1)],1)]):"handleUnEmployee"==e.item?i("div",[i("div",{staticClass:"table-handle"},[i("a",{staticClass:"a-href",on:{click:function(i){e.changeRouter("/recordInfo?recordId="+t.row.recordId+"&type=unemployee")}}},[e._v("编辑")])])]):e._e()]}}])}):"clerkPhone"!=e.item?i("el-table-column",{attrs:{"class-name":"clerkName"==e.item?"control-width":"",label:e.propList[e.item].label,width:e.propList[e.item].width,prop:e.item,"show-overflow-tooltip":""}}):"clerkPhone"==e.item?i("el-table-column",{attrs:{"class-name":"clerkName"==e.item?"control-width":"",label:e.propList[e.item].label,width:e.propList[e.item].width,prop:e.item,"show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s("86"==t.row.nationcode||null==t.row.nationcode?t.row.clerkPhone:"+"+t.row.nationcode+"-"+t.row.clerkPhone)+"\n ")]}}])}):e._e()},staticRenderFns:[]};var g=i("VU/8")(f,v,!1,function(e){i("yjiq")},null,null).exports,k=i("IVno"),y=i("Ie7z"),C=i("c4uw"),b={name:"employeeRecordList",props:{isUnEmployee:{type:Boolean,default:!1}},components:{listItem:g,handleDialog:k.a,vueSelectStore:y.a,vueSelectEmployee:C.a},data:function(){return{tableH:window.screen.availHeight-440-160,pickerOptions2:{shortcuts:[{text:"最近一周",onClick:function(e){var t=new Date,i=new Date;i.setTime(i.getTime()-6048e5),e.$emit("pick",[i,t])}},{text:"最近一个月",onClick:function(e){var t=new Date,i=new Date;i.setTime(i.getTime()-2592e6),e.$emit("pick",[i,t])}},{text:"最近三个月",onClick:function(e){var t=new Date,i=new Date;i.setTime(i.getTime()-7776e6),e.$emit("pick",[i,t])}}]},employeeList:[],pageNum:1,pageSize:20,sortType:"desc",sortColumn:"hireDate",statusList:[{label:"全部状态",id:"0"},{label:"正式",id:"1"},{label:"试用",id:"2"},{label:"无状态",id:"-1"}],typeLsit:["全部类型","全职","兼职","外包","实习","无类型"],clerkType:0,clerkStatus:"0",total:0,handleType:"turnPositive",typeTitle:"",dialogVisible:!1,employeeObj:{},fireDate:[],startDate:"",endDate:"",showSelector:!0,searchParam:"",departMentSet:{},storeSet:{},treeData:{},selectionList:[],disabled:!0,chooseClerkIdList:[],chooseGroupIdList:[],chooseStoreIdList:[],adDefaultSelection:[],changed:0,defaultStoreList:[],treeSetDepart:{isSelectPerson:!0,dialogVisible:!1,isSingle:!1,openNextBool:!0},treeSetStore:{isSelectPerson:!0,dialogVisible:!1,isSingle:!1,openNextBool:!0}}},methods:{searchFn:function(){this.getEmloyeeList()},getGroupData:function(){var e=this;Object(r.a)("/haoban-manage-web/dept/deptListForCompany",{isStoreGroup:0}).then(function(t){var i=[],o=[];1==t.data.errorCode&&(i=t.data.result.departmentList||[],o=t.data.result.searchList||[]),e.treeData={treeData:i,personData:o},e.disabled=!1}).catch(function(e){})},callSelector:function(){this.treeSetDepart.dialogVisible=!0},callStoreSelector:function(){this.treeSetStore.dialogVisible=!0},showExportSet:function(){if(this.isUnEmployee){var e=window.location.origin;-1!=e.indexOf("localhost")&&(e="http://www.gicdev.com");var t=0==this.clerkType?"":this.clerkType;location.href=e+"/haoban-manage-web/record/export-fire-employee-record?clerkType="+t+"&sortType="+this.sortType+"&sortColumn="+this.sortColumn+"&startDate="+this.startDate+"&endDate="+this.endDate+"&searchParam="+this.searchParam+"&chooseClerkIdList="+this.chooseClerkIdList.join(",")+"&chooseGroupIdList="+this.chooseGroupIdList.join(",")+"&chooseStoreIdList="+this.chooseStoreIdList.join(",")}else this.$emit("showExportSetFn")},handleSelectedList:function(e){this.adDefaultSelection=e||[],this.concatList()},handleStoreSelectedList:function(e){this.defaultStoreList=e||[],this.concatList()},concatList:function(){this.selectionList=this.adDefaultSelection.concat(this.defaultStoreList),this.formatSelectionList(this.selectionList)},formatSelectionList:function(e){var t=this,i=t.unique(e);t.selectionList=i,t.chooseClerkIdList=[],t.chooseStoreIdList=[],t.chooseGroupIdList=[],i.length&&i.forEach(function(e){1==e.type?t.chooseClerkIdList.push(e.employeeClerkId):3==e.type?t.chooseStoreIdList.push(e.storeId):2==e.type&&t.chooseGroupIdList.push(e.groupId)}),t.pageNum=1,t.getEmloyeeList()},unique:function(e){var t={};return e.forEach(function(e){t[n()(e)]=e}),e=a()(t).map(function(e){return JSON.parse(e)})},delSld:function(e,t){var i=this,o=i.selectionList.indexOf(e);i.selectionList.splice(o,1),(3==e.type||e.hasOwnProperty("isStoreGroup")&&1==e.isStoreGroup||e.hasOwnProperty("isClerk")&&1==e.isClerk)&&i.defaultStoreList.forEach(function(t,o){t.id==e.id&&i.defaultStoreList.splice(o,1)}),(e.hasOwnProperty("isStoreGroup")&&0==e.isStoreGroup||e.hasOwnProperty("isClerk")&&0==e.isClerk)&&i.adDefaultSelection.forEach(function(t,o){t.id==e.id&&i.adDefaultSelection.splice(o,1)}),i.formatSelectionList(i.selectionList),i.changed+=1},handleSuccess:function(){this.dialogVisible=!1,this.getEmloyeeList()},callHandle:function(e,t,i){this.handleType=t,this.employeeObj=e,this.typeTitle=i,this.dialogVisible=!0},handleSizeChange:function(e){this.pageSize=e,this.getEmloyeeList()},handleCurrentChange:function(e){this.pageNum=e,this.getEmloyeeList()},sortList:function(e){this.sortColumn=e.prop,this.sortType="descending"==e.order?"desc":"asc",this.getEmloyeeList()},reGetList:function(){this.getEmloyeeList()},getEmloyeeList:function(){var e=this,t=e.isUnEmployee,i=t?"/haoban-manage-web/record/find-fire-employee-record-page":"/haoban-manage-web/record/find-on-work-employee-record-page",o={pageNum:e.pageNum,chooseClerkIdList:e.chooseClerkIdList.join(","),chooseGroupIdList:e.chooseGroupIdList.join(","),chooseStoreIdList:e.chooseStoreIdList.join(","),pageSize:e.pageSize,sortType:e.sortType,clerkStatus:0==e.clerkStatus?"":e.clerkStatus,sortColumn:e.sortColumn,clerkType:0==e.clerkType?"":e.clerkType,startDate:e.startDate,endDate:e.endDate,searchParam:e.searchParam};Object(r.a)(i,o).then(function(i){1==i.data.errorCode?(e.employeeList=i.data.result.list,e.total=t?i.data.result.total:i.data.result.pageInfo.total):e.$message.error({message:i.data.message})}).catch(function(t){e.$message({message:t.message})})},selectDate:function(e){e?(this.startDate=e[0],this.endDate=e[1]):(this.startDate="",this.endDate=""),this.getEmloyeeList()}},beforeMount:function(){this.getEmloyeeList(),this.getGroupData()},computed:{propList:function(){return this.isUnEmployee?["headPic","clerkName","clerkPhone","groupName","clerkCode","positionName","clerkType","clerkStatus","hireDate","fireDate","fireReason","handleUnEmployee"]:["headPic","clerkName","clerkPhone","groupName","clerkCode","positionName","clerkType","clerkStatus","hireDate","correctionDate","handleEmployee"]}}},S={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"e-r-l-container"},[i("div",{staticClass:"handle-area"},[i("div",{staticClass:"flex1"},[i("el-button",{staticStyle:{"margin-right":"10px",height:"32px"},attrs:{disabled:e.disabled},on:{click:e.callSelector}},[e._v("行政架构选人")]),e._v(" "),i("el-button",{staticStyle:{"margin-right":"10px",height:"32px"},on:{click:e.callStoreSelector}},[e._v("门店架构选人")]),e._v(" "),e.isUnEmployee?i("div",{staticClass:"block"},[i("span",{staticClass:"demonstration"},[e._v("离职日期")]),e._v(" "),i("el-date-picker",{attrs:{type:"daterange",align:"right","value-format":"yyyy-MM-dd","unlink-panels":"","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期","picker-options":e.pickerOptions2},on:{change:e.selectDate},model:{value:e.fireDate,callback:function(t){e.fireDate=t},expression:"fireDate"}})],1):[i("el-select",{staticClass:"m-r-10 w-130",attrs:{placeholder:"选择类型"},on:{change:e.reGetList},model:{value:e.clerkType,callback:function(t){e.clerkType=t},expression:"clerkType"}},e._l(e.typeLsit,function(e,t){return i("el-option",{key:t,attrs:{label:e,value:t}})})),e._v(" "),i("el-select",{staticClass:"w-130",attrs:{placeholder:"选择状态"},on:{change:e.reGetList},model:{value:e.clerkStatus,callback:function(t){e.clerkStatus=t},expression:"clerkStatus"}},e._l(e.statusList,function(e,t){return i("el-option",{key:t,attrs:{label:e.label,value:e.id}})})),e._v(" "),i("span",{staticClass:"demonstration p-l-10",staticStyle:{"line-height":"34px","white-space":"nowrap"}},[e._v("入职时间")]),e._v(" "),i("el-date-picker",{attrs:{type:"daterange",align:"right","value-format":"yyyy-MM-dd","unlink-panels":"","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期","picker-options":e.pickerOptions2},on:{change:e.selectDate},model:{value:e.fireDate,callback:function(t){e.fireDate=t},expression:"fireDate"}})],e._v(" "),i("el-input",{staticStyle:{width:"218px","margin-left":"10px"},attrs:{placeholder:"请输入姓名/手机号/code",clearable:""},on:{clear:e.searchFn},nativeOn:{keyup:function(t){return"button"in t||!e._k(t.keyCode,"enter",13,t.key,"Enter")?e.searchFn(t):null}},model:{value:e.searchParam,callback:function(t){e.searchParam=t},expression:"searchParam"}})],2),e._v(" "),i("el-button",{attrs:{type:"primary"},on:{click:e.showExportSet}},[i("i",{staticClass:"iconfont icon-icon_yunxiazai p-r-6"}),e._v("导出")])],1),e._v(" "),e.selectionList.length?i("ul",{staticClass:"selector-selected-list"},[e._l(e.selectionList,function(t,o){return[i("li",{key:o+t.id+t.label,staticClass:"sld"},[e._v(e._s(t.label)+" "),i("i",{staticClass:"el-icon-close",on:{click:function(i){e.delSld(t,t.isStoreGroup)}}})])]}),e._v(" "),i("li",{staticClass:"sld tip"},[e._v("共筛选出"+e._s(e.total)+"人")])],2):e._e(),e._v(" "),i("el-table",{staticClass:"list-table",attrs:{data:e.employeeList,"default-sort":{prop:"hireDate",order:"descending"}},on:{"sort-change":e.sortList}},[e._l(e.propList,function(t){return[i("list-item",{key:t,attrs:{item:t},on:{callHandle:e.callHandle}})]})],2),e._v(" "),e.employeeList.length?i("el-pagination",{staticClass:"pagination",attrs:{background:"","page-sizes":[20,40,60,80],"page-size":e.pageSize,"current-page":e.pageNum,layout:"total, sizes, prev, pager, next",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}}):e._e(),e._v(" "),i("el-dialog",{attrs:{title:e.typeTitle,visible:e.dialogVisible,width:"480px"},on:{"update:visible":function(t){e.dialogVisible=t}}},[i("handle-dialog",{attrs:{employee:e.employeeObj,handleType:e.handleType,typeTitle:e.typeTitle},on:{handleSuccess:e.handleSuccess}})],1),e._v(" "),i("vue-select-store",{ref:"storeSelector",attrs:{defaultList:e.defaultStoreList,treeSet:e.treeSetStore},on:{handleSelectedList:e.handleStoreSelectedList}}),e._v(" "),i("vue-select-employee",{ref:"departmentSelector",attrs:{treeSet:e.treeSetDepart,changed:e.changed,treeData:e.treeData,defaultSelection:e.adDefaultSelection},on:{handleSelectedList:e.handleSelectedList}})],1)},staticRenderFns:[]};var L=i("VU/8")(b,S,!1,function(e){i("ZtD+")},null,null);t.a=L.exports},O3H5:function(e,t,i){"use strict";var o=i("mvHQ"),a=i.n(o),s=i("P9l9"),n=i("DAYN"),r={name:"export-set",components:{draggable:i.n(n).a},data:function(){return{tempList:[],checkList:[],origin:[],checkAll:!1,isIndeterminate:!1,checkedList:[]}},methods:{deleteField:function(e){this.checkedList.splice(e,1);var t=this.checkedList.map(function(e){return e.fieldCode});this.origin.forEach(function(e,i){t.includes(e.fieldCode)?e.checked=!0:e.checked=!1}),this.checkHalf()},checkHalf:function(){if(0===this.checkedList.length)return this.isIndeterminate=!1,!1;this.checkedList.length===this.origin.length?this.isIndeterminate=!1:this.isIndeterminate=!0},checkThis:function(e){var t=this;e.checked?t.checkedList.push(e):t.checkedList.forEach(function(i,o){i.fieldCode===e.fieldCode&&t.checkedList.splice(o,1)}),t.checkHalf()},handleCheckAllChange:function(e){this.checkedList=[],this.origin.forEach(function(t,i){t.checked=e,e&&(t.order=i+1)}),e&&(this.checkedList=this.origin.slice(0)),this.checkHalf()},getTemplate:function(){var e=this;Object(s.a)("/haoban-manage-web/record/employee-find-template",{}).then(function(t){1==t.data.errorCode?e.formatTemplateList(t.data.result):e.$message.error({message:t.data.message})}).catch(function(t){e.$message.error({message:t.message})})},formatTemplateList:function(e){var t=[],i=[],o=e;e.forEach(function(e){e.title=e.fieldName,e.name=e.fieldName,e.checked=!1;var i=[];o.forEach(function(t){t.parentCode==e.fieldCode&&i.push(t)}),i.sort(function(e,t){return 1*e.sort-1*t.sort}),i.length>0&&(e.childrens=i),0==e.parentCode&&t.push(e)}),t.sort(function(e,t){return 1*e.sort-1*t.sort}),t.forEach(function(e){i=i.concat(e.childrens)}),this.origin=i,this.tempList=t},cancelCho:function(){this.origin.forEach(function(e){e.checked=!1}),this.$emit("cancelCho")},exportCho:function(){var e=[];this.checkedList.forEach(function(t){t.checked&&e.push({fieldCode:t.fieldCode,fieldName:t.fieldName})});a()(e);var t=window.location.origin;-1!=t.indexOf("localhost")&&(t="http://www.gicdev.com"),location.href=t+"/haoban-manage-web/record/define-export?exportTitleContent="+a()(e),this.$emit("cancelCho")}},beforeMount:function(){this.getTemplate()}},l={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"export-set-container"},[e._m(0),e._v(" "),i("div",{staticClass:"cho-list"},[i("draggable",{model:{value:e.checkedList,callback:function(t){e.checkedList=t},expression:"checkedList"}},[e._l(e.checkedList,function(t,o){return[t.checked?i("div",{key:t.fieldCode+o,staticClass:"cho"},[e._v(e._s(t.fieldName)+" "),i("i",{staticClass:"el-icon-circle-close",on:{click:function(t){e.deleteField(o)}}})]):e._e()]})],2)],1),e._v(" "),i("div",{staticClass:"cho-area"},[i("div",{staticClass:"title"},[e._v("选择需要导出的字段")]),e._v(" "),i("div",{staticClass:"cho-area-group"},[i("div",{staticClass:"group-div"},[i("div",{staticClass:"group-title"}),e._v(" "),i("ul",{staticClass:"group-son-list"},[i("el-checkbox",{attrs:{indeterminate:e.isIndeterminate},on:{change:e.handleCheckAllChange},model:{value:e.checkAll,callback:function(t){e.checkAll=t},expression:"checkAll"}},[e._v("全选")])],1)]),e._v(" "),e._l(e.tempList,function(t,o){return i("div",{key:t.fieldCode+o,staticClass:"group-div"},[i("div",{staticClass:"group-title"},[e._v(e._s(t.title))]),e._v(" "),i("ul",{staticClass:"group-son-list"},[e._l(e.origin,function(o){return[o.parentCode==t.fieldCode?i("li",{key:o.fieldCode},[i("el-checkbox",{key:o.fieldCode,attrs:{label:o.fieldName},on:{change:function(t){e.checkThis(o)}},model:{value:o.checked,callback:function(t){e.$set(o,"checked",t)},expression:"items.checked"}},[e._v(e._s(o.fieldName))])],1):e._e()]})],2)])})],2)]),e._v(" "),i("div",{staticClass:"handle-cho-btn"},[i("el-button",{staticClass:"export-btn",attrs:{type:"primary",disabled:e.checkedList.length<1},on:{click:e.exportCho}},[i("i",{staticClass:"iconfont icon-icon_yunxiazai p-r-6"}),e._v("导出")]),e._v(" "),i("el-button",{on:{click:e.cancelCho}},[e._v("取消")])],1)])},staticRenderFns:[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"title"},[this._v("已选择字段"),t("span",[this._v("导出的列表中将按顺序显示这些字段(可拖拽排序)")])])}]};var c=i("VU/8")(r,l,!1,function(e){i("J8vX")},null,null);t.a=c.exports},"ZtD+":function(e,t){},nyZT:function(e,t){},yjiq:function(e,t){},zGJY:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=i("3Xzz"),a=i("P9l9"),s=i("O3H5"),n=i("NNAT"),r={name:"employeeRecord",components:{navCrumb:o.a,employeeList:n.a,exportSet:s.a},data:function(){return{navpath:[{name:"首页",path:"/index"},{name:"通讯录",path:"/administrativeFrame"},{name:"员工档案",path:"/fileSet"},{name:"在职员工",path:""}],typeObj:{onWorkCout:"在职员工",allWorkCount:"全职",partTimeWorkCount:"兼职",outWorkCount:"外包",practiceWorkCount:"实习",noTypeWorkCount:"无类型",regularCount:"正式",onTrialCount:"试用",noStatusCount:"无状态"},otherSet:{},countObj:{},showExportSet:!1}},methods:{changeRouter:function(e){this.$router.push(e)},cancelCho:function(){this.showExportSet=!1},showExportSetFn:function(){this.showExportSet=!0},getEmployeeCount:function(){var e=this;Object(a.a)("/haoban-manage-web/record/employee-count-detail",{}).then(function(t){1==t.data.errorCode?e.countObj=t.data.result:e.$message.error({message:t.data.message})}).catch(function(t){e.$message.error({message:t.message})})}},beforeMount:function(){this.getEmployeeCount(),this.$nextTick(function(){document.querySelector(".contact-wrap__body").style.overflow="hidden"})},beforeDestroy:function(){document.querySelector(".contact-wrap__body").style.overflow="auto"}},l={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"common-set-wrap employee-record-wrap"},[i("nav-crumb",{attrs:{navpath:e.navpath,slotFlag:!0}},[[i("div",{staticClass:"top-area"},[i("div",{staticClass:"top-title"},[i("span",{staticClass:"title-span"},[e._v("在职员工")]),e._v(" "),i("a",{on:{click:function(t){e.changeRouter("/recordIo?importCode=record")}}},[i("el-button",{attrs:{type:"primary"}},[e._v("导入员工档案"),i("i",{staticClass:"el-icon-upload el-icon--right"})])],1)]),e._v(" "),i("div",{staticClass:"e-type-num-title"},e._l(e.countObj,function(t,o){return i("div",{key:o,staticClass:"type-cell",class:"onWorkCout"==o||"noTypeWorkCount"==o?"with-bdr":""},[i("p",{staticClass:"type-name"},[e._v(e._s(e.typeObj[o]))]),e._v(" "),i("p",{staticClass:"num"},[e._v(e._s(t))])])}))])]],2),e._v(" "),i("div",{staticClass:"right-content"},[i("div",{staticClass:"right-box"},[i("div",{staticClass:"e-record-container"},[e.showExportSet?[i("export-set",{attrs:{otherSet:e.otherSet},on:{cancelCho:e.cancelCho}})]:[i("employee-list",{on:{showExportSetFn:e.showExportSetFn}})]],2)])]),e._v(" "),i("vue-gic-footer")],1)},staticRenderFns:[]};var c=i("VU/8")(r,l,!1,function(e){i("nyZT")},null,null);t.default=c.exports}});
\ No newline at end of file
webpackJsonp([8],{J8vX:function(e,t){},NNAT:function(e,t,i){"use strict";var o=i("fZjL"),a=i.n(o),s=i("mvHQ"),n=i.n(s),r=i("P9l9"),l=i("Xxa5"),c=i.n(l),d=i("exGp"),h=i.n(d),u=i("0xDb"),p=i("unF8"),m=i("Ch4/"),f={name:"list-item",props:{item:{type:String,required:!0}},filters:{formatDate:u.b},data:function(){return{typeList:["全部","全职","兼职","外包","实习","无类型"],statusList:["全部","正式","试用","离职"],reasons:["","家庭原因","个人原因","发展原因","合同到期不续签","协议解除","无法胜任工作","经济性裁员","严重违法违纪","其他"],propList:{headPic:{label:"",slot:!0,width:50},clerkName:{label:"姓名",width:90},clerkPhone:{label:"手机号"},groupName:{label:"部门"},clerkCode:{label:"code"},positionName:{label:"职位"},clerkType:{label:"员工类型",slot:!0},clerkStatus:{label:"员工状态",slot:!0},hireDate:{label:"入职日期",needSort:"custom",slot:!0},correctionDate:{label:"转正日期",needSort:"custom",slot:!0},fireDate:{label:"离职日期",needSort:"custom",slot:!0},fireReason:{label:"离职原因",slot:!0},handleEmployee:{label:"操作",slot:!0},handleUnEmployee:{label:"操作",slot:!0}}}},methods:{changeRouter:function(e){this.$router.push(e)},callHandle:function(e){if("编辑员工资料"!=e.typeTitle)this.$emit("callHandle",e.obj,e.type,e.typeTitle);else{var t="/recordInfo?recordId="+e.obj.recordId;this.changeRouter(t)}},getGicData:function(e){var t=this;return h()(c.a.mark(function i(){var o,a,s,n;return c.a.wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return o=t,a={type:3,businessId:e.obj.recordId},i.next=4,Object(p.a)(a);case 4:if(s=i.sent,1!=(n=s.data).errorCode){i.next=12;break}if(!n.result){i.next=10;break}return o.$message.error({duration:1e3,message:"已经与 GIC 门店同步,暂无操作权限"}),i.abrupt("return",!1);case 10:i.next=13;break;case 12:m.a.errorMsg(n);case 13:case"end":return i.stop()}},i,t)}))()}},mounted:function(){}},v={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return e.propList[e.item].slot?i("el-table-column",{attrs:{label:e.propList[e.item].label,width:e.propList[e.item].width,sortable:e.propList[e.item].needSort,prop:e.item},scopedSlots:e._u([{key:"default",fn:function(t){return["clerkType"==e.item?i("div",[e._v("\n "+e._s(e.typeList[t.row[e.item]||5])+"\n ")]):e._e(),e._v(" "),"clerkStatus"==e.item?i("div",[e._v("\n "+e._s(e.statusList[t.row[e.item]]||"无状态")+"\n ")]):"hireDate"==e.item||"correctionDate"==e.item||"fireDate"==e.item?i("div",[e._v("\n "+e._s(e._f("formatDate")(t.row[e.item],"YY-MM-DD")||"--")+"\n ")]):"headPic"==e.item?i("div",[t.row[e.item]?i("img",{staticClass:"header-pic",attrs:{src:t.row[e.item]}}):i("div",{staticClass:"replace-head-img"},[i("i",{staticClass:"iconfont icon-yewuduanmorentouxian"})])]):"fireReason"==e.item?i("div",[e._v("\n "+e._s(e.reasons[t.row[e.item]]||"--")+"\n ")]):"handleEmployee"==e.item?i("div",[i("div",{staticClass:"table-handle"},[i("el-dropdown",{staticClass:"more",on:{command:e.callHandle}},[i("span",{staticClass:"el-dropdown-link"},[e._v(" 更多"),i("i",{staticClass:"el-icon-arrow-down el-icon--right"})]),e._v(" "),i("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[2==t.row.clerkStatus?[i("el-dropdown-item",{attrs:{command:{obj:t.row,type:"turnPositive",typeTitle:"办理转正"}}},[e._v("办理转正")]),e._v(" "),i("el-dropdown-item",{attrs:{command:{obj:t.row,type:"eidtCorrectionTime",typeTitle:"修改转正时间"}}},[e._v("修改转正时间")])]:e._e(),e._v(" "),i("el-dropdown-item",{attrs:{command:{obj:t.row,type:"editEmployee",typeTitle:"编辑员工资料"}}},[e._v("编辑员工资料")]),e._v(" "),i("el-dropdown-item",{attrs:{command:{obj:t.row,type:"resignation",typeTitle:"办理离职"}}},[e._v("办理离职")])],2)],1)],1)]):"handleUnEmployee"==e.item?i("div",[i("div",{staticClass:"table-handle"},[i("a",{staticClass:"a-href",on:{click:function(i){e.changeRouter("/recordInfo?recordId="+t.row.recordId+"&type=unemployee")}}},[e._v("编辑")])])]):e._e()]}}])}):"clerkPhone"!=e.item?i("el-table-column",{attrs:{"class-name":"clerkName"==e.item?"control-width":"",label:e.propList[e.item].label,width:e.propList[e.item].width,prop:e.item,"show-overflow-tooltip":""}}):"clerkPhone"==e.item?i("el-table-column",{attrs:{"class-name":"clerkName"==e.item?"control-width":"",label:e.propList[e.item].label,width:e.propList[e.item].width,prop:e.item,"show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s("86"==t.row.nationcode||null==t.row.nationcode?t.row.clerkPhone:"+"+t.row.nationcode+"-"+t.row.clerkPhone)+"\n ")]}}])}):e._e()},staticRenderFns:[]};var g=i("VU/8")(f,v,!1,function(e){i("yjiq")},null,null).exports,k=i("IVno"),y=i("Ie7z"),C=i("c4uw"),b={name:"employeeRecordList",props:{isUnEmployee:{type:Boolean,default:!1}},components:{listItem:g,handleDialog:k.a,vueSelectStore:y.a,vueSelectEmployee:C.a},data:function(){return{tableH:window.screen.availHeight-440-160,pickerOptions2:{shortcuts:[{text:"最近一周",onClick:function(e){var t=new Date,i=new Date;i.setTime(i.getTime()-6048e5),e.$emit("pick",[i,t])}},{text:"最近一个月",onClick:function(e){var t=new Date,i=new Date;i.setTime(i.getTime()-2592e6),e.$emit("pick",[i,t])}},{text:"最近三个月",onClick:function(e){var t=new Date,i=new Date;i.setTime(i.getTime()-7776e6),e.$emit("pick",[i,t])}}]},employeeList:[],pageNum:1,pageSize:20,sortType:"desc",sortColumn:"hireDate",statusList:[{label:"全部状态",id:"0"},{label:"正式",id:"1"},{label:"试用",id:"2"},{label:"无状态",id:"-1"}],typeLsit:["全部类型","全职","兼职","外包","实习","无类型"],clerkType:0,clerkStatus:"0",total:0,handleType:"turnPositive",typeTitle:"",dialogVisible:!1,employeeObj:{},fireDate:[],startDate:"",endDate:"",showSelector:!0,searchParam:"",departMentSet:{},storeSet:{},treeData:{},selectionList:[],disabled:!0,chooseClerkIdList:[],chooseGroupIdList:[],chooseStoreIdList:[],adDefaultSelection:[],changed:0,defaultStoreList:[],treeSetDepart:{isSelectPerson:!0,dialogVisible:!1,isSingle:!1,openNextBool:!0},treeSetStore:{isSelectPerson:!0,dialogVisible:!1,isSingle:!1,openNextBool:!0}}},methods:{searchFn:function(){this.getEmloyeeList()},getGroupData:function(){var e=this;Object(r.a)("/haoban-manage-web/dept/deptListForCompany",{isStoreGroup:0}).then(function(t){var i=[],o=[];1==t.data.errorCode&&(i=t.data.result.departmentList||[],o=t.data.result.searchList||[]),e.treeData={treeData:i,personData:o},e.disabled=!1}).catch(function(e){})},callSelector:function(){this.treeSetDepart.dialogVisible=!0},callStoreSelector:function(){this.treeSetStore.dialogVisible=!0},showExportSet:function(){if(this.isUnEmployee){var e=window.location.origin;-1!=e.indexOf("localhost")&&(e="http://www.gicdev.com");var t=0==this.clerkType?"":this.clerkType;location.href=e+"/haoban-manage-web/record/export-fire-employee-record?clerkType="+t+"&sortType="+this.sortType+"&sortColumn="+this.sortColumn+"&startDate="+this.startDate+"&endDate="+this.endDate+"&searchParam="+this.searchParam+"&chooseClerkIdList="+this.chooseClerkIdList.join(",")+"&chooseGroupIdList="+this.chooseGroupIdList.join(",")+"&chooseStoreIdList="+this.chooseStoreIdList.join(",")}else this.$emit("showExportSetFn")},handleSelectedList:function(e){this.adDefaultSelection=e||[],this.concatList()},handleStoreSelectedList:function(e){this.defaultStoreList=e||[],this.concatList()},concatList:function(){this.selectionList=this.adDefaultSelection.concat(this.defaultStoreList),this.formatSelectionList(this.selectionList)},formatSelectionList:function(e){var t=this,i=t.unique(e);t.selectionList=i,t.chooseClerkIdList=[],t.chooseStoreIdList=[],t.chooseGroupIdList=[],i.length&&i.forEach(function(e){1==e.type?t.chooseClerkIdList.push(e.employeeClerkId):3==e.type?t.chooseStoreIdList.push(e.storeId):2==e.type&&t.chooseGroupIdList.push(e.groupId)}),t.pageNum=1,t.getEmloyeeList()},unique:function(e){var t={};return e.forEach(function(e){t[n()(e)]=e}),e=a()(t).map(function(e){return JSON.parse(e)})},delSld:function(e,t){var i=this,o=i.selectionList.indexOf(e);i.selectionList.splice(o,1),(3==e.type||e.hasOwnProperty("isStoreGroup")&&1==e.isStoreGroup||e.hasOwnProperty("isClerk")&&1==e.isClerk)&&i.defaultStoreList.forEach(function(t,o){t.id==e.id&&i.defaultStoreList.splice(o,1)}),(e.hasOwnProperty("isStoreGroup")&&0==e.isStoreGroup||e.hasOwnProperty("isClerk")&&0==e.isClerk)&&i.adDefaultSelection.forEach(function(t,o){t.id==e.id&&i.adDefaultSelection.splice(o,1)}),i.formatSelectionList(i.selectionList),i.changed+=1},handleSuccess:function(){this.dialogVisible=!1,this.getEmloyeeList()},callHandle:function(e,t,i){this.handleType=t,this.employeeObj=e,this.typeTitle=i,this.dialogVisible=!0},handleSizeChange:function(e){this.pageSize=e,this.getEmloyeeList()},handleCurrentChange:function(e){this.pageNum=e,this.getEmloyeeList()},sortList:function(e){this.sortColumn=e.prop,this.sortType="descending"==e.order?"desc":"asc",this.getEmloyeeList()},reGetList:function(){this.getEmloyeeList()},getEmloyeeList:function(){var e=this,t=e.isUnEmployee,i=t?"/haoban-manage-web/record/find-fire-employee-record-page":"/haoban-manage-web/record/find-on-work-employee-record-page",o={pageNum:e.pageNum,chooseClerkIdList:e.chooseClerkIdList.join(","),chooseGroupIdList:e.chooseGroupIdList.join(","),chooseStoreIdList:e.chooseStoreIdList.join(","),pageSize:e.pageSize,sortType:e.sortType,clerkStatus:0==e.clerkStatus?"":e.clerkStatus,sortColumn:e.sortColumn,clerkType:0==e.clerkType?"":e.clerkType,startDate:e.startDate,endDate:e.endDate,searchParam:e.searchParam};Object(r.a)(i,o).then(function(i){1==i.data.errorCode?(e.employeeList=i.data.result.list,e.total=t?i.data.result.total:i.data.result.pageInfo.total):e.$message.error({message:i.data.message})}).catch(function(t){e.$message({message:t.message})})},selectDate:function(e){e?(this.startDate=e[0],this.endDate=e[1]):(this.startDate="",this.endDate=""),this.getEmloyeeList()}},beforeMount:function(){this.getEmloyeeList(),this.getGroupData()},computed:{propList:function(){return this.isUnEmployee?["headPic","clerkName","clerkPhone","groupName","clerkCode","positionName","clerkType","clerkStatus","hireDate","fireDate","fireReason","handleUnEmployee"]:["headPic","clerkName","clerkPhone","groupName","clerkCode","positionName","clerkType","clerkStatus","hireDate","correctionDate","handleEmployee"]}}},S={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"e-r-l-container"},[i("div",{staticClass:"handle-area"},[i("div",{staticClass:"flex1"},[i("el-button",{staticStyle:{"margin-right":"10px",height:"32px"},attrs:{disabled:e.disabled},on:{click:e.callSelector}},[e._v("行政架构选人")]),e._v(" "),i("el-button",{staticStyle:{"margin-right":"10px",height:"32px"},on:{click:e.callStoreSelector}},[e._v("门店架构选人")]),e._v(" "),e.isUnEmployee?i("div",{staticClass:"block"},[i("span",{staticClass:"demonstration"},[e._v("离职日期")]),e._v(" "),i("el-date-picker",{attrs:{type:"daterange",align:"right","value-format":"yyyy-MM-dd","unlink-panels":"","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期","picker-options":e.pickerOptions2},on:{change:e.selectDate},model:{value:e.fireDate,callback:function(t){e.fireDate=t},expression:"fireDate"}})],1):[i("el-select",{staticClass:"m-r-10 w-130",attrs:{placeholder:"选择类型"},on:{change:e.reGetList},model:{value:e.clerkType,callback:function(t){e.clerkType=t},expression:"clerkType"}},e._l(e.typeLsit,function(e,t){return i("el-option",{key:t,attrs:{label:e,value:t}})})),e._v(" "),i("el-select",{staticClass:"w-130",attrs:{placeholder:"选择状态"},on:{change:e.reGetList},model:{value:e.clerkStatus,callback:function(t){e.clerkStatus=t},expression:"clerkStatus"}},e._l(e.statusList,function(e,t){return i("el-option",{key:t,attrs:{label:e.label,value:e.id}})})),e._v(" "),i("span",{staticClass:"demonstration p-l-10",staticStyle:{"line-height":"34px","white-space":"nowrap"}},[e._v("入职时间")]),e._v(" "),i("el-date-picker",{attrs:{type:"daterange",align:"right","value-format":"yyyy-MM-dd","unlink-panels":"","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期","picker-options":e.pickerOptions2},on:{change:e.selectDate},model:{value:e.fireDate,callback:function(t){e.fireDate=t},expression:"fireDate"}})],e._v(" "),i("el-input",{staticStyle:{width:"218px","margin-left":"10px"},attrs:{placeholder:"请输入姓名/手机号/员工code",clearable:""},on:{clear:e.searchFn},nativeOn:{keyup:function(t){return"button"in t||!e._k(t.keyCode,"enter",13,t.key,"Enter")?e.searchFn(t):null}},model:{value:e.searchParam,callback:function(t){e.searchParam=t},expression:"searchParam"}})],2),e._v(" "),i("el-button",{attrs:{type:"primary"},on:{click:e.showExportSet}},[i("i",{staticClass:"iconfont icon-icon_yunxiazai p-r-6"}),e._v("导出")])],1),e._v(" "),e.selectionList.length?i("ul",{staticClass:"selector-selected-list"},[e._l(e.selectionList,function(t,o){return[i("li",{key:o+t.id+t.label,staticClass:"sld"},[e._v(e._s(t.label)+" "),i("i",{staticClass:"el-icon-close",on:{click:function(i){e.delSld(t,t.isStoreGroup)}}})])]}),e._v(" "),i("li",{staticClass:"sld tip"},[e._v("共筛选出"+e._s(e.total)+"人")])],2):e._e(),e._v(" "),i("el-table",{staticClass:"list-table",attrs:{data:e.employeeList,"default-sort":{prop:"hireDate",order:"descending"}},on:{"sort-change":e.sortList}},[e._l(e.propList,function(t){return[i("list-item",{key:t,attrs:{item:t},on:{callHandle:e.callHandle}})]})],2),e._v(" "),e.employeeList.length?i("el-pagination",{staticClass:"pagination",attrs:{background:"","page-sizes":[20,40,60,80],"page-size":e.pageSize,"current-page":e.pageNum,layout:"total, sizes, prev, pager, next",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}}):e._e(),e._v(" "),i("el-dialog",{attrs:{title:e.typeTitle,visible:e.dialogVisible,width:"480px"},on:{"update:visible":function(t){e.dialogVisible=t}}},[i("handle-dialog",{attrs:{employee:e.employeeObj,handleType:e.handleType,typeTitle:e.typeTitle},on:{handleSuccess:e.handleSuccess}})],1),e._v(" "),i("vue-select-store",{ref:"storeSelector",attrs:{defaultList:e.defaultStoreList,treeSet:e.treeSetStore},on:{handleSelectedList:e.handleStoreSelectedList}}),e._v(" "),i("vue-select-employee",{ref:"departmentSelector",attrs:{treeSet:e.treeSetDepart,changed:e.changed,treeData:e.treeData,defaultSelection:e.adDefaultSelection},on:{handleSelectedList:e.handleSelectedList}})],1)},staticRenderFns:[]};var L=i("VU/8")(b,S,!1,function(e){i("Rm52")},null,null);t.a=L.exports},O3H5:function(e,t,i){"use strict";var o=i("mvHQ"),a=i.n(o),s=i("P9l9"),n=i("DAYN"),r={name:"export-set",components:{draggable:i.n(n).a},data:function(){return{tempList:[],checkList:[],origin:[],checkAll:!1,isIndeterminate:!1,checkedList:[]}},methods:{deleteField:function(e){this.checkedList.splice(e,1);var t=this.checkedList.map(function(e){return e.fieldCode});this.origin.forEach(function(e,i){t.includes(e.fieldCode)?e.checked=!0:e.checked=!1}),this.checkHalf()},checkHalf:function(){if(0===this.checkedList.length)return this.isIndeterminate=!1,!1;this.checkedList.length===this.origin.length?this.isIndeterminate=!1:this.isIndeterminate=!0},checkThis:function(e){var t=this;e.checked?t.checkedList.push(e):t.checkedList.forEach(function(i,o){i.fieldCode===e.fieldCode&&t.checkedList.splice(o,1)}),t.checkHalf()},handleCheckAllChange:function(e){this.checkedList=[],this.origin.forEach(function(t,i){t.checked=e,e&&(t.order=i+1)}),e&&(this.checkedList=this.origin.slice(0)),this.checkHalf()},getTemplate:function(){var e=this;Object(s.a)("/haoban-manage-web/record/employee-find-template",{}).then(function(t){1==t.data.errorCode?e.formatTemplateList(t.data.result):e.$message.error({message:t.data.message})}).catch(function(t){e.$message.error({message:t.message})})},formatTemplateList:function(e){var t=[],i=[],o=e;e.forEach(function(e){e.title=e.fieldName,e.name=e.fieldName,e.checked=!1;var i=[];o.forEach(function(t){t.parentCode==e.fieldCode&&i.push(t)}),i.sort(function(e,t){return 1*e.sort-1*t.sort}),i.length>0&&(e.childrens=i),0==e.parentCode&&t.push(e)}),t.sort(function(e,t){return 1*e.sort-1*t.sort}),t.forEach(function(e){i=i.concat(e.childrens)}),this.origin=i,this.tempList=t},cancelCho:function(){this.origin.forEach(function(e){e.checked=!1}),this.$emit("cancelCho")},exportCho:function(){var e=[];this.checkedList.forEach(function(t){t.checked&&e.push({fieldCode:t.fieldCode,fieldName:t.fieldName})});a()(e);var t=window.location.origin;-1!=t.indexOf("localhost")&&(t="http://www.gicdev.com"),location.href=t+"/haoban-manage-web/record/define-export?exportTitleContent="+a()(e),this.$emit("cancelCho")}},beforeMount:function(){this.getTemplate()}},l={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"export-set-container"},[e._m(0),e._v(" "),i("div",{staticClass:"cho-list"},[i("draggable",{model:{value:e.checkedList,callback:function(t){e.checkedList=t},expression:"checkedList"}},[e._l(e.checkedList,function(t,o){return[t.checked?i("div",{key:t.fieldCode+o,staticClass:"cho"},[e._v(e._s(t.fieldName)+" "),i("i",{staticClass:"el-icon-circle-close",on:{click:function(t){e.deleteField(o)}}})]):e._e()]})],2)],1),e._v(" "),i("div",{staticClass:"cho-area"},[i("div",{staticClass:"title"},[e._v("选择需要导出的字段")]),e._v(" "),i("div",{staticClass:"cho-area-group"},[i("div",{staticClass:"group-div"},[i("div",{staticClass:"group-title"}),e._v(" "),i("ul",{staticClass:"group-son-list"},[i("el-checkbox",{attrs:{indeterminate:e.isIndeterminate},on:{change:e.handleCheckAllChange},model:{value:e.checkAll,callback:function(t){e.checkAll=t},expression:"checkAll"}},[e._v("全选")])],1)]),e._v(" "),e._l(e.tempList,function(t,o){return i("div",{key:t.fieldCode+o,staticClass:"group-div"},[i("div",{staticClass:"group-title"},[e._v(e._s(t.title))]),e._v(" "),i("ul",{staticClass:"group-son-list"},[e._l(e.origin,function(o){return[o.parentCode==t.fieldCode?i("li",{key:o.fieldCode},[i("el-checkbox",{key:o.fieldCode,attrs:{label:o.fieldName},on:{change:function(t){e.checkThis(o)}},model:{value:o.checked,callback:function(t){e.$set(o,"checked",t)},expression:"items.checked"}},[e._v(e._s(o.fieldName))])],1):e._e()]})],2)])})],2)]),e._v(" "),i("div",{staticClass:"handle-cho-btn"},[i("el-button",{staticClass:"export-btn",attrs:{type:"primary",disabled:e.checkedList.length<1},on:{click:e.exportCho}},[i("i",{staticClass:"iconfont icon-icon_yunxiazai p-r-6"}),e._v("导出")]),e._v(" "),i("el-button",{on:{click:e.cancelCho}},[e._v("取消")])],1)])},staticRenderFns:[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"title"},[this._v("已选择字段"),t("span",[this._v("导出的列表中将按顺序显示这些字段(可拖拽排序)")])])}]};var c=i("VU/8")(r,l,!1,function(e){i("J8vX")},null,null);t.a=c.exports},Rm52:function(e,t){},nyZT:function(e,t){},yjiq:function(e,t){},zGJY:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=i("3Xzz"),a=i("P9l9"),s=i("O3H5"),n=i("NNAT"),r={name:"employeeRecord",components:{navCrumb:o.a,employeeList:n.a,exportSet:s.a},data:function(){return{navpath:[{name:"首页",path:"/index"},{name:"通讯录",path:"/administrativeFrame"},{name:"员工档案",path:"/fileSet"},{name:"在职员工",path:""}],typeObj:{onWorkCout:"在职员工",allWorkCount:"全职",partTimeWorkCount:"兼职",outWorkCount:"外包",practiceWorkCount:"实习",noTypeWorkCount:"无类型",regularCount:"正式",onTrialCount:"试用",noStatusCount:"无状态"},otherSet:{},countObj:{},showExportSet:!1}},methods:{changeRouter:function(e){this.$router.push(e)},cancelCho:function(){this.showExportSet=!1},showExportSetFn:function(){this.showExportSet=!0},getEmployeeCount:function(){var e=this;Object(a.a)("/haoban-manage-web/record/employee-count-detail",{}).then(function(t){1==t.data.errorCode?e.countObj=t.data.result:e.$message.error({message:t.data.message})}).catch(function(t){e.$message.error({message:t.message})})}},beforeMount:function(){this.getEmployeeCount(),this.$nextTick(function(){document.querySelector(".contact-wrap__body").style.overflow="hidden"})},beforeDestroy:function(){document.querySelector(".contact-wrap__body").style.overflow="auto"}},l={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"common-set-wrap employee-record-wrap"},[i("nav-crumb",{attrs:{navpath:e.navpath,slotFlag:!0}},[[i("div",{staticClass:"top-area"},[i("div",{staticClass:"top-title"},[i("span",{staticClass:"title-span"},[e._v("在职员工")]),e._v(" "),i("a",{on:{click:function(t){e.changeRouter("/recordIo?importCode=record")}}},[i("el-button",{attrs:{type:"primary"}},[e._v("导入员工档案"),i("i",{staticClass:"el-icon-upload el-icon--right"})])],1)]),e._v(" "),i("div",{staticClass:"e-type-num-title"},e._l(e.countObj,function(t,o){return i("div",{key:o,staticClass:"type-cell",class:"onWorkCout"==o||"noTypeWorkCount"==o?"with-bdr":""},[i("p",{staticClass:"type-name"},[e._v(e._s(e.typeObj[o]))]),e._v(" "),i("p",{staticClass:"num"},[e._v(e._s(t))])])}))])]],2),e._v(" "),i("div",{staticClass:"right-content"},[i("div",{staticClass:"right-box"},[i("div",{staticClass:"e-record-container"},[e.showExportSet?[i("export-set",{attrs:{otherSet:e.otherSet},on:{cancelCho:e.cancelCho}})]:[i("employee-list",{on:{showExportSetFn:e.showExportSetFn}})]],2)])]),e._v(" "),i("vue-gic-footer")],1)},staticRenderFns:[]};var c=i("VU/8")(r,l,!1,function(e){i("nyZT")},null,null);t.default=c.exports}});
\ No newline at end of file
!function(e){var a=window.webpackJsonp;window.webpackJsonp=function(c,b,n){for(var r,t,o,i=0,u=[];i<c.length;i++)t=c[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(a&&a(c,b,n);u.length;)u.shift()();if(n)for(i=0;i<n.length;i++)o=d(d.s=n[i]);return o};var c={},f={82:0};function d(a){if(c[a])return c[a].exports;var f=c[a]={i:a,l:!1,exports:{}};return e[a].call(f.exports,f,f.exports,d),f.l=!0,f.exports}d.e=function(e){var a=f[e];if(0===a)return new Promise(function(e){e()});if(a)return a[2];var c=new Promise(function(c,d){a=f[e]=[c,d]});a[2]=c;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:"52553b96345dd3750f43",1:"0ebe3ead93207dc78a78",2:"d3c62c00c91d9891f916",3:"a43577b9e52a5719a124",4:"2a11022e6016e1503fe8",5:"baa22d481d8bbd83425c",6:"389a8b838f69d1b4a9ea",7:"8f462a353a2ce9c0c116",8:"3a578355bfc48f5d5a99",9:"860dbe8cf83334f9e3c0",10:"a2aa031ae677b8acbf17",11:"e34a64dea1b7a059dcfd",12:"bdcf26a1bcccf7e0239b",13:"6c87f5cefdf77374932d",14:"8a2d85b6cc3b95b868d9",15:"c35e3512ce4abde87459",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 a=f[e];0!==a&&(a&&a[1](new Error("Loading chunk "+e+" failed.")),f[e]=void 0)}return n.onerror=n.onload=t,b.appendChild(n),c},d.m=e,d.c=c,d.d=function(e,a,c){d.o(e,a)||Object.defineProperty(e,a,{configurable:!1,enumerable:!0,get:c})},d.n=function(e){var a=e&&e.__esModule?function(){return e.default}:function(){return e};return d.d(a,"a",a),a},d.o=function(e,a){return Object.prototype.hasOwnProperty.call(e,a)},d.p="./",d.oe=function(e){throw console.error(e),e}}([]);
\ No newline at end of file
!function(e){var a=window.webpackJsonp;window.webpackJsonp=function(c,b,n){for(var r,t,o,i=0,u=[];i<c.length;i++)t=c[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(a&&a(c,b,n);u.length;)u.shift()();if(n)for(i=0;i<n.length;i++)o=d(d.s=n[i]);return o};var c={},f={82:0};function d(a){if(c[a])return c[a].exports;var f=c[a]={i:a,l:!1,exports:{}};return e[a].call(f.exports,f,f.exports,d),f.l=!0,f.exports}d.e=function(e){var a=f[e];if(0===a)return new Promise(function(e){e()});if(a)return a[2];var c=new Promise(function(c,d){a=f[e]=[c,d]});a[2]=c;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:"52553b96345dd3750f43",1:"0ebe3ead93207dc78a78",2:"d3c62c00c91d9891f916",3:"a43577b9e52a5719a124",4:"fad52da2b10a691ab698",5:"baa22d481d8bbd83425c",6:"9d003327853fefee2094",7:"8f462a353a2ce9c0c116",8:"02a2bbb61efe1946f33b",9:"860dbe8cf83334f9e3c0",10:"a2aa031ae677b8acbf17",11:"e34a64dea1b7a059dcfd",12:"bdcf26a1bcccf7e0239b",13:"6c87f5cefdf77374932d",14:"8a2d85b6cc3b95b868d9",15:"ed6f2f9ae725367ccfc3",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 a=f[e];0!==a&&(a&&a[1](new Error("Loading chunk "+e+" failed.")),f[e]=void 0)}return n.onerror=n.onload=t,b.appendChild(n),c},d.m=e,d.c=c,d.d=function(e,a,c){d.o(e,a)||Object.defineProperty(e,a,{configurable:!1,enumerable:!0,get:c})},d.n=function(e){var a=e&&e.__esModule?function(){return e.default}:function(){return e};return d.d(a,"a",a),a},d.o=function(e,a){return Object.prototype.hasOwnProperty.call(e,a)},d.p="./",d.oe=function(e){throw console.error(e),e}}([]);
\ No newline at end of file
<template>
<div class="searh-menu-container">
<div class="p-0-15">
<el-input prefix-icon="el-icon-search" v-model="searchKey" placeholder="姓名/手机号/部门/code" clearable @clear="clearFn" @keyup.enter.native="searchFn"></el-input>
<el-input prefix-icon="el-icon-search" v-model="searchKey" :placeholder="'姓名/手机号/部门' + storeFrame ? '/code' : ''" clearable @clear="clearFn" @keyup.enter.native="searchFn"></el-input>
<slot name="buttonBox"></slot>
<el-tree v-if="!searchResultShow" class="search-menu" node-key="id" :default-expanded-keys="defaultOpen" :data="menuData" :highlight-current="true" :expand-on-click-node="false" :props="myProps" @node-click="handleNodeClick">
<span class="custom-tree-node" slot-scope="{ node, data }">
......
......@@ -18,7 +18,7 @@
<span class="demonstration">离职日期</span>
<el-date-picker v-model="fireDate" type="daterange" align="right" value-format="yyyy-MM-dd" unlink-panels range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期" @change="selectDate" :picker-options="pickerOptions2"> </el-date-picker>
</div>
<el-input v-model="searchParam" placeholder="请输入姓名/手机号/code" style="width: 218px;margin-left:10px;" @keyup.enter.native="searchFn" clearable @clear="searchFn"></el-input>
<el-input v-model="searchParam" placeholder="请输入姓名/手机号/员工code" style="width: 218px;margin-left:10px;" @keyup.enter.native="searchFn" clearable @clear="searchFn"></el-input>
</div>
<el-button type="primary" @click="showExportSet"><i class="iconfont icon-icon_yunxiazai p-r-6"></i>导出</el-button>
</div>
......
......@@ -152,7 +152,7 @@ export default {
*/
async handleEmployeeSelection(employee, type) {
/* eslint-disable */
// console.log('employee, type:', employee, type)
console.log('employee, type:', employee, type)
this.perId = employee.employeeClerkId;
this.userId = employee.brandId; // userId; // 20190627 改成 brandId
this.showEmployee = type;
......
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