Commit c7747389 by 无尘

fix: 修改通讯录

parent f9529f0d
<!DOCTYPE html><html><head><meta charset=utf-8><link rel="shortcut icon" href=./favicon.ico><title>好办管理平台</title><link href=./static/css/app.6aaa1617030a5f0724235261809c8ab9.css rel=stylesheet></head><body style="min-width: 1400px;"><div id=app></div><script src=https://cdn.ravenjs.com/3.26.2/vue/raven.min.js crossorigin=anonymous></script><script>Raven.config('https://3715a345910d4c768e7a1ec14619c2d5@sentry.io/1413672').install();</script><script type=text/javascript src=./static/js/manifest.9df21494190e3845e37d.js></script><script type=text/javascript src=./static/js/vendor.74a0d2e1f42680bcd561.js></script><script type=text/javascript src=./static/js/app.85019773bd9ec4a1280c.js></script></body></html> <!DOCTYPE html><html><head><meta charset=utf-8><link rel="shortcut icon" href=./favicon.ico><title>好办管理平台</title><link href=./static/css/app.11c190210734ba14cecb233b7e7eb18d.css rel=stylesheet></head><body style="min-width: 1400px;"><div id=app></div><script src=https://cdn.ravenjs.com/3.26.2/vue/raven.min.js crossorigin=anonymous></script><script>Raven.config('https://3715a345910d4c768e7a1ec14619c2d5@sentry.io/1413672').install();</script><script type=text/javascript src=./static/js/manifest.b73790f73707c9ce5c47.js></script><script type=text/javascript src=./static/js/vendor.74a0d2e1f42680bcd561.js></script><script type=text/javascript src=./static/js/app.0d118359c7c1d7d49004.js></script></body></html>
\ No newline at end of file \ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
webpackJsonp([12],{"5gt+":function(e,t,i){"use strict";var a=i("mvHQ"),s=i.n(a),l=i("//Fk"),o=i.n(l),n=i("DAYN"),r={name:"vue-office-upload-image",props:{projectName:{type:String,default:"haoban-manage-web"},wxFlag:{type:String,default:"1"},imgRate:{type:String},actionUrl:{type:String,default:""},maxImageLength:{type:Number,default:5},limitW:{type:Number},limitH:{type:Number},imageList:{type:Array,default:function(){return[]}}},data:function(){return{dragImageList:this.imageList,initialImg:0,progress:0,pass:null,isEnlargeImage:!1,enlargeImage:""}},computed:{propStatus:function(){return this.pass?"success":!1===this.pass?"exception":"text"}},beforeMount:function(){},methods:{uploadUrl:function(){var e,t=window.location.origin,i=void 0;return e=this.wxFlag&&""!=this.wxFlag?"wxFlag="+this.wxFlag+"&":"",i="-1"!=t.indexOf("localhost")?"http://www.gicdev.com":t,this.upUrl=i+this.actionUrl+"?"+e+"requestProject="+this.projectName,this.upUrl},beforeAvatarUpload:function(e){var t=this,i=("image/jpeg"===e.type||"image/jpg"===e.type||e.type,e.size/1024/1024<2);return i||t.$message.error("上传图片大小不能超过 2MB!"),i&&new o.a(function(i,a){var s=new FileReader;s.onload=function(e){var s=new Image;s.onload=function(){var e=this.width,s=this.height;t.imgRate&&""!==t.imgRate&&(Number(t.imgRate.split(":")[0])/Number(t.imgRate.split(":")[1])!=Number(e)/Number(s)&&(t.$message.error("上传图片比例不正确!"),a()));t.imgRate&&""!=t.imgRate||!t.limitW||!t.limitH||e===t.limitW||s===t.limitH||(t.$message.error("上传图片尺寸不正确!"),a()),i()},s.src=e.target.result},s.readAsDataURL(e)})},uploadOnSuccess:function(e,t){this.pass=!0,1==e.errorCode?(this.$message.success("上传成功"),this.$emit("uploadOnSuccess",{res:e,file:t},this.imageList)):this.$message.error(e.message)},uploadOnProgress:function(e,t){e&&e.percent&&(this.progress=Math.floor(e.percent))},uploadOnChange:function(e){"ready"===e.status?(this.pass=null,this.progress=0):"fail"===e.status&&this.$message.error("图片上传失败,请重试!")},uploadOnError:function(){},previewImage:function(e){this.isEnlargeImage=!0,this.initialImg=e},deleteImage:function(e){this.$emit("deleteImage",e);var t=JSON.parse(s()(this.imageList));t.splice(e,1),this.$emit("update:imageList",t)},handleClose:function(e){e()},itemMoveEnd:function(e){this.$emit("sortImg",this.dragImageList),this.$emit("update:imageList",this.dragImageList)}},watch:{imageList:function(e,t){this.dragImageList=e}},mounted:function(){},components:{draggable:i.n(n).a}},d={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"gic-upload__img"},[i("div",{staticClass:"gic-upload__img__drag"},[i("draggable",{staticClass:"drag-wrap",staticStyle:{display:"contents"},attrs:{options:{group:{name:"people",pull:!1,put:!0},sort:!0}},on:{end:e.itemMoveEnd},model:{value:e.dragImageList,callback:function(t){e.dragImageList=t},expression:"dragImageList"}},[i("transition-group",{attrs:{name:"slide-fade"}},e._l(e.imageList,function(t,a){return i("div",{key:a,class:["img-content",a>=6?"m-t-8":""]},[i("a",{staticClass:"item-img",attrs:{href:t.url}},[i("img",{attrs:{src:t.url,alt:"上传图片"}})]),e._v(" "),i("div",{staticClass:"upload-icon__btn"},[i("i",{staticClass:"el-icon-view",on:{click:function(t){e.previewImage(a)}}}),e._v(" "),i("i",{staticClass:"el-icon-delete",on:{click:function(t){e.deleteImage(a)}}})])])}))],1),e._v(" "),e.pass||0===e.progress?e._e():i("div",{class:["img-content","img-progress",e.imageList.length>=6?"m-t-8":""]},[i("el-progress",{staticClass:"gic-img-progress",staticStyle:{"line-height":"102px"},attrs:{width:102,percentage:e.progress,status:e.propStatus}})],1),e._v(" "),e.imageList&&e.imageList.length<e.maxImageLength?i("div",{class:["img-upload",e.imageList.length>=6?"m-t-8":""]},[i("el-upload",{staticClass:"loader",attrs:{accept:"image/jpg,image/jpeg,image/png,image/gif",action:e.uploadUrl(),"list-type":"picture-card","on-change":e.uploadOnChange,"before-upload":e.beforeAvatarUpload,"on-success":e.uploadOnSuccess,"on-error":e.uploadOnError,"on-progress":e.uploadOnProgress}},[i("i",{staticClass:"el-icon-plus gic-upload-btn"})])],1):e._e()],1),e._v(" "),i("el-dialog",{attrs:{title:"图片预览",visible:e.isEnlargeImage,"modal-append-to-body":!1,"before-close":e.handleClose,width:"520px"},on:{"update:visible":function(t){e.isEnlargeImage=t}}},[e.isEnlargeImage?i("el-carousel",{attrs:{trigger:"click","initial-index":e.initialImg,autoplay:!1,height:"500px"}},e._l(e.imageList,function(t,a){return i("el-carousel-item",{key:a,staticStyle:{display:"flex","align-items":"center","justify-content":"center"}},[i("img",{staticStyle:{"max-width":"480px","max-height":"500px"},attrs:{src:t.url},on:{click:function(t){e.isEnlargeImage=!1}}})])})):e._e()],1)],1)},staticRenderFns:[]};var f=i("VU/8")(r,d,!1,function(e){i("NvV1")},null,null);t.a=f.exports},"67iC":function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=i("3Xzz"),s=i("P9l9"),l=i("0xDb"),o=i("KzHU"),n={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"editable-cell-container"},[i("div",{staticClass:"title-div"},[i("span",{staticClass:"font-w-500"},[e._v(e._s(e.title))]),e._v(" "),i("div",{staticClass:"hurdle"}),e._v(" "),i("a",{staticClass:"a-href",on:{click:function(t){e.showEdit=!0}}},[e._v("编辑")])]),e._v(" "),i("el-form",{ref:"cell_form",staticClass:"info-form",attrs:{rules:e.rules,inline:"","label-width":"150px",model:e.fieldsInfo}},[e._l(e.fieldList,function(t,a){return[i("el-form-item",{key:t.fieldCode+"_"+a,staticClass:"item-width",attrs:{label:t.title+":",prop:t.fieldCode}},[e.showEdit?[0==t.fieldType?i("el-input",{attrs:{placeholder:t.fieldDescription,disabled:"1"!=t.fieldEdited},model:{value:e.fieldsInfo[t.fieldCode],callback:function(i){e.$set(e.fieldsInfo,t.fieldCode,i)},expression:"fieldsInfo[item.fieldCode]"}}):e._e(),e._v(" "),6==t.fieldType?i("el-input",{attrs:{placeholder:t.fieldDescription,disabled:"1"!=t.fieldEdited},model:{value:e.fieldsInfo[t.fieldCode],callback:function(i){e.$set(e.fieldsInfo,t.fieldCode,i)},expression:"fieldsInfo[item.fieldCode]"}}):1==t.fieldType?i("el-input",{attrs:{type:"textarea",autosize:"",disabled:"1"!=t.fieldEdited},model:{value:e.fieldsInfo[t.fieldCode],callback:function(i){e.$set(e.fieldsInfo,t.fieldCode,i)},expression:"fieldsInfo[item.fieldCode]"}}):2==t.fieldType||3==t.fieldType?[1==t.systemFlag?i("el-select",{attrs:{disabled:"1"!=t.fieldEdited,multiple:3==t.fieldType,"collapse-tags":3==t.fieldType,placeholder:t.fieldDescription},model:{value:e.fieldsInfo[t.fieldCode],callback:function(i){e.$set(e.fieldsInfo,t.fieldCode,i)},expression:"fieldsInfo[item.fieldCode]"}},e._l(t.fieldOperations.fieldContent,function(e){return i("el-option",{key:e.key,attrs:{label:e.name,value:e.key}})})):i("el-select",{attrs:{disabled:"1"!=t.fieldEdited,multiple:3==t.fieldType,"collapse-tags":3==t.fieldType,placeholder:t.fieldDescription},model:{value:e.fieldsInfo[t.fieldCode],callback:function(i){e.$set(e.fieldsInfo,t.fieldCode,i)},expression:"fieldsInfo[item.fieldCode]"}},e._l(t.fieldOperations.fieldContent,function(e,t){return i("el-option",{key:e.key+"_"+t,attrs:{label:e.name,value:e.name}})}))]:4==t.fieldType?i("el-date-picker",{attrs:{type:"date",disabled:"1"!=t.fieldEdited,format:t.fieldOperations.typeValue,"value-format":t.fieldOperations.typeValue,placeholder:t.fieldDescription},model:{value:e.fieldsInfo[t.fieldCode],callback:function(i){e.$set(e.fieldsInfo,t.fieldCode,i)},expression:"fieldsInfo[item.fieldCode]"}}):5==t.fieldType?i("el-date-picker",{attrs:{type:"daterange","range-separator":"至",disabled:"1"!=t.fieldEdited,format:t.fieldOperations.typeValue,"value-format":t.fieldOperations.typeValue,"start-placeholder":t.fieldOperations.startDescription,"end-placeholder":t.fieldOperations.endDescription},model:{value:e.fieldsInfo[t.fieldCode],callback:function(i){e.$set(e.fieldsInfo,t.fieldCode,i)},expression:"fieldsInfo[item.fieldCode]"}}):7==t.fieldType?i("uploadImage",{attrs:{projectName:"haoban-manage-web",wxFlag:"0",actionUrl:e.uploadUrl,imageList:e.fieldsInfo[t.fieldCode],limitW:500,limitH:500,maxImageLength:5},on:{"update:imageList":function(i){e.$set(e.fieldsInfo,t.fieldCode,i)},uploadOnSuccess:e.uploadOnSuccess,sortImg:e.sortImg,deleteImage:e.deleteImage}}):e._e()]:[0==t.fieldType||1==t.fieldType||6==t.fieldType?i("div",{staticClass:"field-value color-606266"},[e._v("\n "+e._s(e.fieldsInfo[t.fieldCode])+"\n ")]):2==t.fieldType?[1==t.systemFlag?i("div",{staticClass:"field-value color-606266"},[e._v("\n "+e._s(t.fieldOperations.fieldContent[1*e.fieldsInfo[t.fieldCode]-1]?t.fieldOperations.fieldContent[1*e.fieldsInfo[t.fieldCode]-1].name:"")+"\n ")]):i("div",{staticClass:"field-value color-606266"},[e._v(e._s(e.fieldsInfo[t.fieldCode]))])]:3==t.fieldType?i("div",{staticClass:"field-value color-606266"}):4==t.fieldType?i("div",{staticClass:"field-value color-606266"},[e._v("\n "+e._s(e._f("formatDate")(e.fieldsInfo[t.fieldCode],t.fieldOperations.typeValue))+"\n ")]):5==t.fieldType?i("div",{staticClass:"field-value color-606266"},[e._v("\n "+e._s(e.fieldsInfo[t.fieldCode].join("至"))+"\n ")]):7==t.fieldType?i("div",{staticClass:"img-box"},e._l(e.fieldsInfo[t.fieldCode],function(e,t){return i("div",{key:t+e.url,staticClass:"item-imgs"},[i("a",{attrs:{href:""}},[i("img",{attrs:{src:e.url}})])])})):e._e()]],2)]})],2),e._v(" "),e.showEdit?i("div",{staticClass:"handle-form-btns t-ct m-b-60"},[i("el-button",{attrs:{type:"primary"},on:{click:e.saveEdit}},[e._v("保存")]),e._v(" "),i("el-button",{on:{click:e.cancelEdit}},[e._v("取消")])],1):e._e()],1)},staticRenderFns:[]};var r=function(e){i("hFS7")},d=i("VU/8")(o.a,n,!1,r,null,null).exports,f=i("IVno"),c={name:"recordInfo",components:{navCrumb:a.a,editableCell:d,handleDialog:f.a},filters:{formatDate:l.b},data:function(){return{windowH:window.screen.availHeight-180+"px",navpath:[{name:"首页",path:"/index"},{name:"企业通讯录",path:"/administrativeFrame"},{name:"员工档案",path:"/fileSet"},{name:"在职员工",path:"/employeeRecord"},{name:"编辑员工信息",path:""}],editNavpath:[{name:"首页",path:"/index"},{name:"企业通讯录",path:"/administrativeFrame"},{name:"员工档案",path:"/fileSet"},{name:"离职员工",path:"/unemployee"},{name:"编辑员工信息",path:""}],dialogVisible:!1,htmlTitle:"员工档案",info:{},staticInfo:{},statusList:["正式","试用","离职"],reasons:["","家庭原因","个人原因","发展原因","合同到期不续签","协议解除","无法胜任工作","经济性裁员","严重违法违纪","其他"],items:[],fieldList:[],mileStone:[],historyStatus:["新入职","转正","离职","转岗","再入职"],editHisObj:{}}},methods:{handleSuccess:function(){this.dialogVisible=!1},getEmployeeDetail:function(){var e=this,t={recordId:e.$route.query.recordId};Object(s.a)("/haoban-manage-web/record/employee-detail",t).then(function(t){1==t.data.errorCode?e.getTemplate(t.data.result):e.$message.error({message:t.data.message})}).catch(function(t){e.$message.error({message:t.message})})},subSuccess:function(){this.getEmployeeDetail()},getTemplate:function(e){var t=this;Object(s.a)("/haoban-manage-web/record/employee-find-template",{}).then(function(i){1==i.data.errorCode?t.formatTemplateList(i.data.result,e):t.$message.error({message:i.data.message})}).catch(function(e){t.$message.error({message:e.message})})},formatTemplateList:function(e,t){var i=[],a=e,s=JSON.parse(t.defineString),o=Object(l.a)(t);for(var n in s)o[n]=s[n];e.forEach(function(e){if(0!=e.parentCode&&(e.fieldOperations=JSON.parse(e.fieldOperations)),5==e.fieldType&&(o[e.fieldCode]=o[e.fieldCode]?o[e.fieldCode].split(","):["",""],t[e.fieldCode]=t[e.fieldCode]?t[e.fieldCode].split(","):["",""]),6==e.fieldType&&(o[e.fieldCode]*=1,t[e.fieldCode]*=1),7==e.fieldType){var s=[];o[e.fieldCode]=o[e.fieldCode]?o[e.fieldCode].split(","):[],o[e.fieldCode].forEach(function(e){s.push({url:e})}),t[e.fieldCode]=s,o[e.fieldCode]=s.slice(0)}e.title=e.fieldName;var l=[];a.forEach(function(t){t.parentCode==e.fieldCode&&l.push(t)}),l.sort(function(e,t){return 1*e.sort-1*t.sort}),l.length>0&&(e.childrens=l),0==e.parentCode&&i.push(e)}),i.sort(function(e,t){return 1*e.sort-1*t.sort}),this.fieldList=i,this.info=o,this.staticInfo=t},getHistoryList:function(){var e=this,t={recordId:e.$route.query.recordId};Object(s.a)("/haoban-manage-web/record/history-record-list",t).then(function(t){if(1==t.data.errorCode){var i=t.data.result;e.formatMileStone(i)}else e.$message({message:t.data.message})}).catch(function(t){e.$message({message:t.message})})},formatMileStone:function(e){e.sort(function(e,t){return 1*e.historyDate-1*t.historyDate});for(var t=[],i=0,a=e.length;i<a;i+=4)t.push(e.slice(i,i+4));this.mileStone=t},editHis:function(e){this.editHisObj.historyId=e.historyId,this.editHisObj.recordId=this.$route.query.recordId,this.dialogVisible=!0}},beforeMount:function(){this.getEmployeeDetail(),this.getHistoryList()},mounted:function(){var e=this.$route.query.type;e&&"unemployee"==e&&(this.navpath=this.editNavpath),this.$nextTick(function(){document.querySelector(".contact-wrap__body").style.overflow="hidden"})},beforeDestroy:function(){document.querySelector(".contact-wrap__body").style.overflow="auto"}},u={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"common-set-wrap",style:{"min-height":e.windowH}},[i("nav-crumb",{attrs:{navpath:e.navpath}}),e._v(" "),i("div",{staticClass:"right-content"},[i("div",{staticClass:"right-box"},[i("div",{staticClass:"commom-container clerk-detail-container"},[i("p",{staticClass:"t-rt"},[i("a",{staticClass:"a-href font-14",on:{click:function(t){e.getPdf()}}},[e._v("打印员工档案")])]),e._v(" "),i("div",{style:{"min-height":e.windowH},attrs:{id:"pdfDom"}},[i("div",{staticClass:"employee-detail-cell"},[i("div",{staticClass:"head-info"},[i("p",{staticClass:"head-cell"},[e.info.headPic?i("img",{staticClass:"head-img",attrs:{src:e.info.headPic}}):i("span",{staticClass:"head-img-null"},[i("i",{staticClass:"iconfont icon-yewuduanmorentouxian"})])]),e._v(" "),i("p",{staticClass:"head-cell name"},[e._v("\n "+e._s(e.info.clerkName)),i("span",[e._v(e._s("-1"==e.info.clerkStatus?"无状态":e.statusList[e.info.clerkStatus-1]))])]),e._v(" "),i("p",{staticClass:"head-cell c-303133"},[e._v(e._s(e.info.groupName)+e._s(e.info.positionName))]),e._v(" "),i("p",{staticClass:"head-cell color-606266"},[e._v("已在"+e._s(e.info.enterpriseName)+"工作了"+e._s(e.info.days)+"天")])])]),e._v(" "),e._l(e.fieldList,function(t){return[t.childrens?i("editable-cell",{key:t.fieldCode,attrs:{info:e.info,staticInfo:e.staticInfo,items:e.items,title:t.title,fieldList:t.childrens},on:{subSuccess:e.subSuccess}}):e._e()]}),e._v(" "),i("div",{staticClass:"mile-stone-container"},[e._m(0),e._v(" "),i("ul",{staticClass:"mile-stone"},e._l(e.mileStone,function(t,a){return i("li",{key:a,staticClass:"stone-group",class:a%2==0?"column":"column-reverse"},[4==t.length&&a!=e.mileStone.length-1?i("div",{staticClass:"column-hurdle"}):e._e(),e._v(" "),e._l(t,function(t,s){return i("div",{key:s,staticClass:"stone",class:a%2==1&&3==s||a%2==0&&0==s&&0!=a?"no-radio":""},[i("p",{staticClass:"time"},[e._v(e._s(e._f("formatDate")(t.historyDate,"YY-MM-DD")))]),e._v(" "),e._m(1,!0),e._v(" "),i("p",{staticClass:"position"},[e._v(e._s(t.positionName))]),e._v(" "),i("p",{staticClass:"font-16 "},[e._v(e._s(e.historyStatus[1*t.historyStatus-1])),3==t.historyStatus?i("a",{staticClass:"a-href m-l-10 fs-12",on:{click:function(i){e.editHis(t)}}},[e._v("编辑")]):e._e()]),e._v(" "),3==t.historyStatus?i("p",[e._v("离职理由:"+e._s(e.reasons[t.fireReason]))]):e._e(),e._v(" "),i("p",{staticClass:"color-606266"},[e._v(e._s(t.storeName?t.storeName:t.groupName))])])})],2)}))])],2),e._v(" "),i("el-dialog",{attrs:{title:"修改离职信息",visible:e.dialogVisible,width:"480px"},on:{"update:visible":function(t){e.dialogVisible=t}}},[i("handle-dialog",{attrs:{employee:e.editHisObj,handleType:"changeFireInfo",typeTitle:"修改离职信息"},on:{handleSuccess:e.handleSuccess}})],1)],1)])]),e._v(" "),i("vue-gic-footer")],1)},staticRenderFns:[function(){var e=this.$createElement,t=this._self._c||e;return t("p",{staticClass:"m-s-title"},[t("span",{staticClass:"font-w-500"},[this._v("员工记录")])])},function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"hurdle-box"},[t("span",{staticClass:"radio"}),this._v(" "),t("div",{staticClass:"hurdle"})])}]};var _=i("VU/8")(c,u,!1,function(e){i("JV+2")},null,null);t.default=_.exports},"JV+2":function(e,t){},KzHU:function(module,__webpack_exports__,__webpack_require__){"use strict";var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_typeof__=__webpack_require__("pFYg"),__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_typeof___default=__webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_typeof__),__WEBPACK_IMPORTED_MODULE_1_babel_runtime_core_js_json_stringify__=__webpack_require__("mvHQ"),__WEBPACK_IMPORTED_MODULE_1_babel_runtime_core_js_json_stringify___default=__webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_core_js_json_stringify__),__WEBPACK_IMPORTED_MODULE_2_components_employeeRecord_uploadImage__=__webpack_require__("5gt+"),__WEBPACK_IMPORTED_MODULE_3__utils_index__=__webpack_require__("0xDb"),__WEBPACK_IMPORTED_MODULE_4__api_api__=__webpack_require__("P9l9");__webpack_exports__.a={name:"editableCell",props:{info:{type:Object,required:!0},staticInfo:{type:Object,required:!0},items:{type:Array,required:!0},title:{type:String,default:""},fieldList:{type:Array,required:!0}},components:{uploadImage:__WEBPACK_IMPORTED_MODULE_2_components_employeeRecord_uploadImage__.a},filters:{formatDate:__WEBPACK_IMPORTED_MODULE_3__utils_index__.b},data:function(){return{showEdit:!1,uploadUrl:"/haoban-manage-web/upload-img",fieldsInfo:{}}},methods:{uploadOnSuccess:function(e,t){e.file.url=e.res.result[0].qcloudImageUrl,t.push(e.file)},deleteImage:function(e){this.imageList=this.imageList?this.imageList:[],this.imageList.splice(e,1)},sortImg:function(e){this.imageList=e},saveEdit:function saveEdit(){var that=this;that.$refs.cell_form.validate(function(valid){if(valid){var newInfo=Object(__WEBPACK_IMPORTED_MODULE_3__utils_index__.a)(that.fieldsInfo),params={},regFlag=[],fieldList=that.fieldList,objToString=[];if(fieldList.forEach(function(field){if(params[field.fieldCode]=newInfo[field.fieldCode],5==field.fieldType&&(params[field.fieldCode]=newInfo[field.fieldCode].join(",")),7==field.fieldType){var arr=[];newInfo[field.fieldCode].forEach(function(e){arr.push(e.url)}),params[field.fieldCode]=arr.join(",")}if(1!=field.systemFlag){if(objToString.push({fieldCode:field.fieldCode,fieldValue:newInfo[field.fieldCode]}),5==field.fieldType&&objToString.push({fieldCode:field.fieldCode,fieldValue:newInfo[field.fieldCode].join(",")}),7==field.fieldType){var _arr=[];newInfo[field.fieldCode].forEach(function(e){_arr.push(e.url)}),objToString.push({fieldCode:field.fieldCode,fieldValue:_arr.join(",")})}delete params[field.fieldCode]}field.regular&&newInfo[field.fieldCode]&&regFlag.push(eval(field.regular).test(newInfo[field.fieldCode]))}),regFlag.length&&regFlag.includes(!1))return that.$message.error("请输入正确格式的字段值!"),!1;params.jsonString="[]"==__WEBPACK_IMPORTED_MODULE_1_babel_runtime_core_js_json_stringify___default()(objToString)?"":__WEBPACK_IMPORTED_MODULE_1_babel_runtime_core_js_json_stringify___default()(objToString),params.recordId=that.$route.query.recordId,that.submitEdit(params)}})},submitEdit:function(e){var t=this;Object(__WEBPACK_IMPORTED_MODULE_4__api_api__.a)("/haoban-manage-web/record/save-record-detail",e).then(function(e){1==e.data.errorCode?(t.showEdit=!1,t.$emit("subSuccess"),t.$message({message:e.data.message,type:"success"})):t.$message.error(e.data.message)}).catch(function(e){t.$message.error(e.message)})},cancelEdit:function(){this.$refs.cell_form.clearValidate();var e=this.fieldsInfo,t=this.staticInfo;for(var i in e)e[i]=t[i];this.showEdit=!1}},computed:{defineObj:function(){return JSON.parse(this.clerkInfo.defineString)},rules:function(){var e={},t=function(e,t,i){return t?new RegExp("^[0-9]*$").test(1*t)?i():i(new Error("请输入数字!")):i()};return this.fieldList.forEach(function(i){var a=[];0!=i.fieldType&&1!=i.fieldType||(i.minCount&&i.maxCount&&a.push({min:i.minCount,message:"至少填写"+i.minCount+"个字符",trigger:"change"}),!i.minCount&&i.maxCount&&a.push({max:i.maxCount,message:"至多填写"+i.maxCount+"个字符",trigger:"change"}),i.minCount&&i.maxCount&&a.push({min:i.minCount,max:i.maxCount,message:"长度在 "+i.minCount+" 到 "+i.maxCount+"个字符",trigger:"change"})),6==i.fieldType&&a.push({validator:t,message:i.fieldName+"必须为数字",trigger:"change"}),e[i.fieldCode]=a}),e}},beforeMount:function(){var e=JSON.parse(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_core_js_json_stringify___default()(this.info));for(var t in e)e[t]=null==e[t]?"":"object"===__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_typeof___default()(e[t])?e[t]:String(e[t]);this.fieldsInfo=e}}},NvV1:function(e,t){},hFS7:function(e,t){}}); webpackJsonp([12],{"5gt+":function(e,t,i){"use strict";var a=i("mvHQ"),s=i.n(a),l=i("//Fk"),o=i.n(l),n=i("DAYN"),r={name:"vue-office-upload-image",props:{projectName:{type:String,default:"haoban-manage-web"},wxFlag:{type:String,default:"1"},imgRate:{type:String},actionUrl:{type:String,default:""},maxImageLength:{type:Number,default:5},limitW:{type:Number},limitH:{type:Number},imageList:{type:Array,default:function(){return[]}}},data:function(){return{dragImageList:this.imageList,initialImg:0,progress:0,pass:null,isEnlargeImage:!1,enlargeImage:""}},computed:{propStatus:function(){return this.pass?"success":!1===this.pass?"exception":"text"}},beforeMount:function(){},methods:{uploadUrl:function(){var e,t=window.location.origin,i=void 0;return e=this.wxFlag&&""!=this.wxFlag?"wxFlag="+this.wxFlag+"&":"",i="-1"!=t.indexOf("localhost")?"http://www.gicdev.com":t,this.upUrl=i+this.actionUrl+"?"+e+"requestProject="+this.projectName,this.upUrl},beforeAvatarUpload:function(e){var t=this,i=("image/jpeg"===e.type||"image/jpg"===e.type||e.type,e.size/1024/1024<2);return i||t.$message.error("上传图片大小不能超过 2MB!"),i&&new o.a(function(i,a){var s=new FileReader;s.onload=function(e){var s=new Image;s.onload=function(){var e=this.width,s=this.height;t.imgRate&&""!==t.imgRate&&(Number(t.imgRate.split(":")[0])/Number(t.imgRate.split(":")[1])!=Number(e)/Number(s)&&(t.$message.error("上传图片比例不正确!"),a()));t.imgRate&&""!=t.imgRate||!t.limitW||!t.limitH||e===t.limitW||s===t.limitH||(t.$message.error("上传图片尺寸不正确!"),a()),i()},s.src=e.target.result},s.readAsDataURL(e)})},uploadOnSuccess:function(e,t){this.pass=!0,1==e.errorCode?(this.$message.success("上传成功"),this.$emit("uploadOnSuccess",{res:e,file:t},this.imageList)):this.$message.error(e.message)},uploadOnProgress:function(e,t){e&&e.percent&&(this.progress=Math.floor(e.percent))},uploadOnChange:function(e){"ready"===e.status?(this.pass=null,this.progress=0):"fail"===e.status&&this.$message.error("图片上传失败,请重试!")},uploadOnError:function(){},previewImage:function(e){this.isEnlargeImage=!0,this.initialImg=e},deleteImage:function(e){this.$emit("deleteImage",e);var t=JSON.parse(s()(this.imageList));t.splice(e,1),this.$emit("update:imageList",t)},handleClose:function(e){e()},itemMoveEnd:function(e){this.$emit("sortImg",this.dragImageList),this.$emit("update:imageList",this.dragImageList)}},watch:{imageList:function(e,t){this.dragImageList=e}},mounted:function(){},components:{draggable:i.n(n).a}},d={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"gic-upload__img"},[i("div",{staticClass:"gic-upload__img__drag"},[i("draggable",{staticClass:"drag-wrap",staticStyle:{display:"contents"},attrs:{options:{group:{name:"people",pull:!1,put:!0},sort:!0}},on:{end:e.itemMoveEnd},model:{value:e.dragImageList,callback:function(t){e.dragImageList=t},expression:"dragImageList"}},[i("transition-group",{attrs:{name:"slide-fade"}},e._l(e.imageList,function(t,a){return i("div",{key:a,class:["img-content",a>=6?"m-t-8":""]},[i("a",{staticClass:"item-img",attrs:{href:t.url}},[i("img",{attrs:{src:t.url,alt:"上传图片"}})]),e._v(" "),i("div",{staticClass:"upload-icon__btn"},[i("i",{staticClass:"el-icon-view",on:{click:function(t){e.previewImage(a)}}}),e._v(" "),i("i",{staticClass:"el-icon-delete",on:{click:function(t){e.deleteImage(a)}}})])])}))],1),e._v(" "),e.pass||0===e.progress?e._e():i("div",{class:["img-content","img-progress",e.imageList.length>=6?"m-t-8":""]},[i("el-progress",{staticClass:"gic-img-progress",staticStyle:{"line-height":"102px"},attrs:{width:102,percentage:e.progress,status:e.propStatus}})],1),e._v(" "),e.imageList&&e.imageList.length<e.maxImageLength?i("div",{class:["img-upload",e.imageList.length>=6?"m-t-8":""]},[i("el-upload",{staticClass:"loader",attrs:{accept:"image/jpg,image/jpeg,image/png,image/gif",action:e.uploadUrl(),"list-type":"picture-card","on-change":e.uploadOnChange,"before-upload":e.beforeAvatarUpload,"on-success":e.uploadOnSuccess,"on-error":e.uploadOnError,"on-progress":e.uploadOnProgress}},[i("i",{staticClass:"el-icon-plus gic-upload-btn"})])],1):e._e()],1),e._v(" "),i("el-dialog",{attrs:{title:"图片预览",visible:e.isEnlargeImage,"modal-append-to-body":!1,"before-close":e.handleClose,width:"520px"},on:{"update:visible":function(t){e.isEnlargeImage=t}}},[e.isEnlargeImage?i("el-carousel",{attrs:{trigger:"click","initial-index":e.initialImg,autoplay:!1,height:"500px"}},e._l(e.imageList,function(t,a){return i("el-carousel-item",{key:a,staticStyle:{display:"flex","align-items":"center","justify-content":"center"}},[i("img",{staticStyle:{"max-width":"480px","max-height":"500px"},attrs:{src:t.url},on:{click:function(t){e.isEnlargeImage=!1}}})])})):e._e()],1)],1)},staticRenderFns:[]};var f=i("VU/8")(r,d,!1,function(e){i("NvV1")},null,null);t.a=f.exports},"67iC":function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=i("3Xzz"),s=i("P9l9"),l=i("0xDb"),o=i("KzHU"),n={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"editable-cell-container"},[i("div",{staticClass:"title-div"},[i("span",{staticClass:"font-w-500"},[e._v(e._s(e.title))]),e._v(" "),i("div",{staticClass:"hurdle"}),e._v(" "),i("a",{staticClass:"a-href",on:{click:function(t){e.showEdit=!0}}},[e._v("编辑")])]),e._v(" "),i("el-form",{ref:"cell_form",staticClass:"info-form",attrs:{rules:e.rules,inline:"","label-width":"150px",model:e.fieldsInfo}},[e._l(e.fieldList,function(t,a){return[i("el-form-item",{key:t.fieldCode+"_"+a,staticClass:"item-width",attrs:{label:t.title+":",prop:t.fieldCode}},[e.showEdit?[0==t.fieldType?i("el-input",{attrs:{placeholder:t.fieldDescription,disabled:"1"!=t.fieldEdited},model:{value:e.fieldsInfo[t.fieldCode],callback:function(i){e.$set(e.fieldsInfo,t.fieldCode,i)},expression:"fieldsInfo[item.fieldCode]"}}):e._e(),e._v(" "),6==t.fieldType?i("el-input",{attrs:{placeholder:t.fieldDescription,disabled:"1"!=t.fieldEdited},model:{value:e.fieldsInfo[t.fieldCode],callback:function(i){e.$set(e.fieldsInfo,t.fieldCode,i)},expression:"fieldsInfo[item.fieldCode]"}}):1==t.fieldType?i("el-input",{attrs:{type:"textarea",autosize:"",disabled:"1"!=t.fieldEdited},model:{value:e.fieldsInfo[t.fieldCode],callback:function(i){e.$set(e.fieldsInfo,t.fieldCode,i)},expression:"fieldsInfo[item.fieldCode]"}}):2==t.fieldType||3==t.fieldType?[1==t.systemFlag?i("el-select",{attrs:{disabled:"1"!=t.fieldEdited,multiple:3==t.fieldType,"collapse-tags":3==t.fieldType,placeholder:t.fieldDescription},model:{value:e.fieldsInfo[t.fieldCode],callback:function(i){e.$set(e.fieldsInfo,t.fieldCode,i)},expression:"fieldsInfo[item.fieldCode]"}},e._l(t.fieldOperations.fieldContent,function(e){return i("el-option",{key:e.key,attrs:{label:e.name,value:e.key}})})):i("el-select",{attrs:{disabled:"1"!=t.fieldEdited,multiple:3==t.fieldType,"collapse-tags":3==t.fieldType,placeholder:t.fieldDescription},model:{value:e.fieldsInfo[t.fieldCode],callback:function(i){e.$set(e.fieldsInfo,t.fieldCode,i)},expression:"fieldsInfo[item.fieldCode]"}},e._l(t.fieldOperations.fieldContent,function(e,t){return i("el-option",{key:e.key+"_"+t,attrs:{label:e.name,value:e.name}})}))]:4==t.fieldType?i("el-date-picker",{attrs:{type:"date",disabled:"1"!=t.fieldEdited,format:t.fieldOperations.typeValue,"value-format":t.fieldOperations.typeValue,placeholder:t.fieldDescription},model:{value:e.fieldsInfo[t.fieldCode],callback:function(i){e.$set(e.fieldsInfo,t.fieldCode,i)},expression:"fieldsInfo[item.fieldCode]"}}):5==t.fieldType?i("el-date-picker",{attrs:{type:"daterange","range-separator":"至",disabled:"1"!=t.fieldEdited,format:t.fieldOperations.typeValue,"value-format":t.fieldOperations.typeValue,"start-placeholder":t.fieldOperations.startDescription,"end-placeholder":t.fieldOperations.endDescription},model:{value:e.fieldsInfo[t.fieldCode],callback:function(i){e.$set(e.fieldsInfo,t.fieldCode,i)},expression:"fieldsInfo[item.fieldCode]"}}):7==t.fieldType?i("uploadImage",{attrs:{projectName:"haoban-manage-web",wxFlag:"0",actionUrl:e.uploadUrl,imageList:e.fieldsInfo[t.fieldCode],limitW:500,limitH:500,maxImageLength:5},on:{"update:imageList":function(i){e.$set(e.fieldsInfo,t.fieldCode,i)},uploadOnSuccess:e.uploadOnSuccess,sortImg:e.sortImg,deleteImage:e.deleteImage}}):e._e()]:[0==t.fieldType||1==t.fieldType||6==t.fieldType?i("div",{staticClass:"field-value color-606266"},[e._v("\n "+e._s(e.fieldsInfo[t.fieldCode])+"\n ")]):2==t.fieldType?[1==t.systemFlag?i("div",{staticClass:"field-value color-606266"},[e._v("\n "+e._s(t.fieldOperations.fieldContent[1*e.fieldsInfo[t.fieldCode]-1]?t.fieldOperations.fieldContent[1*e.fieldsInfo[t.fieldCode]-1].name:"")+"\n ")]):i("div",{staticClass:"field-value color-606266"},[e._v(e._s(e.fieldsInfo[t.fieldCode]))])]:3==t.fieldType?i("div",{staticClass:"field-value color-606266"}):4==t.fieldType?i("div",{staticClass:"field-value color-606266"},[e._v("\n "+e._s(e._f("formatDate")(e.fieldsInfo[t.fieldCode],t.fieldOperations.typeValue))+"\n ")]):5==t.fieldType?i("div",{staticClass:"field-value color-606266"},[e._v("\n "+e._s(e.fieldsInfo[t.fieldCode].join("至"))+"\n ")]):7==t.fieldType?i("div",{staticClass:"img-box"},e._l(e.fieldsInfo[t.fieldCode],function(e,t){return i("div",{key:t+e.url,staticClass:"item-imgs"},[i("a",{attrs:{href:""}},[i("img",{attrs:{src:e.url}})])])})):e._e()]],2)]})],2),e._v(" "),e.showEdit?i("div",{staticClass:"handle-form-btns t-ct m-b-60"},[i("el-button",{attrs:{type:"primary"},on:{click:e.saveEdit}},[e._v("保存")]),e._v(" "),i("el-button",{on:{click:e.cancelEdit}},[e._v("取消")])],1):e._e()],1)},staticRenderFns:[]};var r=function(e){i("hFS7")},d=i("VU/8")(o.a,n,!1,r,null,null).exports,f=i("IVno"),c={name:"recordInfo",components:{navCrumb:a.a,editableCell:d,handleDialog:f.a},filters:{formatDate:l.b},data:function(){return{windowH:window.screen.availHeight-180+"px",navpath:[{name:"首页",path:"/index"},{name:"企业通讯录",path:"/administrativeFrame"},{name:"员工档案",path:"/fileSet"},{name:"在职员工",path:"/employeeRecord"},{name:"编辑员工信息",path:""}],editNavpath:[{name:"首页",path:"/index"},{name:"企业通讯录",path:"/administrativeFrame"},{name:"员工档案",path:"/fileSet"},{name:"离职员工",path:"/unemployee"},{name:"编辑员工信息",path:""}],dialogVisible:!1,htmlTitle:"员工档案",info:{},staticInfo:{},statusList:["正式","试用","离职"],reasons:["","家庭原因","个人原因","发展原因","合同到期不续签","协议解除","无法胜任工作","经济性裁员","严重违法违纪","其他"],items:[],fieldList:[],mileStone:[],historyStatus:["新入职","转正","离职","转岗","再入职"],editHisObj:{}}},methods:{handleSuccess:function(){this.dialogVisible=!1},getEmployeeDetail:function(){var e=this,t={recordId:e.$route.query.recordId};Object(s.a)("/haoban-manage-web/record/employee-detail",t).then(function(t){1==t.data.errorCode?e.getTemplate(t.data.result):e.$message.error({message:t.data.message})}).catch(function(t){e.$message.error({message:t.message})})},subSuccess:function(){this.getEmployeeDetail()},getTemplate:function(e){var t=this;Object(s.a)("/haoban-manage-web/record/employee-find-template",{}).then(function(i){1==i.data.errorCode?t.formatTemplateList(i.data.result,e):t.$message.error({message:i.data.message})}).catch(function(e){t.$message.error({message:e.message})})},formatTemplateList:function(e,t){var i=[],a=e,s=JSON.parse(t.defineString),o=Object(l.a)(t);for(var n in s)o[n]=s[n];e.forEach(function(e){if(0!=e.parentCode&&(e.fieldOperations=JSON.parse(e.fieldOperations)),5==e.fieldType&&(o[e.fieldCode]=o[e.fieldCode]?o[e.fieldCode].split(","):["",""],t[e.fieldCode]=t[e.fieldCode]?t[e.fieldCode].split(","):["",""]),6==e.fieldType&&(o[e.fieldCode]*=1,t[e.fieldCode]*=1),7==e.fieldType){var s=[];o[e.fieldCode]=o[e.fieldCode]?o[e.fieldCode].split(","):[],o[e.fieldCode].forEach(function(e){s.push({url:e})}),t[e.fieldCode]=s,o[e.fieldCode]=s.slice(0)}e.title=e.fieldName;var l=[];a.forEach(function(t){t.parentCode==e.fieldCode&&l.push(t)}),l.sort(function(e,t){return 1*e.sort-1*t.sort}),l.length>0&&(e.childrens=l),0==e.parentCode&&i.push(e)}),i.sort(function(e,t){return 1*e.sort-1*t.sort}),this.fieldList=i,this.info=o,this.staticInfo=t},getHistoryList:function(){var e=this,t={recordId:e.$route.query.recordId};Object(s.a)("/haoban-manage-web/record/history-record-list",t).then(function(t){if(1==t.data.errorCode){var i=t.data.result;e.formatMileStone(i)}else e.$message({message:t.data.message})}).catch(function(t){e.$message({message:t.message})})},formatMileStone:function(e){e.sort(function(e,t){return 1*e.historyDate-1*t.historyDate});for(var t=[],i=0,a=e.length;i<a;i+=4)t.push(e.slice(i,i+4));this.mileStone=t},editHis:function(e){this.editHisObj.historyId=e.historyId,this.editHisObj.recordId=this.$route.query.recordId,this.dialogVisible=!0}},beforeMount:function(){this.getEmployeeDetail(),this.getHistoryList()},mounted:function(){var e=this.$route.query.type;e&&"unemployee"==e&&(this.navpath=this.editNavpath),this.$nextTick(function(){document.querySelector(".contact-wrap__body").style.overflow="hidden",document.getElementsByClassName("contact-wrap__right")[0].removeAttribute("style")})},beforeDestroy:function(){document.querySelector(".contact-wrap__body").style.overflow="auto";var e=window.screen.availHeight-300+"px";document.getElementsByClassName("contact-wrap__right")[0].setAttribute("style","height:"+e)}},u={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"common-set-wrap",style:{"min-height":e.windowH}},[i("nav-crumb",{attrs:{navpath:e.navpath}}),e._v(" "),i("div",{staticClass:"right-content"},[i("div",{staticClass:"right-box"},[i("div",{staticClass:"commom-container clerk-detail-container"},[i("p",{staticClass:"t-rt"},[i("a",{staticClass:"a-href font-14",on:{click:function(t){e.getPdf()}}},[e._v("打印员工档案")])]),e._v(" "),i("div",{style:{"min-height":e.windowH},attrs:{id:"pdfDom"}},[i("div",{staticClass:"employee-detail-cell"},[i("div",{staticClass:"head-info"},[i("p",{staticClass:"head-cell"},[e.info.headPic?i("img",{staticClass:"head-img",attrs:{src:e.info.headPic}}):i("span",{staticClass:"head-img-null"},[i("i",{staticClass:"iconfont icon-yewuduanmorentouxian"})])]),e._v(" "),i("p",{staticClass:"head-cell name"},[e._v("\n "+e._s(e.info.clerkName)),i("span",[e._v(e._s("-1"==e.info.clerkStatus?"无状态":e.statusList[e.info.clerkStatus-1]))])]),e._v(" "),i("p",{staticClass:"head-cell c-303133"},[e._v(e._s(e.info.groupName)+e._s(e.info.positionName))]),e._v(" "),i("p",{staticClass:"head-cell color-606266"},[e._v("已在"+e._s(e.info.enterpriseName)+"工作了"+e._s(e.info.days)+"天")])])]),e._v(" "),e._l(e.fieldList,function(t){return[t.childrens?i("editable-cell",{key:t.fieldCode,attrs:{info:e.info,staticInfo:e.staticInfo,items:e.items,title:t.title,fieldList:t.childrens},on:{subSuccess:e.subSuccess}}):e._e()]}),e._v(" "),i("div",{staticClass:"mile-stone-container"},[e._m(0),e._v(" "),i("ul",{staticClass:"mile-stone"},e._l(e.mileStone,function(t,a){return i("li",{key:a,staticClass:"stone-group",class:a%2==0?"column":"column-reverse"},[4==t.length&&a!=e.mileStone.length-1?i("div",{staticClass:"column-hurdle"}):e._e(),e._v(" "),e._l(t,function(t,s){return i("div",{key:s,staticClass:"stone",class:a%2==1&&3==s||a%2==0&&0==s&&0!=a?"no-radio":""},[i("p",{staticClass:"time"},[e._v(e._s(e._f("formatDate")(t.historyDate,"YY-MM-DD")))]),e._v(" "),e._m(1,!0),e._v(" "),i("p",{staticClass:"position"},[e._v(e._s(t.positionName))]),e._v(" "),i("p",{staticClass:"font-16 "},[e._v(e._s(e.historyStatus[1*t.historyStatus-1])),3==t.historyStatus?i("a",{staticClass:"a-href m-l-10 fs-12",on:{click:function(i){e.editHis(t)}}},[e._v("编辑")]):e._e()]),e._v(" "),3==t.historyStatus?i("p",[e._v("离职理由:"+e._s(e.reasons[t.fireReason]))]):e._e(),e._v(" "),i("p",{staticClass:"color-606266"},[e._v(e._s(t.storeName?t.storeName:t.groupName))])])})],2)}))])],2),e._v(" "),i("el-dialog",{attrs:{title:"修改离职信息",visible:e.dialogVisible,width:"480px"},on:{"update:visible":function(t){e.dialogVisible=t}}},[i("handle-dialog",{attrs:{employee:e.editHisObj,handleType:"changeFireInfo",typeTitle:"修改离职信息"},on:{handleSuccess:e.handleSuccess}})],1)],1)])]),e._v(" "),i("vue-gic-footer")],1)},staticRenderFns:[function(){var e=this.$createElement,t=this._self._c||e;return t("p",{staticClass:"m-s-title"},[t("span",{staticClass:"font-w-500"},[this._v("员工记录")])])},function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"hurdle-box"},[t("span",{staticClass:"radio"}),this._v(" "),t("div",{staticClass:"hurdle"})])}]};var _=i("VU/8")(c,u,!1,function(e){i("AZxu")},null,null);t.default=_.exports},AZxu:function(e,t){},KzHU:function(module,__webpack_exports__,__webpack_require__){"use strict";var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_typeof__=__webpack_require__("pFYg"),__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_typeof___default=__webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_typeof__),__WEBPACK_IMPORTED_MODULE_1_babel_runtime_core_js_json_stringify__=__webpack_require__("mvHQ"),__WEBPACK_IMPORTED_MODULE_1_babel_runtime_core_js_json_stringify___default=__webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_core_js_json_stringify__),__WEBPACK_IMPORTED_MODULE_2_components_employeeRecord_uploadImage__=__webpack_require__("5gt+"),__WEBPACK_IMPORTED_MODULE_3__utils_index__=__webpack_require__("0xDb"),__WEBPACK_IMPORTED_MODULE_4__api_api__=__webpack_require__("P9l9");__webpack_exports__.a={name:"editableCell",props:{info:{type:Object,required:!0},staticInfo:{type:Object,required:!0},items:{type:Array,required:!0},title:{type:String,default:""},fieldList:{type:Array,required:!0}},components:{uploadImage:__WEBPACK_IMPORTED_MODULE_2_components_employeeRecord_uploadImage__.a},filters:{formatDate:__WEBPACK_IMPORTED_MODULE_3__utils_index__.b},data:function(){return{showEdit:!1,uploadUrl:"/haoban-manage-web/upload-img",fieldsInfo:{}}},methods:{uploadOnSuccess:function(e,t){e.file.url=e.res.result[0].qcloudImageUrl,t.push(e.file)},deleteImage:function(e){this.imageList=this.imageList?this.imageList:[],this.imageList.splice(e,1)},sortImg:function(e){this.imageList=e},saveEdit:function saveEdit(){var that=this;that.$refs.cell_form.validate(function(valid){if(valid){var newInfo=Object(__WEBPACK_IMPORTED_MODULE_3__utils_index__.a)(that.fieldsInfo),params={},regFlag=[],fieldList=that.fieldList,objToString=[];if(fieldList.forEach(function(field){if(params[field.fieldCode]=newInfo[field.fieldCode],5==field.fieldType&&(params[field.fieldCode]=newInfo[field.fieldCode].join(",")),7==field.fieldType){var arr=[];newInfo[field.fieldCode].forEach(function(e){arr.push(e.url)}),params[field.fieldCode]=arr.join(",")}if(1!=field.systemFlag){if(objToString.push({fieldCode:field.fieldCode,fieldValue:newInfo[field.fieldCode]}),5==field.fieldType&&objToString.push({fieldCode:field.fieldCode,fieldValue:newInfo[field.fieldCode].join(",")}),7==field.fieldType){var _arr=[];newInfo[field.fieldCode].forEach(function(e){_arr.push(e.url)}),objToString.push({fieldCode:field.fieldCode,fieldValue:_arr.join(",")})}delete params[field.fieldCode]}field.regular&&newInfo[field.fieldCode]&&regFlag.push(eval(field.regular).test(newInfo[field.fieldCode]))}),regFlag.length&&regFlag.includes(!1))return that.$message.error("请输入正确格式的字段值!"),!1;params.jsonString="[]"==__WEBPACK_IMPORTED_MODULE_1_babel_runtime_core_js_json_stringify___default()(objToString)?"":__WEBPACK_IMPORTED_MODULE_1_babel_runtime_core_js_json_stringify___default()(objToString),params.recordId=that.$route.query.recordId,that.submitEdit(params)}})},submitEdit:function(e){var t=this;Object(__WEBPACK_IMPORTED_MODULE_4__api_api__.a)("/haoban-manage-web/record/save-record-detail",e).then(function(e){1==e.data.errorCode?(t.showEdit=!1,t.$emit("subSuccess"),t.$message({message:e.data.message,type:"success"})):t.$message.error(e.data.message)}).catch(function(e){t.$message.error(e.message)})},cancelEdit:function(){this.$refs.cell_form.clearValidate();var e=this.fieldsInfo,t=this.staticInfo;for(var i in e)e[i]=t[i];this.showEdit=!1}},computed:{defineObj:function(){return JSON.parse(this.clerkInfo.defineString)},rules:function(){var e={},t=function(e,t,i){return t?new RegExp("^[0-9]*$").test(1*t)?i():i(new Error("请输入数字!")):i()};return this.fieldList.forEach(function(i){var a=[];0!=i.fieldType&&1!=i.fieldType||(i.minCount&&i.maxCount&&a.push({min:i.minCount,message:"至少填写"+i.minCount+"个字符",trigger:"change"}),!i.minCount&&i.maxCount&&a.push({max:i.maxCount,message:"至多填写"+i.maxCount+"个字符",trigger:"change"}),i.minCount&&i.maxCount&&a.push({min:i.minCount,max:i.maxCount,message:"长度在 "+i.minCount+" 到 "+i.maxCount+"个字符",trigger:"change"})),6==i.fieldType&&a.push({validator:t,message:i.fieldName+"必须为数字",trigger:"change"}),e[i.fieldCode]=a}),e}},beforeMount:function(){var e=JSON.parse(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_core_js_json_stringify___default()(this.info));for(var t in e)e[t]=null==e[t]?"":"object"===__WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_typeof___default()(e[t])?e[t]:String(e[t]);this.fieldsInfo=e}}},NvV1:function(e,t){},hFS7:function(e,t){}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([13],{NNAT:function(e,t,i){"use strict";var a=i("fZjL"),o=i.n(a),s=i("mvHQ"),l=i.n(s),n=i("P9l9"),r=i("0xDb"),c={name:"list-item",props:{item:{type:String,required:!0}},filters:{formatDate:r.b},data:function(){return{typeLsit:["全部","全职","兼职","外包","实习","无类型"],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},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:{callHandle:function(e){"编辑员工资料"!=e.typeTitle?this.$emit("callHandle",e.obj,e.type,e.typeTitle):location.href="#/recordInfo?recordId="+e.obj.recordId}},mounted:function(){}},d={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.typeLsit[t.row[e.item]||5])+"\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",attrs:{href:"#/recordInfo?recordId="+t.row.recordId+"&type=unemployee"}},[e._v("编辑")])])]):e._e()]}}])}):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}})},staticRenderFns:[]};var p=i("VU/8")(c,d,!1,function(e){i("edn0")},null,null).exports,h=i("IVno"),u=i("Ie7z"),m=i("c4uw"),f={name:"employeeRecordList",props:{isUnEmployee:{type:Boolean,default:!1}},components:{listItem:p,handleDialog:h.a,vueSelectStore:u.a,vueSelectEmployee:m.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:["全部","正式","试用"],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:[],adList:[],adDefaultSelection:[],stList:[],changed: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 i=[],a=[];1==t.data.errorCode&&(i=t.data.result.departmentList||[],a=t.data.result.searchList||[]),e.treeData={treeData:i,personData:a},e.disabled=!1}).catch(function(e){})},callSelector:function(){this.$refs.departmentSelector.treeSet.dialogVisible=!0},callStoreSelector:function(){this.$refs.storeSelector.treeSet.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.adList=e;var t=this.selectionList.concat(e);this.selectionList=t,this.formatSelectionList(t)},handleStoreSelectedList:function(e){this.stList=e;var t=this.selectionList.concat(e);this.selectionList=t,this.formatSelectionList(t)},formatSelectionList:function(e){var t=this.unique(e);this.selectionList=t;var i=this;t.length&&(i.chooseClerkIdList=[],i.chooseStoreIdList=[],i.chooseGroupIdList=[],t.forEach(function(e){e.employeeClerkId?i.chooseClerkIdList.push(e.employeeClerkId):e.storeId?i.chooseStoreIdList.push(e.storeId):e.groupId&&i.chooseGroupIdList.push(e.groupId)}),i.getEmloyeeList())},unique:function(e){var t={};return e.forEach(function(e){t[l()(e)]=e}),e=o()(t).map(function(e){return JSON.parse(e)})},delSld:function(e,t){var i=this,a=this.selectionList.indexOf(e);this.selectionList.splice(a,1),this.formatSelectionList(this.selectionList),i.adList.forEach(function(t){t.id==e.id&&i.adList.splice(i.adList.indexOf(t),1)}),i.changed+=1,i.adDefaultSelection=i.adList.slice(0)},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",a={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)(i,a).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","hireDate","fireDate","fireReason","handleUnEmployee"]:["headPic","clerkName","clerkPhone","groupName","clerkCode","positionName","clerkType","hireDate","correctionDate","handleEmployee"]}}},y={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,value:t}})}))],e._v(" "),i("el-input",{staticStyle:{width:"218px","margin-left":"10px"},attrs:{placeholder:"请输入姓名或手机号",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}},[e._v("导出"),i("i",{staticClass:"el-icon-upload el-icon--right"})])],1),e._v(" "),e.selectionList.length>0?i("ul",{staticClass:"selector-selected-list"},[e._l(e.selectionList,function(t,a){return[i("li",{key:a+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",on:{handleSelectedList:e.handleStoreSelectedList}}),e._v(" "),i("vue-select-employee",{ref:"departmentSelector",attrs:{changed:e.changed,treeData:e.treeData,defaultSelection:e.adDefaultSelection},on:{handleSelectedList:e.handleSelectedList}})],1)},staticRenderFns:[]};var g=i("VU/8")(f,y,!1,function(e){i("hl59")},null,null);t.a=g.exports},TGrv:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=i("3Xzz"),o=i("NNAT"),s={name:"employeeRecord",components:{navCrumb:a.a,employeeList:o.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(){}},l={render:function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"common-set-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=i("VU/8")(s,l,!1,function(e){i("xnej")},null,null);t.default=n.exports},edn0:function(e,t){},hl59:function(e,t){},xnej:function(e,t){}});
\ No newline at end of file
webpackJsonp([13],{"+uHg":function(e,t){},NNAT:function(e,t,i){"use strict";var a=i("fZjL"),o=i.n(a),s=i("mvHQ"),l=i.n(s),n=i("P9l9"),r=i("0xDb"),c={name:"list-item",props:{item:{type:String,required:!0}},filters:{formatDate:r.b},data:function(){return{typeLsit:["全部","全职","兼职","外包","实习","无类型"],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},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:{callHandle:function(e){"编辑员工资料"!=e.typeTitle?this.$emit("callHandle",e.obj,e.type,e.typeTitle):location.href="#/recordInfo?recordId="+e.obj.recordId}},mounted:function(){}},d={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.typeLsit[t.row[e.item]||5])+"\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",attrs:{href:"#/recordInfo?recordId="+t.row.recordId+"&type=unemployee"}},[e._v("编辑")])])]):e._e()]}}])}):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}})},staticRenderFns:[]};var p=i("VU/8")(c,d,!1,function(e){i("edn0")},null,null).exports,h=i("IVno"),u=i("Ie7z"),m=i("c4uw"),f={name:"employeeRecordList",props:{isUnEmployee:{type:Boolean,default:!1}},components:{listItem:p,handleDialog:h.a,vueSelectStore:u.a,vueSelectEmployee:m.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:["全部","正式","试用"],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:[],adList:[],adDefaultSelection:[],stList:[],changed: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 i=[],a=[];1==t.data.errorCode&&(i=t.data.result.departmentList||[],a=t.data.result.searchList||[]),e.treeData={treeData:i,personData:a},e.disabled=!1}).catch(function(e){})},callSelector:function(){this.$refs.departmentSelector.treeSet.dialogVisible=!0},callStoreSelector:function(){this.$refs.storeSelector.treeSet.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.adList=e;var t=this.selectionList.concat(e);this.selectionList=t,this.formatSelectionList(t)},handleStoreSelectedList:function(e){this.stList=e;var t=this.selectionList.concat(e);this.selectionList=t,this.formatSelectionList(t)},formatSelectionList:function(e){var t=this.unique(e);this.selectionList=t;var i=this;t.length&&(i.chooseClerkIdList=[],i.chooseStoreIdList=[],i.chooseGroupIdList=[],t.forEach(function(e){e.employeeClerkId?i.chooseClerkIdList.push(e.employeeClerkId):e.storeId?i.chooseStoreIdList.push(e.storeId):e.groupId&&i.chooseGroupIdList.push(e.groupId)}),i.getEmloyeeList())},unique:function(e){var t={};return e.forEach(function(e){t[l()(e)]=e}),e=o()(t).map(function(e){return JSON.parse(e)})},delSld:function(e,t){var i=this,a=this.selectionList.indexOf(e);this.selectionList.splice(a,1),this.formatSelectionList(this.selectionList),i.adList.forEach(function(t){t.id==e.id&&i.adList.splice(i.adList.indexOf(t),1)}),i.changed+=1,i.adDefaultSelection=i.adList.slice(0)},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",a={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)(i,a).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","hireDate","fireDate","fireReason","handleUnEmployee"]:["headPic","clerkName","clerkPhone","groupName","clerkCode","positionName","clerkType","hireDate","correctionDate","handleEmployee"]}}},y={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,value:t}})}))],e._v(" "),i("el-input",{staticStyle:{width:"218px","margin-left":"10px"},attrs:{placeholder:"请输入姓名或手机号",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}},[e._v("导出"),i("i",{staticClass:"el-icon-upload el-icon--right"})])],1),e._v(" "),e.selectionList.length>0?i("ul",{staticClass:"selector-selected-list"},[e._l(e.selectionList,function(t,a){return[i("li",{key:a+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:{height:e.employeeList.length?e.tableH:"auto",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",on:{handleSelectedList:e.handleStoreSelectedList}}),e._v(" "),i("vue-select-employee",{ref:"departmentSelector",attrs:{changed:e.changed,treeData:e.treeData,defaultSelection:e.adDefaultSelection},on:{handleSelectedList:e.handleSelectedList}})],1)},staticRenderFns:[]};var g=i("VU/8")(f,y,!1,function(e){i("+uHg")},null,null);t.a=g.exports},TGrv:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=i("3Xzz"),o=i("NNAT"),s={name:"employeeRecord",components:{navCrumb:a.a,employeeList:o.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(){}},l={render:function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"common-set-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=i("VU/8")(s,l,!1,function(e){i("xnej")},null,null);t.default=n.exports},edn0:function(e,t){},xnej:function(e,t){}});
\ No newline at end of file
webpackJsonp([20],{"/spz":function(e,t){},Xwfy:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=r("woOf"),s=r.n(a),l=r("mvHQ"),i=r.n(l),o=r("gBtx"),n=r.n(o),c=r("3Xzz"),d=r("fZjL"),u=r.n(d),h={name:"set-permiss-data",components:{},props:{value:{type:[Object,Array],default:function(){return[]}},title:{type:String}},data:function(){return{defaultSelection:this.value||[]}},methods:{delCurrent:function(e,t){t.splice(e,1)},updateList:function(e){this.$emit("input",e)},handleSelectedList:function(e){},showSelector:function(){this.$emit("showSelect")}},watch:{value:function(e,t){this.defaultSelection=e}},mounted:function(){this.defaultSelection=this.value}},m={render:function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"select-area"},[r("div",{staticClass:"setting-name",staticStyle:{"font-size":"14px",color:"#606266"}},[e._v("\n "+e._s(e.title)+"\n ")]),e._v(" "),r("ul",{staticClass:"particular-list"},[e._l(e.defaultSelection,function(t,a){return[1==t.type?r("li",{key:a+"_"+t.employeeClerkId,staticClass:"item person-item"},[r("div",{class:["img-wrap","flex","flex-align-center","flex-pack-center",t.headPic?"":"img-wrap-bg"]},[t.headPic?r("img",{attrs:{src:t.headPic,alt:"headPic"}}):r("i",{staticClass:"iconfont icon-yewuduanmorentouxian"}),e._v(" "),r("i",{staticClass:"el-icon-circle-close",on:{click:function(t){e.delCurrent(a,e.defaultSelection)}}})]),e._v(" "),r("p",{staticClass:"name"},[e._v(e._s(t.name||t.label))])]):e._e(),e._v(" "),2==t.type||3==t.type?r("li",{key:a+"_"+t.groupId,staticClass:"item group-item"},[e._v("\n "+e._s(t.name||t.label)+"\n "),r("i",{staticClass:"el-icon-circle-close",on:{click:function(t){e.delCurrent(a,e.defaultSelection)}}})]):e._e()]}),e._v(" "),r("li",{staticClass:"item J_add-btn flex flex-align-center flex-pack-center",on:{click:e.showSelector}},[r("i",{staticClass:"el-icon-plus"})])],2)])},staticRenderFns:[]};var p=r("VU/8")(h,m,!1,function(e){r("ptQr")},null,null).exports,f=r("c4uw"),v=r("Ie7z"),b=r("3E4D"),S=r("Ch4/"),g=r("PI0u"),C=r("P9l9"),k={name:"",props:{authData:{type:[Object,Array],default:function(){return{}}},permType:{type:[Number,String]}},data:function(){return{projectName:"",ruleForm:{radio:1,visibleAll:[],visibleStoreAll:[]},treeSet:{isSelectPerson:!0,dialogVisible:!1,isSingle:!1},treeData:{},defaultSelection:[],onlyPerson:!1,changed:"",defaultStoreList:[],storeTreeSet:{isSelectPerson:!1,dialogVisible:!1,isSingle:!1}}},beforeMount:function(){var e=window.location.origin;"-1"!=e.indexOf("localhost")?this.baseUrl="http://www.gicdev.com":this.baseUrl=e},methods:{changeRadio:function(e){this.ruleForm.visibleAll=[],this.ruleForm.visibleStoreAll=[]},submitForm:Object(g.a)(function(e){var t=this;t.$refs[e].validate(function(e){if(!e)return!1;var r={allowCherkIds:[],allowDepartIds:[],allowStoreIds:[],brandId:t.ruleForm.brandId,groupId:t.ruleForm.groupId,radio:t.ruleForm.radio};3!=t.ruleForm.radio||t.ruleForm.visibleAll.length||t.ruleForm.visibleStoreAll.length?(3==t.ruleForm.radio&&(t.ruleForm.visibleAll.forEach(function(e,t){e.hasOwnProperty("employeeClerkId")?r.allowCherkIds.push(e.employeeClerkId):e.hasOwnProperty("groupId")?r.allowDepartIds.push(e.groupId):1===n()(e.type)?r.allowCherkIds.push(e.id):2===n()(e.type)&&r.allowDepartIds.push(e.id)}),t.ruleForm.visibleStoreAll.forEach(function(e,t){e.hasOwnProperty("employeeClerkId")?r.allowCherkIds.push(e.employeeClerkId):e.hasOwnProperty("groupId")?r.allowDepartIds.push(e.groupId):e.hasOwnProperty("storeId")?r.allowStoreIds.push(e.storeId):1===n()(e.type)?r.allowCherkIds.push(e.id):2===n()(e.type)?r.allowDepartIds.push(e.id):3===n()(e.type)&&r.allowStoreIds.push(e.id)})),t.setStoreAuth(r,t.permType)):t.$message.error({duration:1e3,message:"请选择指定部门/人员"})})},500),setStoreAuth:function(e,t){var r=this,a={type:t,brandId:e.brandId,groupId:e.groupId,storeEmployeeAuth:e.radio,storeManagerAuth:e.radio,allowCherkIds:e.allowCherkIds.join(","),allowDepartIds:e.allowDepartIds.join(","),allowStoreIds:e.allowStoreIds.join(",")};Object(C.c)("/haoban-manage-web/brand/saveStoreAuth",a).then(function(e){var t=e.data;1!=t.errorCode?S.a.errorMsg(t):b.a.showmsg("保存成功","success")}).catch(function(e){r.$message.error({duration:1e3,message:e.message})})},handleAuthData:function(e){var t=this;u()(e).length&&(t.ruleForm.brandId=e.brandId,t.ruleForm.groupId=e.groupId,1===n()(t.permType)&&(t.ruleForm.radio=e.brandDTO.storeEmployeeAuth||1,e.employeeAuthList.length&&e.employeeAuthList.forEach(function(e,t){2===n()(e.type)&&(e.groupId=e.id),e.label=e.name}),t.ruleForm.visibleAll=[],t.ruleForm.visibleStoreAll=[],e.employeeAuthList.forEach(function(e,r){e.isStore?t.ruleForm.visibleStoreAll.push(e):t.ruleForm.visibleAll.push(e)}),t.defaultSelection=t.ruleForm.visibleAll,t.defaultStoreList=t.ruleForm.visibleStoreAll),2===n()(t.permType)&&(t.ruleForm.radio=e.brandDTO.storeManagerAuth||1,e.managerAuthList.length&&e.managerAuthList.forEach(function(e,t){2===n()(e.type)&&(e.groupId=e.id),e.label=e.name}),t.ruleForm.visibleAll=[],t.ruleForm.visibleStoreAll=[],e.managerAuthList.forEach(function(e,r){e.isStore?t.ruleForm.visibleStoreAll.push(e):t.ruleForm.visibleAll.push(e)}),t.defaultSelection=t.ruleForm.visibleAll,t.defaultStoreList=t.ruleForm.visibleStoreAll))},showSelect:function(e){if("store"===e)return this.defaultStoreList=this.ruleForm.visibleStoreAll,void(this.storeTreeSet={dialogVisible:!0,isSingle:!1,isSelectPerson:!0});this.treeSet={dialogVisible:!0,isSingle:!1,isSelectPerson:!0},this.defaultSelection=this.ruleForm.visibleAll},handleSelectedList:function(e){this.defaultSelection=e,this.ruleForm.visibleAll=e},handleSelectedStoreList:function(e){this.defaultStoreList=e,this.ruleForm.visibleStoreAll=e},getDepartData:function(e){var t=this;Object(C.c)("/haoban-manage-web/dept/deptListForCompany",{}).then(function(e){var r=e.data;if(1!=r.errorCode)S.a.errorMsg(r);else if(r.result){var a=[],s=[];1==e.data.errorCode&&(a=e.data.result.departmentList||[],s=e.data.result.searchList||[]),t.treeData={treeData:a,personData:s},t.$forceUpdate()}else t.$message.error({duration:1e3,message:"暂无数据"})}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},watch:{authData:function(e,t){this.handleAuthData(e)}},mounted:function(){this.handleAuthData(this.authData),this.getDepartData()},components:{setPermissData:p,vueSelectEmployee:f.a,vueSelectStore:v.a}},w={render:function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"permiss-wrap"},[r("el-form",{ref:"ruleForm",attrs:{"label-width":"110px",model:e.ruleForm}},[r("el-radio-group",{on:{change:e.changeRadio},model:{value:e.ruleForm.radio,callback:function(t){e.$set(e.ruleForm,"radio",t)},expression:"ruleForm.radio"}},[r("el-form-item",{attrs:{label:1==e.permType?"店员可见权限":"店长可见权限"}},[r("el-radio",{attrs:{label:1}},[e._v("可见所有品牌门店架构和行政架构")])],1),e._v(" "),r("el-form-item",{attrs:{label:" "}},[r("el-radio",{attrs:{label:2}},[e._v("门店仅可见自己门店")])],1),e._v(" "),r("el-form-item",{attrs:{label:" "}},[r("el-radio",{attrs:{label:3}},[e._v("自定义可见权限")])],1),e._v(" "),3==e.ruleForm.radio?r("div",{staticClass:"permiss-child-cell"},[r("setPermissData",{attrs:{title:"允许行政架构可见"},on:{showSelect:function(t){e.showSelect("depart")}},model:{value:e.ruleForm.visibleAll,callback:function(t){e.$set(e.ruleForm,"visibleAll",t)},expression:"ruleForm.visibleAll"}}),e._v(" "),r("setPermissData",{attrs:{title:"允许门店架构可见"},on:{showSelect:function(t){e.showSelect("store")}},model:{value:e.ruleForm.visibleStoreAll,callback:function(t){e.$set(e.ruleForm,"visibleStoreAll",t)},expression:"ruleForm.visibleStoreAll"}})],1):e._e()],1),e._v(" "),r("el-form-item",[r("el-button",{attrs:{type:"primary"},on:{click:function(t){e.submitForm("ruleForm")}}},[e._v("保 存")])],1)],1),e._v(" "),r("vue-select-employee",{attrs:{defaultSelection:e.defaultSelection,treeSet:e.treeSet,onlyPerson:e.onlyPerson,changed:e.changed},on:{handleSelectedList:e.handleSelectedList}}),e._v(" "),r("vue-select-store",{ref:"storeSelector",attrs:{treeSet:e.storeTreeSet,selectType:"all",defaultList:e.defaultStoreList},on:{handleSelectedList:e.handleSelectedStoreList}})],1)},staticRenderFns:[]};var I=r("VU/8")(k,w,!1,function(e){r("hV8z")},"data-v-375246b1",null).exports,y={name:"storePermission",data:function(){return{navpath:[{name:"首页",path:"/index"},{name:"设置",path:"/companyAddress"},{name:"通讯录信息",path:"/staffDetails"},{name:"门店权限设置",path:""}],activeName:"",brandList:[],switchList:{addName:"新增门店成员",addStoreClerkCheck:!1,delName:"删除门店成员",deleteStoreClerkCheck:!1,modName:"门店信息变更",storeInformationChangeCheck:!1}}},computed:{},methods:{handleClick:function(e,t){this.getStoreAuth(e.name,n()(e.index)),this.activeName=e.name},saveSwitch:Object(g.a)(function(){var e=JSON.parse(i()(this.switchList));e.addStoreClerkCheck=1==e.addStoreClerkCheck?1:0,e.deleteStoreClerkCheck=1==e.deleteStoreClerkCheck?1:0,e.storeInformationChangeCheck=1==e.storeInformationChangeCheck?1:0,this.setStoreAuth(e)},600),setStoreAuth:function(e){var t=this,r={brandId:e.brandId,groupId:t.activeName,addStoreClerkCheck:e.addStoreClerkCheck,deleteStoreClerkCheck:e.deleteStoreClerkCheck,storeInformationChangeCheck:e.storeInformationChangeCheck};Object(C.c)("/haoban-manage-web/brand/saveStoreAuth",r).then(function(e){var t=e.data;1!=t.errorCode?S.a.errorMsg(t):b.a.showmsg("保存成功","success")}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},getStoreAuth:function(e,t){var r=this,a={groupId:e};Object(C.c)("/haoban-manage-web/brand/storeAuth",a).then(function(e){var t=e.data;if(1!=t.errorCode)S.a.errorMsg(t);else if(t.result){r.brandList.clerkData=t.result,r.brandList.managerData=t.result;var a=t.result.brandDTO;a.addStoreClerkCheck=1==a.addStoreClerkCheck,a.deleteStoreClerkCheck=1==a.deleteStoreClerkCheck,a.storeInformationChangeCheck=1==a.storeInformationChangeCheck,r.switchList=s()(r.switchList,a),r.$forceUpdate()}}).catch(function(e){r.$message.error({duration:1e3,message:e.message})})},getBrandData:function(){var e=this;Object(C.c)("/haoban-manage-web/brand/list",{}).then(function(t){var r=t.data;1!=r.errorCode?S.a.errorMsg(r):r.result&&r.result.length&&(e.brandList=r.result,e.activeName=r.result[0].groupId,e.getStoreAuth(r.result[0].groupId,0))}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},mounted:function(){this.getBrandData()},components:{navCrumb:c.a,setPermiss:I}},A={render:function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"storePermission-wrap common-set-wrap"},[r("nav-crumb",{attrs:{navpath:e.navpath}}),e._v(" "),r("div",{staticClass:"right-content"},[r("div",{staticClass:"right-box",staticStyle:{background:"unset",padding:"0"}},[r("el-tabs",{on:{"tab-click":e.handleClick},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[e._l(e.brandList,function(e,t){return[r("el-tab-pane",{key:"name"+t,attrs:{label:e.name,name:e.groupId}})]})],2),e._v(" "),r("div",{staticClass:"storePermission-title font-w-500"},[e._v("\n 门店成员通讯录可见权限\n ")]),e._v(" "),r("div",{staticClass:"bg-fff permiss-contain"},[r("set-permiss",{attrs:{permType:1,authData:e.brandList.clerkData}}),e._v(" "),r("div",{staticClass:"b-l"}),e._v(" "),r("set-permiss",{attrs:{permType:2,authData:e.brandList.managerData}})],1),e._v(" "),r("div",{staticClass:"storePermission-wrap-switch m-t-24"},[r("div",{staticClass:"storePermission-switch-title font-w-500"},[e._v("\n 门店信息变更是否需要审核\n ")]),e._v(" "),r("div",{staticClass:"storePermission-switch-body"},[r("div",{staticClass:"switch-cell"},[r("el-switch",{attrs:{"inactive-text":e.switchList.addName},model:{value:e.switchList.addStoreClerkCheck,callback:function(t){e.$set(e.switchList,"addStoreClerkCheck",t)},expression:"switchList.addStoreClerkCheck"}})],1),e._v(" "),r("div",{staticClass:"switch-cell"},[r("el-switch",{attrs:{"inactive-text":e.switchList.delName},model:{value:e.switchList.deleteStoreClerkCheck,callback:function(t){e.$set(e.switchList,"deleteStoreClerkCheck",t)},expression:"switchList.deleteStoreClerkCheck"}})],1),e._v(" "),r("div",{staticClass:"switch-cell p-l-94"},[r("el-button",{attrs:{type:"primary"},on:{click:e.saveSwitch}},[e._v("保 存")])],1)])])],1)]),e._v(" "),r("vue-gic-footer")],1)},staticRenderFns:[]};var F=r("VU/8")(y,A,!1,function(e){r("/spz")},"data-v-3879a8f2",null);t.default=F.exports},hV8z:function(e,t){},ptQr:function(e,t){}}); webpackJsonp([19],{"/spz":function(e,t){},Xwfy:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=r("woOf"),s=r.n(a),l=r("mvHQ"),i=r.n(l),o=r("gBtx"),n=r.n(o),c=r("3Xzz"),d=r("fZjL"),u=r.n(d),h={name:"set-permiss-data",components:{},props:{value:{type:[Object,Array],default:function(){return[]}},title:{type:String}},data:function(){return{defaultSelection:this.value||[]}},methods:{delCurrent:function(e,t){t.splice(e,1)},updateList:function(e){this.$emit("input",e)},handleSelectedList:function(e){},showSelector:function(){this.$emit("showSelect")}},watch:{value:function(e,t){this.defaultSelection=e}},mounted:function(){this.defaultSelection=this.value}},m={render:function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"select-area"},[r("div",{staticClass:"setting-name",staticStyle:{"font-size":"14px",color:"#606266"}},[e._v("\n "+e._s(e.title)+"\n ")]),e._v(" "),r("ul",{staticClass:"particular-list"},[e._l(e.defaultSelection,function(t,a){return[1==t.type?r("li",{key:a+"_"+t.employeeClerkId,staticClass:"item person-item"},[r("div",{class:["img-wrap","flex","flex-align-center","flex-pack-center",t.headPic?"":"img-wrap-bg"]},[t.headPic?r("img",{attrs:{src:t.headPic,alt:"headPic"}}):r("i",{staticClass:"iconfont icon-yewuduanmorentouxian"}),e._v(" "),r("i",{staticClass:"el-icon-circle-close",on:{click:function(t){e.delCurrent(a,e.defaultSelection)}}})]),e._v(" "),r("p",{staticClass:"name"},[e._v(e._s(t.name||t.label))])]):e._e(),e._v(" "),2==t.type||3==t.type?r("li",{key:a+"_"+t.groupId,staticClass:"item group-item"},[e._v("\n "+e._s(t.name||t.label)+"\n "),r("i",{staticClass:"el-icon-circle-close",on:{click:function(t){e.delCurrent(a,e.defaultSelection)}}})]):e._e()]}),e._v(" "),r("li",{staticClass:"item J_add-btn flex flex-align-center flex-pack-center",on:{click:e.showSelector}},[r("i",{staticClass:"el-icon-plus"})])],2)])},staticRenderFns:[]};var p=r("VU/8")(h,m,!1,function(e){r("ptQr")},null,null).exports,f=r("c4uw"),v=r("Ie7z"),b=r("3E4D"),S=r("Ch4/"),g=r("PI0u"),C=r("P9l9"),k={name:"",props:{authData:{type:[Object,Array],default:function(){return{}}},permType:{type:[Number,String]}},data:function(){return{projectName:"",ruleForm:{radio:1,visibleAll:[],visibleStoreAll:[]},treeSet:{isSelectPerson:!0,dialogVisible:!1,isSingle:!1},treeData:{},defaultSelection:[],onlyPerson:!1,changed:"",defaultStoreList:[],storeTreeSet:{isSelectPerson:!1,dialogVisible:!1,isSingle:!1}}},beforeMount:function(){var e=window.location.origin;"-1"!=e.indexOf("localhost")?this.baseUrl="http://www.gicdev.com":this.baseUrl=e},methods:{changeRadio:function(e){this.ruleForm.visibleAll=[],this.ruleForm.visibleStoreAll=[]},submitForm:Object(g.a)(function(e){var t=this;t.$refs[e].validate(function(e){if(!e)return!1;var r={allowCherkIds:[],allowDepartIds:[],allowStoreIds:[],brandId:t.ruleForm.brandId,groupId:t.ruleForm.groupId,radio:t.ruleForm.radio};3!=t.ruleForm.radio||t.ruleForm.visibleAll.length||t.ruleForm.visibleStoreAll.length?(3==t.ruleForm.radio&&(t.ruleForm.visibleAll.forEach(function(e,t){e.hasOwnProperty("employeeClerkId")?r.allowCherkIds.push(e.employeeClerkId):e.hasOwnProperty("groupId")?r.allowDepartIds.push(e.groupId):1===n()(e.type)?r.allowCherkIds.push(e.id):2===n()(e.type)&&r.allowDepartIds.push(e.id)}),t.ruleForm.visibleStoreAll.forEach(function(e,t){e.hasOwnProperty("employeeClerkId")?r.allowCherkIds.push(e.employeeClerkId):e.hasOwnProperty("groupId")?r.allowDepartIds.push(e.groupId):e.hasOwnProperty("storeId")?r.allowStoreIds.push(e.storeId):1===n()(e.type)?r.allowCherkIds.push(e.id):2===n()(e.type)?r.allowDepartIds.push(e.id):3===n()(e.type)&&r.allowStoreIds.push(e.id)})),t.setStoreAuth(r,t.permType)):t.$message.error({duration:1e3,message:"请选择指定部门/人员"})})},500),setStoreAuth:function(e,t){var r=this,a={type:t,brandId:e.brandId,groupId:e.groupId,storeEmployeeAuth:e.radio,storeManagerAuth:e.radio,allowCherkIds:e.allowCherkIds.join(","),allowDepartIds:e.allowDepartIds.join(","),allowStoreIds:e.allowStoreIds.join(",")};Object(C.c)("/haoban-manage-web/brand/saveStoreAuth",a).then(function(e){var t=e.data;1!=t.errorCode?S.a.errorMsg(t):b.a.showmsg("保存成功","success")}).catch(function(e){r.$message.error({duration:1e3,message:e.message})})},handleAuthData:function(e){var t=this;u()(e).length&&(t.ruleForm.brandId=e.brandId,t.ruleForm.groupId=e.groupId,1===n()(t.permType)&&(t.ruleForm.radio=e.brandDTO.storeEmployeeAuth||1,e.employeeAuthList.length&&e.employeeAuthList.forEach(function(e,t){2===n()(e.type)&&(e.groupId=e.id),e.label=e.name}),t.ruleForm.visibleAll=[],t.ruleForm.visibleStoreAll=[],e.employeeAuthList.forEach(function(e,r){e.isStore?t.ruleForm.visibleStoreAll.push(e):t.ruleForm.visibleAll.push(e)}),t.defaultSelection=t.ruleForm.visibleAll,t.defaultStoreList=t.ruleForm.visibleStoreAll),2===n()(t.permType)&&(t.ruleForm.radio=e.brandDTO.storeManagerAuth||1,e.managerAuthList.length&&e.managerAuthList.forEach(function(e,t){2===n()(e.type)&&(e.groupId=e.id),e.label=e.name}),t.ruleForm.visibleAll=[],t.ruleForm.visibleStoreAll=[],e.managerAuthList.forEach(function(e,r){e.isStore?t.ruleForm.visibleStoreAll.push(e):t.ruleForm.visibleAll.push(e)}),t.defaultSelection=t.ruleForm.visibleAll,t.defaultStoreList=t.ruleForm.visibleStoreAll))},showSelect:function(e){if("store"===e)return this.defaultStoreList=this.ruleForm.visibleStoreAll,void(this.storeTreeSet={dialogVisible:!0,isSingle:!1,isSelectPerson:!0});this.treeSet={dialogVisible:!0,isSingle:!1,isSelectPerson:!0},this.defaultSelection=this.ruleForm.visibleAll},handleSelectedList:function(e){this.defaultSelection=e,this.ruleForm.visibleAll=e},handleSelectedStoreList:function(e){this.defaultStoreList=e,this.ruleForm.visibleStoreAll=e},getDepartData:function(e){var t=this;Object(C.c)("/haoban-manage-web/dept/deptListForCompany",{}).then(function(e){var r=e.data;if(1!=r.errorCode)S.a.errorMsg(r);else if(r.result){var a=[],s=[];1==e.data.errorCode&&(a=e.data.result.departmentList||[],s=e.data.result.searchList||[]),t.treeData={treeData:a,personData:s},t.$forceUpdate()}else t.$message.error({duration:1e3,message:"暂无数据"})}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},watch:{authData:function(e,t){this.handleAuthData(e)}},mounted:function(){this.handleAuthData(this.authData),this.getDepartData()},components:{setPermissData:p,vueSelectEmployee:f.a,vueSelectStore:v.a}},w={render:function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"permiss-wrap"},[r("el-form",{ref:"ruleForm",attrs:{"label-width":"110px",model:e.ruleForm}},[r("el-radio-group",{on:{change:e.changeRadio},model:{value:e.ruleForm.radio,callback:function(t){e.$set(e.ruleForm,"radio",t)},expression:"ruleForm.radio"}},[r("el-form-item",{attrs:{label:1==e.permType?"店员可见权限":"店长可见权限"}},[r("el-radio",{attrs:{label:1}},[e._v("可见所有品牌门店架构和行政架构")])],1),e._v(" "),r("el-form-item",{attrs:{label:" "}},[r("el-radio",{attrs:{label:2}},[e._v("门店仅可见自己门店")])],1),e._v(" "),r("el-form-item",{attrs:{label:" "}},[r("el-radio",{attrs:{label:3}},[e._v("自定义可见权限")])],1),e._v(" "),3==e.ruleForm.radio?r("div",{staticClass:"permiss-child-cell"},[r("setPermissData",{attrs:{title:"允许行政架构可见"},on:{showSelect:function(t){e.showSelect("depart")}},model:{value:e.ruleForm.visibleAll,callback:function(t){e.$set(e.ruleForm,"visibleAll",t)},expression:"ruleForm.visibleAll"}}),e._v(" "),r("setPermissData",{attrs:{title:"允许门店架构可见"},on:{showSelect:function(t){e.showSelect("store")}},model:{value:e.ruleForm.visibleStoreAll,callback:function(t){e.$set(e.ruleForm,"visibleStoreAll",t)},expression:"ruleForm.visibleStoreAll"}})],1):e._e()],1),e._v(" "),r("el-form-item",[r("el-button",{attrs:{type:"primary"},on:{click:function(t){e.submitForm("ruleForm")}}},[e._v("保 存")])],1)],1),e._v(" "),r("vue-select-employee",{attrs:{defaultSelection:e.defaultSelection,treeSet:e.treeSet,onlyPerson:e.onlyPerson,changed:e.changed},on:{handleSelectedList:e.handleSelectedList}}),e._v(" "),r("vue-select-store",{ref:"storeSelector",attrs:{treeSet:e.storeTreeSet,selectType:"all",defaultList:e.defaultStoreList},on:{handleSelectedList:e.handleSelectedStoreList}})],1)},staticRenderFns:[]};var I=r("VU/8")(k,w,!1,function(e){r("hV8z")},"data-v-375246b1",null).exports,y={name:"storePermission",data:function(){return{navpath:[{name:"首页",path:"/index"},{name:"设置",path:"/companyAddress"},{name:"通讯录信息",path:"/staffDetails"},{name:"门店权限设置",path:""}],activeName:"",brandList:[],switchList:{addName:"新增门店成员",addStoreClerkCheck:!1,delName:"删除门店成员",deleteStoreClerkCheck:!1,modName:"门店信息变更",storeInformationChangeCheck:!1}}},computed:{},methods:{handleClick:function(e,t){this.getStoreAuth(e.name,n()(e.index)),this.activeName=e.name},saveSwitch:Object(g.a)(function(){var e=JSON.parse(i()(this.switchList));e.addStoreClerkCheck=1==e.addStoreClerkCheck?1:0,e.deleteStoreClerkCheck=1==e.deleteStoreClerkCheck?1:0,e.storeInformationChangeCheck=1==e.storeInformationChangeCheck?1:0,this.setStoreAuth(e)},600),setStoreAuth:function(e){var t=this,r={brandId:e.brandId,groupId:t.activeName,addStoreClerkCheck:e.addStoreClerkCheck,deleteStoreClerkCheck:e.deleteStoreClerkCheck,storeInformationChangeCheck:e.storeInformationChangeCheck};Object(C.c)("/haoban-manage-web/brand/saveStoreAuth",r).then(function(e){var t=e.data;1!=t.errorCode?S.a.errorMsg(t):b.a.showmsg("保存成功","success")}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},getStoreAuth:function(e,t){var r=this,a={groupId:e};Object(C.c)("/haoban-manage-web/brand/storeAuth",a).then(function(e){var t=e.data;if(1!=t.errorCode)S.a.errorMsg(t);else if(t.result){r.brandList.clerkData=t.result,r.brandList.managerData=t.result;var a=t.result.brandDTO;a.addStoreClerkCheck=1==a.addStoreClerkCheck,a.deleteStoreClerkCheck=1==a.deleteStoreClerkCheck,a.storeInformationChangeCheck=1==a.storeInformationChangeCheck,r.switchList=s()(r.switchList,a),r.$forceUpdate()}}).catch(function(e){r.$message.error({duration:1e3,message:e.message})})},getBrandData:function(){var e=this;Object(C.c)("/haoban-manage-web/brand/list",{}).then(function(t){var r=t.data;1!=r.errorCode?S.a.errorMsg(r):r.result&&r.result.length&&(e.brandList=r.result,e.activeName=r.result[0].groupId,e.getStoreAuth(r.result[0].groupId,0))}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},mounted:function(){this.getBrandData()},components:{navCrumb:c.a,setPermiss:I}},A={render:function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"storePermission-wrap common-set-wrap"},[r("nav-crumb",{attrs:{navpath:e.navpath}}),e._v(" "),r("div",{staticClass:"right-content"},[r("div",{staticClass:"right-box",staticStyle:{background:"unset",padding:"0"}},[r("el-tabs",{on:{"tab-click":e.handleClick},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[e._l(e.brandList,function(e,t){return[r("el-tab-pane",{key:"name"+t,attrs:{label:e.name,name:e.groupId}})]})],2),e._v(" "),r("div",{staticClass:"storePermission-title font-w-500"},[e._v("\n 门店成员通讯录可见权限\n ")]),e._v(" "),r("div",{staticClass:"bg-fff permiss-contain"},[r("set-permiss",{attrs:{permType:1,authData:e.brandList.clerkData}}),e._v(" "),r("div",{staticClass:"b-l"}),e._v(" "),r("set-permiss",{attrs:{permType:2,authData:e.brandList.managerData}})],1),e._v(" "),r("div",{staticClass:"storePermission-wrap-switch m-t-24"},[r("div",{staticClass:"storePermission-switch-title font-w-500"},[e._v("\n 门店信息变更是否需要审核\n ")]),e._v(" "),r("div",{staticClass:"storePermission-switch-body"},[r("div",{staticClass:"switch-cell"},[r("el-switch",{attrs:{"inactive-text":e.switchList.addName},model:{value:e.switchList.addStoreClerkCheck,callback:function(t){e.$set(e.switchList,"addStoreClerkCheck",t)},expression:"switchList.addStoreClerkCheck"}})],1),e._v(" "),r("div",{staticClass:"switch-cell"},[r("el-switch",{attrs:{"inactive-text":e.switchList.delName},model:{value:e.switchList.deleteStoreClerkCheck,callback:function(t){e.$set(e.switchList,"deleteStoreClerkCheck",t)},expression:"switchList.deleteStoreClerkCheck"}})],1),e._v(" "),r("div",{staticClass:"switch-cell p-l-94"},[r("el-button",{attrs:{type:"primary"},on:{click:e.saveSwitch}},[e._v("保 存")])],1)])])],1)]),e._v(" "),r("vue-gic-footer")],1)},staticRenderFns:[]};var F=r("VU/8")(y,A,!1,function(e){r("/spz")},"data-v-3879a8f2",null);t.default=F.exports},hV8z:function(e,t){},ptQr:function(e,t){}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([2],{"4WTo":function(e,t,o){var s=o("NWt+");e.exports=function(e,t){var o=[];return s(e,!1,o.push,o,t),o}},"5zde":function(e,t,o){o("zQR9"),o("qyJz"),e.exports=o("FeBl").Array.from},"77K1":function(e,t){},"7Doy":function(e,t,o){var s=o("EqjI"),a=o("7UMu"),r=o("dSzd")("species");e.exports=function(e){var t;return a(e)&&("function"!=typeof(t=e.constructor)||t!==Array&&!a(t.prototype)||(t=void 0),s(t)&&null===(t=t[r])&&(t=void 0)),void 0===t?Array:t}},"9Bbf":function(e,t,o){"use strict";var s=o("kM2E");e.exports=function(e){s(s.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,o){"use strict";var s=o("evD5").f,a=o("Yobk"),r=o("xH/j"),n=o("+ZMJ"),i=o("2KxR"),l=o("NWt+"),c=o("vIB/"),u=o("EGZi"),d=o("bRrM"),p=o("+E39"),h=o("06OY").fastKey,m=o("LIJb"),f=p?"_s":"size",g=function(e,t){var o,s=h(t);if("F"!==s)return e._i[s];for(o=e._f;o;o=o.n)if(o.k==t)return o};e.exports={getConstructor:function(e,t,o,c){var u=e(function(e,s){i(e,u,t,"_i"),e._t=t,e._i=a(null),e._f=void 0,e._l=void 0,e[f]=0,void 0!=s&&l(s,o,e[c],e)});return r(u.prototype,{clear:function(){for(var e=m(this,t),o=e._i,s=e._f;s;s=s.n)s.r=!0,s.p&&(s.p=s.p.n=void 0),delete o[s.i];e._f=e._l=void 0,e[f]=0},delete:function(e){var o=m(this,t),s=g(o,e);if(s){var a=s.n,r=s.p;delete o._i[s.i],s.r=!0,r&&(r.n=a),a&&(a.p=r),o._f==s&&(o._f=a),o._l==s&&(o._l=r),o[f]--}return!!s},forEach:function(e){m(this,t);for(var o,s=n(e,arguments.length>1?arguments[1]:void 0,3);o=o?o.n:this._f;)for(s(o.v,o.k,this);o&&o.r;)o=o.p},has:function(e){return!!g(m(this,t),e)}}),p&&s(u.prototype,"size",{get:function(){return m(this,t)[f]}}),u},def:function(e,t,o){var s,a,r=g(e,t);return r?r.v=o:(e._l=r={i:a=h(t,!0),k:t,v:o,p:s=e._l,n:void 0,r:!1},e._f||(e._f=r),s&&(s.n=r),e[f]++,"F"!==a&&(e._i[a]=r)),e},getEntry:g,setStrong:function(e,t,o){c(e,t,function(e,o){this._t=m(e,t),this._k=o,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))},o?"entries":"values",!o,!0),d(t)}}},ALrJ:function(e,t,o){var s=o("+ZMJ"),a=o("MU5D"),r=o("sB3e"),n=o("QRG4"),i=o("oeOm");e.exports=function(e,t){var o=1==e,l=2==e,c=3==e,u=4==e,d=6==e,p=5==e||d,h=t||i;return function(t,i,m){for(var f,g,v=r(t),b=a(v),C=s(i,m,3),I=n(b.length),A=0,y=o?h(t,I):l?h(t,0):void 0;I>A;A++)if((p||A in b)&&(g=C(f=b[A],A,v),e))if(o)y[A]=g;else if(g)switch(e){case 3:return!0;case 5:return f;case 6:return A;case 2:y.push(f)}else if(u)return!1;return d?-1:c||u?u:y}}},BDhv:function(e,t,o){var s=o("kM2E");s(s.P+s.R,"Set",{toJSON:o("m9gC")("Set")})},Gfms:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=o("lHA8"),a=o.n(s),r=o("Gu7T"),n=o.n(r),i=o("3Xzz"),l={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:[],menuDataMine:[],defaultOpen:[],shareArea:[]}},methods:{formatGroupData:function(e){var t=this,o=[],s=window.localStorage.getItem("userInfo"),a=JSON.parse(s).enterpriseId,r=!1;e.forEach(function(s,n){if(s.exportEnterpriseId==a){var i={title:s.title,sharedContactRelationId:s.sharedContactRelationId,id:s.sharedContactRelationId,shares:[s]};s.childrens=s.ext.sharedContactDepartmentStoreGroupList,s.childrens.forEach(function(e){t.formatGroup(e,1)}),r||(r=!0,t.$emit("getEmployeeFirst",s.childrens[0])),t.defaultOpen.push(s.childrens[0].id),t.defaultOpen.push(s.childrens[1].id),e.forEach(function(e){e.exportEnterpriseId==s.importEnterpriseId&&(e.childrens=e.ext.sharedContactDepartmentStoreGroupList,e.childrens.forEach(function(e){t.formatGroup(e,0)}),i.shares.push(e),t.defaultOpen.push(e.childrens[0].id),t.defaultOpen.push(e.childrens[1].id))}),o.push(i)}}),t.shareArea=o,t.$forceUpdate()},formatGroup:function(e,t){var o=this;e.id=e.sharedContactGroupId,e.label=e.name,e.isMine=t,e.ext&&e.ext.sharedContactDepartmentStoreGroupList&&(e.childrens=e.ext.sharedContactDepartmentStoreGroupList,e.childrens.forEach(function(e){o.formatGroup(e,t)}))},clearFn:function(){this.searchResultShow=!1},searchFn:function(){if(""==this.searchKey)return this.searchResultShow=!1,!1;this.searchResultShow=!0,this.$emit("handleSearchKey",this.searchKey)},handleNodeClick:function(e,t){this.$emit("handleTreeSelection",e,t,"node")},selectEmployee:function(e){this.$emit("handleEmployeeSelection",e,"employee")},handleStoreClick:function(e){this.$emit("handleStoreSelection",e,"store")}},filter:{},computed:{employeeList:function(){var e=[];this.searchResult.employeeStoreList&&this.searchResult.employeeStoreList.forEach(function(t){t.ext.employeeClerk?(t.employeeClerkId=t.ext.employeeClerk.employeeClerkId,t.name=t.employeeStoreName,e.push(t)):t.ext.store.ext.employeeClerkList.forEach(function(t){e.push(t)})});return e},storeList:function(){var e=[];this.searchResult.employeeStoreList&&this.searchResult.employeeStoreList.forEach(function(t){t.ext.store&&(t.storeId=t.employeeStoreId,t.name=t.employeeStoreName,e.push(t))});return e},departmentList:function(){return this.searchResult.groupList?(this.searchResult.groupList.forEach(function(e){e.id=e.sharedContactGroupId}),this.searchResult.groupList):[]}},watch:{treeData:function(e,t){this.formatGroupData(e)}},mounted:function(){this.formatGroupData(this.treeData)}},c={render:function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"searh-menu-container"},[o("div",{staticClass:"p-0-15"},[o("el-input",{attrs:{"prefix-icon":"el-icon-search",placeholder:"姓名/手机号/部门名称",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")],2),e._v(" "),e.searchResultShow?o("div",{staticClass:"search-result-container m-t-15"},[e.departmentList.length>0?o("ul",{staticClass:"search-result-ul"},[o("p",{staticClass:"title"},[e._v("部门列表")]),e._v(" "),e._l(e.departmentList,function(t,s){return o("li",{key:s+"_"+t.groupId,staticClass:"group-item items",on:{click:function(o){e.handleNodeClick(t)}}},[o("i",{staticClass:"iconfont icon-tongshi-zuzhijiagou"}),e._v("\n "+e._s(t.name)+"\n ")])})],2):e._e(),e._v(" "),e.storeList.length>0?o("ul",{staticClass:"search-result-ul"},[o("p",{staticClass:"title store-frame-title"},[e._v("门店列表")]),e._v(" "),e._l(e.storeList,function(t,s){return o("li",{key:s+"_"+t.storeId,staticClass:"group-item items",on:{click:function(o){e.handleStoreClick(t)}}},[o("i",{staticClass:"iconfont icon-tongshi-zuzhijiagou"}),e._v("\n "+e._s(t.name)+"\n ")])})],2):e._e(),e._v(" "),e.employeeList.length>0?o("ul",{staticClass:"search-result-ul"},[o("p",{staticClass:"title"},[e._v("人员列表")]),e._v(" "),e._l(e.employeeList,function(t,s){return o("li",{key:s+"_"+t.employeeClerkId,staticClass:"person-item items",on:{click:function(o){e.selectEmployee(t)}}},[o("i",{staticClass:"iconfont icon-chengyuan"}),e._v("\n "+e._s(t.name)+"\n ")])})],2):e._e(),e._v(" "),e.departmentList.length<1&&e.employeeList.length<1?o("p",{staticClass:"no-data-tip"},[e._v("暂无数据")]):e._e()]):[e._l(e.shareArea,function(t){return[o("div",{key:t.sharedContactRelationId},[o("p",{staticClass:"area-title"},[e._v(e._s(t.title))]),e._v(" "),o("p",{staticClass:"share-title"},[e._v("我方共享给对方的所有人员")]),e._v(" "),o("div",{staticClass:"p-0-15",attrs:{id:"id"+t.shares[0].sharedContactRelationId}},[o("el-tree",{staticClass:"search-menu",attrs:{"node-key":"id","default-expanded-keys":e.defaultOpen,data:t.shares[0].childrens,"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 s=t.node;return t.data,o("span",{staticClass:"custom-tree-node"},[o("i",{staticClass:"iconfont",class:1==s.level?"icon-2zuzhijiagou":"icon-tongshi-zuzhijiagou"}),e._v(" "),o("span",[e._v(e._s(s.label))])])}}])})],1),e._v(" "),e._m(0,!0),e._v(" "),o("div",{staticClass:"p-0-15",attrs:{id:"id"+t.shares[1].sharedContactRelationId}},[e.searchResultShow?e._e():o("el-tree",{staticClass:"search-menu",attrs:{"node-key":"id","default-expanded-keys":e.defaultOpen,data:t.shares[1].childrens,"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 s=t.node;return t.data,o("span",{staticClass:"custom-tree-node"},[o("i",{staticClass:"iconfont",class:1==s.level?"icon-2zuzhijiagou":"icon-tongshi-zuzhijiagou"}),e._v(" "),o("span",[e._v(e._s(s.label))])])}}])})],1)])]})]],2)},staticRenderFns:[function(){var e=this.$createElement,t=this._self._c||e;return t("p",{staticClass:"share-title"},[this._v("对方共享给我方的所有人员"),t("i",{staticClass:"el-icon-upload"})])}]};var u=o("VU/8")(l,c,!1,function(e){o("W6b0")},null,null).exports,d=o("P9l9"),p=o("c4uw"),h={name:"employeeInfo",components:{vueSelectEmployee:p.a},props:{perId:{type:[String,Number],default:""},isNew:{type:Boolean,default:!1}},data:function(){return{info:{name:"",phoneNumber:"",departmentId:"",departmentName:"",managerMode:!1},treeData:{},disabled:!0,employeeInfo:{name:"",phoneNumber:"",departmentName:""},rules:{name:[{required:!0,message:"请输入员工姓名",trigger:"blur"},{min:2,max:10,message:"长度在 2 到 10 个字符",trigger:"blur"}],phoneNumber:[{required:!0,validator:function(e,t,o){if(!t)return o(new Error("请输入手机号"));return/^1[34578]\d{9}$/.test(t)?void 0:o(new Error("手机号格式不正确"))},trigger:"blur"}],departmentId:[{required:!0,message:"请选择部门",trigger:"change"}]},treeSet:{isSelectPerson:!1,dialogVisible:!1,isSingle:!0}}},methods:{getGroupData:function(){var e=this;Object(d.a)("/haoban-manage-web/dept/deptListForCompany",{isStoreGroup:0}).then(function(t){var o=[],s=[];1==t.data.errorCode&&(o=t.data.result.departmentList||[],s=t.data.result.searchList||[]),e.treeData={treeData:o,personData:s},e.disabled=!1}).catch(function(e){})},callGroupSelector:function(){this.treeSet.dialogVisible=!0},handleSelectedList:function(e){this.info.departmentId=e.id,this.info.departmentName=e.label},getEmployInfo:function(){var e=this,t={id:e.$route.query.employeeClerkId?e.$route.query.employeeClerkId:e.perId};Object(d.a)("/haoban-manage-web/emp/findOne",t).then(function(t){e.info=t.data.result,e.info.managerMode=!!t.data.result.managerMode}).catch(function(e){})}},beforeMount:function(){this.getGroupData(),this.isNew||this.getEmployInfo()},watch:{perId:function(e,t){this.getEmployInfo()}}},m={render:function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"employee-info"},[o("div",{staticClass:"info-cell"},[o("p",{staticClass:"title"},[e._v("员工信息")]),e._v(" "),o("el-form",{staticClass:"employee-info-form",attrs:{model:e.info,"label-width":"70px"}},[o("el-form-item",{attrs:{label:"姓名:",prop:"name"}},[o("p",[e._v(e._s(e.info.name))])]),e._v(" "),o("el-form-item",{attrs:{label:"手机号:",prop:"phoneNumber"}},[o("p",[e._v(e._s(e.info.phoneNumber))])]),e._v(" "),o("el-form-item",{attrs:{label:"部门:",prop:"departmentId"}},[o("p",[e._v(e._s(e.info.departmentName))])]),e._v(" "),o("el-form-item",{attrs:{label:"职位:",prop:"positionName"}},[o("p",[e._v(e._s(e.info.positionName))])])],1)],1),e._v(" "),o("vue-select-employee",{ref:"parentSelector",attrs:{treeSet:e.treeSet,treeData:e.treeData},on:{handleSelectedList:e.handleSelectedList}})],1)},staticRenderFns:[]};var f=o("VU/8")(h,m,!1,function(e){o("NTBG")},null,null).exports,g=o("qsKc"),v={name:"employee-table",props:{employeeList:{type:Array,default:function(){return[]}},headList:{type:Array,default:function(){return["selection","name","phoneNumber","positionName","activationStatus"]}},groupInfo:{type:Object,default:function(){return{}}}},data:function(){return{tableH:window.screen.availHeight-440-250,tableData:[]}},methods:{selectMember:function(e){this.$emit("selectMember",e)},linkToDetail:function(e){this.groupInfo.isMine?window.location.href="#/employee?employeeClerkId="+e.employeeClerkId:window.location.href="#/employee?readOnly=1&employeeClerkId="+e.employeeClerkId}},mounted:function(){var e=[];this.employeeList.forEach(function(t){t.ext.employeeClerk.sharedContactEmployeeStoreId=t.sharedContactEmployeeStoreId,e.push(t.ext.employeeClerk)}),this.tableData=e},watch:{employeeList:function(e){var t=[];e.forEach(function(e){e.ext.employeeClerk.sharedContactEmployeeStoreId=e.sharedContactEmployeeStoreId,t.push(e.ext.employeeClerk)}),this.tableData=t}}},b={render:function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"employee-table"},[o("el-table",{attrs:{height:(e.tableData.length,e.tableH),data:e.tableData},on:{"selection-change":e.selectMember,"row-click":e.linkToDetail}},[o("el-table-column",{attrs:{type:"selection",width:"42"}}),e._v(" "),o("el-table-column",{attrs:{label:"姓名",prop:"name"}}),e._v(" "),o("el-table-column",{attrs:{label:"手机号",prop:"phoneNumber"}}),e._v(" "),o("el-table-column",{attrs:{label:"职位"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.positionName||"--")+"\n ")]}}])}),e._v(" "),o("el-table-column",{attrs:{label:"状态"},scopedSlots:e._u([{key:"default",fn:function(e){return[o("div",{staticClass:"status-icon",class:1==e.row.activationStatus?"is-active":""},[o("i",{staticClass:"iconfont icon-shouji"})])]}}])})],1)],1)},staticRenderFns:[]};var C=o("VU/8")(v,b,!1,function(e){o("Iw27")},null,null).exports,I={name:"clerkView",props:{tableData:{type:Array,default:function(){return[]}}},data:function(){return{tableH:window.screen.availHeight-440-250,storeType:0,typeArr:["全部类型","自营","联营","代理(加盟)","代销","托管"],storeStatus:"",showChildMember:!1}},methods:{selectMember:function(e){this.$emit("selectMember",e)}},mounted:function(){this.tableData.forEach(function(e){e.ext.store=e.ext.store?e.ext.store:{},e.ext.store.ext=e.ext.store?e.ext.store.ext:{employeeClerkList:[]},e.ext.store.ext.employeeClerkList=e.ext.store?e.ext.store.ext.employeeClerkList:[],e.storeCode=e.ext.store?e.ext.store.storeCode:""})},watch:{tableData:function(e){e.forEach(function(e){e.ext.store=e.ext.store?e.ext.store:{},e.ext.store.ext=e.ext.store?e.ext.store.ext:{employeeClerkList:[]},e.ext.store.ext.employeeClerkList=e.ext.store?e.ext.store.ext.employeeClerkList:[],e.storeCode=e.ext.store?e.ext.store.storeCode:""})}}},A={render:function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",[o("el-table",{ref:"clerkViewTable",staticClass:"diy-table",attrs:{height:(e.tableData.length,e.tableH),data:e.tableData},on:{"selection-change":e.selectMember}},[o("el-table-column",{attrs:{type:"selection",width:"42"}}),e._v(" "),o("el-table-column",{attrs:{label:"门店",width:"175",prop:"employeeStoreName"}}),e._v(" "),o("el-table-column",{attrs:{label:"门店code",prop:"storeCode",width:"175"}}),e._v(" "),o("el-table-column",{scopedSlots:e._u([{key:"header",fn:function(t){return[o("ul",{staticClass:"diy-header"},[o("li",{staticClass:"name"},[e._v("姓名")]),e._v(" "),o("li",{staticClass:"phone"},[e._v("手机号")]),e._v(" "),o("li",{staticClass:"position"},[e._v("职位")]),e._v(" "),o("li",{staticClass:"status"},[e._v("状态")])])]}},{key:"default",fn:function(t){return[o("ul",e._l(t.row.ext.store.ext.employeeClerkList,function(t){return o("li",{key:t.employeeClerkId,staticClass:"clerk-obj-li"},[o("div",{staticClass:"clerk-name clerk-cell"},[e._v(e._s(t.name))]),e._v(" "),o("div",{staticClass:"clerk-cell clerk-phone"},[e._v(e._s(t.phoneNumber))]),e._v(" "),o("div",{staticClass:"clerk-cell clerk-position"},[e._v(e._s(t.positionName))]),e._v(" "),o("div",{staticClass:"clerk-cell clerk-status"},[o("div",{staticClass:"status-icon",class:1==t.activationStatus?"is-active":""},[o("i",{staticClass:"iconfont icon-shouji"})])])])}))]}}])})],1)],1)},staticRenderFns:[]};var y=o("VU/8")(I,A,!1,function(e){o("bwDc")},null,null).exports,S={render:function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"guid-div"},[this._m(0),this._v(" "),this._m(1),this._v(" "),t("div",{staticStyle:{"text-align":"center","margin-top":"50px"}},[t("a",{attrs:{href:"#/shareCode"}},[t("el-button",{attrs:{type:"primary"}},[this._v("建立共享企业")])],1)])])},staticRenderFns:[function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"guid"},[s("p",{staticClass:"title"},[e._v("共享通讯录操作引导")]),e._v(" "),s("div",{staticClass:"flex-div"},[s("div",{staticClass:"step"},[s("img",{attrs:{src:o("z6bE")}}),e._v(" "),s("p",[e._v("点击建立共享企业,下载二维码 发给所要建立共享的企业")])]),e._v(" "),s("div",{staticClass:"step"},[s("img",{attrs:{src:o("NBVb")}}),e._v(" "),s("p",[e._v("从企业通讯录中添加对方可见我方 企业的成员及门店")])]),e._v(" "),s("div",{staticClass:"step"},[s("img",{attrs:{src:o("NXrz")}}),e._v(" "),s("p",[e._v("添加完成之后必须点击发布,所添加或 修改的信息才会同步至对方共享通讯录中")])])])])},function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"guid"},[t("p",{staticClass:"des"},[this._v("应用场景")]),this._v(" "),t("p",{staticClass:"des"},[this._v("适用于集团公司与子公司建立通讯录部分成员共享机制")]),this._v(" "),t("p",{staticClass:"des"},[this._v("适用于总部与代理商、加盟商建立通讯录部分成员共享机制")])])}]};var w=o("VU/8")(null,S,!1,function(e){o("XOpN")},null,null).exports,N={name:"addNewGuid",props:{groupInfo:{type:Object,required:!0}},methods:{addNew:function(){this.groupInfo.isStoreGroup?this.$emit("addStoreEmployee"):this.$emit("addEmployee")}}},D={render:function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"tip-area"},[s("img",{attrs:{src:o("mxqO")}}),e._v(" "),e.groupInfo.isMine?[e.groupInfo.level?s("p",[e._v("暂无成员,开始添加成员吧")]):e._e(),e._v(" "),e.groupInfo.level?e._e():s("p",[e._v("暂无成员,开始添加子分组吧")]),e._v(" "),e.groupInfo.level?s("el-button",{staticClass:"add-new-btn",on:{click:e.addNew}},[e._v("添加成员")]):e._e()]:s("p",[e._v("暂无成员,联系建立共享企业的管理员,对方添加后即可查看")])],2)},staticRenderFns:[]};var k=o("VU/8")(N,D,!1,function(e){o("rMZo")},null,null).exports,E=o("3E4D"),G=o("Ch4/"),Y=o("Ie7z"),x={name:"permission-set",components:{vueSelectStore:Y.a,vueSelectEmployee:p.a},props:{groupInfo:{type:Object,required:!0}},data:function(){return{visibleList:[],visibleStoreList:[],treeSet:{isSelectPerson:!1,dialogVisible:!1,isSingle:!1},perTreeSet:{isSelectPerson:!0,dialogVisible:!1,isSingle:!1},dialogVisible:!0,changed:""}},methods:{getVisibleRange:function(){var e=this,t={sharedContactGroupId:e.groupInfo.sharedContactGroupId};Object(d.a)("/haoban-manage-web/shared-contact/get-shared-group-visible-range",t).then(function(t){1==t.data.errorCode?e.formatList(t.data.result):e.$message.error({message:t.data.message})}).catch(function(t){e.$message.error({message:t.message})})},formatList:function(e){var t=[],o=[];e.forEach(function(e){e.label=e.name,1==e.type?(e.employeeClerkId=e.id,t.push(e)):(e.storeId=e.id,o.push(e))}),this.visibleList=t,this.visibleStoreList=o},delCurrent:function(e,t){var o=this[t].indexOf(e);this[t].splice(o,1)},callSelector:function(){this.treeSet.dialogVisible=!0},callPerSelector:function(){this.changed="permission",this.perTreeSet.dialogVisible=!0},setSharedGroupVisible:function(){var e=this,t=[];e.visibleList.concat(e.visibleStoreList).forEach(function(e){var o=e.employeeClerkId?1:2;t.push({id:e.id,type:o})});var o={visibleMemberList:[{memberList:t,sharedContactGroupId:e.groupInfo.id}]};Object(d.b)("/haoban-manage-web/shared-contact/set-shared-group-visible-range",o).then(function(t){1==t.data.errorCode?(e.$message.success({message:t.data.message}),e.getVisibleRange()):e.$message.error({message:t.data.message})}).catch(function(t){e.$message.error({message:t.message})})},cancelSet:function(){this.$emit("cancelSet")},handleSelectedList:function(e){this.visibleStoreList=e},handlePerSelectedList:function(e){this.visibleList=e}},beforeMount:function(){this.getVisibleRange()},mounted:function(){}},R={render:function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"per-set-div"},[o("el-form",{attrs:{"label-width":"150px"}},[o("el-form-item",{attrs:{label:"当前范围:"}},[o("span",[e._v(e._s(e.groupInfo.label))])]),e._v(" "),o("el-form-item",{attrs:{label:"设置可见范围(员工):"}},[o("ul",{staticClass:"particular-list"},[e._l(e.visibleList,function(t,s){return[t.employeeClerkId?o("li",{key:s+"_"+t.id,staticClass:"item person-item"},[t.headPic?o("img",{attrs:{src:t.headPic}}):o("div",{staticClass:"replace-head-img"},[o("i",{staticClass:"iconfont icon-yewuduanmorentouxian"})]),e._v(" "),o("p",{staticClass:"name"},[e._v(e._s(t.label))]),e._v(" "),o("i",{staticClass:"el-icon-circle-close",on:{click:function(o){e.delCurrent(t,"visibleList")}}})]):e._e()]}),e._v(" "),o("li",{staticClass:"item J_add-btn",on:{click:e.callPerSelector}},[o("i",{staticClass:"el-icon-plus"})])],2)]),e._v(" "),o("el-form-item",{attrs:{label:"设置可见范围(门店):"}},[o("ul",{staticClass:"particular-list"},[e._l(e.visibleStoreList,function(t,s){return[o("li",{key:s+"_"+t.id,staticClass:"item group-item"},[e._v("\n "+e._s(t.label)+"\n "),o("i",{staticClass:"el-icon-circle-close",on:{click:function(o){e.delCurrent(t,"visibleStoreList")}}})])]}),e._v(" "),o("li",{staticClass:"item J_add-btn",on:{click:e.callSelector}},[o("i",{staticClass:"el-icon-plus"})])],2)])],1),e._v(" "),o("p",{staticClass:"m-t-20"},[o("el-button",{attrs:{type:"primary"},on:{click:e.setSharedGroupVisible}},[e._v("确定")]),e._v(" "),o("el-button",{on:{click:e.cancelSet}},[e._v("取消")])],1),e._v(" "),o("vue-select-store",{ref:"storeSelector",attrs:{defaultList:e.visibleStoreList,treeSet:e.treeSet,selectType:"store"},on:{handleSelectedList:e.handleSelectedList}}),e._v(" "),o("vue-select-employee",{ref:"selectEmployee",attrs:{defaultSelection:e.visibleList,onlyPerson:!0,treeSet:e.perTreeSet,changed:e.changed},on:{handleSelectedList:e.handlePerSelectedList}})],1)},staticRenderFns:[]};var L=o("VU/8")(x,R,!1,function(e){o("JBRo")},null,null).exports,M={name:"shareContact",components:{navCrumb:i.a,searchMenu:u,employeeInfo:f,employeeList:C,guidDiv:w,clerkView:y,vueSelectEmployee:p.a,vueSelectStore:Y.a,permissionSet:L,addNewGuid:k,storeInfo:g.a},data:function(){return{navpath:[{name:"首页",path:"/index"},{name:"企业通讯录",path:"/administrativeFrame"},{name:"共享通讯录",path:""}],windowH:window.screen.availHeight-440+"px",boxHeight:window.screen.availHeight-440-48+"px",showChildMember:!1,setDisabledDel:!1,menuData:[],pageSize:20,currentPage:1,selectedList:[],total:0,loading:!0,groupInfo:{groupName:"",departmentId:""},employeeList:[],searchResult:{},showEmployee:"",perId:"",sharedContactRelationId:[],shareMember:!1,shareSale:!1,disabled:!0,treeData:{},sldType:1,dlgTitle:"",dlgShow:!1,editDlgShow:!1,newGroupName:"",storeInfo:{}}},created:function(){},beforeMount:function(){this.getShareRelation()},methods:{editGroup:function(){this.dlgTitle="部门",this.newGroupName=this.groupInfo.groupName,this.editDlgShow=!0},subSonGroupAdd:function(e){var t=this;if(""==t.newGroupName)t.$message.error({message:"名称不能为空"});else{var o={parentSharedContactGroupId:e?t.groupInfo.parentId:t.groupInfo.id,name:t.newGroupName};e?o.sharedContactGroupId=t.groupInfo.id:delete o.sharedContactGroupId,Object(d.a)("/haoban-manage-web/shared-contact/set-shared-group",o).then(function(e){1==e.data.errorCode?(t.$message.success({message:e.data.message}),t.getShareRelation(),t.dlgShow=!1,t.editDlgShow=!1):t.$message.error({message:e.data.message})}).catch(function(e){t.$message.error({message:e.message})})}},callEmployeeSelector:function(){this.sldType=1,this.$refs.selectEmployee.treeSet.dialogVisible=!0},handleSelectedList:function(e){var t=this,o=[];e.forEach(function(e){o.push({id:e.id,type:t.sldType})});var s={overwrite:!1,sharedContactMemberList:[{sharedContactGroupId:t.groupInfo.id,memberList:o}]};Object(d.b)("/haoban-manage-web/shared-contact/add-shared-member",s).then(function(e){1==e.data.errorCode?(t.$message.success({message:e.data.message}),t.getEmployee()):t.$message.error({message:e.data.message})}).catch(function(e){t.$message.error({message:e.message})})},handleSizeChange:function(e){this.pageSize=e,this.getEmployee()},handleCurrentChange:function(e){this.currentPage=e,this.getEmployee()},cancelSet:function(){console.log("Cancel"),this.showEmployee=!1},subShareSet:function(){var e=this,t={visibleData:{shareMember:1*e.shareMember,shareSale:1*e.shareSale,sharedContactRelationId:e.sharedContactRelationId.join(",")}};Object(d.b)("/haoban-manage-web/shared-contact/set-shared-store-visible-data",t).then(function(t){e.$message.error({message:t.data.message})}).catch(function(t){e.$message.error({message:t.message})})},handleSearchKey:function(e){var t=this,o={keyword:e};Object(d.a)("/haoban-manage-web/shared-contact/search-shared-contact",o).then(function(e){e.data.result&&(t.searchResult=e.data.result)}).catch(function(e){t.$message.error({message:e.message})})},handleTreeSelection:function(e,t,o){this.groupInfo=e,this.groupInfo.departmentId=e.id,this.groupInfo.groupName=e.name,this.showEmployee=o,this.loading=!0,this.getEmployee(),console.log(e,t,o,this.groupInfo)},handleEmployeeSelection:function(e,t){this.perId=e.employeeClerkId,this.showEmployee=t},handleStoreSelection:function(e,t){var o=this,s={storeId:e.storeId};Object(d.a)("/haoban-manage-web/store/findStoreById",s).then(function(e){1==e.data.errorCode?(o.showEmployee=t,o.storeInfo=e.data.result):o.$message.error({message:e.data.message})})},deleteDepart:function(e){var t=this;t.$confirm("是否要删除当前分组?","提示",{type:"warning"}).then(function(){t.postDeleteDepart(e)})},postDeleteDepart:function(e){var t=this,o={sharedContactGroupIdList:[e]};Object(d.b)("/haoban-manage-web/shared-contact/del-shared-group",o).then(function(e){var o=e.data;1==o.errorCode?(E.a.showmsg("删除成功","success"),t.getShareRelation()):G.a.errorMsg(o)}).catch(function(e){t.$message.error({message:e.message})})},selectMember:function(e){this.selectedList=e},delMembers:function(){var e=this;e.$confirm("是否要删除选中的员工?","提示",{type:"warning"}).then(function(){var t=[];e.selectedList.forEach(function(e){t.push(e.sharedContactEmployeeStoreId)});var o={sharedContactEmployeeStoreIdList:t};Object(d.b)("/haoban-manage-web/shared-contact/del-shared-member",o).then(function(t){1==t.data.errorCode?(e.$message.success({message:t.data.message}),e.getEmployee()):e.$message.error({message:t.data.message})}).catch(function(t){e.$message.error({message:t.message})})})},setChildMemberShow:function(){this.getEmployee()},getGroupData:function(e){var t=this;Object(d.a)("/haoban-manage-web/shared-contact/find-shared-group",{}).then(function(e){e.data.result.forEach(function(e){e.groupId=e.sharedContactGroupId}),t.menuData=e.data.result||[],t.menuData.some(function(e){return 0==e.level&&(t.groupInfo.departmentId=e.groupId,t.groupInfo.groupName=e.name),0==e.level}),t.getEmployee(),t.getRelationIds(t.menuData)}).catch(function(e){t.$message.error({message:e.message})})},getRelationIds:function(e){var t=window.localStorage.getItem("userInfo"),o=JSON.parse(t).enterpriseId,s=[];e.forEach(function(e){0==e.level&&e.enterpriseId!=o&&s.push(e.enterpriseId)}),s=[].concat(n()(new a.a(s))),this.sharedContactRelationId=s},getShareRelation:function(){var e=this;Object(d.a)("/haoban-manage-web/shared-contact/find-shared-contact-relation",{searchGroup:1}).then(function(t){var o=t.data;1==o.errorCode?(e.menuData=o.result||[],e.loading=!1):(G.a.errorMsg(o),e.loading=!1)}).catch(function(t){e.$message.error({message:t.message})})},getEmployeeFirst:function(e){this.groupInfo=e,console.log("First:",e),this.getEmployee()},getEmployee:function(){var e=this,t={sharedContactGroupId:e.groupInfo.id,findChildren:e.showChildMember};Object(d.b)("/haoban-manage-web/shared-contact/find-shared-member",t).then(function(t){var o=[],s=0;1==t.data.errorCode&&(o=t.data.result.list||[],s=t.data.result.pageInfo.total||0),e.employeeList=o,e.total=s,e.loading=!1}).catch(function(t){e.loading=!1,e.$message.error({message:t.message})})}},computed:{disabledDel:function(){return this.selectedList.length<1&&!this.setDisabledDel}}},j={render:function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"common-set-wrap"},[o("nav-crumb",{attrs:{navpath:e.navpath}}),e._v(" "),o("div",{staticClass:"right-content",style:{height:e.windowH,"overflow-y":"auto"}},[o("div",{staticClass:"right-box",style:{height:e.boxHeight}},[o("div",{staticClass:"administrative-estrutura-container",style:{height:e.boxHeight}},[e.menuData.length>0?[o("search-menu",{attrs:{treeData:e.menuData,searchResult:e.searchResult},on:{handleEmployeeSelection:e.handleEmployeeSelection,getEmployeeFirst:e.getEmployeeFirst,handleSearchKey:e.handleSearchKey,handleTreeSelection:e.handleTreeSelection}},[o("template",{slot:"buttonBox"},[o("p",{staticClass:"add-share"},[o("a",{attrs:{href:"#/shareCode"}},[o("el-button",[e._v("建立共享企业")])],1)])])],2),e._v(" "),"employee"==e.showEmployee?o("employee-info",{attrs:{perId:e.perId}}):"store"==e.showEmployee?o("store-info",{ref:"store_info",attrs:{storeInfo:e.storeInfo}}):"permission"==e.showEmployee?o("permission-set",{attrs:{groupInfo:e.groupInfo},on:{cancelSet:e.cancelSet}}):o("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"af-right-container"},[o("div",{staticClass:"af-right-header"},[o("span",{staticClass:"title-span"},[e._v(e._s(e.groupInfo.groupName)+"("+e._s(e.total)+"人)"),o("span",{staticClass:"not-show-app"},[e._v("本企业通讯录APP中不展示")])]),e._v(" "),e.groupInfo.isMine?[1==e.groupInfo.isStoreGroup?o("span",{staticClass:"handle-area"},[o("a",{staticClass:"a-href",on:{click:function(t){e.dlgTitle="分组",e.dlgShow=!0}}},[e._v("添加子分组")]),e._v(" "),0!=e.groupInfo.level?o("span",{staticClass:"hurdle"}):e._e(),e._v(" "),0!=e.groupInfo.level?o("a",{staticClass:"J_edit a-href",on:{click:e.editGroup}},[e._v("编辑")]):e._e(),e._v(" "),0!=e.groupInfo.level?o("span",{staticClass:"hurdle"}):e._e(),e._v(" "),0!=e.groupInfo.level?o("a",{staticClass:"J_edit a-href",on:{click:function(t){e.deleteDepart(e.groupInfo.id)}}},[e._v("删除子分组")]):e._e()]):o("span",{staticClass:"handle-area"},[o("a",{staticClass:"J_add-child a-href",on:{click:function(t){e.dlgTitle="部门",e.newGroupName="",e.dlgShow=!0}}},[e._v("\n 添加子部门\n ")]),e._v(" "),0!=e.groupInfo.level?[o("span",{staticClass:"hurdle"}),e._v(" "),o("a",{staticClass:"J_edit a-href",on:{click:e.editGroup}},[e._v("\n 编辑\n ")]),e._v(" "),0!=e.groupInfo.level?o("span",{staticClass:"hurdle"}):e._e(),e._v(" "),0!=e.groupInfo.level?o("a",{staticClass:"J_edit a-href",on:{click:function(t){e.deleteDepart(e.groupInfo.id)}}},[e._v("删除子分组")]):e._e()]:e._e()],2)]:[o("a",{staticClass:"a-href fr",on:{click:function(t){e.showEmployee="permission"}}},[e._v("设置可见权限")])]],2),e._v(" "),e.employeeList.length>0?[o("div",{staticClass:"af-right-button-box"},[e.groupInfo.isMine?[1==e.groupInfo.isStoreGroup&&1*e.groupInfo.level>0?o("el-button",{attrs:{type:"primary"},on:{click:function(t){e.$refs.storeSelector.treeSet.dialogVisible=!0,e.sldType=2}}},[e._v("\n 添加门店\n ")]):e._e(),e._v(" "),1!=e.groupInfo.isStoreGroup&&0!=e.groupInfo.level?o("el-button",{attrs:{type:"primary"},on:{click:e.callEmployeeSelector}},[e._v("添加成员")]):e._e(),e._v(" "),o("el-button",{attrs:{type:"danger",plain:"",disabled:e.disabledDel},on:{click:e.delMembers}},[e._v("批量删除")])]:e._e(),e._v(" "),o("el-button",{staticClass:"J_show-children"},[o("el-checkbox",{staticClass:"m-r-10",on:{change:e.setChildMemberShow},model:{value:e.showChildMember,callback:function(t){e.showChildMember=t},expression:"showChildMember"}}),o("a",{staticClass:"a-href"},[e._v("显示子成员")])],1)],2),e._v(" "),1==e.groupInfo.isStoreGroup?o("clerk-view",{attrs:{tableData:e.employeeList},on:{selectMember:e.selectMember}}):o("employee-list",{attrs:{employeeList:e.employeeList,groupInfo:e.groupInfo},on:{selectMember:e.selectMember}}),e._v(" "),o("div",{staticClass:"pagination"},[o("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)]:[o("div",{staticClass:"af-right-button-box"},[e.groupInfo.isMine?[1==e.groupInfo.isStoreGroup&&0!=e.groupInfo.level?o("el-button",{attrs:{type:"primary"},on:{click:function(t){e.$refs.storeSelector.treeSet.dialogVisible=!0,e.sldType=2}}},[e._v("\n 添加门店\n ")]):e._e(),e._v(" "),1!=e.groupInfo.isStoreGroup&&0!=e.groupInfo.level?o("el-button",{attrs:{type:"primary"},on:{click:e.callEmployeeSelector}},[e._v("添加成员")]):e._e()]:e._e(),e._v(" "),o("span",{staticClass:"J_show-children el-button"},[o("el-checkbox",{staticClass:"m-r-10",on:{change:e.setChildMemberShow},model:{value:e.showChildMember,callback:function(t){e.showChildMember=t},expression:"showChildMember"}}),o("a",{staticClass:"a-href"},[e._v("显示子成员")])],1)],2),e._v(" "),o("add-new-guid",{attrs:{groupInfo:e.groupInfo},on:{addEmployee:e.callEmployeeSelector,addStoreEmployee:function(t){e.$refs.storeSelector.treeSet.dialogVisible=!0,e.sldType=2}}})]],2)]:[o("guid-div")]],2)])]),e._v(" "),o("el-dialog",{attrs:{title:"添加子"+e.dlgTitle,visible:e.dlgShow,width:"30%"},on:{"update:visible":function(t){e.dlgShow=t}}},[o("div",{staticStyle:{padding:"30px"}},[o("el-input",{attrs:{placeholder:"请输入"+e.dlgTitle+"名称"},model:{value:e.newGroupName,callback:function(t){e.newGroupName=t},expression:"newGroupName"}})],1),e._v(" "),o("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[o("el-button",{on:{click:function(t){e.dlgShow=!1}}},[e._v("取 消")]),e._v(" "),o("el-button",{attrs:{type:"primary"},on:{click:function(t){e.subSonGroupAdd(0)}}},[e._v("确 定")])],1)]),e._v(" "),o("el-dialog",{attrs:{title:"编辑"+e.dlgTitle,visible:e.editDlgShow,width:"30%"},on:{"update:visible":function(t){e.editDlgShow=t}}},[o("div",{staticStyle:{padding:"30px"}},[o("el-input",{attrs:{placeholder:"请输入"+e.dlgTitle+"名称"},model:{value:e.newGroupName,callback:function(t){e.newGroupName=t},expression:"newGroupName"}})],1),e._v(" "),o("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[o("el-button",{on:{click:function(t){e.editDlgShow=!1}}},[e._v("取 消")]),e._v(" "),o("el-button",{attrs:{type:"primary"},on:{click:function(t){e.subSonGroupAdd(1)}}},[e._v("确 定")])],1)]),e._v(" "),o("vue-select-employee",{ref:"selectEmployee",attrs:{onlyPerson:!0,treeData:e.treeData},on:{handleSelectedList:e.handleSelectedList}}),e._v(" "),o("vue-select-store",{ref:"storeSelector",attrs:{selectType:"store"},on:{handleSelectedList:e.handleSelectedList}}),e._v(" "),o("vue-gic-footer")],1)},staticRenderFns:[]};var Q=o("VU/8")(M,j,!1,function(e){o("yW4y")},null,null);t.default=Q.exports},Gu7T:function(e,t,o){"use strict";t.__esModule=!0;var s,a=o("c/Tr"),r=(s=a)&&s.__esModule?s:{default:s};t.default=function(e){if(Array.isArray(e)){for(var t=0,o=Array(e.length);t<e.length;t++)o[t]=e[t];return o}return(0,r.default)(e)}},HpRW:function(e,t,o){"use strict";var s=o("kM2E"),a=o("lOnJ"),r=o("+ZMJ"),n=o("NWt+");e.exports=function(e){s(s.S,e,{from:function(e){var t,o,s,i,l=arguments[1];return a(this),(t=void 0!==l)&&a(l),void 0==e?new this:(o=[],t?(s=0,i=r(l,arguments[2],2),n(e,!1,function(e){o.push(i(e,s++))})):n(e,!1,o.push,o),new this(o))}})}},Iw27:function(e,t){},JBRo:function(e,t){},LIJb:function(e,t,o){var s=o("EqjI");e.exports=function(e,t){if(!s(e)||e._t!==t)throw TypeError("Incompatible receiver, "+t+" required!");return e}},NBVb:function(e,t,o){e.exports=o.p+"static/img/guid2.c4a077f.png"},NTBG:function(e,t){},NXrz:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKAAAADACAYAAACDO2h3AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyhpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTM4IDc5LjE1OTgyNCwgMjAxNi8wOS8xNC0wMTowOTowMSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6RDQ3OUQzQzk3MDcyMTFFOEFFNkNGOTVBQ0YzMkU3NTUiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6RDQ3OUQzQzg3MDcyMTFFOEFFNkNGOTVBQ0YzMkU3NTUiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTcgKE1hY2ludG9zaCkiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDpENDc5RDNDMDcwNzIxMUU4QUU2Q0Y5NUFDRjMyRTc1NSIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDpENDc5RDNDMTcwNzIxMUU4QUU2Q0Y5NUFDRjMyRTc1NSIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/Piun5rwAABJDSURBVHja7J0LcFTlFcfPzTshLwhvSAREMKhVQVFQW3xAfdZH1arT2qpo64jiaIvttB1rLdXBagffMlar1foYoRZxUFHxgSGlPiqoASMQwiMJJCGEJCTZZG//J3vX7G42e+9ubva+zn/mzA3c3b2P73fP953vO/f7FFVVSSSySooAKLIUQLN+aPbS9mnYXAmbC+O/8+T2Jk2tsK9g78CeK1uY9aVnAAR4Jdgsgf1IOLCNlsNuA4jVrgYQ8J2NzQuwQilz26kJdgUgfNOVAAK+c7F5FZYuZW1b+WAXAsLVrgIQ8E3G5jNYrpSx7XUQdjwg3GrHk0tJ8HuPCnyOEQeDj7nGA8L7zcKmTMrVcToFXtB25ZaIB7xOytKRusYtVfAZUpaO1DzHV8GofvOxOSBl6VgVoBpudrIHHCll6GgNc3oVLJGvyPI2oEgkAIoEQJFIABQJgCKRACgSAEUiAVAkAIpEAqBIABSJBECRACgSCYAiAVAkEgBFAqBIJACKBECRSAAUCYAiDyvNdieER2JEruK5gtjbolK3XwC0XNeclEY/OzHVcwXx3Cfd9NhHXVIFW60cj842mJHqzeuWNqBIABQJgCKRACiSKNhyra/yU16m9wqifIdfALSDNlT7e0wkVbBIJACKBECRSAAUCYAikQAoEgBFIgFQJACKRAKgSAAUiQRAkQAoEgmAImcpLB1r0Rq1GJuZFFjmvY+a2/wldU3OSZXq7FL5nD35uqOjAAR4Y7F5GHZxrA/n56T0mJPkV4n2NHTTjn1dpKpS4LYDEPDxGsAfwSa4so2hEI0fnkrZmQpV7PRJiduwDbjYrfCFqigvhYrypclrRwAv8crFDs9LlRK3IYDDvHKxGelS4HYEUCQSAEUCoEiUdKV56WLH5Ck08yR7XnJZVTdV1KkCoJs1Ol+ha2fYMxLOzSQA2CUA9qf0FPYgRF1+otqWwAhDvBoxhCgHR9zbRnQogT7h3Ayi4TlEzR1EjYek+vIMgKeWEH3/8N5JFA92Eq3cQrSxzthBivOJLjuKaNSQwL8Z3vJdRKsqydA4bSaOe3Ep0XGjiYKT91YfIHrpS6L6NilEVwchs4qJLpgSPoNnHjzRVccQTSnSP8CwbKL503vh6zkoKJqN3734SGMn+ePvEB0fAh+rpIDohhlE2dK3514AGZR5k6LvYxjYK+ppzgSirH787IljiYqyY39/YmH/oBeg3TRrvBSiawEsyok9Z/M4tAkVRb/6jbm/IPb+wwpj7y/Jd0dBdHk0ZSxmG9DXrX/T9FKcfP6B3Xi9c+iMo+Aq61VasMKekea2elUAjFRTO1Fda3j7LVRfN+ofYEs9vFhB//Bt26/z/QZATuHtvzCoGoxfbEuHSpt2SXaqo4KQFRXRI9VDcCSvV+ofYF11oNsmmvj7bTrdMRzlvl/Vj9cAvJ/USCG6uhumqono0Y8DAceEwkAXSiU832rA02CgL64DVejj+P48fP+YUYF+wFp41feqjHfjrP4mACJ3B3Ff4sEOok8B3rvbE+uPFNlHyqI13klUP9Dmp01Vns6Knli2MKvKUVWwSCQAirzbBhTZTtxvwNXobthe7qyAHQzZnwPLgnEPKWe7T9AsTwAUxSsGrQy2HrYJ9jnacE2J/NDspe0MY7MAKIqlTtga2Osc/JsZMOC3Gu14wQKgPbQO9iTsVYBywGttQB7s8sT7in57DYJwL+rTsAcB3RYvByH/g83wwsW2tNuiy7MV9oAGXr1EwUR/hi13+4XyuHNNY7elpwB7BPYnM8FbtEYdjc0Y2HDYEC0CztICDj5mg2Y7l8xVWu1WLop2Ebdhcx+5tF/Q161Sxc6unpmyLNLbsAUDqWpRRllaTXUq7FjYMbAjYPGsLboPVqFF1P/l2ARQVloOoHaBR2NzI+xkWNQUUL9KGb4udYwZB85MVxL6XofPWDXKA4w8PVtTqx+ez98DoQXiyPM2gPdMgtDxrGU/hJ0Lm6N5NrO1E/YmbCXsLQDZYQmARjR7aftx2HxmxoGH56fQ1HHpugmtkdVo+eYOcojehV0N+HYn4Okug82HnRZvGQ1Q3Mf4MmwZQPzE1QCyCnJSqLQkndJSXAUgu9o7YYsBnz8O8EZhc7NWC9lhvp4NsL9wfAAY/a4EkJWTqdBRgNBIlewAALnhfwXAWx0HeNzcWQS7ZZCq2IGK24x3sWcEiKa3YywPOto6VPp8u49a2x2fFVYNm2UUPoDHk4Peij+/0QDMsul1lcJehH2E853pOgBZHCxsqursCRgcqi84eAN8XxmE7wRsPob9FVbokGucBSvHuT8Iy3UVgMHq9ctqH+074DgIP4WdAfhqDICXCuP2YbnWleI0KVo7dSOuY7arAAx2nWzZ7aNdDd1OKRD2fGcDvn0G4OMO4/dgfyDnD31OhH2Aa7oDprgGwKCq6rpoW21XdELto+2wswzCd5IWvJ1K7hE/RPdycILry3EVgKw9jd20eZcv7I28WvusUcJJoecAvjoD8PEc3Gtho8mdupQ9O65zhCO7YUJ1/LgUOm9a+DPRidp4f4fSM71HQYZ5HvCdSj+tr0oIaG4fzAV8aw3A91NsniJvvPrA0fzpS+Yqu+L5kq3yAaePT6FzSpPTPOJXOxME8A6D8N2AzRPkHU3WPOGceCCUl5LiE4+XPmAAviuxecyD94enq3o3nupYADSuWth8eD9VB77TsXnGw/eWM3RWGQ1MBEDj+rlexIubztXQCpjXZy3kEZNnjHTRCIDG9ArgW6kDHyeD/oucM7KRjOj4l44CsDOJOXsdxmdp4yzihQY+txR2tHAXpnvwYJ4c6wO26obhGVlH5SUn/W1vi2p0HeHfwfst1vF+F2neT9RX22DHIjKOOkearbpheKarmmZbjXbU6kW9gI+r3MeFs37Fkzwv7q8WkTagThUC76c3Cd0S2Ci5VTG1AA/qDAEwPtXpeTbcVG6SzJdbpd+6gj0ULSoWAPvXQ/B+nTqfuZ+S+86GkzVLi4wFQCNBMumMZPCQEzZnuOmiedWDmeOIpgyjuF4Wi0N34b6l2DYIsZFeMTCZz2/dcrGHDyWaMYZoaMiaLbz6QFWT6Yfi9H7ODnpFAIytv+l4P85mPsuN4AXFq2ENkm4PBVCq4L7i1Pr39aI6p4N3+TQ8QZOiw8dqHryXD08OjYjFA/bV8ljv8+Lm8UyjV7jN40VqkBeBvB72iXjA6Pq3zn4e9ch1Gnh6Hi9UvHZL6+AuJnA5HuRM8YBR7j3sQ72b50aPl0Tvx8KZ0TzYawJguD5A9dsRo/rlHLe5bgUvqH3JWYP5QgGwr9bp7Od+v0y3gvctgMmZRXCeVMF9Va6z/3Sng8cveXEfc3qqpVUwqxg1yhQBMFx6qWanONnjcWCxZivRzPFEY3MtC0DC7qcA2Ks9sUY/eDIhbI53alV7AC3bN74JrDA/Ntdy7xfUiQJgr/Smz50Ky3AaeMGg4o1KwFdCVFJgiwAkqGMEwF5V6eyfZsVJcXttYiHRCWMTCy52NRO9tQ3wjSOaPNQ2AUhQRwmAvarW2T8x2eAdVhjweMMTnHllKxoU71YFMlxKDb6pm+QqeKgA2Ku9OvtLnAIeaxOupmwn0XT8zrEG87WTHID0SADslV761XAngMfasAfhfA3R0SPRyh9r/HtJ9n4CYITadfYX2R08nr3u/R2IphqIpuBsTymOP1gRAK2T3iKB6XYFj+Xzo723PZBEykHLnMPi/419rQKgldJ7H9S0DJjJwwLtMjPAY/HoBvfx1bQQjc8jOnNSYin1UgVbK73UtE4zDpKDO36mifF0C4KG1ZVowB4iGjWEaN5kotQE4DvUlfwARAAMV34yAEwxMQPzAFqtqwBfC86sKJvo3CPQTkjw9+tb7fnUe0lD9HopzDgIe5nq5oH/zl4A8+qWAHwFmUTnTSHKGMDcnlYEIAJguPSWx2owpaGpBqrMNdsSr/J2Ilx67WuE7ag2czOIzp9KlD3AuqzeIgClCu6VXo9ZjZkH27Y/MEwWHKUw6gkqG4neqwrMo8PQnQ/Pl2tCfC4e0HqN19m/w+wDcvS6rppo5Wa410P6n99YR7R2ewA+rm652i0wIT2WA5CWTkvuuV8A7NUknf1bB+vAdWjPragg2rA7sGJUNP0H+9bvCvQVpaLUzjsiEHiYoXrr1lHfKVVwr0p19n8xqK4AZH1WC8pRNZ9WAnec3/v/H2ijGz1VlkJ0zmSikUPMO7ZV1S/fU/GAvRo6e2l7v+1AbemBxsE+CX4h/HUEKW9tDVS5K7f0wsedy3MnBeZwMVP11gG4UQAM1wk6+8uTdSLbmwJVbl1I9XgqPOOEQZiB2kIPuF4ADNfJOvs/tPLkjCSUOigA4eZsmQAYru/q7H/LbRdsYQDyKZo1DQJghAdEOzBWC4vfmqtz0wVbWP2+3hNUCXNh4sGseTECEa42XnWVB7QOwFcEwOi6SGf/S+IBB6wteJg3CYDR9QNUw1kx9r9HgbUvHC8LA5Cngn8IgH3FXcDn61TDT9rphHlIb+XXRJ/XxreovEUBCKdgPCsAxpbe0gvL2IHYBT7uuK45SFS+O5Citb/d2Hctqn5fwENcKwDG1jxUw5NieEEem3jaLvDtDfFk/Pfyr4x5Q4sCkPtD/yEARhcntd+q85l7SP9NOlPV3hUbvqB4zUcj3tACD7gcD+/GgQDo8xCE18ILDo/hBXlsOKmropfjiD6A19rZP3yh+tYb1hH5rQ9AcOb0+8j/jBfAJg8ByPkmeuvd3k1JSFAIiseH//450fOb9OEL84YAd9WWwDskQdUeTPr9fAIPbUW0qsaw4BEY2GbSf3/CLeJinlS2MKvfaTsWrVGv14IS24tTuTiBlbNqmtoDqV5JUj1sKgBsHJAH1JYvWEfe0RDNy8USd8l84ISLYeC4TcivcPqTuyruwmjwJRqEvOy1Lhl4/mNjtAW5KK+FtUjsFlUrcI/+2a9XTuAHX6DAQs5eEd+jZVrzoz8IOV3/JmGtjxCL0w16NzcuaQs4L/LYjZwJuyXWBwDhs2SzERKLxT0ml2p9puYBqEH4Dw/e7HvgBY/U+QyvIVcm7PXoZsCnm0E+kI7oX8Ce99AN5QSFF2MlKuCG8yI3nE2z1ePwLcG9eMJo+yYhwQtyx+JPKDBi0O6RG8vByIM6VfE+bM7W2j9eFGe6/Nroh01ZFxteYQwF1oG9CjbGAzf5RjyAj8f6wKI1KlfXb8PGeQg+jnavxkPYnVQAQ0Bkj8rv1/KM8jzXSrZLbzQ3sJcBQp8OhJOxeYeSNL+0xeIq96Z44DMdQFFUCLlGWAWb7uLLvBN2t9YnSgKg/SDkERVO37rMZZfG+TTXAbwXE/0BATB5EAZTvO4li1dcMkmbYZcH3+0QAJ0DIq83x/2oRzn4Mh6F/QrwDTijUAC0BkKeVO03mjnJG/J6ejcAPNOSLwRAa0HktP/7YJfY/FR5CYs/wh4GfKamsboWwNKHu/na+EXzlAhTIv4O/psi/k+JuD+RnfZGO/H9Mf7NUaM6q1iZPixbuT1Fsd2C2Jz7yR3v9wO8QUlGVhwGFQOVpoEVakGgUiPgcpSmj1FKR+Yq89NT6AKLq+btWjtvGcBrHswDKTYDjMFJ1yALboPAeWYyzXH5Sv7UIuWirHS6IFXpmTIuGeXEoPG0I5zVsxbg+ZNxrYqFsGVoT3mGBlsGyVt6fTR5mDKyuECZk5VG30tNoZkosBEm/bTfr9JmXzetb+lU136xV93Q3NEzps9tPJ+27axYkNrpCgABHGeRsGVqJgFQApo2QikuylGmZaZRaVoKlaDdWMxQKgoNU/outtPFWfiqSo2ArQa2E8BtbetSK6r20xe1LaqRV5u4ndqhWTuANDXxRFFV814OmPZIH6/NwPEaa9ni3VwjLmROSuZXEMJg/Oqm+It4sNpVvAxfIZm8wqTIFmLKhmjGVTVHx20D+TGzxeCNEPg8oXStrAvtBGC+lIvnlG8nAJulPDynhMt8MNqATVoIL21A92vAbcDBCkLaNJMo2ENRsJ0ADKo95CSzQow7naUf0BlStRqtPaI8TVEyh7ciT15GQuzp3cJGQsikleLtAGCkol1ccCw4dBzYc2PBgyye5rJb2wbNp5k/2SeTZsMnMDjsE6lgelU0c0U2zACqSL9m3RF/RzPVTief5rAbHXxijcgx+YAh5g/5jBoBV+jfoZCpTn560lzuGbpIZGuZmowgEgmAIgFQJBIARQKgSKSn/wswAJ9xy6rr0P+IAAAAAElFTkSuQmCC"},W6b0:function(e,t){},XOpN:function(e,t){},bwDc:function(e,t){},"c/Tr":function(e,t,o){e.exports={default:o("5zde"),__esModule:!0}},fBQ2:function(e,t,o){"use strict";var s=o("evD5"),a=o("X8DO");e.exports=function(e,t,o){t in e?s.f(e,t,a(0,o)):e[t]=o}},ioQ5:function(e,t,o){o("HpRW")("Set")},lHA8:function(e,t,o){e.exports={default:o("pPW7"),__esModule:!0}},m9gC:function(e,t,o){var s=o("RY/4"),a=o("4WTo");e.exports=function(e){return function(){if(s(this)!=e)throw TypeError(e+"#toJSON isn't generic");return a(this)}}},mxqO:function(e,t){e.exports="data:image/png;base64,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"},oNmr:function(e,t,o){o("9Bbf")("Set")},oeOm:function(e,t,o){var s=o("7Doy");e.exports=function(e,t){return new(s(e))(t)}},pPW7:function(e,t,o){o("M6a0"),o("zQR9"),o("+tPU"),o("ttyz"),o("BDhv"),o("oNmr"),o("ioQ5"),e.exports=o("FeBl").Set},qo66:function(e,t,o){"use strict";var s=o("7KvD"),a=o("kM2E"),r=o("06OY"),n=o("S82l"),i=o("hJx8"),l=o("xH/j"),c=o("NWt+"),u=o("2KxR"),d=o("EqjI"),p=o("e6n0"),h=o("evD5").f,m=o("ALrJ")(0),f=o("+E39");e.exports=function(e,t,o,g,v,b){var C=s[e],I=C,A=v?"set":"add",y=I&&I.prototype,S={};return f&&"function"==typeof I&&(b||y.forEach&&!n(function(){(new I).entries().next()}))?(I=t(function(t,o){u(t,I,e,"_c"),t._c=new C,void 0!=o&&c(o,v,t[A],t)}),m("add,clear,delete,forEach,get,has,set,keys,values,entries,toJSON".split(","),function(e){var t="add"==e||"set"==e;e in y&&(!b||"clear"!=e)&&i(I.prototype,e,function(o,s){if(u(this,I,e),!t&&b&&!d(o))return"get"==e&&void 0;var a=this._c[e](0===o?0:o,s);return t?this:a})}),b||h(I.prototype,"size",{get:function(){return this._c.size}})):(I=g.getConstructor(t,e,v,A),l(I.prototype,o),r.NEED=!0),p(I,e),S[e]=I,a(a.G+a.W+a.F,S),b||g.setStrong(I,e,v),I}},qsKc:function(e,t,o){"use strict";var s=o("P9l9"),a={name:"store-detail",components:{vueSelectStore:o("Ie7z").a},props:{storeInfo:{type:Object,default:function(){return{}}}},data:function(){return{areaChainName:"",location:"",areaOptions:{},imgs:[],uploadUrl:"/haoban-manage-web/upload-img",treeSet:{isSelectPerson:!1,dialogVisible:!1,isSingle:!0},selectType:"group"}},methods:{callSelector:function(){this.treeSet.dialogVisible=!0},handleSelectedList:function(e){this.storeInfo.departmentName=e[0].label,this.storeInfo.storeGroupId=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(){},deleteImage:function(){},save:function(){var e=this,t=e.location.split(",");e.storeInfo.longitude=t[0],e.storeInfo.latitude=2!==t.length?"":t[1],e.storeInfo.managerPhone=e.storeInfo.managerPhoneNumber,e.storeInfo.areaChainName=e.areaOptions.provinceName+"/"+e.areaOptions.cityName+"/"+e.areaOptions.countryName;var o=e.storeInfo,a=[];e.imgs.forEach(function(e){a.push(e.url)}),o.imageUrls=a.join(","),Object(s.a)("/haoban-manage-web/store/update",o).then(function(t){console.log(t,"eidt result"),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){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 o=[];this.imgs.forEach(function(e){o.push({url:e})}),this.imgs=o,this.location=e.longitude+","+e.latitude}},mounted:function(){this.formatStoreInfo(this.storeInfo)},watch:{$route:function(e){console.log(e,"to")}}},r={render:function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"store-info"},[o("div",{staticClass:"info-cell"},[o("p",{staticClass:"title"},[e._v("门店信息")]),e._v(" "),o("el-form",{staticClass:"store-info-form info-form",attrs:{"label-width":"90px"}},[o("el-form-item",{attrs:{label:"门店名称",prop:"name"}},[o("el-input",{model:{value:e.storeInfo.storeName,callback:function(t){e.$set(e.storeInfo,"storeName",t)},expression:"storeInfo.storeName"}},[o("template",{slot:"suffix"},[e._v(e._s(e.storeInfo.storeName?e.storeInfo.storeName.length:0)+"/20")])],2)],1),e._v(" "),o("el-form-item",{attrs:{label:"所属分组",prop:"departmentName"}},[o("el-input",{on:{focus:e.callSelector},model:{value:e.storeInfo.departmentName,callback:function(t){e.$set(e.storeInfo,"departmentName",t)},expression:"storeInfo.departmentName"}},[o("i",{staticClass:"el-input__icon el-icon-arrow-down",attrs:{slot:"suffix"},slot:"suffix"})])],1),e._v(" "),o("el-form-item",{attrs:{label:"门店图片(640*340)",prop:"imageUrls"}},[o("div",{staticClass:"member-upload-image"},[o("vue-office-upload-image",{attrs:{projectName:"haoban-manage-web",wxFlag:"0",actionUrl:e.uploadUrl,imageList:e.imgs,limitW:640,limitH:340,maxImageLength:5},on:{uploadOnSuccess:e.uploadOnSuccess,sortImg:e.sortImg,deleteImage:e.deleteImage}})],1)]),e._v(" "),o("el-form-item",{attrs:{label:"联系电话",prop:"phoneNumber"}},[o("el-input",{model:{value:e.storeInfo.phoneNumber,callback:function(t){e.$set(e.storeInfo,"phoneNumber",t)},expression:"storeInfo.phoneNumber"}})],1),e._v(" "),o("el-form-item",{attrs:{label:"营业时间",prop:"phoneNumber"}},[o("el-time-select",{attrs:{placeholder:"起始时间","picker-options":{start:"00:00",step:"00:05",end:"24:00"}},model:{value:e.storeInfo.openTime,callback:function(t){e.$set(e.storeInfo,"openTime",t)},expression:"storeInfo.openTime"}}),e._v("\n ~\n "),o("el-time-select",{attrs:{placeholder:"结束时间","picker-options":{start:"00:00",step:"00:05",end:"24:00",minTime:e.storeInfo.openTime}},model:{value:e.storeInfo.closeTime,callback:function(t){e.$set(e.storeInfo,"closeTime",t)},expression:"storeInfo.closeTime"}})],1),e._v(" "),o("el-form-item",{attrs:{label:"门店类型"}},[o("el-radio-group",{model:{value:e.storeInfo.storeType,callback:function(t){e.$set(e.storeInfo,"storeType",t)},expression:"storeInfo.storeType"}},[o("el-radio",{attrs:{label:0}},[e._v("自营")]),e._v(" "),o("el-radio",{attrs:{label:1}},[e._v("联营")]),e._v(" "),o("el-radio",{attrs:{label:2}},[e._v("代理")]),e._v(" "),o("el-radio",{attrs:{label:3}},[e._v("代销")]),e._v(" "),o("el-radio",{attrs:{label:4}},[e._v("托管")])],1)],1),e._v(" "),o("el-form-item",{attrs:{label:"门店地址"}},[o("vue-office-area",{attrs:{areaOptions:e.areaOptions,projectName:"haoban-web",postUrl:"/api-admin/dict-district-list"},on:{selected:e.selected}}),e._v(" "),o("el-input",{model:{value:e.storeInfo.postAddress,callback:function(t){e.$set(e.storeInfo,"postAddress",t)},expression:"storeInfo.postAddress"}},[o("template",{slot:"suffix"},[e._v(e._s((e.storeInfo.postAddress||"").length)+"/50")])],2)],1),e._v(" "),o("el-form-item",{attrs:{label:"GPS坐标"}},[o("el-input",{staticClass:"m-r-10",model:{value:e.location,callback:function(t){e.location=t},expression:"location"}}),e._v(" "),o("a",{staticClass:"a-href",attrs:{href:"http://m.gpsspg.com/maps.htm",target:"_blank"}},[e._v("经纬度测试工具")])],1),e._v(" "),o("el-form-item",[o("template",{slot:"label"},[e._v("\n 门店代码\n "),o("i",{staticClass:"el-icon-question",staticStyle:{color:"#C0C4CC"}})]),e._v(" "),o("el-input",{model:{value:e.storeInfo.storeCode,callback:function(t){e.$set(e.storeInfo,"storeCode",t)},expression:"storeInfo.storeCode"}},[o("template",{slot:"suffix"},[e._v(e._s((e.storeInfo.storeCode||"").length)+"/20")])],2)],2)],1)],1),e._v(" "),o("div",{staticClass:"info-cell"},[o("p",{staticClass:"title"},[e._v("店长信息")]),e._v(" "),o("el-form",{staticClass:"store-manager-info-form info-form",attrs:{"label-width":"90px"}},[o("el-form-item",{attrs:{label:"店长姓名",prop:"name"}},[o("el-input",{model:{value:e.storeInfo.managerName,callback:function(t){e.$set(e.storeInfo,"managerName",t)},expression:"storeInfo.managerName"}},[o("template",{slot:"suffix"},[e._v(e._s((e.storeInfo.managerName||"").length)+"/10")])],2)],1),e._v(" "),o("el-form-item",{attrs:{label:"手机号码",prop:"phone"}},[o("el-input",{attrs:{disabled:""},model:{value:e.storeInfo.managerPhoneNumber,callback:function(t){e.$set(e.storeInfo,"managerPhoneNumber",t)},expression:"storeInfo.managerPhoneNumber"}})],1),e._v(" "),o("el-form-item",{attrs:{label:"店长性别"}},[o("el-radio-group",{model:{value:e.storeInfo.managerSex,callback:function(t){e.$set(e.storeInfo,"managerSex",t)},expression:"storeInfo.managerSex"}},[o("el-radio",{attrs:{label:1}},[e._v("男")]),e._v(" "),o("el-radio",{attrs:{label:2}},[e._v("女")])],1)],1),e._v(" "),o("el-form-item",{attrs:{label:"店长代码"}},[o("el-input",{model:{value:e.storeInfo.managerCode,callback:function(t){e.$set(e.storeInfo,"managerCode",t)},expression:"storeInfo.managerCode"}},[o("template",{slot:"suffix"},[e._v(e._s((e.storeInfo.managerCode||"").length)+"/20")])],2)],1)],1)],1),e._v(" "),o("div",{staticClass:"info-cell"},[o("p",{staticClass:"title"},[e._v("经营信息")]),e._v(" "),o("el-form",{staticClass:"operate-info-form info-form",attrs:{"label-width":"90px"}},[o("el-form-item",{attrs:{label:"特色服务"}},[o("el-input",{attrs:{type:"textarea",rows:2},model:{value:e.storeInfo.specialService,callback:function(t){e.$set(e.storeInfo,"specialService",t)},expression:"storeInfo.specialService"}}),e._v(" "),o("p",{staticClass:"counter t-rt c-909399"},[e._v(e._s((e.storeInfo.specialService||"").length)+"/20")])],1),e._v(" "),o("el-form-item",{attrs:{label:"人均消费"}},[o("el-input",{model:{value:e.storeInfo.personCost,callback:function(t){e.$set(e.storeInfo,"personCost",t)},expression:"storeInfo.personCost"}},[o("template",{slot:"suffix"},[e._v(e._s((e.storeInfo.personCost+"").length)+"/10")])],2)],1),e._v(" "),o("el-form-item",{attrs:{label:"推荐商品"}},[o("el-input",{attrs:{type:"textarea",rows:2},model:{value:e.storeInfo.recommendGoods,callback:function(t){e.$set(e.storeInfo,"recommendGoods",t)},expression:"storeInfo.recommendGoods"}}),e._v(" "),o("p",{staticClass:"counter t-rt c-909399"},[e._v(e._s((e.storeInfo.recommendGoods||"").length)+"/100")])],1),e._v(" "),o("el-form-item",{attrs:{label:"品牌介绍"}},[o("el-input",{attrs:{type:"textarea",rows:2},model:{value:e.storeInfo.brandDes,callback:function(t){e.$set(e.storeInfo,"brandDes",t)},expression:"storeInfo.brandDes"}}),e._v(" "),o("p",{staticClass:"counter t-rt c-909399"},[e._v(e._s((e.storeInfo.recommendGoods||"").length)+"/200")])],1)],1)],1),e._v(" "),o("div",{staticClass:"handle-area"},[o("el-button",{attrs:{type:"primary"},on:{click:e.save}},[e._v("保 存")])],1),e._v(" "),o("vue-select-store",{ref:"storeSelector",attrs:{treeSet:e.treeSet,selectType:e.selectType,forbidenList:[e.storeInfo.storeGroupId]},on:{handleSelectedList:e.handleSelectedList}})],1)},staticRenderFns:[]};var n=o("VU/8")(a,r,!1,function(e){o("77K1")},null,null);t.a=n.exports},qyJz:function(e,t,o){"use strict";var s=o("+ZMJ"),a=o("kM2E"),r=o("sB3e"),n=o("msXi"),i=o("Mhyx"),l=o("QRG4"),c=o("fBQ2"),u=o("3fs2");a(a.S+a.F*!o("dY0y")(function(e){Array.from(e)}),"Array",{from:function(e){var t,o,a,d,p=r(e),h="function"==typeof this?this:Array,m=arguments.length,f=m>1?arguments[1]:void 0,g=void 0!==f,v=0,b=u(p);if(g&&(f=s(f,m>2?arguments[2]:void 0,2)),void 0==b||h==Array&&i(b))for(o=new h(t=l(p.length));t>v;v++)c(o,v,g?f(p[v],v):p[v]);else for(d=b.call(p),o=new h;!(a=d.next()).done;v++)c(o,v,g?n(d,f,[a.value,v],!0):a.value);return o.length=v,o}})},rMZo:function(e,t){},ttyz:function(e,t,o){"use strict";var s=o("9C8M"),a=o("LIJb");e.exports=o("qo66")("Set",function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},{add:function(e){return s.def(a(this,"Set"),e=0===e?0:e,e)}},s)},yW4y:function(e,t){},z6bE:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIgAAADACAYAAADfsStTAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyhpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTM4IDc5LjE1OTgyNCwgMjAxNi8wOS8xNC0wMTowOTowMSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTcgKE1hY2ludG9zaCkiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6RDQ3OUQzQzQ3MDcyMTFFOEFFNkNGOTVBQ0YzMkU3NTUiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6RDQ3OUQzQzU3MDcyMTFFOEFFNkNGOTVBQ0YzMkU3NTUiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDpENDc5RDNDMjcwNzIxMUU4QUU2Q0Y5NUFDRjMyRTc1NSIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDpENDc5RDNDMzcwNzIxMUU4QUU2Q0Y5NUFDRjMyRTc1NSIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/PqQQQ0IAAAx1SURBVHja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"}});
\ No newline at end of file
webpackJsonp([2],{"2VpQ":function(e,t){},"4WTo":function(e,t,o){var s=o("NWt+");e.exports=function(e,t){var o=[];return s(e,!1,o.push,o,t),o}},"5zde":function(e,t,o){o("zQR9"),o("qyJz"),e.exports=o("FeBl").Array.from},"77K1":function(e,t){},"7Doy":function(e,t,o){var s=o("EqjI"),a=o("7UMu"),r=o("dSzd")("species");e.exports=function(e){var t;return a(e)&&("function"!=typeof(t=e.constructor)||t!==Array&&!a(t.prototype)||(t=void 0),s(t)&&null===(t=t[r])&&(t=void 0)),void 0===t?Array:t}},"9Bbf":function(e,t,o){"use strict";var s=o("kM2E");e.exports=function(e){s(s.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,o){"use strict";var s=o("evD5").f,a=o("Yobk"),r=o("xH/j"),n=o("+ZMJ"),i=o("2KxR"),l=o("NWt+"),c=o("vIB/"),u=o("EGZi"),d=o("bRrM"),p=o("+E39"),h=o("06OY").fastKey,m=o("LIJb"),f=p?"_s":"size",g=function(e,t){var o,s=h(t);if("F"!==s)return e._i[s];for(o=e._f;o;o=o.n)if(o.k==t)return o};e.exports={getConstructor:function(e,t,o,c){var u=e(function(e,s){i(e,u,t,"_i"),e._t=t,e._i=a(null),e._f=void 0,e._l=void 0,e[f]=0,void 0!=s&&l(s,o,e[c],e)});return r(u.prototype,{clear:function(){for(var e=m(this,t),o=e._i,s=e._f;s;s=s.n)s.r=!0,s.p&&(s.p=s.p.n=void 0),delete o[s.i];e._f=e._l=void 0,e[f]=0},delete:function(e){var o=m(this,t),s=g(o,e);if(s){var a=s.n,r=s.p;delete o._i[s.i],s.r=!0,r&&(r.n=a),a&&(a.p=r),o._f==s&&(o._f=a),o._l==s&&(o._l=r),o[f]--}return!!s},forEach:function(e){m(this,t);for(var o,s=n(e,arguments.length>1?arguments[1]:void 0,3);o=o?o.n:this._f;)for(s(o.v,o.k,this);o&&o.r;)o=o.p},has:function(e){return!!g(m(this,t),e)}}),p&&s(u.prototype,"size",{get:function(){return m(this,t)[f]}}),u},def:function(e,t,o){var s,a,r=g(e,t);return r?r.v=o:(e._l=r={i:a=h(t,!0),k:t,v:o,p:s=e._l,n:void 0,r:!1},e._f||(e._f=r),s&&(s.n=r),e[f]++,"F"!==a&&(e._i[a]=r)),e},getEntry:g,setStrong:function(e,t,o){c(e,t,function(e,o){this._t=m(e,t),this._k=o,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))},o?"entries":"values",!o,!0),d(t)}}},ALrJ:function(e,t,o){var s=o("+ZMJ"),a=o("MU5D"),r=o("sB3e"),n=o("QRG4"),i=o("oeOm");e.exports=function(e,t){var o=1==e,l=2==e,c=3==e,u=4==e,d=6==e,p=5==e||d,h=t||i;return function(t,i,m){for(var f,g,v=r(t),b=a(v),C=s(i,m,3),I=n(b.length),A=0,y=o?h(t,I):l?h(t,0):void 0;I>A;A++)if((p||A in b)&&(g=C(f=b[A],A,v),e))if(o)y[A]=g;else if(g)switch(e){case 3:return!0;case 5:return f;case 6:return A;case 2:y.push(f)}else if(u)return!1;return d?-1:c||u?u:y}}},BDhv:function(e,t,o){var s=o("kM2E");s(s.P+s.R,"Set",{toJSON:o("m9gC")("Set")})},Gfms:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=o("lHA8"),a=o.n(s),r=o("Gu7T"),n=o.n(r),i=o("3Xzz"),l={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:[],menuDataMine:[],defaultOpen:[],shareArea:[]}},methods:{formatGroupData:function(e){var t=this,o=[],s=window.localStorage.getItem("userInfo"),a=JSON.parse(s).enterpriseId,r=!1;e.forEach(function(s,n){if(s.exportEnterpriseId==a){var i={title:s.title,sharedContactRelationId:s.sharedContactRelationId,id:s.sharedContactRelationId,shares:[s]};s.childrens=s.ext.sharedContactDepartmentStoreGroupList,s.childrens.forEach(function(e){t.formatGroup(e,1)}),r||(r=!0,t.$emit("getEmployeeFirst",s.childrens[0])),t.defaultOpen.push(s.childrens[0].id),t.defaultOpen.push(s.childrens[1].id),e.forEach(function(e){e.exportEnterpriseId==s.importEnterpriseId&&(e.childrens=e.ext.sharedContactDepartmentStoreGroupList,e.childrens.forEach(function(e){t.formatGroup(e,0)}),i.shares.push(e),t.defaultOpen.push(e.childrens[0].id),t.defaultOpen.push(e.childrens[1].id))}),o.push(i)}}),t.shareArea=o,t.$forceUpdate()},formatGroup:function(e,t){var o=this;e.id=e.sharedContactGroupId,e.label=e.name,e.isMine=t,e.ext&&e.ext.sharedContactDepartmentStoreGroupList&&(e.childrens=e.ext.sharedContactDepartmentStoreGroupList,e.childrens.forEach(function(e){o.formatGroup(e,t)}))},clearFn:function(){this.searchResultShow=!1},searchFn:function(){if(""==this.searchKey)return this.searchResultShow=!1,!1;this.searchResultShow=!0,this.$emit("handleSearchKey",this.searchKey)},handleNodeClick:function(e,t){this.$emit("handleTreeSelection",e,t,"node")},selectEmployee:function(e){this.$emit("handleEmployeeSelection",e,"employee")},handleStoreClick:function(e){this.$emit("handleStoreSelection",e,"store")}},filter:{},computed:{employeeList:function(){var e=[];this.searchResult.employeeStoreList&&this.searchResult.employeeStoreList.forEach(function(t){t.ext.employeeClerk?(t.employeeClerkId=t.ext.employeeClerk.employeeClerkId,t.name=t.employeeStoreName,e.push(t)):t.ext.store.ext.employeeClerkList.forEach(function(t){e.push(t)})});return e},storeList:function(){var e=[];this.searchResult.employeeStoreList&&this.searchResult.employeeStoreList.forEach(function(t){t.ext.store&&(t.storeId=t.employeeStoreId,t.name=t.employeeStoreName,e.push(t))});return e},departmentList:function(){return this.searchResult.groupList?(this.searchResult.groupList.forEach(function(e){e.id=e.sharedContactGroupId}),this.searchResult.groupList):[]}},watch:{treeData:function(e,t){this.formatGroupData(e)}},mounted:function(){this.formatGroupData(this.treeData)}},c={render:function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"searh-menu-container"},[o("div",{staticClass:"p-0-15"},[o("el-input",{attrs:{"prefix-icon":"el-icon-search",placeholder:"姓名/手机号/部门名称",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")],2),e._v(" "),e.searchResultShow?o("div",{staticClass:"search-result-container m-t-15"},[e.departmentList.length>0?o("ul",{staticClass:"search-result-ul"},[o("p",{staticClass:"title"},[e._v("部门列表")]),e._v(" "),e._l(e.departmentList,function(t,s){return o("li",{key:s+"_"+t.groupId,staticClass:"group-item items",on:{click:function(o){e.handleNodeClick(t)}}},[o("i",{staticClass:"iconfont icon-tongshi-zuzhijiagou"}),e._v("\n "+e._s(t.name)+"\n ")])})],2):e._e(),e._v(" "),e.storeList.length>0?o("ul",{staticClass:"search-result-ul"},[o("p",{staticClass:"title store-frame-title"},[e._v("门店列表")]),e._v(" "),e._l(e.storeList,function(t,s){return o("li",{key:s+"_"+t.storeId,staticClass:"group-item items",on:{click:function(o){e.handleStoreClick(t)}}},[o("i",{staticClass:"iconfont icon-tongshi-zuzhijiagou"}),e._v("\n "+e._s(t.name)+"\n ")])})],2):e._e(),e._v(" "),e.employeeList.length>0?o("ul",{staticClass:"search-result-ul"},[o("p",{staticClass:"title"},[e._v("人员列表")]),e._v(" "),e._l(e.employeeList,function(t,s){return o("li",{key:s+"_"+t.employeeClerkId,staticClass:"person-item items",on:{click:function(o){e.selectEmployee(t)}}},[o("i",{staticClass:"iconfont icon-chengyuan"}),e._v("\n "+e._s(t.name)+"\n ")])})],2):e._e(),e._v(" "),e.departmentList.length<1&&e.employeeList.length<1?o("p",{staticClass:"no-data-tip"},[e._v("暂无数据")]):e._e()]):[e._l(e.shareArea,function(t){return[o("div",{key:t.sharedContactRelationId},[o("p",{staticClass:"area-title"},[e._v(e._s(t.title))]),e._v(" "),o("p",{staticClass:"share-title"},[e._v("我方共享给对方的所有人员")]),e._v(" "),o("div",{staticClass:"p-0-15",attrs:{id:"id"+t.shares[0].sharedContactRelationId}},[o("el-tree",{staticClass:"search-menu",attrs:{"node-key":"id","default-expanded-keys":e.defaultOpen,data:t.shares[0].childrens,"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 s=t.node;return t.data,o("span",{staticClass:"custom-tree-node"},[o("i",{staticClass:"iconfont",class:1==s.level?"icon-2zuzhijiagou":"icon-tongshi-zuzhijiagou"}),e._v(" "),o("span",[e._v(e._s(s.label))])])}}])})],1),e._v(" "),e._m(0,!0),e._v(" "),o("div",{staticClass:"p-0-15",attrs:{id:"id"+t.shares[1].sharedContactRelationId}},[e.searchResultShow?e._e():o("el-tree",{staticClass:"search-menu",attrs:{"node-key":"id","default-expanded-keys":e.defaultOpen,data:t.shares[1].childrens,"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 s=t.node;return t.data,o("span",{staticClass:"custom-tree-node"},[o("i",{staticClass:"iconfont",class:1==s.level?"icon-2zuzhijiagou":"icon-tongshi-zuzhijiagou"}),e._v(" "),o("span",[e._v(e._s(s.label))])])}}])})],1)])]})]],2)},staticRenderFns:[function(){var e=this.$createElement,t=this._self._c||e;return t("p",{staticClass:"share-title"},[this._v("对方共享给我方的所有人员"),t("i",{staticClass:"el-icon-upload"})])}]};var u=o("VU/8")(l,c,!1,function(e){o("W6b0")},null,null).exports,d=o("P9l9"),p=o("c4uw"),h={name:"employeeInfo",components:{vueSelectEmployee:p.a},props:{perId:{type:[String,Number],default:""},isNew:{type:Boolean,default:!1}},data:function(){return{info:{name:"",phoneNumber:"",departmentId:"",departmentName:"",managerMode:!1},treeData:{},disabled:!0,employeeInfo:{name:"",phoneNumber:"",departmentName:""},rules:{name:[{required:!0,message:"请输入员工姓名",trigger:"blur"},{min:2,max:10,message:"长度在 2 到 10 个字符",trigger:"blur"}],phoneNumber:[{required:!0,validator:function(e,t,o){if(!t)return o(new Error("请输入手机号"));return/^1[34578]\d{9}$/.test(t)?void 0:o(new Error("手机号格式不正确"))},trigger:"blur"}],departmentId:[{required:!0,message:"请选择部门",trigger:"change"}]},treeSet:{isSelectPerson:!1,dialogVisible:!1,isSingle:!0}}},methods:{getGroupData:function(){var e=this;Object(d.a)("/haoban-manage-web/dept/deptListForCompany",{isStoreGroup:0}).then(function(t){var o=[],s=[];1==t.data.errorCode&&(o=t.data.result.departmentList||[],s=t.data.result.searchList||[]),e.treeData={treeData:o,personData:s},e.disabled=!1}).catch(function(e){})},callGroupSelector:function(){this.treeSet.dialogVisible=!0},handleSelectedList:function(e){this.info.departmentId=e.id,this.info.departmentName=e.label},getEmployInfo:function(){var e=this,t={id:e.$route.query.employeeClerkId?e.$route.query.employeeClerkId:e.perId};Object(d.a)("/haoban-manage-web/emp/findOne",t).then(function(t){e.info=t.data.result,e.info.managerMode=!!t.data.result.managerMode}).catch(function(e){})}},beforeMount:function(){this.getGroupData(),this.isNew||this.getEmployInfo()},watch:{perId:function(e,t){this.getEmployInfo()}}},m={render:function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"employee-info"},[o("div",{staticClass:"info-cell"},[o("p",{staticClass:"title"},[e._v("员工信息")]),e._v(" "),o("el-form",{staticClass:"employee-info-form",attrs:{model:e.info,"label-width":"70px"}},[o("el-form-item",{attrs:{label:"姓名:",prop:"name"}},[o("p",[e._v(e._s(e.info.name))])]),e._v(" "),o("el-form-item",{attrs:{label:"手机号:",prop:"phoneNumber"}},[o("p",[e._v(e._s(e.info.phoneNumber))])]),e._v(" "),o("el-form-item",{attrs:{label:"部门:",prop:"departmentId"}},[o("p",[e._v(e._s(e.info.departmentName))])]),e._v(" "),o("el-form-item",{attrs:{label:"职位:",prop:"positionName"}},[o("p",[e._v(e._s(e.info.positionName))])])],1)],1),e._v(" "),o("vue-select-employee",{ref:"parentSelector",attrs:{treeSet:e.treeSet,treeData:e.treeData},on:{handleSelectedList:e.handleSelectedList}})],1)},staticRenderFns:[]};var f=o("VU/8")(h,m,!1,function(e){o("NTBG")},null,null).exports,g=o("qsKc"),v={name:"employee-table",props:{employeeList:{type:Array,default:function(){return[]}},headList:{type:Array,default:function(){return["selection","name","phoneNumber","positionName","activationStatus"]}},groupInfo:{type:Object,default:function(){return{}}}},data:function(){return{tableH:window.screen.availHeight-440-250,tableData:[]}},methods:{selectMember:function(e){this.$emit("selectMember",e)},linkToDetail:function(e){this.groupInfo.isMine?window.location.href="#/employee?employeeClerkId="+e.employeeClerkId:window.location.href="#/employee?readOnly=1&employeeClerkId="+e.employeeClerkId}},mounted:function(){var e=[];this.employeeList.forEach(function(t){t.ext.employeeClerk.sharedContactEmployeeStoreId=t.sharedContactEmployeeStoreId,e.push(t.ext.employeeClerk)}),this.tableData=e},watch:{employeeList:function(e){var t=[];e.forEach(function(e){e.ext.employeeClerk.sharedContactEmployeeStoreId=e.sharedContactEmployeeStoreId,t.push(e.ext.employeeClerk)}),this.tableData=t}}},b={render:function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"employee-table"},[o("el-table",{attrs:{data:e.tableData},on:{"selection-change":e.selectMember,"row-click":e.linkToDetail}},[o("el-table-column",{attrs:{type:"selection",width:"42"}}),e._v(" "),o("el-table-column",{attrs:{label:"姓名",prop:"name"}}),e._v(" "),o("el-table-column",{attrs:{label:"手机号",prop:"phoneNumber"}}),e._v(" "),o("el-table-column",{attrs:{label:"职位"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(t.row.positionName||"--")+"\n ")]}}])}),e._v(" "),o("el-table-column",{attrs:{label:"状态"},scopedSlots:e._u([{key:"default",fn:function(e){return[o("div",{staticClass:"status-icon",class:1==e.row.activationStatus?"is-active":""},[o("i",{staticClass:"iconfont icon-shouji"})])]}}])})],1)],1)},staticRenderFns:[]};var C=o("VU/8")(v,b,!1,function(e){o("jkW8")},null,null).exports,I={name:"clerkView",props:{tableData:{type:Array,default:function(){return[]}}},data:function(){return{tableH:window.screen.availHeight-440-250,storeType:0,typeArr:["全部类型","自营","联营","代理(加盟)","代销","托管"],storeStatus:"",showChildMember:!1}},methods:{selectMember:function(e){this.$emit("selectMember",e)}},mounted:function(){this.tableData.forEach(function(e){e.ext.store=e.ext.store?e.ext.store:{},e.ext.store.ext=e.ext.store?e.ext.store.ext:{employeeClerkList:[]},e.ext.store.ext.employeeClerkList=e.ext.store?e.ext.store.ext.employeeClerkList:[],e.storeCode=e.ext.store?e.ext.store.storeCode:""})},watch:{tableData:function(e){e.forEach(function(e){e.ext.store=e.ext.store?e.ext.store:{},e.ext.store.ext=e.ext.store?e.ext.store.ext:{employeeClerkList:[]},e.ext.store.ext.employeeClerkList=e.ext.store?e.ext.store.ext.employeeClerkList:[],e.storeCode=e.ext.store?e.ext.store.storeCode:""})}}},A={render:function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",[o("el-table",{ref:"clerkViewTable",staticClass:"diy-table",attrs:{data:e.tableData},on:{"selection-change":e.selectMember}},[o("el-table-column",{attrs:{type:"selection",width:"42"}}),e._v(" "),o("el-table-column",{attrs:{label:"门店",width:"175",prop:"employeeStoreName"}}),e._v(" "),o("el-table-column",{attrs:{label:"门店code",prop:"storeCode",width:"175"}}),e._v(" "),o("el-table-column",{scopedSlots:e._u([{key:"header",fn:function(t){return[o("ul",{staticClass:"diy-header"},[o("li",{staticClass:"name"},[e._v("姓名")]),e._v(" "),o("li",{staticClass:"phone"},[e._v("手机号")]),e._v(" "),o("li",{staticClass:"position"},[e._v("职位")]),e._v(" "),o("li",{staticClass:"status"},[e._v("状态")])])]}},{key:"default",fn:function(t){return[o("ul",e._l(t.row.ext.store.ext.employeeClerkList,function(t){return o("li",{key:t.employeeClerkId,staticClass:"clerk-obj-li"},[o("div",{staticClass:"clerk-name clerk-cell"},[e._v(e._s(t.name))]),e._v(" "),o("div",{staticClass:"clerk-cell clerk-phone"},[e._v(e._s(t.phoneNumber))]),e._v(" "),o("div",{staticClass:"clerk-cell clerk-position"},[e._v(e._s(t.positionName))]),e._v(" "),o("div",{staticClass:"clerk-cell clerk-status"},[o("div",{staticClass:"status-icon",class:1==t.activationStatus?"is-active":""},[o("i",{staticClass:"iconfont icon-shouji"})])])])}))]}}])})],1)],1)},staticRenderFns:[]};var y=o("VU/8")(I,A,!1,function(e){o("UeHl")},null,null).exports,S={render:function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"guid-div"},[this._m(0),this._v(" "),this._m(1),this._v(" "),t("div",{staticStyle:{"text-align":"center","margin-top":"50px"}},[t("a",{attrs:{href:"#/shareCode"}},[t("el-button",{attrs:{type:"primary"}},[this._v("建立共享企业")])],1)])])},staticRenderFns:[function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"guid"},[s("p",{staticClass:"title"},[e._v("共享通讯录操作引导")]),e._v(" "),s("div",{staticClass:"flex-div"},[s("div",{staticClass:"step"},[s("img",{attrs:{src:o("z6bE")}}),e._v(" "),s("p",[e._v("点击建立共享企业,下载二维码 发给所要建立共享的企业")])]),e._v(" "),s("div",{staticClass:"step"},[s("img",{attrs:{src:o("NBVb")}}),e._v(" "),s("p",[e._v("从企业通讯录中添加对方可见我方 企业的成员及门店")])]),e._v(" "),s("div",{staticClass:"step"},[s("img",{attrs:{src:o("NXrz")}}),e._v(" "),s("p",[e._v("添加完成之后必须点击发布,所添加或 修改的信息才会同步至对方共享通讯录中")])])])])},function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"guid"},[t("p",{staticClass:"des"},[this._v("应用场景")]),this._v(" "),t("p",{staticClass:"des"},[this._v("适用于集团公司与子公司建立通讯录部分成员共享机制")]),this._v(" "),t("p",{staticClass:"des"},[this._v("适用于总部与代理商、加盟商建立通讯录部分成员共享机制")])])}]};var w=o("VU/8")(null,S,!1,function(e){o("XOpN")},null,null).exports,N={name:"addNewGuid",props:{groupInfo:{type:Object,required:!0}},methods:{addNew:function(){this.groupInfo.isStoreGroup?this.$emit("addStoreEmployee"):this.$emit("addEmployee")}}},k={render:function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"tip-area"},[s("img",{attrs:{src:o("mxqO")}}),e._v(" "),e.groupInfo.isMine?[e.groupInfo.level?s("p",[e._v("暂无成员,开始添加成员吧")]):e._e(),e._v(" "),e.groupInfo.level?e._e():s("p",[e._v("暂无成员,开始添加子分组吧")]),e._v(" "),e.groupInfo.level?s("el-button",{staticClass:"add-new-btn",on:{click:e.addNew}},[e._v("添加成员")]):e._e()]:s("p",[e._v("暂无成员,联系建立共享企业的管理员,对方添加后即可查看")])],2)},staticRenderFns:[]};var D=o("VU/8")(N,k,!1,function(e){o("rMZo")},null,null).exports,E=o("3E4D"),G=o("Ch4/"),Y=o("Ie7z"),x={name:"permission-set",components:{vueSelectStore:Y.a,vueSelectEmployee:p.a},props:{groupInfo:{type:Object,required:!0}},data:function(){return{visibleList:[],visibleStoreList:[],treeSet:{isSelectPerson:!1,dialogVisible:!1,isSingle:!1},perTreeSet:{isSelectPerson:!0,dialogVisible:!1,isSingle:!1},dialogVisible:!0,changed:""}},methods:{getVisibleRange:function(){var e=this,t={sharedContactGroupId:e.groupInfo.sharedContactGroupId};Object(d.a)("/haoban-manage-web/shared-contact/get-shared-group-visible-range",t).then(function(t){1==t.data.errorCode?e.formatList(t.data.result):e.$message.error({message:t.data.message})}).catch(function(t){e.$message.error({message:t.message})})},formatList:function(e){var t=[],o=[];e.forEach(function(e){e.label=e.name,1==e.type?(e.employeeClerkId=e.id,t.push(e)):(e.storeId=e.id,o.push(e))}),this.visibleList=t,this.visibleStoreList=o},delCurrent:function(e,t){var o=this[t].indexOf(e);this[t].splice(o,1)},callSelector:function(){this.treeSet.dialogVisible=!0},callPerSelector:function(){this.changed="permission",this.perTreeSet.dialogVisible=!0},setSharedGroupVisible:function(){var e=this,t=[];e.visibleList.concat(e.visibleStoreList).forEach(function(e){var o=e.employeeClerkId?1:2;t.push({id:e.id,type:o})});var o={visibleMemberList:[{memberList:t,sharedContactGroupId:e.groupInfo.id}]};Object(d.b)("/haoban-manage-web/shared-contact/set-shared-group-visible-range",o).then(function(t){1==t.data.errorCode?(e.$message.success({message:t.data.message}),e.getVisibleRange()):e.$message.error({message:t.data.message})}).catch(function(t){e.$message.error({message:t.message})})},cancelSet:function(){this.$emit("cancelSet")},handleSelectedList:function(e){this.visibleStoreList=e},handlePerSelectedList:function(e){this.visibleList=e}},beforeMount:function(){this.getVisibleRange()},mounted:function(){}},R={render:function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"per-set-div"},[o("el-form",{attrs:{"label-width":"150px"}},[o("el-form-item",{attrs:{label:"当前范围:"}},[o("span",[e._v(e._s(e.groupInfo.label))])]),e._v(" "),o("el-form-item",{attrs:{label:"设置可见范围(员工):"}},[o("ul",{staticClass:"particular-list"},[e._l(e.visibleList,function(t,s){return[t.employeeClerkId?o("li",{key:s+"_"+t.id,staticClass:"item person-item"},[t.headPic?o("img",{attrs:{src:t.headPic}}):o("div",{staticClass:"replace-head-img"},[o("i",{staticClass:"iconfont icon-yewuduanmorentouxian"})]),e._v(" "),o("p",{staticClass:"name"},[e._v(e._s(t.label))]),e._v(" "),o("i",{staticClass:"el-icon-circle-close",on:{click:function(o){e.delCurrent(t,"visibleList")}}})]):e._e()]}),e._v(" "),o("li",{staticClass:"item J_add-btn",on:{click:e.callPerSelector}},[o("i",{staticClass:"el-icon-plus"})])],2)]),e._v(" "),o("el-form-item",{attrs:{label:"设置可见范围(门店):"}},[o("ul",{staticClass:"particular-list"},[e._l(e.visibleStoreList,function(t,s){return[o("li",{key:s+"_"+t.id,staticClass:"item group-item"},[e._v("\n "+e._s(t.label)+"\n "),o("i",{staticClass:"el-icon-circle-close",on:{click:function(o){e.delCurrent(t,"visibleStoreList")}}})])]}),e._v(" "),o("li",{staticClass:"item J_add-btn",on:{click:e.callSelector}},[o("i",{staticClass:"el-icon-plus"})])],2)])],1),e._v(" "),o("p",{staticClass:"m-t-20"},[o("el-button",{attrs:{type:"primary"},on:{click:e.setSharedGroupVisible}},[e._v("确定")]),e._v(" "),o("el-button",{on:{click:e.cancelSet}},[e._v("取消")])],1),e._v(" "),o("vue-select-store",{ref:"storeSelector",attrs:{defaultList:e.visibleStoreList,treeSet:e.treeSet,selectType:"store"},on:{handleSelectedList:e.handleSelectedList}}),e._v(" "),o("vue-select-employee",{ref:"selectEmployee",attrs:{defaultSelection:e.visibleList,onlyPerson:!0,treeSet:e.perTreeSet,changed:e.changed},on:{handleSelectedList:e.handlePerSelectedList}})],1)},staticRenderFns:[]};var L=o("VU/8")(x,R,!1,function(e){o("JBRo")},null,null).exports,j={name:"shareContact",components:{navCrumb:i.a,searchMenu:u,employeeInfo:f,employeeList:C,guidDiv:w,clerkView:y,vueSelectEmployee:p.a,vueSelectStore:Y.a,permissionSet:L,addNewGuid:D,storeInfo:g.a},data:function(){return{navpath:[{name:"首页",path:"/index"},{name:"企业通讯录",path:"/administrativeFrame"},{name:"共享通讯录",path:""}],windowH:window.screen.availHeight-440+"px",boxHeight:window.screen.availHeight-440-48+"px",showChildMember:!1,setDisabledDel:!1,menuData:[],pageSize:20,currentPage:1,selectedList:[],total:0,loading:!0,groupInfo:{groupName:"",departmentId:""},employeeList:[],searchResult:{},showEmployee:"",perId:"",sharedContactRelationId:[],shareMember:!1,shareSale:!1,disabled:!0,treeData:{},sldType:1,dlgTitle:"",dlgShow:!1,editDlgShow:!1,newGroupName:"",storeInfo:{}}},created:function(){},beforeMount:function(){this.getShareRelation()},methods:{editGroup:function(){this.dlgTitle="部门",this.newGroupName=this.groupInfo.groupName,this.editDlgShow=!0},subSonGroupAdd:function(e){var t=this;if(""==t.newGroupName)t.$message.error({message:"名称不能为空"});else{var o={parentSharedContactGroupId:e?t.groupInfo.parentId:t.groupInfo.id,name:t.newGroupName};e?o.sharedContactGroupId=t.groupInfo.id:delete o.sharedContactGroupId,Object(d.a)("/haoban-manage-web/shared-contact/set-shared-group",o).then(function(e){1==e.data.errorCode?(t.$message.success({message:e.data.message}),t.getShareRelation(),t.dlgShow=!1,t.editDlgShow=!1):t.$message.error({message:e.data.message})}).catch(function(e){t.$message.error({message:e.message})})}},callEmployeeSelector:function(){this.sldType=1,this.$refs.selectEmployee.treeSet.dialogVisible=!0},handleSelectedList:function(e){var t=this,o=[];e.forEach(function(e){o.push({id:e.id,type:t.sldType})});var s={overwrite:!1,sharedContactMemberList:[{sharedContactGroupId:t.groupInfo.id,memberList:o}]};Object(d.b)("/haoban-manage-web/shared-contact/add-shared-member",s).then(function(e){1==e.data.errorCode?(t.$message.success({message:e.data.message}),t.getEmployee()):t.$message.error({message:e.data.message})}).catch(function(e){t.$message.error({message:e.message})})},handleSizeChange:function(e){this.pageSize=e,this.getEmployee()},handleCurrentChange:function(e){this.currentPage=e,this.getEmployee()},cancelSet:function(){console.log("Cancel"),this.showEmployee=!1},subShareSet:function(){var e=this,t={visibleData:{shareMember:1*e.shareMember,shareSale:1*e.shareSale,sharedContactRelationId:e.sharedContactRelationId.join(",")}};Object(d.b)("/haoban-manage-web/shared-contact/set-shared-store-visible-data",t).then(function(t){e.$message.error({message:t.data.message})}).catch(function(t){e.$message.error({message:t.message})})},handleSearchKey:function(e){var t=this,o={keyword:e};Object(d.a)("/haoban-manage-web/shared-contact/search-shared-contact",o).then(function(e){e.data.result&&(t.searchResult=e.data.result)}).catch(function(e){t.$message.error({message:e.message})})},handleTreeSelection:function(e,t,o){this.groupInfo=e,this.groupInfo.departmentId=e.id,this.groupInfo.groupName=e.name,this.showEmployee=o,this.loading=!0,this.getEmployee(),console.log(e,t,o,this.groupInfo)},handleEmployeeSelection:function(e,t){this.perId=e.employeeClerkId,this.showEmployee=t},handleStoreSelection:function(e,t){var o=this,s={storeId:e.storeId};Object(d.a)("/haoban-manage-web/store/findStoreById",s).then(function(e){1==e.data.errorCode?(o.showEmployee=t,o.storeInfo=e.data.result):o.$message.error({message:e.data.message})})},deleteDepart:function(e){var t=this;t.$confirm("是否要删除当前分组?","提示",{type:"warning"}).then(function(){t.postDeleteDepart(e)})},postDeleteDepart:function(e){var t=this,o={sharedContactGroupIdList:[e]};Object(d.b)("/haoban-manage-web/shared-contact/del-shared-group",o).then(function(e){var o=e.data;1==o.errorCode?(E.a.showmsg("删除成功","success"),t.getShareRelation()):G.a.errorMsg(o)}).catch(function(e){t.$message.error({message:e.message})})},selectMember:function(e){this.selectedList=e},delMembers:function(){var e=this;e.$confirm("是否要删除选中的员工?","提示",{type:"warning"}).then(function(){var t=[];e.selectedList.forEach(function(e){t.push(e.sharedContactEmployeeStoreId)});var o={sharedContactEmployeeStoreIdList:t};Object(d.b)("/haoban-manage-web/shared-contact/del-shared-member",o).then(function(t){1==t.data.errorCode?(e.$message.success({message:t.data.message}),e.getEmployee()):e.$message.error({message:t.data.message})}).catch(function(t){e.$message.error({message:t.message})})})},setChildMemberShow:function(){this.getEmployee()},getGroupData:function(e){var t=this;Object(d.a)("/haoban-manage-web/shared-contact/find-shared-group",{}).then(function(e){e.data.result.forEach(function(e){e.groupId=e.sharedContactGroupId}),t.menuData=e.data.result||[],t.menuData.some(function(e){return 0==e.level&&(t.groupInfo.departmentId=e.groupId,t.groupInfo.groupName=e.name),0==e.level}),t.getEmployee(),t.getRelationIds(t.menuData)}).catch(function(e){t.$message.error({message:e.message})})},getRelationIds:function(e){var t=window.localStorage.getItem("userInfo"),o=JSON.parse(t).enterpriseId,s=[];e.forEach(function(e){0==e.level&&e.enterpriseId!=o&&s.push(e.enterpriseId)}),s=[].concat(n()(new a.a(s))),this.sharedContactRelationId=s},getShareRelation:function(){var e=this;Object(d.a)("/haoban-manage-web/shared-contact/find-shared-contact-relation",{searchGroup:1}).then(function(t){var o=t.data;1==o.errorCode?(e.menuData=o.result||[],e.loading=!1):(G.a.errorMsg(o),e.loading=!1)}).catch(function(t){e.$message.error({message:t.message})})},getEmployeeFirst:function(e){this.groupInfo=e,console.log("First:",e),this.getEmployee()},getEmployee:function(){var e=this,t={sharedContactGroupId:e.groupInfo.id,findChildren:e.showChildMember};Object(d.b)("/haoban-manage-web/shared-contact/find-shared-member",t).then(function(t){var o=[],s=0;1==t.data.errorCode&&(o=t.data.result.list||[],s=t.data.result.pageInfo.total||0),e.employeeList=o,e.total=s,e.loading=!1}).catch(function(t){e.loading=!1,e.$message.error({message:t.message})})}},computed:{disabledDel:function(){return this.selectedList.length<1&&!this.setDisabledDel}}},M={render:function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"common-set-wrap"},[o("nav-crumb",{attrs:{navpath:e.navpath}}),e._v(" "),o("div",{staticClass:"right-content",style:{minHeight:e.windowH,"overflow-y":"auto"}},[o("div",{staticClass:"right-box"},[o("div",{staticClass:"administrative-estrutura-container"},[e.menuData.length>0?[o("search-menu",{attrs:{treeData:e.menuData,searchResult:e.searchResult},on:{handleEmployeeSelection:e.handleEmployeeSelection,getEmployeeFirst:e.getEmployeeFirst,handleSearchKey:e.handleSearchKey,handleTreeSelection:e.handleTreeSelection}},[o("template",{slot:"buttonBox"},[o("p",{staticClass:"add-share"},[o("a",{attrs:{href:"#/shareCode"}},[o("el-button",[e._v("建立共享企业")])],1)])])],2),e._v(" "),"employee"==e.showEmployee?o("employee-info",{attrs:{perId:e.perId}}):"store"==e.showEmployee?o("store-info",{ref:"store_info",attrs:{storeInfo:e.storeInfo}}):"permission"==e.showEmployee?o("permission-set",{attrs:{groupInfo:e.groupInfo},on:{cancelSet:e.cancelSet}}):o("div",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticClass:"af-right-container"},[o("div",{staticClass:"af-right-header"},[o("span",{staticClass:"title-span"},[e._v(e._s(e.groupInfo.groupName)+"("+e._s(e.total)+"人)"),o("span",{staticClass:"not-show-app"},[e._v("本企业通讯录APP中不展示")])]),e._v(" "),e.groupInfo.isMine?[1==e.groupInfo.isStoreGroup?o("span",{staticClass:"handle-area"},[o("a",{staticClass:"a-href",on:{click:function(t){e.dlgTitle="分组",e.dlgShow=!0}}},[e._v("添加子分组")]),e._v(" "),0!=e.groupInfo.level?o("span",{staticClass:"hurdle"}):e._e(),e._v(" "),0!=e.groupInfo.level?o("a",{staticClass:"J_edit a-href",on:{click:e.editGroup}},[e._v("编辑")]):e._e(),e._v(" "),0!=e.groupInfo.level?o("span",{staticClass:"hurdle"}):e._e(),e._v(" "),0!=e.groupInfo.level?o("a",{staticClass:"J_edit a-href",on:{click:function(t){e.deleteDepart(e.groupInfo.id)}}},[e._v("删除子分组")]):e._e()]):o("span",{staticClass:"handle-area"},[o("a",{staticClass:"J_add-child a-href",on:{click:function(t){e.dlgTitle="部门",e.newGroupName="",e.dlgShow=!0}}},[e._v("\n 添加子部门\n ")]),e._v(" "),0!=e.groupInfo.level?[o("span",{staticClass:"hurdle"}),e._v(" "),o("a",{staticClass:"J_edit a-href",on:{click:e.editGroup}},[e._v("\n 编辑\n ")]),e._v(" "),0!=e.groupInfo.level?o("span",{staticClass:"hurdle"}):e._e(),e._v(" "),0!=e.groupInfo.level?o("a",{staticClass:"J_edit a-href",on:{click:function(t){e.deleteDepart(e.groupInfo.id)}}},[e._v("删除子分组")]):e._e()]:e._e()],2)]:[o("a",{staticClass:"a-href fr",on:{click:function(t){e.showEmployee="permission"}}},[e._v("设置可见权限")])]],2),e._v(" "),e.employeeList.length>0?[o("div",{staticClass:"af-right-button-box"},[e.groupInfo.isMine?[1==e.groupInfo.isStoreGroup&&1*e.groupInfo.level>0?o("el-button",{attrs:{type:"primary"},on:{click:function(t){e.$refs.storeSelector.treeSet.dialogVisible=!0,e.sldType=2}}},[e._v("\n 添加门店\n ")]):e._e(),e._v(" "),1!=e.groupInfo.isStoreGroup&&0!=e.groupInfo.level?o("el-button",{attrs:{type:"primary"},on:{click:e.callEmployeeSelector}},[e._v("添加成员")]):e._e(),e._v(" "),o("el-button",{attrs:{type:"danger",plain:"",disabled:e.disabledDel},on:{click:e.delMembers}},[e._v("批量删除")])]:e._e(),e._v(" "),o("el-button",{staticClass:"J_show-children"},[o("el-checkbox",{staticClass:"m-r-10",on:{change:e.setChildMemberShow},model:{value:e.showChildMember,callback:function(t){e.showChildMember=t},expression:"showChildMember"}}),o("a",{staticClass:"a-href"},[e._v("显示子成员")])],1)],2),e._v(" "),1==e.groupInfo.isStoreGroup?o("clerk-view",{attrs:{tableData:e.employeeList},on:{selectMember:e.selectMember}}):o("employee-list",{attrs:{employeeList:e.employeeList,groupInfo:e.groupInfo},on:{selectMember:e.selectMember}}),e._v(" "),o("div",{staticClass:"pagination"},[o("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)]:[o("div",{staticClass:"af-right-button-box"},[e.groupInfo.isMine?[1==e.groupInfo.isStoreGroup&&0!=e.groupInfo.level?o("el-button",{attrs:{type:"primary"},on:{click:function(t){e.$refs.storeSelector.treeSet.dialogVisible=!0,e.sldType=2}}},[e._v("\n 添加门店\n ")]):e._e(),e._v(" "),1!=e.groupInfo.isStoreGroup&&0!=e.groupInfo.level?o("el-button",{attrs:{type:"primary"},on:{click:e.callEmployeeSelector}},[e._v("添加成员")]):e._e()]:e._e(),e._v(" "),o("span",{staticClass:"J_show-children el-button"},[o("el-checkbox",{staticClass:"m-r-10",on:{change:e.setChildMemberShow},model:{value:e.showChildMember,callback:function(t){e.showChildMember=t},expression:"showChildMember"}}),o("a",{staticClass:"a-href"},[e._v("显示子成员")])],1)],2),e._v(" "),o("add-new-guid",{attrs:{groupInfo:e.groupInfo},on:{addEmployee:e.callEmployeeSelector,addStoreEmployee:function(t){e.$refs.storeSelector.treeSet.dialogVisible=!0,e.sldType=2}}})]],2)]:[o("guid-div")]],2)])]),e._v(" "),o("el-dialog",{attrs:{title:"添加子"+e.dlgTitle,visible:e.dlgShow,width:"30%"},on:{"update:visible":function(t){e.dlgShow=t}}},[o("div",{staticStyle:{padding:"30px"}},[o("el-input",{attrs:{placeholder:"请输入"+e.dlgTitle+"名称"},model:{value:e.newGroupName,callback:function(t){e.newGroupName=t},expression:"newGroupName"}})],1),e._v(" "),o("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[o("el-button",{on:{click:function(t){e.dlgShow=!1}}},[e._v("取 消")]),e._v(" "),o("el-button",{attrs:{type:"primary"},on:{click:function(t){e.subSonGroupAdd(0)}}},[e._v("确 定")])],1)]),e._v(" "),o("el-dialog",{attrs:{title:"编辑"+e.dlgTitle,visible:e.editDlgShow,width:"30%"},on:{"update:visible":function(t){e.editDlgShow=t}}},[o("div",{staticStyle:{padding:"30px"}},[o("el-input",{attrs:{placeholder:"请输入"+e.dlgTitle+"名称"},model:{value:e.newGroupName,callback:function(t){e.newGroupName=t},expression:"newGroupName"}})],1),e._v(" "),o("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[o("el-button",{on:{click:function(t){e.editDlgShow=!1}}},[e._v("取 消")]),e._v(" "),o("el-button",{attrs:{type:"primary"},on:{click:function(t){e.subSonGroupAdd(1)}}},[e._v("确 定")])],1)]),e._v(" "),o("vue-select-employee",{ref:"selectEmployee",attrs:{onlyPerson:!0,treeData:e.treeData},on:{handleSelectedList:e.handleSelectedList}}),e._v(" "),o("vue-select-store",{ref:"storeSelector",attrs:{selectType:"store"},on:{handleSelectedList:e.handleSelectedList}}),e._v(" "),o("vue-gic-footer")],1)},staticRenderFns:[]};var Q=o("VU/8")(j,M,!1,function(e){o("2VpQ")},null,null);t.default=Q.exports},Gu7T:function(e,t,o){"use strict";t.__esModule=!0;var s,a=o("c/Tr"),r=(s=a)&&s.__esModule?s:{default:s};t.default=function(e){if(Array.isArray(e)){for(var t=0,o=Array(e.length);t<e.length;t++)o[t]=e[t];return o}return(0,r.default)(e)}},HpRW:function(e,t,o){"use strict";var s=o("kM2E"),a=o("lOnJ"),r=o("+ZMJ"),n=o("NWt+");e.exports=function(e){s(s.S,e,{from:function(e){var t,o,s,i,l=arguments[1];return a(this),(t=void 0!==l)&&a(l),void 0==e?new this:(o=[],t?(s=0,i=r(l,arguments[2],2),n(e,!1,function(e){o.push(i(e,s++))})):n(e,!1,o.push,o),new this(o))}})}},JBRo:function(e,t){},LIJb:function(e,t,o){var s=o("EqjI");e.exports=function(e,t){if(!s(e)||e._t!==t)throw TypeError("Incompatible receiver, "+t+" required!");return e}},NBVb:function(e,t,o){e.exports=o.p+"static/img/guid2.c4a077f.png"},NTBG:function(e,t){},NXrz:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKAAAADACAYAAACDO2h3AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyhpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTM4IDc5LjE1OTgyNCwgMjAxNi8wOS8xNC0wMTowOTowMSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6RDQ3OUQzQzk3MDcyMTFFOEFFNkNGOTVBQ0YzMkU3NTUiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6RDQ3OUQzQzg3MDcyMTFFOEFFNkNGOTVBQ0YzMkU3NTUiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTcgKE1hY2ludG9zaCkiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDpENDc5RDNDMDcwNzIxMUU4QUU2Q0Y5NUFDRjMyRTc1NSIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDpENDc5RDNDMTcwNzIxMUU4QUU2Q0Y5NUFDRjMyRTc1NSIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/Piun5rwAABJDSURBVHja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"},UeHl:function(e,t){},W6b0:function(e,t){},XOpN:function(e,t){},"c/Tr":function(e,t,o){e.exports={default:o("5zde"),__esModule:!0}},fBQ2:function(e,t,o){"use strict";var s=o("evD5"),a=o("X8DO");e.exports=function(e,t,o){t in e?s.f(e,t,a(0,o)):e[t]=o}},ioQ5:function(e,t,o){o("HpRW")("Set")},jkW8:function(e,t){},lHA8:function(e,t,o){e.exports={default:o("pPW7"),__esModule:!0}},m9gC:function(e,t,o){var s=o("RY/4"),a=o("4WTo");e.exports=function(e){return function(){if(s(this)!=e)throw TypeError(e+"#toJSON isn't generic");return a(this)}}},mxqO:function(e,t){e.exports="data:image/png;base64,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"},oNmr:function(e,t,o){o("9Bbf")("Set")},oeOm:function(e,t,o){var s=o("7Doy");e.exports=function(e,t){return new(s(e))(t)}},pPW7:function(e,t,o){o("M6a0"),o("zQR9"),o("+tPU"),o("ttyz"),o("BDhv"),o("oNmr"),o("ioQ5"),e.exports=o("FeBl").Set},qo66:function(e,t,o){"use strict";var s=o("7KvD"),a=o("kM2E"),r=o("06OY"),n=o("S82l"),i=o("hJx8"),l=o("xH/j"),c=o("NWt+"),u=o("2KxR"),d=o("EqjI"),p=o("e6n0"),h=o("evD5").f,m=o("ALrJ")(0),f=o("+E39");e.exports=function(e,t,o,g,v,b){var C=s[e],I=C,A=v?"set":"add",y=I&&I.prototype,S={};return f&&"function"==typeof I&&(b||y.forEach&&!n(function(){(new I).entries().next()}))?(I=t(function(t,o){u(t,I,e,"_c"),t._c=new C,void 0!=o&&c(o,v,t[A],t)}),m("add,clear,delete,forEach,get,has,set,keys,values,entries,toJSON".split(","),function(e){var t="add"==e||"set"==e;e in y&&(!b||"clear"!=e)&&i(I.prototype,e,function(o,s){if(u(this,I,e),!t&&b&&!d(o))return"get"==e&&void 0;var a=this._c[e](0===o?0:o,s);return t?this:a})}),b||h(I.prototype,"size",{get:function(){return this._c.size}})):(I=g.getConstructor(t,e,v,A),l(I.prototype,o),r.NEED=!0),p(I,e),S[e]=I,a(a.G+a.W+a.F,S),b||g.setStrong(I,e,v),I}},qsKc:function(e,t,o){"use strict";var s=o("P9l9"),a={name:"store-detail",components:{vueSelectStore:o("Ie7z").a},props:{storeInfo:{type:Object,default:function(){return{}}}},data:function(){return{areaChainName:"",location:"",areaOptions:{},imgs:[],uploadUrl:"/haoban-manage-web/upload-img",treeSet:{isSelectPerson:!1,dialogVisible:!1,isSingle:!0},selectType:"group"}},methods:{callSelector:function(){this.treeSet.dialogVisible=!0},handleSelectedList:function(e){this.storeInfo.departmentName=e[0].label,this.storeInfo.storeGroupId=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(){},deleteImage:function(){},save:function(){var e=this,t=e.location.split(",");e.storeInfo.longitude=t[0],e.storeInfo.latitude=2!==t.length?"":t[1],e.storeInfo.managerPhone=e.storeInfo.managerPhoneNumber,e.storeInfo.areaChainName=e.areaOptions.provinceName+"/"+e.areaOptions.cityName+"/"+e.areaOptions.countryName;var o=e.storeInfo,a=[];e.imgs.forEach(function(e){a.push(e.url)}),o.imageUrls=a.join(","),Object(s.a)("/haoban-manage-web/store/update",o).then(function(t){console.log(t,"eidt result"),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){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 o=[];this.imgs.forEach(function(e){o.push({url:e})}),this.imgs=o,this.location=e.longitude+","+e.latitude}},mounted:function(){this.formatStoreInfo(this.storeInfo)},watch:{$route:function(e){console.log(e,"to")}}},r={render:function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"store-info"},[o("div",{staticClass:"info-cell"},[o("p",{staticClass:"title"},[e._v("门店信息")]),e._v(" "),o("el-form",{staticClass:"store-info-form info-form",attrs:{"label-width":"90px"}},[o("el-form-item",{attrs:{label:"门店名称",prop:"name"}},[o("el-input",{model:{value:e.storeInfo.storeName,callback:function(t){e.$set(e.storeInfo,"storeName",t)},expression:"storeInfo.storeName"}},[o("template",{slot:"suffix"},[e._v(e._s(e.storeInfo.storeName?e.storeInfo.storeName.length:0)+"/20")])],2)],1),e._v(" "),o("el-form-item",{attrs:{label:"所属分组",prop:"departmentName"}},[o("el-input",{on:{focus:e.callSelector},model:{value:e.storeInfo.departmentName,callback:function(t){e.$set(e.storeInfo,"departmentName",t)},expression:"storeInfo.departmentName"}},[o("i",{staticClass:"el-input__icon el-icon-arrow-down",attrs:{slot:"suffix"},slot:"suffix"})])],1),e._v(" "),o("el-form-item",{attrs:{label:"门店图片(640*340)",prop:"imageUrls"}},[o("div",{staticClass:"member-upload-image"},[o("vue-office-upload-image",{attrs:{projectName:"haoban-manage-web",wxFlag:"0",actionUrl:e.uploadUrl,imageList:e.imgs,limitW:640,limitH:340,maxImageLength:5},on:{uploadOnSuccess:e.uploadOnSuccess,sortImg:e.sortImg,deleteImage:e.deleteImage}})],1)]),e._v(" "),o("el-form-item",{attrs:{label:"联系电话",prop:"phoneNumber"}},[o("el-input",{model:{value:e.storeInfo.phoneNumber,callback:function(t){e.$set(e.storeInfo,"phoneNumber",t)},expression:"storeInfo.phoneNumber"}})],1),e._v(" "),o("el-form-item",{attrs:{label:"营业时间",prop:"phoneNumber"}},[o("el-time-select",{attrs:{placeholder:"起始时间","picker-options":{start:"00:00",step:"00:05",end:"24:00"}},model:{value:e.storeInfo.openTime,callback:function(t){e.$set(e.storeInfo,"openTime",t)},expression:"storeInfo.openTime"}}),e._v("\n ~\n "),o("el-time-select",{attrs:{placeholder:"结束时间","picker-options":{start:"00:00",step:"00:05",end:"24:00",minTime:e.storeInfo.openTime}},model:{value:e.storeInfo.closeTime,callback:function(t){e.$set(e.storeInfo,"closeTime",t)},expression:"storeInfo.closeTime"}})],1),e._v(" "),o("el-form-item",{attrs:{label:"门店类型"}},[o("el-radio-group",{model:{value:e.storeInfo.storeType,callback:function(t){e.$set(e.storeInfo,"storeType",t)},expression:"storeInfo.storeType"}},[o("el-radio",{attrs:{label:0}},[e._v("自营")]),e._v(" "),o("el-radio",{attrs:{label:1}},[e._v("联营")]),e._v(" "),o("el-radio",{attrs:{label:2}},[e._v("代理")]),e._v(" "),o("el-radio",{attrs:{label:3}},[e._v("代销")]),e._v(" "),o("el-radio",{attrs:{label:4}},[e._v("托管")])],1)],1),e._v(" "),o("el-form-item",{attrs:{label:"门店地址"}},[o("vue-office-area",{attrs:{areaOptions:e.areaOptions,projectName:"haoban-web",postUrl:"/api-admin/dict-district-list"},on:{selected:e.selected}}),e._v(" "),o("el-input",{model:{value:e.storeInfo.postAddress,callback:function(t){e.$set(e.storeInfo,"postAddress",t)},expression:"storeInfo.postAddress"}},[o("template",{slot:"suffix"},[e._v(e._s((e.storeInfo.postAddress||"").length)+"/50")])],2)],1),e._v(" "),o("el-form-item",{attrs:{label:"GPS坐标"}},[o("el-input",{staticClass:"m-r-10",model:{value:e.location,callback:function(t){e.location=t},expression:"location"}}),e._v(" "),o("a",{staticClass:"a-href",attrs:{href:"http://m.gpsspg.com/maps.htm",target:"_blank"}},[e._v("经纬度测试工具")])],1),e._v(" "),o("el-form-item",[o("template",{slot:"label"},[e._v("\n 门店代码\n "),o("i",{staticClass:"el-icon-question",staticStyle:{color:"#C0C4CC"}})]),e._v(" "),o("el-input",{model:{value:e.storeInfo.storeCode,callback:function(t){e.$set(e.storeInfo,"storeCode",t)},expression:"storeInfo.storeCode"}},[o("template",{slot:"suffix"},[e._v(e._s((e.storeInfo.storeCode||"").length)+"/20")])],2)],2)],1)],1),e._v(" "),o("div",{staticClass:"info-cell"},[o("p",{staticClass:"title"},[e._v("店长信息")]),e._v(" "),o("el-form",{staticClass:"store-manager-info-form info-form",attrs:{"label-width":"90px"}},[o("el-form-item",{attrs:{label:"店长姓名",prop:"name"}},[o("el-input",{model:{value:e.storeInfo.managerName,callback:function(t){e.$set(e.storeInfo,"managerName",t)},expression:"storeInfo.managerName"}},[o("template",{slot:"suffix"},[e._v(e._s((e.storeInfo.managerName||"").length)+"/10")])],2)],1),e._v(" "),o("el-form-item",{attrs:{label:"手机号码",prop:"phone"}},[o("el-input",{attrs:{disabled:""},model:{value:e.storeInfo.managerPhoneNumber,callback:function(t){e.$set(e.storeInfo,"managerPhoneNumber",t)},expression:"storeInfo.managerPhoneNumber"}})],1),e._v(" "),o("el-form-item",{attrs:{label:"店长性别"}},[o("el-radio-group",{model:{value:e.storeInfo.managerSex,callback:function(t){e.$set(e.storeInfo,"managerSex",t)},expression:"storeInfo.managerSex"}},[o("el-radio",{attrs:{label:1}},[e._v("男")]),e._v(" "),o("el-radio",{attrs:{label:2}},[e._v("女")])],1)],1),e._v(" "),o("el-form-item",{attrs:{label:"店长代码"}},[o("el-input",{model:{value:e.storeInfo.managerCode,callback:function(t){e.$set(e.storeInfo,"managerCode",t)},expression:"storeInfo.managerCode"}},[o("template",{slot:"suffix"},[e._v(e._s((e.storeInfo.managerCode||"").length)+"/20")])],2)],1)],1)],1),e._v(" "),o("div",{staticClass:"info-cell"},[o("p",{staticClass:"title"},[e._v("经营信息")]),e._v(" "),o("el-form",{staticClass:"operate-info-form info-form",attrs:{"label-width":"90px"}},[o("el-form-item",{attrs:{label:"特色服务"}},[o("el-input",{attrs:{type:"textarea",rows:2},model:{value:e.storeInfo.specialService,callback:function(t){e.$set(e.storeInfo,"specialService",t)},expression:"storeInfo.specialService"}}),e._v(" "),o("p",{staticClass:"counter t-rt c-909399"},[e._v(e._s((e.storeInfo.specialService||"").length)+"/20")])],1),e._v(" "),o("el-form-item",{attrs:{label:"人均消费"}},[o("el-input",{model:{value:e.storeInfo.personCost,callback:function(t){e.$set(e.storeInfo,"personCost",t)},expression:"storeInfo.personCost"}},[o("template",{slot:"suffix"},[e._v(e._s((e.storeInfo.personCost+"").length)+"/10")])],2)],1),e._v(" "),o("el-form-item",{attrs:{label:"推荐商品"}},[o("el-input",{attrs:{type:"textarea",rows:2},model:{value:e.storeInfo.recommendGoods,callback:function(t){e.$set(e.storeInfo,"recommendGoods",t)},expression:"storeInfo.recommendGoods"}}),e._v(" "),o("p",{staticClass:"counter t-rt c-909399"},[e._v(e._s((e.storeInfo.recommendGoods||"").length)+"/100")])],1),e._v(" "),o("el-form-item",{attrs:{label:"品牌介绍"}},[o("el-input",{attrs:{type:"textarea",rows:2},model:{value:e.storeInfo.brandDes,callback:function(t){e.$set(e.storeInfo,"brandDes",t)},expression:"storeInfo.brandDes"}}),e._v(" "),o("p",{staticClass:"counter t-rt c-909399"},[e._v(e._s((e.storeInfo.recommendGoods||"").length)+"/200")])],1)],1)],1),e._v(" "),o("div",{staticClass:"handle-area"},[o("el-button",{attrs:{type:"primary"},on:{click:e.save}},[e._v("保 存")])],1),e._v(" "),o("vue-select-store",{ref:"storeSelector",attrs:{treeSet:e.treeSet,selectType:e.selectType,forbidenList:[e.storeInfo.storeGroupId]},on:{handleSelectedList:e.handleSelectedList}})],1)},staticRenderFns:[]};var n=o("VU/8")(a,r,!1,function(e){o("77K1")},null,null);t.a=n.exports},qyJz:function(e,t,o){"use strict";var s=o("+ZMJ"),a=o("kM2E"),r=o("sB3e"),n=o("msXi"),i=o("Mhyx"),l=o("QRG4"),c=o("fBQ2"),u=o("3fs2");a(a.S+a.F*!o("dY0y")(function(e){Array.from(e)}),"Array",{from:function(e){var t,o,a,d,p=r(e),h="function"==typeof this?this:Array,m=arguments.length,f=m>1?arguments[1]:void 0,g=void 0!==f,v=0,b=u(p);if(g&&(f=s(f,m>2?arguments[2]:void 0,2)),void 0==b||h==Array&&i(b))for(o=new h(t=l(p.length));t>v;v++)c(o,v,g?f(p[v],v):p[v]);else for(d=b.call(p),o=new h;!(a=d.next()).done;v++)c(o,v,g?n(d,f,[a.value,v],!0):a.value);return o.length=v,o}})},rMZo:function(e,t){},ttyz:function(e,t,o){"use strict";var s=o("9C8M"),a=o("LIJb");e.exports=o("qo66")("Set",function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},{add:function(e){return s.def(a(this,"Set"),e=0===e?0:e,e)}},s)},z6bE:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIgAAADACAYAAADfsStTAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyhpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTM4IDc5LjE1OTgyNCwgMjAxNi8wOS8xNC0wMTowOTowMSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTcgKE1hY2ludG9zaCkiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6RDQ3OUQzQzQ3MDcyMTFFOEFFNkNGOTVBQ0YzMkU3NTUiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6RDQ3OUQzQzU3MDcyMTFFOEFFNkNGOTVBQ0YzMkU3NTUiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDpENDc5RDNDMjcwNzIxMUU4QUU2Q0Y5NUFDRjMyRTc1NSIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDpENDc5RDNDMzcwNzIxMUU4QUU2Q0Y5NUFDRjMyRTc1NSIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/PqQQQ0IAAAx1SURBVHja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"}});
\ No newline at end of file
webpackJsonp([19],{"738z":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=i("3Xzz"),s=i("elmV"),o=i("P9l9"),n=i("O3H5"),l={name:"employee-io",components:{navCrumb:a.a,uploadExcelComponent:s.a,exportSet:n.a},data:function(){var t=window.location.origin;return-1!=t.indexOf("localhost")&&(t="http://www.gicdev.com"),{navpath:[{name:"首页",path:"/index"},{name:"企业通讯录",path:"/administrativeFrame"},{name:"在职员工",path:"employeeRecord"},{name:"导入员工档案",path:""}],windowH:window.screen.availHeight-180+"px",host:window.location.origin,type:"import",fileList:[],url:t+"/haoban-manage-web/record/record-template-file-upload",logList:[],loading:!0,pageSize:20,currentPage:1,total:0,tempList:[],dialogVisible:!1}},methods:{handleSizeChange:function(t){this.pageSize=t,this.getErrorNote()},handleCurrentChange:function(t){this.currentPage=t,this.getErrorNote()},resetList:function(t){this.fileList=[],"note"==t&&this.getErrorNote()},getErrorNote:function(){var t=this,e={departmentId:t.$route.query.departmentId,importCode:t.$route.query.importCode,pageNum:t.currentPage,pageSize:t.pageSize};Object(o.a)("/haoban-manage-web/record/find-error-log",e).then(function(e){1==e.data.errorCode?(t.total=e.data.result.totalCount,t.logList=e.data.result.result,t.formatData(e.data.result.template,e.data.result.page.result)):t.$message.error({message:e.data.message})}).catch(function(e){t.$message.error({message:e.message})})},formatData:function(t,e){var i=[];t.forEach(function(t){i.push({fieldCode:t.fieldCode,fieldName:t.fieldName})}),this.tempList=i,this.logList=e,this.loading=!1},beforeAvatarUpload:function(t){var e=t.type?t.type:t.raw.type,i="application/vnd.ms-excel"===e||"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"===e;return i||this.$message.error("文件格式必须为 xls 或 xlsx 格式!"),i},uploadSuccess:function(){this.fileList=[],this.type="note",this.getErrorNote()},submitUpload:function(t){this.$refs[t].submit()},getChange:function(t,e){var i=e.length-1<0?0:e.length-1,a=t.type?t.type:t.raw.type;if(!("application/vnd.ms-excel"===a||"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"===a))return this.$message.error("文件格式必须为 xls 或 xlsx 格式!"),this.fileList.splice(i,1),!1;this.fileList=[e[i]]},callExport:function(){this.dialogVisible=!0},cancelCho:function(){this.dialogVisible=!1}},beforeMount:function(){"note"==this.type&&this.getErrorNote(),this.$nextTick(function(){document.querySelector(".contact-wrap__body").style.overflow="hidden"})},beforeDestroy:function(){document.querySelector(".contact-wrap__body").style.overflow="auto"}},c={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"common-set-wrap record-io-wrap",style:{height:t.windowH}},[i("nav-crumb",{attrs:{navpath:t.navpath}}),t._v(" "),i("div",{staticClass:"right-content"},[i("div",{staticClass:"right-box"},[i("div",{staticClass:"io-container"},[t.dialogVisible?[i("export-set",{on:{cancelCho:t.cancelCho}})]:[t._m(0),t._v(" "),i("el-radio-group",{staticClass:"m-t-20",on:{change:t.resetList},model:{value:t.type,callback:function(e){t.type=e},expression:"type"}},[i("el-radio-button",{attrs:{label:"import"}},[t._v("导入员工档案")]),t._v(" "),i("el-radio-button",{attrs:{label:"export"}},[t._v("导出/修改员工档案")]),t._v(" "),i("el-radio-button",{attrs:{label:"note"}},[t._v("错误记录")])],1),t._v(" "),"import"==t.type?i("div",{staticClass:"handle-area import"},[i("div",{staticClass:"step-div",staticStyle:{"margin-bottom":"90px","line-height":"32px"}},[i("span",{staticClass:"ft-large"},[t._v("①")]),t._v("下载模板\n "),i("a",{staticClass:"d-u-btn",attrs:{href:t.host+"/haoban-manage-web/record/export-record-template.json"}},[i("el-button",{attrs:{type:"primary"}},[t._v("下载"),i("i",{staticClass:"iconfont icon-icon_yunxiazai m-l-5"})])],1)]),t._v(" "),i("div",{staticClass:"step-div"},[i("span",{staticClass:"ft-large"},[t._v("②")]),t._v("上传员工档案\n "),i("div",{staticClass:"d-u-btn"},[i("el-upload",{ref:"upload",staticClass:"upload-demo",attrs:{action:t.url,multiple:!1,"file-list":t.fileList,"auto-upload":!1,"before-upload":t.beforeAvatarUpload,"on-success":t.uploadSuccess,"on-change":t.getChange}},[i("el-button",{attrs:{slot:"trigger",size:"small",type:"primary"},slot:"trigger"},[t._v("选取文件")]),t._v(" "),i("div",{staticClass:"el-upload__tip",attrs:{slot:"tip"},slot:"tip"},[t._v("文件格式必须为xls或xlsx格式")])],1)],1)]),t._v(" "),i("div",{staticClass:"up-btn-div"},[i("el-button",{attrs:{type:"primary",disabled:0==t.fileList.length},on:{click:function(e){t.submitUpload("upload")}}},[t._v("上传")])],1)]):"export"==t.type?i("div",{staticClass:"handle-area import"},[i("div",{staticClass:"step-div",staticStyle:{"margin-bottom":"90px","line-height":"32px"}},[i("span",{staticClass:"ft-large"},[t._v("①")]),t._v("导出员工档案\n "),i("a",{staticClass:"d-u-btn"},[i("el-button",{attrs:{type:"primary"},on:{click:t.callExport}},[t._v("下载"),i("i",{staticClass:"iconfont icon-icon_yunxiazai m-l-5"})])],1)]),t._v(" "),i("div",{staticClass:"step-div"},[i("span",{staticClass:"ft-large"},[t._v("②")]),t._v("上传更新后的员工档案\n "),i("div",{staticClass:"d-u-btn"},[i("el-upload",{ref:"uploadEdit",staticClass:"upload-demo",attrs:{action:t.url,multiple:!1,"file-list":t.fileList,"auto-upload":!1,"on-success":t.uploadSuccess,"on-change":t.getChange}},[i("el-button",{attrs:{slot:"trigger",size:"small",type:"primary"},slot:"trigger"},[t._v("选取文件")]),t._v(" "),i("div",{staticClass:"el-upload__tip",attrs:{slot:"tip"},slot:"tip"},[t._v("文件格式必须为xls或xlsx格式")])],1)],1)]),t._v(" "),i("div",{staticClass:"up-btn-div"},[i("el-button",{attrs:{type:"primary",disabled:0==t.fileList.length},on:{click:function(e){t.submitUpload("uploadEdit")}}},[t._v("上传")])],1)]):i("div",{staticClass:"error-log import"},[i("div",{staticClass:"title-area"},[t._m(1),t._v(" "),i("a",{attrs:{href:t.host+"/haoban-manage-web/record/error-log-export?importCode="+t.$route.query.importCode}},[i("el-button",{attrs:{type:"primary"}},[t._v("导出错误记录")])],1)]),t._v(" "),i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"m-t-20",staticStyle:{width:"100%"},attrs:{data:t.logList,height:"400"}},[i("el-table-column",{attrs:{type:"index",width:"50",label:"序号"}}),t._v(" "),i("el-table-column",{attrs:{width:"200",prop:"fieldValue",label:"字段值"}}),t._v(" "),i("el-table-column",{attrs:{width:"200",prop:"fieldName",label:"字段名"}}),t._v(" "),i("el-table-column",{attrs:{width:"200",prop:"failReason",label:"错误原因"}}),t._v(" "),t._l(t.tempList,function(t){return[i("el-table-column",{key:t.fieldCode,attrs:{width:"200",label:t.fieldName,prop:t.fieldCode}})]})],2),t._v(" "),t.logList.length?i("el-pagination",{staticClass:"pagination",attrs:{background:"","page-sizes":[20,40,60,80],"page-size":t.pageSize,"current-page":t.currentPage,layout:"total, sizes, prev, pager, next",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}}):t._e()],1)]],2)])]),t._v(" "),i("vue-gic-footer")],1)},staticRenderFns:[function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("ul",{staticClass:"tip-area"},[i("li",{staticClass:"tip"},[t._v("\n 姓名必须和好办企业通讯录中的员工姓名保持一致,手机号必须为员工注册好办的手机号\n ")]),t._v(" "),i("li",{staticClass:"tip"},[t._v("\n 员工档案导入时,直接以手机号去做匹配,通讯录中不存在的将无法导入(模板中配置的部门、职位、code,这些字段信息请保持与企业通讯录中一致,这几个字段的信息将不会修改通讯录的信息,直接取该成员对应的通讯录的字段信息)\n ")]),t._v(" "),i("li",{staticClass:"tip"},[t._v("如果想要新增字段,可在后台档案设置中增加,再导入模板")]),t._v(" "),i("li",{staticClass:"tip"},[t._v("字段类型为图片上传、多选的字段无法导入、导出")]),t._v(" "),i("li",{staticClass:"tip"},[t._v("确保导入的表头字段和后台配置表头字段的名称一致(模板下载时间不可修改)")]),t._v(" "),i("li",{staticClass:"tip"},[t._v("\n 由于数据量可能较大,每次最多导入2000条员工档案,若超过只取前2000条,可以分多次导入\n ")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"tip"},[this._v("导入总条数:0条,成功导入0条,"),e("span",{staticClass:"red"},[this._v("错误导入0条")])])}]};var r=i("VU/8")(l,c,!1,function(t){i("Gjtd")},null,null);e.default=r.exports},Gjtd:function(t,e){},O3H5:function(t,e,i){"use strict";var a=i("mvHQ"),s=i.n(a),o=i("P9l9"),n=i("DAYN"),l={name:"export-set",components:{draggable:i.n(n).a},data:function(){return{tempList:[],checkList:[],origin:[],checkAll:!1,isIndeterminate:!1,checkedList:[]}},methods:{deleteField:function(t){this.checkedList.splice(t,1);var e=this.checkedList.map(function(t){return t.fieldCode});this.origin.forEach(function(t,i){e.includes(t.fieldCode)?t.checked=!0:t.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(t){var e=this;t.checked?e.checkedList.push(t):e.checkedList.forEach(function(i,a){i.fieldCode===t.fieldCode&&e.checkedList.splice(a,1)}),e.checkHalf()},handleCheckAllChange:function(t){this.checkedList=[],this.origin.forEach(function(e,i){e.checked=t,t&&(e.order=i+1)}),t&&(this.checkedList=this.origin.slice(0)),this.checkHalf()},getTemplate:function(){var t=this;Object(o.a)("/haoban-manage-web/record/employee-find-template",{}).then(function(e){1==e.data.errorCode?t.formatTemplateList(e.data.result):t.$message.error({message:e.data.message})}).catch(function(e){t.$message.error({message:e.message})})},formatTemplateList:function(t){var e=[],i=[],a=t;t.forEach(function(t){t.title=t.fieldName,t.name=t.fieldName,t.checked=!1;var i=[];a.forEach(function(e){e.parentCode==t.fieldCode&&i.push(e)}),i.sort(function(t,e){return 1*t.sort-1*e.sort}),i.length>0&&(t.childrens=i),0==t.parentCode&&e.push(t)}),e.sort(function(t,e){return 1*t.sort-1*e.sort}),e.forEach(function(t){i=i.concat(t.childrens)}),this.origin=i,this.tempList=e},cancelCho:function(){this.origin.forEach(function(t){t.checked=!1}),this.$emit("cancelCho")},exportCho:function(){var t=[];this.checkedList.forEach(function(e){e.checked&&t.push({fieldCode:e.fieldCode,fieldName:e.fieldName})});s()(t);var e=window.location.origin;-1!=e.indexOf("localhost")&&(e="http://www.gicdev.com"),location.href=e+"/haoban-manage-web/record/define-export?exportTitleContent="+s()(t),this.$emit("cancelCho")}},beforeMount:function(){this.getTemplate()}},c={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"export-set-container"},[t._m(0),t._v(" "),i("div",{staticClass:"cho-list"},[i("draggable",{model:{value:t.checkedList,callback:function(e){t.checkedList=e},expression:"checkedList"}},[t._l(t.checkedList,function(e,a){return[e.checked?i("div",{key:e.fieldCode+a,staticClass:"cho"},[t._v(t._s(e.fieldName)+" "),i("i",{staticClass:"el-icon-circle-close",on:{click:function(e){t.deleteField(a)}}})]):t._e()]})],2)],1),t._v(" "),i("div",{staticClass:"cho-area"},[i("div",{staticClass:"title"},[t._v("选择需要导出的字段")]),t._v(" "),i("div",{staticClass:"cho-area-group"},[i("div",{staticClass:"group-div"},[i("div",{staticClass:"group-title"}),t._v(" "),i("ul",{staticClass:"group-son-list"},[i("el-checkbox",{attrs:{indeterminate:t.isIndeterminate},on:{change:t.handleCheckAllChange},model:{value:t.checkAll,callback:function(e){t.checkAll=e},expression:"checkAll"}},[t._v("全选")])],1)]),t._v(" "),t._l(t.tempList,function(e,a){return i("div",{key:e.fieldCode+a,staticClass:"group-div"},[i("div",{staticClass:"group-title"},[t._v(t._s(e.title))]),t._v(" "),i("ul",{staticClass:"group-son-list"},[t._l(t.origin,function(a){return[a.parentCode==e.fieldCode?i("li",{key:a.fieldCode},[i("el-checkbox",{key:a.fieldCode,attrs:{label:a.fieldName},on:{change:function(e){t.checkThis(a)}},model:{value:a.checked,callback:function(e){t.$set(a,"checked",e)},expression:"items.checked"}},[t._v(t._s(a.fieldName))])],1):t._e()]})],2)])})],2)]),t._v(" "),i("div",{staticClass:"handle-cho-btn"},[i("el-button",{staticClass:"export-btn",attrs:{type:"primary",disabled:t.checkedList.length<1},on:{click:t.exportCho}},[t._v("导出"),i("i",{staticClass:"iconfont icon-icon_yunxiazai"})]),t._v(" "),i("el-button",{on:{click:t.cancelCho}},[t._v("取消")])],1)])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"title"},[this._v("已选择字段"),e("span",[this._v("导出的列表中将按顺序显示这些字段(可拖拽排序)")])])}]};var r=i("VU/8")(l,c,!1,function(t){i("wEsK")},null,null);e.a=r.exports},wEsK:function(t,e){}}); webpackJsonp([20],{"738z":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=i("3Xzz"),s=i("elmV"),o=i("P9l9"),n=i("O3H5"),l={name:"employee-io",components:{navCrumb:a.a,uploadExcelComponent:s.a,exportSet:n.a},data:function(){var t=window.location.origin;return-1!=t.indexOf("localhost")&&(t="http://www.gicdev.com"),{navpath:[{name:"首页",path:"/index"},{name:"企业通讯录",path:"/administrativeFrame"},{name:"在职员工",path:"employeeRecord"},{name:"导入员工档案",path:""}],windowH:window.screen.availHeight-180+"px",host:window.location.origin,type:"import",fileList:[],url:t+"/haoban-manage-web/record/record-template-file-upload",logList:[],loading:!0,pageSize:20,currentPage:1,total:0,tempList:[],dialogVisible:!1}},methods:{handleSizeChange:function(t){this.pageSize=t,this.getErrorNote()},handleCurrentChange:function(t){this.currentPage=t,this.getErrorNote()},resetList:function(t){this.fileList=[],"note"==t&&this.getErrorNote()},getErrorNote:function(){var t=this,e={departmentId:t.$route.query.departmentId,importCode:t.$route.query.importCode,pageNum:t.currentPage,pageSize:t.pageSize};Object(o.a)("/haoban-manage-web/record/find-error-log",e).then(function(e){1==e.data.errorCode?(t.total=e.data.result.totalCount,t.logList=e.data.result.result,t.formatData(e.data.result.template,e.data.result.page.result)):t.$message.error({message:e.data.message})}).catch(function(e){t.$message.error({message:e.message})})},formatData:function(t,e){var i=[];t.forEach(function(t){i.push({fieldCode:t.fieldCode,fieldName:t.fieldName})}),this.tempList=i,this.logList=e,this.loading=!1},beforeAvatarUpload:function(t){var e=t.type?t.type:t.raw.type,i="application/vnd.ms-excel"===e||"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"===e;return i||this.$message.error("文件格式必须为 xls 或 xlsx 格式!"),i},uploadSuccess:function(){this.fileList=[],this.type="note",this.getErrorNote()},submitUpload:function(t){this.$refs[t].submit()},getChange:function(t,e){var i=e.length-1<0?0:e.length-1,a=t.type?t.type:t.raw.type;if(!("application/vnd.ms-excel"===a||"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"===a))return this.$message.error("文件格式必须为 xls 或 xlsx 格式!"),this.fileList.splice(i,1),!1;this.fileList=[e[i]]},callExport:function(){this.dialogVisible=!0},cancelCho:function(){this.dialogVisible=!1}},beforeMount:function(){"note"==this.type&&this.getErrorNote(),this.$nextTick(function(){document.querySelector(".contact-wrap__body").style.overflow="hidden"})},beforeDestroy:function(){document.querySelector(".contact-wrap__body").style.overflow="auto"}},c={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"common-set-wrap record-io-wrap",style:{height:t.windowH}},[i("nav-crumb",{attrs:{navpath:t.navpath}}),t._v(" "),i("div",{staticClass:"right-content"},[i("div",{staticClass:"right-box"},[i("div",{staticClass:"io-container"},[t.dialogVisible?[i("export-set",{on:{cancelCho:t.cancelCho}})]:[t._m(0),t._v(" "),i("el-radio-group",{staticClass:"m-t-20",on:{change:t.resetList},model:{value:t.type,callback:function(e){t.type=e},expression:"type"}},[i("el-radio-button",{attrs:{label:"import"}},[t._v("导入员工档案")]),t._v(" "),i("el-radio-button",{attrs:{label:"export"}},[t._v("导出/修改员工档案")]),t._v(" "),i("el-radio-button",{attrs:{label:"note"}},[t._v("错误记录")])],1),t._v(" "),"import"==t.type?i("div",{staticClass:"handle-area import"},[i("div",{staticClass:"step-div",staticStyle:{"margin-bottom":"90px","line-height":"32px"}},[i("span",{staticClass:"ft-large"},[t._v("①")]),t._v("下载模板\n "),i("a",{staticClass:"d-u-btn",attrs:{href:t.host+"/haoban-manage-web/record/export-record-template.json"}},[i("el-button",{attrs:{type:"primary"}},[t._v("下载"),i("i",{staticClass:"iconfont icon-icon_yunxiazai m-l-5"})])],1)]),t._v(" "),i("div",{staticClass:"step-div"},[i("span",{staticClass:"ft-large"},[t._v("②")]),t._v("上传员工档案\n "),i("div",{staticClass:"d-u-btn"},[i("el-upload",{ref:"upload",staticClass:"upload-demo",attrs:{action:t.url,multiple:!1,"file-list":t.fileList,"auto-upload":!1,"before-upload":t.beforeAvatarUpload,"on-success":t.uploadSuccess,"on-change":t.getChange}},[i("el-button",{attrs:{slot:"trigger",size:"small",type:"primary"},slot:"trigger"},[t._v("选取文件")]),t._v(" "),i("div",{staticClass:"el-upload__tip",attrs:{slot:"tip"},slot:"tip"},[t._v("文件格式必须为xls或xlsx格式")])],1)],1)]),t._v(" "),i("div",{staticClass:"up-btn-div"},[i("el-button",{attrs:{type:"primary",disabled:0==t.fileList.length},on:{click:function(e){t.submitUpload("upload")}}},[t._v("上传")])],1)]):"export"==t.type?i("div",{staticClass:"handle-area import"},[i("div",{staticClass:"step-div",staticStyle:{"margin-bottom":"90px","line-height":"32px"}},[i("span",{staticClass:"ft-large"},[t._v("①")]),t._v("导出员工档案\n "),i("a",{staticClass:"d-u-btn"},[i("el-button",{attrs:{type:"primary"},on:{click:t.callExport}},[t._v("下载"),i("i",{staticClass:"iconfont icon-icon_yunxiazai m-l-5"})])],1)]),t._v(" "),i("div",{staticClass:"step-div"},[i("span",{staticClass:"ft-large"},[t._v("②")]),t._v("上传更新后的员工档案\n "),i("div",{staticClass:"d-u-btn"},[i("el-upload",{ref:"uploadEdit",staticClass:"upload-demo",attrs:{action:t.url,multiple:!1,"file-list":t.fileList,"auto-upload":!1,"on-success":t.uploadSuccess,"on-change":t.getChange}},[i("el-button",{attrs:{slot:"trigger",size:"small",type:"primary"},slot:"trigger"},[t._v("选取文件")]),t._v(" "),i("div",{staticClass:"el-upload__tip",attrs:{slot:"tip"},slot:"tip"},[t._v("文件格式必须为xls或xlsx格式")])],1)],1)]),t._v(" "),i("div",{staticClass:"up-btn-div"},[i("el-button",{attrs:{type:"primary",disabled:0==t.fileList.length},on:{click:function(e){t.submitUpload("uploadEdit")}}},[t._v("上传")])],1)]):i("div",{staticClass:"error-log import"},[i("div",{staticClass:"title-area"},[t._m(1),t._v(" "),i("a",{attrs:{href:t.host+"/haoban-manage-web/record/error-log-export?importCode="+t.$route.query.importCode}},[i("el-button",{attrs:{type:"primary"}},[t._v("导出错误记录")])],1)]),t._v(" "),i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"m-t-20",staticStyle:{width:"100%"},attrs:{data:t.logList,height:"400"}},[i("el-table-column",{attrs:{type:"index",width:"50",label:"序号"}}),t._v(" "),i("el-table-column",{attrs:{width:"200",prop:"fieldValue",label:"字段值"}}),t._v(" "),i("el-table-column",{attrs:{width:"200",prop:"fieldName",label:"字段名"}}),t._v(" "),i("el-table-column",{attrs:{width:"200",prop:"failReason",label:"错误原因"}}),t._v(" "),t._l(t.tempList,function(t){return[i("el-table-column",{key:t.fieldCode,attrs:{width:"200",label:t.fieldName,prop:t.fieldCode}})]})],2),t._v(" "),t.logList.length?i("el-pagination",{staticClass:"pagination",attrs:{background:"","page-sizes":[20,40,60,80],"page-size":t.pageSize,"current-page":t.currentPage,layout:"total, sizes, prev, pager, next",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}}):t._e()],1)]],2)])]),t._v(" "),i("vue-gic-footer")],1)},staticRenderFns:[function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("ul",{staticClass:"tip-area"},[i("li",{staticClass:"tip"},[t._v("\n 姓名必须和好办企业通讯录中的员工姓名保持一致,手机号必须为员工注册好办的手机号\n ")]),t._v(" "),i("li",{staticClass:"tip"},[t._v("\n 员工档案导入时,直接以手机号去做匹配,通讯录中不存在的将无法导入(模板中配置的部门、职位、code,这些字段信息请保持与企业通讯录中一致,这几个字段的信息将不会修改通讯录的信息,直接取该成员对应的通讯录的字段信息)\n ")]),t._v(" "),i("li",{staticClass:"tip"},[t._v("如果想要新增字段,可在后台档案设置中增加,再导入模板")]),t._v(" "),i("li",{staticClass:"tip"},[t._v("字段类型为图片上传、多选的字段无法导入、导出")]),t._v(" "),i("li",{staticClass:"tip"},[t._v("确保导入的表头字段和后台配置表头字段的名称一致(模板下载时间不可修改)")]),t._v(" "),i("li",{staticClass:"tip"},[t._v("\n 由于数据量可能较大,每次最多导入2000条员工档案,若超过只取前2000条,可以分多次导入\n ")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"tip"},[this._v("导入总条数:0条,成功导入0条,"),e("span",{staticClass:"red"},[this._v("错误导入0条")])])}]};var r=i("VU/8")(l,c,!1,function(t){i("gj9O")},null,null);e.default=r.exports},O3H5:function(t,e,i){"use strict";var a=i("mvHQ"),s=i.n(a),o=i("P9l9"),n=i("DAYN"),l={name:"export-set",components:{draggable:i.n(n).a},data:function(){return{tempList:[],checkList:[],origin:[],checkAll:!1,isIndeterminate:!1,checkedList:[]}},methods:{deleteField:function(t){this.checkedList.splice(t,1);var e=this.checkedList.map(function(t){return t.fieldCode});this.origin.forEach(function(t,i){e.includes(t.fieldCode)?t.checked=!0:t.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(t){var e=this;t.checked?e.checkedList.push(t):e.checkedList.forEach(function(i,a){i.fieldCode===t.fieldCode&&e.checkedList.splice(a,1)}),e.checkHalf()},handleCheckAllChange:function(t){this.checkedList=[],this.origin.forEach(function(e,i){e.checked=t,t&&(e.order=i+1)}),t&&(this.checkedList=this.origin.slice(0)),this.checkHalf()},getTemplate:function(){var t=this;Object(o.a)("/haoban-manage-web/record/employee-find-template",{}).then(function(e){1==e.data.errorCode?t.formatTemplateList(e.data.result):t.$message.error({message:e.data.message})}).catch(function(e){t.$message.error({message:e.message})})},formatTemplateList:function(t){var e=[],i=[],a=t;t.forEach(function(t){t.title=t.fieldName,t.name=t.fieldName,t.checked=!1;var i=[];a.forEach(function(e){e.parentCode==t.fieldCode&&i.push(e)}),i.sort(function(t,e){return 1*t.sort-1*e.sort}),i.length>0&&(t.childrens=i),0==t.parentCode&&e.push(t)}),e.sort(function(t,e){return 1*t.sort-1*e.sort}),e.forEach(function(t){i=i.concat(t.childrens)}),this.origin=i,this.tempList=e},cancelCho:function(){this.origin.forEach(function(t){t.checked=!1}),this.$emit("cancelCho")},exportCho:function(){var t=[];this.checkedList.forEach(function(e){e.checked&&t.push({fieldCode:e.fieldCode,fieldName:e.fieldName})});s()(t);var e=window.location.origin;-1!=e.indexOf("localhost")&&(e="http://www.gicdev.com"),location.href=e+"/haoban-manage-web/record/define-export?exportTitleContent="+s()(t),this.$emit("cancelCho")}},beforeMount:function(){this.getTemplate()}},c={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"export-set-container"},[t._m(0),t._v(" "),i("div",{staticClass:"cho-list"},[i("draggable",{model:{value:t.checkedList,callback:function(e){t.checkedList=e},expression:"checkedList"}},[t._l(t.checkedList,function(e,a){return[e.checked?i("div",{key:e.fieldCode+a,staticClass:"cho"},[t._v(t._s(e.fieldName)+" "),i("i",{staticClass:"el-icon-circle-close",on:{click:function(e){t.deleteField(a)}}})]):t._e()]})],2)],1),t._v(" "),i("div",{staticClass:"cho-area"},[i("div",{staticClass:"title"},[t._v("选择需要导出的字段")]),t._v(" "),i("div",{staticClass:"cho-area-group"},[i("div",{staticClass:"group-div"},[i("div",{staticClass:"group-title"}),t._v(" "),i("ul",{staticClass:"group-son-list"},[i("el-checkbox",{attrs:{indeterminate:t.isIndeterminate},on:{change:t.handleCheckAllChange},model:{value:t.checkAll,callback:function(e){t.checkAll=e},expression:"checkAll"}},[t._v("全选")])],1)]),t._v(" "),t._l(t.tempList,function(e,a){return i("div",{key:e.fieldCode+a,staticClass:"group-div"},[i("div",{staticClass:"group-title"},[t._v(t._s(e.title))]),t._v(" "),i("ul",{staticClass:"group-son-list"},[t._l(t.origin,function(a){return[a.parentCode==e.fieldCode?i("li",{key:a.fieldCode},[i("el-checkbox",{key:a.fieldCode,attrs:{label:a.fieldName},on:{change:function(e){t.checkThis(a)}},model:{value:a.checked,callback:function(e){t.$set(a,"checked",e)},expression:"items.checked"}},[t._v(t._s(a.fieldName))])],1):t._e()]})],2)])})],2)]),t._v(" "),i("div",{staticClass:"handle-cho-btn"},[i("el-button",{staticClass:"export-btn",attrs:{type:"primary",disabled:t.checkedList.length<1},on:{click:t.exportCho}},[t._v("导出"),i("i",{staticClass:"iconfont icon-icon_yunxiazai"})]),t._v(" "),i("el-button",{on:{click:t.cancelCho}},[t._v("取消")])],1)])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"title"},[this._v("已选择字段"),e("span",[this._v("导出的列表中将按顺序显示这些字段(可拖拽排序)")])])}]};var r=i("VU/8")(l,c,!1,function(t){i("wEsK")},null,null);e.a=r.exports},gj9O:function(t,e){},wEsK:function(t,e){}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([3],{"/Gg9":function(e,t){},"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}},"5jqJ":function(e,t){},"7Doy":function(e,t,n){var a=n("EqjI"),s=n("7UMu"),i=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[i])&&(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"),i=n("xH/j"),o=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 i(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,i=a.p;delete n._i[a.i],a.r=!0,i&&(i.n=s),s&&(s.p=i),n._f==a&&(n._f=s),n._l==a&&(n._l=i),n[m]--}return!!a},forEach:function(e){f(this,t);for(var n,a=o(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,i=v(e,t);return i?i.v=n:(e._l=i={i:s=p(t,!0),k:t,v:n,p:a=e._l,n:void 0,r:!1},e._f||(e._f=i),a&&(a.n=i),e[m]++,"F"!==s&&(e._i[s]=i)),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"),i=n("sB3e"),o=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=i(t),_=s(g),y=a(r,f,3),b=o(_.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").classList.remove("is-current"),this.$emit("handleTreeSelection",e,t,"node")},selectEmployee:function(e){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")})}}},i={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:"姓名/手机号/部门名称",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("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,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(" "),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,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._v(" "),e.departmentList.length<1&&e.employeeList.length<1?n("p",{staticClass:"no-data-tip"},[e._v("暂无数据")]):e._e()]],2):e._e()])},staticRenderFns:[]};var o=n("VU/8")(s,i,!1,function(e){n("/Gg9")},null,null);t.a=o.exports},BDhv:function(e,t,n){var a=n("kM2E");a(a.P+a.R,"Set",{toJSON:n("m9gC")("Set")})},HpRW:function(e,t,n){"use strict";var a=n("kM2E"),s=n("lOnJ"),i=n("+ZMJ"),o=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=i(l,arguments[2],2),o(e,!1,function(e){n.push(r(e,a++))})):o(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}},UuMA:function(e,t){},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),i=n("3Xzz"),o=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-440-180}},methods:{selectMember:function(e){this.$emit("selectMember",e)},linkToDetail:function(e){window.location.href="#/employee?employeeClerkId="+e.employeeClerkId}}},c={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"employee-table"},[n("el-table",{attrs:{height:e.employeeList.length?e.tableH:"auto",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:"手机号",prop:"phoneNumber"}}):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",staticStyle:{color:"#409eff"}})])]}}])}):e._e()]})],2)],1)},staticRenderFns:[]};var u=n("VU/8")(l,c,!1,function(e){n("5jqJ")},null,null).exports,d=n("P9l9"),h={name:"administrativeEstrutura",components:{navCrumb:i.a,searchMenu:o.a,employeeInfo:r.a,employeeList:u},data:function(){return{navpath:[{name:"首页",path:"/index"},{name:"企业通讯录",path:"/administrativeFrame"},{name:"行政架构",path:""}],showChildMember:!1,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:{handleSizeChange:function(e){this.pageSize=e,this.getEmployee()},handleCurrentChange:function(e){this.currentPage=e,this.getEmployee()},addSon:function(){location.href="#/addDepartment?type=group&addnew=1&departmentId="+this.groupInfo.departmentId},goToEdit:function(e){var t=0==e?"company":"group";location.href="#/addDepartment?departmentId="+this.groupInfo.departmentId+"&type="+t},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,i=new s.a(n),o=new s.a(a);e.employeeList=n.concat(a).filter(function(e){return!i.has(e)||!o.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),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"},[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",{attrs:{href:"#/employee?addnew=1&departmentId="+e.groupInfo.departmentId}},[n("el-button",{attrs:{type:"primary"}},[e._v("添加成员")])],1),e._v(" "),n("a",{attrs:{href:"#/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("UuMA")},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"),i=n("06OY"),o=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&&!o(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),i.NEED=!0),h(b,e),I[e]=b,s(s.G+s.W+s.F,I),_||v.setStrong(b,e,g),b}},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([3],{"/Gg9":function(e,t){},"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"),i=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[i])&&(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"),i=n("xH/j"),o=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 i(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,i=a.p;delete n._i[a.i],a.r=!0,i&&(i.n=s),s&&(s.p=i),n._f==a&&(n._f=s),n._l==a&&(n._l=i),n[m]--}return!!a},forEach:function(e){f(this,t);for(var n,a=o(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,i=v(e,t);return i?i.v=n:(e._l=i={i:s=p(t,!0),k:t,v:n,p:a=e._l,n:void 0,r:!1},e._f||(e._f=i),a&&(a.n=i),e[m]++,"F"!==s&&(e._i[s]=i)),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"),i=n("sB3e"),o=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=i(t),_=s(g),y=a(r,f,3),b=o(_.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").classList.remove("is-current"),this.$emit("handleTreeSelection",e,t,"node")},selectEmployee:function(e){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")})}}},i={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:"姓名/手机号/部门名称",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("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,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(" "),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,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._v(" "),e.departmentList.length<1&&e.employeeList.length<1?n("p",{staticClass:"no-data-tip"},[e._v("暂无数据")]):e._e()]],2):e._e()])},staticRenderFns:[]};var o=n("VU/8")(s,i,!1,function(e){n("/Gg9")},null,null);t.a=o.exports},BDhv:function(e,t,n){var a=n("kM2E");a(a.P+a.R,"Set",{toJSON:n("m9gC")("Set")})},HpRW:function(e,t,n){"use strict";var a=n("kM2E"),s=n("lOnJ"),i=n("+ZMJ"),o=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=i(l,arguments[2],2),o(e,!1,function(e){n.push(r(e,a++))})):o(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}},QCs0:function(e,t){},UuMA:function(e,t){},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),i=n("3Xzz"),o=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){window.location.href="#/employee?employeeClerkId="+e.employeeClerkId}}},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:"手机号",prop:"phoneNumber"}}):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",staticStyle:{color:"#409eff"}})])]}}])}):e._e()]})],2)],1)},staticRenderFns:[]};var u=n("VU/8")(l,c,!1,function(e){n("QCs0")},null,null).exports,d=n("P9l9"),h={name:"administrativeEstrutura",components:{navCrumb:i.a,searchMenu:o.a,employeeInfo:r.a,employeeList:u},data:function(){return{navpath:[{name:"首页",path:"/index"},{name:"企业通讯录",path:"/administrativeFrame"},{name:"行政架构",path:""}],showChildMember:!1,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:{handleSizeChange:function(e){this.pageSize=e,this.getEmployee()},handleCurrentChange:function(e){this.currentPage=e,this.getEmployee()},addSon:function(){location.href="#/addDepartment?type=group&addnew=1&departmentId="+this.groupInfo.departmentId},goToEdit:function(e){var t=0==e?"company":"group";location.href="#/addDepartment?departmentId="+this.groupInfo.departmentId+"&type="+t},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,i=new s.a(n),o=new s.a(a);e.employeeList=n.concat(a).filter(function(e){return!i.has(e)||!o.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),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"},[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",{attrs:{href:"#/employee?addnew=1&departmentId="+e.groupInfo.departmentId}},[n("el-button",{attrs:{type:"primary"}},[e._v("添加成员")])],1),e._v(" "),n("a",{attrs:{href:"#/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("UuMA")},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"),i=n("06OY"),o=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&&!o(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),i.NEED=!0),h(b,e),I[e]=b,s(s.G+s.W+s.F,I),_||v.setStrong(b,e,g),b}},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,38,40,53,59,62],{"5zde":function(t,e,i){i("zQR9"),i("qyJz"),t.exports=i("FeBl").Array.from},"79Bk":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a={name:"date-range-com",props:{childItem:{type:[Object,Array],default:function(){return{}}}}},s={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",[i("div",[i("div",{class:["opencard-item-title",t.childItem.startTitle.length>=6?"title-pre-wrap":""]},[t._v(t._s(t.childItem.startTitle))]),t._v(" "),i("div",{staticClass:"draged-item-show"},[i("span",{staticClass:"show-warm-text show-warm-text-flag select-flag"},[t._v(t._s(t.childItem.placeholder)+" "+t._s(t.childItem.isMust?"(必填)":"")),i("i",{staticClass:"el-icon-arrow-right"})])])]),t._v(" "),i("div",{staticClass:"b-t-1"},[i("div",{class:["opencard-item-title",t.childItem.endTitle.length>=6?"title-pre-wrap":""]},[t._v(t._s(t.childItem.endTitle))]),t._v(" "),i("div",{staticClass:"draged-item-show"},[i("span",{staticClass:"show-warm-text show-warm-text-flag select-flag"},[t._v(t._s(t.childItem.placeholder)+" "+t._s(t.childItem.isMust?"(必填)":"")+" "),i("i",{staticClass:"el-icon-arrow-right"})])])])])},staticRenderFns:[]};var l=i("VU/8")(a,s,!1,function(t){i("bu1e")},"data-v-7138ecea",null);e.default=l.exports},Gu7T:function(t,e,i){"use strict";e.__esModule=!0;var a,s=i("c/Tr"),l=(a=s)&&a.__esModule?a:{default:a};e.default=function(t){if(Array.isArray(t)){for(var e=0,i=Array(t.length);e<t.length;e++)i[e]=t[e];return i}return(0,l.default)(t)}},H8Kg:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a={name:"image-com",props:{childItem:{type:[Object,Array],default:function(){return{}}}}},s={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"image-com"},[i("div",{class:["opencard-item-title",t.childItem.title.length>=6?"title-pre-wrap":""]},[t._v(t._s(t.childItem.title))]),t._v(" "),i("div",{staticClass:"must"},[t._v(t._s(t.childItem.isMust?"(必填)":""))]),t._v(" "),t._m(0)])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"draged-item-show"},[e("span",{staticClass:"show-warm-text show-warm-text-flag select-flag"},[e("i",{staticClass:"iconfont icon-icon"})])])}]};var l=i("VU/8")(a,s,!1,function(t){i("kYZD")},"data-v-3f8afc82",null);e.default=l.exports},IA9l:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=i("//Fk"),s=i.n(a),l=i("Gu7T"),n=i.n(l),c=i("gBtx"),r=i.n(c),o=i("mvHQ"),d=i.n(o),m=i("DAYN"),p=i.n(m),u=i("Isrn"),v=i("l46T"),h=i("H8Kg"),f=i("t0b0"),_=i("79Bk"),g=i("s4D+"),y=i("PAYw"),C=i("fPyK"),b=i("3E4D"),I=i("Ch4/"),x=i("PI0u"),k=i("P9l9"),w={name:"customSetTemplate",data:function(){return{activeName:"first",rightName:"second",dialogVisible:!1,bodyHeight:(document.documentElement.clientHeight||document.body.clientHeight)+"px",isDragging:!1,delayedDragging:!1,leftOption:{group:{name:"people",pull:"clone",put:!1},sort:!1,disabled:!1},leftDefineOption:{group:{name:"people",pull:"clone",put:!1},sort:!1,disabled:!1},templateId:"",oparateType:"",counter:1,selectKey:"",tradeInfo:[],personInfo:[],goodsInfo:[],competeInfo:[],defineInfo:[],currentIndex:0,currentChildKey:null,currentChildIndex:null,childIndex:0,tempaletDataList:[],setList:[],templateObj:{title:"",description:"",storeType:"",momory:[]},storeList:[{id:"0",name:"直营门店",disabled:!1},{id:"1",name:"联营门店",disabled:!1},{id:"2",name:"代理门店",disabled:!1},{id:"3",name:"代销门店",disabled:!1},{id:"4",name:"托管门店",disabled:!1}]}},methods:{returnBack:function(){this.changeRoute("/customReport?brandId="+this.brandId)},cloneItem:function(t){var e=JSON.parse(d()(t));return e.cid="c"+this.counter,e.systemFlag||(e.name.includes("textc")&&(e.name="textc"+this.counter,e.title=""+e.title+this.counter),e.name.includes("paragraphc")&&(e.name="paragraphc"+this.counter,e.title=""+e.title+this.counter),e.name.includes("numberc")&&(e.name="numberc"+this.counter,e.title=""+e.title+this.counter),e.name.includes("checkboxesOrRadioc")&&(e.name="checkboxesOrRadioc"+this.counter,e.title=""+e.title+this.counter),e.name.includes("datec")&&(e.name="datec"+this.counter,e.title=""+e.title+this.counter),e.name.includes("dateareac")&&(e.name="dateareac"+this.counter,e.title=""+e.title+this.counter),e.name.includes("picc")&&(e.name="picc"+this.counter,e.title=""+e.title+this.counter),e.name.includes("introductionc")&&(e.name="introductionc"+this.counter,e.title=""+e.title+this.counter),e.name.includes("pricec")&&(e.name="pricec"+this.counter,e.title=""+e.title+this.counter),e.name.includes("groupc")&&(e.name="groupc"+this.counter,e.title=""+e.title+this.counter)),e},onMove:function(t){var e=t.draggedContext.element;return!this.tempaletDataList.map(function(t){return t.name}).includes(e.name)&&!e.fixed},onChildMove:function(t){var e=!0;return-1!=t.dragged.className.indexOf("block-class")&&-1!=t.to.className.indexOf("block-wrap")&&(e=!1),e},itemMoveEnd:function(t){var e=this;function i(t){e[t].forEach(function(t,i){t.name==e.selectKey&&(t.fixed=!0)})}e.isDragging=!1,e.selectKey="",e.selectKey=t.clone.dataset.name,e.tempaletDataList.forEach(function(t,a){t.name==e.selectKey&&i(t.parentCode),t.children&&t.children.forEach(function(t,a){t.name==e.selectKey&&i(t.parentCode)})}),e.selectKey="",e.tempaletDataList=JSON.parse(d()(e.tempaletDataList)),e.$forceUpdate(),e.counter=e.counter+1},selectItem:function(t,e){this.currentIndex=e,this.currentChildIndex=null},deleteItem:function(t,e,i,a){var s=this;if(s.tempaletDataList.splice(i,1),s.currentIndex--,s.currentIndex<=0&&(s.currentIndex=0),!a.systemFlag)return a.name.includes("groupc")&&a.children.length&&a.children.forEach(function(t){t.systemFlag&&s[t.parentCode].forEach(function(e){e.name==t.name&&(e.fixed=!1)})}),!1;s[e].forEach(function(e,i){e.name==t&&(e.fixed=!1)})},addDragItem:function(t){return!1},selectChildItem:function(t,e,i,a){this.currentIndex=null,this.currentChildKey=t,this.childIndex=e,this.currentChildIndex=i},deleteChildItem:function(t,e,i,a,s){if(this.childIndex=e,this.currentIndex=null,this.currentChildKey=this.tempaletDataList[e].children[i].name,this.currentChildIndex--,this.currentChildIndex<=0&&(this.currentChildIndex=0),this.tempaletDataList=JSON.parse(d()(this.tempaletDataList)),this.tempaletDataList[e].children.splice(i,1),!s.systemFlag)return!1;this[s.parentCode].forEach(function(e,i){e.name===t&&(e.fixed=!1)})},delChildItem:function(t,e,i){i.list.splice(e,1)},addChildItem:function(t,e,i){if(19!=e){i.list.push({value:"选项"+(e+2),key:e+2});var a=i.list.map(function(t){return t.value});this.isRepeat(a)&&(i.list.splice(i.list.length-1,1),a.splice(i.list.length-1,1),this.$message.error({duration:1e3,message:"选项不能重复"}))}else this.$message.error({duration:1e3,message:"最多可添加 20 项"})},changeMust:function(t,e,i){e&&i.list.forEach(function(e){e.isMust=!!t})},isRepeat:function(t){var e={};for(var i in t){if(e[t[i]])return!0;e[t[i]]=!0}return!1},changeRoute:function(t){this.$router.push(t)},checkTag:function(t){var e={filedFlag:!0,filedRepeat:!1},i=[];return t.forEach(function(t){if(""==t.title)return e.filedFlag=!1,e.name=t.title||"",!1;i.push(t.title),t.hasOwnProperty("children")&&t.children.length&&t.children.forEach(function(t){if(t.systemFlag&&""==t.title)return e.filedFlag=!1,e.name=t.title||"",!1;i.push(t.title)})}),this.isRepeat(i)&&(e.filedRepeat=!0),e},checkTemplateObj:function(){var t=!0;return this.templateObj.title&&this.templateObj.description&&this.templateObj.storeType||(t=!1),t},getUuid:function(){return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,function(t){var e=16*Math.random()|0;return("x"==t?e:3&e|8).toString(16)})},saveAndBack:Object(x.a)(function(t){if(!this.checkTemplateObj())return this.$message.error({duration:1e3,message:"请完善模板设置内容"}),!1;var e=JSON.parse(d()(this.tempaletDataList)),i=this.checkTag(e);if(!i.filedFlag)return this.$message.error({duration:1e3,message:i.name+"字段标题不能为空"}),!1;if(i.filedRepeat)this.$message.error({duration:1e3,message:"字段标题不能重复"});else{if(e.forEach(function(t,e){t.sort=e,t.isMust=t.isMust?1:0,t.memory=t.memory?1:0,t.hasOwnProperty("openCapitalize")&&(t.openCapitalize=t.openCapitalize?1:0),t.hasOwnProperty("list")&&t.list.forEach(function(t){t.isMust=t.isMust?1:0}),t.hasOwnProperty("children")&&(t.children.forEach(function(t,e){t.sort=e,t.isMust=t.isMust?1:0,t.memory=t.memory?1:0,t.hasOwnProperty("list")&&t.list.forEach(function(t){t.isMust=t.isMust?1:0}),t.hasOwnProperty("openCapitalize")&&(t.openCapitalize=t.openCapitalize?1:0)}),t.list=t.children)}),!e.length)return this.$message.error({duration:1e3,message:"请先配置字段"}),!1;"save"===t?this.saveAllData(e):this.postPreview(e)}},500),saveAllData:function(t){var e=this,i={status:1,brandId:e.brandId,templateContent:d()(t),title:e.templateObj.title,description:e.templateObj.description,storeType:e.templateObj.storeType,memory:[]};Object(k.c)("/haoban-app-daily-web/daily/save-define-template",i).then(function(t){var i=t.data;if(1==i.errorCode)return b.a.showmsg("保存成功","success"),void e.changeRoute("/customReport?brandId="+e.brandId);I.a.errorMsg(i)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},postPreview:function(t){var e=this,i={templateType:2,brandId:e.brandId,templateContent:d()(t)};Object(k.c)("/haoban-app-daily-web/daily/preview-template",i).then(function(t){var i=t.data;if(1==i.errorCode){var a=JSON.parse(localStorage.getItem("userInfo")).enterpriseId,s=window.location.origin+"/office-mobile/#/defineTemplate?enterpriseId="+a+"&templateId="+i.result+"&brandId="+e.brandId;return e.$refs.qrcodePreview.qrcode(s,"daily-preview"),void(e.dialogVisible=!0)}I.a.errorMsg(i)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},closeDialog:function(){this.dialogVisible=!1},getHasStores:function(){var t=this;Object(k.c)("/haoban-app-daily-web/daily/has-defined-template-store-type",{brandId:t.brandId}).then(function(e){var i=e.data;1!=i.errorCode?I.a.errorMsg(i):t.storeList.forEach(function(e){i.result&&i.result.length&&i.result.includes(r()(e.id))&&(e.disabled=!0),"edit"==t.oparateType&&t.storeType==e.id&&(e.disabled=!1)})}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},getAllFields:function(t){var e=this;Object(k.c)("/haoban-app-daily-web/daily/get-template-items",{brandId:e.brandId,type:t}).then(function(i){var a=i.data;if(1==a.errorCode)return a.result.forEach(function(e){e.isMust=!!e.isMust,e.memory=!!e.memory,e.title=e.title.trim(),e.hasOwnProperty("openCapitalize")&&(e.openCapitalize=!!e.openCapitalize),e.hasOwnProperty("list")&&e.list&&e.list.length&&e.list.forEach(function(t){t.isMust=!!t.isMust}),e.systemFlag=3!=t,e.name.includes("groupc")&&(e.children=[])}),void(3==t?e.defineInfo=a.result:e.handleAllFields(a.result));I.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},handleAllFields:function(t){var e=this;t.forEach(function(t){t.fixed=!1,1==t.classify&&(t.parentCode="tradeInfo",e.tradeInfo.push(t)),2==t.classify&&(t.parentCode="personInfo",e.personInfo.push(t)),3==t.classify&&(t.parentCode="goodsInfo",e.goodsInfo.push(t)),4==t.classify&&(t.parentCode="competeInfo",e.competeInfo.push(t))})},getInfo:function(){var t=this;Object(k.c)("/haoban-app-daily-web/daily/get-define-template",{templateId:t.templateId}).then(function(e){var i=e.data;if(1==i.errorCode)return t.setList=[],i.result&&(t.templateObj.title=i.result.title,t.templateObj.description=i.result.description,t.storeType="edit"==t.oparateType?String(i.result.storeType):"",t.templateObj.storeType="edit"==t.oparateType?String(i.result.storeType):"",i.result.templateContent&&i.result.templateContent.length&&t.handleGetInfo(i.result.templateContent)),void t.getHasStores();I.a.errorMsg(i)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},treeData:function(t){var e=t.filter(function(e){var i=t.filter(function(t){return e.fieldCode==t.parentCode});return i.length>0&&(e.children=i),0==e.parentCode});return e.sort(function(t,e){return t.sort-e.sort}),e.forEach(function(t,e){t.children.sort(function(t,e){return t.sort-e.sort})}),e},handleGetInfo:function(t){var e=this,i=JSON.parse(d()(t));e.cids=[],e.setParent=[],i.forEach(function(t,i){t.title=t.title.trim(),t.isMust=!!t.isMust,t.memory=!!t.memory,t.name.includes("textc")||t.name.includes("paragraphc")||t.name.includes("numberc")||t.name.includes("checkboxesOrRadioc")||t.name.includes("datec")||t.name.includes("dateareac")||t.name.includes("picc")||t.name.includes("introductionc")||t.name.includes("pricec")||t.name.includes("groupc")?(t.systemFlag=!1,t.parentCode="defineInfo"):(e.setParent.push(t.name),t.systemFlag=!0,1==t.classify&&(t.parentCode="tradeInfo"),2==t.classify&&(t.parentCode="personInfo"),3==t.classify&&(t.parentCode="goodsInfo"),4==t.classify&&(t.parentCode="competeInfo")),t.hasOwnProperty("openCapitalize")&&(t.openCapitalize=!!t.openCapitalize),t.hasOwnProperty("list")&&t.list&&t.list.length&&(t.list.forEach(function(i){(i.isMust=!!i.isMust,t.name.includes("groupc"))&&(i.isMust=!!i.isMust,i.memory=!!i.memory,i.name.includes("textc")||i.name.includes("paragraphc")||i.name.includes("numberc")||i.name.includes("checkboxesOrRadioc")||i.name.includes("datec")||i.name.includes("dateareac")||i.name.includes("picc")||i.name.includes("introductionc")||i.name.includes("pricec")||i.name.includes("groupc")?i.systemFlag=!1:(e.setParent.push(i.name),i.systemFlag=!0,1==i.classify&&(i.parentCode="tradeInfo"),2==i.classify&&(i.parentCode="personInfo"),3==i.classify&&(i.parentCode="goodsInfo"),4==i.classify&&(i.parentCode="competeInfo")))}),t.name.includes("groupc")&&(t.children=t.list)),e.cids.push(r()(t.cid.match(/\d+/g))),t.hasOwnProperty("children")&&t.children.forEach(function(t){t.isMust=!!t.isMust,t.memory=!!t.memory,e.cids.push(r()(t.cid.match(/\d+/g)))})}),e.counter=Math.max.apply(Math,n()(e.cids)),e.tempaletDataList=i,setTimeout(function(){e.setFixed()},500)},setFixed:function(){var t=this;["tradeInfo","personInfo","goodsInfo","competeInfo"].forEach(function(e){t[e].forEach(function(e){t.setParent.includes(e.name)&&(e.fixed=!0)})})}},watch:{isDragging:function(t){var e=this;t?e.delayedDragging=!0:e.$nextTick(function(){e.delayedDragging=!1})}},components:{draggable:p.a,AddInput:u.a,limitInput:v.a,imageCom:h.default,selectCom:f.default,dateRangeCom:_.default,inputCom:g.default,blockCom:y.default,qrcodeDialog:C.a},mounted:function(){var t=this,e=t.$route.query;t.brandId=t.$route.query.brandId,s.a.all([t.getAllFields(2)]).then(function(i){t.getAllFields(3),e.hasOwnProperty("templateId")?(t.templateId=e.templateId,t.oparateType=e.type,t.getInfo()):t.getHasStores()}).catch(function(t){console.log(t)}),document.body.ondrop=function(t){t.preventDefault(),t.stopPropagation()}}},T={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"template-wrap",style:{height:t.bodyHeight}},[a("div",{staticClass:"template-contain"},[a("div",{staticClass:"template-head"},[t._m(0),t._v(" "),a("div",{staticClass:"template-btns flex-1 flex-r"},[a("el-button",{attrs:{type:"primary",plain:""},on:{click:function(e){t.saveAndBack("preview")}}},[t._v("预 览")]),t._v(" "),a("el-button",{attrs:{type:"primary",plain:""},on:{click:t.returnBack}},[t._v("返 回")]),t._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(e){t.saveAndBack("save")}}},[t._v("保存并启用")])],1)]),t._v(" "),a("div",{staticClass:"template-body"},[a("div",{staticClass:"template-cell template-cell-l"},[a("el-tabs",{model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},[a("el-tab-pane",{attrs:{label:"系统字段",name:"first"}},[a("div",{staticClass:"filed-item-title"},[t._v("交易")]),t._v(" "),a("ul",[a("draggable",{staticClass:"compenent",attrs:{id:"list1",list:t.tradeInfo,options:t.leftOption,clone:t.cloneItem,move:t.onMove},on:{start:function(e){t.isDragging=!0},end:t.itemMoveEnd}},t._l(t.tradeInfo,function(e,i){return a("li",{key:i,class:["compenent-item",1==e.fixed?"fixed-item":""],attrs:{"data-name":e.name,"aria-hidden":"true"}},[a("span",[t._v(t._s(e.title))])])}))],1),t._v(" "),a("div",{staticClass:"filed-item-title"},[t._v("人员")]),t._v(" "),a("ul",[a("draggable",{staticClass:"compenent",attrs:{id:"list2",list:t.personInfo,options:t.leftOption,clone:t.cloneItem,move:t.onMove},on:{start:function(e){t.isDragging=!0},end:t.itemMoveEnd}},t._l(t.personInfo,function(e,i){return a("li",{key:i,class:["compenent-item",1==e.fixed?"fixed-item":""],attrs:{"data-name":e.name}},[a("span",[t._v(t._s(e.title))])])}))],1),t._v(" "),a("div",{staticClass:"filed-item-title"},[t._v("商品")]),t._v(" "),a("ul",[a("draggable",{staticClass:"compenent",attrs:{id:"list3",list:t.goodsInfo,options:t.leftOption,clone:t.cloneItem,move:t.onMove},on:{start:function(e){t.isDragging=!0},end:t.itemMoveEnd}},t._l(t.goodsInfo,function(e,i){return a("li",{key:i,class:["compenent-item",1==e.fixed?"fixed-item":""],attrs:{"data-name":e.name}},[a("span",[t._v(t._s(e.title))])])}))],1),t._v(" "),a("div",{staticClass:"filed-item-title"},[t._v("竞品")]),t._v(" "),a("ul",[a("draggable",{staticClass:"compenent",attrs:{id:"list4",list:t.competeInfo,options:t.leftOption,clone:t.cloneItem,move:t.onMove},on:{start:function(e){t.isDragging=!0},end:t.itemMoveEnd}},t._l(t.competeInfo,function(e,i){return a("li",{key:i,class:["compenent-item",1==e.fixed?"fixed-item":""],attrs:{"data-name":e.name}},[a("span",[t._v(t._s(e.title))])])}))],1)]),t._v(" "),a("el-tab-pane",{attrs:{label:"自定义字段",name:"second"}},[a("div",{staticClass:"filed-item-title"}),t._v(" "),a("ul",[a("draggable",{staticClass:"compenent",attrs:{id:"list5",list:t.defineInfo,options:t.leftDefineOption,clone:t.cloneItem,move:t.onChildMove},on:{start:function(e){t.isDragging=!0},end:t.itemMoveEnd}},t._l(t.defineInfo,function(e,i){return a("li",{key:i,class:["compenent-item",1==e.fixed?"fixed-item":"",11==e.type?"block-class":""],attrs:{"data-type":e.fieldCode}},[0==e.type?a("span",[t._v(t._s(e.title))]):t._e(),t._v(" "),1==e.type?a("span",[t._v(t._s(e.title))]):t._e(),t._v(" "),2==e.type?a("span",[t._v(t._s(e.title))]):t._e(),t._v(" "),3==e.type?a("span",[t._v(t._s(e.title))]):t._e(),t._v(" "),4==e.type?a("span",[t._v(t._s(e.title))]):t._e(),t._v(" "),5==e.type?a("span",[t._v(t._s(e.title))]):t._e(),t._v(" "),6==e.type?a("span",[t._v(t._s(e.title))]):t._e(),t._v(" "),7==e.type?a("span",[t._v(t._s(e.title))]):t._e(),t._v(" "),9==e.type?a("span",[t._v(t._s(e.title))]):t._e(),t._v(" "),10==e.type?a("span",[t._v(t._s(e.title))]):t._e(),t._v(" "),11==e.type?a("span",[t._v(t._s(e.title))]):t._e(),t._v(" "),0==e.type?a("i",{staticClass:"bg-icon bg-icon-one"}):t._e(),t._v(" "),1==e.type?a("i",{staticClass:"bg-icon bg-icon-two"}):t._e(),t._v(" "),2==e.type?a("i",{staticClass:"bg-icon bg-icon-three"}):t._e(),t._v(" "),3==e.type?a("i",{staticClass:"bg-icon bg-icon-four"}):t._e(),t._v(" "),4==e.type?a("i",{staticClass:"bg-icon bg-icon-five"}):t._e(),t._v(" "),5==e.type?a("i",{staticClass:"bg-icon bg-icon-six"}):t._e(),t._v(" "),6==e.type?a("i",{staticClass:"bg-icon bg-icon-seven"}):t._e(),t._v(" "),7==e.type?a("i",{staticClass:"bg-icon bg-icon-eight"}):t._e()])}))],1)])],1)],1),t._v(" "),a("div",{staticClass:"template-cell template-cell-m"},[a("div",{staticClass:"phone-view"},[a("div",{staticClass:"phone-show-content"},[a("div",{staticClass:"drag-show-content"},[a("div",{staticClass:"view-container"},[a("ul",{staticClass:"view-content",attrs:{id:"showPhoneView"}},[0==t.tempaletDataList.length?[a("img",{staticClass:"templet-null-img",attrs:{src:i("Y7wY")}})]:t._e(),t._v(" "),a("draggable",{staticClass:"drag-wrap",attrs:{options:{group:{name:"people",pull:!1,put:!0},sort:!0}},model:{value:t.tempaletDataList,callback:function(e){t.tempaletDataList=e},expression:"tempaletDataList"}},t._l(t.tempaletDataList,function(e,i){return a("li",{key:"li1"+i,class:["filed-item",t.currentIndex==i?"active-item":"","li-block"],on:{click:function(a){t.selectItem(e.fieldCode,i)}}},["baseInfo"!=e.fieldCode?a("span",{staticClass:"item-close p-item-close",on:{click:function(a){a.stopPropagation(),t.deleteItem(e.name,e.parentCode,i,e)}}},[a("i",{staticClass:"el-icon-close"})]):t._e(),t._v(" "),e.systemFlag||!e.name.includes("groupc")?a("div",[1==e.type||2==e.type||3==e.type||10==e.type||9==e.type?a("input-com",{attrs:{childItem:e}}):t._e(),t._v(" "),4==e.type||5==e.type?a("select-com",{attrs:{childItem:e}}):t._e(),t._v(" "),6==e.type?a("date-range-com",{attrs:{childItem:e}}):t._e(),t._v(" "),7==e.type?a("image-com",{attrs:{childItem:e}}):t._e(),t._v(" "),"11"==e.type?a("block-com",{attrs:{childItem:e}}):t._e()],1):t._e(),t._v(" "),[e.name.includes("groupc")?a("div",{staticClass:"block"},[a("div",{staticClass:"block-head"},[a("div",{class:["opencard-item-title",e.title.length>=6?"title-pre-wrap":""]},[t._v(t._s(e.title))])]),t._v(" "),a("ul",{staticClass:"view-content"},[a("draggable",{class:["drag-wrap","block-wrap",e.fieldCode],attrs:{options:{group:{name:"people",pull:!1,put:!0},sort:!0}},on:{add:t.addDragItem},model:{value:e.children,callback:function(i){t.$set(e,"children",i)},expression:"item.children"}},t._l(e.children,function(s,l){return a("li",{key:"li"+l,class:["filed-item","child-filed-item",t.currentChildKey==s.name&&t.currentChildIndex==l?"active-item":""],on:{click:function(a){a.stopPropagation(),t.selectChildItem(s.name,i,l,e.children)}}},[a("span",{staticClass:"item-close child-item-close",on:{click:function(a){a.stopPropagation(),t.deleteChildItem(s.name,i,l,e.children,s)}}},[a("i",{staticClass:"el-icon-close"})]),t._v(" "),4==s.type||5==s.type?a("select-com",{attrs:{childItem:s}}):t._e(),t._v(" "),6==s.type?a("date-range-com",{attrs:{childItem:s}}):t._e(),t._v(" "),7==s.type?a("image-com",{attrs:{childItem:s}}):t._e(),t._v(" "),1==s.type||2==s.type||3==s.type||10==s.type||9==s.type?a("input-com",{attrs:{childItem:s}}):t._e(),t._v(" "),"11"==s.type&&s.systemFlag?a("block-com",{attrs:{childItem:s}}):t._e()],1)}))],1)]):t._e()]],2)}))],2)])])])])]),t._v(" "),a("div",{staticClass:"template-cell template-cell-r"},[a("el-tabs",{model:{value:t.rightName,callback:function(e){t.rightName=e},expression:"rightName"}},[a("el-tab-pane",{attrs:{label:"控件设置",name:"first"}},[a("div",{attrs:{id:"edit-box"}},[a("div",{staticClass:"edit-view baby-info-flag baby-info"},[t._l(t.tempaletDataList,function(e,i){return[t.currentIndex!=i||e.systemFlag||6==e.type?t._e():[a("div",{key:"child"+i,staticClass:"edit-item test-title limit-w-340"},[a("div",{staticClass:"edit-item-title"},[t._v("标题")]),t._v(" "),a("limitInput",{attrs:{inputWidth:340,limitClass:"limit-color",inputValue:e.title,holder:"",disflag:e.systemFlag,getByType:"char",maxLength:10},on:{"update:inputValue":function(i){t.$set(e,"title",i)}}}),t._v(" "),7==e.type?a("p",{staticStyle:{"margin-top":"8px","font-size":"12px",color:"rgba(255, 255, 255, 0.7)"}},[t._v("\n 图片最多可添加9张\n ")]):t._e()],1)],t._v(" "),t.currentIndex!=i||e.systemFlag||6!=e.type?t._e():[a("div",{key:"child62"+i,staticClass:"edit-item test-title limit-w-340"},[a("div",{staticClass:"edit-item-title"},[t._v("标题 最多10个字")]),t._v(" "),a("limitInput",{attrs:{inputWidth:340,limitClass:"limit-color",inputValue:e.startTitle,holder:"",disflag:e.systemFlag,getByType:"char",maxLength:10},on:{"update:inputValue":function(i){t.$set(e,"startTitle",i)}}})],1),t._v(" "),a("div",{key:"child64"+i,staticClass:"edit-item test-title limit-w-340"},[a("div",{staticClass:"edit-item-title"},[t._v("标题2 最多10个字")]),t._v(" "),a("limitInput",{attrs:{inputWidth:340,limitClass:"limit-color",inputValue:e.endTitle,holder:"",disflag:e.systemFlag,getByType:"char",maxLength:10},on:{"update:inputValue":function(i){t.$set(e,"endTitle",i)}}})],1)],t._v(" "),t.currentIndex!=i||e.systemFlag||11==e.type||5==e.type||7==e.type?t._e():[a("div",{key:"child1"+i,staticClass:"edit-item test-title limit-w-340"},[a("div",{staticClass:"edit-item-title"},[t._v("提示文字最多20个字")]),t._v(" "),a("limitInput",{attrs:{inputWidth:340,limitClass:"limit-color",inputValue:e.placeholder,holder:"",disflag:!1,getByType:"char",maxLength:20},on:{"update:inputValue":function(i){t.$set(e,"placeholder",i)}}}),t._v(" "),2==e.type||9==e.type?a("p",{staticClass:"font-12 m-t-10"},[t._v("内容最多输入500个字")]):t._e(),t._v(" "),1==e.type?a("p",{staticClass:"font-12 m-t-10"},[t._v("内容最多输入100个字")]):t._e()],1)],t._v(" "),t.currentIndex!=i||e.systemFlag||3!=e.type?t._e():[a("div",{key:"child11"+i,staticClass:"edit-item test-title limit-w-340"},[a("div",{staticClass:"edit-item-title"},[t._v("单位最多20个字")]),t._v(" "),a("limitInput",{attrs:{inputWidth:340,limitClass:"limit-color",inputValue:e.placeholder,holder:"",disflag:!1,getByType:"char",maxLength:20},on:{"update:inputValue":function(i){t.$set(e,"placeholder",i)}}}),t._v(" "),a("p",{staticClass:"font-12 m-t-10"},[t._v("内容最大限制为12位数")])],1)],t._v(" "),t.currentIndex!=i||e.systemFlag||"4"!=e.type?t._e():[a("div",{key:"child111"+i,staticClass:"edit-item "},[a("div",{staticClass:"edit-item-title"},[t._v("选项 "),e.systemFlag?t._e():a("span",[t._v("最多20项,每项最多10个字")])]),t._v(" "),t._l(e.list,function(s,l){return[a("div",{key:"child10"+l,staticClass:"margin-t-15 limit-w-340",style:0==l?"margin-top: 0":""},[a("limitInput",{attrs:{inputWidth:340,limitClass:"limit-color",inputValue:s.value,holder:"",disflag:e.systemFlag,getByType:"char",maxLength:10},on:{"update:inputValue":function(e){t.$set(s,"value",e)}}}),t._v(" "),!e.systemFlag&&e.list.length>1?a("i",{staticClass:"opt-btn el-icon-remove del-item",on:{click:function(a){t.delChildItem(i,l,e)}}}):t._e(),t._v(" "),!e.systemFlag&&l<19?[l==e.list.length-1?a("i",{staticClass:"opt-btn el-icon-circle-plus add-item",on:{click:function(a){t.addChildItem(i,l,e)}}}):t._e()]:t._e()],2)]})],2),t._v(" "),a("div",{key:"parent22"+i,staticClass:"edit-item m-b-10"},[a("div",{staticClass:"edit-item-title edit-title-padding"},[t._v("选择框类型")]),t._v(" "),a("div",[a("el-radio",{attrs:{label:0},model:{value:e.chooseType,callback:function(i){t.$set(e,"chooseType",i)},expression:"item.chooseType"}},[t._v("单选")]),t._v(" "),a("el-radio",{attrs:{label:1},model:{value:e.chooseType,callback:function(i){t.$set(e,"chooseType",i)},expression:"item.chooseType"}},[t._v("多选")])],1)])],t._v(" "),t.currentIndex!=i||e.systemFlag||5!=e.type&&6!=e.type?t._e():[a("div",{key:"child117"+i,staticClass:"edit-item "},[a("div",{staticClass:"edit-item-title"},[t._v("日期类型")]),t._v(" "),a("el-radio",{attrs:{label:1},model:{value:e.dateType,callback:function(i){t.$set(e,"dateType",i)},expression:"item.dateType"}},[t._v("\n 年-月-日 时 分\n ")]),t._v(" "),a("el-radio",{attrs:{label:0},model:{value:e.dateType,callback:function(i){t.$set(e,"dateType",i)},expression:"item.dateType"}},[t._v("\n 年-月-日\n ")])],1)],t._v(" "),t.currentIndex!=i||e.systemFlag||10!=e.type?t._e():[a("div",{key:"parent210"+i,staticClass:"edit-item m-b-10"},[a("div",{staticClass:"edit-item-title edit-title-padding"},[t._v("大写")]),t._v(" "),a("el-checkbox",{model:{value:e.openCapitalize,callback:function(i){t.$set(e,"openCapitalize",i)},expression:"item.openCapitalize"}},[t._v("显示大写")])],1)],t._v(" "),t.currentIndex!=i||e.name.includes("groupc")?t._e():[a("div",{key:"parent2"+i,staticClass:"edit-item m-b-10"},[a("div",{staticClass:"edit-item-title edit-title-padding"},[t._v("验证")]),t._v(" "),a("el-checkbox",{on:{change:function(i){t.changeMust(i,!!e.list,e)}},model:{value:e.isMust,callback:function(i){t.$set(e,"isMust",i)},expression:"item.isMust"}},[t._v("必填")])],1)],t._v(" "),t.currentIndex!=i||"performanceKing"!=e.name&&"competitorInfo"!=e.name?t._e():[a("div",{key:"parent21"+i,staticClass:"edit-item m-b-10"},[a("div",{staticClass:"edit-item-title edit-title-padding"},[t._v("验证 是否必填")]),t._v(" "),a("div",{staticClass:"must-list"},t._l(e.list,function(e,i){return a("div",{key:"list"+i,staticClass:"must-list-cell m-b-10"},[a("el-checkbox",{model:{value:e.isMust,callback:function(i){t.$set(e,"isMust",i)},expression:"listItem.isMust"}},[t._v(t._s(e.title))])],1)}))])],t._v(" "),t.currentIndex!=i||e.name.includes("groupc")?t._e():[a("div",{key:"parent3"+i,staticClass:"edit-item "},[a("div",{staticClass:"edit-item-title edit-title-padding"},[t._v("记忆")]),t._v(" "),a("el-checkbox",{model:{value:e.memory,callback:function(i){t.$set(e,"memory",i)},expression:"item.memory"}},[t._v("是否记忆")])],1)],t._v(" "),t.childIndex==i&&e.children&&e.children.length?[t._l(e.children,function(e,s){return[t.currentChildIndex!=s||e.systemFlag||6==e.type?t._e():[a("div",{key:"child"+s,staticClass:"edit-item test-title limit-w-340"},[a("div",{staticClass:"edit-item-title"},[t._v("标题")]),t._v(" "),a("limitInput",{attrs:{inputWidth:340,limitClass:"limit-color",inputValue:e.title,holder:"",disflag:e.systemFlag,getByType:"word",maxLength:10},on:{"update:inputValue":function(i){t.$set(e,"title",i)}}}),t._v(" "),7==e.type?a("p",{staticStyle:{"margin-top":"8px","font-size":"12px",color:"rgba(255, 255, 255, 0.7)"}},[t._v("\n 图片最多可添加9张\n ")]):t._e()],1)],t._v(" "),t.currentChildIndex!=s||e.systemFlag||6!=e.type?t._e():[a("div",{key:"child2"+s,staticClass:"edit-item test-title limit-w-340"},[a("div",{staticClass:"edit-item-title"},[t._v("标题 最多10个字")]),t._v(" "),a("limitInput",{attrs:{inputWidth:340,limitClass:"limit-color",inputValue:e.startTitle,holder:"",disflag:e.systemFlag,getByType:"char",maxLength:10},on:{"update:inputValue":function(i){t.$set(e,"startTitle",i)}}})],1),t._v(" "),a("div",{key:"child4"+s,staticClass:"edit-item test-title limit-w-340"},[a("div",{staticClass:"edit-item-title"},[t._v("标题2 最多10个字")]),t._v(" "),a("limitInput",{attrs:{inputWidth:340,limitClass:"limit-color",inputValue:e.endTitle,holder:"",disflag:e.systemFlag,getByType:"char",maxLength:10},on:{"update:inputValue":function(i){t.$set(e,"endTitle",i)}}})],1)],t._v(" "),t.currentChildIndex!=s||e.systemFlag||5==e.type||7==e.type?t._e():[a("div",{key:"child1"+s,staticClass:"edit-item test-title limit-w-340"},[a("div",{staticClass:"edit-item-title"},[t._v("提示文字最多20个字")]),t._v(" "),a("limitInput",{attrs:{inputWidth:340,limitClass:"limit-color",inputValue:e.placeholder,holder:"",disflag:!1,getByType:"word",maxLength:20},on:{"update:inputValue":function(i){t.$set(e,"placeholder",i)}}}),t._v(" "),2==e.type||9==e.type?a("p",{staticClass:"font-12 m-t-10"},[t._v("内容最多输入500个字")]):t._e(),t._v(" "),1==e.type?a("p",{staticClass:"font-12 m-t-10"},[t._v("内容最多输入100个字")]):t._e()],1)],t._v(" "),t.currentChildIndex!=s||e.systemFlag||3!=e.type?t._e():[a("div",{key:"child6"+s,staticClass:"edit-item test-title limit-w-340"},[a("div",{staticClass:"edit-item-title"},[t._v("单位最多20个字")]),t._v(" "),a("limitInput",{attrs:{inputWidth:340,limitClass:"limit-color",inputValue:e.unit,holder:"",disflag:!1,getByType:"word",maxLength:20},on:{"update:inputValue":function(i){t.$set(e,"unit",i)}}}),t._v(" "),a("p",{staticClass:"font-12 m-t-10"},[t._v("内容最大限制为12位数")])],1)],t._v(" "),t.currentChildIndex!=s||e.systemFlag||5!=e.type&&6!=e.type?t._e():[a("div",{key:"child7"+s,staticClass:"edit-item "},[a("div",{staticClass:"edit-item-title"},[t._v("日期类型")]),t._v(" "),a("el-radio",{attrs:{label:1},model:{value:e.dateType,callback:function(i){t.$set(e,"dateType",i)},expression:"childItem.dateType"}},[t._v("\n 年-月-日 时 分\n ")]),t._v(" "),a("el-radio",{attrs:{label:0},model:{value:e.dateType,callback:function(i){t.$set(e,"dateType",i)},expression:"childItem.dateType"}},[t._v("\n 年-月-日\n ")])],1)],t._v(" "),t.currentChildIndex!=s||e.systemFlag||"4"!=e.type?t._e():[a("div",{key:"child9"+s,staticClass:"edit-item "},[a("div",{staticClass:"edit-item-title"},[t._v("选项 "),e.systemFlag?t._e():a("span",[t._v("最多20项,每项最多10个字")])]),t._v(" "),t._l(e.list,function(s,l){return[a("div",{key:"child10"+l,staticClass:"margin-t-15 limit-w-340",style:0==l?"margin-top: 0":""},[a("limitInput",{attrs:{inputWidth:340,limitClass:"limit-color",inputValue:s.value,holder:"",disflag:e.systemFlag,getByType:"char",maxLength:10},on:{"update:inputValue":function(e){t.$set(s,"value",e)}}}),t._v(" "),!e.systemFlag&&e.list.length>1?a("i",{staticClass:"opt-btn el-icon-remove del-item",on:{click:function(a){t.delChildItem(i,l,e)}}}):t._e(),t._v(" "),!e.systemFlag&&l<19?[l==e.list.length-1?a("i",{staticClass:"opt-btn el-icon-circle-plus add-item",on:{click:function(a){t.addChildItem(i,l,e)}}}):t._e()]:t._e()],2)]})],2),t._v(" "),a("div",{key:"child922"+s,staticClass:"edit-item m-b-10"},[a("div",{staticClass:"edit-item-title edit-title-padding"},[t._v("选择框类型")]),t._v(" "),a("div",[a("el-radio",{attrs:{label:0},model:{value:e.chooseType,callback:function(i){t.$set(e,"chooseType",i)},expression:"childItem.chooseType"}},[t._v("单选")]),t._v(" "),a("el-radio",{attrs:{label:1},model:{value:e.chooseType,callback:function(i){t.$set(e,"chooseType",i)},expression:"childItem.chooseType"}},[t._v("多选")])],1)])],t._v(" "),t.currentChildIndex!=s||e.systemFlag||10!=e.type?t._e():[a("div",{key:"child910"+s,staticClass:"edit-item m-b-10"},[a("div",{staticClass:"edit-item-title edit-title-padding"},[t._v("大写")]),t._v(" "),a("el-checkbox",{model:{value:e.openCapitalize,callback:function(i){t.$set(e,"openCapitalize",i)},expression:"childItem.openCapitalize"}},[t._v("显示大写")])],1)],t._v(" "),t.currentChildIndex==s?[a("div",{key:"child11"+s,staticClass:"edit-item"},[a("div",{staticClass:"edit-item-title"},[t._v("验证")]),t._v(" "),a("el-checkbox",{on:{change:function(i){t.changeMust(i,!!e.list,e)}},model:{value:e.isMust,callback:function(i){t.$set(e,"isMust",i)},expression:"childItem.isMust"}},[t._v("必填")])],1)]:t._e(),t._v(" "),t.currentChildIndex!=s||"performanceKing"!=e.name&&"competitorInfo"!=e.name?t._e():[a("div",{key:"child111"+s,staticClass:"edit-item m-b-10"},[a("div",{staticClass:"edit-item-title edit-title-padding"},[t._v("验证 是否必填")]),t._v(" "),a("div",{staticClass:"must-list"},t._l(e.list,function(e,i){return a("div",{key:"list111"+i,staticClass:"must-list-cell m-b-10"},[a("el-checkbox",{model:{value:e.isMust,callback:function(i){t.$set(e,"isMust",i)},expression:"listItem.isMust"}},[t._v(t._s(e.title))])],1)}))])],t._v(" "),t.currentChildIndex==s?[a("div",{key:"child12"+s,staticClass:"edit-item "},[a("div",{staticClass:"edit-item-title edit-title-padding"},[t._v("记忆")]),t._v(" "),a("el-checkbox",{model:{value:e.memory,callback:function(i){t.$set(e,"memory",i)},expression:"childItem.memory"}},[t._v("是否记忆")])],1)]:t._e()]})]:t._e()]})],2)])]),t._v(" "),a("el-tab-pane",{attrs:{label:"模板设置",name:"second"}},[a("div",{staticClass:"template-item limit-w-340"},[a("div",{staticClass:"edit-item-title edit-title-padding"},[t._v("模板名称 最多10个字")]),t._v(" "),a("limitInput",{attrs:{inputWidth:340,limitClass:"limit-color",inputValue:t.templateObj.title,holder:"",disflag:!1,getByType:"char",maxLength:10},on:{"update:inputValue":function(e){t.$set(t.templateObj,"title",e)}}})],1),t._v(" "),a("div",{staticClass:"template-item limit-w-340"},[a("div",{staticClass:"edit-item-title edit-title-padding"},[t._v("模板描述 最多20个字")]),t._v(" "),a("limitInput",{attrs:{inputWidth:340,limitClass:"limit-color",inputValue:t.templateObj.description,holder:"",disflag:!1,getByType:"char",maxLength:20},on:{"update:inputValue":function(e){t.$set(t.templateObj,"description",e)}}})],1),t._v(" "),a("div",{staticClass:"template-item "},[a("div",{staticClass:"edit-item-title edit-title-padding"},[t._v("门店类型")]),t._v(" "),a("div",{staticClass:"store-type-list"},t._l(t.storeList,function(e,i){return a("div",{key:e.name+i,staticClass:"store-type-cell m-b-20"},[a("el-radio",{attrs:{label:e.id,disabled:e.disabled},model:{value:t.templateObj.storeType,callback:function(e){t.$set(t.templateObj,"storeType",e)},expression:"templateObj.storeType"}},[t._v(t._s(e.name))])],1)}))])])],1)],1)])]),t._v(" "),a("qrcode-dialog",{ref:"qrcodePreview",model:{value:t.dialogVisible,callback:function(e){t.dialogVisible=e},expression:"dialogVisible"}})],1)},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"template-title flex-1"},[e("img",{attrs:{src:i("LbEI"),alt:"logo"}}),this._v(" "),e("span",{staticClass:"template-title-span"},[this._v("日报设置")])])}]};var M=i("VU/8")(w,T,!1,function(t){i("Uq5N")},"data-v-b3bc0868",null);e.default=M.exports},IDUm:function(t,e){},PAYw:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a={name:"block-com",props:{childItem:{type:[Object,Array],default:function(){return{}}}}},s={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"block block-field"},[i("div",{staticClass:"block-head"},[i("div",{class:["opencard-item-title",t.childItem.title.length>=6?"title-pre-wrap":""]},[t._v(t._s(t.childItem.title))])]),t._v(" "),i("ul",{staticClass:"view-content"},t._l(t.childItem.list,function(e,a){return i("li",{key:"performance"+a,staticClass:"block-filed-item border-bottom-1"},[i("div",{class:["opencard-item-title",e.title.length>=6?"title-pre-wrap":""]},[t._v(t._s(e.title))]),t._v(" "),i("div",{staticClass:"draged-item-show"},[i("span",{staticClass:"show-warm-text show-warm-text-flag "},[t._v(t._s(e.placeholder)+" "+t._s(e.isMust?"(必填)":""))])])])})),t._v(" "),"competitorInfo"==t.childItem.name?i("div",{staticClass:"compete-add"},[t._v("\n +竞品信息\n ")]):t._e()])},staticRenderFns:[]};var l=i("VU/8")(a,s,!1,function(t){i("hh6r")},"data-v-1dcd7b4c",null);e.default=l.exports},Uq5N:function(t,e){},bu1e:function(t,e){},"c/Tr":function(t,e,i){t.exports={default:i("5zde"),__esModule:!0}},fBQ2:function(t,e,i){"use strict";var a=i("evD5"),s=i("X8DO");t.exports=function(t,e,i){e in t?a.f(t,e,s(0,i)):t[e]=i}},hh6r:function(t,e){},kYZD:function(t,e){},qyJz:function(t,e,i){"use strict";var a=i("+ZMJ"),s=i("kM2E"),l=i("sB3e"),n=i("msXi"),c=i("Mhyx"),r=i("QRG4"),o=i("fBQ2"),d=i("3fs2");s(s.S+s.F*!i("dY0y")(function(t){Array.from(t)}),"Array",{from:function(t){var e,i,s,m,p=l(t),u="function"==typeof this?this:Array,v=arguments.length,h=v>1?arguments[1]:void 0,f=void 0!==h,_=0,g=d(p);if(f&&(h=a(h,v>2?arguments[2]:void 0,2)),void 0==g||u==Array&&c(g))for(i=new u(e=r(p.length));e>_;_++)o(i,_,f?h(p[_],_):p[_]);else for(m=g.call(p),i=new u;!(s=m.next()).done;_++)o(i,_,f?n(m,h,[s.value,_],!0):s.value);return i.length=_,i}})},raLb:function(t,e){},"s4D+":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a={name:"input-com",props:{childItem:{type:[Object,Array],default:function(){return{}}}}},s={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{class:[2==t.childItem.type?"h-66":""]},[9!=t.childItem.type?i("div",{class:["opencard-item-title",t.childItem.title.length>=6?"title-pre-wrap":""]},[t._v(t._s(t.childItem.title))]):t._e(),t._v(" "),i("div",{staticClass:"draged-item-show"},[i("span",{staticClass:"show-warm-text show-warm-text-flag",style:{"padding-left":9==t.childItem.type?"15px":"0"}},[t._v(t._s(t.childItem.placeholder)+" "+t._s(t.childItem.isMust?"(必填)":""))])]),t._v(" "),10==t.childItem.type&&t.childItem.openCapitalize?i("div",{staticClass:"show-capitalize font-12 color-909399 p-l-10 border-box"},[t._v("大写:壹万元整(示例)")]):t._e()])},staticRenderFns:[]};var l=i("VU/8")(a,s,!1,function(t){i("IDUm")},"data-v-078733c8",null);e.default=l.exports},t0b0:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a={name:"select-com",props:{childItem:{type:[Object,Array],default:function(){return{}}}}},s={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",[i("div",{class:["opencard-item-title",t.childItem.title.length>=6?"title-pre-wrap":""]},[t._v(t._s(t.childItem.title))]),t._v(" "),i("div",{staticClass:"draged-item-show"},[i("span",{staticClass:"show-warm-text show-warm-text-flag select-flag"},[t._v(t._s(t.childItem.placeholder)+" "+t._s(t.childItem.isMust?"(必填)":"")+" "),i("i",{staticClass:"el-icon-arrow-right"})])])])},staticRenderFns:[]};var l=i("VU/8")(a,s,!1,function(t){i("raLb")},"data-v-7f500e21",null);e.default=l.exports}}); webpackJsonp([4,38,40,51,58,62],{"5zde":function(t,e,i){i("zQR9"),i("qyJz"),t.exports=i("FeBl").Array.from},"79Bk":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a={name:"date-range-com",props:{childItem:{type:[Object,Array],default:function(){return{}}}}},s={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",[i("div",[i("div",{class:["opencard-item-title",t.childItem.startTitle.length>=6?"title-pre-wrap":""]},[t._v(t._s(t.childItem.startTitle))]),t._v(" "),i("div",{staticClass:"draged-item-show"},[i("span",{staticClass:"show-warm-text show-warm-text-flag select-flag"},[t._v(t._s(t.childItem.placeholder)+" "+t._s(t.childItem.isMust?"(必填)":"")),i("i",{staticClass:"el-icon-arrow-right"})])])]),t._v(" "),i("div",{staticClass:"b-t-1"},[i("div",{class:["opencard-item-title",t.childItem.endTitle.length>=6?"title-pre-wrap":""]},[t._v(t._s(t.childItem.endTitle))]),t._v(" "),i("div",{staticClass:"draged-item-show"},[i("span",{staticClass:"show-warm-text show-warm-text-flag select-flag"},[t._v(t._s(t.childItem.placeholder)+" "+t._s(t.childItem.isMust?"(必填)":"")+" "),i("i",{staticClass:"el-icon-arrow-right"})])])])])},staticRenderFns:[]};var l=i("VU/8")(a,s,!1,function(t){i("bu1e")},"data-v-7138ecea",null);e.default=l.exports},Gu7T:function(t,e,i){"use strict";e.__esModule=!0;var a,s=i("c/Tr"),l=(a=s)&&a.__esModule?a:{default:a};e.default=function(t){if(Array.isArray(t)){for(var e=0,i=Array(t.length);e<t.length;e++)i[e]=t[e];return i}return(0,l.default)(t)}},H8Kg:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a={name:"image-com",props:{childItem:{type:[Object,Array],default:function(){return{}}}}},s={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"image-com"},[i("div",{class:["opencard-item-title",t.childItem.title.length>=6?"title-pre-wrap":""]},[t._v(t._s(t.childItem.title))]),t._v(" "),i("div",{staticClass:"must"},[t._v(t._s(t.childItem.isMust?"(必填)":""))]),t._v(" "),t._m(0)])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"draged-item-show"},[e("span",{staticClass:"show-warm-text show-warm-text-flag select-flag"},[e("i",{staticClass:"iconfont icon-icon"})])])}]};var l=i("VU/8")(a,s,!1,function(t){i("kYZD")},"data-v-3f8afc82",null);e.default=l.exports},IA9l:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=i("//Fk"),s=i.n(a),l=i("Gu7T"),n=i.n(l),c=i("gBtx"),r=i.n(c),o=i("mvHQ"),d=i.n(o),m=i("DAYN"),p=i.n(m),u=i("Isrn"),v=i("l46T"),h=i("H8Kg"),f=i("t0b0"),_=i("79Bk"),g=i("s4D+"),y=i("PAYw"),C=i("fPyK"),b=i("3E4D"),I=i("Ch4/"),x=i("PI0u"),k=i("P9l9"),w={name:"customSetTemplate",data:function(){return{activeName:"first",rightName:"second",dialogVisible:!1,bodyHeight:(document.documentElement.clientHeight||document.body.clientHeight)+"px",isDragging:!1,delayedDragging:!1,leftOption:{group:{name:"people",pull:"clone",put:!1},sort:!1,disabled:!1},leftDefineOption:{group:{name:"people",pull:"clone",put:!1},sort:!1,disabled:!1},templateId:"",oparateType:"",counter:1,selectKey:"",tradeInfo:[],personInfo:[],goodsInfo:[],competeInfo:[],defineInfo:[],currentIndex:0,currentChildKey:null,currentChildIndex:null,childIndex:0,tempaletDataList:[],setList:[],templateObj:{title:"",description:"",storeType:"",momory:[]},storeList:[{id:"0",name:"直营门店",disabled:!1},{id:"1",name:"联营门店",disabled:!1},{id:"2",name:"代理门店",disabled:!1},{id:"3",name:"代销门店",disabled:!1},{id:"4",name:"托管门店",disabled:!1}]}},methods:{returnBack:function(){this.changeRoute("/customReport?brandId="+this.brandId)},cloneItem:function(t){var e=JSON.parse(d()(t));return e.cid="c"+this.counter,e.systemFlag||(e.name.includes("textc")&&(e.name="textc"+this.counter,e.title=""+e.title+this.counter),e.name.includes("paragraphc")&&(e.name="paragraphc"+this.counter,e.title=""+e.title+this.counter),e.name.includes("numberc")&&(e.name="numberc"+this.counter,e.title=""+e.title+this.counter),e.name.includes("checkboxesOrRadioc")&&(e.name="checkboxesOrRadioc"+this.counter,e.title=""+e.title+this.counter),e.name.includes("datec")&&(e.name="datec"+this.counter,e.title=""+e.title+this.counter),e.name.includes("dateareac")&&(e.name="dateareac"+this.counter,e.title=""+e.title+this.counter),e.name.includes("picc")&&(e.name="picc"+this.counter,e.title=""+e.title+this.counter),e.name.includes("introductionc")&&(e.name="introductionc"+this.counter,e.title=""+e.title+this.counter),e.name.includes("pricec")&&(e.name="pricec"+this.counter,e.title=""+e.title+this.counter),e.name.includes("groupc")&&(e.name="groupc"+this.counter,e.title=""+e.title+this.counter)),e},onMove:function(t){var e=t.draggedContext.element;return!this.tempaletDataList.map(function(t){return t.name}).includes(e.name)&&!e.fixed},onChildMove:function(t){var e=!0;return-1!=t.dragged.className.indexOf("block-class")&&-1!=t.to.className.indexOf("block-wrap")&&(e=!1),e},itemMoveEnd:function(t){var e=this;function i(t){e[t].forEach(function(t,i){t.name==e.selectKey&&(t.fixed=!0)})}e.isDragging=!1,e.selectKey="",e.selectKey=t.clone.dataset.name,e.tempaletDataList.forEach(function(t,a){t.name==e.selectKey&&i(t.parentCode),t.children&&t.children.forEach(function(t,a){t.name==e.selectKey&&i(t.parentCode)})}),e.selectKey="",e.tempaletDataList=JSON.parse(d()(e.tempaletDataList)),e.$forceUpdate(),e.counter=e.counter+1},selectItem:function(t,e){this.currentIndex=e,this.currentChildIndex=null},deleteItem:function(t,e,i,a){var s=this;if(s.tempaletDataList.splice(i,1),s.currentIndex--,s.currentIndex<=0&&(s.currentIndex=0),!a.systemFlag)return a.name.includes("groupc")&&a.children.length&&a.children.forEach(function(t){t.systemFlag&&s[t.parentCode].forEach(function(e){e.name==t.name&&(e.fixed=!1)})}),!1;s[e].forEach(function(e,i){e.name==t&&(e.fixed=!1)})},addDragItem:function(t){return!1},selectChildItem:function(t,e,i,a){this.currentIndex=null,this.currentChildKey=t,this.childIndex=e,this.currentChildIndex=i},deleteChildItem:function(t,e,i,a,s){if(this.childIndex=e,this.currentIndex=null,this.currentChildKey=this.tempaletDataList[e].children[i].name,this.currentChildIndex--,this.currentChildIndex<=0&&(this.currentChildIndex=0),this.tempaletDataList=JSON.parse(d()(this.tempaletDataList)),this.tempaletDataList[e].children.splice(i,1),!s.systemFlag)return!1;this[s.parentCode].forEach(function(e,i){e.name===t&&(e.fixed=!1)})},delChildItem:function(t,e,i){i.list.splice(e,1)},addChildItem:function(t,e,i){if(19!=e){i.list.push({value:"选项"+(e+2),key:e+2});var a=i.list.map(function(t){return t.value});this.isRepeat(a)&&(i.list.splice(i.list.length-1,1),a.splice(i.list.length-1,1),this.$message.error({duration:1e3,message:"选项不能重复"}))}else this.$message.error({duration:1e3,message:"最多可添加 20 项"})},changeMust:function(t,e,i){e&&i.list.forEach(function(e){e.isMust=!!t})},isRepeat:function(t){var e={};for(var i in t){if(e[t[i]])return!0;e[t[i]]=!0}return!1},changeRoute:function(t){this.$router.push(t)},checkTag:function(t){var e={filedFlag:!0,filedRepeat:!1},i=[];return t.forEach(function(t){if(""==t.title)return e.filedFlag=!1,e.name=t.title||"",!1;i.push(t.title),t.hasOwnProperty("children")&&t.children.length&&t.children.forEach(function(t){if(t.systemFlag&&""==t.title)return e.filedFlag=!1,e.name=t.title||"",!1;i.push(t.title)})}),this.isRepeat(i)&&(e.filedRepeat=!0),e},checkTemplateObj:function(){var t=!0;return this.templateObj.title&&this.templateObj.description&&this.templateObj.storeType||(t=!1),t},getUuid:function(){return"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,function(t){var e=16*Math.random()|0;return("x"==t?e:3&e|8).toString(16)})},saveAndBack:Object(x.a)(function(t){if(!this.checkTemplateObj())return this.$message.error({duration:1e3,message:"请完善模板设置内容"}),!1;var e=JSON.parse(d()(this.tempaletDataList)),i=this.checkTag(e);if(!i.filedFlag)return this.$message.error({duration:1e3,message:i.name+"字段标题不能为空"}),!1;if(i.filedRepeat)this.$message.error({duration:1e3,message:"字段标题不能重复"});else{if(e.forEach(function(t,e){t.sort=e,t.isMust=t.isMust?1:0,t.memory=t.memory?1:0,t.hasOwnProperty("openCapitalize")&&(t.openCapitalize=t.openCapitalize?1:0),t.hasOwnProperty("list")&&t.list.forEach(function(t){t.isMust=t.isMust?1:0}),t.hasOwnProperty("children")&&(t.children.forEach(function(t,e){t.sort=e,t.isMust=t.isMust?1:0,t.memory=t.memory?1:0,t.hasOwnProperty("list")&&t.list.forEach(function(t){t.isMust=t.isMust?1:0}),t.hasOwnProperty("openCapitalize")&&(t.openCapitalize=t.openCapitalize?1:0)}),t.list=t.children)}),!e.length)return this.$message.error({duration:1e3,message:"请先配置字段"}),!1;"save"===t?this.saveAllData(e):this.postPreview(e)}},500),saveAllData:function(t){var e=this,i={status:1,brandId:e.brandId,templateContent:d()(t),title:e.templateObj.title,description:e.templateObj.description,storeType:e.templateObj.storeType,memory:[]};Object(k.c)("/haoban-app-daily-web/daily/save-define-template",i).then(function(t){var i=t.data;if(1==i.errorCode)return b.a.showmsg("保存成功","success"),void e.changeRoute("/customReport?brandId="+e.brandId);I.a.errorMsg(i)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},postPreview:function(t){var e=this,i={templateType:2,brandId:e.brandId,templateContent:d()(t)};Object(k.c)("/haoban-app-daily-web/daily/preview-template",i).then(function(t){var i=t.data;if(1==i.errorCode){var a=JSON.parse(localStorage.getItem("userInfo")).enterpriseId,s=window.location.origin+"/office-mobile/#/defineTemplate?enterpriseId="+a+"&templateId="+i.result+"&brandId="+e.brandId;return e.$refs.qrcodePreview.qrcode(s,"daily-preview"),void(e.dialogVisible=!0)}I.a.errorMsg(i)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},closeDialog:function(){this.dialogVisible=!1},getHasStores:function(){var t=this;Object(k.c)("/haoban-app-daily-web/daily/has-defined-template-store-type",{brandId:t.brandId}).then(function(e){var i=e.data;1!=i.errorCode?I.a.errorMsg(i):t.storeList.forEach(function(e){i.result&&i.result.length&&i.result.includes(r()(e.id))&&(e.disabled=!0),"edit"==t.oparateType&&t.storeType==e.id&&(e.disabled=!1)})}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},getAllFields:function(t){var e=this;Object(k.c)("/haoban-app-daily-web/daily/get-template-items",{brandId:e.brandId,type:t}).then(function(i){var a=i.data;if(1==a.errorCode)return a.result.forEach(function(e){e.isMust=!!e.isMust,e.memory=!!e.memory,e.title=e.title.trim(),e.hasOwnProperty("openCapitalize")&&(e.openCapitalize=!!e.openCapitalize),e.hasOwnProperty("list")&&e.list&&e.list.length&&e.list.forEach(function(t){t.isMust=!!t.isMust}),e.systemFlag=3!=t,e.name.includes("groupc")&&(e.children=[])}),void(3==t?e.defineInfo=a.result:e.handleAllFields(a.result));I.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},handleAllFields:function(t){var e=this;t.forEach(function(t){t.fixed=!1,1==t.classify&&(t.parentCode="tradeInfo",e.tradeInfo.push(t)),2==t.classify&&(t.parentCode="personInfo",e.personInfo.push(t)),3==t.classify&&(t.parentCode="goodsInfo",e.goodsInfo.push(t)),4==t.classify&&(t.parentCode="competeInfo",e.competeInfo.push(t))})},getInfo:function(){var t=this;Object(k.c)("/haoban-app-daily-web/daily/get-define-template",{templateId:t.templateId}).then(function(e){var i=e.data;if(1==i.errorCode)return t.setList=[],i.result&&(t.templateObj.title=i.result.title,t.templateObj.description=i.result.description,t.storeType="edit"==t.oparateType?String(i.result.storeType):"",t.templateObj.storeType="edit"==t.oparateType?String(i.result.storeType):"",i.result.templateContent&&i.result.templateContent.length&&t.handleGetInfo(i.result.templateContent)),void t.getHasStores();I.a.errorMsg(i)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},treeData:function(t){var e=t.filter(function(e){var i=t.filter(function(t){return e.fieldCode==t.parentCode});return i.length>0&&(e.children=i),0==e.parentCode});return e.sort(function(t,e){return t.sort-e.sort}),e.forEach(function(t,e){t.children.sort(function(t,e){return t.sort-e.sort})}),e},handleGetInfo:function(t){var e=this,i=JSON.parse(d()(t));e.cids=[],e.setParent=[],i.forEach(function(t,i){t.title=t.title.trim(),t.isMust=!!t.isMust,t.memory=!!t.memory,t.name.includes("textc")||t.name.includes("paragraphc")||t.name.includes("numberc")||t.name.includes("checkboxesOrRadioc")||t.name.includes("datec")||t.name.includes("dateareac")||t.name.includes("picc")||t.name.includes("introductionc")||t.name.includes("pricec")||t.name.includes("groupc")?(t.systemFlag=!1,t.parentCode="defineInfo"):(e.setParent.push(t.name),t.systemFlag=!0,1==t.classify&&(t.parentCode="tradeInfo"),2==t.classify&&(t.parentCode="personInfo"),3==t.classify&&(t.parentCode="goodsInfo"),4==t.classify&&(t.parentCode="competeInfo")),t.hasOwnProperty("openCapitalize")&&(t.openCapitalize=!!t.openCapitalize),t.hasOwnProperty("list")&&t.list&&t.list.length&&(t.list.forEach(function(i){(i.isMust=!!i.isMust,t.name.includes("groupc"))&&(i.isMust=!!i.isMust,i.memory=!!i.memory,i.name.includes("textc")||i.name.includes("paragraphc")||i.name.includes("numberc")||i.name.includes("checkboxesOrRadioc")||i.name.includes("datec")||i.name.includes("dateareac")||i.name.includes("picc")||i.name.includes("introductionc")||i.name.includes("pricec")||i.name.includes("groupc")?i.systemFlag=!1:(e.setParent.push(i.name),i.systemFlag=!0,1==i.classify&&(i.parentCode="tradeInfo"),2==i.classify&&(i.parentCode="personInfo"),3==i.classify&&(i.parentCode="goodsInfo"),4==i.classify&&(i.parentCode="competeInfo")))}),t.name.includes("groupc")&&(t.children=t.list)),e.cids.push(r()(t.cid.match(/\d+/g))),t.hasOwnProperty("children")&&t.children.forEach(function(t){t.isMust=!!t.isMust,t.memory=!!t.memory,e.cids.push(r()(t.cid.match(/\d+/g)))})}),e.counter=Math.max.apply(Math,n()(e.cids)),e.tempaletDataList=i,setTimeout(function(){e.setFixed()},500)},setFixed:function(){var t=this;["tradeInfo","personInfo","goodsInfo","competeInfo"].forEach(function(e){t[e].forEach(function(e){t.setParent.includes(e.name)&&(e.fixed=!0)})})}},watch:{isDragging:function(t){var e=this;t?e.delayedDragging=!0:e.$nextTick(function(){e.delayedDragging=!1})}},components:{draggable:p.a,AddInput:u.a,limitInput:v.a,imageCom:h.default,selectCom:f.default,dateRangeCom:_.default,inputCom:g.default,blockCom:y.default,qrcodeDialog:C.a},mounted:function(){var t=this,e=t.$route.query;t.brandId=t.$route.query.brandId,s.a.all([t.getAllFields(2)]).then(function(i){t.getAllFields(3),e.hasOwnProperty("templateId")?(t.templateId=e.templateId,t.oparateType=e.type,t.getInfo()):t.getHasStores()}).catch(function(t){console.log(t)}),document.body.ondrop=function(t){t.preventDefault(),t.stopPropagation()}}},T={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"template-wrap",style:{height:t.bodyHeight}},[a("div",{staticClass:"template-contain"},[a("div",{staticClass:"template-head"},[t._m(0),t._v(" "),a("div",{staticClass:"template-btns flex-1 flex-r"},[a("el-button",{attrs:{type:"primary",plain:""},on:{click:function(e){t.saveAndBack("preview")}}},[t._v("预 览")]),t._v(" "),a("el-button",{attrs:{type:"primary",plain:""},on:{click:t.returnBack}},[t._v("返 回")]),t._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(e){t.saveAndBack("save")}}},[t._v("保存并启用")])],1)]),t._v(" "),a("div",{staticClass:"template-body"},[a("div",{staticClass:"template-cell template-cell-l"},[a("el-tabs",{model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},[a("el-tab-pane",{attrs:{label:"系统字段",name:"first"}},[a("div",{staticClass:"filed-item-title"},[t._v("交易")]),t._v(" "),a("ul",[a("draggable",{staticClass:"compenent",attrs:{id:"list1",list:t.tradeInfo,options:t.leftOption,clone:t.cloneItem,move:t.onMove},on:{start:function(e){t.isDragging=!0},end:t.itemMoveEnd}},t._l(t.tradeInfo,function(e,i){return a("li",{key:i,class:["compenent-item",1==e.fixed?"fixed-item":""],attrs:{"data-name":e.name,"aria-hidden":"true"}},[a("span",[t._v(t._s(e.title))])])}))],1),t._v(" "),a("div",{staticClass:"filed-item-title"},[t._v("人员")]),t._v(" "),a("ul",[a("draggable",{staticClass:"compenent",attrs:{id:"list2",list:t.personInfo,options:t.leftOption,clone:t.cloneItem,move:t.onMove},on:{start:function(e){t.isDragging=!0},end:t.itemMoveEnd}},t._l(t.personInfo,function(e,i){return a("li",{key:i,class:["compenent-item",1==e.fixed?"fixed-item":""],attrs:{"data-name":e.name}},[a("span",[t._v(t._s(e.title))])])}))],1),t._v(" "),a("div",{staticClass:"filed-item-title"},[t._v("商品")]),t._v(" "),a("ul",[a("draggable",{staticClass:"compenent",attrs:{id:"list3",list:t.goodsInfo,options:t.leftOption,clone:t.cloneItem,move:t.onMove},on:{start:function(e){t.isDragging=!0},end:t.itemMoveEnd}},t._l(t.goodsInfo,function(e,i){return a("li",{key:i,class:["compenent-item",1==e.fixed?"fixed-item":""],attrs:{"data-name":e.name}},[a("span",[t._v(t._s(e.title))])])}))],1),t._v(" "),a("div",{staticClass:"filed-item-title"},[t._v("竞品")]),t._v(" "),a("ul",[a("draggable",{staticClass:"compenent",attrs:{id:"list4",list:t.competeInfo,options:t.leftOption,clone:t.cloneItem,move:t.onMove},on:{start:function(e){t.isDragging=!0},end:t.itemMoveEnd}},t._l(t.competeInfo,function(e,i){return a("li",{key:i,class:["compenent-item",1==e.fixed?"fixed-item":""],attrs:{"data-name":e.name}},[a("span",[t._v(t._s(e.title))])])}))],1)]),t._v(" "),a("el-tab-pane",{attrs:{label:"自定义字段",name:"second"}},[a("div",{staticClass:"filed-item-title"}),t._v(" "),a("ul",[a("draggable",{staticClass:"compenent",attrs:{id:"list5",list:t.defineInfo,options:t.leftDefineOption,clone:t.cloneItem,move:t.onChildMove},on:{start:function(e){t.isDragging=!0},end:t.itemMoveEnd}},t._l(t.defineInfo,function(e,i){return a("li",{key:i,class:["compenent-item",1==e.fixed?"fixed-item":"",11==e.type?"block-class":""],attrs:{"data-type":e.fieldCode}},[0==e.type?a("span",[t._v(t._s(e.title))]):t._e(),t._v(" "),1==e.type?a("span",[t._v(t._s(e.title))]):t._e(),t._v(" "),2==e.type?a("span",[t._v(t._s(e.title))]):t._e(),t._v(" "),3==e.type?a("span",[t._v(t._s(e.title))]):t._e(),t._v(" "),4==e.type?a("span",[t._v(t._s(e.title))]):t._e(),t._v(" "),5==e.type?a("span",[t._v(t._s(e.title))]):t._e(),t._v(" "),6==e.type?a("span",[t._v(t._s(e.title))]):t._e(),t._v(" "),7==e.type?a("span",[t._v(t._s(e.title))]):t._e(),t._v(" "),9==e.type?a("span",[t._v(t._s(e.title))]):t._e(),t._v(" "),10==e.type?a("span",[t._v(t._s(e.title))]):t._e(),t._v(" "),11==e.type?a("span",[t._v(t._s(e.title))]):t._e(),t._v(" "),0==e.type?a("i",{staticClass:"bg-icon bg-icon-one"}):t._e(),t._v(" "),1==e.type?a("i",{staticClass:"bg-icon bg-icon-two"}):t._e(),t._v(" "),2==e.type?a("i",{staticClass:"bg-icon bg-icon-three"}):t._e(),t._v(" "),3==e.type?a("i",{staticClass:"bg-icon bg-icon-four"}):t._e(),t._v(" "),4==e.type?a("i",{staticClass:"bg-icon bg-icon-five"}):t._e(),t._v(" "),5==e.type?a("i",{staticClass:"bg-icon bg-icon-six"}):t._e(),t._v(" "),6==e.type?a("i",{staticClass:"bg-icon bg-icon-seven"}):t._e(),t._v(" "),7==e.type?a("i",{staticClass:"bg-icon bg-icon-eight"}):t._e()])}))],1)])],1)],1),t._v(" "),a("div",{staticClass:"template-cell template-cell-m"},[a("div",{staticClass:"phone-view"},[a("div",{staticClass:"phone-show-content"},[a("div",{staticClass:"drag-show-content"},[a("div",{staticClass:"view-container"},[a("ul",{staticClass:"view-content",attrs:{id:"showPhoneView"}},[0==t.tempaletDataList.length?[a("img",{staticClass:"templet-null-img",attrs:{src:i("Y7wY")}})]:t._e(),t._v(" "),a("draggable",{staticClass:"drag-wrap",attrs:{options:{group:{name:"people",pull:!1,put:!0},sort:!0}},model:{value:t.tempaletDataList,callback:function(e){t.tempaletDataList=e},expression:"tempaletDataList"}},t._l(t.tempaletDataList,function(e,i){return a("li",{key:"li1"+i,class:["filed-item",t.currentIndex==i?"active-item":"","li-block"],on:{click:function(a){t.selectItem(e.fieldCode,i)}}},["baseInfo"!=e.fieldCode?a("span",{staticClass:"item-close p-item-close",on:{click:function(a){a.stopPropagation(),t.deleteItem(e.name,e.parentCode,i,e)}}},[a("i",{staticClass:"el-icon-close"})]):t._e(),t._v(" "),e.systemFlag||!e.name.includes("groupc")?a("div",[1==e.type||2==e.type||3==e.type||10==e.type||9==e.type?a("input-com",{attrs:{childItem:e}}):t._e(),t._v(" "),4==e.type||5==e.type?a("select-com",{attrs:{childItem:e}}):t._e(),t._v(" "),6==e.type?a("date-range-com",{attrs:{childItem:e}}):t._e(),t._v(" "),7==e.type?a("image-com",{attrs:{childItem:e}}):t._e(),t._v(" "),"11"==e.type?a("block-com",{attrs:{childItem:e}}):t._e()],1):t._e(),t._v(" "),[e.name.includes("groupc")?a("div",{staticClass:"block"},[a("div",{staticClass:"block-head"},[a("div",{class:["opencard-item-title",e.title.length>=6?"title-pre-wrap":""]},[t._v(t._s(e.title))])]),t._v(" "),a("ul",{staticClass:"view-content"},[a("draggable",{class:["drag-wrap","block-wrap",e.fieldCode],attrs:{options:{group:{name:"people",pull:!1,put:!0},sort:!0}},on:{add:t.addDragItem},model:{value:e.children,callback:function(i){t.$set(e,"children",i)},expression:"item.children"}},t._l(e.children,function(s,l){return a("li",{key:"li"+l,class:["filed-item","child-filed-item",t.currentChildKey==s.name&&t.currentChildIndex==l?"active-item":""],on:{click:function(a){a.stopPropagation(),t.selectChildItem(s.name,i,l,e.children)}}},[a("span",{staticClass:"item-close child-item-close",on:{click:function(a){a.stopPropagation(),t.deleteChildItem(s.name,i,l,e.children,s)}}},[a("i",{staticClass:"el-icon-close"})]),t._v(" "),4==s.type||5==s.type?a("select-com",{attrs:{childItem:s}}):t._e(),t._v(" "),6==s.type?a("date-range-com",{attrs:{childItem:s}}):t._e(),t._v(" "),7==s.type?a("image-com",{attrs:{childItem:s}}):t._e(),t._v(" "),1==s.type||2==s.type||3==s.type||10==s.type||9==s.type?a("input-com",{attrs:{childItem:s}}):t._e(),t._v(" "),"11"==s.type&&s.systemFlag?a("block-com",{attrs:{childItem:s}}):t._e()],1)}))],1)]):t._e()]],2)}))],2)])])])])]),t._v(" "),a("div",{staticClass:"template-cell template-cell-r"},[a("el-tabs",{model:{value:t.rightName,callback:function(e){t.rightName=e},expression:"rightName"}},[a("el-tab-pane",{attrs:{label:"控件设置",name:"first"}},[a("div",{attrs:{id:"edit-box"}},[a("div",{staticClass:"edit-view baby-info-flag baby-info"},[t._l(t.tempaletDataList,function(e,i){return[t.currentIndex!=i||e.systemFlag||6==e.type?t._e():[a("div",{key:"child"+i,staticClass:"edit-item test-title limit-w-340"},[a("div",{staticClass:"edit-item-title"},[t._v("标题")]),t._v(" "),a("limitInput",{attrs:{inputWidth:340,limitClass:"limit-color",inputValue:e.title,holder:"",disflag:e.systemFlag,getByType:"char",maxLength:10},on:{"update:inputValue":function(i){t.$set(e,"title",i)}}}),t._v(" "),7==e.type?a("p",{staticStyle:{"margin-top":"8px","font-size":"12px",color:"rgba(255, 255, 255, 0.7)"}},[t._v("\n 图片最多可添加9张\n ")]):t._e()],1)],t._v(" "),t.currentIndex!=i||e.systemFlag||6!=e.type?t._e():[a("div",{key:"child62"+i,staticClass:"edit-item test-title limit-w-340"},[a("div",{staticClass:"edit-item-title"},[t._v("标题 最多10个字")]),t._v(" "),a("limitInput",{attrs:{inputWidth:340,limitClass:"limit-color",inputValue:e.startTitle,holder:"",disflag:e.systemFlag,getByType:"char",maxLength:10},on:{"update:inputValue":function(i){t.$set(e,"startTitle",i)}}})],1),t._v(" "),a("div",{key:"child64"+i,staticClass:"edit-item test-title limit-w-340"},[a("div",{staticClass:"edit-item-title"},[t._v("标题2 最多10个字")]),t._v(" "),a("limitInput",{attrs:{inputWidth:340,limitClass:"limit-color",inputValue:e.endTitle,holder:"",disflag:e.systemFlag,getByType:"char",maxLength:10},on:{"update:inputValue":function(i){t.$set(e,"endTitle",i)}}})],1)],t._v(" "),t.currentIndex!=i||e.systemFlag||11==e.type||5==e.type||7==e.type?t._e():[a("div",{key:"child1"+i,staticClass:"edit-item test-title limit-w-340"},[a("div",{staticClass:"edit-item-title"},[t._v("提示文字最多20个字")]),t._v(" "),a("limitInput",{attrs:{inputWidth:340,limitClass:"limit-color",inputValue:e.placeholder,holder:"",disflag:!1,getByType:"char",maxLength:20},on:{"update:inputValue":function(i){t.$set(e,"placeholder",i)}}}),t._v(" "),2==e.type||9==e.type?a("p",{staticClass:"font-12 m-t-10"},[t._v("内容最多输入500个字")]):t._e(),t._v(" "),1==e.type?a("p",{staticClass:"font-12 m-t-10"},[t._v("内容最多输入100个字")]):t._e()],1)],t._v(" "),t.currentIndex!=i||e.systemFlag||3!=e.type?t._e():[a("div",{key:"child11"+i,staticClass:"edit-item test-title limit-w-340"},[a("div",{staticClass:"edit-item-title"},[t._v("单位最多20个字")]),t._v(" "),a("limitInput",{attrs:{inputWidth:340,limitClass:"limit-color",inputValue:e.placeholder,holder:"",disflag:!1,getByType:"char",maxLength:20},on:{"update:inputValue":function(i){t.$set(e,"placeholder",i)}}}),t._v(" "),a("p",{staticClass:"font-12 m-t-10"},[t._v("内容最大限制为12位数")])],1)],t._v(" "),t.currentIndex!=i||e.systemFlag||"4"!=e.type?t._e():[a("div",{key:"child111"+i,staticClass:"edit-item "},[a("div",{staticClass:"edit-item-title"},[t._v("选项 "),e.systemFlag?t._e():a("span",[t._v("最多20项,每项最多10个字")])]),t._v(" "),t._l(e.list,function(s,l){return[a("div",{key:"child10"+l,staticClass:"margin-t-15 limit-w-340",style:0==l?"margin-top: 0":""},[a("limitInput",{attrs:{inputWidth:340,limitClass:"limit-color",inputValue:s.value,holder:"",disflag:e.systemFlag,getByType:"char",maxLength:10},on:{"update:inputValue":function(e){t.$set(s,"value",e)}}}),t._v(" "),!e.systemFlag&&e.list.length>1?a("i",{staticClass:"opt-btn el-icon-remove del-item",on:{click:function(a){t.delChildItem(i,l,e)}}}):t._e(),t._v(" "),!e.systemFlag&&l<19?[l==e.list.length-1?a("i",{staticClass:"opt-btn el-icon-circle-plus add-item",on:{click:function(a){t.addChildItem(i,l,e)}}}):t._e()]:t._e()],2)]})],2),t._v(" "),a("div",{key:"parent22"+i,staticClass:"edit-item m-b-10"},[a("div",{staticClass:"edit-item-title edit-title-padding"},[t._v("选择框类型")]),t._v(" "),a("div",[a("el-radio",{attrs:{label:0},model:{value:e.chooseType,callback:function(i){t.$set(e,"chooseType",i)},expression:"item.chooseType"}},[t._v("单选")]),t._v(" "),a("el-radio",{attrs:{label:1},model:{value:e.chooseType,callback:function(i){t.$set(e,"chooseType",i)},expression:"item.chooseType"}},[t._v("多选")])],1)])],t._v(" "),t.currentIndex!=i||e.systemFlag||5!=e.type&&6!=e.type?t._e():[a("div",{key:"child117"+i,staticClass:"edit-item "},[a("div",{staticClass:"edit-item-title"},[t._v("日期类型")]),t._v(" "),a("el-radio",{attrs:{label:1},model:{value:e.dateType,callback:function(i){t.$set(e,"dateType",i)},expression:"item.dateType"}},[t._v("\n 年-月-日 时 分\n ")]),t._v(" "),a("el-radio",{attrs:{label:0},model:{value:e.dateType,callback:function(i){t.$set(e,"dateType",i)},expression:"item.dateType"}},[t._v("\n 年-月-日\n ")])],1)],t._v(" "),t.currentIndex!=i||e.systemFlag||10!=e.type?t._e():[a("div",{key:"parent210"+i,staticClass:"edit-item m-b-10"},[a("div",{staticClass:"edit-item-title edit-title-padding"},[t._v("大写")]),t._v(" "),a("el-checkbox",{model:{value:e.openCapitalize,callback:function(i){t.$set(e,"openCapitalize",i)},expression:"item.openCapitalize"}},[t._v("显示大写")])],1)],t._v(" "),t.currentIndex!=i||e.name.includes("groupc")?t._e():[a("div",{key:"parent2"+i,staticClass:"edit-item m-b-10"},[a("div",{staticClass:"edit-item-title edit-title-padding"},[t._v("验证")]),t._v(" "),a("el-checkbox",{on:{change:function(i){t.changeMust(i,!!e.list,e)}},model:{value:e.isMust,callback:function(i){t.$set(e,"isMust",i)},expression:"item.isMust"}},[t._v("必填")])],1)],t._v(" "),t.currentIndex!=i||"performanceKing"!=e.name&&"competitorInfo"!=e.name?t._e():[a("div",{key:"parent21"+i,staticClass:"edit-item m-b-10"},[a("div",{staticClass:"edit-item-title edit-title-padding"},[t._v("验证 是否必填")]),t._v(" "),a("div",{staticClass:"must-list"},t._l(e.list,function(e,i){return a("div",{key:"list"+i,staticClass:"must-list-cell m-b-10"},[a("el-checkbox",{model:{value:e.isMust,callback:function(i){t.$set(e,"isMust",i)},expression:"listItem.isMust"}},[t._v(t._s(e.title))])],1)}))])],t._v(" "),t.currentIndex!=i||e.name.includes("groupc")?t._e():[a("div",{key:"parent3"+i,staticClass:"edit-item "},[a("div",{staticClass:"edit-item-title edit-title-padding"},[t._v("记忆")]),t._v(" "),a("el-checkbox",{model:{value:e.memory,callback:function(i){t.$set(e,"memory",i)},expression:"item.memory"}},[t._v("是否记忆")])],1)],t._v(" "),t.childIndex==i&&e.children&&e.children.length?[t._l(e.children,function(e,s){return[t.currentChildIndex!=s||e.systemFlag||6==e.type?t._e():[a("div",{key:"child"+s,staticClass:"edit-item test-title limit-w-340"},[a("div",{staticClass:"edit-item-title"},[t._v("标题")]),t._v(" "),a("limitInput",{attrs:{inputWidth:340,limitClass:"limit-color",inputValue:e.title,holder:"",disflag:e.systemFlag,getByType:"word",maxLength:10},on:{"update:inputValue":function(i){t.$set(e,"title",i)}}}),t._v(" "),7==e.type?a("p",{staticStyle:{"margin-top":"8px","font-size":"12px",color:"rgba(255, 255, 255, 0.7)"}},[t._v("\n 图片最多可添加9张\n ")]):t._e()],1)],t._v(" "),t.currentChildIndex!=s||e.systemFlag||6!=e.type?t._e():[a("div",{key:"child2"+s,staticClass:"edit-item test-title limit-w-340"},[a("div",{staticClass:"edit-item-title"},[t._v("标题 最多10个字")]),t._v(" "),a("limitInput",{attrs:{inputWidth:340,limitClass:"limit-color",inputValue:e.startTitle,holder:"",disflag:e.systemFlag,getByType:"char",maxLength:10},on:{"update:inputValue":function(i){t.$set(e,"startTitle",i)}}})],1),t._v(" "),a("div",{key:"child4"+s,staticClass:"edit-item test-title limit-w-340"},[a("div",{staticClass:"edit-item-title"},[t._v("标题2 最多10个字")]),t._v(" "),a("limitInput",{attrs:{inputWidth:340,limitClass:"limit-color",inputValue:e.endTitle,holder:"",disflag:e.systemFlag,getByType:"char",maxLength:10},on:{"update:inputValue":function(i){t.$set(e,"endTitle",i)}}})],1)],t._v(" "),t.currentChildIndex!=s||e.systemFlag||5==e.type||7==e.type?t._e():[a("div",{key:"child1"+s,staticClass:"edit-item test-title limit-w-340"},[a("div",{staticClass:"edit-item-title"},[t._v("提示文字最多20个字")]),t._v(" "),a("limitInput",{attrs:{inputWidth:340,limitClass:"limit-color",inputValue:e.placeholder,holder:"",disflag:!1,getByType:"word",maxLength:20},on:{"update:inputValue":function(i){t.$set(e,"placeholder",i)}}}),t._v(" "),2==e.type||9==e.type?a("p",{staticClass:"font-12 m-t-10"},[t._v("内容最多输入500个字")]):t._e(),t._v(" "),1==e.type?a("p",{staticClass:"font-12 m-t-10"},[t._v("内容最多输入100个字")]):t._e()],1)],t._v(" "),t.currentChildIndex!=s||e.systemFlag||3!=e.type?t._e():[a("div",{key:"child6"+s,staticClass:"edit-item test-title limit-w-340"},[a("div",{staticClass:"edit-item-title"},[t._v("单位最多20个字")]),t._v(" "),a("limitInput",{attrs:{inputWidth:340,limitClass:"limit-color",inputValue:e.unit,holder:"",disflag:!1,getByType:"word",maxLength:20},on:{"update:inputValue":function(i){t.$set(e,"unit",i)}}}),t._v(" "),a("p",{staticClass:"font-12 m-t-10"},[t._v("内容最大限制为12位数")])],1)],t._v(" "),t.currentChildIndex!=s||e.systemFlag||5!=e.type&&6!=e.type?t._e():[a("div",{key:"child7"+s,staticClass:"edit-item "},[a("div",{staticClass:"edit-item-title"},[t._v("日期类型")]),t._v(" "),a("el-radio",{attrs:{label:1},model:{value:e.dateType,callback:function(i){t.$set(e,"dateType",i)},expression:"childItem.dateType"}},[t._v("\n 年-月-日 时 分\n ")]),t._v(" "),a("el-radio",{attrs:{label:0},model:{value:e.dateType,callback:function(i){t.$set(e,"dateType",i)},expression:"childItem.dateType"}},[t._v("\n 年-月-日\n ")])],1)],t._v(" "),t.currentChildIndex!=s||e.systemFlag||"4"!=e.type?t._e():[a("div",{key:"child9"+s,staticClass:"edit-item "},[a("div",{staticClass:"edit-item-title"},[t._v("选项 "),e.systemFlag?t._e():a("span",[t._v("最多20项,每项最多10个字")])]),t._v(" "),t._l(e.list,function(s,l){return[a("div",{key:"child10"+l,staticClass:"margin-t-15 limit-w-340",style:0==l?"margin-top: 0":""},[a("limitInput",{attrs:{inputWidth:340,limitClass:"limit-color",inputValue:s.value,holder:"",disflag:e.systemFlag,getByType:"char",maxLength:10},on:{"update:inputValue":function(e){t.$set(s,"value",e)}}}),t._v(" "),!e.systemFlag&&e.list.length>1?a("i",{staticClass:"opt-btn el-icon-remove del-item",on:{click:function(a){t.delChildItem(i,l,e)}}}):t._e(),t._v(" "),!e.systemFlag&&l<19?[l==e.list.length-1?a("i",{staticClass:"opt-btn el-icon-circle-plus add-item",on:{click:function(a){t.addChildItem(i,l,e)}}}):t._e()]:t._e()],2)]})],2),t._v(" "),a("div",{key:"child922"+s,staticClass:"edit-item m-b-10"},[a("div",{staticClass:"edit-item-title edit-title-padding"},[t._v("选择框类型")]),t._v(" "),a("div",[a("el-radio",{attrs:{label:0},model:{value:e.chooseType,callback:function(i){t.$set(e,"chooseType",i)},expression:"childItem.chooseType"}},[t._v("单选")]),t._v(" "),a("el-radio",{attrs:{label:1},model:{value:e.chooseType,callback:function(i){t.$set(e,"chooseType",i)},expression:"childItem.chooseType"}},[t._v("多选")])],1)])],t._v(" "),t.currentChildIndex!=s||e.systemFlag||10!=e.type?t._e():[a("div",{key:"child910"+s,staticClass:"edit-item m-b-10"},[a("div",{staticClass:"edit-item-title edit-title-padding"},[t._v("大写")]),t._v(" "),a("el-checkbox",{model:{value:e.openCapitalize,callback:function(i){t.$set(e,"openCapitalize",i)},expression:"childItem.openCapitalize"}},[t._v("显示大写")])],1)],t._v(" "),t.currentChildIndex==s?[a("div",{key:"child11"+s,staticClass:"edit-item"},[a("div",{staticClass:"edit-item-title"},[t._v("验证")]),t._v(" "),a("el-checkbox",{on:{change:function(i){t.changeMust(i,!!e.list,e)}},model:{value:e.isMust,callback:function(i){t.$set(e,"isMust",i)},expression:"childItem.isMust"}},[t._v("必填")])],1)]:t._e(),t._v(" "),t.currentChildIndex!=s||"performanceKing"!=e.name&&"competitorInfo"!=e.name?t._e():[a("div",{key:"child111"+s,staticClass:"edit-item m-b-10"},[a("div",{staticClass:"edit-item-title edit-title-padding"},[t._v("验证 是否必填")]),t._v(" "),a("div",{staticClass:"must-list"},t._l(e.list,function(e,i){return a("div",{key:"list111"+i,staticClass:"must-list-cell m-b-10"},[a("el-checkbox",{model:{value:e.isMust,callback:function(i){t.$set(e,"isMust",i)},expression:"listItem.isMust"}},[t._v(t._s(e.title))])],1)}))])],t._v(" "),t.currentChildIndex==s?[a("div",{key:"child12"+s,staticClass:"edit-item "},[a("div",{staticClass:"edit-item-title edit-title-padding"},[t._v("记忆")]),t._v(" "),a("el-checkbox",{model:{value:e.memory,callback:function(i){t.$set(e,"memory",i)},expression:"childItem.memory"}},[t._v("是否记忆")])],1)]:t._e()]})]:t._e()]})],2)])]),t._v(" "),a("el-tab-pane",{attrs:{label:"模板设置",name:"second"}},[a("div",{staticClass:"template-item limit-w-340"},[a("div",{staticClass:"edit-item-title edit-title-padding"},[t._v("模板名称 最多10个字")]),t._v(" "),a("limitInput",{attrs:{inputWidth:340,limitClass:"limit-color",inputValue:t.templateObj.title,holder:"",disflag:!1,getByType:"char",maxLength:10},on:{"update:inputValue":function(e){t.$set(t.templateObj,"title",e)}}})],1),t._v(" "),a("div",{staticClass:"template-item limit-w-340"},[a("div",{staticClass:"edit-item-title edit-title-padding"},[t._v("模板描述 最多20个字")]),t._v(" "),a("limitInput",{attrs:{inputWidth:340,limitClass:"limit-color",inputValue:t.templateObj.description,holder:"",disflag:!1,getByType:"char",maxLength:20},on:{"update:inputValue":function(e){t.$set(t.templateObj,"description",e)}}})],1),t._v(" "),a("div",{staticClass:"template-item "},[a("div",{staticClass:"edit-item-title edit-title-padding"},[t._v("门店类型")]),t._v(" "),a("div",{staticClass:"store-type-list"},t._l(t.storeList,function(e,i){return a("div",{key:e.name+i,staticClass:"store-type-cell m-b-20"},[a("el-radio",{attrs:{label:e.id,disabled:e.disabled},model:{value:t.templateObj.storeType,callback:function(e){t.$set(t.templateObj,"storeType",e)},expression:"templateObj.storeType"}},[t._v(t._s(e.name))])],1)}))])])],1)],1)])]),t._v(" "),a("qrcode-dialog",{ref:"qrcodePreview",model:{value:t.dialogVisible,callback:function(e){t.dialogVisible=e},expression:"dialogVisible"}})],1)},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"template-title flex-1"},[e("img",{attrs:{src:i("LbEI"),alt:"logo"}}),this._v(" "),e("span",{staticClass:"template-title-span"},[this._v("日报设置")])])}]};var M=i("VU/8")(w,T,!1,function(t){i("Uq5N")},"data-v-b3bc0868",null);e.default=M.exports},IDUm:function(t,e){},PAYw:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a={name:"block-com",props:{childItem:{type:[Object,Array],default:function(){return{}}}}},s={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"block block-field"},[i("div",{staticClass:"block-head"},[i("div",{class:["opencard-item-title",t.childItem.title.length>=6?"title-pre-wrap":""]},[t._v(t._s(t.childItem.title))])]),t._v(" "),i("ul",{staticClass:"view-content"},t._l(t.childItem.list,function(e,a){return i("li",{key:"performance"+a,staticClass:"block-filed-item border-bottom-1"},[i("div",{class:["opencard-item-title",e.title.length>=6?"title-pre-wrap":""]},[t._v(t._s(e.title))]),t._v(" "),i("div",{staticClass:"draged-item-show"},[i("span",{staticClass:"show-warm-text show-warm-text-flag "},[t._v(t._s(e.placeholder)+" "+t._s(e.isMust?"(必填)":""))])])])})),t._v(" "),"competitorInfo"==t.childItem.name?i("div",{staticClass:"compete-add"},[t._v("\n +竞品信息\n ")]):t._e()])},staticRenderFns:[]};var l=i("VU/8")(a,s,!1,function(t){i("hh6r")},"data-v-1dcd7b4c",null);e.default=l.exports},Uq5N:function(t,e){},bu1e:function(t,e){},"c/Tr":function(t,e,i){t.exports={default:i("5zde"),__esModule:!0}},fBQ2:function(t,e,i){"use strict";var a=i("evD5"),s=i("X8DO");t.exports=function(t,e,i){e in t?a.f(t,e,s(0,i)):t[e]=i}},hh6r:function(t,e){},kYZD:function(t,e){},qyJz:function(t,e,i){"use strict";var a=i("+ZMJ"),s=i("kM2E"),l=i("sB3e"),n=i("msXi"),c=i("Mhyx"),r=i("QRG4"),o=i("fBQ2"),d=i("3fs2");s(s.S+s.F*!i("dY0y")(function(t){Array.from(t)}),"Array",{from:function(t){var e,i,s,m,p=l(t),u="function"==typeof this?this:Array,v=arguments.length,h=v>1?arguments[1]:void 0,f=void 0!==h,_=0,g=d(p);if(f&&(h=a(h,v>2?arguments[2]:void 0,2)),void 0==g||u==Array&&c(g))for(i=new u(e=r(p.length));e>_;_++)o(i,_,f?h(p[_],_):p[_]);else for(m=g.call(p),i=new u;!(s=m.next()).done;_++)o(i,_,f?n(m,h,[s.value,_],!0):s.value);return i.length=_,i}})},raLb:function(t,e){},"s4D+":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a={name:"input-com",props:{childItem:{type:[Object,Array],default:function(){return{}}}}},s={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{class:[2==t.childItem.type?"h-66":""]},[9!=t.childItem.type?i("div",{class:["opencard-item-title",t.childItem.title.length>=6?"title-pre-wrap":""]},[t._v(t._s(t.childItem.title))]):t._e(),t._v(" "),i("div",{staticClass:"draged-item-show"},[i("span",{staticClass:"show-warm-text show-warm-text-flag",style:{"padding-left":9==t.childItem.type?"15px":"0"}},[t._v(t._s(t.childItem.placeholder)+" "+t._s(t.childItem.isMust?"(必填)":""))])]),t._v(" "),10==t.childItem.type&&t.childItem.openCapitalize?i("div",{staticClass:"show-capitalize font-12 color-909399 p-l-10 border-box"},[t._v("大写:壹万元整(示例)")]):t._e()])},staticRenderFns:[]};var l=i("VU/8")(a,s,!1,function(t){i("IDUm")},"data-v-078733c8",null);e.default=l.exports},t0b0:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a={name:"select-com",props:{childItem:{type:[Object,Array],default:function(){return{}}}}},s={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",[i("div",{class:["opencard-item-title",t.childItem.title.length>=6?"title-pre-wrap":""]},[t._v(t._s(t.childItem.title))]),t._v(" "),i("div",{staticClass:"draged-item-show"},[i("span",{staticClass:"show-warm-text show-warm-text-flag select-flag"},[t._v(t._s(t.childItem.placeholder)+" "+t._s(t.childItem.isMust?"(必填)":"")+" "),i("i",{staticClass:"el-icon-arrow-right"})])])])},staticRenderFns:[]};var l=i("VU/8")(a,s,!1,function(t){i("raLb")},"data-v-7f500e21",null);e.default=l.exports}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([44],{JuFH:function(t,e){},"r//C":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=a("fZjL"),n=a.n(o),s=a("2eFk"),i=a("Ie7z"),l=a("Ke24"),r=a("LRn8"),c=a("P9l9"),d=a("PI0u"),u=a("3E4D"),p=a("Ch4/"),h={name:"reviewed",props:{brandId:{type:String,default:function(){return""}},activeGroupId:{type:String,default:function(){return""}}},data:function(){return{tableH:window.screen.availHeight-464-126,activeTab:"1",activeBrand:this.brandId,activeGroup:this.activeGroupId,topMenuData:[{id:"1",name:"不良评价回访记录"}],activeId:"1",showDialog:!1,conditionObj:{searchInput:"",storeGroup:[],storeType:"",dateRange:[]},storeTypeOptions:[{value:"",label:"所有"},{value:"0",label:"直营"},{value:"1",label:"联营"},{value:"2",label:"代理"},{value:"3",label:"代销"},{value:"4",label:"托管"}],selectRadio:"",tableData:[],multipleSelection:[],currentPage:1,pageSize:10,total:0,appScene:2,defaultStoreList:[],storeTreeSet:{isSelectPerson:!1,dialogVisible:!1,isSingle:!1}}},computed:{},methods:{handleCommand:function(t){this.selectRadio=t},setSelectTab:function(t){this.activeTab=t.tabId},toInput:Object(d.a)(function(t,e){this.currentPage=1,this.getTableList()},500),changeStoreType:function(){this.currentPage=1,this.getTableList()},changeDate:function(){this.currentPage=1,this.getTableList()},handleSelectionChange:function(t){this.multipleSelection=t},delDepart:function(t,e){e.splice(t,1),this.currentPage=1,this.getTableList()},multDel:function(){if(!this.multipleSelection.length)return this.$message.error({duration:1e3,message:"请选择删除项"}),!1;this.showDialog=!0},hideDialog:function(t){if(this.showDialog=!1,!n()(t).length)return!1;this.postMultDel(t)},postMultDel:function(t){var e=this,a=[],o=[];e.conditionObj.storeGroup.forEach(function(t){2==t.type&&a.push(t.groupId),3==t.type&&o.push(t.storeId)});var n={search:e.conditionObj.searchInput||"",filterStoreIds:o.join(",")||"",storeIds:e.multipleSelection.map(function(t){return t.storeId}).join(",")||"",storeGroupIds:a.join(",")||"",storeType:e.conditionObj.storeType||"",startDate:e.conditionObj.dateRange[0]||"",endDate:e.conditionObj.dateRange[1]||"",brandId:e.activeBrand,delTaskStatus:t.delOptFlag,reason:t.reason,isAll:e.selectRadio,taskType:0};Object(c.c)("/haoban-app-tel-task-web/task/batch-del-store-task-list",n).then(function(t){var a=t.data;if(1==a.errorCode)return u.a.showmsg("删除成功","success"),void e.getTableList();p.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},exportExcel:function(){var t=[],e=[];this.conditionObj.storeGroup.forEach(function(a){2==a.type&&t.push(a.groupId),3==a.type&&e.push(a.storeId)});var a={search:this.conditionObj.searchInput||"",filterStoreIds:e.join(",")||"",storeGroupIds:t.join(",")||"",storeType:this.conditionObj.storeType||"",startDate:this.conditionObj.dateRange[0]||"",endDate:this.conditionObj.dateRange[1]||"",brandId:this.activeBrand,taskType:0},o="search="+a.search+"&taskType="+a.taskType+"&filterStoreIds="+a.filterStoreIds+"&storeGroupIds="+a.storeGroupIds+"&storeType="+a.storeType+"&startDate="+a.startDate+"&endDate="+a.endDate+"&brandId="+a.brandId+"&currentPage="+a.currentPage+"&pageSize="+a.pageSize;window.open(window.location.origin+"/haoban-app-tel-task-web/task/export-store-task-list?"+o)},handleSizeChange:function(t){this.pageSize=t,this.getTableList()},handleCurrentChange:function(t){this.currentPage=t,this.getTableList()},showDialogLayer:function(t,e){this.selectType=t,this.changed=t,this.defaultStoreList=e,this.storeTreeSet={dialogVisible:!0,isSingle:!1,isSelectPerson:!1}},handleSelectedList:function(t){this.conditionObj.storeGroup=t,this.getTableList()},toDetail:function(t,e){this.$router.push("badEvaluateDetail?storeId="+e.storeId)},getTableList:function(t){var e=this,a=[],o=[];e.conditionObj.storeGroup.forEach(function(t){2==t.type&&a.push(t.groupId),3==t.type&&o.push(t.storeId)});var n={search:e.conditionObj.searchInput||"",filterStoreIds:o.join(",")||"",storeGroupIds:a.join(",")||"",storeType:e.conditionObj.storeType||"",startDate:e.conditionObj.dateRange[0]||"",endDate:e.conditionObj.dateRange[1]||"",pageNum:e.currentPage,pageSize:e.pageSize,brandId:e.activeBrand,taskType:0};Object(c.a)("/haoban-app-tel-task-web/task/store-task-list",n).then(function(t){var a=t.data;if(1==a.errorCode)return e.tableData=a.result.list||[],e.total=a.result.pageInfo.total,!1;p.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},watch:{brandId:function(t,e){t&&(this.activeBrand=t,this.getTableList())},activeGroupId:function(t,e){t&&(this.activeGroup=t)}},mounted:function(){document.documentElement.style.backgroundColor="#f0f2f5",this.activeBrand=this.brandId,this.brandId&&this.getTableList()},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{appDetail:s.a,commonDetailTop:l.a,vueSelectStore:i.a,multipleDel:r.a}},b={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"daily-set-wrap "},[a("common-detail-top",{attrs:{topMenuData:t.topMenuData,activeId:t.activeId}}),t._v(" "),a("div",{staticClass:"daily-set-content boder-box"},[a("div",{staticClass:"table-condition flex flex-space-between m-b-23"},[a("div",{staticClass:"table-condition-left"},[a("el-input",{staticClass:"w-264 m-l-10",staticStyle:{width:"264px"},attrs:{placeholder:"请输入门店名称"},nativeOn:{keyup:function(e){return a=e,t.toInput(a,t.conditionObj.searchInput);var a}},model:{value:t.conditionObj.searchInput,callback:function(e){t.$set(t.conditionObj,"searchInput",e)},expression:"conditionObj.searchInput"}},[a("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})]),t._v(" "),a("div",{staticClass:"flex-column item-cell-select inline-block m-l-10"},[a("div",{staticClass:"depart-item-wrap"},[a("div",{staticClass:"el-select el-select--large depart-item-content",staticStyle:{width:"213px"},on:{click:function(e){t.showDialogLayer("store",t.conditionObj.storeGroup)}}},[t.conditionObj.storeGroup.length?t._e():a("span",{staticClass:"font-14 color-c0c4cc"},[t._v("请选择门店分组")]),t._v(" "),a("div",{staticClass:"el-select__tags",staticStyle:{"max-width":"181px"}},[a("span",[t._l(t.conditionObj.storeGroup,function(e,o){return[a("span",{key:o,staticClass:"el-tag el-tag--info el-tag--small"},[a("span",{staticClass:"el-select__tags-text"},[t._v(t._s(e.name||e.storeName))]),a("i",{staticClass:"el-tag__close el-icon-close",on:{click:function(e){e.stopPropagation(),t.delDepart(o,t.conditionObj.storeGroup)}}})])]})],2)])])])]),t._v(" "),a("el-select",{staticClass:"w-105 m-l-10",attrs:{placeholder:"请选择"},on:{change:t.changeStoreType},model:{value:t.conditionObj.storeType,callback:function(e){t.$set(t.conditionObj,"storeType",e)},expression:"conditionObj.storeType"}},t._l(t.storeTypeOptions,function(t){return a("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),t._v(" "),a("el-date-picker",{staticClass:"m-l-10",attrs:{editable:!1,"value-format":"yyyy-MM-dd",type:"daterange",align:"right","unlink-panels":"","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},on:{change:t.changeDate},model:{value:t.conditionObj.dateRange,callback:function(e){t.$set(t.conditionObj,"dateRange",e)},expression:"conditionObj.dateRange"}})],1),t._v(" "),a("div",{staticClass:"table-condition-right"},[a("el-button",{attrs:{type:"danger"},on:{click:t.multDel}},[t._v("批量删除")]),t._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:t.exportExcel}},[t._v("导出")])],1)]),t._v(" "),a("el-table",{ref:"multipleTable",staticClass:"select-table",staticStyle:{width:"100%"},attrs:{data:t.tableData,"tooltip-effect":"dark",height:t.tableH},on:{"selection-change":t.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"35"}}),t._v(" "),a("el-table-column",{attrs:{width:"25"},scopedSlots:t._u([{key:"header",fn:function(e){return[a("el-dropdown",{staticStyle:{"line-height":"10px",padding:"0","margin-left":"-15px",transform:"translateY(4px)","-webkit-transform":"translateY(4px)"},attrs:{placement:"bottom-start"},on:{command:t.handleCommand}},[a("span",{staticClass:"el-dropdown-link"},[a("i",{staticClass:"el-icon-arrow-down el-icon--right"})]),t._v(" "),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[a("el-dropdown-item",{attrs:{command:"0"}},[a("span",{style:{color:0==t.selectRadio?"#1890ff":"#606266"}},[t._v("选择当页")])]),t._v(" "),a("el-dropdown-item",{attrs:{command:"1"}},[a("span",{style:{color:1==t.selectRadio?"#1890ff":"#606266"}},[t._v("选择全部")])])],1)],1)]}},{key:"default",fn:function(t){}}])}),t._v(" "),a("el-table-column",{attrs:{label:"门店名称",width:"120","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.storeName))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"任务总数"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.taskCount))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"已完成","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.completedCount))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"完成率","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.completedRate))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"待完成","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.noCompletedCount))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"逾期中","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.overdueCount))]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){t.toDetail(e.$index,e.row)}}},[t._v("查看详情")])]}}])})],1),t._v(" "),0!=t.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("el-pagination",{attrs:{background:"","current-page":t.currentPage,"page-sizes":[10,20,30,40],"page-size":t.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1):t._e()],1),t._v(" "),a("multiple-del",{attrs:{showDialog:t.showDialog,detailFlag:!1},on:{hideDialog:t.hideDialog}}),t._v(" "),a("vue-select-store",{ref:"storeSelector",attrs:{currentBrand:t.activeGroup,appScene:t.appScene,treeSet:t.storeTreeSet,selectType:"group",defaultList:t.defaultStoreList},on:{handleSelectedList:t.handleSelectedList}})],1)},staticRenderFns:[]};var f=a("VU/8")(h,b,!1,function(t){a("JuFH")},"data-v-6971a63a",null);e.default=f.exports}}); webpackJsonp([42],{JuFH:function(t,e){},"r//C":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=a("fZjL"),n=a.n(o),s=a("2eFk"),i=a("Ie7z"),l=a("Ke24"),r=a("LRn8"),c=a("P9l9"),d=a("PI0u"),u=a("3E4D"),p=a("Ch4/"),h={name:"reviewed",props:{brandId:{type:String,default:function(){return""}},activeGroupId:{type:String,default:function(){return""}}},data:function(){return{tableH:window.screen.availHeight-464-126,activeTab:"1",activeBrand:this.brandId,activeGroup:this.activeGroupId,topMenuData:[{id:"1",name:"不良评价回访记录"}],activeId:"1",showDialog:!1,conditionObj:{searchInput:"",storeGroup:[],storeType:"",dateRange:[]},storeTypeOptions:[{value:"",label:"所有"},{value:"0",label:"直营"},{value:"1",label:"联营"},{value:"2",label:"代理"},{value:"3",label:"代销"},{value:"4",label:"托管"}],selectRadio:"",tableData:[],multipleSelection:[],currentPage:1,pageSize:10,total:0,appScene:2,defaultStoreList:[],storeTreeSet:{isSelectPerson:!1,dialogVisible:!1,isSingle:!1}}},computed:{},methods:{handleCommand:function(t){this.selectRadio=t},setSelectTab:function(t){this.activeTab=t.tabId},toInput:Object(d.a)(function(t,e){this.currentPage=1,this.getTableList()},500),changeStoreType:function(){this.currentPage=1,this.getTableList()},changeDate:function(){this.currentPage=1,this.getTableList()},handleSelectionChange:function(t){this.multipleSelection=t},delDepart:function(t,e){e.splice(t,1),this.currentPage=1,this.getTableList()},multDel:function(){if(!this.multipleSelection.length)return this.$message.error({duration:1e3,message:"请选择删除项"}),!1;this.showDialog=!0},hideDialog:function(t){if(this.showDialog=!1,!n()(t).length)return!1;this.postMultDel(t)},postMultDel:function(t){var e=this,a=[],o=[];e.conditionObj.storeGroup.forEach(function(t){2==t.type&&a.push(t.groupId),3==t.type&&o.push(t.storeId)});var n={search:e.conditionObj.searchInput||"",filterStoreIds:o.join(",")||"",storeIds:e.multipleSelection.map(function(t){return t.storeId}).join(",")||"",storeGroupIds:a.join(",")||"",storeType:e.conditionObj.storeType||"",startDate:e.conditionObj.dateRange[0]||"",endDate:e.conditionObj.dateRange[1]||"",brandId:e.activeBrand,delTaskStatus:t.delOptFlag,reason:t.reason,isAll:e.selectRadio,taskType:0};Object(c.c)("/haoban-app-tel-task-web/task/batch-del-store-task-list",n).then(function(t){var a=t.data;if(1==a.errorCode)return u.a.showmsg("删除成功","success"),void e.getTableList();p.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},exportExcel:function(){var t=[],e=[];this.conditionObj.storeGroup.forEach(function(a){2==a.type&&t.push(a.groupId),3==a.type&&e.push(a.storeId)});var a={search:this.conditionObj.searchInput||"",filterStoreIds:e.join(",")||"",storeGroupIds:t.join(",")||"",storeType:this.conditionObj.storeType||"",startDate:this.conditionObj.dateRange[0]||"",endDate:this.conditionObj.dateRange[1]||"",brandId:this.activeBrand,taskType:0},o="search="+a.search+"&taskType="+a.taskType+"&filterStoreIds="+a.filterStoreIds+"&storeGroupIds="+a.storeGroupIds+"&storeType="+a.storeType+"&startDate="+a.startDate+"&endDate="+a.endDate+"&brandId="+a.brandId+"&currentPage="+a.currentPage+"&pageSize="+a.pageSize;window.open(window.location.origin+"/haoban-app-tel-task-web/task/export-store-task-list?"+o)},handleSizeChange:function(t){this.pageSize=t,this.getTableList()},handleCurrentChange:function(t){this.currentPage=t,this.getTableList()},showDialogLayer:function(t,e){this.selectType=t,this.changed=t,this.defaultStoreList=e,this.storeTreeSet={dialogVisible:!0,isSingle:!1,isSelectPerson:!1}},handleSelectedList:function(t){this.conditionObj.storeGroup=t,this.getTableList()},toDetail:function(t,e){this.$router.push("badEvaluateDetail?storeId="+e.storeId)},getTableList:function(t){var e=this,a=[],o=[];e.conditionObj.storeGroup.forEach(function(t){2==t.type&&a.push(t.groupId),3==t.type&&o.push(t.storeId)});var n={search:e.conditionObj.searchInput||"",filterStoreIds:o.join(",")||"",storeGroupIds:a.join(",")||"",storeType:e.conditionObj.storeType||"",startDate:e.conditionObj.dateRange[0]||"",endDate:e.conditionObj.dateRange[1]||"",pageNum:e.currentPage,pageSize:e.pageSize,brandId:e.activeBrand,taskType:0};Object(c.a)("/haoban-app-tel-task-web/task/store-task-list",n).then(function(t){var a=t.data;if(1==a.errorCode)return e.tableData=a.result.list||[],e.total=a.result.pageInfo.total,!1;p.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},watch:{brandId:function(t,e){t&&(this.activeBrand=t,this.getTableList())},activeGroupId:function(t,e){t&&(this.activeGroup=t)}},mounted:function(){document.documentElement.style.backgroundColor="#f0f2f5",this.activeBrand=this.brandId,this.brandId&&this.getTableList()},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{appDetail:s.a,commonDetailTop:l.a,vueSelectStore:i.a,multipleDel:r.a}},b={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"daily-set-wrap "},[a("common-detail-top",{attrs:{topMenuData:t.topMenuData,activeId:t.activeId}}),t._v(" "),a("div",{staticClass:"daily-set-content boder-box"},[a("div",{staticClass:"table-condition flex flex-space-between m-b-23"},[a("div",{staticClass:"table-condition-left"},[a("el-input",{staticClass:"w-264 m-l-10",staticStyle:{width:"264px"},attrs:{placeholder:"请输入门店名称"},nativeOn:{keyup:function(e){return a=e,t.toInput(a,t.conditionObj.searchInput);var a}},model:{value:t.conditionObj.searchInput,callback:function(e){t.$set(t.conditionObj,"searchInput",e)},expression:"conditionObj.searchInput"}},[a("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})]),t._v(" "),a("div",{staticClass:"flex-column item-cell-select inline-block m-l-10"},[a("div",{staticClass:"depart-item-wrap"},[a("div",{staticClass:"el-select el-select--large depart-item-content",staticStyle:{width:"213px"},on:{click:function(e){t.showDialogLayer("store",t.conditionObj.storeGroup)}}},[t.conditionObj.storeGroup.length?t._e():a("span",{staticClass:"font-14 color-c0c4cc"},[t._v("请选择门店分组")]),t._v(" "),a("div",{staticClass:"el-select__tags",staticStyle:{"max-width":"181px"}},[a("span",[t._l(t.conditionObj.storeGroup,function(e,o){return[a("span",{key:o,staticClass:"el-tag el-tag--info el-tag--small"},[a("span",{staticClass:"el-select__tags-text"},[t._v(t._s(e.name||e.storeName))]),a("i",{staticClass:"el-tag__close el-icon-close",on:{click:function(e){e.stopPropagation(),t.delDepart(o,t.conditionObj.storeGroup)}}})])]})],2)])])])]),t._v(" "),a("el-select",{staticClass:"w-105 m-l-10",attrs:{placeholder:"请选择"},on:{change:t.changeStoreType},model:{value:t.conditionObj.storeType,callback:function(e){t.$set(t.conditionObj,"storeType",e)},expression:"conditionObj.storeType"}},t._l(t.storeTypeOptions,function(t){return a("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),t._v(" "),a("el-date-picker",{staticClass:"m-l-10",attrs:{editable:!1,"value-format":"yyyy-MM-dd",type:"daterange",align:"right","unlink-panels":"","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},on:{change:t.changeDate},model:{value:t.conditionObj.dateRange,callback:function(e){t.$set(t.conditionObj,"dateRange",e)},expression:"conditionObj.dateRange"}})],1),t._v(" "),a("div",{staticClass:"table-condition-right"},[a("el-button",{attrs:{type:"danger"},on:{click:t.multDel}},[t._v("批量删除")]),t._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:t.exportExcel}},[t._v("导出")])],1)]),t._v(" "),a("el-table",{ref:"multipleTable",staticClass:"select-table",staticStyle:{width:"100%"},attrs:{data:t.tableData,"tooltip-effect":"dark",height:t.tableH},on:{"selection-change":t.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"35"}}),t._v(" "),a("el-table-column",{attrs:{width:"25"},scopedSlots:t._u([{key:"header",fn:function(e){return[a("el-dropdown",{staticStyle:{"line-height":"10px",padding:"0","margin-left":"-15px",transform:"translateY(4px)","-webkit-transform":"translateY(4px)"},attrs:{placement:"bottom-start"},on:{command:t.handleCommand}},[a("span",{staticClass:"el-dropdown-link"},[a("i",{staticClass:"el-icon-arrow-down el-icon--right"})]),t._v(" "),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[a("el-dropdown-item",{attrs:{command:"0"}},[a("span",{style:{color:0==t.selectRadio?"#1890ff":"#606266"}},[t._v("选择当页")])]),t._v(" "),a("el-dropdown-item",{attrs:{command:"1"}},[a("span",{style:{color:1==t.selectRadio?"#1890ff":"#606266"}},[t._v("选择全部")])])],1)],1)]}},{key:"default",fn:function(t){}}])}),t._v(" "),a("el-table-column",{attrs:{label:"门店名称",width:"120","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.storeName))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"任务总数"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.taskCount))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"已完成","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.completedCount))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"完成率","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.completedRate))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"待完成","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.noCompletedCount))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"逾期中","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.overdueCount))]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){t.toDetail(e.$index,e.row)}}},[t._v("查看详情")])]}}])})],1),t._v(" "),0!=t.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("el-pagination",{attrs:{background:"","current-page":t.currentPage,"page-sizes":[10,20,30,40],"page-size":t.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1):t._e()],1),t._v(" "),a("multiple-del",{attrs:{showDialog:t.showDialog,detailFlag:!1},on:{hideDialog:t.hideDialog}}),t._v(" "),a("vue-select-store",{ref:"storeSelector",attrs:{currentBrand:t.activeGroup,appScene:t.appScene,treeSet:t.storeTreeSet,selectType:"group",defaultList:t.defaultStoreList},on:{handleSelectedList:t.handleSelectedList}})],1)},staticRenderFns:[]};var f=a("VU/8")(h,b,!1,function(t){a("JuFH")},"data-v-6971a63a",null);e.default=f.exports}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([42],{iG3v:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=a("fZjL"),n=a.n(o),i=a("2eFk"),s=a("Ie7z"),l=a("Ke24"),r=a("LRn8"),c=a("P9l9"),d=a("PI0u"),u=a("3E4D"),p=a("Ch4/"),h={name:"reviewed",props:{brandId:{type:String,default:function(){return""}},activeGroupId:{type:String,default:function(){return""}}},data:function(){return{tableH:window.screen.availHeight-464-126,activeTab:"1",activeBrand:this.brandId,activeGroup:this.activeGroupId,topMenuData:[{id:"1",name:"话务任务记录"}],activeId:"1",showDialog:!1,conditionObj:{searchInput:"",storeGroup:[],storeType:"",dateRange:[]},storeTypeOptions:[{value:"",label:"所有"},{value:"0",label:"直营"},{value:"1",label:"联营"},{value:"2",label:"代理"},{value:"3",label:"代销"},{value:"4",label:"托管"}],selectRadio:"",tableData:[],multipleSelection:[],currentPage:1,pageSize:10,total:0,appScene:2,defaultStoreList:[],storeTreeSet:{isSelectPerson:!1,dialogVisible:!1,isSingle:!1}}},computed:{},methods:{handleCommand:function(t){this.selectRadio=t},setSelectTab:function(t){this.activeTab=t.tabId},toInput:Object(d.a)(function(t,e){this.currentPage=1,this.getTableList()},500),changeStoreType:function(){this.currentPage=1,this.getTableList()},changeDate:function(){this.currentPage=1,this.getTableList()},handleSelectionChange:function(t){this.multipleSelection=t},delDepart:function(t,e){e.splice(t,1),this.currentPage=1,this.getTableList()},multDel:function(){if(!this.multipleSelection.length)return this.$message.error({duration:1e3,message:"请选择删除项"}),!1;this.showDialog=!0},hideDialog:function(t){if(this.showDialog=!1,!n()(t).length)return!1;this.postMultDel(t)},postMultDel:function(t){var e=this,a=[],o=[];e.conditionObj.storeGroup.forEach(function(t){2==t.type&&a.push(t.groupId),3==t.type&&o.push(t.storeId)});var n={search:e.conditionObj.searchInput||"",filterStoreIds:o.join(",")||"",storeGroupIds:a.join(",")||"",storeType:e.conditionObj.storeType||"",startDate:e.conditionObj.dateRange[0]||"",endDate:e.conditionObj.dateRange[1]||"",brandId:e.activeBrand,taskType:1};Object(c.c)("/haoban-app-tel-task-web/task/batch-del-store-task-list",n).then(function(t){var a=t.data;if(1==a.errorCode)return u.a.showmsg("删除成功","success"),void e.getTableList();p.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},exportExcel:function(){var t=[],e=[];this.conditionObj.storeGroup.forEach(function(a){2==a.type&&t.push(a.groupId),3==a.type&&e.push(a.storeId)});var a={search:this.conditionObj.searchInput||"",filterStoreIds:e.join(",")||"",storeGroupIds:t.join(",")||"",storeIds:this.multipleSelection.map(function(t){return t.storeId}).join(",")||"",storeType:this.conditionObj.storeType||"",startDate:this.conditionObj.dateRange[0]||"",endDate:this.conditionObj.dateRange[1]||"",pageNum:this.currentPage,pageSize:this.pageSize,brandId:this.activeBrand,taskType:1},o="search="+a.search+"&taskType="+a.taskType+"&filterStoreIds="+a.filterStoreIds+"&storeGroupIds="+a.storeGroupIds+"&storeType="+a.storeType+"&startDate="+a.startDate+"&endDate="+a.endDate+"&brandId="+a.brandId+"&currentPage="+a.currentPage+"&pageSize="+a.pageSize;window.open(window.location.origin+"/haoban-app-tel-task-web/task/export-store-task-list?"+o)},handleSizeChange:function(t){this.pageSize=t,this.getTableList()},handleCurrentChange:function(t){this.currentPage=t,this.getTableList()},showDialogLayer:function(t,e){this.selectType=t,this.changed=t,this.defaultStoreList=e,this.storeTreeSet={dialogVisible:!0,isSingle:!1,isSelectPerson:!1}},handleSelectedList:function(t){this.conditionObj.storeGroup=t,this.getTableList()},toDetail:function(t,e){this.$router.push("taskDetail?storeId="+e.storeId)},getTableList:function(t){var e=this,a=[],o=[];e.conditionObj.storeGroup.forEach(function(t){2==t.type&&a.push(t.groupId),3==t.type&&o.push(t.storeId)});var n={search:e.conditionObj.searchInput||"",filterStoreIds:o.join(",")||"",storeGroupIds:a.join(",")||"",storeType:e.conditionObj.storeType||"",startDate:e.conditionObj.dateRange[0]||"",endDate:e.conditionObj.dateRange[1]||"",pageNum:e.currentPage,pageSize:e.pageSize,brandId:e.activeBrand,taskType:1};Object(c.a)("/haoban-app-tel-task-web/task/store-task-list",n).then(function(t){var a=t.data;if(1==a.errorCode)return e.tableData=a.result.list||[],e.total=a.result.pageInfo.total,!1;p.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},watch:{brandId:function(t,e){t&&(this.activeBrand=t,this.getTableList())},activeGroupId:function(t,e){t&&(this.activeGroup=t)}},mounted:function(){document.documentElement.style.backgroundColor="#f0f2f5",this.activeBrand=this.brandId,this.brandId&&this.getTableList()},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{appDetail:i.a,commonDetailTop:l.a,vueSelectStore:s.a,multipleDel:r.a}},g={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"daily-set-wrap "},[a("common-detail-top",{attrs:{topMenuData:t.topMenuData,activeId:t.activeId}}),t._v(" "),a("div",{staticClass:"daily-set-content boder-box"},[a("div",{staticClass:"table-condition flex flex-space-between m-b-23"},[a("div",{staticClass:"table-condition-left"},[a("el-input",{staticClass:"w-264 m-l-10",staticStyle:{width:"264px"},attrs:{placeholder:"请输入门店名称"},nativeOn:{keyup:function(e){return a=e,t.toInput(a,t.conditionObj.searchInput);var a}},model:{value:t.conditionObj.searchInput,callback:function(e){t.$set(t.conditionObj,"searchInput",e)},expression:"conditionObj.searchInput"}},[a("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})]),t._v(" "),a("div",{staticClass:"flex-column item-cell-select inline-block m-l-10"},[a("div",{staticClass:"depart-item-wrap"},[a("div",{staticClass:"el-select el-select--large depart-item-content",staticStyle:{width:"213px"},on:{click:function(e){t.showDialogLayer("store",t.conditionObj.storeGroup)}}},[t.conditionObj.storeGroup.length?t._e():a("span",{staticClass:"font-14 color-c0c4cc"},[t._v("请选择门店分组")]),t._v(" "),a("div",{staticClass:"el-select__tags",staticStyle:{"max-width":"181px"}},[a("span",[t._l(t.conditionObj.storeGroup,function(e,o){return[a("span",{key:o,staticClass:"el-tag el-tag--info el-tag--small"},[a("span",{staticClass:"el-select__tags-text"},[t._v(t._s(e.name||e.storeName))]),a("i",{staticClass:"el-tag__close el-icon-close",on:{click:function(e){e.stopPropagation(),t.delDepart(o,t.conditionObj.storeGroup)}}})])]})],2)])])])]),t._v(" "),a("el-select",{staticClass:"w-105 m-l-10",attrs:{placeholder:"请选择"},on:{change:t.changeStoreType},model:{value:t.conditionObj.storeType,callback:function(e){t.$set(t.conditionObj,"storeType",e)},expression:"conditionObj.storeType"}},t._l(t.storeTypeOptions,function(t){return a("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),t._v(" "),a("el-date-picker",{staticClass:"m-l-10",attrs:{editable:!1,"value-format":"yyyy-MM-dd",type:"daterange",align:"right","unlink-panels":"","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},on:{change:t.changeDate},model:{value:t.conditionObj.dateRange,callback:function(e){t.$set(t.conditionObj,"dateRange",e)},expression:"conditionObj.dateRange"}})],1),t._v(" "),a("div",{staticClass:"table-condition-right"},[a("el-button",{attrs:{type:"danger"},on:{click:t.multDel}},[t._v("批量删除")]),t._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:t.exportExcel}},[t._v("导出")])],1)]),t._v(" "),a("el-table",{ref:"multipleTable",staticClass:"select-table",staticStyle:{width:"100%"},attrs:{data:t.tableData,"tooltip-effect":"dark",height:t.tableH},on:{"selection-change":t.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"35"}}),t._v(" "),a("el-table-column",{attrs:{width:"25"},scopedSlots:t._u([{key:"header",fn:function(e){return[a("el-dropdown",{staticStyle:{"line-height":"10px",padding:"0","margin-left":"-15px",transform:"translateY(4px)","-webkit-transform":"translateY(4px)"},attrs:{placement:"bottom-start"},on:{command:t.handleCommand}},[a("span",{staticClass:"el-dropdown-link"},[a("i",{staticClass:"el-icon-arrow-down el-icon--right"})]),t._v(" "),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[a("el-dropdown-item",{attrs:{command:"0"}},[a("span",{style:{color:0==t.selectRadio?"#1890ff":"#606266"}},[t._v("选择当页")])]),t._v(" "),a("el-dropdown-item",{attrs:{command:"1"}},[a("span",{style:{color:1==t.selectRadio?"#1890ff":"#606266"}},[t._v("选择全部")])])],1)],1)]}},{key:"default",fn:function(t){}}])}),t._v(" "),a("el-table-column",{attrs:{label:"门店名称",width:"120","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.storeName))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"任务总数"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.taskCount))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"已完成","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.completedCount))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"完成率","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.completedRate))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"待完成","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.noCompletedCount))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"逾期中","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.overdueCount))]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){t.toDetail(e.$index,e.row)}}},[t._v("查看详情")])]}}])})],1),t._v(" "),0!=t.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("el-pagination",{attrs:{background:"","current-page":t.currentPage,"page-sizes":[10,20,30,40],"page-size":t.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1):t._e()],1),t._v(" "),a("multiple-del",{attrs:{showDialog:t.showDialog,detailFlag:!1},on:{hideDialog:t.hideDialog}}),t._v(" "),a("vue-select-store",{ref:"storeSelector",attrs:{currentBrand:t.activeGroup,appScene:t.appScene,treeSet:t.storeTreeSet,selectType:"group",defaultList:t.defaultStoreList},on:{handleSelectedList:t.handleSelectedList}})],1)},staticRenderFns:[]};var f=a("VU/8")(h,g,!1,function(t){a("mlj+")},"data-v-6f5e9986",null);e.default=f.exports},"mlj+":function(t,e){}});
\ No newline at end of file
webpackJsonp([43],{"41Rh":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o={name:"contact",components:{topNav:a("3Xzz").a},data:function(){return{projectName:"haoban-manage-web",collapseFlag:!1,navpath:[{name:"首页",path:"/"},{name:"通讯录",path:""},{name:"企业通讯录"},{name:"行政架构"}]}},methods:{toRouterView:function(t){this.$router.push({path:t.path})},collapseTag:function(t){this.collapseFlag=t}},watch:{$route:{handler:function(t,e){this.$refs.asideMenu.refreshRoute()},deep:!0}},mounted:function(){},computed:{}},n={render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"contact-wrap"},[e("vue-office-header",{attrs:{projectName:this.projectName},on:{collapseTag:this.collapseTag,toRouterView:this.toRouterView}}),this._v(" "),e("div",{staticClass:"contact-wrap__body"},[e("vue-office-aside",{ref:"asideMenu",attrs:{projectName:this.projectName,collapseFlag:this.collapseFlag}}),this._v(" "),e("div",{staticClass:"contact-wrap__right"},[e("div",{staticClass:"contact-wrap__right__body"},[e("transition",{attrs:{name:"fade",mode:"out-in"}},[e("router-view")],1)],1)])],1)],1)},staticRenderFns:[]};var s=a("VU/8")(o,n,!1,function(t){a("L1CN")},null,null);e.default=s.exports},L1CN:function(t,e){}});
\ No newline at end of file
webpackJsonp([45],{"764x":function(t,e){},cuIN:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=a("2eFk"),o=a("fvdr"),c=a("Qie6"),i={name:"reviewed",data:function(){return{tableH:window.screen.availHeight-464-126+"px",appName:"我的顾客",appIcon:"icon-gukedown",activeTab:"1",tabListData:[{tabId:"1",tabName:"会员搜索设置",icon:"icon-sousuoshezhi"},{tabId:"2",tabName:"在线沟通设置",icon:"icon-zaixiangoutong"}],activeBrand:"1"}},computed:{},methods:{selectBrandId:function(t){this.activeBrand=t},setSelectTab:function(t){this.activeTab=t.tabId}},watch:{activeBrand:function(t,e){this.activeBrand=t}},mounted:function(){document.documentElement.style.backgroundColor="#f0f2f5"},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{appDetail:n.a,commonAppTop:o.a,commonDetailLeft:c.a}},s={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"my-customer-wrap common-set-wrap"},[a("div",{staticClass:"right-content"},[a("common-app-top",{attrs:{appName:t.appName,appIcon:t.appIcon},on:{selectBrandId:t.selectBrandId}}),t._v(" "),a("div",{staticClass:"right-box",style:{"min-height":t.$store.state.bgHeight}},[a("div",{staticClass:"apps-content flex",style:{height:t.$store.state.bgHeight}},[a("div",{staticClass:"apps-content-left w-157"},[a("common-detail-left",{attrs:{tabListData:t.tabListData},on:{setSelectTab:t.setSelectTab}})],1),t._v(" "),a("div",{staticClass:"apps-content-right"},[a("app-detail",{attrs:{brandId:t.activeBrand,tabType:t.activeTab}})],1)])])],1),t._v(" "),a("vue-gic-footer")],1)},staticRenderFns:[]};var d=a("VU/8")(i,s,!1,function(t){a("764x")},"data-v-66f55c80",null);e.default=d.exports}}); webpackJsonp([43],{"764x":function(t,e){},cuIN:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=a("2eFk"),o=a("fvdr"),c=a("Qie6"),i={name:"reviewed",data:function(){return{tableH:window.screen.availHeight-464-126+"px",appName:"我的顾客",appIcon:"icon-gukedown",activeTab:"1",tabListData:[{tabId:"1",tabName:"会员搜索设置",icon:"icon-sousuoshezhi"},{tabId:"2",tabName:"在线沟通设置",icon:"icon-zaixiangoutong"}],activeBrand:"1"}},computed:{},methods:{selectBrandId:function(t){this.activeBrand=t},setSelectTab:function(t){this.activeTab=t.tabId}},watch:{activeBrand:function(t,e){this.activeBrand=t}},mounted:function(){document.documentElement.style.backgroundColor="#f0f2f5"},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{appDetail:n.a,commonAppTop:o.a,commonDetailLeft:c.a}},s={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"my-customer-wrap common-set-wrap"},[a("div",{staticClass:"right-content"},[a("common-app-top",{attrs:{appName:t.appName,appIcon:t.appIcon},on:{selectBrandId:t.selectBrandId}}),t._v(" "),a("div",{staticClass:"right-box",style:{"min-height":t.$store.state.bgHeight}},[a("div",{staticClass:"apps-content flex",style:{height:t.$store.state.bgHeight}},[a("div",{staticClass:"apps-content-left w-157"},[a("common-detail-left",{attrs:{tabListData:t.tabListData},on:{setSelectTab:t.setSelectTab}})],1),t._v(" "),a("div",{staticClass:"apps-content-right"},[a("app-detail",{attrs:{brandId:t.activeBrand,tabType:t.activeTab}})],1)])])],1),t._v(" "),a("vue-gic-footer")],1)},staticRenderFns:[]};var d=a("VU/8")(i,s,!1,function(t){a("764x")},"data-v-66f55c80",null);e.default=d.exports}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([46],{LXVI:function(t,e){},Ujni:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=a("fZjL"),n=a.n(o),i=a("2eFk"),s=a("Ie7z"),l=a("Ke24"),r=a("LRn8"),c=a("P9l9"),d=a("PI0u"),u=a("3E4D"),p=a("Ch4/"),h={name:"reviewed",props:{brandId:{type:String,default:function(){return""}},activeGroupId:{type:String,default:function(){return""}}},data:function(){return{tableH:window.screen.availHeight-464-126,activeTab:"1",activeBrand:this.brandId,activeGroup:this.activeGroupId,topMenuData:[{id:"1",name:"云日报记录"}],activeId:"1",showDialog:!1,conditionObj:{searchInput:"",storeGroup:[],storeType:"",dateRange:[]},storeTypeOptions:[{value:"",label:"所有"},{value:"0",label:"直营"},{value:"1",label:"联营"},{value:"2",label:"代理"},{value:"3",label:"代销"},{value:"4",label:"托管"}],selectRadio:"",tableData:[],multipleSelection:[],currentPage:1,pageSize:10,total:0,appScene:2,defaultStoreList:[],storeTreeSet:{isSelectPerson:!1,dialogVisible:!1,isSingle:!1}}},computed:{},methods:{handleCommand:function(t){this.selectRadio=t},setSelectTab:function(t){this.activeTab=t.tabId},toInput:Object(d.a)(function(t,e){this.currentPage=1,this.getTableList()},500),changeStoreType:function(){this.currentPage=1,this.getTableList()},changeDate:function(){this.currentPage=1,this.getTableList()},handleSelectionChange:function(t){this.multipleSelection=t},delDepart:function(t,e){e.splice(t,1),this.currentPage=1,this.defaultStoreList=this.conditionObj.storeGroup,this.getTableList()},multDel:function(){if(!this.multipleSelection.length)return this.$message.error({duration:1e3,message:"请选择删除项"}),!1;this.showDialog=!0},hideDialog:function(t){if(this.showDialog=!1,!n()(t).length)return!1;this.postMultDel(t)},postMultDel:function(t){var e=this,a=[],o=[];e.conditionObj.storeGroup.forEach(function(t){2==t.type&&a.push(t.groupId),3==t.type&&o.push(t.storeId)});var n={search:e.conditionObj.searchInput||"",filterStoreIds:o.join(",")||"",storeIds:e.multipleSelection.map(function(t){return t.storeId}).join(",")||"",storeGroupIds:a.join(",")||"",storeType:e.conditionObj.storeType||"",startDate:e.conditionObj.dateRange[0]||"",endDate:e.conditionObj.dateRange[1]||"",brandId:e.activeBrand,delOptFlag:t.delOptFlag,reason:t.reason,chooseAllFlag:e.selectRadio};Object(c.c)("/haoban-app-daily-web/daily/batch-delete-brand-task",n).then(function(t){var a=t.data;if(1==a.errorCode)return u.a.showmsg("删除成功","success"),void e.getTableList();p.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},exportExcel:function(){if(!this.multipleSelection.length)return this.$message.error({duration:1e3,message:"请选择导出项"}),!1;var t=[],e=[];this.conditionObj.storeGroup.forEach(function(a){2==a.type&&t.push(a.groupId),3==a.type&&e.push(a.storeId)});var a=this.conditionObj.searchInput||"",o=e.join(",")||"",n=t.join(",")||"",i=this.conditionObj.storeType||"",s=this.conditionObj.dateRange[0]||"",l=this.conditionObj.dateRange[1]||"",r=this.currentPage,c=this.pageSize,d="search="+a+"&filterStoreIds="+o+"&storeGroupIds="+n+"&storeType="+i+"&startDate="+s+"&endDate="+l+"&brandId="+this.activeBrand+"&currentPage="+r+"&pageSize="+c;window.open(window.location.origin+"/haoban-app-daily-web/daily/batch-export-brand-task?"+d)},handleSizeChange:function(t){this.pageSize=t,this.getTableList()},handleCurrentChange:function(t){this.currentPage=t,this.getTableList()},showDialogLayer:function(t,e){this.selectType=t,this.changed=t,this.defaultStoreList=e,this.storeTreeSet={dialogVisible:!0,isSingle:!1,isSelectPerson:!1}},handleSelectedList:function(t){this.conditionObj.storeGroup=t,this.getTableList()},toDetail:function(t,e){this.$router.push("dailyDetail?storeId="+e.storeId)},getTableList:function(t){var e=this,a=[],o=[];e.conditionObj.storeGroup.forEach(function(t){2==t.type&&a.push(t.groupId),3==t.type&&o.push(t.storeId)});var n={search:e.conditionObj.searchInput||"",filterStoreIds:o.join(",")||"",storeGroupIds:a.join(",")||"",storeType:e.conditionObj.storeType||"",startDate:e.conditionObj.dateRange[0]||"",endDate:e.conditionObj.dateRange[1]||"",currentPage:e.currentPage,pageSize:e.pageSize,brandId:e.activeBrand};Object(c.a)("/haoban-app-daily-web/daily/page-brand-task",n).then(function(t){var a=t.data;if(1==a.errorCode)return e.tableData=a.result.result||[],e.total=a.result.totalCount,!1;p.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},watch:{brandId:function(t,e){t&&(this.activeBrand=t,this.getTableList())},activeGroupId:function(t,e){t&&(this.activeGroup=t)}},mounted:function(){document.documentElement.style.backgroundColor="#f0f2f5",this.activeBrand=this.brandId,this.activeGroup=this.activeGroupId,this.brandId&&this.getTableList()},destroyed:function(){this.activeGroup="",document.documentElement.style.backgroundColor="#fff"},components:{appDetail:i.a,commonDetailTop:l.a,vueSelectStore:s.a,multipleDel:r.a}},g={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"daily-set-wrap "},[a("common-detail-top",{attrs:{topMenuData:t.topMenuData,activeId:t.activeId}}),t._v(" "),a("div",{staticClass:"daily-set-content boder-box"},[a("div",{staticClass:"table-condition flex flex-space-between m-b-23"},[a("div",{staticClass:"table-condition-left"},[a("el-input",{staticClass:"w-264 m-l-10",staticStyle:{width:"264px"},attrs:{placeholder:"请输入门店名称"},nativeOn:{keyup:function(e){return a=e,t.toInput(a,t.conditionObj.searchInput);var a}},model:{value:t.conditionObj.searchInput,callback:function(e){t.$set(t.conditionObj,"searchInput",e)},expression:"conditionObj.searchInput"}},[a("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})]),t._v(" "),a("div",{staticClass:"flex-column item-cell-select inline-block m-l-10"},[a("div",{staticClass:"depart-item-wrap"},[a("div",{staticClass:"el-select el-select--large depart-item-content",staticStyle:{width:"213px"},on:{click:function(e){t.showDialogLayer("store",t.conditionObj.storeGroup)}}},[t.conditionObj.storeGroup.length?t._e():a("span",{staticClass:"font-14 color-c0c4cc"},[t._v("请选择门店分组")]),t._v(" "),t.conditionObj.storeGroup.length?a("div",{staticClass:"el-select__tags",staticStyle:{"max-width":"181px"}},[a("span",[t._l(t.conditionObj.storeGroup,function(e,o){return[a("span",{key:o,staticClass:"el-tag el-tag--info el-tag--small"},[a("span",{staticClass:"el-select__tags-text"},[t._v(t._s(e.name||e.storeName))]),a("i",{staticClass:"el-tag__close el-icon-close",on:{click:function(e){e.stopPropagation(),t.delDepart(o,t.conditionObj.storeGroup)}}})])]})],2)]):t._e()])])]),t._v(" "),a("el-select",{staticClass:"w-105 m-l-10",attrs:{placeholder:"请选择"},on:{change:t.changeStoreType},model:{value:t.conditionObj.storeType,callback:function(e){t.$set(t.conditionObj,"storeType",e)},expression:"conditionObj.storeType"}},t._l(t.storeTypeOptions,function(t){return a("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),t._v(" "),a("el-date-picker",{staticClass:"m-l-10",attrs:{editable:!1,"value-format":"yyyy-MM-dd",type:"daterange",align:"right","unlink-panels":"","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},on:{change:t.changeDate},model:{value:t.conditionObj.dateRange,callback:function(e){t.$set(t.conditionObj,"dateRange",e)},expression:"conditionObj.dateRange"}})],1),t._v(" "),a("div",{staticClass:"table-condition-right"},[a("el-button",{attrs:{type:"danger"},on:{click:t.multDel}},[t._v("批量删除")]),t._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:t.exportExcel}},[t._v("导出")])],1)]),t._v(" "),a("el-table",{ref:"multipleTable",staticClass:"select-table",staticStyle:{width:"100%"},attrs:{data:t.tableData,"tooltip-effect":"dark",height:t.tableH},on:{"selection-change":t.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"35"}}),t._v(" "),a("el-table-column",{attrs:{width:"25"},scopedSlots:t._u([{key:"header",fn:function(e){return[a("el-dropdown",{staticStyle:{"line-height":"10px",padding:"0","margin-left":"-15px",transform:"translateY(4px)","-webkit-transform":"translateY(4px)"},attrs:{placement:"bottom-start"},on:{command:t.handleCommand}},[a("span",{staticClass:"el-dropdown-link"},[a("i",{staticClass:"el-icon-arrow-down el-icon--right"})]),t._v(" "),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[a("el-dropdown-item",{attrs:{command:"0"}},[a("span",{style:{color:0==t.selectRadio?"#1890ff":"#606266"}},[t._v("选择当页")])]),t._v(" "),a("el-dropdown-item",{attrs:{command:"1"}},[a("span",{style:{color:1==t.selectRadio?"#1890ff":"#606266"}},[t._v("选择全部")])])],1)],1)]}},{key:"default",fn:function(t){}}])}),t._v(" "),a("el-table-column",{attrs:{label:"门店名称",width:"120","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.storeName))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"任务总数"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.taskCount))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"已完成","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.completedCount))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"完成率","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.completedRate))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"待完成","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.noCompletedCount))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"逾期中","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.overdueCount))]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){t.toDetail(e.$index,e.row)}}},[t._v("查看详情")])]}}])})],1),t._v(" "),0!=t.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("el-pagination",{attrs:{background:"","current-page":t.currentPage,"page-sizes":[10,20,30,40],"page-size":t.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1):t._e()],1),t._v(" "),a("multiple-del",{attrs:{showDialog:t.showDialog,detailFlag:!1},on:{hideDialog:t.hideDialog}}),t._v(" "),a("vue-select-store",{ref:"storeSelector",attrs:{currentBrand:t.activeGroup,appScene:t.appScene,treeSet:t.storeTreeSet,selectType:"group",defaultList:t.defaultStoreList},on:{handleSelectedList:t.handleSelectedList}})],1)},staticRenderFns:[]};var b=a("VU/8")(h,g,!1,function(t){a("LXVI")},"data-v-63440e60",null);e.default=b.exports}}); webpackJsonp([44],{LXVI:function(t,e){},Ujni:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=a("fZjL"),n=a.n(o),i=a("2eFk"),s=a("Ie7z"),l=a("Ke24"),r=a("LRn8"),c=a("P9l9"),d=a("PI0u"),u=a("3E4D"),p=a("Ch4/"),h={name:"reviewed",props:{brandId:{type:String,default:function(){return""}},activeGroupId:{type:String,default:function(){return""}}},data:function(){return{tableH:window.screen.availHeight-464-126,activeTab:"1",activeBrand:this.brandId,activeGroup:this.activeGroupId,topMenuData:[{id:"1",name:"云日报记录"}],activeId:"1",showDialog:!1,conditionObj:{searchInput:"",storeGroup:[],storeType:"",dateRange:[]},storeTypeOptions:[{value:"",label:"所有"},{value:"0",label:"直营"},{value:"1",label:"联营"},{value:"2",label:"代理"},{value:"3",label:"代销"},{value:"4",label:"托管"}],selectRadio:"",tableData:[],multipleSelection:[],currentPage:1,pageSize:10,total:0,appScene:2,defaultStoreList:[],storeTreeSet:{isSelectPerson:!1,dialogVisible:!1,isSingle:!1}}},computed:{},methods:{handleCommand:function(t){this.selectRadio=t},setSelectTab:function(t){this.activeTab=t.tabId},toInput:Object(d.a)(function(t,e){this.currentPage=1,this.getTableList()},500),changeStoreType:function(){this.currentPage=1,this.getTableList()},changeDate:function(){this.currentPage=1,this.getTableList()},handleSelectionChange:function(t){this.multipleSelection=t},delDepart:function(t,e){e.splice(t,1),this.currentPage=1,this.defaultStoreList=this.conditionObj.storeGroup,this.getTableList()},multDel:function(){if(!this.multipleSelection.length)return this.$message.error({duration:1e3,message:"请选择删除项"}),!1;this.showDialog=!0},hideDialog:function(t){if(this.showDialog=!1,!n()(t).length)return!1;this.postMultDel(t)},postMultDel:function(t){var e=this,a=[],o=[];e.conditionObj.storeGroup.forEach(function(t){2==t.type&&a.push(t.groupId),3==t.type&&o.push(t.storeId)});var n={search:e.conditionObj.searchInput||"",filterStoreIds:o.join(",")||"",storeIds:e.multipleSelection.map(function(t){return t.storeId}).join(",")||"",storeGroupIds:a.join(",")||"",storeType:e.conditionObj.storeType||"",startDate:e.conditionObj.dateRange[0]||"",endDate:e.conditionObj.dateRange[1]||"",brandId:e.activeBrand,delOptFlag:t.delOptFlag,reason:t.reason,chooseAllFlag:e.selectRadio};Object(c.c)("/haoban-app-daily-web/daily/batch-delete-brand-task",n).then(function(t){var a=t.data;if(1==a.errorCode)return u.a.showmsg("删除成功","success"),void e.getTableList();p.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},exportExcel:function(){if(!this.multipleSelection.length)return this.$message.error({duration:1e3,message:"请选择导出项"}),!1;var t=[],e=[];this.conditionObj.storeGroup.forEach(function(a){2==a.type&&t.push(a.groupId),3==a.type&&e.push(a.storeId)});var a=this.conditionObj.searchInput||"",o=e.join(",")||"",n=t.join(",")||"",i=this.conditionObj.storeType||"",s=this.conditionObj.dateRange[0]||"",l=this.conditionObj.dateRange[1]||"",r=this.currentPage,c=this.pageSize,d="search="+a+"&filterStoreIds="+o+"&storeGroupIds="+n+"&storeType="+i+"&startDate="+s+"&endDate="+l+"&brandId="+this.activeBrand+"&currentPage="+r+"&pageSize="+c;window.open(window.location.origin+"/haoban-app-daily-web/daily/batch-export-brand-task?"+d)},handleSizeChange:function(t){this.pageSize=t,this.getTableList()},handleCurrentChange:function(t){this.currentPage=t,this.getTableList()},showDialogLayer:function(t,e){this.selectType=t,this.changed=t,this.defaultStoreList=e,this.storeTreeSet={dialogVisible:!0,isSingle:!1,isSelectPerson:!1}},handleSelectedList:function(t){this.conditionObj.storeGroup=t,this.getTableList()},toDetail:function(t,e){this.$router.push("dailyDetail?storeId="+e.storeId)},getTableList:function(t){var e=this,a=[],o=[];e.conditionObj.storeGroup.forEach(function(t){2==t.type&&a.push(t.groupId),3==t.type&&o.push(t.storeId)});var n={search:e.conditionObj.searchInput||"",filterStoreIds:o.join(",")||"",storeGroupIds:a.join(",")||"",storeType:e.conditionObj.storeType||"",startDate:e.conditionObj.dateRange[0]||"",endDate:e.conditionObj.dateRange[1]||"",currentPage:e.currentPage,pageSize:e.pageSize,brandId:e.activeBrand};Object(c.a)("/haoban-app-daily-web/daily/page-brand-task",n).then(function(t){var a=t.data;if(1==a.errorCode)return e.tableData=a.result.result||[],e.total=a.result.totalCount,!1;p.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},watch:{brandId:function(t,e){t&&(this.activeBrand=t,this.getTableList())},activeGroupId:function(t,e){t&&(this.activeGroup=t)}},mounted:function(){document.documentElement.style.backgroundColor="#f0f2f5",this.activeBrand=this.brandId,this.activeGroup=this.activeGroupId,this.brandId&&this.getTableList()},destroyed:function(){this.activeGroup="",document.documentElement.style.backgroundColor="#fff"},components:{appDetail:i.a,commonDetailTop:l.a,vueSelectStore:s.a,multipleDel:r.a}},g={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"daily-set-wrap "},[a("common-detail-top",{attrs:{topMenuData:t.topMenuData,activeId:t.activeId}}),t._v(" "),a("div",{staticClass:"daily-set-content boder-box"},[a("div",{staticClass:"table-condition flex flex-space-between m-b-23"},[a("div",{staticClass:"table-condition-left"},[a("el-input",{staticClass:"w-264 m-l-10",staticStyle:{width:"264px"},attrs:{placeholder:"请输入门店名称"},nativeOn:{keyup:function(e){return a=e,t.toInput(a,t.conditionObj.searchInput);var a}},model:{value:t.conditionObj.searchInput,callback:function(e){t.$set(t.conditionObj,"searchInput",e)},expression:"conditionObj.searchInput"}},[a("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})]),t._v(" "),a("div",{staticClass:"flex-column item-cell-select inline-block m-l-10"},[a("div",{staticClass:"depart-item-wrap"},[a("div",{staticClass:"el-select el-select--large depart-item-content",staticStyle:{width:"213px"},on:{click:function(e){t.showDialogLayer("store",t.conditionObj.storeGroup)}}},[t.conditionObj.storeGroup.length?t._e():a("span",{staticClass:"font-14 color-c0c4cc"},[t._v("请选择门店分组")]),t._v(" "),t.conditionObj.storeGroup.length?a("div",{staticClass:"el-select__tags",staticStyle:{"max-width":"181px"}},[a("span",[t._l(t.conditionObj.storeGroup,function(e,o){return[a("span",{key:o,staticClass:"el-tag el-tag--info el-tag--small"},[a("span",{staticClass:"el-select__tags-text"},[t._v(t._s(e.name||e.storeName))]),a("i",{staticClass:"el-tag__close el-icon-close",on:{click:function(e){e.stopPropagation(),t.delDepart(o,t.conditionObj.storeGroup)}}})])]})],2)]):t._e()])])]),t._v(" "),a("el-select",{staticClass:"w-105 m-l-10",attrs:{placeholder:"请选择"},on:{change:t.changeStoreType},model:{value:t.conditionObj.storeType,callback:function(e){t.$set(t.conditionObj,"storeType",e)},expression:"conditionObj.storeType"}},t._l(t.storeTypeOptions,function(t){return a("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),t._v(" "),a("el-date-picker",{staticClass:"m-l-10",attrs:{editable:!1,"value-format":"yyyy-MM-dd",type:"daterange",align:"right","unlink-panels":"","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},on:{change:t.changeDate},model:{value:t.conditionObj.dateRange,callback:function(e){t.$set(t.conditionObj,"dateRange",e)},expression:"conditionObj.dateRange"}})],1),t._v(" "),a("div",{staticClass:"table-condition-right"},[a("el-button",{attrs:{type:"danger"},on:{click:t.multDel}},[t._v("批量删除")]),t._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:t.exportExcel}},[t._v("导出")])],1)]),t._v(" "),a("el-table",{ref:"multipleTable",staticClass:"select-table",staticStyle:{width:"100%"},attrs:{data:t.tableData,"tooltip-effect":"dark",height:t.tableH},on:{"selection-change":t.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"35"}}),t._v(" "),a("el-table-column",{attrs:{width:"25"},scopedSlots:t._u([{key:"header",fn:function(e){return[a("el-dropdown",{staticStyle:{"line-height":"10px",padding:"0","margin-left":"-15px",transform:"translateY(4px)","-webkit-transform":"translateY(4px)"},attrs:{placement:"bottom-start"},on:{command:t.handleCommand}},[a("span",{staticClass:"el-dropdown-link"},[a("i",{staticClass:"el-icon-arrow-down el-icon--right"})]),t._v(" "),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[a("el-dropdown-item",{attrs:{command:"0"}},[a("span",{style:{color:0==t.selectRadio?"#1890ff":"#606266"}},[t._v("选择当页")])]),t._v(" "),a("el-dropdown-item",{attrs:{command:"1"}},[a("span",{style:{color:1==t.selectRadio?"#1890ff":"#606266"}},[t._v("选择全部")])])],1)],1)]}},{key:"default",fn:function(t){}}])}),t._v(" "),a("el-table-column",{attrs:{label:"门店名称",width:"120","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.storeName))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"任务总数"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.taskCount))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"已完成","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.completedCount))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"完成率","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.completedRate))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"待完成","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.noCompletedCount))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"逾期中","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.overdueCount))]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){t.toDetail(e.$index,e.row)}}},[t._v("查看详情")])]}}])})],1),t._v(" "),0!=t.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("el-pagination",{attrs:{background:"","current-page":t.currentPage,"page-sizes":[10,20,30,40],"page-size":t.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1):t._e()],1),t._v(" "),a("multiple-del",{attrs:{showDialog:t.showDialog,detailFlag:!1},on:{hideDialog:t.hideDialog}}),t._v(" "),a("vue-select-store",{ref:"storeSelector",attrs:{currentBrand:t.activeGroup,appScene:t.appScene,treeSet:t.storeTreeSet,selectType:"group",defaultList:t.defaultStoreList},on:{handleSelectedList:t.handleSelectedList}})],1)},staticRenderFns:[]};var b=a("VU/8")(h,g,!1,function(t){a("LXVI")},"data-v-63440e60",null);e.default=b.exports}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([47],{XD2h:function(e,t){},mPjx:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=a("3Xzz"),r=a("Ie7z"),s=a("P9l9"),o={name:"store-view-group-info",components:{navCrumb:n.a,vueSelectStore:r.a},data:function(){return{departInfo:{name:"",parentName:"",parentId:""},rules:{name:[{required:!0,message:"请输入部门名称",trigger:"blur"},{min:1,max:20,message:"长度在 1 到 20 个字符",trigger:"blur"}],parentId:[{required:!0,message:"请选择父级部门",trigger:"change"}]},disabled:!0,treeSet:{isSelectPerson:!1,dialogVisible:!1,isSingle:!0}}},methods:{delGroup:function(){var e=this;e.$confirm(" 是否确认删除分组 ?","提示",{type:"warning"}).then(function(){Object(s.a)("/haoban-manage-web/dept/del",{groupId:e.$route.query.departmentId}).then(function(t){1==t.data.errorCode?(e.$message.success({message:t.data.message}),window.history.go(-1)):e.$message.error({message:t.data.message})}).catch(function(t){e.$message.error({message:t.message})})}).catch(function(e){})},handleSelectedList:function(e){var t=e[0];this.departInfo.parentId=t?t.id:"",this.departInfo.parentName=t?t.label:""},callGroupSelector:function(){this.treeSet.dialogVisible=!0},saveEdit:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";this.$refs.departForm.validate(function(a){if(!a)return!1;var n=e,r={parentId:n.departInfo.parentId,name:n.departInfo.name},o="";n.isAddNew?o="/haoban-manage-web/dept/insert":(o="/haoban-manage-web/dept/update",r.groupId=n.$route.query.groupId),Object(s.a)(o,r).then(function(e){1==e.data.errorCode?(n.$message.success({duration:1e3,message:"操作成功!"}),"continue"==t?(n.departInfo={name:"",parentName:"",parentId:""},n.disabled=!0,n.getGroupData()):window.history.go(-1)):n.$message.error({duration:1e3,message:e.data.message})}).catch(function(e){n.$message.error({duration:1e3,message:e.message})})})},cancel:function(){this.$confirm(" 是否确认取消,取消后当前页面信息将丢失 ?","提示",{type:"warning"}).then(function(){window.history.go(-1)}).catch(function(e){})},getGroupInfo:function(){var e=this,t={groupId:e.$route.query.groupId};Object(s.a)("/haoban-manage-web/dept/findDeptById",t).then(function(t){1==t.data.errorCode?e.departInfo={name:t.data.result.name,parentName:t.data.result.chainName,parentId:t.data.result.parentId}:e.$message.error({message:t.data.message})}).catch(function(t){e.$message.error({message:t.message})})}},computed:{isAddNew:function(){return!(1!=this.$route.query.addnew)},forbidenList:function(){return this.isAddNew?"":[this.$route.query.groupId]},navpath:function(){return[{name:"首页",path:"/index"},{name:"企业通讯录",path:"/administrativeFrame"},{name:"门店架构",path:"/storeFrame"},{name:"group"==this.$route.query.type?"编辑分组":this.isAddNew?"添加子分组":"品牌编辑",path:""}]}},beforeMount:function(){this.isAddNew||this.getGroupInfo()},mounted:function(){this.disabled=!1},watch:{treeData:function(){this.disabled=!1}}},i={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"common-set-wrap"},[a("nav-crumb",{attrs:{navpath:e.navpath}}),e._v(" "),a("div",{staticClass:"right-content"},[a("div",{staticClass:"right-box"},[a("div",{staticClass:"add-department-container"},[a("div",{staticClass:"setting-cell"},[a("el-form",{ref:"departForm",staticClass:"department-info-form",attrs:{"label-position":"right",rules:e.rules,model:e.departInfo,"label-width":"120px"}},[a("el-form-item",{attrs:{label:"group"==e.$route.query.type?"部门名称":"品牌名称",prop:"name"}},[a("el-input",{model:{value:e.departInfo.name,callback:function(t){e.$set(e.departInfo,"name",t)},expression:"departInfo.name"}})],1),e._v(" "),"group"==e.$route.query.type||e.isAddNew?a("el-form-item",{attrs:{label:"部门排序调整",prop:"parentId"}},[a("el-input",{attrs:{disabled:e.disabled,"suffix-icon":"el-icon-arrow-down"},on:{focus:e.callGroupSelector},model:{value:e.departInfo.parentName,callback:function(t){e.$set(e.departInfo,"parentName",t)},expression:"departInfo.parentName"}})],1):e._e()],1)],1),e._v(" "),a("div",{staticClass:"setting-cell"},[a("div",{staticClass:"btn-area"},[a("el-button",{attrs:{type:"primary"},on:{click:e.saveEdit}},[e._v("保存")]),e._v(" "),e.isAddNew?a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.saveEdit("continue")}}},[e._v("保存并继续添加")]):a("el-button",{attrs:{type:"danger"},on:{click:e.delGroup}},[e._v("删除")]),e._v(" "),a("el-button",{on:{click:e.cancel}},[e._v("取消")])],1)]),e._v(" "),a("vue-select-store",{ref:"storeSelector",attrs:{treeSet:e.treeSet,selectType:"group",forbidenList:e.forbidenList},on:{handleSelectedList:e.handleSelectedList}})],1)])])],1)},staticRenderFns:[]};var d=a("VU/8")(o,i,!1,function(e){a("XD2h")},null,null);t.default=d.exports}}); webpackJsonp([45],{XD2h:function(e,t){},mPjx:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=a("3Xzz"),r=a("Ie7z"),s=a("P9l9"),o={name:"store-view-group-info",components:{navCrumb:n.a,vueSelectStore:r.a},data:function(){return{departInfo:{name:"",parentName:"",parentId:""},rules:{name:[{required:!0,message:"请输入部门名称",trigger:"blur"},{min:1,max:20,message:"长度在 1 到 20 个字符",trigger:"blur"}],parentId:[{required:!0,message:"请选择父级部门",trigger:"change"}]},disabled:!0,treeSet:{isSelectPerson:!1,dialogVisible:!1,isSingle:!0}}},methods:{delGroup:function(){var e=this;e.$confirm(" 是否确认删除分组 ?","提示",{type:"warning"}).then(function(){Object(s.a)("/haoban-manage-web/dept/del",{groupId:e.$route.query.departmentId}).then(function(t){1==t.data.errorCode?(e.$message.success({message:t.data.message}),window.history.go(-1)):e.$message.error({message:t.data.message})}).catch(function(t){e.$message.error({message:t.message})})}).catch(function(e){})},handleSelectedList:function(e){var t=e[0];this.departInfo.parentId=t?t.id:"",this.departInfo.parentName=t?t.label:""},callGroupSelector:function(){this.treeSet.dialogVisible=!0},saveEdit:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";this.$refs.departForm.validate(function(a){if(!a)return!1;var n=e,r={parentId:n.departInfo.parentId,name:n.departInfo.name},o="";n.isAddNew?o="/haoban-manage-web/dept/insert":(o="/haoban-manage-web/dept/update",r.groupId=n.$route.query.groupId),Object(s.a)(o,r).then(function(e){1==e.data.errorCode?(n.$message.success({duration:1e3,message:"操作成功!"}),"continue"==t?(n.departInfo={name:"",parentName:"",parentId:""},n.disabled=!0,n.getGroupData()):window.history.go(-1)):n.$message.error({duration:1e3,message:e.data.message})}).catch(function(e){n.$message.error({duration:1e3,message:e.message})})})},cancel:function(){this.$confirm(" 是否确认取消,取消后当前页面信息将丢失 ?","提示",{type:"warning"}).then(function(){window.history.go(-1)}).catch(function(e){})},getGroupInfo:function(){var e=this,t={groupId:e.$route.query.groupId};Object(s.a)("/haoban-manage-web/dept/findDeptById",t).then(function(t){1==t.data.errorCode?e.departInfo={name:t.data.result.name,parentName:t.data.result.chainName,parentId:t.data.result.parentId}:e.$message.error({message:t.data.message})}).catch(function(t){e.$message.error({message:t.message})})}},computed:{isAddNew:function(){return!(1!=this.$route.query.addnew)},forbidenList:function(){return this.isAddNew?"":[this.$route.query.groupId]},navpath:function(){return[{name:"首页",path:"/index"},{name:"企业通讯录",path:"/administrativeFrame"},{name:"门店架构",path:"/storeFrame"},{name:"group"==this.$route.query.type?"编辑分组":this.isAddNew?"添加子分组":"品牌编辑",path:""}]}},beforeMount:function(){this.isAddNew||this.getGroupInfo()},mounted:function(){this.disabled=!1},watch:{treeData:function(){this.disabled=!1}}},i={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"common-set-wrap"},[a("nav-crumb",{attrs:{navpath:e.navpath}}),e._v(" "),a("div",{staticClass:"right-content"},[a("div",{staticClass:"right-box"},[a("div",{staticClass:"add-department-container"},[a("div",{staticClass:"setting-cell"},[a("el-form",{ref:"departForm",staticClass:"department-info-form",attrs:{"label-position":"right",rules:e.rules,model:e.departInfo,"label-width":"120px"}},[a("el-form-item",{attrs:{label:"group"==e.$route.query.type?"部门名称":"品牌名称",prop:"name"}},[a("el-input",{model:{value:e.departInfo.name,callback:function(t){e.$set(e.departInfo,"name",t)},expression:"departInfo.name"}})],1),e._v(" "),"group"==e.$route.query.type||e.isAddNew?a("el-form-item",{attrs:{label:"部门排序调整",prop:"parentId"}},[a("el-input",{attrs:{disabled:e.disabled,"suffix-icon":"el-icon-arrow-down"},on:{focus:e.callGroupSelector},model:{value:e.departInfo.parentName,callback:function(t){e.$set(e.departInfo,"parentName",t)},expression:"departInfo.parentName"}})],1):e._e()],1)],1),e._v(" "),a("div",{staticClass:"setting-cell"},[a("div",{staticClass:"btn-area"},[a("el-button",{attrs:{type:"primary"},on:{click:e.saveEdit}},[e._v("保存")]),e._v(" "),e.isAddNew?a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.saveEdit("continue")}}},[e._v("保存并继续添加")]):a("el-button",{attrs:{type:"danger"},on:{click:e.delGroup}},[e._v("删除")]),e._v(" "),a("el-button",{on:{click:e.cancel}},[e._v("取消")])],1)]),e._v(" "),a("vue-select-store",{ref:"storeSelector",attrs:{treeSet:e.treeSet,selectType:"group",forbidenList:e.forbidenList},on:{handleSelectedList:e.handleSelectedList}})],1)])])],1)},staticRenderFns:[]};var d=a("VU/8")(o,i,!1,function(e){a("XD2h")},null,null);t.default=d.exports}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([48],{da9f:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a={name:"enterprise",data:function(){return{projectName:"haoban-manage-web",collapseFlag:!1,contentHeight:window.screen.availHeight-5+"px"}},computed:{},methods:{toRouterView:function(t){this.$router.push({path:t.path})},collapseTag:function(t){this.collapseFlag=t}},mounted:function(){this.contentHeight=(document.documentElement.clientHeight||document.body.clientHeight)-64+"px"}},i={render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"enterprise-wrap"},[e("vue-office-header",{attrs:{projectName:this.projectName},on:{collapseTag:this.collapseTag,toRouterView:this.toRouterView}}),this._v(" "),e("div",{staticClass:"enterprise-wrap__body"},[e("div",{staticClass:"content",attrs:{id:"content"}},[e("div",{staticClass:"content-body",style:{height:this.contentHeight}},[e("transition",{attrs:{name:"fade",mode:"out-in"}},[e("router-view")],1)],1)])])],1)},staticRenderFns:[]};var o=n("VU/8")(a,i,!1,function(t){n("lxEU")},"data-v-5a283aba",null);e.default=o.exports},lxEU:function(t,e){}}); webpackJsonp([46],{da9f:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a={name:"enterprise",data:function(){return{projectName:"haoban-manage-web",collapseFlag:!1,contentHeight:window.screen.availHeight-5+"px"}},computed:{},methods:{toRouterView:function(t){this.$router.push({path:t.path})},collapseTag:function(t){this.collapseFlag=t}},mounted:function(){this.contentHeight=(document.documentElement.clientHeight||document.body.clientHeight)-64+"px"}},i={render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"enterprise-wrap"},[e("vue-office-header",{attrs:{projectName:this.projectName},on:{collapseTag:this.collapseTag,toRouterView:this.toRouterView}}),this._v(" "),e("div",{staticClass:"enterprise-wrap__body"},[e("div",{staticClass:"content",attrs:{id:"content"}},[e("div",{staticClass:"content-body",style:{height:this.contentHeight}},[e("transition",{attrs:{name:"fade",mode:"out-in"}},[e("router-view")],1)],1)])])],1)},staticRenderFns:[]};var o=n("VU/8")(a,i,!1,function(t){n("lxEU")},"data-v-5a283aba",null);e.default=o.exports},lxEU:function(t,e){}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([49],{Knd1:function(t,a,e){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var c=e("2eFk"),n=e("fvdr"),i=e("Qie6"),o={name:"reviewed",data:function(){return{bgHeight:window.screen.availHeight-380+"px",appName:"云日报",appIcon:"icon-ribao",activeSelTab:"1",activeTab:"1",tabListData:[{tabId:"1",tabName:"云日报记录",icon:"icon-ribao1",onlyIconActive:!1},{tabId:"2",tabName:"云日报设置",icon:"icon-ribaoshezhi",onlyIconActive:!1,children:[{tabId:"21",tabName:"模板配置",icon:"",children:[{tabId:"211",tabName:"系统报表",icon:""},{tabId:"212",tabName:"自定义报表",icon:""}]},{tabId:"22",tabName:"任务下发设置",icon:""}]}],activeBrand:"",activeGroup:""}},computed:{},methods:{changeRoute:function(t){this.$router.push(t)},selectBrandId:function(t,a){this.activeBrand=t,this.activeGroup=a},setSelectTab:function(t){switch(this.activeTab=t.tabId,t.tabId){case"1":this.changeRoute("dailyRecord");break;case"2":case"21":case"211":this.changeRoute("systemReport");break;case"212":this.changeRoute("customReport");break;case"22":this.changeRoute("taskAssign")}},showTab:function(t){this.activeTab=t,this.activeSelTab=t,this.tabListData.forEach(function(a){a.tabId==t&&(a.onlyIconActive=!1),a.children&&a.children.forEach(function(e){e.tabId==t&&(a.onlyIconActive=!0),e.children&&e.children.forEach(function(e){e.tabId==t&&(a.onlyIconActive=!0)})})})}},watch:{activeBrand:function(t,a){this.activeBrand=t},activeGroup:function(t,a){this.activeGroup=t}},mounted:function(){document.documentElement.style.backgroundColor="#f0f2f5"},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{appDetail:c.a,commonAppTop:n.a,commonDetailLeft:i.a}},s={render:function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"my-customer-wrap common-set-wrap"},[e("div",{staticClass:"right-content"},[e("common-app-top",{attrs:{appName:t.appName,appIcon:t.appIcon},on:{selectBrandId:t.selectBrandId}}),t._v(" "),e("div",{staticClass:"right-box",style:{"min-height":t.bgHeight}},[e("div",{staticClass:"apps-content flex",style:{height:t.bgHeight}},[e("div",{staticClass:"apps-content-left w-157"},[e("common-detail-left",{attrs:{tabListData:t.tabListData,activeSelTab:t.activeSelTab},on:{setSelectTab:t.setSelectTab}})],1),t._v(" "),e("div",{staticClass:"apps-content-right"},[e("transition",{attrs:{name:"fade",mode:"out-in"}},[e("router-view",{attrs:{brandId:t.activeBrand,activeGroupId:t.activeGroup,tabType:t.activeTab},on:{showTab:t.showTab}})],1)],1)])])],1),t._v(" "),e("vue-gic-footer")],1)},staticRenderFns:[]};var r=e("VU/8")(o,s,!1,function(t){e("asWv")},"data-v-59cea960",null);a.default=r.exports},asWv:function(t,a){}}); webpackJsonp([47],{Knd1:function(t,a,e){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var c=e("2eFk"),n=e("fvdr"),i=e("Qie6"),o={name:"reviewed",data:function(){return{bgHeight:window.screen.availHeight-380+"px",appName:"云日报",appIcon:"icon-ribao",activeSelTab:"1",activeTab:"1",tabListData:[{tabId:"1",tabName:"云日报记录",icon:"icon-ribao1",onlyIconActive:!1},{tabId:"2",tabName:"云日报设置",icon:"icon-ribaoshezhi",onlyIconActive:!1,children:[{tabId:"21",tabName:"模板配置",icon:"",children:[{tabId:"211",tabName:"系统报表",icon:""},{tabId:"212",tabName:"自定义报表",icon:""}]},{tabId:"22",tabName:"任务下发设置",icon:""}]}],activeBrand:"",activeGroup:""}},computed:{},methods:{changeRoute:function(t){this.$router.push(t)},selectBrandId:function(t,a){this.activeBrand=t,this.activeGroup=a},setSelectTab:function(t){switch(this.activeTab=t.tabId,t.tabId){case"1":this.changeRoute("dailyRecord");break;case"2":case"21":case"211":this.changeRoute("systemReport");break;case"212":this.changeRoute("customReport");break;case"22":this.changeRoute("taskAssign")}},showTab:function(t){this.activeTab=t,this.activeSelTab=t,this.tabListData.forEach(function(a){a.tabId==t&&(a.onlyIconActive=!1),a.children&&a.children.forEach(function(e){e.tabId==t&&(a.onlyIconActive=!0),e.children&&e.children.forEach(function(e){e.tabId==t&&(a.onlyIconActive=!0)})})})}},watch:{activeBrand:function(t,a){this.activeBrand=t},activeGroup:function(t,a){this.activeGroup=t}},mounted:function(){document.documentElement.style.backgroundColor="#f0f2f5"},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{appDetail:c.a,commonAppTop:n.a,commonDetailLeft:i.a}},s={render:function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"my-customer-wrap common-set-wrap"},[e("div",{staticClass:"right-content"},[e("common-app-top",{attrs:{appName:t.appName,appIcon:t.appIcon},on:{selectBrandId:t.selectBrandId}}),t._v(" "),e("div",{staticClass:"right-box",style:{"min-height":t.bgHeight}},[e("div",{staticClass:"apps-content flex",style:{height:t.bgHeight}},[e("div",{staticClass:"apps-content-left w-157"},[e("common-detail-left",{attrs:{tabListData:t.tabListData,activeSelTab:t.activeSelTab},on:{setSelectTab:t.setSelectTab}})],1),t._v(" "),e("div",{staticClass:"apps-content-right"},[e("transition",{attrs:{name:"fade",mode:"out-in"}},[e("router-view",{attrs:{brandId:t.activeBrand,activeGroupId:t.activeGroup,tabType:t.activeTab},on:{showTab:t.showTab}})],1)],1)])])],1),t._v(" "),e("vue-gic-footer")],1)},staticRenderFns:[]};var r=e("VU/8")(o,s,!1,function(t){e("asWv")},"data-v-59cea960",null);a.default=r.exports},asWv:function(t,a){}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([50],{AdJp:function(e,a,t){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var n=t("3Xzz"),o=t("WSbm"),s=t("P9l9"),r={name:"employeeDetail",components:{navCrumb:n.a,employeeInfo:o.a},data:function(){return{navpath:[{name:"首页",path:"/index"},{name:"企业通讯录",path:"/administrativeFrame"},{name:"员工档案",path:"/fileSet"},{name:"添加员工",path:""}],managerMode:!1}},methods:{save:function(e){var a=this.$refs.emmployInfo.info;this.isNew?this.addEmployee(a,e):this.saveEmployeeInfo(a)},addEmployee:function(e,a){var t=this,n={name:e.name,isClerk:0,phoneNumber:e.phoneNumber,positionName:e.positionName,departmentId:e.departmentId,managerMode:1*e.managerMode};Object(s.a)("/haoban-manage-web/emp/add",n).then(function(e){1==e.data.errorCode?(t.$message.success({message:"操作成功"}),1==a?t.$refs.emmployInfo.info={name:"",phoneNumber:"",departmentId:"",departmentName:"",managerMode:!1}:window.history.go(-1)):t.$message.error({message:e.data.message})}).catch(function(e){})},saveEmployeeInfo:function(e){var a=this,t={name:e.name,phoneNumber:e.phoneNumber,positionName:e.positionName,departmentId:e.departmentId,employeeClerkId:a.$route.query.employeeClerkId,managerMode:1*e.managerMode};Object(s.a)("/haoban-manage-web/emp/update",t).then(function(e){1==e.data.errorCode?(a.$message.success({message:"操作成功"}),window.history.go(-1)):a.$message.error({message:e.data.message})}).catch(function(e){a.$message.error({message:e.message})})},cancel:function(){this.$confirm(" 是否确认取消,取消后当前页面信息将丢失 ?","提示",{type:"warning"}).then(function(){window.history.go(-1)}).catch(function(e){})}},computed:{isNew:function(){return 1==!!this.$route.query.addnew}}},i={render:function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("div",{staticClass:"common-set-wrap"},[t("nav-crumb",{attrs:{navpath:e.navpath}}),e._v(" "),t("div",{staticClass:"right-content"},[t("div",{staticClass:"right-box"},[t("div",{staticClass:"employee-detail",style:{height:e.$store.state.bgHeight}},[t("employee-info",{ref:"emmployInfo",attrs:{isNew:e.isNew}}),e._v(" "),e.$route.query.readOnly?e._e():t("div",{staticClass:"btn-boxs"},[t("el-button",{attrs:{type:"primary"},on:{click:e.save}},[e._v("保 存")]),e._v(" "),e.isNew?t("el-button",{attrs:{type:"primary"},on:{click:function(a){e.save(1)}}},[e._v("保存并继续添加")]):e._e(),e._v(" "),t("el-button",{on:{click:e.cancel}},[e._v("取 消")])],1)],1)])])],1)},staticRenderFns:[]};var m=t("VU/8")(r,i,!1,function(e){t("U3CN")},null,null);a.default=m.exports},U3CN:function(e,a){}}); webpackJsonp([48],{AdJp:function(e,a,t){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var n=t("3Xzz"),o=t("WSbm"),s=t("P9l9"),r={name:"employeeDetail",components:{navCrumb:n.a,employeeInfo:o.a},data:function(){return{navpath:[{name:"首页",path:"/index"},{name:"企业通讯录",path:"/administrativeFrame"},{name:"员工档案",path:"/fileSet"},{name:"添加员工",path:""}],managerMode:!1}},methods:{save:function(e){var a=this.$refs.emmployInfo.info;this.isNew?this.addEmployee(a,e):this.saveEmployeeInfo(a)},addEmployee:function(e,a){var t=this,n={name:e.name,isClerk:0,phoneNumber:e.phoneNumber,positionName:e.positionName,departmentId:e.departmentId,managerMode:1*e.managerMode};Object(s.a)("/haoban-manage-web/emp/add",n).then(function(e){1==e.data.errorCode?(t.$message.success({message:"操作成功"}),1==a?t.$refs.emmployInfo.info={name:"",phoneNumber:"",departmentId:"",departmentName:"",managerMode:!1}:window.history.go(-1)):t.$message.error({message:e.data.message})}).catch(function(e){})},saveEmployeeInfo:function(e){var a=this,t={name:e.name,phoneNumber:e.phoneNumber,positionName:e.positionName,departmentId:e.departmentId,employeeClerkId:a.$route.query.employeeClerkId,managerMode:1*e.managerMode};Object(s.a)("/haoban-manage-web/emp/update",t).then(function(e){1==e.data.errorCode?(a.$message.success({message:"操作成功"}),window.history.go(-1)):a.$message.error({message:e.data.message})}).catch(function(e){a.$message.error({message:e.message})})},cancel:function(){this.$confirm(" 是否确认取消,取消后当前页面信息将丢失 ?","提示",{type:"warning"}).then(function(){window.history.go(-1)}).catch(function(e){})}},computed:{isNew:function(){return 1==!!this.$route.query.addnew}}},i={render:function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("div",{staticClass:"common-set-wrap"},[t("nav-crumb",{attrs:{navpath:e.navpath}}),e._v(" "),t("div",{staticClass:"right-content"},[t("div",{staticClass:"right-box"},[t("div",{staticClass:"employee-detail",style:{height:e.$store.state.bgHeight}},[t("employee-info",{ref:"emmployInfo",attrs:{isNew:e.isNew}}),e._v(" "),e.$route.query.readOnly?e._e():t("div",{staticClass:"btn-boxs"},[t("el-button",{attrs:{type:"primary"},on:{click:e.save}},[e._v("保 存")]),e._v(" "),e.isNew?t("el-button",{attrs:{type:"primary"},on:{click:function(a){e.save(1)}}},[e._v("保存并继续添加")]):e._e(),e._v(" "),t("el-button",{on:{click:e.cancel}},[e._v("取 消")])],1)],1)])])],1)},staticRenderFns:[]};var m=t("VU/8")(r,i,!1,function(e){t("U3CN")},null,null);a.default=m.exports},U3CN:function(e,a){}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([51],{"+lem":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a={name:"reviewed",data:function(){return{projectName:"haoban-manage-web",collapseFlag:!1,contentHeight:"0px"}},computed:{},methods:{toRouterView:function(e){this.$router.push({path:e.path})},collapseTag:function(e){this.collapseFlag=e}},watch:{$route:{handler:function(e,t){this.$refs.asideMenu.refreshRoute()},deep:!0}},mounted:function(){this.contentHeight=(document.documentElement.clientHeight||document.body.clientHeight)-64+"px"}},o={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"review-wrap"},[n("vue-office-header",{attrs:{projectName:e.projectName},on:{collapseTag:e.collapseTag,toRouterView:e.toRouterView}}),e._v(" "),n("div",{staticClass:"setting-wrap__body"},[n("div",{staticClass:"content",attrs:{id:"content"}},[n("div",{staticClass:"content-body",style:{height:e.contentHeight}},[n("div",{staticClass:"left-menu",style:{height:e.contentHeight}},[n("vue-office-aside",{ref:"asideMenu",attrs:{projectName:e.projectName,collapseFlag:e.collapseFlag}})],1),e._v(" "),n("transition",{attrs:{name:"fade",mode:"out-in"}},[n("router-view")],1)],1)])])],1)},staticRenderFns:[]};var i=n("VU/8")(a,o,!1,function(e){n("wrIu")},null,null);t.default=i.exports},wrIu:function(e,t){}}); webpackJsonp([49],{"+lem":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a={name:"reviewed",data:function(){return{projectName:"haoban-manage-web",collapseFlag:!1,contentHeight:"0px"}},computed:{},methods:{toRouterView:function(e){this.$router.push({path:e.path})},collapseTag:function(e){this.collapseFlag=e}},watch:{$route:{handler:function(e,t){this.$refs.asideMenu.refreshRoute()},deep:!0}},mounted:function(){this.contentHeight=(document.documentElement.clientHeight||document.body.clientHeight)-64+"px"}},o={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"review-wrap"},[n("vue-office-header",{attrs:{projectName:e.projectName},on:{collapseTag:e.collapseTag,toRouterView:e.toRouterView}}),e._v(" "),n("div",{staticClass:"setting-wrap__body"},[n("div",{staticClass:"content",attrs:{id:"content"}},[n("div",{staticClass:"content-body",style:{height:e.contentHeight}},[n("div",{staticClass:"left-menu",style:{height:e.contentHeight}},[n("vue-office-aside",{ref:"asideMenu",attrs:{projectName:e.projectName,collapseFlag:e.collapseFlag}})],1),e._v(" "),n("transition",{attrs:{name:"fade",mode:"out-in"}},[n("router-view")],1)],1)])])],1)},staticRenderFns:[]};var i=n("VU/8")(a,o,!1,function(e){n("wrIu")},null,null);t.default=i.exports},wrIu:function(e,t){}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([5],{"/Gg9":function(e,t){},"77K1":function(e,t){},"7AAL":function(e,t){},"7SJI":function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=a("3Xzz"),o=a("ATfr"),r=a("P9l9"),n={name:"storeView",props:{tableData:{type:Array,default:function(){return[]}},departmentId:{type:[String,Number],default:""},brandId:{type:[String,Number],default:""}},data:function(){return{tableH:window.screen.availHeight-440-180-70,selectedList:[],showChildMember:!1,typeArr:["全部类型","自营","联营","代理(加盟)","代销","托管"],statusArr:["待审核","正常","审核失败","停业整顿","回收站","删除"]}},methods:{delStores:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a=this;a.$confirm("是否删除所选店铺","提示",{type:"warning"}).then(function(){var s="";if(t)s=e.storeId;else{var o=[];a.selectedList.forEach(function(e){o.push(e.storeId)}),s=o.join(",")}var r={ids:s};a.postDel(r)})},postDel:function(e){var t=this;Object(r.a)("/haoban-manage-web/store/delByIds",e).then(function(e){1==e.data.errorCode?(t.$message.success({duration:1e3,message:"操作成功"}),t.$emit("getStoreList")):t.$message.error({duration:1e3,message:e.data.message})}).catch(function(e){t.$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)}},computed:{disabledDel:function(){return this.selectedList.length<1}}},i={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",{attrs:{href:"#/storeInfo"}},[a("el-button",{attrs:{type:"primary"}},[e._v("添加门店")])],1),e._v(" "),a("a",{attrs:{href:"#/storeIo?importCode=store&departmentId="+e.departmentId+"&showChildMember="+1*e.showChildMember+"&brandId="+e.brandId}},[a("el-button",[e._v("批量导入/导出")])],1),e._v(" "),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:"departmentName","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",attrs:{href:"#/storeInfo?storeId="+t.row.storeId}},[e._v("编辑")]),e._v(" "),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 l=a("VU/8")(n,i,!1,function(e){a("I5WO")},null,null).exports,c={name:"clerkView",props:{tableData:{type:Array,default:function(){return[]}}},data:function(){return{tableH:window.screen.availHeight-440-180-70,storeType:0,typeArr:["全部类型","自营","联营","代理(加盟)","代销","托管"],storeStatus:"",showChildMember:!1}},methods:{setChildMemberShow:function(){this.$emit("setChildMemberShow",this.showChildMember)},changeManager:function(e,t){var a=this,s={};e.clerks.some(function(e){return 1==e.isManager&&(s=e),1==e.isManager});var o={employeeClerkId:t.employeeClerkId,managerId:s.employeeClerkId};Object(r.a)("/haoban-manage-web/emp/setManager",o).then(function(e){1==e.data.errorCode?(s.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)},selectByType:function(e){var t="";0!=e&&(t=1*e-1),this.$emit("selectByType",t)},delClerk:function(e,t){var a=this;a.$confirm("是否要删除该员工?","提示",{type:"warning"}).then(function(){var s={ids:e.employeeClerkId};a.postDel(s,t,e)})},postDel:function(e,t,a){var s=this;Object(r.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)}),s.$message.success({duration:1e3,message:"操作成功"})):s.$message.error({duration:1e3,message:e.data.message})}).catch(function(e){s.$message.error({duration:1e3,message:e.message})})},cancelDelTag:function(e,t,a){t.popVisible=!1},toDelTag:function(e,t,a){var s={ids:t.employeeClerkId};this.postDel(s,a,t)}}},d={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"},on:{change:e.selectByStatus},model:{value:e.storeStatus,callback:function(t){e.storeStatus=t},expression:"storeStatus"}},[a("el-option",{attrs:{label:"全部状态",value:""}}),e._v(" "),a("el-option",{attrs:{label:"正常",value:1}}),e._v(" "),a("el-option",{attrs:{label:"停业整顿",value:3}})],1),e._v(" "),a("span",{staticClass:"J_show-children el-button",staticStyle:{"vertical-align":"middle"},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:"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",attrs:{href:"#/addClerk?storeId="+t.row.storeId}},[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(s,o){return a("li",{key:s.employeeClerkId,staticClass:"clerk-obj-li"},[a("div",{staticClass:"clerk-name clerk-cell"},[a("el-radio",{attrs:{value:1,label:s.isManager},on:{change:function(a){e.changeManager(t.row,s)}}},[e._v(e._s(s.name))]),e._v(" "),1==s.isManager?a("span",{staticClass:"manager"},[e._v("店长")]):e._e()],1),e._v(" "),a("div",{staticClass:"clerk-cell clerk-phone"},[e._v(e._s(s.phoneNumber))]),e._v(" "),a("div",{staticClass:"clerk-cell clerk-position"},[e._v(e._s(s.positionName||"--"))]),e._v(" "),a("div",{staticClass:"clerk-cell clerk-status"},[a("div",{staticClass:"status-icon",class:1==s.status?"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",attrs:{href:"#/addClerk?storeId="+t.row.storeId+"&clerkId="+s.employeeClerkId}},[e._v("编辑")]),e._v(" "),a("el-popover",{attrs:{placement:"top",width:"160"},model:{value:s.popVisible,callback:function(t){e.$set(s,"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(o,s,t.row)}}},[e._v("取消")]),e._v(" "),a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(a){e.toDelTag(o,s,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)])}))]}}])},[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:"position"},[e._v("职位")]),e._v(" "),a("li",{staticClass:"status"},[e._v("状态")]),e._v(" "),a("li",{staticStyle:{width:"200px"}},[e._v("操作")])])])],2)],1)],1)},staticRenderFns:[]};var u=a("VU/8")(c,d,!1,function(e){a("7AAL")},"data-v-5a255d42",null).exports,m=a("qsKc"),p={name:"add-brand-dialog",data:function(){return{dialogVisible:!1,brandName:"",brand:""}},methods:{saveFn:function(){if(this.brandName){var e=this,t={brandName:e.brandName};Object(r.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:"请输入品牌名称"})}}},f={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("el-input",{staticClass:"m-t-20",model:{value:e.brandName,callback:function(t){e.brandName=t},expression:"brandName"}}),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)],1)},staticRenderFns:[]};var h=a("VU/8")(p,f,!1,function(e){a("fAiH")},null,null).exports,g=a("WSbm"),v=a("oncj"),b={name:"storeEstruturaContainer",components:{navCrumb:s.a,searchMenu:o.a,storeView:l,clerkView:u,employeeInfo:g.a,storeInfo:m.a,addBrand:h,clerkInfo:v.a},data:function(){return{navpath:[{name:"首页",path:"/index"},{name:"企业通讯录",path:"/administrativeFrame"},{name:"门店架构",path:""}],minH:window.screen.availHeight-300-140+"px",windowH:window.screen.availHeight-440+"px",tableH:window.screen.availHeight-440-180+"px",boxHeight:window.screen.availHeight+"px",menuData:[],searchResult:{},loading:!0,groupInfo:{groupName:"",departmentId:""},total:0,showChildMember:!1,pageSize:20,pageNumber:1,storeList:[],tableView:1,showEmployee:"node",perId:"",storeInfo:{},disableBtn:!0,storeStatus:"",storeType:"",recycleList:[]}},beforeRouteUpdate:function(e,t,a){a()},methods:{handleSearchKey:function(e){var t=this,a={keyWord:e};Object(r.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){this.perId=e.employeeClerkId,this.showEmployee=t},addBrand:function(){this.$refs.add_brand.dialogVisible=!0},addSon:function(){location.href="#/addGroup?addnew=1&groupId="+this.groupInfo.departmentId},goToEdit:function(e){var t=0==e?"brand":"group";location.href="#/addGroup?groupId="+this.groupInfo.departmentId+"&type="+t},addSuccess:function(){this.getGroupData(),this.$refs.add_brand.dialogVisible=!1},handleStoreSelection:function(e){var t=this,a={storeId:e.storeId};Object(r.a)("/haoban-manage-web/store/findStoreById",a).then(function(e){1==e.data.errorCode?(t.storeInfo=e.data.result,t.showEmployee="store"):t.$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=!1,this.storeStatus="",this.getStoreList()},setChildMemberShow:function(e){this.showChildMember=e,this.getStoreList()},getGroupData:function(){var e=this;Object(r.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.departmentId=t.groupId,e.groupInfo.groupName=t.name,e.groupInfo.hasPression=t.hasPression),0==t.level}),e.getStoreList()):(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;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};Object(r.a)("/haoban-manage-web/store/findSimplePage",t).then(function(a){1==a.data.errorCode?4==t.status?(e.recycleList=a.data.result.list||[],e.storeStatus="",e.loading=!1):(e.total=a.data.result.total,a.data.result.list&&a.data.result.list.length&&a.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=a.data.result.list||[],e.loading=!1,e.storeStatus=4,e.getStoreList()):(e.loading=!1,e.storeList=[],e.$message.error({duration:1e3,message:a.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.groupInfo.groupName=e.name,this.groupInfo.brandId=e.brandId,this.showEmployee=a,this.groupInfo.hasPression=e.hasPression,this.groupInfo.level=e.level,this.getStoreList()},selectByStatus:function(e){this.storeStatus=e,this.getStoreList()},selectByType:function(e){this.storeType=e,this.getStoreList()}},beforeMount:function(){this.getGroupData()},mounted:function(){this.disableBtn=!1}},_={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",style:{minHeight:e.minH}},[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:{perId:e.perId}}):"store"==e.showEmployee?a("store-info",{ref:"store_info",attrs:{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(" "),a("span",{staticClass:"handle-area"},[a("el-button",{staticClass:"no-bdr-btn",attrs:{disabled:1!=e.groupInfo.hasPression},on:{click:e.addSon}},[e._v(" 添加子分组 ")]),a("span",{staticClass:"hurdle"}),a("el-button",{staticClass:"no-bdr-btn",attrs:{href:"#/addGroup?level="+e.groupInfo.level+"&groupId="+e.groupInfo.departmentId,disabled:1!=e.groupInfo.hasPression},on:{click:function(t){e.goToEdit(e.groupInfo.level)}}},[e._v("\n 编辑\n ")])],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",attrs:{href:"#/recycle?dept="+e.groupInfo.departmentId+"&showChild="+1*e.showChildMember+"&type="+e.storeType}},[a("el-button",{attrs:{type:"primary",icon:"el-icon-delete"}},[e._v("回收站("+e._s(e.recycleList.length)+")")])],1)],1),e._v(" "),a("div",[1==e.tableView?[a("store-view",{attrs:{tableData:e.storeList,departmentId:e.groupInfo.departmentId,brandId:e.groupInfo.brandId},on:{setChildMemberShow:e.setChildMemberShow,getStoreList:e.getStoreList}})]:[a("clerk-view",{attrs:{tableData:e.storeList},on:{setChildMemberShow:e.setChildMemberShow,selectByStatus:e.selectByStatus,selectByType:e.selectByType}})]],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 I=a("VU/8")(b,_,!1,function(e){a("DreC")},null,null);t.default=I.exports},ATfr:function(e,t,a){"use strict";var s=a("0xDb"),o={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").classList.remove("is-current"),this.$emit("handleTreeSelection",e,t,"node")},selectEmployee:function(e){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,o=Object(s.c)(e);a.defaultOpen=o.defaultOpen,a.menuData=o.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")})}}},r={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:"姓名/手机号/部门名称",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 s=t.node;return t.data,a("span",{staticClass:"custom-tree-node"},[a("i",{staticClass:"iconfont",class:1==s.level?"icon-2zuzhijiagou":"icon-tongshi-zuzhijiagou"}),e._v(" "),a("span",[e._v(e._s(s.label))])])}}])})],2),e._v(" "),e.searchResultShow?a("div",{staticClass:"search-result-container m-t-15"},[e.storeFrame?[e._l(e.brandList,function(t,s){return t.departmentList.length>0||t.storeList.length>0||t.searchList.length>0?[a("div",{key:t.topDepartment.brandId+"_"+s},[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,s){return a("li",{key:s+"_"+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,s){return a("li",{key:s+"_"+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,s){return a("li",{key:s+"_"+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,s){return a("li",{key:s+"_"+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(" "),e.employeeList.length>0?a("ul",{staticClass:"search-result-ul"},[a("p",{staticClass:"title"},[e._v("人员列表")]),e._v(" "),e._l(e.employeeList,function(t,s){return a("li",{key:s+"_"+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._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")(o,r,!1,function(e){a("/Gg9")},null,null);t.a=n.exports},DreC:function(e,t){},I5WO:function(e,t){},fAiH:function(e,t){},"iL/9":function(e,t){},oncj:function(e,t,a){"use strict";var s=a("Ie7z"),o=a("P9l9"),r=a("PI0u"),n={name:"clerk-info-form",props:{isAddnew:{type:Boolean,default:!1},perId:{type:[String,Number],default:""}},components:{vueSelectStore:s.a},data:function(){return{rules:{name:[{required:!0,message:"请输入店员姓名",trigger:"blur"},{min:2,max:10,message:"长度在 2 到 10 个字符",trigger:"blur"}],phoneNumber:[{required:!0,validator:function(e,t,a){if(t)return/^1[34578]\d{9}$/.test(t)?a():a(new Error("手机号格式不正确"));return a(new Error("请输入手机号"))},trigger:"blur"}],storeName:[{required:!0,message:"请选择门店",trigger:"change"}],code:[{required:!0,message:"请输入code",trigger:"blur"},{min:2,max:20,message:"长度在 2 到 20 个字符",trigger:"blur"}],positionName:[{required:!0,message:"请输入店员职位",trigger:"blur"}]},clerkInfo:{storeName:"",storeId:"",managerMode:!1},treeSet:{isSelectPerson:!1,dialogVisible:!1,isSingle:!0}}},methods:{toInput:Object(r.a)(function(e){var t=e.target.value.match(/[A-Za-z0-9]/g);t?(t=t.join(""),this.clerkInfo.code=t):this.clerkInfo.code=""},500),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:""},addEmployee:function(e,t){var a=this,s={name:e.name,isClerk:1,phoneNumber:e.phoneNumber,positionName:e.positionName,storeId:e.storeId,managerMode:1*e.managerMode,code:e.code,employeeClerkId:e.employeeClerkId||""},r=a.isAddnew?"/haoban-manage-web/emp/add":"/haoban-manage-web/emp/update";Object(o.a)(r,s).then(function(e){1==e.data.errorCode?(a.$message.success({message:"操作成功"}),1==t?a.clerkInfo={name:"",isClerk:1,phoneNumber:"",positionName:"",storeId:"",managerMode:!1,code:""}:a.$router.push("/storeFrame")):a.$message.error({message:e.data.message})}).catch(function(e){a.$message.error({message:e.message})})},cancel:function(){this.$confirm(" 是否确认取消,取消后当前页面信息将丢失 ?","提示",{type:"warning"}).then(function(){window.history.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.$message.error({message:t.data.message})}).catch(function(t){e.$message.error({message:t})})}},beforeMount:function(){this.isAddnew||this.getClerkInfo()},watch:{perId:function(e,t){this.getClerkInfo(e)}}},i={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("el-input",{model:{value:e.clerkInfo.name,callback:function(t){e.$set(e.clerkInfo,"name",t)},expression:"clerkInfo.name"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"手机号",prop:"phoneNumber"}},[a("el-input",{attrs:{disabled:!e.isAddnew},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",{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("el-input",{nativeOn:{keyup:function(t){return a=t,e.toInput(a);var a}},model:{value:e.clerkInfo.code,callback:function(t){e.$set(e.clerkInfo,"code",t)},expression:"clerkInfo.code"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"职位",prop:"positionName"}},[a("el-input",{model:{value:e.clerkInfo.positionName,callback:function(t){e.$set(e.clerkInfo,"positionName",t)},expression:"clerkInfo.positionName"}})],1)],1),e._v(" "),a("div",{staticClass:"btn-box"},[a("el-button",{attrs:{type:"primary"},on:{click:e.saveFn}},[e._v("保 存")]),e._v(" "),e.isAddnew?a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.saveFn(1)}}},[e._v("保存并继续添加")]):e._e(),e._v(" "),a("el-button",{on:{click:e.cancel}},[e._v("取 消")])],1),e._v(" "),a("vue-select-store",{ref:"storeSelector",attrs:{treeSet:e.treeSet,selectType:"store"},on:{handleSelectedList:e.handleSelectedList}})],1)},staticRenderFns:[]};var l=a("VU/8")(n,i,!1,function(e){a("iL/9")},null,null);t.a=l.exports},qsKc:function(e,t,a){"use strict";var s=a("P9l9"),o={name:"store-detail",components:{vueSelectStore:a("Ie7z").a},props:{storeInfo:{type:Object,default:function(){return{}}}},data:function(){return{areaChainName:"",location:"",areaOptions:{},imgs:[],uploadUrl:"/haoban-manage-web/upload-img",treeSet:{isSelectPerson:!1,dialogVisible:!1,isSingle:!0},selectType:"group"}},methods:{callSelector:function(){this.treeSet.dialogVisible=!0},handleSelectedList:function(e){this.storeInfo.departmentName=e[0].label,this.storeInfo.storeGroupId=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(){},deleteImage:function(){},save:function(){var e=this,t=e.location.split(",");e.storeInfo.longitude=t[0],e.storeInfo.latitude=2!==t.length?"":t[1],e.storeInfo.managerPhone=e.storeInfo.managerPhoneNumber,e.storeInfo.areaChainName=e.areaOptions.provinceName+"/"+e.areaOptions.cityName+"/"+e.areaOptions.countryName;var a=e.storeInfo,o=[];e.imgs.forEach(function(e){o.push(e.url)}),a.imageUrls=o.join(","),Object(s.a)("/haoban-manage-web/store/update",a).then(function(t){console.log(t,"eidt result"),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){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})}),this.imgs=a,this.location=e.longitude+","+e.latitude}},mounted:function(){this.formatStoreInfo(this.storeInfo)},watch:{$route:function(e){console.log(e,"to")}}},r={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",{staticClass:"store-info-form info-form",attrs:{"label-width":"90px"}},[a("el-form-item",{attrs:{label:"门店名称",prop:"name"}},[a("el-input",{model:{value:e.storeInfo.storeName,callback:function(t){e.$set(e.storeInfo,"storeName",t)},expression:"storeInfo.storeName"}},[a("template",{slot:"suffix"},[e._v(e._s(e.storeInfo.storeName?e.storeInfo.storeName.length:0)+"/20")])],2)],1),e._v(" "),a("el-form-item",{attrs:{label:"所属分组",prop:"departmentName"}},[a("el-input",{on:{focus:e.callSelector},model:{value:e.storeInfo.departmentName,callback:function(t){e.$set(e.storeInfo,"departmentName",t)},expression:"storeInfo.departmentName"}},[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.imgs,limitW:640,limitH:340,maxImageLength:5},on:{uploadOnSuccess:e.uploadOnSuccess,sortImg:e.sortImg,deleteImage:e.deleteImage}})],1)]),e._v(" "),a("el-form-item",{attrs:{label:"联系电话",prop:"phoneNumber"}},[a("el-input",{model:{value:e.storeInfo.phoneNumber,callback:function(t){e.$set(e.storeInfo,"phoneNumber",t)},expression:"storeInfo.phoneNumber"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"营业时间",prop:"phoneNumber"}},[a("el-time-select",{attrs:{placeholder:"起始时间","picker-options":{start:"00:00",step:"00:05",end:"24:00"}},model:{value:e.storeInfo.openTime,callback:function(t){e.$set(e.storeInfo,"openTime",t)},expression:"storeInfo.openTime"}}),e._v("\n ~\n "),a("el-time-select",{attrs:{placeholder:"结束时间","picker-options":{start:"00:00",step:"00:05",end:"24:00",minTime:e.storeInfo.openTime}},model:{value:e.storeInfo.closeTime,callback:function(t){e.$set(e.storeInfo,"closeTime",t)},expression:"storeInfo.closeTime"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"门店类型"}},[a("el-radio-group",{model:{value:e.storeInfo.storeType,callback:function(t){e.$set(e.storeInfo,"storeType",t)},expression:"storeInfo.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:"门店地址"}},[a("vue-office-area",{attrs:{areaOptions:e.areaOptions,projectName:"haoban-web",postUrl:"/api-admin/dict-district-list"},on:{selected:e.selected}}),e._v(" "),a("el-input",{model:{value:e.storeInfo.postAddress,callback:function(t){e.$set(e.storeInfo,"postAddress",t)},expression:"storeInfo.postAddress"}},[a("template",{slot:"suffix"},[e._v(e._s((e.storeInfo.postAddress||"").length)+"/50")])],2)],1),e._v(" "),a("el-form-item",{attrs:{label:"GPS坐标"}},[a("el-input",{staticClass:"m-r-10",model:{value:e.location,callback:function(t){e.location=t},expression:"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 "),a("i",{staticClass:"el-icon-question",staticStyle:{color:"#C0C4CC"}})]),e._v(" "),a("el-input",{model:{value:e.storeInfo.storeCode,callback:function(t){e.$set(e.storeInfo,"storeCode",t)},expression:"storeInfo.storeCode"}},[a("template",{slot:"suffix"},[e._v(e._s((e.storeInfo.storeCode||"").length)+"/20")])],2)],2)],1)],1),e._v(" "),a("div",{staticClass:"info-cell"},[a("p",{staticClass:"title"},[e._v("店长信息")]),e._v(" "),a("el-form",{staticClass:"store-manager-info-form info-form",attrs:{"label-width":"90px"}},[a("el-form-item",{attrs:{label:"店长姓名",prop:"name"}},[a("el-input",{model:{value:e.storeInfo.managerName,callback:function(t){e.$set(e.storeInfo,"managerName",t)},expression:"storeInfo.managerName"}},[a("template",{slot:"suffix"},[e._v(e._s((e.storeInfo.managerName||"").length)+"/10")])],2)],1),e._v(" "),a("el-form-item",{attrs:{label:"手机号码",prop:"phone"}},[a("el-input",{attrs:{disabled:""},model:{value:e.storeInfo.managerPhoneNumber,callback:function(t){e.$set(e.storeInfo,"managerPhoneNumber",t)},expression:"storeInfo.managerPhoneNumber"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"店长性别"}},[a("el-radio-group",{model:{value:e.storeInfo.managerSex,callback:function(t){e.$set(e.storeInfo,"managerSex",t)},expression:"storeInfo.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:"店长代码"}},[a("el-input",{model:{value:e.storeInfo.managerCode,callback:function(t){e.$set(e.storeInfo,"managerCode",t)},expression:"storeInfo.managerCode"}},[a("template",{slot:"suffix"},[e._v(e._s((e.storeInfo.managerCode||"").length)+"/20")])],2)],1)],1)],1),e._v(" "),a("div",{staticClass:"info-cell"},[a("p",{staticClass:"title"},[e._v("经营信息")]),e._v(" "),a("el-form",{staticClass:"operate-info-form info-form",attrs:{"label-width":"90px"}},[a("el-form-item",{attrs:{label:"特色服务"}},[a("el-input",{attrs:{type:"textarea",rows:2},model:{value:e.storeInfo.specialService,callback:function(t){e.$set(e.storeInfo,"specialService",t)},expression:"storeInfo.specialService"}}),e._v(" "),a("p",{staticClass:"counter t-rt c-909399"},[e._v(e._s((e.storeInfo.specialService||"").length)+"/20")])],1),e._v(" "),a("el-form-item",{attrs:{label:"人均消费"}},[a("el-input",{model:{value:e.storeInfo.personCost,callback:function(t){e.$set(e.storeInfo,"personCost",t)},expression:"storeInfo.personCost"}},[a("template",{slot:"suffix"},[e._v(e._s((e.storeInfo.personCost+"").length)+"/10")])],2)],1),e._v(" "),a("el-form-item",{attrs:{label:"推荐商品"}},[a("el-input",{attrs:{type:"textarea",rows:2},model:{value:e.storeInfo.recommendGoods,callback:function(t){e.$set(e.storeInfo,"recommendGoods",t)},expression:"storeInfo.recommendGoods"}}),e._v(" "),a("p",{staticClass:"counter t-rt c-909399"},[e._v(e._s((e.storeInfo.recommendGoods||"").length)+"/100")])],1),e._v(" "),a("el-form-item",{attrs:{label:"品牌介绍"}},[a("el-input",{attrs:{type:"textarea",rows:2},model:{value:e.storeInfo.brandDes,callback:function(t){e.$set(e.storeInfo,"brandDes",t)},expression:"storeInfo.brandDes"}}),e._v(" "),a("p",{staticClass:"counter t-rt c-909399"},[e._v(e._s((e.storeInfo.recommendGoods||"").length)+"/200")])],1)],1)],1),e._v(" "),a("div",{staticClass:"handle-area"},[a("el-button",{attrs:{type:"primary"},on:{click:e.save}},[e._v("保 存")])],1),e._v(" "),a("vue-select-store",{ref:"storeSelector",attrs:{treeSet:e.treeSet,selectType:e.selectType,forbidenList:[e.storeInfo.storeGroupId]},on:{handleSelectedList:e.handleSelectedList}})],1)},staticRenderFns:[]};var n=a("VU/8")(o,r,!1,function(e){a("77K1")},null,null);t.a=n.exports}});
\ No newline at end of file
webpackJsonp([5],{"/Gg9":function(e,t){},"77K1":function(e,t){},"7SJI":function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=a("3Xzz"),o=a("ATfr"),r=a("P9l9"),n={name:"storeView",props:{tableData:{type:Array,default:function(){return[]}},departmentId:{type:[String,Number],default:""},brandId:{type:[String,Number],default:""}},data:function(){return{tableH:window.screen.availHeight-440-180-70,selectedList:[],showChildMember:!1,typeArr:["全部类型","自营","联营","代理(加盟)","代销","托管"],statusArr:["待审核","正常","审核失败","停业整顿","回收站","删除"]}},methods:{delStores:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a=this;a.$confirm("是否删除所选店铺","提示",{type:"warning"}).then(function(){var s="";if(t)s=e.storeId;else{var o=[];a.selectedList.forEach(function(e){o.push(e.storeId)}),s=o.join(",")}var r={ids:s};a.postDel(r)})},postDel:function(e){var t=this;Object(r.a)("/haoban-manage-web/store/delByIds",e).then(function(e){1==e.data.errorCode?(t.$message.success({duration:1e3,message:"操作成功"}),t.$emit("getStoreList")):t.$message.error({duration:1e3,message:e.data.message})}).catch(function(e){t.$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)}},computed:{disabledDel:function(){return this.selectedList.length<1}}},l={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",{attrs:{href:"#/storeInfo"}},[a("el-button",{attrs:{type:"primary"}},[e._v("添加门店")])],1),e._v(" "),a("a",{attrs:{href:"#/storeIo?importCode=store&departmentId="+e.departmentId+"&showChildMember="+1*e.showChildMember+"&brandId="+e.brandId}},[a("el-button",[e._v("批量导入/导出")])],1),e._v(" "),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:{height:e.tableData.length?e.tableH:"auto",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:"departmentName","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",attrs:{href:"#/storeInfo?storeId="+t.row.storeId}},[e._v("编辑")]),e._v(" "),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 i=a("VU/8")(n,l,!1,function(e){a("IPpc")},null,null).exports,c={name:"clerkView",props:{tableData:{type:Array,default:function(){return[]}}},data:function(){return{tableH:window.screen.availHeight-440-180-70,storeType:0,typeArr:["全部类型","自营","联营","代理(加盟)","代销","托管"],storeStatus:"",showChildMember:!1}},methods:{setChildMemberShow:function(){this.$emit("setChildMemberShow",this.showChildMember)},changeManager:function(e,t){var a=this,s={};e.clerks.some(function(e){return 1==e.isManager&&(s=e),1==e.isManager});var o={employeeClerkId:t.employeeClerkId,managerId:s.employeeClerkId};Object(r.a)("/haoban-manage-web/emp/setManager",o).then(function(e){1==e.data.errorCode?(s.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)},selectByType:function(e){var t="";0!=e&&(t=1*e-1),this.$emit("selectByType",t)},delClerk:function(e,t){var a=this;a.$confirm("是否要删除该员工?","提示",{type:"warning"}).then(function(){var s={ids:e.employeeClerkId};a.postDel(s,t,e)})},postDel:function(e,t,a){var s=this;Object(r.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)}),s.$message.success({duration:1e3,message:"操作成功"})):s.$message.error({duration:1e3,message:e.data.message})}).catch(function(e){s.$message.error({duration:1e3,message:e.message})})},cancelDelTag:function(e,t,a){t.popVisible=!1},toDelTag:function(e,t,a){var s={ids:t.employeeClerkId};this.postDel(s,a,t)}}},d={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"},on:{change:e.selectByStatus},model:{value:e.storeStatus,callback:function(t){e.storeStatus=t},expression:"storeStatus"}},[a("el-option",{attrs:{label:"全部状态",value:""}}),e._v(" "),a("el-option",{attrs:{label:"正常",value:1}}),e._v(" "),a("el-option",{attrs:{label:"停业整顿",value:3}})],1),e._v(" "),a("span",{staticClass:"J_show-children el-button",staticStyle:{"vertical-align":"middle"},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:"clerkViewTable",staticClass:"diy-table",attrs:{height:e.tableData.length?e.tableH:"auto",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",attrs:{href:"#/addClerk?storeId="+t.row.storeId}},[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(s,o){return a("li",{key:s.employeeClerkId,staticClass:"clerk-obj-li"},[a("div",{staticClass:"clerk-name clerk-cell"},[a("el-radio",{attrs:{value:1,label:s.isManager},on:{change:function(a){e.changeManager(t.row,s)}}},[e._v(e._s(s.name))]),e._v(" "),1==s.isManager?a("span",{staticClass:"manager"},[e._v("店长")]):e._e()],1),e._v(" "),a("div",{staticClass:"clerk-cell clerk-phone"},[e._v(e._s(s.phoneNumber))]),e._v(" "),a("div",{staticClass:"clerk-cell clerk-position"},[e._v(e._s(s.positionName||"--"))]),e._v(" "),a("div",{staticClass:"clerk-cell clerk-status"},[a("div",{staticClass:"status-icon",class:1==s.status?"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",attrs:{href:"#/addClerk?storeId="+t.row.storeId+"&clerkId="+s.employeeClerkId}},[e._v("编辑")]),e._v(" "),a("el-popover",{attrs:{placement:"top",width:"160"},model:{value:s.popVisible,callback:function(t){e.$set(s,"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(o,s,t.row)}}},[e._v("取消")]),e._v(" "),a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(a){e.toDelTag(o,s,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)])}))]}}])},[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:"position"},[e._v("职位")]),e._v(" "),a("li",{staticClass:"status"},[e._v("状态")]),e._v(" "),a("li",{staticStyle:{width:"200px"}},[e._v("操作")])])])],2)],1)],1)},staticRenderFns:[]};var u=a("VU/8")(c,d,!1,function(e){a("ggbo")},"data-v-1970a6b0",null).exports,m=a("qsKc"),p={name:"add-brand-dialog",data:function(){return{dialogVisible:!1,brandName:"",brand:""}},methods:{saveFn:function(){if(this.brandName){var e=this,t={brandName:e.brandName};Object(r.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:"请输入品牌名称"})}}},f={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("el-input",{staticClass:"m-t-20",model:{value:e.brandName,callback:function(t){e.brandName=t},expression:"brandName"}}),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)],1)},staticRenderFns:[]};var h=a("VU/8")(p,f,!1,function(e){a("fAiH")},null,null).exports,g=a("WSbm"),v=a("oncj"),b={name:"storeEstruturaContainer",components:{navCrumb:s.a,searchMenu:o.a,storeView:i,clerkView:u,employeeInfo:g.a,storeInfo:m.a,addBrand:h,clerkInfo:v.a},data:function(){return{navpath:[{name:"首页",path:"/index"},{name:"企业通讯录",path:"/administrativeFrame"},{name:"门店架构",path:""}],windowH:window.screen.availHeight-440+"px",tableH:window.screen.availHeight-440-180+"px",boxHeight:window.screen.availHeight+"px",menuData:[],searchResult:{},loading:!0,groupInfo:{groupName:"",departmentId:""},total:0,showChildMember:!1,pageSize:20,pageNumber:1,storeList:[],tableView:1,showEmployee:"node",perId:"",storeInfo:{},disableBtn:!0,storeStatus:"",storeType:"",recycleList:[]}},beforeRouteUpdate:function(e,t,a){a()},methods:{handleSearchKey:function(e){var t=this,a={keyWord:e};Object(r.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){this.perId=e.employeeClerkId,this.showEmployee=t},addBrand:function(){this.$refs.add_brand.dialogVisible=!0},addSon:function(){location.href="#/addGroup?addnew=1&groupId="+this.groupInfo.departmentId},goToEdit:function(e){var t=0==e?"brand":"group";location.href="#/addGroup?groupId="+this.groupInfo.departmentId+"&type="+t},addSuccess:function(){this.getGroupData(),this.$refs.add_brand.dialogVisible=!1},handleStoreSelection:function(e){var t=this,a={storeId:e.storeId};Object(r.a)("/haoban-manage-web/store/findStoreById",a).then(function(e){1==e.data.errorCode?(t.storeInfo=e.data.result,t.showEmployee="store"):t.$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=!1,this.storeStatus="",this.getStoreList()},setChildMemberShow:function(e){this.showChildMember=e,this.getStoreList()},getGroupData:function(){var e=this;Object(r.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.departmentId=t.groupId,e.groupInfo.groupName=t.name,e.groupInfo.hasPression=t.hasPression),0==t.level}),e.getStoreList()):(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;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};Object(r.a)("/haoban-manage-web/store/findSimplePage",t).then(function(a){1==a.data.errorCode?4==t.status?(e.recycleList=a.data.result.list||[],e.storeStatus="",e.loading=!1):(e.total=a.data.result.total,a.data.result.list&&a.data.result.list.length&&a.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=a.data.result.list||[],e.loading=!1,e.storeStatus=4,e.getStoreList()):(e.loading=!1,e.storeList=[],e.$message.error({duration:1e3,message:a.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.groupInfo.groupName=e.name,this.groupInfo.brandId=e.brandId,this.showEmployee=a,this.groupInfo.hasPression=e.hasPression,this.groupInfo.level=e.level,this.getStoreList()},selectByStatus:function(e){this.storeStatus=e,this.getStoreList()},selectByType:function(e){this.storeType=e,this.getStoreList()}},beforeMount:function(){this.getGroupData()},mounted:function(){this.disableBtn=!1}},_={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",style:{height:e.windowH}},[a("div",{staticClass:"right-box"},[a("div",{staticClass:"store-estrutura-container common-frame-container",style:{height:e.windowH}},[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:{perId:e.perId}}):"store"==e.showEmployee?a("store-info",{ref:"store_info",attrs:{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(" "),a("span",{staticClass:"handle-area"},[a("el-button",{staticClass:"no-bdr-btn",attrs:{disabled:1!=e.groupInfo.hasPression},on:{click:e.addSon}},[e._v(" 添加子分组 ")]),a("span",{staticClass:"hurdle"}),a("el-button",{staticClass:"no-bdr-btn",attrs:{href:"#/addGroup?level="+e.groupInfo.level+"&groupId="+e.groupInfo.departmentId,disabled:1!=e.groupInfo.hasPression},on:{click:function(t){e.goToEdit(e.groupInfo.level)}}},[e._v("\n 编辑\n ")])],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",attrs:{href:"#/recycle?dept="+e.groupInfo.departmentId+"&showChild="+1*e.showChildMember+"&type="+e.storeType}},[a("el-button",{attrs:{type:"primary",icon:"el-icon-delete"}},[e._v("回收站("+e._s(e.recycleList.length)+")")])],1)],1),e._v(" "),a("div",[1==e.tableView?[a("store-view",{attrs:{tableData:e.storeList,departmentId:e.groupInfo.departmentId,brandId:e.groupInfo.brandId},on:{setChildMemberShow:e.setChildMemberShow,getStoreList:e.getStoreList}})]:[a("clerk-view",{attrs:{tableData:e.storeList},on:{setChildMemberShow:e.setChildMemberShow,selectByStatus:e.selectByStatus,selectByType:e.selectByType}})]],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 I=a("VU/8")(b,_,!1,function(e){a("wKRH")},null,null);t.default=I.exports},ATfr:function(e,t,a){"use strict";var s=a("0xDb"),o={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").classList.remove("is-current"),this.$emit("handleTreeSelection",e,t,"node")},selectEmployee:function(e){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,o=Object(s.c)(e);a.defaultOpen=o.defaultOpen,a.menuData=o.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")})}}},r={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:"姓名/手机号/部门名称",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 s=t.node;return t.data,a("span",{staticClass:"custom-tree-node"},[a("i",{staticClass:"iconfont",class:1==s.level?"icon-2zuzhijiagou":"icon-tongshi-zuzhijiagou"}),e._v(" "),a("span",[e._v(e._s(s.label))])])}}])})],2),e._v(" "),e.searchResultShow?a("div",{staticClass:"search-result-container m-t-15"},[e.storeFrame?[e._l(e.brandList,function(t,s){return t.departmentList.length>0||t.storeList.length>0||t.searchList.length>0?[a("div",{key:t.topDepartment.brandId+"_"+s},[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,s){return a("li",{key:s+"_"+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,s){return a("li",{key:s+"_"+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,s){return a("li",{key:s+"_"+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,s){return a("li",{key:s+"_"+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(" "),e.employeeList.length>0?a("ul",{staticClass:"search-result-ul"},[a("p",{staticClass:"title"},[e._v("人员列表")]),e._v(" "),e._l(e.employeeList,function(t,s){return a("li",{key:s+"_"+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._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")(o,r,!1,function(e){a("/Gg9")},null,null);t.a=n.exports},IPpc:function(e,t){},fAiH:function(e,t){},ggbo:function(e,t){},"iL/9":function(e,t){},oncj:function(e,t,a){"use strict";var s=a("Ie7z"),o=a("P9l9"),r=a("PI0u"),n={name:"clerk-info-form",props:{isAddnew:{type:Boolean,default:!1},perId:{type:[String,Number],default:""}},components:{vueSelectStore:s.a},data:function(){return{rules:{name:[{required:!0,message:"请输入店员姓名",trigger:"blur"},{min:2,max:10,message:"长度在 2 到 10 个字符",trigger:"blur"}],phoneNumber:[{required:!0,validator:function(e,t,a){if(t)return/^1[34578]\d{9}$/.test(t)?a():a(new Error("手机号格式不正确"));return a(new Error("请输入手机号"))},trigger:"blur"}],storeName:[{required:!0,message:"请选择门店",trigger:"change"}],code:[{required:!0,message:"请输入code",trigger:"blur"},{min:2,max:20,message:"长度在 2 到 20 个字符",trigger:"blur"}],positionName:[{required:!0,message:"请输入店员职位",trigger:"blur"}]},clerkInfo:{storeName:"",storeId:"",managerMode:!1},treeSet:{isSelectPerson:!1,dialogVisible:!1,isSingle:!0}}},methods:{toInput:Object(r.a)(function(e){var t=e.target.value.match(/[A-Za-z0-9]/g);t?(t=t.join(""),this.clerkInfo.code=t):this.clerkInfo.code=""},500),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:""},addEmployee:function(e,t){var a=this,s={name:e.name,isClerk:1,phoneNumber:e.phoneNumber,positionName:e.positionName,storeId:e.storeId,managerMode:1*e.managerMode,code:e.code,employeeClerkId:e.employeeClerkId||""},r=a.isAddnew?"/haoban-manage-web/emp/add":"/haoban-manage-web/emp/update";Object(o.a)(r,s).then(function(e){1==e.data.errorCode?(a.$message.success({message:"操作成功"}),1==t?a.clerkInfo={name:"",isClerk:1,phoneNumber:"",positionName:"",storeId:"",managerMode:!1,code:""}:a.$router.push("/storeFrame")):a.$message.error({message:e.data.message})}).catch(function(e){a.$message.error({message:e.message})})},cancel:function(){this.$confirm(" 是否确认取消,取消后当前页面信息将丢失 ?","提示",{type:"warning"}).then(function(){window.history.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.$message.error({message:t.data.message})}).catch(function(t){e.$message.error({message:t})})}},beforeMount:function(){this.isAddnew||this.getClerkInfo()},watch:{perId:function(e,t){this.getClerkInfo(e)}}},l={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("el-input",{model:{value:e.clerkInfo.name,callback:function(t){e.$set(e.clerkInfo,"name",t)},expression:"clerkInfo.name"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"手机号",prop:"phoneNumber"}},[a("el-input",{attrs:{disabled:!e.isAddnew},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",{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("el-input",{nativeOn:{keyup:function(t){return a=t,e.toInput(a);var a}},model:{value:e.clerkInfo.code,callback:function(t){e.$set(e.clerkInfo,"code",t)},expression:"clerkInfo.code"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"职位",prop:"positionName"}},[a("el-input",{model:{value:e.clerkInfo.positionName,callback:function(t){e.$set(e.clerkInfo,"positionName",t)},expression:"clerkInfo.positionName"}})],1)],1),e._v(" "),a("div",{staticClass:"btn-box"},[a("el-button",{attrs:{type:"primary"},on:{click:e.saveFn}},[e._v("保 存")]),e._v(" "),e.isAddnew?a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.saveFn(1)}}},[e._v("保存并继续添加")]):e._e(),e._v(" "),a("el-button",{on:{click:e.cancel}},[e._v("取 消")])],1),e._v(" "),a("vue-select-store",{ref:"storeSelector",attrs:{treeSet:e.treeSet,selectType:"store"},on:{handleSelectedList:e.handleSelectedList}})],1)},staticRenderFns:[]};var i=a("VU/8")(n,l,!1,function(e){a("iL/9")},null,null);t.a=i.exports},qsKc:function(e,t,a){"use strict";var s=a("P9l9"),o={name:"store-detail",components:{vueSelectStore:a("Ie7z").a},props:{storeInfo:{type:Object,default:function(){return{}}}},data:function(){return{areaChainName:"",location:"",areaOptions:{},imgs:[],uploadUrl:"/haoban-manage-web/upload-img",treeSet:{isSelectPerson:!1,dialogVisible:!1,isSingle:!0},selectType:"group"}},methods:{callSelector:function(){this.treeSet.dialogVisible=!0},handleSelectedList:function(e){this.storeInfo.departmentName=e[0].label,this.storeInfo.storeGroupId=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(){},deleteImage:function(){},save:function(){var e=this,t=e.location.split(",");e.storeInfo.longitude=t[0],e.storeInfo.latitude=2!==t.length?"":t[1],e.storeInfo.managerPhone=e.storeInfo.managerPhoneNumber,e.storeInfo.areaChainName=e.areaOptions.provinceName+"/"+e.areaOptions.cityName+"/"+e.areaOptions.countryName;var a=e.storeInfo,o=[];e.imgs.forEach(function(e){o.push(e.url)}),a.imageUrls=o.join(","),Object(s.a)("/haoban-manage-web/store/update",a).then(function(t){console.log(t,"eidt result"),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){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})}),this.imgs=a,this.location=e.longitude+","+e.latitude}},mounted:function(){this.formatStoreInfo(this.storeInfo)},watch:{$route:function(e){console.log(e,"to")}}},r={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",{staticClass:"store-info-form info-form",attrs:{"label-width":"90px"}},[a("el-form-item",{attrs:{label:"门店名称",prop:"name"}},[a("el-input",{model:{value:e.storeInfo.storeName,callback:function(t){e.$set(e.storeInfo,"storeName",t)},expression:"storeInfo.storeName"}},[a("template",{slot:"suffix"},[e._v(e._s(e.storeInfo.storeName?e.storeInfo.storeName.length:0)+"/20")])],2)],1),e._v(" "),a("el-form-item",{attrs:{label:"所属分组",prop:"departmentName"}},[a("el-input",{on:{focus:e.callSelector},model:{value:e.storeInfo.departmentName,callback:function(t){e.$set(e.storeInfo,"departmentName",t)},expression:"storeInfo.departmentName"}},[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.imgs,limitW:640,limitH:340,maxImageLength:5},on:{uploadOnSuccess:e.uploadOnSuccess,sortImg:e.sortImg,deleteImage:e.deleteImage}})],1)]),e._v(" "),a("el-form-item",{attrs:{label:"联系电话",prop:"phoneNumber"}},[a("el-input",{model:{value:e.storeInfo.phoneNumber,callback:function(t){e.$set(e.storeInfo,"phoneNumber",t)},expression:"storeInfo.phoneNumber"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"营业时间",prop:"phoneNumber"}},[a("el-time-select",{attrs:{placeholder:"起始时间","picker-options":{start:"00:00",step:"00:05",end:"24:00"}},model:{value:e.storeInfo.openTime,callback:function(t){e.$set(e.storeInfo,"openTime",t)},expression:"storeInfo.openTime"}}),e._v("\n ~\n "),a("el-time-select",{attrs:{placeholder:"结束时间","picker-options":{start:"00:00",step:"00:05",end:"24:00",minTime:e.storeInfo.openTime}},model:{value:e.storeInfo.closeTime,callback:function(t){e.$set(e.storeInfo,"closeTime",t)},expression:"storeInfo.closeTime"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"门店类型"}},[a("el-radio-group",{model:{value:e.storeInfo.storeType,callback:function(t){e.$set(e.storeInfo,"storeType",t)},expression:"storeInfo.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:"门店地址"}},[a("vue-office-area",{attrs:{areaOptions:e.areaOptions,projectName:"haoban-web",postUrl:"/api-admin/dict-district-list"},on:{selected:e.selected}}),e._v(" "),a("el-input",{model:{value:e.storeInfo.postAddress,callback:function(t){e.$set(e.storeInfo,"postAddress",t)},expression:"storeInfo.postAddress"}},[a("template",{slot:"suffix"},[e._v(e._s((e.storeInfo.postAddress||"").length)+"/50")])],2)],1),e._v(" "),a("el-form-item",{attrs:{label:"GPS坐标"}},[a("el-input",{staticClass:"m-r-10",model:{value:e.location,callback:function(t){e.location=t},expression:"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 "),a("i",{staticClass:"el-icon-question",staticStyle:{color:"#C0C4CC"}})]),e._v(" "),a("el-input",{model:{value:e.storeInfo.storeCode,callback:function(t){e.$set(e.storeInfo,"storeCode",t)},expression:"storeInfo.storeCode"}},[a("template",{slot:"suffix"},[e._v(e._s((e.storeInfo.storeCode||"").length)+"/20")])],2)],2)],1)],1),e._v(" "),a("div",{staticClass:"info-cell"},[a("p",{staticClass:"title"},[e._v("店长信息")]),e._v(" "),a("el-form",{staticClass:"store-manager-info-form info-form",attrs:{"label-width":"90px"}},[a("el-form-item",{attrs:{label:"店长姓名",prop:"name"}},[a("el-input",{model:{value:e.storeInfo.managerName,callback:function(t){e.$set(e.storeInfo,"managerName",t)},expression:"storeInfo.managerName"}},[a("template",{slot:"suffix"},[e._v(e._s((e.storeInfo.managerName||"").length)+"/10")])],2)],1),e._v(" "),a("el-form-item",{attrs:{label:"手机号码",prop:"phone"}},[a("el-input",{attrs:{disabled:""},model:{value:e.storeInfo.managerPhoneNumber,callback:function(t){e.$set(e.storeInfo,"managerPhoneNumber",t)},expression:"storeInfo.managerPhoneNumber"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"店长性别"}},[a("el-radio-group",{model:{value:e.storeInfo.managerSex,callback:function(t){e.$set(e.storeInfo,"managerSex",t)},expression:"storeInfo.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:"店长代码"}},[a("el-input",{model:{value:e.storeInfo.managerCode,callback:function(t){e.$set(e.storeInfo,"managerCode",t)},expression:"storeInfo.managerCode"}},[a("template",{slot:"suffix"},[e._v(e._s((e.storeInfo.managerCode||"").length)+"/20")])],2)],1)],1)],1),e._v(" "),a("div",{staticClass:"info-cell"},[a("p",{staticClass:"title"},[e._v("经营信息")]),e._v(" "),a("el-form",{staticClass:"operate-info-form info-form",attrs:{"label-width":"90px"}},[a("el-form-item",{attrs:{label:"特色服务"}},[a("el-input",{attrs:{type:"textarea",rows:2},model:{value:e.storeInfo.specialService,callback:function(t){e.$set(e.storeInfo,"specialService",t)},expression:"storeInfo.specialService"}}),e._v(" "),a("p",{staticClass:"counter t-rt c-909399"},[e._v(e._s((e.storeInfo.specialService||"").length)+"/20")])],1),e._v(" "),a("el-form-item",{attrs:{label:"人均消费"}},[a("el-input",{model:{value:e.storeInfo.personCost,callback:function(t){e.$set(e.storeInfo,"personCost",t)},expression:"storeInfo.personCost"}},[a("template",{slot:"suffix"},[e._v(e._s((e.storeInfo.personCost+"").length)+"/10")])],2)],1),e._v(" "),a("el-form-item",{attrs:{label:"推荐商品"}},[a("el-input",{attrs:{type:"textarea",rows:2},model:{value:e.storeInfo.recommendGoods,callback:function(t){e.$set(e.storeInfo,"recommendGoods",t)},expression:"storeInfo.recommendGoods"}}),e._v(" "),a("p",{staticClass:"counter t-rt c-909399"},[e._v(e._s((e.storeInfo.recommendGoods||"").length)+"/100")])],1),e._v(" "),a("el-form-item",{attrs:{label:"品牌介绍"}},[a("el-input",{attrs:{type:"textarea",rows:2},model:{value:e.storeInfo.brandDes,callback:function(t){e.$set(e.storeInfo,"brandDes",t)},expression:"storeInfo.brandDes"}}),e._v(" "),a("p",{staticClass:"counter t-rt c-909399"},[e._v(e._s((e.storeInfo.recommendGoods||"").length)+"/200")])],1)],1)],1),e._v(" "),a("div",{staticClass:"handle-area"},[a("el-button",{attrs:{type:"primary"},on:{click:e.save}},[e._v("保 存")])],1),e._v(" "),a("vue-select-store",{ref:"storeSelector",attrs:{treeSet:e.treeSet,selectType:e.selectType,forbidenList:[e.storeInfo.storeGroupId]},on:{handleSelectedList:e.handleSelectedList}})],1)},staticRenderFns:[]};var n=a("VU/8")(o,r,!1,function(e){a("77K1")},null,null);t.a=n.exports},wKRH:function(e,t){}});
\ No newline at end of file
webpackJsonp([52],{JsWW:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=a("3Xzz"),n=a("P9l9"),r=a("MJLE"),i=a.n(r),o={name:"shareCode",components:{navCrumb:s.a},data:function(){return{navpath:[{name:"首页",path:"/index"},{name:"企业通讯录",path:"/administrativeFrame"},{name:"共享通讯录",path:""}],regenerate:!1,qrCodeContent:{},shares:[],qrcodeCase:"",myEnterprise:"",dialogVisible:!1}},methods:{getCode:function(){var e=this,t={regenerate:arguments.length>0&&void 0!==arguments[0]&&arguments[0]};Object(n.a)("/haoban-manage-web/shared-contact/get-shared-qrcode",t).then(function(t){1==t.data.errorCode?e.qrcode(t.data.result.qrCodeContent):e.$message.error({message:t.data.message})}).catch(function(t){e.$message.error({message:t.message})})},reFresh:function(){document.getElementById("qrcode").innerHTML="",this.qrcodeCase.clear(),this.getCode(!0)},qrcode:function(e){this.qrcodeCase=new i.a("qrcode",{width:245,height:245,text:e})},downloadCode:function(){var e=document.getElementById("qrcode").getElementsByTagName("img")[0].getAttribute("src"),t=document.createElement("a"),a=new MouseEvent("click");t.download="scan code",t.href=e,t.dispatchEvent(a)},getShareRelation:function(){var e=this;Object(n.a)("/haoban-manage-web/shared-contact/find-shared-contact-relation",{enterpriseIdCondition:1}).then(function(t){1==t.data.errorCode?(e.shares=t.data.result||[],e.shares.length>0&&(e.myEnterprise=t.data.result[0].exportEnterpriseName)):e.$message.error({message:t.data.message})}).catch(function(t){e.$message.error({message:t.message})})},cancelShare:function(e){var t=this;t.$confirm("是否要取消与该企业的共享?","提示",{type:"warning"}).then(function(){Object(n.a)("/haoban-manage-web/shared-contact/del-shared-enterprise",{importEnterpriseId:e.importEnterpriseId}).then(function(a){if(1==a.data.errorCode){var s=t.shares.indexOf(e);t.shares.splice(s,1)}else t.$message.error({message:a.data.message})}).catch(function(e){t.$message.error({message:e.message})})}).catch({})}},beforeMount:function(){this.getShareRelation(),this.getCode()}},c={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"common-set-wrap"},[a("nav-crumb",{attrs:{navpath:e.navpath}}),e._v(" "),a("div",{staticClass:"right-content"},[a("div",{staticClass:"right-box"},[a("div",{staticClass:"share-code-div"},[a("p",{staticClass:"company-name"},[e._v(e._s(e.myEnterprise)+"的共享企业")]),e._v(" "),a("p",{staticClass:"word"},[e._v("双方共享的通讯录,选人时可以选到,同时邀请企业建立共享关系")]),e._v(" "),a("p",{staticClass:"time-tip"},[e._v("一个二维码只能和一个企业建立共享关系,24小时有效")]),e._v(" "),a("div",{staticClass:"m-t-20",attrs:{id:"qrcode"}}),e._v(" "),a("div",{staticClass:"btn-area"},[a("el-button",{attrs:{type:"primary"},on:{click:e.downloadCode}},[e._v("下载"),a("i",{staticClass:"iconfont icon-icon_yunxiazai"})]),e._v(" "),a("el-button",{on:{click:function(t){e.reFresh()}}},[e._v("重新生成")])],1),e._v(" "),a("p",{staticClass:"company-name"},[e._v("已建立的共享企业")]),e._v(" "),e.shares.length>0?a("div",{staticClass:"share-table"},[a("div",{staticClass:"company"},[e._v(e._s(e.myEnterprise))]),e._v(" "),a("ul",{staticClass:"list"},e._l(e.shares,function(t){return a("li",{key:t.importEnterpriseId,staticClass:"li"},[a("div",{staticClass:"name"},[e._v(e._s(t.importEnterpriseName))]),e._v(" "),a("div",{staticClass:"cancel-btn"},[a("a",{staticClass:"a-href",on:{click:function(a){e.cancelShare(t)}}},[e._v("取消共享")])])])}))]):e._e(),e._v(" "),a("div",{staticClass:"no-share-tip"},[e._v("暂无共享企业")]),e._v(" "),a("el-dialog",{attrs:{title:"验证管理员身份",width:"356px",visible:e.dialogVisible},on:{"update:visible":function(t){e.dialogVisible=t}}},[a("div",{staticClass:"cancel-code"},[a("p",[e._v("请使用管理员的好办扫一扫确认")])])])],1)])]),e._v(" "),a("vue-gic-footer")],1)},staticRenderFns:[]};var d=a("VU/8")(o,c,!1,function(e){a("X8hA")},null,null);t.default=d.exports},X8hA:function(e,t){}}); webpackJsonp([50],{JsWW:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=a("3Xzz"),n=a("P9l9"),r=a("MJLE"),i=a.n(r),o={name:"shareCode",components:{navCrumb:s.a},data:function(){return{navpath:[{name:"首页",path:"/index"},{name:"企业通讯录",path:"/administrativeFrame"},{name:"共享通讯录",path:""}],regenerate:!1,qrCodeContent:{},shares:[],qrcodeCase:"",myEnterprise:"",dialogVisible:!1}},methods:{getCode:function(){var e=this,t={regenerate:arguments.length>0&&void 0!==arguments[0]&&arguments[0]};Object(n.a)("/haoban-manage-web/shared-contact/get-shared-qrcode",t).then(function(t){1==t.data.errorCode?e.qrcode(t.data.result.qrCodeContent):e.$message.error({message:t.data.message})}).catch(function(t){e.$message.error({message:t.message})})},reFresh:function(){document.getElementById("qrcode").innerHTML="",this.qrcodeCase.clear(),this.getCode(!0)},qrcode:function(e){this.qrcodeCase=new i.a("qrcode",{width:245,height:245,text:e})},downloadCode:function(){var e=document.getElementById("qrcode").getElementsByTagName("img")[0].getAttribute("src"),t=document.createElement("a"),a=new MouseEvent("click");t.download="scan code",t.href=e,t.dispatchEvent(a)},getShareRelation:function(){var e=this;Object(n.a)("/haoban-manage-web/shared-contact/find-shared-contact-relation",{enterpriseIdCondition:1}).then(function(t){1==t.data.errorCode?(e.shares=t.data.result||[],e.shares.length>0&&(e.myEnterprise=t.data.result[0].exportEnterpriseName)):e.$message.error({message:t.data.message})}).catch(function(t){e.$message.error({message:t.message})})},cancelShare:function(e){var t=this;t.$confirm("是否要取消与该企业的共享?","提示",{type:"warning"}).then(function(){Object(n.a)("/haoban-manage-web/shared-contact/del-shared-enterprise",{importEnterpriseId:e.importEnterpriseId}).then(function(a){if(1==a.data.errorCode){var s=t.shares.indexOf(e);t.shares.splice(s,1)}else t.$message.error({message:a.data.message})}).catch(function(e){t.$message.error({message:e.message})})}).catch({})}},beforeMount:function(){this.getShareRelation(),this.getCode()}},c={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"common-set-wrap"},[a("nav-crumb",{attrs:{navpath:e.navpath}}),e._v(" "),a("div",{staticClass:"right-content"},[a("div",{staticClass:"right-box"},[a("div",{staticClass:"share-code-div"},[a("p",{staticClass:"company-name"},[e._v(e._s(e.myEnterprise)+"的共享企业")]),e._v(" "),a("p",{staticClass:"word"},[e._v("双方共享的通讯录,选人时可以选到,同时邀请企业建立共享关系")]),e._v(" "),a("p",{staticClass:"time-tip"},[e._v("一个二维码只能和一个企业建立共享关系,24小时有效")]),e._v(" "),a("div",{staticClass:"m-t-20",attrs:{id:"qrcode"}}),e._v(" "),a("div",{staticClass:"btn-area"},[a("el-button",{attrs:{type:"primary"},on:{click:e.downloadCode}},[e._v("下载"),a("i",{staticClass:"iconfont icon-icon_yunxiazai"})]),e._v(" "),a("el-button",{on:{click:function(t){e.reFresh()}}},[e._v("重新生成")])],1),e._v(" "),a("p",{staticClass:"company-name"},[e._v("已建立的共享企业")]),e._v(" "),e.shares.length>0?a("div",{staticClass:"share-table"},[a("div",{staticClass:"company"},[e._v(e._s(e.myEnterprise))]),e._v(" "),a("ul",{staticClass:"list"},e._l(e.shares,function(t){return a("li",{key:t.importEnterpriseId,staticClass:"li"},[a("div",{staticClass:"name"},[e._v(e._s(t.importEnterpriseName))]),e._v(" "),a("div",{staticClass:"cancel-btn"},[a("a",{staticClass:"a-href",on:{click:function(a){e.cancelShare(t)}}},[e._v("取消共享")])])])}))]):e._e(),e._v(" "),a("div",{staticClass:"no-share-tip"},[e._v("暂无共享企业")]),e._v(" "),a("el-dialog",{attrs:{title:"验证管理员身份",width:"356px",visible:e.dialogVisible},on:{"update:visible":function(t){e.dialogVisible=t}}},[a("div",{staticClass:"cancel-code"},[a("p",[e._v("请使用管理员的好办扫一扫确认")])])])],1)])]),e._v(" "),a("vue-gic-footer")],1)},staticRenderFns:[]};var d=a("VU/8")(o,c,!1,function(e){a("X8hA")},null,null);t.default=d.exports},X8hA:function(e,t){}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([53],{H8Kg:function(t,e,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i={name:"image-com",props:{childItem:{type:[Object,Array],default:function(){return{}}}}},a={render:function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"image-com"},[s("div",{class:["opencard-item-title",t.childItem.title.length>=6?"title-pre-wrap":""]},[t._v(t._s(t.childItem.title))]),t._v(" "),s("div",{staticClass:"must"},[t._v(t._s(t.childItem.isMust?"(必填)":""))]),t._v(" "),t._m(0)])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"draged-item-show"},[e("span",{staticClass:"show-warm-text show-warm-text-flag select-flag"},[e("i",{staticClass:"iconfont icon-icon"})])])}]};var c=s("VU/8")(i,a,!1,function(t){s("kYZD")},"data-v-3f8afc82",null);e.default=c.exports},kYZD:function(t,e){}}); webpackJsonp([51],{H8Kg:function(t,e,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i={name:"image-com",props:{childItem:{type:[Object,Array],default:function(){return{}}}}},a={render:function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"image-com"},[s("div",{class:["opencard-item-title",t.childItem.title.length>=6?"title-pre-wrap":""]},[t._v(t._s(t.childItem.title))]),t._v(" "),s("div",{staticClass:"must"},[t._v(t._s(t.childItem.isMust?"(必填)":""))]),t._v(" "),t._m(0)])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"draged-item-show"},[e("span",{staticClass:"show-warm-text show-warm-text-flag select-flag"},[e("i",{staticClass:"iconfont icon-icon"})])])}]};var c=s("VU/8")(i,a,!1,function(t){s("kYZD")},"data-v-3f8afc82",null);e.default=c.exports},kYZD:function(t,e){}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([54],{"9zBc":function(t,a){},W0k8:function(t,a,e){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var n=e("2eFk"),c=e("fvdr"),i=e("Qie6"),o={name:"reviewed",data:function(){return{bgHeight:window.screen.availHeight-380+"px",appName:"不良评价",appIcon:"icon-ribao",activeSelTab:"1",activeTab:"1",tabListData:[{tabId:"1",tabName:"不良评价回访记录",icon:"icon-ribao1",onlyIconActive:!1},{tabId:"2",tabName:"不良评价回访设置",icon:"icon-ribaoshezhi",onlyIconActive:!1}],activeBrand:"",activeGroup:""}},computed:{},methods:{changeRoute:function(t){this.$router.push(t)},selectBrandId:function(t,a){this.activeBrand=t,this.activeGroup=a},setSelectTab:function(t){switch(this.activeTab=t.tabId,t.tabId){case"1":this.changeRoute("badEvaluateRecord");break;case"2":this.changeRoute("badEvaluateSet")}},showTab:function(t){this.activeTab=t,this.activeSelTab=t,this.tabListData.forEach(function(a){a.tabId==t&&(a.onlyIconActive=!1),a.children&&a.children.forEach(function(e){e.tabId==t&&(a.onlyIconActive=!0),e.children&&e.children.forEach(function(e){e.tabId==t&&(a.onlyIconActive=!0)})})})}},watch:{activeBrand:function(t,a){this.activeBrand=t},activeGroup:function(t,a){this.activeGroup=t}},mounted:function(){document.documentElement.style.backgroundColor="#f0f2f5"},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{appDetail:n.a,commonAppTop:c.a,commonDetailLeft:i.a}},s={render:function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"my-customer-wrap common-set-wrap"},[e("div",{staticClass:"right-content"},[e("common-app-top",{attrs:{appName:t.appName,appIcon:t.appIcon},on:{selectBrandId:t.selectBrandId}}),t._v(" "),e("div",{staticClass:"right-box",style:{"min-height":t.bgHeight}},[e("div",{staticClass:"apps-content flex",style:{height:t.bgHeight}},[e("div",{staticClass:"apps-content-left w-157"},[e("common-detail-left",{attrs:{tabListData:t.tabListData,activeSelTab:t.activeSelTab},on:{setSelectTab:t.setSelectTab}})],1),t._v(" "),e("div",{staticClass:"apps-content-right"},[e("transition",{attrs:{name:"fade",mode:"out-in"}},[e("router-view",{attrs:{brandId:t.activeBrand,activeGroupId:t.activeGroup,tabType:t.activeTab},on:{showTab:t.showTab}})],1)],1)])])],1),t._v(" "),e("vue-gic-footer")],1)},staticRenderFns:[]};var r=e("VU/8")(o,s,!1,function(t){e("9zBc")},"data-v-3e823000",null);a.default=r.exports}}); webpackJsonp([52],{"9zBc":function(t,a){},W0k8:function(t,a,e){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var n=e("2eFk"),c=e("fvdr"),i=e("Qie6"),o={name:"reviewed",data:function(){return{bgHeight:window.screen.availHeight-380+"px",appName:"不良评价",appIcon:"icon-ribao",activeSelTab:"1",activeTab:"1",tabListData:[{tabId:"1",tabName:"不良评价回访记录",icon:"icon-ribao1",onlyIconActive:!1},{tabId:"2",tabName:"不良评价回访设置",icon:"icon-ribaoshezhi",onlyIconActive:!1}],activeBrand:"",activeGroup:""}},computed:{},methods:{changeRoute:function(t){this.$router.push(t)},selectBrandId:function(t,a){this.activeBrand=t,this.activeGroup=a},setSelectTab:function(t){switch(this.activeTab=t.tabId,t.tabId){case"1":this.changeRoute("badEvaluateRecord");break;case"2":this.changeRoute("badEvaluateSet")}},showTab:function(t){this.activeTab=t,this.activeSelTab=t,this.tabListData.forEach(function(a){a.tabId==t&&(a.onlyIconActive=!1),a.children&&a.children.forEach(function(e){e.tabId==t&&(a.onlyIconActive=!0),e.children&&e.children.forEach(function(e){e.tabId==t&&(a.onlyIconActive=!0)})})})}},watch:{activeBrand:function(t,a){this.activeBrand=t},activeGroup:function(t,a){this.activeGroup=t}},mounted:function(){document.documentElement.style.backgroundColor="#f0f2f5"},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{appDetail:n.a,commonAppTop:c.a,commonDetailLeft:i.a}},s={render:function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"my-customer-wrap common-set-wrap"},[e("div",{staticClass:"right-content"},[e("common-app-top",{attrs:{appName:t.appName,appIcon:t.appIcon},on:{selectBrandId:t.selectBrandId}}),t._v(" "),e("div",{staticClass:"right-box",style:{"min-height":t.bgHeight}},[e("div",{staticClass:"apps-content flex",style:{height:t.bgHeight}},[e("div",{staticClass:"apps-content-left w-157"},[e("common-detail-left",{attrs:{tabListData:t.tabListData,activeSelTab:t.activeSelTab},on:{setSelectTab:t.setSelectTab}})],1),t._v(" "),e("div",{staticClass:"apps-content-right"},[e("transition",{attrs:{name:"fade",mode:"out-in"}},[e("router-view",{attrs:{brandId:t.activeBrand,activeGroupId:t.activeGroup,tabType:t.activeTab},on:{showTab:t.showTab}})],1)],1)])])],1),t._v(" "),e("vue-gic-footer")],1)},staticRenderFns:[]};var r=e("VU/8")(o,s,!1,function(t){e("9zBc")},"data-v-3e823000",null);a.default=r.exports}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([55],{Nd9R:function(e,t){},ys9I:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=r("3Xzz"),s=r("PI0u"),n={name:"replaceAdmin",data:function(){return{navpath:[{name:"首页",path:"/index"},{name:"设置",path:"/companyAddress"},{name:"更换超级管理员",path:""}],subNavText:"更换超级管理员,需要先验证当前超级管理员身份",active:0,ruleForm:{name:"11",phone:1334444444,code:""},rules:{name:[{required:!0,message:"请输入当前绑定账号",trigger:"blur"}],phone:[{required:!0,message:"请输入手机号",trigger:"blur"}],code:[{required:!0,message:"请输入验证码",trigger:"blur"}]},disableBtn:!1,countNum:60,newFormLoad:!1,newRuleForm:{name:""},newRules:{name:[{required:!0,message:"请输入手机号/姓名",trigger:["blur","change"]}]}}},computed:{},methods:{countDown:function(){var e=this,t=setInterval(function(){if(0===e.countNum)return clearInterval(t),e.countNum=60,e.disableBtn=!1,!1;e.countNum--},1e3)},sendCode:Object(s.a)(function(e){this.disableBtn=!0;var t=String(e).substr(0,3)+"****"+e.substr(7,11);this.countDown(),this.$message({message:"验证码已发送到您的手机:+86 "+t,type:"success"})},500),postSendCode:function(){},submitForm:Object(s.a)(function(e){var t=this;t.$refs[e].validate(function(e){if(!e)return!1;t.active++>2&&t.active,t.$nextTick(function(){console.log(t.$refs.newRuleForm)})})},500),newSubmitForm:Object(s.a)(function(e){var t=this;t.newRuleForm.name=t.newRuleForm.name.replace(/(^\s+)|(\s+$)/g,""),t.$refs[e].validate(function(e){if(!e)return!1;t.active++})},500),submitFormBack:function(){this.$refs.newRuleForm.resetFields(),this.active&&this.active--},getCurrentUser:function(){var e=JSON.parse(localStorage.getItem("userInfo"));this.ruleForm.phone=e.phoneNumber}},mounted:function(){this.getCurrentUser()},components:{navCrumb:a.a}},o={render:function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"replaceAdmin-wrap common-set-wrap"},[r("nav-crumb",{attrs:{navpath:e.navpath}}),e._v(" "),r("div",{staticClass:"right-content"},[r("div",{staticClass:"right-box",style:{height:e.$store.state.bgHeight}},[r("el-steps",{attrs:{active:e.active,"finish-status":"success","align-center":""}},[r("el-step",{attrs:{title:"获取验证码"}}),e._v(" "),r("el-step",{attrs:{title:"绑定新的超级管理员"}}),e._v(" "),r("el-step",{attrs:{title:"完成"}})],1),e._v(" "),r("div",{staticClass:"w-514 replaceAdmin-wrap-form m-t-45"},[0==e.active?r("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,rules:e.rules,"label-width":"110px"}},[r("el-form-item",{attrs:{label:"当前绑定账号",prop:"name"}},[r("el-input",{staticClass:"w-280",attrs:{disabled:"",placeholder:""},model:{value:e.ruleForm.name,callback:function(t){e.$set(e.ruleForm,"name",t)},expression:"ruleForm.name"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"手机号",prop:"phone"}},[r("el-input",{staticClass:"w-280",attrs:{disabled:"",placeholder:""},model:{value:e.ruleForm.phone,callback:function(t){e.$set(e.ruleForm,"phone",t)},expression:"ruleForm.phone"}}),r("el-button",{staticClass:"m-l-20 v-align-b",attrs:{type:"primary",plain:"",disabled:e.disableBtn},on:{click:function(t){e.sendCode(e.ruleForm.phone)}}},[e._v(e._s(!e.disableBtn&&e.countNum?"获取验证码":e.countNum)+" ")])],1),e._v(" "),r("el-form-item",{attrs:{label:"验证码",prop:"code"}},[r("el-input",{staticClass:"w-280",attrs:{placeholder:"请输入验证码"},model:{value:e.ruleForm.code,callback:function(t){e.$set(e.ruleForm,"code",t)},expression:"ruleForm.code"}})],1),e._v(" "),r("el-form-item",[r("el-button",{attrs:{type:"primary"},on:{click:function(t){e.submitForm("ruleForm")}}},[e._v("下一步")])],1)],1):e._e(),e._v(" "),r("el-form",{directives:[{name:"show",rawName:"v-show",value:1==e.active,expression:"active == 1"}],ref:"newRuleForm",staticClass:"demo-ruleForm",attrs:{model:e.newRuleForm,rules:e.newRules,"label-width":"140px"}},[r("el-form-item",{attrs:{label:"新绑定超级管理员",prop:"name"}},[r("el-input",{staticClass:"w-280",attrs:{placeholder:"请输入手机号/姓名"},model:{value:e.newRuleForm.name,callback:function(t){e.$set(e.newRuleForm,"name",t)},expression:"newRuleForm.name"}})],1),e._v(" "),r("el-form-item",[r("el-button",{attrs:{type:"primary",loading:e.newFormLoad},on:{click:function(t){e.newSubmitForm("newRuleForm")}}},[e._v("提 交")]),e._v(" "),r("el-button",{attrs:{plain:""},on:{click:e.submitFormBack}},[e._v("上一步")])],1)],1),e._v(" "),2==e.active?r("div",{staticClass:"replaceAdmin-wrap-success"},[e._m(0),e._v(" "),r("p",{staticClass:"font-w-500"},[e._v("操作成功")])]):e._e()],1)],1)]),e._v(" "),r("vue-gic-footer")],1)},staticRenderFns:[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"icon-outer"},[t("i",{staticClass:"el-icon-success"})])}]};var l=r("VU/8")(n,o,!1,function(e){r("Nd9R")},"data-v-38c95ae8",null);t.default=l.exports}}); webpackJsonp([53],{Nd9R:function(e,t){},ys9I:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=r("3Xzz"),s=r("PI0u"),n={name:"replaceAdmin",data:function(){return{navpath:[{name:"首页",path:"/index"},{name:"设置",path:"/companyAddress"},{name:"更换超级管理员",path:""}],subNavText:"更换超级管理员,需要先验证当前超级管理员身份",active:0,ruleForm:{name:"11",phone:1334444444,code:""},rules:{name:[{required:!0,message:"请输入当前绑定账号",trigger:"blur"}],phone:[{required:!0,message:"请输入手机号",trigger:"blur"}],code:[{required:!0,message:"请输入验证码",trigger:"blur"}]},disableBtn:!1,countNum:60,newFormLoad:!1,newRuleForm:{name:""},newRules:{name:[{required:!0,message:"请输入手机号/姓名",trigger:["blur","change"]}]}}},computed:{},methods:{countDown:function(){var e=this,t=setInterval(function(){if(0===e.countNum)return clearInterval(t),e.countNum=60,e.disableBtn=!1,!1;e.countNum--},1e3)},sendCode:Object(s.a)(function(e){this.disableBtn=!0;var t=String(e).substr(0,3)+"****"+e.substr(7,11);this.countDown(),this.$message({message:"验证码已发送到您的手机:+86 "+t,type:"success"})},500),postSendCode:function(){},submitForm:Object(s.a)(function(e){var t=this;t.$refs[e].validate(function(e){if(!e)return!1;t.active++>2&&t.active,t.$nextTick(function(){console.log(t.$refs.newRuleForm)})})},500),newSubmitForm:Object(s.a)(function(e){var t=this;t.newRuleForm.name=t.newRuleForm.name.replace(/(^\s+)|(\s+$)/g,""),t.$refs[e].validate(function(e){if(!e)return!1;t.active++})},500),submitFormBack:function(){this.$refs.newRuleForm.resetFields(),this.active&&this.active--},getCurrentUser:function(){var e=JSON.parse(localStorage.getItem("userInfo"));this.ruleForm.phone=e.phoneNumber}},mounted:function(){this.getCurrentUser()},components:{navCrumb:a.a}},o={render:function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"replaceAdmin-wrap common-set-wrap"},[r("nav-crumb",{attrs:{navpath:e.navpath}}),e._v(" "),r("div",{staticClass:"right-content"},[r("div",{staticClass:"right-box",style:{height:e.$store.state.bgHeight}},[r("el-steps",{attrs:{active:e.active,"finish-status":"success","align-center":""}},[r("el-step",{attrs:{title:"获取验证码"}}),e._v(" "),r("el-step",{attrs:{title:"绑定新的超级管理员"}}),e._v(" "),r("el-step",{attrs:{title:"完成"}})],1),e._v(" "),r("div",{staticClass:"w-514 replaceAdmin-wrap-form m-t-45"},[0==e.active?r("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,rules:e.rules,"label-width":"110px"}},[r("el-form-item",{attrs:{label:"当前绑定账号",prop:"name"}},[r("el-input",{staticClass:"w-280",attrs:{disabled:"",placeholder:""},model:{value:e.ruleForm.name,callback:function(t){e.$set(e.ruleForm,"name",t)},expression:"ruleForm.name"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"手机号",prop:"phone"}},[r("el-input",{staticClass:"w-280",attrs:{disabled:"",placeholder:""},model:{value:e.ruleForm.phone,callback:function(t){e.$set(e.ruleForm,"phone",t)},expression:"ruleForm.phone"}}),r("el-button",{staticClass:"m-l-20 v-align-b",attrs:{type:"primary",plain:"",disabled:e.disableBtn},on:{click:function(t){e.sendCode(e.ruleForm.phone)}}},[e._v(e._s(!e.disableBtn&&e.countNum?"获取验证码":e.countNum)+" ")])],1),e._v(" "),r("el-form-item",{attrs:{label:"验证码",prop:"code"}},[r("el-input",{staticClass:"w-280",attrs:{placeholder:"请输入验证码"},model:{value:e.ruleForm.code,callback:function(t){e.$set(e.ruleForm,"code",t)},expression:"ruleForm.code"}})],1),e._v(" "),r("el-form-item",[r("el-button",{attrs:{type:"primary"},on:{click:function(t){e.submitForm("ruleForm")}}},[e._v("下一步")])],1)],1):e._e(),e._v(" "),r("el-form",{directives:[{name:"show",rawName:"v-show",value:1==e.active,expression:"active == 1"}],ref:"newRuleForm",staticClass:"demo-ruleForm",attrs:{model:e.newRuleForm,rules:e.newRules,"label-width":"140px"}},[r("el-form-item",{attrs:{label:"新绑定超级管理员",prop:"name"}},[r("el-input",{staticClass:"w-280",attrs:{placeholder:"请输入手机号/姓名"},model:{value:e.newRuleForm.name,callback:function(t){e.$set(e.newRuleForm,"name",t)},expression:"newRuleForm.name"}})],1),e._v(" "),r("el-form-item",[r("el-button",{attrs:{type:"primary",loading:e.newFormLoad},on:{click:function(t){e.newSubmitForm("newRuleForm")}}},[e._v("提 交")]),e._v(" "),r("el-button",{attrs:{plain:""},on:{click:e.submitFormBack}},[e._v("上一步")])],1)],1),e._v(" "),2==e.active?r("div",{staticClass:"replaceAdmin-wrap-success"},[e._m(0),e._v(" "),r("p",{staticClass:"font-w-500"},[e._v("操作成功")])]):e._e()],1)],1)]),e._v(" "),r("vue-gic-footer")],1)},staticRenderFns:[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"icon-outer"},[t("i",{staticClass:"el-icon-success"})])}]};var l=r("VU/8")(n,o,!1,function(e){r("Nd9R")},"data-v-38c95ae8",null);t.default=l.exports}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([54],{"KZL+":function(t,e){},iG3v:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=a("fZjL"),n=a.n(o),s=a("2eFk"),i=a("Ie7z"),l=a("Ke24"),r=a("LRn8"),c=a("P9l9"),d=a("PI0u"),u=a("3E4D"),p=a("Ch4/"),h={name:"reviewed",props:{brandId:{type:String,default:function(){return""}},activeGroupId:{type:String,default:function(){return""}}},data:function(){return{tableH:window.screen.availHeight-464-126,activeTab:"1",activeBrand:this.brandId,activeGroup:this.activeGroupId,topMenuData:[{id:"1",name:"话务任务记录"}],activeId:"1",showDialog:!1,conditionObj:{searchInput:"",storeGroup:[],storeType:"",dateRange:[]},storeTypeOptions:[{value:"",label:"所有"},{value:"0",label:"直营"},{value:"1",label:"联营"},{value:"2",label:"代理"},{value:"3",label:"代销"},{value:"4",label:"托管"}],selectRadio:"",tableData:[],multipleSelection:[],currentPage:1,pageSize:10,total:0,appScene:2,defaultStoreList:[],storeTreeSet:{isSelectPerson:!1,dialogVisible:!1,isSingle:!1}}},computed:{},methods:{handleCommand:function(t){this.selectRadio=t},setSelectTab:function(t){this.activeTab=t.tabId},toInput:Object(d.a)(function(t,e){this.currentPage=1,this.getTableList()},500),changeStoreType:function(){this.currentPage=1,this.getTableList()},changeDate:function(){this.currentPage=1,this.getTableList()},handleSelectionChange:function(t){this.multipleSelection=t},delDepart:function(t,e){e.splice(t,1),this.currentPage=1,this.getTableList()},multDel:function(){if(!this.multipleSelection.length)return this.$message.error({duration:1e3,message:"请选择删除项"}),!1;this.showDialog=!0},hideDialog:function(t){if(this.showDialog=!1,!n()(t).length)return!1;this.postMultDel(t)},postMultDel:function(t){var e=this,a=[],o=[];e.conditionObj.storeGroup.forEach(function(t){2==t.type&&a.push(t.groupId),3==t.type&&o.push(t.storeId)});var n={search:e.conditionObj.searchInput||"",filterStoreIds:o.join(",")||"",storeGroupIds:a.join(",")||"",storeType:e.conditionObj.storeType||"",startDate:e.conditionObj.dateRange[0]||"",endDate:e.conditionObj.dateRange[1]||"",brandId:e.activeBrand,delTaskStatus:t.delOptFlag,reason:t.reason,isAll:e.selectRadio,taskType:1};Object(c.c)("/haoban-app-tel-task-web/task/batch-del-store-task-list",n).then(function(t){var a=t.data;if(1==a.errorCode)return u.a.showmsg("删除成功","success"),void e.getTableList();p.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},exportExcel:function(){var t=[],e=[];this.conditionObj.storeGroup.forEach(function(a){2==a.type&&t.push(a.groupId),3==a.type&&e.push(a.storeId)});var a={search:this.conditionObj.searchInput||"",filterStoreIds:e.join(",")||"",storeGroupIds:t.join(",")||"",storeIds:this.multipleSelection.map(function(t){return t.storeId}).join(",")||"",storeType:this.conditionObj.storeType||"",startDate:this.conditionObj.dateRange[0]||"",endDate:this.conditionObj.dateRange[1]||"",brandId:this.activeBrand,taskType:1},o="search="+a.search+"&taskType="+a.taskType+"&filterStoreIds="+a.filterStoreIds+"&storeGroupIds="+a.storeGroupIds+"&storeType="+a.storeType+"&startDate="+a.startDate+"&endDate="+a.endDate+"&brandId="+a.brandId+"&currentPage="+a.currentPage+"&pageSize="+a.pageSize;window.open(window.location.origin+"/haoban-app-tel-task-web/task/export-store-task-list?"+o)},handleSizeChange:function(t){this.pageSize=t,this.getTableList()},handleCurrentChange:function(t){this.currentPage=t,this.getTableList()},showDialogLayer:function(t,e){this.selectType=t,this.changed=t,this.defaultStoreList=e,this.storeTreeSet={dialogVisible:!0,isSingle:!1,isSelectPerson:!1}},handleSelectedList:function(t){this.conditionObj.storeGroup=t,this.getTableList()},toDetail:function(t,e){this.$router.push("taskDetail?storeId="+e.storeId)},getTableList:function(t){var e=this,a=[],o=[];e.conditionObj.storeGroup.forEach(function(t){2==t.type&&a.push(t.groupId),3==t.type&&o.push(t.storeId)});var n={search:e.conditionObj.searchInput||"",filterStoreIds:o.join(",")||"",storeGroupIds:a.join(",")||"",storeType:e.conditionObj.storeType||"",startDate:e.conditionObj.dateRange[0]||"",endDate:e.conditionObj.dateRange[1]||"",pageNum:e.currentPage,pageSize:e.pageSize,brandId:e.activeBrand,taskType:1};Object(c.a)("/haoban-app-tel-task-web/task/store-task-list",n).then(function(t){var a=t.data;if(1==a.errorCode)return e.tableData=a.result.list||[],e.total=a.result.pageInfo.total,!1;p.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},watch:{brandId:function(t,e){t&&(this.activeBrand=t,this.getTableList())},activeGroupId:function(t,e){t&&(this.activeGroup=t)}},mounted:function(){document.documentElement.style.backgroundColor="#f0f2f5",this.activeBrand=this.brandId,this.brandId&&this.getTableList()},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{appDetail:s.a,commonDetailTop:l.a,vueSelectStore:i.a,multipleDel:r.a}},f={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"daily-set-wrap "},[a("common-detail-top",{attrs:{topMenuData:t.topMenuData,activeId:t.activeId}}),t._v(" "),a("div",{staticClass:"daily-set-content boder-box"},[a("div",{staticClass:"table-condition flex flex-space-between m-b-23"},[a("div",{staticClass:"table-condition-left"},[a("el-input",{staticClass:"w-264 m-l-10",staticStyle:{width:"264px"},attrs:{placeholder:"请输入门店名称"},nativeOn:{keyup:function(e){return a=e,t.toInput(a,t.conditionObj.searchInput);var a}},model:{value:t.conditionObj.searchInput,callback:function(e){t.$set(t.conditionObj,"searchInput",e)},expression:"conditionObj.searchInput"}},[a("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})]),t._v(" "),a("div",{staticClass:"flex-column item-cell-select inline-block m-l-10"},[a("div",{staticClass:"depart-item-wrap"},[a("div",{staticClass:"el-select el-select--large depart-item-content",staticStyle:{width:"213px"},on:{click:function(e){t.showDialogLayer("store",t.conditionObj.storeGroup)}}},[t.conditionObj.storeGroup.length?t._e():a("span",{staticClass:"font-14 color-c0c4cc"},[t._v("请选择门店分组")]),t._v(" "),a("div",{staticClass:"el-select__tags",staticStyle:{"max-width":"181px"}},[a("span",[t._l(t.conditionObj.storeGroup,function(e,o){return[a("span",{key:o,staticClass:"el-tag el-tag--info el-tag--small"},[a("span",{staticClass:"el-select__tags-text"},[t._v(t._s(e.name||e.storeName))]),a("i",{staticClass:"el-tag__close el-icon-close",on:{click:function(e){e.stopPropagation(),t.delDepart(o,t.conditionObj.storeGroup)}}})])]})],2)])])])]),t._v(" "),a("el-select",{staticClass:"w-105 m-l-10",attrs:{placeholder:"请选择"},on:{change:t.changeStoreType},model:{value:t.conditionObj.storeType,callback:function(e){t.$set(t.conditionObj,"storeType",e)},expression:"conditionObj.storeType"}},t._l(t.storeTypeOptions,function(t){return a("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),t._v(" "),a("el-date-picker",{staticClass:"m-l-10",attrs:{editable:!1,"value-format":"yyyy-MM-dd",type:"daterange",align:"right","unlink-panels":"","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},on:{change:t.changeDate},model:{value:t.conditionObj.dateRange,callback:function(e){t.$set(t.conditionObj,"dateRange",e)},expression:"conditionObj.dateRange"}})],1),t._v(" "),a("div",{staticClass:"table-condition-right"},[a("el-button",{attrs:{type:"danger"},on:{click:t.multDel}},[t._v("批量删除")]),t._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:t.exportExcel}},[t._v("导出")])],1)]),t._v(" "),a("el-table",{ref:"multipleTable",staticClass:"select-table",staticStyle:{width:"100%"},attrs:{data:t.tableData,"tooltip-effect":"dark",height:t.tableH},on:{"selection-change":t.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"35"}}),t._v(" "),a("el-table-column",{attrs:{width:"25"},scopedSlots:t._u([{key:"header",fn:function(e){return[a("el-dropdown",{staticStyle:{"line-height":"10px",padding:"0","margin-left":"-15px",transform:"translateY(4px)","-webkit-transform":"translateY(4px)"},attrs:{placement:"bottom-start"},on:{command:t.handleCommand}},[a("span",{staticClass:"el-dropdown-link"},[a("i",{staticClass:"el-icon-arrow-down el-icon--right"})]),t._v(" "),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[a("el-dropdown-item",{attrs:{command:"0"}},[a("span",{style:{color:0==t.selectRadio?"#1890ff":"#606266"}},[t._v("选择当页")])]),t._v(" "),a("el-dropdown-item",{attrs:{command:"1"}},[a("span",{style:{color:1==t.selectRadio?"#1890ff":"#606266"}},[t._v("选择全部")])])],1)],1)]}},{key:"default",fn:function(t){}}])}),t._v(" "),a("el-table-column",{attrs:{label:"门店名称",width:"120","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.storeName))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"任务总数"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.taskCount))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"已完成","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.completedCount))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"完成率","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.completedRate))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"待完成","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.noCompletedCount))]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"",label:"逾期中","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(t._s(e.row.overdueCount))]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){t.toDetail(e.$index,e.row)}}},[t._v("查看详情")])]}}])})],1),t._v(" "),0!=t.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("el-pagination",{attrs:{background:"","current-page":t.currentPage,"page-sizes":[10,20,30,40],"page-size":t.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1):t._e()],1),t._v(" "),a("multiple-del",{attrs:{showDialog:t.showDialog,detailFlag:!1},on:{hideDialog:t.hideDialog}}),t._v(" "),a("vue-select-store",{ref:"storeSelector",attrs:{currentBrand:t.activeGroup,appScene:t.appScene,treeSet:t.storeTreeSet,selectType:"group",defaultList:t.defaultStoreList},on:{handleSelectedList:t.handleSelectedList}})],1)},staticRenderFns:[]};var b=a("VU/8")(h,f,!1,function(t){a("KZL+")},"data-v-35807150",null);e.default=b.exports}});
\ No newline at end of file
webpackJsonp([56],{A33E:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=a("fZjL"),n=a.n(o),i=a("2eFk"),l=a("Ke24"),s=a("LRn8"),r=a("fPyK"),c=a("P9l9"),d=a("Ch4/"),u=a("3E4D"),f={name:"reviewed",props:{brandId:{type:String,default:function(){return""}}},filters:{formatTimeYMD:function(e){return e&&"- -"!=e?e.split(" ")[0]:"--"},formatTimeHMS:function(e){return e&&"- -"!=e?e.split(" ")[1]:"--"}},data:function(){return{tableH:window.screen.availHeight-464-126,activeId:"2",activeBrand:this.brandId,topMenuData:[{id:"1",name:"话务任务记录"},{id:"2",name:"记录详情"}],selectRadio:"",showDialog:!1,conditionObj:{completed:"",overdue:""},completedOptions:[{label:"已上报",value:"1"},{label:"未上报",value:"2"}],overOptions:[{label:"已逾期",value:"1"},{label:"未逾期",value:"0"}],tableData:[],multipleSelection:[],dialogVisible:!1,currentPage:1,pageSize:10,total:0}},computed:{},methods:{handleCommand:function(e){this.selectRadio=e},selectBrandId:function(e){this.activeBrand=e},setSelectTab:function(e){this.activeTab=e.tabId},changeSelect:function(){this.currentPage=1,this.getTableList()},handleSelectionChange:function(e){this.multipleSelection=e},multDel:function(){if(!this.multipleSelection.length)return this.$message.error({duration:1e3,message:"请选择删除项"}),!1;this.showDialog=!0},hideDialog:function(e){if(this.showDialog=!1,!n()(e).length)return!1;this.postMultDel(e)},postMultDel:function(e){var t=this,a={taskType:1,storeId:t.conditionObj.storeId,taskIds:t.multipleSelection.map(function(e){return e.taskIds})||"",isOverTime:t.conditionObj.overdue||"",isCompleted:t.conditionObj.completed||"",reason:e.reason,brandId:t.activeBrand,isAll:t.selectRadio};Object(c.c)("/haoban-app-tel-task-web/task/batch-del-clerk-task-list",a).then(function(e){var a=e.data;if(1==a.errorCode)return u.a.showmsg("删除成功","success"),void t.getTableList();d.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},handleSizeChange:function(e){this.pageSize=e,this.getTableList()},handleCurrentChange:function(e){this.currentPage=e,this.getTableList()},handleDel:function(e,t){var a=this;a.$confirm("确认要删除吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){a.postDel(e,t)}).catch(function(){})},postDel:function(e,t){var a=this,o={taskId:t.taskId};Object(c.a)("/haoban-app-tel-task-web/daily/delete-task-items",o).then(function(t){var o=t.data;if(1==o.errorCode)return u.a.showmsg("删除成功","success"),void a.tableData.splice(e,1);d.a.errorMsg(o)}).catch(function(e){a.$message.error({duration:1e3,message:e.message})})},handlePreview:function(e,t){this.postPreview(e,t)},postPreview:function(e,t){var a=window.location.origin+"/office-mobile/#/staffRecordsTemplate?taskId="+t.taskId;this.$refs.qrcodePreview.qrcode(a,"daily-detail"),this.dialogVisible=!0},getTableList:function(e){var t=this,a={storeId:t.conditionObj.storeId||"",isOverTime:t.conditionObj.overdue||"",isCompleted:t.conditionObj.completed||"",pageNum:t.currentPage,pageSize:t.pageSize,brandId:t.activeBrand,taskType:1};Object(c.a)("/haoban-app-tel-task-web/daily/page-store-task",a).then(function(e){var a=e.data;if(1==a.errorCode)return t.tableData=a.result.result||[],void(t.total=a.result.totalCount);d.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},watch:{brandId:function(e,t){e&&(this.activeBrand=e,this.getTableList())}},mounted:function(){document.documentElement.style.backgroundColor="#f0f2f5",this.$emit("showTab","1"),this.activeBrand=this.brandId,this.conditionObj.storeId=this.$route.query.storeId,this.brandId&&this.getTableList()},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{appDetail:i.a,commonDetailTop:l.a,multipleDel:s.a,qrcodeDialog:r.a}},m={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"my-customer-wrap common-set-wrap"},[a("common-detail-top",{attrs:{topMenuData:e.topMenuData,activeId:e.activeId}}),e._v(" "),a("div",{staticClass:"daily-set-content boder-box"},[a("div",{staticClass:"table-condition flex flex-space-between m-b-23"},[a("div",{staticClass:"table-condition-left"},[a("el-select",{staticClass:"w-105",attrs:{placeholder:"请选择"},on:{change:e.changeSelect},model:{value:e.conditionObj.completed,callback:function(t){e.$set(e.conditionObj,"completed",t)},expression:"conditionObj.completed"}},e._l(e.completedOptions,function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),a("el-select",{staticClass:"w-105 m-l-10",attrs:{placeholder:"请选择"},on:{change:e.changeSelect},model:{value:e.conditionObj.overdue,callback:function(t){e.$set(e.conditionObj,"overdue",t)},expression:"conditionObj.overdue"}},e._l(e.overOptions,function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}))],1),e._v(" "),a("div",{staticClass:"table-condition-right"},[a("el-button",{attrs:{type:"danger"},on:{click:e.multDel}},[e._v("批量删除")])],1)]),e._v(" "),a("el-table",{ref:"multipleTable",staticClass:"select-table",staticStyle:{width:"100%"},attrs:{data:e.tableData,"tooltip-effect":"dark",height:e.tableH},on:{"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"35"}}),e._v(" "),a("el-table-column",{attrs:{width:"25"},scopedSlots:e._u([{key:"header",fn:function(t){return[a("el-dropdown",{staticStyle:{"line-height":"10px",padding:"0","margin-left":"-15px",transform:"translateY(4px)","-webkit-transform":"translateY(4px)"},attrs:{placement:"bottom-start"},on:{command:e.handleCommand}},[a("span",{staticClass:"el-dropdown-link"},[a("i",{staticClass:"el-icon-arrow-down el-icon--right"})]),e._v(" "),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[a("el-dropdown-item",{attrs:{command:"0"}},[a("span",{style:{color:0==e.selectRadio?"#1890ff":"#606266"}},[e._v("选择当页")])]),e._v(" "),a("el-dropdown-item",{attrs:{command:"1"}},[a("span",{style:{color:1==e.selectRadio?"#1890ff":"#606266"}},[e._v("选择全部")])])],1)],1)]}},{key:"default",fn:function(e){}}])}),e._v(" "),a("el-table-column",{attrs:{label:"指派对象"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"flex flex-pack-center flex-start"},[a("div",{class:["image-wrap flex flex-align-center flex-pack-center",t.row.headImgUrl?"bg-eceaeb":"bg-82c5ff"]},[t.row.headImgUrl?a("img",{attrs:{src:t.row.headImgUrl,alt:""}}):a("i",{staticClass:"iconfont icon-yewuduanmorentouxian"})]),e._v(" "),a("div",{staticClass:"clerk-info flex flex-column flex-space-between m-l-16"},[a("p",{staticClass:"font-14 color-303133"},[e._v(e._s(t.row.clerkName))]),e._v(" "),a("p",{staticClass:"font-14 color-909399"},[e._v(e._s(t.row.clerkPhone))])])])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"name",label:"创建时间"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(e._f("formatTimeYMD")(t.row.createTime)))]),e._v(" "),a("div",[e._v(e._s(e._f("formatTimeHMS")(t.row.createTime)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"完成期限","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(e._f("formatTimeYMD")(t.row.lastTime)))]),e._v(" "),a("div",[e._v(e._s(e._f("formatTimeHMS")(t.row.lastTime)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"逾期情况"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.isOverTime))]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"完成情况"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.isCompleted))]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"完成时间"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(e._f("formatTimeYMD")(t.row.finishTime)))]),e._v(" "),a("div",[e._v(e._s(e._f("formatTimeHMS")(t.row.finishTime)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){e.handleDel(t.$index,t.row)}}},[e._v("删除")]),e._v(" "),a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){e.handlePreview(t.$index,t.row)}}},[e._v("预览")])]}}])})],1),e._v(" "),0!=e.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("el-pagination",{attrs:{background:"","current-page":e.currentPage,"page-sizes":[10,20,30,40],"page-size":e.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1):e._e()],1),e._v(" "),a("multiple-del",{attrs:{showDialog:e.showDialog,detailFlag:!0},on:{hideDialog:e.hideDialog}}),e._v(" "),a("qrcode-dialog",{ref:"qrcodePreview",model:{value:e.dialogVisible,callback:function(t){e.dialogVisible=t},expression:"dialogVisible"}})],1)},staticRenderFns:[]};var p=a("VU/8")(f,m,!1,function(e){a("Ht1i")},"data-v-306e7dd8",null);t.default=p.exports},Ht1i:function(e,t){}}); webpackJsonp([55],{A33E:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=a("fZjL"),n=a.n(o),i=a("2eFk"),l=a("Ke24"),s=a("LRn8"),r=a("fPyK"),c=a("P9l9"),d=a("Ch4/"),u=a("3E4D"),f={name:"reviewed",props:{brandId:{type:String,default:function(){return""}}},filters:{formatTimeYMD:function(e){return e&&"- -"!=e?e.split(" ")[0]:"--"},formatTimeHMS:function(e){return e&&"- -"!=e?e.split(" ")[1]:"--"}},data:function(){return{tableH:window.screen.availHeight-464-126,activeId:"2",activeBrand:this.brandId,topMenuData:[{id:"1",name:"话务任务记录"},{id:"2",name:"记录详情"}],selectRadio:"",showDialog:!1,conditionObj:{completed:"",overdue:""},completedOptions:[{label:"已上报",value:"1"},{label:"未上报",value:"2"}],overOptions:[{label:"已逾期",value:"1"},{label:"未逾期",value:"0"}],tableData:[],multipleSelection:[],dialogVisible:!1,currentPage:1,pageSize:10,total:0}},computed:{},methods:{handleCommand:function(e){this.selectRadio=e},selectBrandId:function(e){this.activeBrand=e},setSelectTab:function(e){this.activeTab=e.tabId},changeSelect:function(){this.currentPage=1,this.getTableList()},handleSelectionChange:function(e){this.multipleSelection=e},multDel:function(){if(!this.multipleSelection.length)return this.$message.error({duration:1e3,message:"请选择删除项"}),!1;this.showDialog=!0},hideDialog:function(e){if(this.showDialog=!1,!n()(e).length)return!1;this.postMultDel(e)},postMultDel:function(e){var t=this,a={taskType:1,storeId:t.conditionObj.storeId,taskIds:t.multipleSelection.map(function(e){return e.taskIds})||"",isOverTime:t.conditionObj.overdue||"",isCompleted:t.conditionObj.completed||"",reason:e.reason,brandId:t.activeBrand,isAll:t.selectRadio};Object(c.c)("/haoban-app-tel-task-web/task/batch-del-clerk-task-list",a).then(function(e){var a=e.data;if(1==a.errorCode)return u.a.showmsg("删除成功","success"),void t.getTableList();d.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},handleSizeChange:function(e){this.pageSize=e,this.getTableList()},handleCurrentChange:function(e){this.currentPage=e,this.getTableList()},handleDel:function(e,t){var a=this;a.$confirm("确认要删除吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){a.postDel(e,t)}).catch(function(){})},postDel:function(e,t){var a=this,o={taskId:t.taskId};Object(c.a)("/haoban-app-tel-task-web/daily/delete-task-items",o).then(function(t){var o=t.data;if(1==o.errorCode)return u.a.showmsg("删除成功","success"),void a.tableData.splice(e,1);d.a.errorMsg(o)}).catch(function(e){a.$message.error({duration:1e3,message:e.message})})},handlePreview:function(e,t){this.postPreview(e,t)},postPreview:function(e,t){var a=window.location.origin+"/office-mobile/#/staffRecordsTemplate?taskId="+t.taskId;this.$refs.qrcodePreview.qrcode(a,"daily-detail"),this.dialogVisible=!0},getTableList:function(e){var t=this,a={storeId:t.conditionObj.storeId||"",isOverTime:t.conditionObj.overdue||"",isCompleted:t.conditionObj.completed||"",pageNum:t.currentPage,pageSize:t.pageSize,brandId:t.activeBrand,taskType:1};Object(c.a)("/haoban-app-tel-task-web/daily/page-store-task",a).then(function(e){var a=e.data;if(1==a.errorCode)return t.tableData=a.result.result||[],void(t.total=a.result.totalCount);d.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},watch:{brandId:function(e,t){e&&(this.activeBrand=e,this.getTableList())}},mounted:function(){document.documentElement.style.backgroundColor="#f0f2f5",this.$emit("showTab","1"),this.activeBrand=this.brandId,this.conditionObj.storeId=this.$route.query.storeId,this.brandId&&this.getTableList()},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{appDetail:i.a,commonDetailTop:l.a,multipleDel:s.a,qrcodeDialog:r.a}},m={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"my-customer-wrap common-set-wrap"},[a("common-detail-top",{attrs:{topMenuData:e.topMenuData,activeId:e.activeId}}),e._v(" "),a("div",{staticClass:"daily-set-content boder-box"},[a("div",{staticClass:"table-condition flex flex-space-between m-b-23"},[a("div",{staticClass:"table-condition-left"},[a("el-select",{staticClass:"w-105",attrs:{placeholder:"请选择"},on:{change:e.changeSelect},model:{value:e.conditionObj.completed,callback:function(t){e.$set(e.conditionObj,"completed",t)},expression:"conditionObj.completed"}},e._l(e.completedOptions,function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),a("el-select",{staticClass:"w-105 m-l-10",attrs:{placeholder:"请选择"},on:{change:e.changeSelect},model:{value:e.conditionObj.overdue,callback:function(t){e.$set(e.conditionObj,"overdue",t)},expression:"conditionObj.overdue"}},e._l(e.overOptions,function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}))],1),e._v(" "),a("div",{staticClass:"table-condition-right"},[a("el-button",{attrs:{type:"danger"},on:{click:e.multDel}},[e._v("批量删除")])],1)]),e._v(" "),a("el-table",{ref:"multipleTable",staticClass:"select-table",staticStyle:{width:"100%"},attrs:{data:e.tableData,"tooltip-effect":"dark",height:e.tableH},on:{"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"35"}}),e._v(" "),a("el-table-column",{attrs:{width:"25"},scopedSlots:e._u([{key:"header",fn:function(t){return[a("el-dropdown",{staticStyle:{"line-height":"10px",padding:"0","margin-left":"-15px",transform:"translateY(4px)","-webkit-transform":"translateY(4px)"},attrs:{placement:"bottom-start"},on:{command:e.handleCommand}},[a("span",{staticClass:"el-dropdown-link"},[a("i",{staticClass:"el-icon-arrow-down el-icon--right"})]),e._v(" "),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[a("el-dropdown-item",{attrs:{command:"0"}},[a("span",{style:{color:0==e.selectRadio?"#1890ff":"#606266"}},[e._v("选择当页")])]),e._v(" "),a("el-dropdown-item",{attrs:{command:"1"}},[a("span",{style:{color:1==e.selectRadio?"#1890ff":"#606266"}},[e._v("选择全部")])])],1)],1)]}},{key:"default",fn:function(e){}}])}),e._v(" "),a("el-table-column",{attrs:{label:"指派对象"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"flex flex-pack-center flex-start"},[a("div",{class:["image-wrap flex flex-align-center flex-pack-center",t.row.headImgUrl?"bg-eceaeb":"bg-82c5ff"]},[t.row.headImgUrl?a("img",{attrs:{src:t.row.headImgUrl,alt:""}}):a("i",{staticClass:"iconfont icon-yewuduanmorentouxian"})]),e._v(" "),a("div",{staticClass:"clerk-info flex flex-column flex-space-between m-l-16"},[a("p",{staticClass:"font-14 color-303133"},[e._v(e._s(t.row.clerkName))]),e._v(" "),a("p",{staticClass:"font-14 color-909399"},[e._v(e._s(t.row.clerkPhone))])])])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"name",label:"创建时间"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(e._f("formatTimeYMD")(t.row.createTime)))]),e._v(" "),a("div",[e._v(e._s(e._f("formatTimeHMS")(t.row.createTime)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"",label:"完成期限","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(e._f("formatTimeYMD")(t.row.lastTime)))]),e._v(" "),a("div",[e._v(e._s(e._f("formatTimeHMS")(t.row.lastTime)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"逾期情况"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.isOverTime))]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"完成情况"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.isCompleted))]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"完成时间"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",[e._v(e._s(e._f("formatTimeYMD")(t.row.finishTime)))]),e._v(" "),a("div",[e._v(e._s(e._f("formatTimeHMS")(t.row.finishTime)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){e.handleDel(t.$index,t.row)}}},[e._v("删除")]),e._v(" "),a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){e.handlePreview(t.$index,t.row)}}},[e._v("预览")])]}}])})],1),e._v(" "),0!=e.tableData.length?a("div",{staticClass:"block common-wrap__page text-right m-t-24"},[a("el-pagination",{attrs:{background:"","current-page":e.currentPage,"page-sizes":[10,20,30,40],"page-size":e.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1):e._e()],1),e._v(" "),a("multiple-del",{attrs:{showDialog:e.showDialog,detailFlag:!0},on:{hideDialog:e.hideDialog}}),e._v(" "),a("qrcode-dialog",{ref:"qrcodePreview",model:{value:e.dialogVisible,callback:function(t){e.dialogVisible=t},expression:"dialogVisible"}})],1)},staticRenderFns:[]};var p=a("VU/8")(f,m,!1,function(e){a("Ht1i")},"data-v-306e7dd8",null);t.default=p.exports},Ht1i:function(e,t){}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([57],{"4H54":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=a("2eFk"),i=a("Ke24"),n=a("PI0u"),o=a("Ch4/"),r=a("3E4D"),d=a("P9l9"),c={name:"reviewed",props:{brandId:{type:String,default:function(){return""}}},data:function(){return{activeTab:"1",activeId:"1",activeBrand:this.brandId,topMenuData:[{id:"1",name:"话务任务设置"}],setObj:{taskType:1,overDayJudge:"",distributeTypeJudge:"",giveUpJudge:""}}},computed:{},methods:{saveSet:Object(n.a)(function(){this.postSave()},500),postSave:function(){var t=this,e={brandId:t.activeBrand,taskType:1,overDayJudge:t.setObj.overDayJudge,giveUpJudge:t.setObj.giveUpJudge,distributeTypeJudge:t.setObj.distributeTypeJudge};Object(d.c)("/haoban-app-tel-task-web/setting/save-task-setting",e).then(function(t){var e=t.data;1!=e.errorCode?o.a.errorMsg(e):r.a.showmsg("保存成功","success")}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},getData:function(){var t=this,e={brandId:t.activeBrand,taskType:1};Object(d.c)("/haoban-app-tel-task-web/setting/find-task-setting",e).then(function(e){var a=e.data;1!=a.errorCode?o.a.errorMsg(a):t.setObj=a.result}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},watch:{brandId:function(t,e){t&&(this.activeBrand=t,this.getData())}},mounted:function(){document.documentElement.style.backgroundColor="#f0f2f5",this.$emit("showTab","2"),this.brandId&&this.getData()},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{appDetail:s.a,commonDetailTop:i.a}},l={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"app-detail-wrap"},[a("common-detail-top",{attrs:{topMenuData:t.topMenuData,activeId:t.activeId}}),t._v(" "),a("div",{staticClass:"task-set-content boder-box"},[a("div",{staticClass:"task-set-cell"},[a("div",{staticClass:"font-16 color-606266 m-b-20 font-w-500"},[t._v("话务任务逾期时间设置")]),t._v(" "),a("div",{staticClass:"set-line-item"},[a("span",{staticClass:"set-line-item_title font-14 color-606266"},[t._v("话务任务下发")]),t._v(" "),a("el-input",{staticClass:"w-55",attrs:{placeholder:"请输入内容"},model:{value:t.setObj.overDayJudge,callback:function(e){t.$set(t.setObj,"overDayJudge",e)},expression:"setObj.overDayJudge"}}),a("span",{staticClass:"font-14 color-606266 p-l-10"},[t._v("天")]),t._v(" "),a("span",{staticClass:"font-14 color-909399 p-l-15"},[t._v("注:0天即为当天下发,当天完成,1天即为当天下发,次日24:00之前完成")])],1),t._v(" "),a("div",{staticClass:"set-line-item"},[a("span",{staticClass:"set-line-item_title font-14 color-606266"},[t._v("话务任务下发")]),t._v(" "),a("el-radio",{attrs:{label:0},model:{value:t.setObj.distributeTypeJudge,callback:function(e){t.$set(t.setObj,"distributeTypeJudge",e)},expression:"setObj.distributeTypeJudge"}},[t._v("分配给主门店的店长")]),t._v(" "),a("el-radio",{attrs:{label:1},model:{value:t.setObj.distributeTypeJudge,callback:function(e){t.$set(t.setObj,"distributeTypeJudge",e)},expression:"setObj.distributeTypeJudge"}},[t._v("分配给专属导购")])],1),t._v(" "),a("div",{staticClass:"set-line-item"},[a("span",{staticClass:"set-line-item_title font-14 color-606266"},[t._v("话务任务放弃前提")]),t._v(" "),a("el-input",{staticClass:"w-55",attrs:{placeholder:"请输入内容"},model:{value:t.setObj.giveUpJudge,callback:function(e){t.$set(t.setObj,"giveUpJudge",e)},expression:"setObj.giveUpJudge"}}),a("span",{staticClass:"font-14 color-606266 p-l-10"},[t._v("次")]),t._v(" "),a("span",{staticClass:"font-14 color-606266"},[t._v("呼叫后无响应")])],1)]),t._v(" "),a("div",{staticClass:"task-set-save m-t-30"},[a("el-button",{attrs:{type:"primary"},on:{click:t.saveSet}},[t._v("保 存")])],1)])],1)},staticRenderFns:[]};var u=a("VU/8")(c,l,!1,function(t){a("TTFP")},"data-v-2fd5ace8",null);e.default=u.exports},TTFP:function(t,e){}}); webpackJsonp([56],{"4H54":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=a("2eFk"),i=a("Ke24"),n=a("PI0u"),o=a("Ch4/"),r=a("3E4D"),d=a("P9l9"),c={name:"reviewed",props:{brandId:{type:String,default:function(){return""}}},data:function(){return{activeTab:"1",activeId:"1",activeBrand:this.brandId,topMenuData:[{id:"1",name:"话务任务设置"}],setObj:{taskType:1,overDayJudge:"",distributeTypeJudge:"",giveUpJudge:""}}},computed:{},methods:{saveSet:Object(n.a)(function(){this.postSave()},500),postSave:function(){var t=this,e={brandId:t.activeBrand,taskType:1,overDayJudge:t.setObj.overDayJudge,giveUpJudge:t.setObj.giveUpJudge,distributeTypeJudge:t.setObj.distributeTypeJudge};Object(d.c)("/haoban-app-tel-task-web/setting/save-task-setting",e).then(function(t){var e=t.data;1!=e.errorCode?o.a.errorMsg(e):r.a.showmsg("保存成功","success")}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},getData:function(){var t=this,e={brandId:t.activeBrand,taskType:1};Object(d.c)("/haoban-app-tel-task-web/setting/find-task-setting",e).then(function(e){var a=e.data;1!=a.errorCode?o.a.errorMsg(a):t.setObj=a.result}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},watch:{brandId:function(t,e){t&&(this.activeBrand=t,this.getData())}},mounted:function(){document.documentElement.style.backgroundColor="#f0f2f5",this.$emit("showTab","2"),this.brandId&&this.getData()},destroyed:function(){document.documentElement.style.backgroundColor="#fff"},components:{appDetail:s.a,commonDetailTop:i.a}},l={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"app-detail-wrap"},[a("common-detail-top",{attrs:{topMenuData:t.topMenuData,activeId:t.activeId}}),t._v(" "),a("div",{staticClass:"task-set-content boder-box"},[a("div",{staticClass:"task-set-cell"},[a("div",{staticClass:"font-16 color-606266 m-b-20 font-w-500"},[t._v("话务任务逾期时间设置")]),t._v(" "),a("div",{staticClass:"set-line-item"},[a("span",{staticClass:"set-line-item_title font-14 color-606266"},[t._v("话务任务下发")]),t._v(" "),a("el-input",{staticClass:"w-55",attrs:{placeholder:"请输入内容"},model:{value:t.setObj.overDayJudge,callback:function(e){t.$set(t.setObj,"overDayJudge",e)},expression:"setObj.overDayJudge"}}),a("span",{staticClass:"font-14 color-606266 p-l-10"},[t._v("天")]),t._v(" "),a("span",{staticClass:"font-14 color-909399 p-l-15"},[t._v("注:0天即为当天下发,当天完成,1天即为当天下发,次日24:00之前完成")])],1),t._v(" "),a("div",{staticClass:"set-line-item"},[a("span",{staticClass:"set-line-item_title font-14 color-606266"},[t._v("话务任务下发")]),t._v(" "),a("el-radio",{attrs:{label:0},model:{value:t.setObj.distributeTypeJudge,callback:function(e){t.$set(t.setObj,"distributeTypeJudge",e)},expression:"setObj.distributeTypeJudge"}},[t._v("分配给主门店的店长")]),t._v(" "),a("el-radio",{attrs:{label:1},model:{value:t.setObj.distributeTypeJudge,callback:function(e){t.$set(t.setObj,"distributeTypeJudge",e)},expression:"setObj.distributeTypeJudge"}},[t._v("分配给专属导购")])],1),t._v(" "),a("div",{staticClass:"set-line-item"},[a("span",{staticClass:"set-line-item_title font-14 color-606266"},[t._v("话务任务放弃前提")]),t._v(" "),a("el-input",{staticClass:"w-55",attrs:{placeholder:"请输入内容"},model:{value:t.setObj.giveUpJudge,callback:function(e){t.$set(t.setObj,"giveUpJudge",e)},expression:"setObj.giveUpJudge"}}),a("span",{staticClass:"font-14 color-606266 p-l-10"},[t._v("次")]),t._v(" "),a("span",{staticClass:"font-14 color-606266"},[t._v("呼叫后无响应")])],1)]),t._v(" "),a("div",{staticClass:"task-set-save m-t-30"},[a("el-button",{attrs:{type:"primary"},on:{click:t.saveSet}},[t._v("保 存")])],1)])],1)},staticRenderFns:[]};var u=a("VU/8")(c,l,!1,function(t){a("TTFP")},"data-v-2fd5ace8",null);e.default=u.exports},TTFP:function(t,e){}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([58],{SKyE:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=r("3Xzz"),s=r("PI0u"),n={name:"companyAddress",data:function(){var t=this;return{navpath:[{name:"首页",path:"/index"},{name:"设置",path:"/companyAddress"},{name:"企业设置",path:"/companyAddress"},{name:"企业地址",path:""}],ruleForm:{switch:!1,name:""},rules:{name:[{validator:function(e,r,a){t.ruleForm.switch&&""==r.replace(/\s/g)?a(new Error("请输入地址")):a()},trigger:"blur"}]}}},computed:{},methods:{submitForm:Object(s.a)(function(t){this.$refs[t].validate(function(t){if(!t)return!1})},500),postSave:function(){this.ruleForm=[]}},components:{navCrumb:a.a}},o={render:function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"companyAddress-wrap common-set-wrap"},[r("nav-crumb",{attrs:{navpath:t.navpath}}),t._v(" "),r("div",{staticClass:"right-content"},[r("div",{staticClass:"right-box",style:{height:t.$store.state.bgHeight}},[r("h2",{staticClass:"font-w-500"},[t._v("企业地址设置")]),t._v(" "),r("p",{staticClass:"m-t-24"},[t._v("开启后手机端通讯录将显示,反之则不显示")]),t._v(" "),r("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:t.ruleForm,rules:t.rules,"label-width":"100px"}},[r("el-form-item",{staticClass:"m-t-22",attrs:{label:"企业地址",prop:"switch"}},[r("el-switch",{model:{value:t.ruleForm.switch,callback:function(e){t.$set(t.ruleForm,"switch",e)},expression:"ruleForm.switch"}})],1),t._v(" "),t.ruleForm.switch?r("el-form-item",{attrs:{label:" ",prop:"name"}},[r("el-input",{staticClass:"w-380",attrs:{placeholder:"请输入地址"},model:{value:t.ruleForm.name,callback:function(e){t.$set(t.ruleForm,"name",e)},expression:"ruleForm.name"}})],1):t._e(),t._v(" "),r("el-form-item",[r("el-button",{attrs:{type:"primary"},on:{click:function(e){t.submitForm("ruleForm")}}},[t._v("保 存")])],1)],1)],1)]),t._v(" "),r("vue-gic-footer")],1)},staticRenderFns:[]};var l=r("VU/8")(n,o,!1,function(t){r("qQHY")},"data-v-2fb3a450",null);e.default=l.exports},qQHY:function(t,e){}}); webpackJsonp([57],{SKyE:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=r("3Xzz"),s=r("PI0u"),n={name:"companyAddress",data:function(){var t=this;return{navpath:[{name:"首页",path:"/index"},{name:"设置",path:"/companyAddress"},{name:"企业设置",path:"/companyAddress"},{name:"企业地址",path:""}],ruleForm:{switch:!1,name:""},rules:{name:[{validator:function(e,r,a){t.ruleForm.switch&&""==r.replace(/\s/g)?a(new Error("请输入地址")):a()},trigger:"blur"}]}}},computed:{},methods:{submitForm:Object(s.a)(function(t){this.$refs[t].validate(function(t){if(!t)return!1})},500),postSave:function(){this.ruleForm=[]}},components:{navCrumb:a.a}},o={render:function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"companyAddress-wrap common-set-wrap"},[r("nav-crumb",{attrs:{navpath:t.navpath}}),t._v(" "),r("div",{staticClass:"right-content"},[r("div",{staticClass:"right-box",style:{height:t.$store.state.bgHeight}},[r("h2",{staticClass:"font-w-500"},[t._v("企业地址设置")]),t._v(" "),r("p",{staticClass:"m-t-24"},[t._v("开启后手机端通讯录将显示,反之则不显示")]),t._v(" "),r("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:t.ruleForm,rules:t.rules,"label-width":"100px"}},[r("el-form-item",{staticClass:"m-t-22",attrs:{label:"企业地址",prop:"switch"}},[r("el-switch",{model:{value:t.ruleForm.switch,callback:function(e){t.$set(t.ruleForm,"switch",e)},expression:"ruleForm.switch"}})],1),t._v(" "),t.ruleForm.switch?r("el-form-item",{attrs:{label:" ",prop:"name"}},[r("el-input",{staticClass:"w-380",attrs:{placeholder:"请输入地址"},model:{value:t.ruleForm.name,callback:function(e){t.$set(t.ruleForm,"name",e)},expression:"ruleForm.name"}})],1):t._e(),t._v(" "),r("el-form-item",[r("el-button",{attrs:{type:"primary"},on:{click:function(e){t.submitForm("ruleForm")}}},[t._v("保 存")])],1)],1)],1)]),t._v(" "),r("vue-gic-footer")],1)},staticRenderFns:[]};var l=r("VU/8")(n,o,!1,function(t){r("qQHY")},"data-v-2fb3a450",null);e.default=l.exports},qQHY:function(t,e){}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([59],{PAYw:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l={name:"block-com",props:{childItem:{type:[Object,Array],default:function(){return{}}}}},s={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"block block-field"},[i("div",{staticClass:"block-head"},[i("div",{class:["opencard-item-title",t.childItem.title.length>=6?"title-pre-wrap":""]},[t._v(t._s(t.childItem.title))])]),t._v(" "),i("ul",{staticClass:"view-content"},t._l(t.childItem.list,function(e,l){return i("li",{key:"performance"+l,staticClass:"block-filed-item border-bottom-1"},[i("div",{class:["opencard-item-title",e.title.length>=6?"title-pre-wrap":""]},[t._v(t._s(e.title))]),t._v(" "),i("div",{staticClass:"draged-item-show"},[i("span",{staticClass:"show-warm-text show-warm-text-flag "},[t._v(t._s(e.placeholder)+" "+t._s(e.isMust?"(必填)":""))])])])})),t._v(" "),"competitorInfo"==t.childItem.name?i("div",{staticClass:"compete-add"},[t._v("\n +竞品信息\n ")]):t._e()])},staticRenderFns:[]};var a=i("VU/8")(l,s,!1,function(t){i("hh6r")},"data-v-1dcd7b4c",null);e.default=a.exports},hh6r:function(t,e){}}); webpackJsonp([58],{PAYw:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var l={name:"block-com",props:{childItem:{type:[Object,Array],default:function(){return{}}}}},s={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"block block-field"},[i("div",{staticClass:"block-head"},[i("div",{class:["opencard-item-title",t.childItem.title.length>=6?"title-pre-wrap":""]},[t._v(t._s(t.childItem.title))])]),t._v(" "),i("ul",{staticClass:"view-content"},t._l(t.childItem.list,function(e,l){return i("li",{key:"performance"+l,staticClass:"block-filed-item border-bottom-1"},[i("div",{class:["opencard-item-title",e.title.length>=6?"title-pre-wrap":""]},[t._v(t._s(e.title))]),t._v(" "),i("div",{staticClass:"draged-item-show"},[i("span",{staticClass:"show-warm-text show-warm-text-flag "},[t._v(t._s(e.placeholder)+" "+t._s(e.isMust?"(必填)":""))])])])})),t._v(" "),"competitorInfo"==t.childItem.name?i("div",{staticClass:"compete-add"},[t._v("\n +竞品信息\n ")]):t._e()])},staticRenderFns:[]};var a=i("VU/8")(l,s,!1,function(t){i("hh6r")},"data-v-1dcd7b4c",null);e.default=a.exports},hh6r:function(t,e){}});
\ No newline at end of file \ No newline at end of file
webpackJsonp([59],{"41Rh":function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o={name:"contact",components:{topNav:a("3Xzz").a},data:function(){return{rightH:window.screen.availHeight-180-20+"px",projectName:"haoban-manage-web",collapseFlag:!1,navpath:[{name:"首页",path:"/"},{name:"通讯录",path:""},{name:"企业通讯录"},{name:"行政架构"}]}},methods:{toRouterView:function(e){this.$router.push({path:e.path})},collapseTag:function(e){this.collapseFlag=e}},watch:{$route:{handler:function(e,t){this.$refs.asideMenu.refreshRoute()},deep:!0}},mounted:function(){},computed:{}},n={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"contact-wrap"},[a("vue-office-header",{attrs:{projectName:e.projectName},on:{collapseTag:e.collapseTag,toRouterView:e.toRouterView}}),e._v(" "),a("div",{staticClass:"contact-wrap__body"},[a("vue-office-aside",{ref:"asideMenu",attrs:{projectName:e.projectName,collapseFlag:e.collapseFlag}}),e._v(" "),a("div",{staticClass:"contact-wrap__right",style:{height:e.rightH}},[a("div",{staticClass:"contact-wrap__right__body"},[a("transition",{attrs:{name:"fade",mode:"out-in"}},[a("router-view")],1)],1)])],1)],1)},staticRenderFns:[]};var c=a("VU/8")(o,n,!1,function(e){a("YW9q")},null,null);t.default=c.exports},YW9q:function(e,t){}});
\ No newline at end of file
webpackJsonp([7],{NNAT:function(e,t,i){"use strict";var o=i("fZjL"),a=i.n(o),s=i("mvHQ"),n=i.n(s),l=i("P9l9"),r=i("0xDb"),c={name:"list-item",props:{item:{type:String,required:!0}},filters:{formatDate:r.b},data:function(){return{typeLsit:["全部","全职","兼职","外包","实习","无类型"],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},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:{callHandle:function(e){"编辑员工资料"!=e.typeTitle?this.$emit("callHandle",e.obj,e.type,e.typeTitle):location.href="#/recordInfo?recordId="+e.obj.recordId}},mounted:function(){}},d={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.typeLsit[t.row[e.item]||5])+"\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",attrs:{href:"#/recordInfo?recordId="+t.row.recordId+"&type=unemployee"}},[e._v("编辑")])])]):e._e()]}}])}):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}})},staticRenderFns:[]};var h=i("VU/8")(c,d,!1,function(e){i("edn0")},null,null).exports,p=i("IVno"),u=i("Ie7z"),m=i("c4uw"),f={name:"employeeRecordList",props:{isUnEmployee:{type:Boolean,default:!1}},components:{listItem:h,handleDialog:p.a,vueSelectStore:u.a,vueSelectEmployee:m.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:["全部","正式","试用"],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:[],adList:[],adDefaultSelection:[],stList:[],changed:0}},methods:{searchFn:function(){this.getEmloyeeList()},getGroupData:function(){var e=this;Object(l.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.$refs.departmentSelector.treeSet.dialogVisible=!0},callStoreSelector:function(){this.$refs.storeSelector.treeSet.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.adList=e;var t=this.selectionList.concat(e);this.selectionList=t,this.formatSelectionList(t)},handleStoreSelectedList:function(e){this.stList=e;var t=this.selectionList.concat(e);this.selectionList=t,this.formatSelectionList(t)},formatSelectionList:function(e){var t=this.unique(e);this.selectionList=t;var i=this;t.length&&(i.chooseClerkIdList=[],i.chooseStoreIdList=[],i.chooseGroupIdList=[],t.forEach(function(e){e.employeeClerkId?i.chooseClerkIdList.push(e.employeeClerkId):e.storeId?i.chooseStoreIdList.push(e.storeId):e.groupId&&i.chooseGroupIdList.push(e.groupId)}),i.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=this.selectionList.indexOf(e);this.selectionList.splice(o,1),this.formatSelectionList(this.selectionList),i.adList.forEach(function(t){t.id==e.id&&i.adList.splice(i.adList.indexOf(t),1)}),i.changed+=1,i.adDefaultSelection=i.adList.slice(0)},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(l.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","hireDate","fireDate","fireReason","handleUnEmployee"]:["headPic","clerkName","clerkPhone","groupName","clerkCode","positionName","clerkType","hireDate","correctionDate","handleEmployee"]}}},v={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,value:t}})}))],e._v(" "),i("el-input",{staticStyle:{width:"218px","margin-left":"10px"},attrs:{placeholder:"请输入姓名或手机号",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}},[e._v("导出"),i("i",{staticClass:"el-icon-upload el-icon--right"})])],1),e._v(" "),e.selectionList.length>0?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",on:{handleSelectedList:e.handleStoreSelectedList}}),e._v(" "),i("vue-select-employee",{ref:"departmentSelector",attrs:{changed:e.changed,treeData:e.treeData,defaultSelection:e.adDefaultSelection},on:{handleSelectedList:e.handleSelectedList}})],1)},staticRenderFns:[]};var g=i("VU/8")(f,v,!1,function(e){i("hl59")},null,null);t.a=g.exports},O3H5:function(e,t,i){"use strict";var o=i("mvHQ"),a=i.n(o),s=i("P9l9"),n=i("DAYN"),l={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()}},r={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}},[e._v("导出"),i("i",{staticClass:"iconfont icon-icon_yunxiazai"})]),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")(l,r,!1,function(e){i("wEsK")},null,null);t.a=c.exports},edn0:function(e,t){},hl59:function(e,t){},rHG8:function(e,t){},wEsK: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"),l={name:"employeeRecord",components:{navCrumb:o.a,employeeList:n.a,exportSet:s.a},data:function(){return{windowH:window.screen.availHeight-180+"px",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:{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"}},r={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"common-set-wrap employee-record-wrap",style:{height:e.windowH}},[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",{attrs:{href:"#/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")(l,r,!1,function(e){i("rHG8")},null,null);t.default=c.exports}});
\ No newline at end of file
webpackJsonp([7],{"+uHg":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),l=i("P9l9"),r=i("0xDb"),c={name:"list-item",props:{item:{type:String,required:!0}},filters:{formatDate:r.b},data:function(){return{typeLsit:["全部","全职","兼职","外包","实习","无类型"],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},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:{callHandle:function(e){"编辑员工资料"!=e.typeTitle?this.$emit("callHandle",e.obj,e.type,e.typeTitle):location.href="#/recordInfo?recordId="+e.obj.recordId}},mounted:function(){}},d={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.typeLsit[t.row[e.item]||5])+"\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",attrs:{href:"#/recordInfo?recordId="+t.row.recordId+"&type=unemployee"}},[e._v("编辑")])])]):e._e()]}}])}):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}})},staticRenderFns:[]};var h=i("VU/8")(c,d,!1,function(e){i("edn0")},null,null).exports,p=i("IVno"),u=i("Ie7z"),m=i("c4uw"),f={name:"employeeRecordList",props:{isUnEmployee:{type:Boolean,default:!1}},components:{listItem:h,handleDialog:p.a,vueSelectStore:u.a,vueSelectEmployee:m.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:["全部","正式","试用"],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:[],adList:[],adDefaultSelection:[],stList:[],changed:0}},methods:{searchFn:function(){this.getEmloyeeList()},getGroupData:function(){var e=this;Object(l.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.$refs.departmentSelector.treeSet.dialogVisible=!0},callStoreSelector:function(){this.$refs.storeSelector.treeSet.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.adList=e;var t=this.selectionList.concat(e);this.selectionList=t,this.formatSelectionList(t)},handleStoreSelectedList:function(e){this.stList=e;var t=this.selectionList.concat(e);this.selectionList=t,this.formatSelectionList(t)},formatSelectionList:function(e){var t=this.unique(e);this.selectionList=t;var i=this;t.length&&(i.chooseClerkIdList=[],i.chooseStoreIdList=[],i.chooseGroupIdList=[],t.forEach(function(e){e.employeeClerkId?i.chooseClerkIdList.push(e.employeeClerkId):e.storeId?i.chooseStoreIdList.push(e.storeId):e.groupId&&i.chooseGroupIdList.push(e.groupId)}),i.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=this.selectionList.indexOf(e);this.selectionList.splice(o,1),this.formatSelectionList(this.selectionList),i.adList.forEach(function(t){t.id==e.id&&i.adList.splice(i.adList.indexOf(t),1)}),i.changed+=1,i.adDefaultSelection=i.adList.slice(0)},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(l.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","hireDate","fireDate","fireReason","handleUnEmployee"]:["headPic","clerkName","clerkPhone","groupName","clerkCode","positionName","clerkType","hireDate","correctionDate","handleEmployee"]}}},v={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,value:t}})}))],e._v(" "),i("el-input",{staticStyle:{width:"218px","margin-left":"10px"},attrs:{placeholder:"请输入姓名或手机号",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}},[e._v("导出"),i("i",{staticClass:"el-icon-upload el-icon--right"})])],1),e._v(" "),e.selectionList.length>0?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:{height:e.employeeList.length?e.tableH:"auto",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",on:{handleSelectedList:e.handleStoreSelectedList}}),e._v(" "),i("vue-select-employee",{ref:"departmentSelector",attrs:{changed:e.changed,treeData:e.treeData,defaultSelection:e.adDefaultSelection},on:{handleSelectedList:e.handleSelectedList}})],1)},staticRenderFns:[]};var g=i("VU/8")(f,v,!1,function(e){i("+uHg")},null,null);t.a=g.exports},O3H5:function(e,t,i){"use strict";var o=i("mvHQ"),a=i.n(o),s=i("P9l9"),n=i("DAYN"),l={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()}},r={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}},[e._v("导出"),i("i",{staticClass:"iconfont icon-icon_yunxiazai"})]),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")(l,r,!1,function(e){i("wEsK")},null,null);t.a=c.exports},edn0:function(e,t){},rHG8:function(e,t){},wEsK: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"),l={name:"employeeRecord",components:{navCrumb:o.a,employeeList:n.a,exportSet:s.a},data:function(){return{windowH:window.screen.availHeight-180+"px",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:{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"}},r={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"common-set-wrap employee-record-wrap",style:{height:e.windowH}},[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",{attrs:{href:"#/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")(l,r,!1,function(e){i("rHG8")},null,null);t.default=c.exports}});
\ No newline at end of file
webpackJsonp([65],{"/NA0":function(e,t){},0:function(e,t,n){n("j1ja"),e.exports=n("NHnr")},"4qCZ":function(e,t){},"5tgt":function(e,t,n){e.exports=function(e,t){return function(a){n("Opzk")("./"+e+"/"+t+".vue").then(function(e){a(e)})}}},NHnr:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=n("mvHQ"),o=n.n(a),r=(n("j1ja"),n("hKoQ")),p=n.n(r),i=n("7+uW"),c={render:function(){var e=this.$createElement,t=this._self._c||e;return t("div",{attrs:{id:"app"}},[t("transition",{attrs:{name:"fade",mode:"out-in"}},[t("router-view")],1)],1)},staticRenderFns:[]};var s=n("VU/8")({name:"App",data:function(){return{}}},c,!1,function(e){n("/NA0")},null,null).exports,d=n("/ocq"),m=n("5tgt"),u=n.n(m);i.default.use(d.a);var l=function(e){n.e(1).then(n.bind(null,"ODjX")).then(function(t){e(t)})};window.sessionStorage.getItem("token")&&store.commit(types.LOGIN,window.sessionStorage.getItem("token"));var v,f=[{path:"/",name:"/",redirect:"login"},{path:"/login",name:"登录",component:u()("login","index")},{path:"/index",name:"index",component:u()("index","index")},{path:"/contacts",name:"通讯录",redirect:"administrativeFrame",component:u()("contacts","index"),children:[{path:"/administrativeFrame",name:"行政架构",component:u()("contacts","administrativeFrame")},{path:"/employeeIo",name:"批量导入/导出",component:u()("contacts","employeeIo")},{path:"/addDepartment",name:"添加部门",component:u()("contacts","addDepartment")},{path:"/addClerk",name:"添加店员",component:u()("contacts","addClerk")},{path:"/storeFrame",name:"门店架构",component:u()("contacts","storeFrame")},{path:"/addGroup",name:"添加子分组",component:u()("contacts","addGroup")},{path:"/storeIo",name:"门店导入/导出",component:u()("contacts","storeIo")},{path:"/storeInfo",name:"编辑门店",component:u()("contacts","storeInfo")},{path:"/recycle",name:"门店回收站",component:u()("contacts","recycle")},{path:"/employee",name:"编辑员工",component:u()("contacts","employee")},{path:"/unemployee",name:"离职员工",component:u()("contacts","unemployee")},{path:"/fileSet",name:"档案设置",component:u()("contacts","fileSet")},{path:"/recordInfo",name:"编辑员工信息",component:u()("contacts","recordInfo")},{path:"/recordIo",name:"导入导出员工档案",component:u()("contacts","recordIo")},{path:"/shareContact",name:"共享通讯录",component:u()("contacts","shareContact")},{path:"/shareCode",name:"共享通讯录二维码",component:u()("contacts","shareCode")},{path:"/employeeRecord",name:"在职员工",component:u()("contacts","employeeRecord")}]},{path:"/enterpriseApp",name:"企业应用",redirect:"appcenter",component:u()("enterpriseApp","index"),children:[{path:"/appcenter",name:"企业应用中心",component:u()("enterpriseApp","appcenter")},{path:"/mycustomer",name:"我的顾客",component:u()("enterpriseApp","mycustomer")},{path:"/cloudDaily",name:"云日报",redirect:"/dailyRecord",component:u()("enterpriseApp/cloudDaily","index"),children:[{path:"/dailyRecord",name:"云日报记录",component:u()("enterpriseApp/cloudDaily","dailyRecord")},{path:"/dailyDetail",name:"日报详情",component:u()("enterpriseApp/cloudDaily","dailyDetail")},{path:"/taskAssign",name:"任务下发设置",component:u()("enterpriseApp/cloudDaily","taskAssign")},{path:"/systemReport",name:"系统报表",component:u()("enterpriseApp/cloudDaily","systemReport")},{path:"/customReport",name:"自定义报表",component:u()("enterpriseApp/cloudDaily","customReport")}]},{path:"/trafficTask",name:"话务任务",redirect:"/taskRecord",component:u()("enterpriseApp/trafficTask","index"),children:[{path:"/taskRecord",name:"话务任务记录",component:u()("enterpriseApp/trafficTask","taskRecord")},{path:"/taskDetail",name:"话务任务详情",component:u()("enterpriseApp/trafficTask","taskDetail")},{path:"/trafficTaskSet",name:"话务任务设置",component:u()("enterpriseApp/trafficTask","trafficTaskSet")}]},{path:"/badEvaluate",name:"不良评价",redirect:"/badEvaluateRecord",component:u()("enterpriseApp/badEvaluate","index"),children:[{path:"/badEvaluateRecord",name:"不良评价记录",component:u()("enterpriseApp/badEvaluate","badEvaluateRecord")},{path:"/badEvaluateDetail",name:"不良评价详情",component:u()("enterpriseApp/badEvaluate","badEvaluateDetail")},{path:"/badEvaluateSet",name:"不良评价设置",component:u()("enterpriseApp/badEvaluate","badEvaluateSet")}]}]},{path:"/reviewCenter",name:"审核中心",redirect:"unreview",component:u()("reviewCenter","index"),children:[{path:"/reviewed",name:"已审核",component:u()("reviewCenter","reviewed")},{path:"/unreview",name:"未审核",component:u()("reviewCenter","unreview")}]},{path:"/setCenter",name:"设置",redirect:"companyAddress",component:u()("setting","index"),children:[{path:"/companyAddress",name:"企业地址",component:u()("setting","companyAddress")},{path:"/companyCertify",name:"企业认证",component:u()("setting","companyCertify")},{path:"/staffDetails",name:"员工详情字段",component:u()("setting","staffDetails")},{path:"/storePermission",name:"门店权限设置",component:u()("setting","storePermission")},{path:"/replaceAdmin",name:"更换超级管理员",component:u()("setting","replaceAdmin")},{path:"/setChildAdmin",name:"设置子管理员",component:u()("setting","setChildAdmin")},{path:"/addAdmin",name:"添加管理员",component:u()("setting","addAdmin")},{path:"/addAdminRole",name:"添加管理员角色",component:u()("setting","addAdminRole")}]},{path:"/staffRecordsTemplate",name:"员工档案设置",component:u()("contacts","staffRecordsTemplate")},{path:"/systemReportSet",name:"系统报表设置",component:u()("enterpriseApp/cloudDaily","systemReportSet")},{path:"/template",name:"模板设置",component:u()("enterpriseApp/cloudDaily","template")},{path:"/403",name:"无权访问",component:l},{path:"/404",name:"error404",component:l},{path:"/500",name:"error500",component:l},{path:"*",redirect:"/404",hidden:!0}],h=new d.a({routes:f,scrollBehavior:function(){return{y:0}}}),y=n("zL8q"),A=n.n(y),g=n("Rf8U"),k=n.n(g),D=n("mtWM"),w=n.n(D),R=n("bOdI"),x=n.n(R),C=n("NYxO");i.default.use(C.a);var b=new C.a.Store({state:{user:{},token:null,title:"",show:!1,bgHeight:window.screen.availHeight-440-24+"px"},mutations:(v={},x()(v,"login",function(e,t){sessionStorage.token=t,e.token=t}),x()(v,"logout",function(e){sessionStorage.removeItem("token"),e.token=null}),x()(v,"title",function(e,t){e.title=t}),x()(v,"show",function(e,t){e.show=t}),v)}),E=(n("4qCZ"),n("uKUT"),n("Xcu2"),n("TUaa")),I=n.n(E),S=n("tyqE"),T=n.n(S),P=n("pRVe"),j=n.n(P),F=n("SE7k"),O=n.n(F),z=n("XsK6"),G=n.n(z),H=n("QRL9"),K=n.n(H),N=n("2Pnh"),U=n.n(N),X=n("l9mu"),q=n.n(X),J={install:function(e,t){e.prototype.getPdf=function(){var e=this.htmlTitle;U()(document.querySelector("#pdfDom"),{allowTaint:!0,foreignObjectRendering:!0}).then(function(t){var n=t.width,a=t.height,o=n/592.28*841.89,r=a,p=0,i=592.28/n*a,c=t.toDataURL("image/jpeg",1),s=new q.a("","pt","a4");if(r<o)s.addImage(c,"JPEG",0,0,595.28,i);else for(;r>0;)s.addImage(c,"JPEG",0,p,595.28,i),p-=841.89,(r-=o)>0&&s.addPage();s.save(e+".pdf")})}}};p.a.polyfill(),i.default.use(J),i.default.use(G.a),i.default.use(K.a),i.default.use(O.a),i.default.use(j.a),i.default.use(T.a),i.default.use(I.a),i.default.config.productionTip=!1,i.default.use(A.a,{size:"large"}),i.default.use(k.a,w.a),i.default.axios.defaults.withCredentials=!0,h.beforeEach(function(e,t,n){var a=void 0,r=window.location.origin;a="-1"!=r.indexOf("localhost")?"http://www.gicdev.com":r,localStorage.getItem("userInfo")||w.a.get(a+"/haoban-manage-web/emp/get-user-info",{}).then(function(e){var t=e.data;1!=t.errorCode||localStorage.setItem("userInfo",o()(t.result))}).catch(function(e){y.Message.error({duration:1e3,message:e.message})}),"/"==e.path?n({path:"/login"}):n()}),new i.default({el:"#app",router:h,store:b,components:{App:s},template:"<App/>"})},Opzk:function(e,t,n){var a={"./contacts/addClerk.vue":["27o1",0,18],"./contacts/addDepartment.vue":["HHRu",0,17],"./contacts/addEmployee.vue":["00Sv",39],"./contacts/addGroup.vue":["mPjx",0,47],"./contacts/administrativeFrame.vue":["kLcy",0,3],"./contacts/employee.vue":["AdJp",0,50],"./contacts/employeeIo.vue":["Rwbg",0,30],"./contacts/employeeRecord.vue":["zGJY",0,7],"./contacts/fileSet.vue":["CSjr",0,8],"./contacts/index.vue":["41Rh",0,43],"./contacts/recordInfo.vue":["67iC",0,12],"./contacts/recordIo.vue":["738z",0,19],"./contacts/recycle.vue":["HkK0",0,27],"./contacts/shareAddDepartment.vue":["q5Ri",0,16],"./contacts/shareCode.vue":["JsWW",0,52],"./contacts/shareContact.vue":["Gfms",0,2],"./contacts/staffRecordsTemplate.vue":["lFAe",0,28],"./contacts/storeFrame.vue":["7SJI",0,5],"./contacts/storeInfo.vue":["h/6A",0,10],"./contacts/storeIo.vue":["RHxA",0,31],"./contacts/unemployee.vue":["TGrv",0,13],"./enterpriseApp/appcenter.vue":["yuVF",0,24],"./enterpriseApp/badEvaluate/badEvaluateDetail.vue":["4m/B",0,61],"./enterpriseApp/badEvaluate/badEvaluateRecord.vue":["r//C",0,44],"./enterpriseApp/badEvaluate/badEvaluateSet.vue":["XzAK",0,36],"./enterpriseApp/badEvaluate/index.vue":["W0k8",0,54],"./enterpriseApp/cloudDaily/customReport.vue":["DxdI",0,32],"./enterpriseApp/cloudDaily/dailyDetail.vue":["5nNU",0,60],"./enterpriseApp/cloudDaily/dailyRecord.vue":["Ujni",0,46],"./enterpriseApp/cloudDaily/index.vue":["Knd1",0,49],"./enterpriseApp/cloudDaily/systemReport.vue":["Y8F9",0,41],"./enterpriseApp/cloudDaily/systemReportSet.vue":["VE2c",0,6],"./enterpriseApp/cloudDaily/taskAssign.vue":["5x7s",0,37],"./enterpriseApp/cloudDaily/template.vue":["IA9l",0,4],"./enterpriseApp/cloudDaily/template/block.vue":["PAYw",59],"./enterpriseApp/cloudDaily/template/date-range.vue":["79Bk",40],"./enterpriseApp/cloudDaily/template/image.vue":["H8Kg",53],"./enterpriseApp/cloudDaily/template/input.vue":["s4D+",62],"./enterpriseApp/cloudDaily/template/select.vue":["t0b0",38],"./enterpriseApp/index.vue":["da9f",48],"./enterpriseApp/mycustomer.vue":["cuIN",0,45],"./enterpriseApp/trafficTask/index.vue":["e88N",0,34],"./enterpriseApp/trafficTask/taskDetail.vue":["A33E",0,56],"./enterpriseApp/trafficTask/taskRecord.vue":["iG3v",0,42],"./enterpriseApp/trafficTask/trafficTaskSet.vue":["4H54",0,57],"./errorPage/403.vue":["6XGN",23],"./errorPage/404.vue":["AejC",25],"./errorPage/500.vue":["FskK",21],"./errorPage/index.vue":["ODjX",1],"./index/index.vue":["JXTs",0,26],"./login/index.vue":["T+/8",0,9],"./reviewCenter/index.vue":["+lem",51],"./reviewCenter/reviewed.vue":["CLYF",0,15],"./reviewCenter/unreview.vue":["xCEU",0,14],"./setting/addAdmin.vue":["rs/A",0,33],"./setting/addAdminRole.vue":["fZsz",0,63],"./setting/companyAddress.vue":["SKyE",0,58],"./setting/companyCertify.vue":["3zYh",0,11],"./setting/index.vue":["VlR1",29],"./setting/replaceAdmin.vue":["ys9I",0,55],"./setting/setChildAdmin.vue":["VqB7",0,35],"./setting/staffDetails.vue":["Zyzf",0,22],"./setting/storePermission.vue":["Xwfy",0,20]};function o(e){var t=a[e];return t?Promise.all(t.slice(1).map(n.e)).then(function(){return n(t[0])}):Promise.reject(new Error("Cannot find module '"+e+"'."))}o.keys=function(){return Object.keys(a)},o.id="Opzk",e.exports=o},Xcu2:function(e,t){},uKUT:function(e,t){}},[0]); webpackJsonp([65],{"/NA0":function(e,t){},0:function(e,t,n){n("j1ja"),e.exports=n("NHnr")},"4qCZ":function(e,t){},"5tgt":function(e,t,n){e.exports=function(e,t){return function(a){n("Opzk")("./"+e+"/"+t+".vue").then(function(e){a(e)})}}},NHnr:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=n("mvHQ"),o=n.n(a),r=(n("j1ja"),n("hKoQ")),p=n.n(r),i=n("7+uW"),c={render:function(){var e=this.$createElement,t=this._self._c||e;return t("div",{attrs:{id:"app"}},[t("transition",{attrs:{name:"fade",mode:"out-in"}},[t("router-view")],1)],1)},staticRenderFns:[]};var s=n("VU/8")({name:"App",data:function(){return{}}},c,!1,function(e){n("/NA0")},null,null).exports,d=n("/ocq"),m=n("5tgt"),u=n.n(m);i.default.use(d.a);var l=function(e){n.e(1).then(n.bind(null,"ODjX")).then(function(t){e(t)})};window.sessionStorage.getItem("token")&&store.commit(types.LOGIN,window.sessionStorage.getItem("token"));var v,f=[{path:"/",name:"/",redirect:"login"},{path:"/login",name:"登录",component:u()("login","index")},{path:"/index",name:"index",component:u()("index","index")},{path:"/contacts",name:"通讯录",redirect:"administrativeFrame",component:u()("contacts","index"),children:[{path:"/administrativeFrame",name:"行政架构",component:u()("contacts","administrativeFrame")},{path:"/employeeIo",name:"批量导入/导出",component:u()("contacts","employeeIo")},{path:"/addDepartment",name:"添加部门",component:u()("contacts","addDepartment")},{path:"/addClerk",name:"添加店员",component:u()("contacts","addClerk")},{path:"/storeFrame",name:"门店架构",component:u()("contacts","storeFrame")},{path:"/addGroup",name:"添加子分组",component:u()("contacts","addGroup")},{path:"/storeIo",name:"门店导入/导出",component:u()("contacts","storeIo")},{path:"/storeInfo",name:"编辑门店",component:u()("contacts","storeInfo")},{path:"/recycle",name:"门店回收站",component:u()("contacts","recycle")},{path:"/employee",name:"编辑员工",component:u()("contacts","employee")},{path:"/unemployee",name:"离职员工",component:u()("contacts","unemployee")},{path:"/fileSet",name:"档案设置",component:u()("contacts","fileSet")},{path:"/recordInfo",name:"编辑员工信息",component:u()("contacts","recordInfo")},{path:"/recordIo",name:"导入导出员工档案",component:u()("contacts","recordIo")},{path:"/shareContact",name:"共享通讯录",component:u()("contacts","shareContact")},{path:"/shareCode",name:"共享通讯录二维码",component:u()("contacts","shareCode")},{path:"/employeeRecord",name:"在职员工",component:u()("contacts","employeeRecord")}]},{path:"/enterpriseApp",name:"企业应用",redirect:"appcenter",component:u()("enterpriseApp","index"),children:[{path:"/appcenter",name:"企业应用中心",component:u()("enterpriseApp","appcenter")},{path:"/mycustomer",name:"我的顾客",component:u()("enterpriseApp","mycustomer")},{path:"/cloudDaily",name:"云日报",redirect:"/dailyRecord",component:u()("enterpriseApp/cloudDaily","index"),children:[{path:"/dailyRecord",name:"云日报记录",component:u()("enterpriseApp/cloudDaily","dailyRecord")},{path:"/dailyDetail",name:"日报详情",component:u()("enterpriseApp/cloudDaily","dailyDetail")},{path:"/taskAssign",name:"任务下发设置",component:u()("enterpriseApp/cloudDaily","taskAssign")},{path:"/systemReport",name:"系统报表",component:u()("enterpriseApp/cloudDaily","systemReport")},{path:"/customReport",name:"自定义报表",component:u()("enterpriseApp/cloudDaily","customReport")}]},{path:"/trafficTask",name:"话务任务",redirect:"/taskRecord",component:u()("enterpriseApp/trafficTask","index"),children:[{path:"/taskRecord",name:"话务任务记录",component:u()("enterpriseApp/trafficTask","taskRecord")},{path:"/taskDetail",name:"话务任务详情",component:u()("enterpriseApp/trafficTask","taskDetail")},{path:"/trafficTaskSet",name:"话务任务设置",component:u()("enterpriseApp/trafficTask","trafficTaskSet")}]},{path:"/badEvaluate",name:"不良评价",redirect:"/badEvaluateRecord",component:u()("enterpriseApp/badEvaluate","index"),children:[{path:"/badEvaluateRecord",name:"不良评价记录",component:u()("enterpriseApp/badEvaluate","badEvaluateRecord")},{path:"/badEvaluateDetail",name:"不良评价详情",component:u()("enterpriseApp/badEvaluate","badEvaluateDetail")},{path:"/badEvaluateSet",name:"不良评价设置",component:u()("enterpriseApp/badEvaluate","badEvaluateSet")}]}]},{path:"/reviewCenter",name:"审核中心",redirect:"unreview",component:u()("reviewCenter","index"),children:[{path:"/reviewed",name:"已审核",component:u()("reviewCenter","reviewed")},{path:"/unreview",name:"未审核",component:u()("reviewCenter","unreview")}]},{path:"/setCenter",name:"设置",redirect:"companyAddress",component:u()("setting","index"),children:[{path:"/companyAddress",name:"企业地址",component:u()("setting","companyAddress")},{path:"/companyCertify",name:"企业认证",component:u()("setting","companyCertify")},{path:"/staffDetails",name:"员工详情字段",component:u()("setting","staffDetails")},{path:"/storePermission",name:"门店权限设置",component:u()("setting","storePermission")},{path:"/replaceAdmin",name:"更换超级管理员",component:u()("setting","replaceAdmin")},{path:"/setChildAdmin",name:"设置子管理员",component:u()("setting","setChildAdmin")},{path:"/addAdmin",name:"添加管理员",component:u()("setting","addAdmin")},{path:"/addAdminRole",name:"添加管理员角色",component:u()("setting","addAdminRole")}]},{path:"/staffRecordsTemplate",name:"员工档案设置",component:u()("contacts","staffRecordsTemplate")},{path:"/systemReportSet",name:"系统报表设置",component:u()("enterpriseApp/cloudDaily","systemReportSet")},{path:"/template",name:"模板设置",component:u()("enterpriseApp/cloudDaily","template")},{path:"/403",name:"无权访问",component:l},{path:"/404",name:"error404",component:l},{path:"/500",name:"error500",component:l},{path:"*",redirect:"/404",hidden:!0}],h=new d.a({routes:f,scrollBehavior:function(){return{y:0}}}),y=n("zL8q"),A=n.n(y),g=n("Rf8U"),k=n.n(g),D=n("mtWM"),w=n.n(D),R=n("bOdI"),x=n.n(R),C=n("NYxO");i.default.use(C.a);var b=new C.a.Store({state:{user:{},token:null,title:"",show:!1,bgHeight:window.screen.availHeight-440-24+"px"},mutations:(v={},x()(v,"login",function(e,t){sessionStorage.token=t,e.token=t}),x()(v,"logout",function(e){sessionStorage.removeItem("token"),e.token=null}),x()(v,"title",function(e,t){e.title=t}),x()(v,"show",function(e,t){e.show=t}),v)}),E=(n("4qCZ"),n("uKUT"),n("Xcu2"),n("TUaa")),I=n.n(E),S=n("tyqE"),T=n.n(S),P=n("pRVe"),j=n.n(P),F=n("SE7k"),O=n.n(F),z=n("XsK6"),G=n.n(z),H=n("QRL9"),K=n.n(H),N=n("2Pnh"),U=n.n(N),X=n("l9mu"),q=n.n(X),J={install:function(e,t){e.prototype.getPdf=function(){var e=this.htmlTitle;U()(document.querySelector("#pdfDom"),{allowTaint:!0,foreignObjectRendering:!0}).then(function(t){var n=t.width,a=t.height,o=n/592.28*841.89,r=a,p=0,i=592.28/n*a,c=t.toDataURL("image/jpeg",1),s=new q.a("","pt","a4");if(r<o)s.addImage(c,"JPEG",0,0,595.28,i);else for(;r>0;)s.addImage(c,"JPEG",0,p,595.28,i),p-=841.89,(r-=o)>0&&s.addPage();s.save(e+".pdf")})}}};p.a.polyfill(),i.default.use(J),i.default.use(G.a),i.default.use(K.a),i.default.use(O.a),i.default.use(j.a),i.default.use(T.a),i.default.use(I.a),i.default.config.productionTip=!1,i.default.use(A.a,{size:"large"}),i.default.use(k.a,w.a),i.default.axios.defaults.withCredentials=!0,h.beforeEach(function(e,t,n){var a=void 0,r=window.location.origin;a="-1"!=r.indexOf("localhost")?"http://www.gicdev.com":r,localStorage.getItem("userInfo")||w.a.get(a+"/haoban-manage-web/emp/get-user-info",{}).then(function(e){var t=e.data;1!=t.errorCode||localStorage.setItem("userInfo",o()(t.result))}).catch(function(e){y.Message.error({duration:1e3,message:e.message})}),"/"==e.path?n({path:"/login"}):n()}),new i.default({el:"#app",router:h,store:b,components:{App:s},template:"<App/>"})},Opzk:function(e,t,n){var a={"./contacts/addClerk.vue":["27o1",0,18],"./contacts/addDepartment.vue":["HHRu",0,17],"./contacts/addEmployee.vue":["00Sv",39],"./contacts/addGroup.vue":["mPjx",0,45],"./contacts/administrativeFrame.vue":["kLcy",0,3],"./contacts/employee.vue":["AdJp",0,48],"./contacts/employeeIo.vue":["Rwbg",0,30],"./contacts/employeeRecord.vue":["zGJY",0,7],"./contacts/fileSet.vue":["CSjr",0,8],"./contacts/index.vue":["41Rh",0,59],"./contacts/recordInfo.vue":["67iC",0,12],"./contacts/recordIo.vue":["738z",0,20],"./contacts/recycle.vue":["HkK0",0,27],"./contacts/shareAddDepartment.vue":["q5Ri",0,16],"./contacts/shareCode.vue":["JsWW",0,50],"./contacts/shareContact.vue":["Gfms",0,2],"./contacts/staffRecordsTemplate.vue":["lFAe",0,28],"./contacts/storeFrame.vue":["7SJI",0,5],"./contacts/storeInfo.vue":["h/6A",0,10],"./contacts/storeIo.vue":["RHxA",0,31],"./contacts/unemployee.vue":["TGrv",0,13],"./enterpriseApp/appcenter.vue":["yuVF",0,24],"./enterpriseApp/badEvaluate/badEvaluateDetail.vue":["4m/B",0,61],"./enterpriseApp/badEvaluate/badEvaluateRecord.vue":["r//C",0,42],"./enterpriseApp/badEvaluate/badEvaluateSet.vue":["XzAK",0,36],"./enterpriseApp/badEvaluate/index.vue":["W0k8",0,52],"./enterpriseApp/cloudDaily/customReport.vue":["DxdI",0,32],"./enterpriseApp/cloudDaily/dailyDetail.vue":["5nNU",0,60],"./enterpriseApp/cloudDaily/dailyRecord.vue":["Ujni",0,44],"./enterpriseApp/cloudDaily/index.vue":["Knd1",0,47],"./enterpriseApp/cloudDaily/systemReport.vue":["Y8F9",0,41],"./enterpriseApp/cloudDaily/systemReportSet.vue":["VE2c",0,6],"./enterpriseApp/cloudDaily/taskAssign.vue":["5x7s",0,37],"./enterpriseApp/cloudDaily/template.vue":["IA9l",0,4],"./enterpriseApp/cloudDaily/template/block.vue":["PAYw",58],"./enterpriseApp/cloudDaily/template/date-range.vue":["79Bk",40],"./enterpriseApp/cloudDaily/template/image.vue":["H8Kg",51],"./enterpriseApp/cloudDaily/template/input.vue":["s4D+",62],"./enterpriseApp/cloudDaily/template/select.vue":["t0b0",38],"./enterpriseApp/index.vue":["da9f",46],"./enterpriseApp/mycustomer.vue":["cuIN",0,43],"./enterpriseApp/trafficTask/index.vue":["e88N",0,34],"./enterpriseApp/trafficTask/taskDetail.vue":["A33E",0,55],"./enterpriseApp/trafficTask/taskRecord.vue":["iG3v",0,54],"./enterpriseApp/trafficTask/trafficTaskSet.vue":["4H54",0,56],"./errorPage/403.vue":["6XGN",23],"./errorPage/404.vue":["AejC",25],"./errorPage/500.vue":["FskK",21],"./errorPage/index.vue":["ODjX",1],"./index/index.vue":["JXTs",0,26],"./login/index.vue":["T+/8",0,9],"./reviewCenter/index.vue":["+lem",49],"./reviewCenter/reviewed.vue":["CLYF",0,15],"./reviewCenter/unreview.vue":["xCEU",0,14],"./setting/addAdmin.vue":["rs/A",0,33],"./setting/addAdminRole.vue":["fZsz",0,63],"./setting/companyAddress.vue":["SKyE",0,57],"./setting/companyCertify.vue":["3zYh",0,11],"./setting/index.vue":["VlR1",29],"./setting/replaceAdmin.vue":["ys9I",0,53],"./setting/setChildAdmin.vue":["VqB7",0,35],"./setting/staffDetails.vue":["Zyzf",0,22],"./setting/storePermission.vue":["Xwfy",0,19]};function o(e){var t=a[e];return t?Promise.all(t.slice(1).map(n.e)).then(function(){return n(t[0])}):Promise.reject(new Error("Cannot find module '"+e+"'."))}o.keys=function(){return Object.keys(a)},o.id="Opzk",e.exports=o},Xcu2:function(e,t){},uKUT:function(e,t){}},[0]);
\ No newline at end of file \ No newline at end of file
!function(e){var c=window.webpackJsonp;window.webpackJsonp=function(a,b,n){for(var r,t,o,i=0,u=[];i<a.length;i++)t=a[i],f[t]&&u.push(f[t][0]),f[t]=0;for(r in b)Object.prototype.hasOwnProperty.call(b,r)&&(e[r]=b[r]);for(c&&c(a,b,n);u.length;)u.shift()();if(n)for(i=0;i<n.length;i++)o=d(d.s=n[i]);return o};var a={},f={67:0};function d(c){if(a[c])return a[c].exports;var f=a[c]={i:c,l:!1,exports:{}};return e[c].call(f.exports,f,f.exports,d),f.l=!0,f.exports}d.e=function(e){var c=f[e];if(0===c)return new Promise(function(e){e()});if(c)return c[2];var a=new Promise(function(a,d){c=f[e]=[a,d]});c[2]=a;var b=document.getElementsByTagName("head")[0],n=document.createElement("script");n.type="text/javascript",n.charset="utf-8",n.async=!0,n.timeout=12e4,d.nc&&n.setAttribute("nonce",d.nc),n.src=d.p+"static/js/"+e+"."+{0:"40af8eb64573e7d0f2a7",1:"0ebe3ead93207dc78a78",2:"04b3a0491019f6a634de",3:"00edabfd028d98e1244a",4:"88661387e0f8ffce7dce",5:"f6c6de0bb4f64e76dc33",6:"00b931389a74250125a3",7:"a66d5e2dc5c9a897afca",8:"ccfd1bb81626da46f432",9:"b916c8d12141617e4db2",10:"4ef9b2bd6aeb30549d08",11:"48cce40bd1119cfef79d",12:"e76fb5eceb5d5dc71085",13:"b01809ebc91a1b51c416",14:"94920536d81601122060",15:"35d29be8ae21328d7a1a",16:"fc1264890c2669f41a52",17:"f63dce8f2668ada8cf11",18:"f042e71cdd4e1a7dfc5e",19:"3a7492fb05a4675187aa",20:"59c7bcdfe8ad632d756d",21:"95b9e75e267a37620b22",22:"90dbae29bc22d6371a1f",23:"5ed1b5fd3abff19ce342",24:"ea40d500ddb87bcb0f37",25:"b1a072a021ca5876e8df",26:"2c0979f3bd7ee7896b97",27:"af4b1ef4511f15e9c04e",28:"6ce601a582a32cedc608",29:"ff0267ea3da22d09a51d",30:"ec25743672bf02942748",31:"4e7996b3a5865a4088f0",32:"4ef7b3772c8f16964a6f",33:"7822e8447a0721863202",34:"87af97cb497835e3ffbd",35:"26c25bce61825d5354d8",36:"6b7ba3c82f569f7a47e0",37:"f8bf84592943c5dfbf8a",38:"db0ccdb9d831a1fee238",39:"8861e4489f26fe322990",40:"c6cf553f8eb155ae6f1a",41:"119ab10f2d353ddcdbc8",42:"dbec99e91fbc91133d40",43:"081930ea39c4286aa0e4",44:"0ef9c949acdad2188094",45:"6390c2a3a576476b8a17",46:"244b83d08980253b5ac9",47:"20ce87b18923be5a5ade",48:"8637ac0c8190d7e6aa0e",49:"3e6159fce2b699235946",50:"1788ddcbf06101c6cf83",51:"53e8e57b506734c7dc8f",52:"ec3446ccbe126ad8228d",53:"84eaec4c0f59c1c56bc0",54:"088261075a584f5a6621",55:"0d9d4c2089946bfc26d3",56:"480dfad12f0467bdf935",57:"e265d12ce5a0a24c2064",58:"04dbe15e8a9576b15187",59:"4a9c4128f674539bd769",60:"a2c998165f7c49119fb5",61:"b20287cdc2c3f54f5707",62:"9c6873cd95e401f16493",63:"257f2cb50e19e5d7425e",66:"f6fd646044957e4ead90"}[e]+".js";var r=setTimeout(t,12e4);function t(){n.onerror=n.onload=null,clearTimeout(r);var c=f[e];0!==c&&(c&&c[1](new Error("Loading chunk "+e+" failed.")),f[e]=void 0)}return n.onerror=n.onload=t,b.appendChild(n),a},d.m=e,d.c=a,d.d=function(e,c,a){d.o(e,c)||Object.defineProperty(e,c,{configurable:!1,enumerable:!0,get:a})},d.n=function(e){var c=e&&e.__esModule?function(){return e.default}:function(){return e};return d.d(c,"a",c),c},d.o=function(e,c){return Object.prototype.hasOwnProperty.call(e,c)},d.p="./",d.oe=function(e){throw console.error(e),e}}([]);
\ No newline at end of file
!function(e){var a=window.webpackJsonp;window.webpackJsonp=function(f,b,n){for(var r,t,o,i=0,u=[];i<f.length;i++)t=f[i],c[t]&&u.push(c[t][0]),c[t]=0;for(r in b)Object.prototype.hasOwnProperty.call(b,r)&&(e[r]=b[r]);for(a&&a(f,b,n);u.length;)u.shift()();if(n)for(i=0;i<n.length;i++)o=d(d.s=n[i]);return o};var f={},c={67:0};function d(a){if(f[a])return f[a].exports;var c=f[a]={i:a,l:!1,exports:{}};return e[a].call(c.exports,c,c.exports,d),c.l=!0,c.exports}d.e=function(e){var a=c[e];if(0===a)return new Promise(function(e){e()});if(a)return a[2];var f=new Promise(function(f,d){a=c[e]=[f,d]});a[2]=f;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:"40af8eb64573e7d0f2a7",1:"0ebe3ead93207dc78a78",2:"c8863e7a9d4b284238db",3:"d0e265b5848deae9dedd",4:"1d85510722fbe8c5e767",5:"affcf7d2766726867109",6:"00b931389a74250125a3",7:"50747c5f602fa39713ee",8:"ccfd1bb81626da46f432",9:"b916c8d12141617e4db2",10:"4ef9b2bd6aeb30549d08",11:"48cce40bd1119cfef79d",12:"8a1633b353b37d5bfcd2",13:"50f2f7291e012aa2feab",14:"94920536d81601122060",15:"35d29be8ae21328d7a1a",16:"fc1264890c2669f41a52",17:"f63dce8f2668ada8cf11",18:"f042e71cdd4e1a7dfc5e",19:"909768b355b70e1daadf",20:"8f48037229efe39f46f1",21:"95b9e75e267a37620b22",22:"90dbae29bc22d6371a1f",23:"5ed1b5fd3abff19ce342",24:"ea40d500ddb87bcb0f37",25:"b1a072a021ca5876e8df",26:"2c0979f3bd7ee7896b97",27:"af4b1ef4511f15e9c04e",28:"6ce601a582a32cedc608",29:"ff0267ea3da22d09a51d",30:"ec25743672bf02942748",31:"4e7996b3a5865a4088f0",32:"4ef7b3772c8f16964a6f",33:"7822e8447a0721863202",34:"87af97cb497835e3ffbd",35:"26c25bce61825d5354d8",36:"6b7ba3c82f569f7a47e0",37:"f8bf84592943c5dfbf8a",38:"db0ccdb9d831a1fee238",39:"8861e4489f26fe322990",40:"c6cf553f8eb155ae6f1a",41:"119ab10f2d353ddcdbc8",42:"2aa51865cc92993d5d46",43:"ebfbcd4cf0b458d2d3a9",44:"66819154e4e25956329a",45:"e2525a424c74adbab361",46:"6b9089dbfdc51cf214aa",47:"645bc82e25015fb74ff6",48:"ba95593e14ada0183499",49:"a3b12f9c57387195f4a7",50:"4289d8f282974207066c",51:"c647b4045746d8636eaa",52:"9ca720810cdc90991dad",53:"c3a067a1ddd3e596ddfd",54:"80daffc3f2acd8aa8636",55:"851e91bfed5f21943357",56:"a2faa30e5f1c6aeb57be",57:"d5e4bf0c6cd022b7c903",58:"e39fbcda48ed2db4acf1",59:"6f17a0cc9e6a30c0d8e9",60:"a2c998165f7c49119fb5",61:"b20287cdc2c3f54f5707",62:"9c6873cd95e401f16493",63:"257f2cb50e19e5d7425e",66:"f6fd646044957e4ead90"}[e]+".js";var r=setTimeout(t,12e4);function t(){n.onerror=n.onload=null,clearTimeout(r);var a=c[e];0!==a&&(a&&a[1](new Error("Loading chunk "+e+" failed.")),c[e]=void 0)}return n.onerror=n.onload=t,b.appendChild(n),f},d.m=e,d.c=f,d.d=function(e,a,f){d.o(e,a)||Object.defineProperty(e,a,{configurable:!1,enumerable:!0,get:f})},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> <template>
<div class="employee-table"> <div class="employee-table">
<el-table :height="employeeList.length ? tableH : 'auto'" :data="employeeList" @selection-change="selectMember" @row-click="linkToDetail"> <el-table :data="employeeList" @selection-change="selectMember" @row-click="linkToDetail">
<template v-for="prop in headList"> <template v-for="prop in headList">
<el-table-column :key="prop" v-if="prop == 'selection'" type="selection" width="42"> </el-table-column> <el-table-column :key="prop" v-if="prop == 'selection'" type="selection" width="42"> </el-table-column>
<el-table-column :key="prop" v-if="prop == 'name'" label="姓名"> <el-table-column :key="prop" v-if="prop == 'name'" label="姓名">
...@@ -45,7 +45,7 @@ export default { ...@@ -45,7 +45,7 @@ export default {
}, },
data() { data() {
return { return {
tableH: window.screen.availHeight - 440 - 180 tableH: window.screen.availHeight - 180
}; };
}, },
methods: { methods: {
......
<template> <template>
<div> <div>
<el-table ref="clerkViewTable" class="diy-table" :height="tableData.length ? tableH : tableH" :data="tableData" @selection-change="selectMember"> <el-table ref="clerkViewTable" class="diy-table" :data="tableData" @selection-change="selectMember">
<el-table-column type="selection" width="42"></el-table-column> <el-table-column type="selection" width="42"></el-table-column>
<el-table-column label="门店" width="175" prop="employeeStoreName"></el-table-column> <el-table-column label="门店" width="175" prop="employeeStoreName"></el-table-column>
<el-table-column label="门店code" prop="storeCode" width="175"></el-table-column> <el-table-column label="门店code" prop="storeCode" width="175"></el-table-column>
......
<template> <template>
<div class="employee-table"> <div class="employee-table">
<el-table :height="tableData.length ? tableH : tableH" :data="tableData" @selection-change="selectMember" @row-click="linkToDetail"> <el-table :data="tableData" @selection-change="selectMember" @row-click="linkToDetail">
<el-table-column type="selection" width="42"> </el-table-column> <el-table-column type="selection" width="42"> </el-table-column>
<el-table-column label="姓名" prop="name"></el-table-column> <el-table-column label="姓名" prop="name"></el-table-column>
<el-table-column label="手机号" prop="phoneNumber"></el-table-column> <el-table-column label="手机号" prop="phoneNumber"></el-table-column>
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
</el-select> </el-select>
<span style="vertical-align: middle;" class="J_show-children el-button" size="small"> <el-checkbox class="m-r-10" v-model="showChildMember" @change="setChildMemberShow">显示子成员</el-checkbox><a class="a-href"></a> </span> <span style="vertical-align: middle;" class="J_show-children el-button" size="small"> <el-checkbox class="m-r-10" v-model="showChildMember" @change="setChildMemberShow">显示子成员</el-checkbox><a class="a-href"></a> </span>
</div> </div>
<el-table ref="clerkViewTable" class="diy-table" :height="tableData.length ? tableH : 'auto'" :data="tableData"> <el-table ref="clerkViewTable" class="diy-table" :data="tableData">
<el-table-column label="门店" width="300"> <el-table-column label="门店" width="300">
<template slot-scope="scope"> <template slot-scope="scope">
<div> <div>
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
<el-button type="danger" @click="delStores" :disabled="disabledDel">批量删除</el-button> <el-button type="danger" @click="delStores" :disabled="disabledDel">批量删除</el-button>
<span class="J_show-children el-button" size="small"> <el-checkbox class="m-r-10" v-model="showChildMember" @change="setChildMemberShow">显示子成员</el-checkbox><a class="a-href"></a> </span> <span class="J_show-children el-button" size="small"> <el-checkbox class="m-r-10" v-model="showChildMember" @change="setChildMemberShow">显示子成员</el-checkbox><a class="a-href"></a> </span>
</div> </div>
<el-table ref="table1" :height="tableData.length ? tableH : 'auto'" :data="tableData" @selection-change="selectMember"> <el-table ref="table1" :data="tableData" @selection-change="selectMember">
<el-table-column type="selection" width="42"></el-table-column> <el-table-column type="selection" width="42"></el-table-column>
<el-table-column label="门店" prop="storeName" width="140"></el-table-column> <el-table-column label="门店" prop="storeName" width="140"></el-table-column>
<el-table-column label="代码" prop="storeCode" width="140"></el-table-column> <el-table-column label="代码" prop="storeCode" width="140"></el-table-column>
......
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
</template> </template>
<li class="sld tip">共筛选出{{ total }}人</li> <li class="sld tip">共筛选出{{ total }}人</li>
</ul> </ul>
<el-table class="list-table" :height="employeeList.length ? tableH : 'auto'" :data="employeeList" :default-sort="{ prop: 'hireDate', order: 'descending' }" @sort-change="sortList"> <el-table class="list-table" :data="employeeList" :default-sort="{ prop: 'hireDate', order: 'descending' }" @sort-change="sortList">
<template v-for="prop in propList"> <template v-for="prop in propList">
<list-item :item="prop" :key="prop" @callHandle="callHandle"></list-item> <list-item :item="prop" :key="prop" @callHandle="callHandle"></list-item>
</template> </template>
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
<!-- 公共左侧菜单插件 --> <!-- 公共左侧菜单插件 -->
<vue-office-aside ref="asideMenu" :projectName="projectName" :collapseFlag="collapseFlag"> </vue-office-aside> <vue-office-aside ref="asideMenu" :projectName="projectName" :collapseFlag="collapseFlag"> </vue-office-aside>
<!-- 右侧 body --> <!-- 右侧 body -->
<div class="contact-wrap__right"> <div class="contact-wrap__right" :style="{ height: rightH }">
<!-- <topNav :navpath="navpath"></topNav> --> <!-- <topNav :navpath="navpath"></topNav> -->
<div class="contact-wrap__right__body"> <div class="contact-wrap__right__body">
<transition name="fade" mode="out-in"> <transition name="fade" mode="out-in">
...@@ -26,6 +26,7 @@ export default { ...@@ -26,6 +26,7 @@ export default {
}, },
data() { data() {
return { return {
rightH: window.screen.availHeight - 180 - 20 + 'px',
projectName: 'haoban-manage-web', // 当前项目名 projectName: 'haoban-manage-web', // 当前项目名
collapseFlag: false, // 折叠参数 collapseFlag: false, // 折叠参数
// 面包屑导航数据 // 面包屑导航数据
...@@ -106,11 +107,13 @@ export default { ...@@ -106,11 +107,13 @@ export default {
flex: 1; flex: 1;
overflow: auto; overflow: auto;
width: 100%; width: 100%;
overflow-y: auto;
&__body { &__body {
/*padding: 24px;*/ /*padding: 24px;*/
height: 100%; height: 100%;
.right-content { .right-content {
padding: 24px; padding: 24px;
} }
......
...@@ -293,10 +293,13 @@ export default { ...@@ -293,10 +293,13 @@ export default {
} }
that.$nextTick(function() { that.$nextTick(function() {
document.querySelector('.contact-wrap__body').style.overflow = 'hidden'; document.querySelector('.contact-wrap__body').style.overflow = 'hidden';
document.getElementsByClassName('contact-wrap__right')[0].removeAttribute('style');
}); });
}, },
beforeDestroy() { beforeDestroy() {
document.querySelector('.contact-wrap__body').style.overflow = 'auto'; document.querySelector('.contact-wrap__body').style.overflow = 'auto';
let divHeight = window.screen.availHeight - 300 + 'px';
document.getElementsByClassName('contact-wrap__right')[0].setAttribute('style', 'height:' + divHeight);
} }
}; };
</script> </script>
......
...@@ -274,6 +274,7 @@ export default { ...@@ -274,6 +274,7 @@ export default {
border-radius: 4px; border-radius: 4px;
padding: 10px; padding: 10px;
font-size: 13px; font-size: 13px;
text-align: left;
font-weight: 400; font-weight: 400;
color: rgba(96, 98, 102, 1); color: rgba(96, 98, 102, 1);
@extend .border-box; @extend .border-box;
......
<template> <template>
<div class="common-set-wrap"> <div class="common-set-wrap">
<nav-crumb :navpath="navpath"></nav-crumb> <nav-crumb :navpath="navpath"></nav-crumb>
<div class="right-content" :style="{ height: windowH, 'overflow-y': 'auto' }"> <div class="right-content" :style="{ minHeight: windowH, 'overflow-y': 'auto' }">
<div class="right-box" :style="{ height: boxHeight }"> <div class="right-box">
<div class="administrative-estrutura-container" :style="{ height: boxHeight }"> <div class="administrative-estrutura-container">
<template v-if="menuData.length > 0"> <template v-if="menuData.length > 0">
<search-menu :treeData="menuData" :searchResult="searchResult" @handleEmployeeSelection="handleEmployeeSelection" @getEmployeeFirst="getEmployeeFirst" @handleSearchKey="handleSearchKey" @handleTreeSelection="handleTreeSelection"> <search-menu :treeData="menuData" :searchResult="searchResult" @handleEmployeeSelection="handleEmployeeSelection" @getEmployeeFirst="getEmployeeFirst" @handleSearchKey="handleSearchKey" @handleTreeSelection="handleTreeSelection">
<template slot="buttonBox"> <template slot="buttonBox">
......
<template> <template>
<div class="common-set-wrap store-frame-wrap"> <div class="common-set-wrap store-frame-wrap">
<nav-crumb :navpath="navpath"></nav-crumb> <nav-crumb :navpath="navpath"></nav-crumb>
<div class="right-content" :style="{ height: windowH }"> <div class="right-content" :style="{ minHeight: minH }">
<div class="right-box"> <div class="right-box">
<div class="store-estrutura-container common-frame-container" :style="{ height: windowH }"> <div class="store-estrutura-container common-frame-container">
<search-menu ref="searchMenu" :storeFrame="true" :treeData="menuData" :searchResult="searchResult" @handleSearchKey="handleSearchKey" @handleTreeSelection="handleTreeSelection" @handleStoreSelection="handleStoreSelection" @handleEmployeeSelection="handleEmployeeSelection"> <search-menu ref="searchMenu" :storeFrame="true" :treeData="menuData" :searchResult="searchResult" @handleSearchKey="handleSearchKey" @handleTreeSelection="handleTreeSelection" @handleStoreSelection="handleStoreSelection" @handleEmployeeSelection="handleEmployeeSelection">
<template slot="buttonBox"> <template slot="buttonBox">
<div class="slot-button"> <div class="slot-button">
...@@ -92,6 +92,7 @@ export default { ...@@ -92,6 +92,7 @@ export default {
path: '' path: ''
} }
], ],
minH: window.screen.availHeight - 300 - 140 + 'px',
windowH: window.screen.availHeight - 440 + 'px', windowH: window.screen.availHeight - 440 + 'px',
tableH: window.screen.availHeight - 440 - 180 + 'px', tableH: window.screen.availHeight - 440 - 180 + 'px',
boxHeight: window.screen.availHeight + 'px', boxHeight: window.screen.availHeight + 'px',
......
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