Commit 26456592 by 无尘

fix: 修改上传 excel 提示

parent a812b2d3
<!DOCTYPE html><html><head><meta charset=utf-8><link rel="shortcut icon" href=./favicon.ico><title>好办管理平台</title><link href=./static/css/app.331635e1d8d4bf397026093390c55587.css rel=stylesheet></head><body style="min-width: 1400px;"><div id=app></div><script src=//web-1251519181.file.myqcloud.com/lib/vue/2.6.6/vue.min.js></script><script src=//web-1251519181.file.myqcloud.com/lib/vue-router/3.0.2/vue-router.min.js></script><script src=//web-1251519181.file.myqcloud.com/lib/vuex/3.1.0/vuex.min.js></script><script src=//web-1251519181.file.myqcloud.com/components/img-preview.2.0.00.js></script><script>// Raven.config('https://3715a345910d4c768e7a1ec14619c2d5@sentry.io/1413672').install();</script><script type=text/javascript src=./static/js/manifest.ee18678b4386519d8aa2.js></script><script type=text/javascript src=./static/js/vendor.ccdd3a2984b37616bc62.js></script><script type=text/javascript src=./static/js/app.0bb56d21b99208853e72.js></script></body></html>
\ No newline at end of file
<!DOCTYPE html><html><head><meta charset=utf-8><link rel="shortcut icon" href=./favicon.ico><title>好办管理平台</title><link href=./static/css/app.331635e1d8d4bf397026093390c55587.css rel=stylesheet></head><body style="min-width: 1400px;"><div id=app></div><script src=//web-1251519181.file.myqcloud.com/lib/vue/2.6.6/vue.min.js></script><script src=//web-1251519181.file.myqcloud.com/lib/vue-router/3.0.2/vue-router.min.js></script><script src=//web-1251519181.file.myqcloud.com/lib/vuex/3.1.0/vuex.min.js></script><script src=//web-1251519181.file.myqcloud.com/components/img-preview.2.0.00.js></script><script>// Raven.config('https://3715a345910d4c768e7a1ec14619c2d5@sentry.io/1413672').install();</script><script type=text/javascript src=./static/js/manifest.fe33fdbe983b94e78a5c.js></script><script type=text/javascript src=./static/js/vendor.ccdd3a2984b37616bc62.js></script><script type=text/javascript src=./static/js/app.d7fe4c0e4726cbc04997.js></script></body></html>
\ 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([18],{"738z":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=i("3Xzz"),s=i("elmV"),n=i("P9l9"),l=i("O3H5"),o={name:"employee-io",components:{navCrumb:a.a,uploadExcelComponent:s.a,exportSet:l.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:"/fileSet"},{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(n.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.name.lastIndexOf(".");if(e<0)return this.$message.error("文件格式不正确!"),!1;var i=t.name.substring(e+1,t.name.length),a=i.includes("xls")||i.includes("xlsx");return a||this.$message.error("文件格式必须为 xls 或 xlsx 格式!"),a},uploadSuccess:function(t,e){this.fileList=[],1==t.errorCode?this.$message({message:t.message,type:"success"}):this.$message.error(t.message)},submitUpload:function(t){this.$refs[t].submit()},getChange:function(t,e){var i=e.length-1<0?0:e.length-1,a=t.name.lastIndexOf("."),s=t.name.substring(a+1,t.name.length);if(!(s.includes("xls")||s.includes("xlsx")))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"}},r={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:"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 c=i("VU/8")(o,r,!1,function(t){i("zhf4")},null,null);e.default=c.exports},J8vX:function(t,e){},O3H5:function(t,e,i){"use strict";var a=i("mvHQ"),s=i.n(a),n=i("P9l9"),l=i("DAYN"),o={name:"export-set",components:{draggable:i.n(l).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(n.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()}},r={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}},[i("i",{staticClass:"iconfont icon-icon_yunxiazai p-r-6"}),t._v("导出")]),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 c=i("VU/8")(o,r,!1,function(t){i("J8vX")},null,null);e.a=c.exports},zhf4:function(t,e){}});
\ No newline at end of file
webpackJsonp([18],{"71JE":function(e,t){},JT5W:function(e,t){},Zx22:function(e,t,a){"use strict";var s={name:"custom-dialog",props:{value:{type:Boolean,default:!1},storeChangeData:{type:[Object,Array]}},data:function(){return{repProjectName:"gic-web",customDialog:this.value,leftData:[],rightData:[]}},methods:{handleCardClose:function(){this.customCancel()},customCancel:function(){this.customDialog=!1,this.$emit("input",this.customDialog)},formatDate:function(e,t){function a(e){return e>9?""+e:"0"+e}var s=new Date(e),i=s.getFullYear(),n=s.getMonth()+1,o=s.getDate();return i+t+a(n)+t+a(o)+t},handleData:function(){}},watch:{value:function(e,t){this.customDialog=e},storeChangeData:function(e,t){this.leftData=e.beforeContent,this.rightData=e.afterContent}},mounted:function(){this.leftData=this.storeChangeData.beforeContent,this.rightData=this.storeChangeData.afterContent}},i={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"custom-dialog-wrap"},[a("el-dialog",{attrs:{title:"门店图片变更",visible:e.customDialog,width:"600px","before-close":e.handleCardClose},on:{"update:visible":function(t){e.customDialog=t}}},[a("div",{staticClass:"dialog-content"},[a("el-row",[a("el-col",{attrs:{span:11}},[a("div",{staticClass:"grid-content bg-purple-dark"},[e._v("\n 变更前\n ")]),e._v(" "),a("div",{staticClass:"data-body"},[a("div",{staticClass:"data-body-content flex flex-column"},[e._l(e.leftData,function(e,t){return[a("img",{key:"img"+t,attrs:{src:e,alt:""}})]})],2)])]),e._v(" "),a("el-col",{attrs:{span:11}},[a("div",{staticClass:"grid-content bg-purple-dark"},[e._v("\n 变更后\n ")]),e._v(" "),a("div",{staticClass:"data-body"},[a("div",{staticClass:"data-body-content flex flex-column"},[e._l(e.rightData,function(e,t){return[a("img",{key:"img0"+t,attrs:{src:e,alt:""}})]})],2)])])],1)],1)])],1)},staticRenderFns:[]};var n=a("VU/8")(s,i,!1,function(e){a("71JE")},"data-v-709a6f08",null);t.a=n.exports},xCEU:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=a("3Xzz"),i=a("Zx22"),n=a("3E4D"),o=a("Ch4/"),r=a("PI0u"),l=a("P9l9"),c={name:"unreview",data:function(){return{navpath:[{name:"首页",path:"/index"},{name:"审核中心",path:"/unreview"},{name:"待审核",path:""}],filterValue:"",filterOptions:[{label:"全部事项",value:""},{label:"门店信息变更",value:"0"},{label:"新增成员",value:"1"},{label:"成员离职",value:"2"}],tableData:[],multipleSelection:[],currentPage:1,pageSize:20,total:0,selectId:"",ruleForm:{refuseReason:""},rules:{refuseReason:[{required:!0,message:"拒绝理由不能为空",trigger:"change"},{min:1,max:50,message:"长度在 1 到 50 个字",trigger:"change"}]},showStoreDialog:!1,storeChangeData:{beforeContent:[],afterContent:[]},approveVisible:!1,refuseVisible:!1}},filters:{formatTimeYMD:function(e){return"--"!=e?e.split(" ")[0]:"--"},formatTimeHMS:function(e){return"--"!=e?e.split(" ")[1]:"--"},formatNum:function(e){return(e+"").replace(/\d{1,3}(?=(\d{3})+$)/g,"$&,")}},computed:{},methods:{handleSelectionChange:function(e){this.multipleSelection=e},handleSizeChange:function(e){this.pageSize=e,this.getTableList()},handleCurrentChange:function(e){this.currentPage=e,this.getTableList()},handleClick:function(e,t,a){this.selectId=t.enterpriseAuditingId,a?this.refuseVisible=!0:this.approveVisible=!0},sendApprove:Object(r.a)(function(){this.postApprove(this.selectId)},500),approveAll:Object(r.a)(function(){var e=this.multipleSelection.length?this.multipleSelection.map(function(e){return e.enterpriseAuditingId}):"";if(!e)return this.$message({message:"请至少选择一条审核事项",type:"warning"}),!1;this.postAllApprove(e)},500),postApprove:function(e){var t=this,a={enterpriseAuditingId:e};Object(l.e)("/haoban-manage-web/audit/approve.json",a).then(function(e){var a=e.data;if(1==a.errorCode)return n.a.showmsg("操作成功","success"),t.approveVisible=!1,void t.getTableList();o.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},postAllApprove:function(e){var t=this,a={enterpriseAuditingIds:e};Object(l.e)("/haoban-manage-web/audit/batch-approve.json",a).then(function(e){var a=e.data;if(1==a.errorCode)return n.a.showmsg("操作成功","success"),void t.getTableList();o.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},cancelRefuse:function(e){this.refuseVisible=!1,this.$refs.ruleForm.resetFields()},sendRefuse:Object(r.a)(function(e){var t=this;t.$refs[e].validate(function(e){if(!e)return!1;t.postRefuse()})},500),postRefuse:function(){var e=this,t={enterpriseAuditingId:e.selectId,refuseReason:e.ruleForm.refuseReason};Object(l.a)("/haoban-manage-web/audit/refuse.json",t).then(function(t){var a=t.data;if(1==a.errorCode)return n.a.showmsg("操作成功","success"),e.refuseVisible=!1,e.$refs.ruleForm.resetFields(),void e.getTableList();o.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},showSingleInfo:function(e){},showStoreChange:function(e){this.storeChangeData={beforeContent:[],afterContent:[]},this.showStoreDialog=!0,this.storeChangeData={beforeContent:""!=e.beforeContent?JSON.parse(e.beforeContent):[],afterContent:""!=e.afterContent?JSON.parse(e.afterContent):[]}},getTableList:function(e){var t=this;e&&(t.currentPage=1);var a={auditingType:t.filterValue,auditingStatus:"0",search:"",pageNum:t.currentPage,pageSize:t.pageSize};Object(l.a)("/haoban-manage-web/audit/auditing-list.json",a).then(function(e){var a=e.data;if(1==a.errorCode)return a.result&&a.result.list&&a.result.list.forEach(function(e,t){e.createTime&&(e.createTime=Object(r.c)(e.createTime))}),t.tableData=a.result.list,void(t.total=a.result.total);o.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},mounted:function(){this.getTableList()},components:{navCrumb:s.a,storeChange:i.a}},u={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"unreview-wrap common-set-wrap"},[a("nav-crumb",{attrs:{navpath:e.navpath}}),e._v(" "),a("div",{staticClass:"right-content"},[a("div",{staticClass:"right-box",style:{"min-height":e.$store.state.bgHeight}},[a("div",{staticClass:"reviewed-body-head flex flex-space-between"},[a("el-select",{staticClass:"w-130",attrs:{placeholder:"全部事项"},on:{change:e.getTableList},model:{value:e.filterValue,callback:function(t){e.filterValue=t},expression:"filterValue"}},e._l(e.filterOptions,function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.approveAll}},[e._v("批量同意")])],1),e._v(" "),a("div",{staticClass:"reviewed-body-content"},[a("el-table",{ref:"multipleTable",staticStyle:{width:"100%"},attrs:{data:e.tableData,"tooltip-effect":"dark"},on:{"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"55"}}),e._v(" "),a("el-table-column",{attrs:{label:"审核事项"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(0==t.row.auditingType?"门店信息变更":1==t.row.auditingType?"新增成员":"成员离职")+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"提交人","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"flex"},[a("el-popover",{attrs:{placement:"top-start",width:"400",trigger:"hover"},on:{show:function(a){e.showSingleInfo(t.row.applyId)}}},[a("div",{staticClass:"apply-info-detail"},[a("div",{staticClass:"flex"},[a("div",{staticClass:"apply-info-img flex-align-center flex-pack-center bg-82C5FF "},[t.row.headPic?a("img",{attrs:{src:t.row.headPic,alt:"img"}}):a("i",{staticClass:"iconfont icon-yewuduanmorentouxian"})]),e._v(" "),a("div",{staticClass:"flex flex-column apply-info-right flex-space-between"},[a("div",{staticClass:"apply-info-name"},[e._v("\n "+e._s(t.row.applyName)+"\n "),a("i",{class:[2==t.row.sex?"icon-xingbienv color-FF585C":"icon-xingbienan color-508CEE","iconfont"]})]),e._v(" "),a("div",{staticClass:"apply-info-code"},[a("span",{staticClass:"w-80"},[e._v("员工代码:")]),a("span",{staticClass:"w-130"},[e._v(e._s(t.row.code))])]),e._v(" "),a("div",{staticClass:"apply-info-phone"},[a("span",{staticClass:"w-80"},[e._v("手机号:")]),a("span",{staticClass:"w-130"},[e._v(e._s("86"==t.row.nationcode?t.row.phoneNumber:"+"+t.row.nationcode+"-"+t.row.phoneNumber))])]),e._v(" "),a("div",{staticClass:"apply-info-job"},[a("span",{staticClass:"w-80"},[e._v("职位:")]),a("span",{staticClass:"w-130"},[e._v(e._s(t.row.positionName))])]),e._v(" "),a("div",{staticClass:"apply-info-store"},[a("span",{staticClass:"w-80"},[e._v("所属门店:")]),a("span",{staticClass:"w-130"},[e._v(e._s(t.row.storeName))])])])])]),e._v(" "),a("div",{attrs:{slot:"reference"},slot:"reference"},[a("div",{staticClass:"flex flex-align-center flex-pack-center bg-82C5FF table-head-pic"},[t.row.headPic?a("img",{attrs:{src:t.row.headPic,alt:"img"}}):a("i",{staticClass:"iconfont icon-yewuduanmorentouxian"})])])]),e._v(" "),a("div",{staticClass:"flex flex-column apply-info"},[a("span",[e._v(e._s(t.row.applyName))]),e._v(" "),a("span",{staticClass:"font-13"},[e._v(e._s(t.row.storeName))])])],1)]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"详情","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[0!=t.row.auditingType||0==t.row.auditingType&&1!=t.row.auditingUpdateType?a("span",[e._v(e._s(t.row.detail))]):e._e(),e._v(" "),1==t.row.auditingUpdateType?a("div",{staticClass:"line-hidden-2"},[a("span",[e._v(e._s(t.row.detail))]),e._v(" "),a("el-button",{attrs:{type:"text"},on:{click:function(a){e.showStoreChange(t.row)}}},[e._v("查看详情")])],1):e._e()]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"提交时间","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"line-h-18"},[e._v(e._s(e._f("formatTimeYMD")(t.row.createTime)))]),e._v(" "),a("div",{staticClass:"line-h-18"},[e._v(e._s(e._f("formatTimeHMS")(t.row.createTime)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){e.handleClick(t.$index,t.row)}}},[e._v("同意")]),e._v(" "),a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){e.handleClick(t.$index,t.row,"refuse")}}},[e._v("拒绝")])]}}])})],1),e._v(" "),0!=e.tableData.length?a("div",{staticClass:"block common-wrap__page text-right"},[a("el-pagination",{attrs:{background:"","current-page":e.currentPage,"page-sizes":[20,40,60,80],"page-size":e.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1):e._e()],1)])]),e._v(" "),a("vue-gic-footer"),e._v(" "),a("storeChange",{attrs:{storeChangeData:e.storeChangeData},model:{value:e.showStoreDialog,callback:function(t){e.showStoreDialog=t},expression:"showStoreDialog"}}),e._v(" "),a("el-dialog",{staticClass:"approve-dialog",attrs:{title:"",visible:e.approveVisible,width:"422px"},on:{"update:visible":function(t){e.approveVisible=t}}},[a("div",{staticClass:"approve-body text-center"},[a("div",[a("i",{staticClass:"el-icon-success"}),a("span",{staticClass:"approve-icon-tip"},[e._v("同意")])]),e._v(" "),a("div",{staticClass:"approve-tip"},[e._v("是否确认同意")])]),e._v(" "),a("div",{staticClass:"approve-footer dialog-footer",staticStyle:{"text-align":"center"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.approveVisible=!1}}},[e._v("取 消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.sendApprove}},[e._v("确 定")])],1)]),e._v(" "),a("el-dialog",{staticClass:"refuse-dialog",attrs:{title:"提示",visible:e.refuseVisible,"before-close":e.cancelRefuse,width:"422px"},on:{"update:visible":function(t){e.refuseVisible=t}}},[a("div",[a("div",{staticClass:"refuse-tip"},[e._v("请输入拒绝理由")]),e._v(" "),a("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,rules:e.rules}},[a("el-form-item",{attrs:{label:"",prop:"refuseReason"}},[a("el-input",{staticClass:"font-14",attrs:{type:"textarea",placeholder:"最多 50 个字",rows:3},model:{value:e.ruleForm.refuseReason,callback:function(t){e.$set(e.ruleForm,"refuseReason",t)},expression:"ruleForm.refuseReason"}})],1)],1)],1),e._v(" "),a("div",{staticClass:"approve-footer dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.cancelRefuse("ruleForm")}}},[e._v("取 消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.sendRefuse("ruleForm")}}},[e._v("确 定")])],1)])],1)},staticRenderFns:[]};var f=a("VU/8")(c,u,!1,function(e){a("JT5W")},"data-v-46a66c5e",null);t.default=f.exports}});
\ No newline at end of file
webpackJsonp([19],{"71JE":function(e,t){},JT5W:function(e,t){},Zx22:function(e,t,a){"use strict";var s={name:"custom-dialog",props:{value:{type:Boolean,default:!1},storeChangeData:{type:[Object,Array]}},data:function(){return{repProjectName:"gic-web",customDialog:this.value,leftData:[],rightData:[]}},methods:{handleCardClose:function(){this.customCancel()},customCancel:function(){this.customDialog=!1,this.$emit("input",this.customDialog)},formatDate:function(e,t){function a(e){return e>9?""+e:"0"+e}var s=new Date(e),i=s.getFullYear(),n=s.getMonth()+1,o=s.getDate();return i+t+a(n)+t+a(o)+t},handleData:function(){}},watch:{value:function(e,t){this.customDialog=e},storeChangeData:function(e,t){this.leftData=e.beforeContent,this.rightData=e.afterContent}},mounted:function(){this.leftData=this.storeChangeData.beforeContent,this.rightData=this.storeChangeData.afterContent}},i={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"custom-dialog-wrap"},[a("el-dialog",{attrs:{title:"门店图片变更",visible:e.customDialog,width:"600px","before-close":e.handleCardClose},on:{"update:visible":function(t){e.customDialog=t}}},[a("div",{staticClass:"dialog-content"},[a("el-row",[a("el-col",{attrs:{span:11}},[a("div",{staticClass:"grid-content bg-purple-dark"},[e._v("\n 变更前\n ")]),e._v(" "),a("div",{staticClass:"data-body"},[a("div",{staticClass:"data-body-content flex flex-column"},[e._l(e.leftData,function(e,t){return[a("img",{key:"img"+t,attrs:{src:e,alt:""}})]})],2)])]),e._v(" "),a("el-col",{attrs:{span:11}},[a("div",{staticClass:"grid-content bg-purple-dark"},[e._v("\n 变更后\n ")]),e._v(" "),a("div",{staticClass:"data-body"},[a("div",{staticClass:"data-body-content flex flex-column"},[e._l(e.rightData,function(e,t){return[a("img",{key:"img0"+t,attrs:{src:e,alt:""}})]})],2)])])],1)],1)])],1)},staticRenderFns:[]};var n=a("VU/8")(s,i,!1,function(e){a("71JE")},"data-v-709a6f08",null);t.a=n.exports},xCEU:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=a("3Xzz"),i=a("Zx22"),n=a("3E4D"),o=a("Ch4/"),r=a("PI0u"),l=a("P9l9"),c={name:"unreview",data:function(){return{navpath:[{name:"首页",path:"/index"},{name:"审核中心",path:"/unreview"},{name:"待审核",path:""}],filterValue:"",filterOptions:[{label:"全部事项",value:""},{label:"门店信息变更",value:"0"},{label:"新增成员",value:"1"},{label:"成员离职",value:"2"}],tableData:[],multipleSelection:[],currentPage:1,pageSize:20,total:0,selectId:"",ruleForm:{refuseReason:""},rules:{refuseReason:[{required:!0,message:"拒绝理由不能为空",trigger:"change"},{min:1,max:50,message:"长度在 1 到 50 个字",trigger:"change"}]},showStoreDialog:!1,storeChangeData:{beforeContent:[],afterContent:[]},approveVisible:!1,refuseVisible:!1}},filters:{formatTimeYMD:function(e){return"--"!=e?e.split(" ")[0]:"--"},formatTimeHMS:function(e){return"--"!=e?e.split(" ")[1]:"--"},formatNum:function(e){return(e+"").replace(/\d{1,3}(?=(\d{3})+$)/g,"$&,")}},computed:{},methods:{handleSelectionChange:function(e){this.multipleSelection=e},handleSizeChange:function(e){this.pageSize=e,this.getTableList()},handleCurrentChange:function(e){this.currentPage=e,this.getTableList()},handleClick:function(e,t,a){this.selectId=t.enterpriseAuditingId,a?this.refuseVisible=!0:this.approveVisible=!0},sendApprove:Object(r.a)(function(){this.postApprove(this.selectId)},500),approveAll:Object(r.a)(function(){var e=this.multipleSelection.length?this.multipleSelection.map(function(e){return e.enterpriseAuditingId}):"";if(!e)return this.$message({message:"请至少选择一条审核事项",type:"warning"}),!1;this.postAllApprove(e)},500),postApprove:function(e){var t=this,a={enterpriseAuditingId:e};Object(l.e)("/haoban-manage-web/audit/approve.json",a).then(function(e){var a=e.data;if(1==a.errorCode)return n.a.showmsg("操作成功","success"),t.approveVisible=!1,void t.getTableList();o.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},postAllApprove:function(e){var t=this,a={enterpriseAuditingIds:e};Object(l.e)("/haoban-manage-web/audit/batch-approve.json",a).then(function(e){var a=e.data;if(1==a.errorCode)return n.a.showmsg("操作成功","success"),void t.getTableList();o.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})},cancelRefuse:function(e){this.refuseVisible=!1,this.$refs.ruleForm.resetFields()},sendRefuse:Object(r.a)(function(e){var t=this;t.$refs[e].validate(function(e){if(!e)return!1;t.postRefuse()})},500),postRefuse:function(){var e=this,t={enterpriseAuditingId:e.selectId,refuseReason:e.ruleForm.refuseReason};Object(l.a)("/haoban-manage-web/audit/refuse.json",t).then(function(t){var a=t.data;if(1==a.errorCode)return n.a.showmsg("操作成功","success"),e.refuseVisible=!1,e.$refs.ruleForm.resetFields(),void e.getTableList();o.a.errorMsg(a)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},showSingleInfo:function(e){},showStoreChange:function(e){this.storeChangeData={beforeContent:[],afterContent:[]},this.showStoreDialog=!0,this.storeChangeData={beforeContent:""!=e.beforeContent?JSON.parse(e.beforeContent):[],afterContent:""!=e.afterContent?JSON.parse(e.afterContent):[]}},getTableList:function(e){var t=this;e&&(t.currentPage=1);var a={auditingType:t.filterValue,auditingStatus:"0",search:"",pageNum:t.currentPage,pageSize:t.pageSize};Object(l.a)("/haoban-manage-web/audit/auditing-list.json",a).then(function(e){var a=e.data;if(1==a.errorCode)return a.result&&a.result.list&&a.result.list.forEach(function(e,t){e.createTime&&(e.createTime=Object(r.c)(e.createTime))}),t.tableData=a.result.list,void(t.total=a.result.total);o.a.errorMsg(a)}).catch(function(e){t.$message.error({duration:1e3,message:e.message})})}},mounted:function(){this.getTableList()},components:{navCrumb:s.a,storeChange:i.a}},u={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"unreview-wrap common-set-wrap"},[a("nav-crumb",{attrs:{navpath:e.navpath}}),e._v(" "),a("div",{staticClass:"right-content"},[a("div",{staticClass:"right-box",style:{"min-height":e.$store.state.bgHeight}},[a("div",{staticClass:"reviewed-body-head flex flex-space-between"},[a("el-select",{staticClass:"w-130",attrs:{placeholder:"全部事项"},on:{change:e.getTableList},model:{value:e.filterValue,callback:function(t){e.filterValue=t},expression:"filterValue"}},e._l(e.filterOptions,function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.approveAll}},[e._v("批量同意")])],1),e._v(" "),a("div",{staticClass:"reviewed-body-content"},[a("el-table",{ref:"multipleTable",staticStyle:{width:"100%"},attrs:{data:e.tableData,"tooltip-effect":"dark"},on:{"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"55"}}),e._v(" "),a("el-table-column",{attrs:{label:"审核事项"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\n "+e._s(0==t.row.auditingType?"门店信息变更":1==t.row.auditingType?"新增成员":"成员离职")+"\n ")]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"提交人","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"flex"},[a("el-popover",{attrs:{placement:"top-start",width:"400",trigger:"hover"},on:{show:function(a){e.showSingleInfo(t.row.applyId)}}},[a("div",{staticClass:"apply-info-detail"},[a("div",{staticClass:"flex"},[a("div",{staticClass:"apply-info-img flex-align-center flex-pack-center bg-82C5FF "},[t.row.headPic?a("img",{attrs:{src:t.row.headPic,alt:"img"}}):a("i",{staticClass:"iconfont icon-yewuduanmorentouxian"})]),e._v(" "),a("div",{staticClass:"flex flex-column apply-info-right flex-space-between"},[a("div",{staticClass:"apply-info-name"},[e._v("\n "+e._s(t.row.applyName)+"\n "),a("i",{class:[2==t.row.sex?"icon-xingbienv color-FF585C":"icon-xingbienan color-508CEE","iconfont"]})]),e._v(" "),a("div",{staticClass:"apply-info-code"},[a("span",{staticClass:"w-80"},[e._v("员工代码:")]),a("span",{staticClass:"w-130"},[e._v(e._s(t.row.code))])]),e._v(" "),a("div",{staticClass:"apply-info-phone"},[a("span",{staticClass:"w-80"},[e._v("手机号:")]),a("span",{staticClass:"w-130"},[e._v(e._s("86"==t.row.nationcode?t.row.phoneNumber:"+"+t.row.nationcode+"-"+t.row.phoneNumber))])]),e._v(" "),a("div",{staticClass:"apply-info-job"},[a("span",{staticClass:"w-80"},[e._v("职位:")]),a("span",{staticClass:"w-130"},[e._v(e._s(t.row.positionName))])]),e._v(" "),a("div",{staticClass:"apply-info-store"},[a("span",{staticClass:"w-80"},[e._v("所属门店:")]),a("span",{staticClass:"w-130"},[e._v(e._s(t.row.storeName))])])])])]),e._v(" "),a("div",{attrs:{slot:"reference"},slot:"reference"},[a("div",{staticClass:"flex flex-align-center flex-pack-center bg-82C5FF table-head-pic"},[t.row.headPic?a("img",{attrs:{src:t.row.headPic,alt:"img"}}):a("i",{staticClass:"iconfont icon-yewuduanmorentouxian"})])])]),e._v(" "),a("div",{staticClass:"flex flex-column apply-info"},[a("span",[e._v(e._s(t.row.applyName))]),e._v(" "),a("span",{staticClass:"font-13"},[e._v(e._s(t.row.storeName))])])],1)]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"详情","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[0!=t.row.auditingType||0==t.row.auditingType&&1!=t.row.auditingUpdateType?a("span",[e._v(e._s(t.row.detail))]):e._e(),e._v(" "),1==t.row.auditingUpdateType?a("div",{staticClass:"line-hidden-2"},[a("span",[e._v(e._s(t.row.detail))]),e._v(" "),a("el-button",{attrs:{type:"text"},on:{click:function(a){e.showStoreChange(t.row)}}},[e._v("查看详情")])],1):e._e()]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"提交时间","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"line-h-18"},[e._v(e._s(e._f("formatTimeYMD")(t.row.createTime)))]),e._v(" "),a("div",{staticClass:"line-h-18"},[e._v(e._s(e._f("formatTimeHMS")(t.row.createTime)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){e.handleClick(t.$index,t.row)}}},[e._v("同意")]),e._v(" "),a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){e.handleClick(t.$index,t.row,"refuse")}}},[e._v("拒绝")])]}}])})],1),e._v(" "),0!=e.tableData.length?a("div",{staticClass:"block common-wrap__page text-right"},[a("el-pagination",{attrs:{background:"","current-page":e.currentPage,"page-sizes":[20,40,60,80],"page-size":e.pageSize,layout:"total, sizes, prev, pager, next, jumper",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1):e._e()],1)])]),e._v(" "),a("vue-gic-footer"),e._v(" "),a("storeChange",{attrs:{storeChangeData:e.storeChangeData},model:{value:e.showStoreDialog,callback:function(t){e.showStoreDialog=t},expression:"showStoreDialog"}}),e._v(" "),a("el-dialog",{staticClass:"approve-dialog",attrs:{title:"",visible:e.approveVisible,width:"422px"},on:{"update:visible":function(t){e.approveVisible=t}}},[a("div",{staticClass:"approve-body text-center"},[a("div",[a("i",{staticClass:"el-icon-success"}),a("span",{staticClass:"approve-icon-tip"},[e._v("同意")])]),e._v(" "),a("div",{staticClass:"approve-tip"},[e._v("是否确认同意")])]),e._v(" "),a("div",{staticClass:"approve-footer dialog-footer",staticStyle:{"text-align":"center"},attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.approveVisible=!1}}},[e._v("取 消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.sendApprove}},[e._v("确 定")])],1)]),e._v(" "),a("el-dialog",{staticClass:"refuse-dialog",attrs:{title:"提示",visible:e.refuseVisible,"before-close":e.cancelRefuse,width:"422px"},on:{"update:visible":function(t){e.refuseVisible=t}}},[a("div",[a("div",{staticClass:"refuse-tip"},[e._v("请输入拒绝理由")]),e._v(" "),a("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,rules:e.rules}},[a("el-form-item",{attrs:{label:"",prop:"refuseReason"}},[a("el-input",{staticClass:"font-14",attrs:{type:"textarea",placeholder:"最多 50 个字",rows:3},model:{value:e.ruleForm.refuseReason,callback:function(t){e.$set(e.ruleForm,"refuseReason",t)},expression:"ruleForm.refuseReason"}})],1)],1)],1),e._v(" "),a("div",{staticClass:"approve-footer dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.cancelRefuse("ruleForm")}}},[e._v("取 消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.sendRefuse("ruleForm")}}},[e._v("确 定")])],1)])],1)},staticRenderFns:[]};var f=a("VU/8")(c,u,!1,function(e){a("JT5W")},"data-v-46a66c5e",null);t.default=f.exports}});
\ No newline at end of file
webpackJsonp([19],{"27o1":function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r("3Xzz"),o={name:"add-clerk-page",components:{clerkInfo:r("oncj").a,navCrumb:n.a},data:function(){return{navpath:[{name:"首页",path:"/index"},{name:"企业通讯录",path:"/administrativeFrame"},{name:"门店架构",path:"/storeFrame"},{name:"新增店员",path:""}],isAddnew:!1,firstLevelId:"",storeType:"",gicFlag:!(!this.$route.query.gicFlag||"false"==this.$route.query.gicFlag)}},beforeMount:function(){this.firstLevelId=this.$route.query.firstLevelId,this.storeType=this.$route.query.type,this.$route.query.clerkId?(this.isAddnew=!1,this.navpath[3].name="编辑店员"):this.isAddnew=!0}},a={render:function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"common-set-wrap add-clerk-wrap"},[t("nav-crumb",{attrs:{navpath:this.navpath}}),this._v(" "),t("div",{staticClass:"right-content"},[t("div",{staticClass:"right-box"},[t("div",{staticClass:"add-clerk-page"},[t("clerk-info",{attrs:{storeType:this.storeType,firstLevelId:this.firstLevelId,isAddnew:this.isAddnew,gicFlag:this.gicFlag}})],1)])]),this._v(" "),t("vue-gic-footer")],1)},staticRenderFns:[]};var s=r("VU/8")(o,a,!1,function(e){r("Tb0k")},null,null);t.default=s.exports},GAtE:function(e,t){},Tb0k:function(e,t){},oncj:function(e,t,r){"use strict";var n=r("Ie7z"),o=r("P9l9"),a=r("XDyb"),s=r("T+u5"),i=r.n(s),l={name:"clerk-info-form",props:{isAddnew:{type:Boolean,default:!1},perId:{type:[String,Number],default:""},firstLevelId:{type:[String,Number],default:""},storeType:{type:[String,Number],default:""},gicFlag:{type:Boolean,default:!1}},components:{vueSelectStore:n.a,countryMobile:a.a},data:function(){var e=this;return{rules:{name:[{required:!0,message:"请输入店员姓名",trigger:"blur"},{min:2,max:10,message:"长度在 2 到 10 个字符",trigger:"blur"}],phoneNumber:[{required:!0,validator:function(t,r,n){if(!r)return n(new Error("请输入手机号"));var o=new i.a("+"+e.clerkInfo.nationcode+r);o.isValid()&&o.isMobile()?n():n(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,positionName:"职员",nationcode:"86"},treeSet:{isSelectPerson:!1,dialogVisible:!1,isSingle:!0,groupId:"",storeType:"",openNextBool:!0},defaultList:[]}},methods:{toInputCode:function(e){var t=this.clerkInfo.code;""!==t&&(this.clerkInfo.code=t.replace(/[^A-Za-z0-9]+/g,""))},saveFn:function(e){var t=!0;this.$refs.clerk_info.validate(function(e){e||(t=!1)}),t&&this.addEmployee(this.clerkInfo,e)},callSelector:function(){this.treeSet.dialogVisible=!0},handleSelectedList:function(e){console.log(e),this.clerkInfo.storeName=e&&e.length?e[0].label:"",this.clerkInfo.storeId=e&&e.length?e[0].id:"",console.log(this.clerkInfo),this.$forceUpdate()},addEmployee:function(e,t){var r=this,n={name:e.name,isClerk:1,phoneNumber:e.phoneNumber,positionName:e.positionName,storeId:e.storeId,managerMode:1*e.managerMode,code:e.code,employeeClerkId:e.employeeClerkId||"",nationcode:e.nationcode},a=r.isAddnew?"/haoban-manage-web/emp/add":"/haoban-manage-web/emp/update";Object(o.a)(a,n).then(function(e){1==e.data.errorCode?(r.$message.success({message:"操作成功"}),1==t?(r.clerkInfo={name:"",isClerk:1,phoneNumber:"",positionName:"职员",storeId:"",managerMode:!1,code:"",nationcode:"86"},r.defaultList=[],r.$refs.clerk_info.resetFields()):r.$router.push("/storeFrame")):r.$message.error({message:e.data.message})}).catch(function(e){r.$message.error({message:e.message})})},cancel:function(){var e=this;this.$confirm(" 是否确认取消,取消后当前页面信息将丢失 ?","提示",{type:"warning"}).then(function(){e.$router.go(-1)}).catch(function(e){})},getClerkInfo:function(){var e=this,t={id:e.$route.query.clerkId?e.$route.query.clerkId:e.perId};Object(o.a)("/haoban-manage-web/emp/findOne",t).then(function(t){1==t.data.errorCode?(e.clerkInfo=t.data.result,e.defaultList=[{id:t.data.result.storeId,label:t.data.result.storeName}]):e.$message.error({message:t.data.message})}).catch(function(t){e.$message.error({message:t})})}},beforeMount:function(){this.treeSet.storeType=this.storeType,this.treeSet.groupId=this.firstLevelId,this.isAddnew||this.getClerkInfo()},watch:{perId:function(e,t){this.getClerkInfo(e)}}},c={render:function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"form-container bdr-box"},[r("el-form",{ref:"clerk_info",staticClass:"add-clerk-form",attrs:{model:e.clerkInfo,rules:e.rules,"label-width":"80px"}},[r("el-form-item",{attrs:{label:"姓名",prop:"name"}},[r("el-input",{staticClass:"clerk-info-input",model:{value:e.clerkInfo.name,callback:function(t){e.$set(e.clerkInfo,"name",t)},expression:"clerkInfo.name"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"手机号",prop:"phoneNumber"}},[r("countryMobile",{attrs:{inputWidth:380,nationCode:e.clerkInfo.nationcode,holder:"请输入手机号",disflag:!e.isAddnew},on:{"update:nationCode":function(t){e.$set(e.clerkInfo,"nationcode",t)}},model:{value:e.clerkInfo.phoneNumber,callback:function(t){e.$set(e.clerkInfo,"phoneNumber",t)},expression:"clerkInfo.phoneNumber"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"门店",prop:"storeName"}},[r("el-input",{staticClass:"clerk-info-input",attrs:{disabled:!e.isAddnew},on:{focus:e.callSelector},model:{value:e.clerkInfo.storeName,callback:function(t){e.$set(e.clerkInfo,"storeName",t)},expression:"clerkInfo.storeName"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"code",prop:"code"}},[r("el-input",{staticClass:"clerk-info-input",attrs:{disabled:e.gicFlag&&!e.isAddnew},on:{blur:function(t){return e.toInputCode(t)}},model:{value:e.clerkInfo.code,callback:function(t){e.$set(e.clerkInfo,"code",t)},expression:"clerkInfo.code"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"职位",prop:"positionName"}},[r("el-input",{staticClass:"clerk-info-input",model:{value:e.clerkInfo.positionName,callback:function(t){e.$set(e.clerkInfo,"positionName",t)},expression:"clerkInfo.positionName"}})],1)],1),e._v(" "),r("div",{staticClass:"btn-box"},[r("el-button",{attrs:{type:"primary"},on:{click:e.saveFn}},[e._v("保 存")]),e._v(" "),!e.gicFlag&&e.isAddnew?r("el-button",{attrs:{type:"primary"},on:{click:function(t){e.saveFn(1)}}},[e._v("保存并继续添加")]):e._e(),e._v(" "),e.gicFlag?e._e():r("el-button",{on:{click:e.cancel}},[e._v("取 消")])],1),e._v(" "),r("vue-select-store",{ref:"storeSelector",attrs:{selectType:"store",defaultList:e.defaultList,treeSet:e.treeSet},on:{handleSelectedList:e.handleSelectedList}})],1)},staticRenderFns:[]};var d=r("VU/8")(l,c,!1,function(e){r("GAtE")},null,null);t.a=d.exports}});
\ No newline at end of file
webpackJsonp([20],{"27o1":function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r("3Xzz"),o={name:"add-clerk-page",components:{clerkInfo:r("oncj").a,navCrumb:n.a},data:function(){return{navpath:[{name:"首页",path:"/index"},{name:"企业通讯录",path:"/administrativeFrame"},{name:"门店架构",path:"/storeFrame"},{name:"新增店员",path:""}],isAddnew:!1,firstLevelId:"",storeType:"",gicFlag:!(!this.$route.query.gicFlag||"false"==this.$route.query.gicFlag)}},beforeMount:function(){this.firstLevelId=this.$route.query.firstLevelId,this.storeType=this.$route.query.type,this.$route.query.clerkId?(this.isAddnew=!1,this.navpath[3].name="编辑店员"):this.isAddnew=!0}},a={render:function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"common-set-wrap add-clerk-wrap"},[t("nav-crumb",{attrs:{navpath:this.navpath}}),this._v(" "),t("div",{staticClass:"right-content"},[t("div",{staticClass:"right-box"},[t("div",{staticClass:"add-clerk-page"},[t("clerk-info",{attrs:{storeType:this.storeType,firstLevelId:this.firstLevelId,isAddnew:this.isAddnew,gicFlag:this.gicFlag}})],1)])]),this._v(" "),t("vue-gic-footer")],1)},staticRenderFns:[]};var s=r("VU/8")(o,a,!1,function(e){r("Tb0k")},null,null);t.default=s.exports},GAtE:function(e,t){},Tb0k:function(e,t){},oncj:function(e,t,r){"use strict";var n=r("Ie7z"),o=r("P9l9"),a=r("XDyb"),s=r("T+u5"),i=r.n(s),l={name:"clerk-info-form",props:{isAddnew:{type:Boolean,default:!1},perId:{type:[String,Number],default:""},firstLevelId:{type:[String,Number],default:""},storeType:{type:[String,Number],default:""},gicFlag:{type:Boolean,default:!1}},components:{vueSelectStore:n.a,countryMobile:a.a},data:function(){var e=this;return{rules:{name:[{required:!0,message:"请输入店员姓名",trigger:"blur"},{min:2,max:10,message:"长度在 2 到 10 个字符",trigger:"blur"}],phoneNumber:[{required:!0,validator:function(t,r,n){if(!r)return n(new Error("请输入手机号"));var o=new i.a("+"+e.clerkInfo.nationcode+r);o.isValid()&&o.isMobile()?n():n(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,positionName:"职员",nationcode:"86"},treeSet:{isSelectPerson:!1,dialogVisible:!1,isSingle:!0,groupId:"",storeType:"",openNextBool:!0},defaultList:[]}},methods:{toInputCode:function(e){var t=this.clerkInfo.code;""!==t&&(this.clerkInfo.code=t.replace(/[^A-Za-z0-9]+/g,""))},saveFn:function(e){var t=!0;this.$refs.clerk_info.validate(function(e){e||(t=!1)}),t&&this.addEmployee(this.clerkInfo,e)},callSelector:function(){this.treeSet.dialogVisible=!0},handleSelectedList:function(e){console.log(e),this.clerkInfo.storeName=e&&e.length?e[0].label:"",this.clerkInfo.storeId=e&&e.length?e[0].id:"",console.log(this.clerkInfo),this.$forceUpdate()},addEmployee:function(e,t){var r=this,n={name:e.name,isClerk:1,phoneNumber:e.phoneNumber,positionName:e.positionName,storeId:e.storeId,managerMode:1*e.managerMode,code:e.code,employeeClerkId:e.employeeClerkId||"",nationcode:e.nationcode},a=r.isAddnew?"/haoban-manage-web/emp/add":"/haoban-manage-web/emp/update";Object(o.a)(a,n).then(function(e){1==e.data.errorCode?(r.$message.success({message:"操作成功"}),1==t?(r.clerkInfo={name:"",isClerk:1,phoneNumber:"",positionName:"职员",storeId:"",managerMode:!1,code:"",nationcode:"86"},r.defaultList=[],r.$refs.clerk_info.resetFields()):r.$router.push("/storeFrame")):r.$message.error({message:e.data.message})}).catch(function(e){r.$message.error({message:e.message})})},cancel:function(){var e=this;this.$confirm(" 是否确认取消,取消后当前页面信息将丢失 ?","提示",{type:"warning"}).then(function(){e.$router.go(-1)}).catch(function(e){})},getClerkInfo:function(){var e=this,t={id:e.$route.query.clerkId?e.$route.query.clerkId:e.perId};Object(o.a)("/haoban-manage-web/emp/findOne",t).then(function(t){1==t.data.errorCode?(e.clerkInfo=t.data.result,e.defaultList=[{id:t.data.result.storeId,label:t.data.result.storeName}]):e.$message.error({message:t.data.message})}).catch(function(t){e.$message.error({message:t})})}},beforeMount:function(){this.treeSet.storeType=this.storeType,this.treeSet.groupId=this.firstLevelId,this.isAddnew||this.getClerkInfo()},watch:{perId:function(e,t){this.getClerkInfo(e)}}},c={render:function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"form-container bdr-box"},[r("el-form",{ref:"clerk_info",staticClass:"add-clerk-form",attrs:{model:e.clerkInfo,rules:e.rules,"label-width":"80px"}},[r("el-form-item",{attrs:{label:"姓名",prop:"name"}},[r("el-input",{staticClass:"clerk-info-input",model:{value:e.clerkInfo.name,callback:function(t){e.$set(e.clerkInfo,"name",t)},expression:"clerkInfo.name"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"手机号",prop:"phoneNumber"}},[r("countryMobile",{attrs:{inputWidth:380,nationCode:e.clerkInfo.nationcode,holder:"请输入手机号",disflag:!e.isAddnew},on:{"update:nationCode":function(t){e.$set(e.clerkInfo,"nationcode",t)}},model:{value:e.clerkInfo.phoneNumber,callback:function(t){e.$set(e.clerkInfo,"phoneNumber",t)},expression:"clerkInfo.phoneNumber"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"门店",prop:"storeName"}},[r("el-input",{staticClass:"clerk-info-input",attrs:{disabled:!e.isAddnew},on:{focus:e.callSelector},model:{value:e.clerkInfo.storeName,callback:function(t){e.$set(e.clerkInfo,"storeName",t)},expression:"clerkInfo.storeName"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"code",prop:"code"}},[r("el-input",{staticClass:"clerk-info-input",attrs:{disabled:e.gicFlag&&!e.isAddnew},on:{blur:function(t){return e.toInputCode(t)}},model:{value:e.clerkInfo.code,callback:function(t){e.$set(e.clerkInfo,"code",t)},expression:"clerkInfo.code"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"职位",prop:"positionName"}},[r("el-input",{staticClass:"clerk-info-input",model:{value:e.clerkInfo.positionName,callback:function(t){e.$set(e.clerkInfo,"positionName",t)},expression:"clerkInfo.positionName"}})],1)],1),e._v(" "),r("div",{staticClass:"btn-box"},[r("el-button",{attrs:{type:"primary"},on:{click:e.saveFn}},[e._v("保 存")]),e._v(" "),!e.gicFlag&&e.isAddnew?r("el-button",{attrs:{type:"primary"},on:{click:function(t){e.saveFn(1)}}},[e._v("保存并继续添加")]):e._e(),e._v(" "),e.gicFlag?e._e():r("el-button",{on:{click:e.cancel}},[e._v("取 消")])],1),e._v(" "),r("vue-select-store",{ref:"storeSelector",attrs:{selectType:"store",defaultList:e.defaultList,treeSet:e.treeSet},on:{handleSelectedList:e.handleSelectedList}})],1)},staticRenderFns:[]};var d=r("VU/8")(l,c,!1,function(e){r("GAtE")},null,null);t.a=d.exports}});
\ No newline at end of file
webpackJsonp([20],{"738z":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=i("3Xzz"),s=i("elmV"),n=i("P9l9"),l=i("O3H5"),o={name:"employee-io",components:{navCrumb:a.a,uploadExcelComponent:s.a,exportSet:l.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:"/fileSet"},{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(n.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.name.lastIndexOf(".");if(e<0)return this.$message.error("文件格式不正确!"),!1;console.log(t,e);var i=t.name.substring(e+1,t.name.length),a=i.includes("xls")||i.includes("xlsx");return console.log(i,a),a||this.$message.error("文件格式必须为 xls 或 xlsx 格式!"),a},uploadSuccess:function(t,e){this.fileList=[],1==t.errorCode?this.$message({message:t.message,type:"success"}):this.$message.error(t.message)},submitUpload:function(t){this.$refs[t].submit()},getChange:function(t,e){var i=e.length-1<0?0:e.length-1,a=t.name.lastIndexOf("."),s=t.name.substring(a+1,t.name.length);if(!(s.includes("xls")||s.includes("xlsx")))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"}},r={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:"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 c=i("VU/8")(o,r,!1,function(t){i("iwvf")},null,null);e.default=c.exports},J8vX:function(t,e){},O3H5:function(t,e,i){"use strict";var a=i("mvHQ"),s=i.n(a),n=i("P9l9"),l=i("DAYN"),o={name:"export-set",components:{draggable:i.n(l).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(n.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()}},r={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}},[i("i",{staticClass:"iconfont icon-icon_yunxiazai p-r-6"}),t._v("导出")]),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 c=i("VU/8")(o,r,!1,function(t){i("J8vX")},null,null);e.a=c.exports},iwvf:function(t,e){}});
\ No newline at end of file
webpackJsonp([49],{RHxA:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=a("Xxa5"),r=a.n(s),o=a("exGp"),i=a.n(o),n=a("3Xzz"),l=a("elmV"),c=a("P9l9"),p=a("unF8"),u=a("Ch4/"),d={name:"employee-io",components:{navCrumb:n.a,uploadExcelComponent:l.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:"storeFrame"},{name:"批量导入导出",path:""}],host:window.location.origin,windowH:window.screen.availHeight-180+"px",type:"import",fileList:[],url:t+"/haoban-manage-web/store/upload",uploadSuccessMsg:"",logList:[],loading:!0,pageSize:20,currentPage:1,total:0,gicFlag:!0}},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};Object(c.a)("/haoban-manage-web/error-log-page",e).then(function(e){1==e.data.errorCode?(t.total=e.data.result.totalCount,t.logList=e.data.result,t.loading=!1):t.$message.error({message:e.data.message})}).catch(function(e){t.$message.error({message:e.message})})},handleRemove:function(t,e){},handlePreview:function(t){},uploadSuccess:function(t,e){1==t.errorCode?(this.uploadSuccessMsg=t.message.split(","),this.$message({message:t.message,type:"success"})):this.$message.error(t.message),this.fileList=[],this.type="note",this.getErrorNote()},submitUpload:function(t){this.$refs[t].submit()},getChange:function(t,e){this.fileList=e},getGicData:function(t){var e=this;return i()(r.a.mark(function a(){var s,o,i,n;return r.a.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:if(s=e,t){a.next=3;break}return a.abrupt("return",!1);case 3:return o={type:1,businessId:t},a.next=6,Object(p.a)(o);case 6:i=a.sent,1==(n=i.data).errorCode?(s.gicFlag=n.result,s.type=n.result?"export":"import"):u.a.errorMsg(n);case 9:case"end":return a.stop()}},a,e)}))()}},beforeMount:function(){var t=this.$route.query.brandId;this.getGicData(t),"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"}},m={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"common-set-wrap",style:{height:t.windowH}},[a("nav-crumb",{attrs:{navpath:t.navpath}}),t._v(" "),a("div",{staticClass:"right-content"},[a("div",{staticClass:"right-box"},[a("div",{staticClass:"io-container border-box "},[t._m(0),t._v(" "),a("el-radio-group",{staticClass:"m-t-20",on:{change:t.resetList},model:{value:t.type,callback:function(e){t.type=e},expression:"type"}},[t.gicFlag?t._e():a("el-radio-button",{attrs:{label:"import"}},[t._v("导入门店")]),t._v(" "),a("el-radio-button",{attrs:{label:"export"}},[t._v("导出")]),t._v(" "),a("el-radio-button",{attrs:{label:"note"}},[t._v("错误记录")])],1),t._v(" "),"import"==t.type?a("div",{staticClass:"handle-area import"},[a("div",{staticClass:"step-div",staticStyle:{"margin-bottom":"90px","line-height":"32px"}},[a("span",{staticClass:"ft-large"},[t._v("①")]),t._v("下载门店导入模板,批量填写门店信息\n "),a("a",{staticClass:"d-u-btn",attrs:{href:t.host+"/haoban-manage-web/excel/通讯录-门店架构导入模板.xlsx"}},[a("el-button",{attrs:{type:"primary"}},[t._v(" 下载"),a("i",{staticClass:"iconfont icon-icon_yunxiazai m-l-5"})])],1)]),t._v(" "),a("div",{staticClass:"step-div"},[a("span",{staticClass:"ft-large"},[t._v("②")]),t._v("上传填写好的门店信息\n "),a("div",{staticClass:"d-u-btn"},[a("el-upload",{ref:"upload",staticClass:"upload-demo",attrs:{action:t.url+"?brandId="+t.$route.query.brandId,"on-success":t.uploadSuccess,"on-change":t.getChange,multiple:!1,"file-list":t.fileList,"auto-upload":!1}},[a("el-button",{attrs:{slot:"trigger",size:"small",type:"primary"},slot:"trigger"},[t._v("选取文件")]),t._v(" "),a("div",{staticClass:"el-upload__tip",attrs:{slot:"tip"},slot:"tip"},[t._v("文件格式必须为xls或xlsx格式")])],1)],1)]),t._v(" "),a("div",{staticClass:"up-btn-div"},[a("el-button",{attrs:{type:"primary",disabled:0==t.fileList.length},on:{click:function(e){t.submitUpload("upload")}}},[t._v("\n 上传\n ")])],1)]):"export"==t.type?a("div",{staticClass:"handle-area import"},[a("div",{staticClass:"step-div",staticStyle:{"margin-bottom":"90px","line-height":"32px"}},[a("span",{staticClass:"ft-large"},[t._v("①")]),t._v("导出门店\n "),a("a",{staticClass:"d-u-btn",attrs:{href:"/haoban-manage-web/store/export?storeGroupId="+t.$route.query.departmentId+"&showChild="+t.$route.query.showChildMember}},[a("el-button",{attrs:{type:"primary"}},[t._v(" 下载"),a("i",{staticClass:"iconfont icon-icon_yunxiazai m-l-5"})])],1),t._v("\n 批量修改门店信息\n ")])]):a("div",{staticClass:"error-log import"},[a("div",{staticClass:"title-area"},[a("div",{staticClass:"tip"},[t._v(t._s(t.uploadSuccessMsg))]),t._v(" "),a("a",{attrs:{href:"/haoban-manage-web/error-improt-log-export?importCode="+t.$route.query.importCode+"&departmentId="+t.$route.query.departmentId}},[a("el-button",{attrs:{type:"primary"}},[t._v("导出错误记录")])],1)]),t._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"m-t-20",staticStyle:{width:"100%"},attrs:{data:t.logList}},[a("el-table-column",{attrs:{type:"index",width:"50",label:"序号"}}),t._v(" "),a("el-table-column",{attrs:{label:"错误提示",prop:"failReason"}}),t._v(" "),a("el-table-column",{attrs:{label:"门店名称",prop:"storeName"}}),t._v(" "),a("el-table-column",{attrs:{label:"门店code",prop:"storeCode"}}),t._v(" "),a("el-table-column",{attrs:{label:"门店分组ID",prop:"storeGroupId"}}),t._v(" "),a("el-table-column",{attrs:{label:"门店类型",prop:"storeTypeStr"}}),t._v(" "),a("el-table-column",{attrs:{label:"门店状态",prop:"statusStr"}}),t._v(" "),a("el-table-column",{attrs:{label:"店长",prop:"managerName"}}),t._v(" "),a("el-table-column",{attrs:{label:"手机号码",prop:"managerPhone"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s("86"==e.row.managerNationcode||null==e.row.managerNationcode?e.row.managerPhone:"+"+e.row.nationcode+"-"+e.row.managerPhone)+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"店长编码",prop:"managerCode"}}),t._v(" "),a("el-table-column",{attrs:{label:"职位",prop:"managerPostionName"}})],1),t._v(" "),t.logList.length?a("div",{staticClass:"pagination"},[a("el-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}})],1):t._e()],1)],1)])]),t._v(" "),a("vue-gic-footer")],1)},staticRenderFns:[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ul",{staticClass:"tip-area border-box "},[a("li",{staticClass:"tip"},[t._v("由于你的企业未进行企业认证,最多导入30家门店,如有超出,可先进行"),a("a",{staticClass:"a-href",attrs:{href:"#/companyCertify"}},[t._v("企业认证")])]),t._v(" "),a("li",{staticClass:"tip"},[t._v("\n 由于数据量可能较大,每次最多导入2000条员工档案,若超过只取前2000条,可以分多次导入\n ")]),t._v(" "),a("li",{staticClass:"tip"},[t._v("不能在本excel表中对门店信息类别进行增加、删除、修改")]),t._v(" "),a("li",{staticClass:"tip"},[t._v("标*字段为必填字段,未标*字段为选填字段")]),t._v(" "),a("li",{staticClass:"tip"},[t._v("\n 门店所在分组:请先到后台创建门店分组,将分组id填入导入表格中,导入中,若找不到对应分组,将直接将门店挂在根目录下面\n ")]),t._v(" "),a("li",{staticClass:"tip"},[t._v("未认证企业通讯录最多只能导入30家门店,超出后无法导入,请先进行企业认证")]),t._v(" "),a("li",{staticClass:"tip"},[t._v("每次最多导入2000家门店,如果超出则只取前2000条数据,可以分多次导入")])])}]};var g=a("VU/8")(d,m,!1,function(t){a("YjmP")},null,null);e.default=g.exports},YjmP:function(t,e){}});
\ No newline at end of file
webpackJsonp([49],{RHxA:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=a("Xxa5"),r=a.n(s),o=a("exGp"),i=a.n(o),n=a("3Xzz"),l=a("elmV"),c=a("P9l9"),p=a("unF8"),u=a("Ch4/"),d={name:"employee-io",components:{navCrumb:n.a,uploadExcelComponent:l.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:"storeFrame"},{name:"批量导入导出",path:""}],host:window.location.origin,windowH:window.screen.availHeight-180+"px",type:"import",fileList:[],url:t+"/haoban-manage-web/store/upload",uploadSuccessMsg:"",logList:[],loading:!0,pageSize:20,currentPage:1,total:0,gicFlag:!0}},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};Object(c.a)("/haoban-manage-web/error-log-page",e).then(function(e){1==e.data.errorCode?(t.total=e.data.result.totalCount,t.logList=e.data.result,t.loading=!1):t.$message.error({message:e.data.message})}).catch(function(e){t.$message.error({message:e.message})})},handleRemove:function(t,e){},handlePreview:function(t){},uploadSuccess:function(){1==res.errorCode?this.uploadSuccessMsg=res.message.split(","):this.$message.error(res.message),this.fileList=[],this.type="note",this.getErrorNote()},submitUpload:function(t){this.$refs[t].submit()},getChange:function(t,e){this.fileList=e},getGicData:function(t){var e=this;return i()(r.a.mark(function a(){var s,o,i,n;return r.a.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:if(s=e,t){a.next=3;break}return a.abrupt("return",!1);case 3:return o={type:1,businessId:t},a.next=6,Object(p.a)(o);case 6:i=a.sent,1==(n=i.data).errorCode?(s.gicFlag=n.result,s.type=n.result?"export":"import"):u.a.errorMsg(n);case 9:case"end":return a.stop()}},a,e)}))()}},beforeMount:function(){var t=this.$route.query.brandId;this.getGicData(t),"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"}},v={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"common-set-wrap",style:{height:t.windowH}},[a("nav-crumb",{attrs:{navpath:t.navpath}}),t._v(" "),a("div",{staticClass:"right-content"},[a("div",{staticClass:"right-box"},[a("div",{staticClass:"io-container border-box "},[t._m(0),t._v(" "),a("el-radio-group",{staticClass:"m-t-20",on:{change:t.resetList},model:{value:t.type,callback:function(e){t.type=e},expression:"type"}},[t.gicFlag?t._e():a("el-radio-button",{attrs:{label:"import"}},[t._v("导入门店")]),t._v(" "),a("el-radio-button",{attrs:{label:"export"}},[t._v("导出")]),t._v(" "),a("el-radio-button",{attrs:{label:"note"}},[t._v("错误记录")])],1),t._v(" "),"import"==t.type?a("div",{staticClass:"handle-area import"},[a("div",{staticClass:"step-div",staticStyle:{"margin-bottom":"90px","line-height":"32px"}},[a("span",{staticClass:"ft-large"},[t._v("①")]),t._v("下载门店导入模板,批量填写门店信息\n "),a("a",{staticClass:"d-u-btn",attrs:{href:t.host+"/haoban-manage-web/excel/通讯录-门店架构导入模板.xlsx"}},[a("el-button",{attrs:{type:"primary"}},[t._v(" 下载"),a("i",{staticClass:"iconfont icon-icon_yunxiazai m-l-5"})])],1)]),t._v(" "),a("div",{staticClass:"step-div"},[a("span",{staticClass:"ft-large"},[t._v("②")]),t._v("上传填写好的门店信息\n "),a("div",{staticClass:"d-u-btn"},[a("el-upload",{ref:"upload",staticClass:"upload-demo",attrs:{action:t.url+"?brandId="+t.$route.query.brandId,"on-success":t.uploadSuccess,"on-change":t.getChange,multiple:!1,"file-list":t.fileList,"auto-upload":!1}},[a("el-button",{attrs:{slot:"trigger",size:"small",type:"primary"},slot:"trigger"},[t._v("选取文件")]),t._v(" "),a("div",{staticClass:"el-upload__tip",attrs:{slot:"tip"},slot:"tip"},[t._v("文件格式必须为xls或xlsx格式")])],1)],1)]),t._v(" "),a("div",{staticClass:"up-btn-div"},[a("el-button",{attrs:{type:"primary",disabled:0==t.fileList.length},on:{click:function(e){t.submitUpload("upload")}}},[t._v("\n 上传\n ")])],1)]):"export"==t.type?a("div",{staticClass:"handle-area import"},[a("div",{staticClass:"step-div",staticStyle:{"margin-bottom":"90px","line-height":"32px"}},[a("span",{staticClass:"ft-large"},[t._v("①")]),t._v("导出门店\n "),a("a",{staticClass:"d-u-btn",attrs:{href:"/haoban-manage-web/store/export?storeGroupId="+t.$route.query.departmentId+"&showChild="+t.$route.query.showChildMember}},[a("el-button",{attrs:{type:"primary"}},[t._v(" 下载"),a("i",{staticClass:"iconfont icon-icon_yunxiazai m-l-5"})])],1),t._v("\n 批量修改门店信息\n ")])]):a("div",{staticClass:"error-log import"},[a("div",{staticClass:"title-area"},[a("div",{staticClass:"tip"},[t._v(t._s(t.uploadSuccessMsg))]),t._v(" "),a("a",{attrs:{href:"/haoban-manage-web/error-improt-log-export?importCode="+t.$route.query.importCode+"&departmentId="+t.$route.query.departmentId}},[a("el-button",{attrs:{type:"primary"}},[t._v("导出错误记录")])],1)]),t._v(" "),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"m-t-20",staticStyle:{width:"100%"},attrs:{data:t.logList}},[a("el-table-column",{attrs:{type:"index",width:"50",label:"序号"}}),t._v(" "),a("el-table-column",{attrs:{label:"错误提示",prop:"failReason"}}),t._v(" "),a("el-table-column",{attrs:{label:"门店名称",prop:"storeName"}}),t._v(" "),a("el-table-column",{attrs:{label:"门店code",prop:"storeCode"}}),t._v(" "),a("el-table-column",{attrs:{label:"门店分组ID",prop:"storeGroupId"}}),t._v(" "),a("el-table-column",{attrs:{label:"门店类型",prop:"storeTypeStr"}}),t._v(" "),a("el-table-column",{attrs:{label:"门店状态",prop:"statusStr"}}),t._v(" "),a("el-table-column",{attrs:{label:"店长",prop:"managerName"}}),t._v(" "),a("el-table-column",{attrs:{label:"手机号码",prop:"managerPhone"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s("86"==e.row.managerNationcode||null==e.row.managerNationcode?e.row.managerPhone:"+"+e.row.nationcode+"-"+e.row.managerPhone)+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"店长编码",prop:"managerCode"}}),t._v(" "),a("el-table-column",{attrs:{label:"职位",prop:"managerPostionName"}})],1),t._v(" "),t.logList.length?a("div",{staticClass:"pagination"},[a("el-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}})],1):t._e()],1)],1)])]),t._v(" "),a("vue-gic-footer")],1)},staticRenderFns:[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ul",{staticClass:"tip-area border-box "},[a("li",{staticClass:"tip"},[t._v("由于你的企业未进行企业认证,最多导入30家门店,如有超出,可先进行"),a("a",{staticClass:"a-href",attrs:{href:"#/companyCertify"}},[t._v("企业认证")])]),t._v(" "),a("li",{staticClass:"tip"},[t._v("\n 由于数据量可能较大,每次最多导入2000条员工档案,若超过只取前2000条,可以分多次导入\n ")]),t._v(" "),a("li",{staticClass:"tip"},[t._v("不能在本excel表中对门店信息类别进行增加、删除、修改")]),t._v(" "),a("li",{staticClass:"tip"},[t._v("标*字段为必填字段,未标*字段为选填字段")]),t._v(" "),a("li",{staticClass:"tip"},[t._v("\n 门店所在分组:请先到后台创建门店分组,将分组id填入导入表格中,导入中,若找不到对应分组,将直接将门店挂在根目录下面\n ")]),t._v(" "),a("li",{staticClass:"tip"},[t._v("未认证企业通讯录最多只能导入30家门店,超出后无法导入,请先进行企业认证")]),t._v(" "),a("li",{staticClass:"tip"},[t._v("每次最多导入2000家门店,如果超出则只取前2000条数据,可以分多次导入")])])}]};var m=a("VU/8")(d,v,!1,function(t){a("dWH0")},null,null);e.default=m.exports},dWH0:function(t,e){}});
\ No newline at end of file
webpackJsonp([79],{"/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),p=(n("j1ja"),n("hKoQ")),r=n.n(p),i={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{}}},i,!1,function(e){n("/NA0")},null,null).exports,c=n("lRwf"),m=n.n(c),d=n("pRNm"),u=n.n(d),l=n("5tgt"),v=n.n(l);m.a.use(u.a);var h=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 A,f=[{path:"/",name:"/",redirect:"login"},{path:"/login",name:"登录",component:v()("login","index")},{path:"/download",name:"下载",component:v()("download","index")},{path:"/index",name:"index",component:v()("index","index")},{path:"/sign",name:"index",component:v()("sign","index")},{path:"/contacts",name:"通讯录",redirect:"administrativeFrame",component:v()("contacts","index"),children:[{path:"/administrativeFrame",name:"行政架构",component:v()("contacts","administrativeFrame")},{path:"/employeeIo",name:"批量导入/导出",component:v()("contacts","employeeIo")},{path:"/addDepartment",name:"添加部门",component:v()("contacts","addDepartment")},{path:"/addClerk",name:"添加店员",component:v()("contacts","addClerk")},{path:"/storeFrame",name:"门店架构",component:v()("contacts","storeFrame")},{path:"/addGroup",name:"添加子分组",component:v()("contacts","addGroup")},{path:"/storeIo",name:"门店导入/导出",component:v()("contacts","storeIo")},{path:"/storeInfo",name:"编辑门店",component:v()("contacts","storeInfo")},{path:"/recycle",name:"门店回收站",component:v()("contacts","recycle")},{path:"/employee",name:"编辑员工",component:v()("contacts","employee")},{path:"/unemployee",name:"离职员工",component:v()("contacts","unemployee")},{path:"/fileSet",name:"档案设置",component:v()("contacts","fileSet")},{path:"/recordInfo",name:"编辑员工信息",component:v()("contacts","recordInfo")},{path:"/recordIo",name:"导入导出员工档案",component:v()("contacts","recordIo")},{path:"/shareContact",name:"共享通讯录",component:v()("contacts","shareContact")},{path:"/shareCode",name:"共享通讯录二维码",component:v()("contacts","shareCode")},{path:"/employeeRecord",name:"在职员工",component:v()("contacts","employeeRecord")}]},{path:"/enterpriseApp",name:"企业应用",redirect:"appcenter",component:v()("enterpriseApp","index"),children:[{path:"/appcenter",name:"企业应用中心",component:v()("enterpriseApp","appcenter")},{path:"/mycustomer",name:"我的顾客",component:v()("enterpriseApp","mycustomer")},{path:"/cloudDaily",name:"云日报",redirect:"/dailyRecord",component:v()("enterpriseApp/cloudDaily","index"),children:[{path:"/dailyRecord",name:"云日报记录",component:v()("enterpriseApp/cloudDaily","dailyRecord")},{path:"/dailyDetail",name:"日报详情",component:v()("enterpriseApp/cloudDaily","dailyDetail")},{path:"/taskAssign",name:"任务下发设置",component:v()("enterpriseApp/cloudDaily","taskAssign")},{path:"/systemReport",name:"系统报表",component:v()("enterpriseApp/cloudDaily","systemReport")},{path:"/customReport",name:"自定义报表",component:v()("enterpriseApp/cloudDaily","customReport")}]},{path:"/trafficTask",name:"话务任务",redirect:"/taskRecord",component:v()("enterpriseApp/trafficTask","index"),children:[{path:"/taskRecord",name:"话务任务记录",component:v()("enterpriseApp/trafficTask","taskRecord")},{path:"/taskDetail",name:"话务任务详情",component:v()("enterpriseApp/trafficTask","taskDetail")},{path:"/trafficTaskSet",name:"话务任务设置",component:v()("enterpriseApp/trafficTask","trafficTaskSet")},{path:"/badEvaluateSet",name:"不良评价设置",component:v()("enterpriseApp/badEvaluate","badEvaluateSet")}]},{path:"/noticeList",name:"企业公告",redirect:"/noticeList",component:v()("enterpriseApp/notice","index"),children:[{path:"/noticeList",name:"企业公告列表",component:v()("enterpriseApp/notice","noticeList")},{path:"/addNotice",name:"新建公告",component:v()("enterpriseApp/notice","addNotice")}]},{path:"/badEvaluate",name:"不良评价",redirect:"/badEvaluateRecord",component:v()("enterpriseApp/badEvaluate","index"),children:[{path:"/badEvaluateRecord",name:"不良评价记录",component:v()("enterpriseApp/badEvaluate","badEvaluateRecord")},{path:"/badEvaluateDetail",name:"不良评价详情",component:v()("enterpriseApp/badEvaluate","badEvaluateDetail")}]},{path:"/quota",name:"指标管理",redirect:"/monthList",component:v()("enterpriseApp/quota","index"),children:[{path:"/monthList",name:"月指标列表",component:v()("enterpriseApp/quota","monthList")},{path:"/storeMonthTask",name:"门店月指标",component:v()("enterpriseApp/quota","storeMonthTask")},{path:"/salerMonthDetail",name:"导购月指标详情",component:v()("enterpriseApp/quota","salerMonthDetail")},{path:"/companyDaySet",name:"商户日权重",component:v()("enterpriseApp/quota","companyDaySet")},{path:"/monthTask",name:"月指标任务",component:v()("enterpriseApp/quota","monthTask"),meta:{keepAlive:!0}},{path:"/monthTaskDetail",name:"月指标任务详情",component:v()("enterpriseApp/quota","monthTaskDetail"),meta:{keepAlive:!0}}]},{path:"/signList",name:"企业公告",redirect:"/signList",component:v()("enterpriseApp/signApp","index"),children:[{path:"/signList",name:"企业公告列表",component:v()("enterpriseApp/signApp","signList")}]}]},{path:"/reviewCenter",name:"审核中心",redirect:"unreview",component:v()("reviewCenter","index"),children:[{path:"/reviewed",name:"已审核",component:v()("reviewCenter","reviewed")},{path:"/unreview",name:"未审核",component:v()("reviewCenter","unreview")}]},{path:"/setCenter",name:"设置",redirect:"companyAddress",component:v()("setting","index"),children:[{path:"/companyAddress",name:"企业地址",component:v()("setting","companyAddress")},{path:"/companyCertify",name:"企业认证",component:v()("setting","companyCertify")},{path:"/staffDetails",name:"员工详情字段",component:v()("setting","staffDetails")},{path:"/storePermission",name:"门店权限设置",component:v()("setting","storePermission")},{path:"/replaceAdmin",name:"更换超级管理员",component:v()("setting","replaceAdmin")},{path:"/setChildAdmin",name:"设置子管理员",component:v()("setting","setChildAdmin")},{path:"/addAdmin",name:"添加管理员",component:v()("setting","addAdmin")},{path:"/addAdminRole",name:"添加管理员角色",component:v()("setting","addAdminRole")}]},{path:"/staffRecordsTemplate",name:"员工档案设置",component:v()("contacts","staffRecordsTemplate")},{path:"/systemReportSet",name:"系统报表设置",component:v()("enterpriseApp/cloudDaily","systemReportSet")},{path:"/template",name:"模板设置",component:v()("enterpriseApp/cloudDaily","template")},{path:"/403",name:"无权访问",component:h},{path:"/404",name:"error404",component:h},{path:"/500",name:"error500",component:h},{path:"*",redirect:"/404",hidden:!0}],y=new u.a({routes:f,scrollBehavior:function(){return{y:0}}}),g=n("zL8q"),k=n.n(g),D=n("Rf8U"),x=n.n(D),R=n("mtWM"),w=n.n(R),C=n("bOdI"),b=n.n(C),I=n("SJI6"),T=n.n(I);m.a.use(T.a);var E=new T.a.Store({state:{user:{},token:null,title:"",show:!1,bgHeight:window.screen.availHeight-440-24+"px"},mutations:(A={},b()(A,"login",function(e,t){sessionStorage.token=t,e.token=t}),b()(A,"logout",function(e){sessionStorage.removeItem("token"),e.token=null}),b()(A,"title",function(e,t){e.title=t}),b()(A,"show",function(e,t){e.show=t}),A)}),S=(n("4qCZ"),n("uKUT"),n("Xcu2"),n("TUaa")),q=n.n(S),V=n("tyqE"),L=n.n(V),P=n("pRVe"),j=n.n(P),F=n("SE7k"),G=n.n(F),N=n("XsK6"),O=n.n(N),K=n("QRL9"),z=n.n(K),H=n("2Pnh"),J=n.n(H),M=n("l9mu"),U=n.n(M),X={install:function(e,t){e.prototype.getPdf=function(){var e=this.htmlTitle;J()(document.querySelector("#pdfDom"),{allowTaint:!0,foreignObjectRendering:!0}).then(function(t){var n=t.width,a=t.height,o=n/592.28*841.89,p=a,r=0,i=592.28/n*a,s=t.toDataURL("image/jpeg",1),c=new U.a("","pt","a4");if(p<o)c.addImage(s,"JPEG",0,0,595.28,i);else for(;p>0;)c.addImage(s,"JPEG",0,r,595.28,i),r-=841.89,(p-=o)>0&&c.addPage();c.save(e+".pdf")})}}};r.a.polyfill(),Vue.use(X),Vue.use(O.a),Vue.use(z.a),Vue.use(G.a),Vue.use(j.a),Vue.use(L.a),Vue.use(q.a),Vue.config.productionTip=!1,Vue.use(k.a,{size:"large"}),Vue.use(x.a,w.a),Vue.axios.defaults.withCredentials=!0,y.beforeEach(function(e,t,n){var a=void 0,p=window.location.origin;a=-1!=p.indexOf("localhost")?"http://www.gicdev.com":p,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){g.Message.error({duration:1e3,message:e.message})}),"/"==e.path?n({path:"/login"}):n()}),new Vue({el:"#app",router:y,store:E,components:{App:s},template:"<App/>"})},Opzk:function(e,t,n){var a={"./contacts/addClerk.vue":["27o1",0,19],"./contacts/addDepartment.vue":["HHRu",0,16],"./contacts/addEmployee.vue":["00Sv",48],"./contacts/addGroup.vue":["mPjx",0,77],"./contacts/administrativeFrame.vue":["kLcy",0,4],"./contacts/employee.vue":["AdJp",0,39],"./contacts/employeeIo.vue":["Rwbg",0,44],"./contacts/employeeRecord.vue":["zGJY",0,8],"./contacts/fileSet.vue":["CSjr",0,11],"./contacts/index.vue":["41Rh",0,75],"./contacts/recordInfo.vue":["67iC",0,13],"./contacts/recordIo.vue":["738z",0,20],"./contacts/recycle.vue":["HkK0",0,26],"./contacts/shareAddDepartment.vue":["q5Ri",0,15],"./contacts/shareCode.vue":["JsWW",0,65],"./contacts/shareContact.vue":["Gfms",0,2],"./contacts/staffRecordsTemplate.vue":["lFAe",0,76],"./contacts/storeFrame.vue":["7SJI",0,6],"./contacts/storeInfo.vue":["h/6A",0,68],"./contacts/storeIo.vue":["RHxA",0,49],"./contacts/unemployee.vue":["TGrv",0,14],"./download/index.vue":["ASGJ",0,9],"./enterpriseApp/appcenter.vue":["yuVF",0,29],"./enterpriseApp/badEvaluate/badEvaluateDetail.vue":["4m/B",0,32],"./enterpriseApp/badEvaluate/badEvaluateRecord.vue":["r//C",0,59],"./enterpriseApp/badEvaluate/badEvaluateSet.vue":["XzAK",0,70],"./enterpriseApp/badEvaluate/index.vue":["W0k8",0,36],"./enterpriseApp/cloudDaily/customReport.vue":["DxdI",0,37],"./enterpriseApp/cloudDaily/dailyDetail.vue":["5nNU",0,30],"./enterpriseApp/cloudDaily/dailyRecord.vue":["Ujni",0,31],"./enterpriseApp/cloudDaily/index.vue":["Knd1",0,74],"./enterpriseApp/cloudDaily/systemReport.vue":["Y8F9",0,55],"./enterpriseApp/cloudDaily/systemReportSet.vue":["VE2c",0,7],"./enterpriseApp/cloudDaily/taskAssign.vue":["5x7s",0,46],"./enterpriseApp/cloudDaily/template.vue":["IA9l",0,5],"./enterpriseApp/cloudDaily/template/block.vue":["PAYw",73],"./enterpriseApp/cloudDaily/template/date-range.vue":["79Bk",60],"./enterpriseApp/cloudDaily/template/image.vue":["H8Kg",56],"./enterpriseApp/cloudDaily/template/input.vue":["s4D+",58],"./enterpriseApp/cloudDaily/template/select.vue":["t0b0",35],"./enterpriseApp/index.vue":["da9f",50],"./enterpriseApp/mycustomer.vue":["cuIN",0,43],"./enterpriseApp/notice/addNotice.vue":["G5PL",0,3],"./enterpriseApp/notice/index.vue":["av/3",0,47],"./enterpriseApp/notice/noticeList.vue":["OVYO",0,22],"./enterpriseApp/quota/companyDaySet.vue":["xk7v",0,72],"./enterpriseApp/quota/index.vue":["FB5x",0,69],"./enterpriseApp/quota/monthList.vue":["ZxDn",0,38],"./enterpriseApp/quota/monthTask.vue":["cK0D",0,34],"./enterpriseApp/quota/monthTaskDetail.vue":["jMbb",0,57],"./enterpriseApp/quota/salerMonthDetail.vue":["IKv2",0,40],"./enterpriseApp/quota/storeMonthTask.vue":["kF1j",0,61],"./enterpriseApp/signApp/index.vue":["Gk4o",0,41],"./enterpriseApp/signApp/signList.vue":["kCy7",0,67],"./enterpriseApp/trafficTask/index.vue":["e88N",0,45],"./enterpriseApp/trafficTask/taskDetail.vue":["A33E",0,54],"./enterpriseApp/trafficTask/taskRecord.vue":["iG3v",0,42],"./enterpriseApp/trafficTask/trafficTaskSet.vue":["4H54",0,63],"./errorPage/403.vue":["6XGN",25],"./errorPage/404.vue":["AejC",27],"./errorPage/500.vue":["FskK",23],"./errorPage/index.vue":["ODjX",1],"./index/index.vue":["JXTs",0,28],"./login/index.vue":["T+/8",0,10],"./reviewCenter/index.vue":["+lem",53],"./reviewCenter/reviewed.vue":["CLYF",0,17],"./reviewCenter/unreview.vue":["xCEU",0,18],"./setting/addAdmin.vue":["rs/A",0,52],"./setting/addAdminRole.vue":["fZsz",0,71],"./setting/companyAddress.vue":["SKyE",0,64],"./setting/companyCertify.vue":["3zYh",0,12],"./setting/index.vue":["VlR1",33],"./setting/replaceAdmin.vue":["ys9I",0,62],"./setting/setChildAdmin.vue":["VqB7",0,51],"./setting/staffDetails.vue":["Zyzf",0,24],"./setting/storePermission.vue":["Xwfy",0,21],"./sign/index.vue":["RQuk",0,66]};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},SJI6:function(e,t){e.exports=Vuex},Xcu2:function(e,t){},lRwf:function(e,t){e.exports=Vue},pRNm:function(e,t){e.exports=VueRouter},uKUT:function(e,t){}},[0]);
\ No newline at end of file
webpackJsonp([79],{"/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),p=(n("j1ja"),n("hKoQ")),r=n.n(p),i={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{}}},i,!1,function(e){n("/NA0")},null,null).exports,c=n("lRwf"),m=n.n(c),d=n("pRNm"),u=n.n(d),l=n("5tgt"),v=n.n(l);m.a.use(u.a);var h=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 A,f=[{path:"/",name:"/",redirect:"login"},{path:"/login",name:"登录",component:v()("login","index")},{path:"/download",name:"下载",component:v()("download","index")},{path:"/index",name:"index",component:v()("index","index")},{path:"/sign",name:"index",component:v()("sign","index")},{path:"/contacts",name:"通讯录",redirect:"administrativeFrame",component:v()("contacts","index"),children:[{path:"/administrativeFrame",name:"行政架构",component:v()("contacts","administrativeFrame")},{path:"/employeeIo",name:"批量导入/导出",component:v()("contacts","employeeIo")},{path:"/addDepartment",name:"添加部门",component:v()("contacts","addDepartment")},{path:"/addClerk",name:"添加店员",component:v()("contacts","addClerk")},{path:"/storeFrame",name:"门店架构",component:v()("contacts","storeFrame")},{path:"/addGroup",name:"添加子分组",component:v()("contacts","addGroup")},{path:"/storeIo",name:"门店导入/导出",component:v()("contacts","storeIo")},{path:"/storeInfo",name:"编辑门店",component:v()("contacts","storeInfo")},{path:"/recycle",name:"门店回收站",component:v()("contacts","recycle")},{path:"/employee",name:"编辑员工",component:v()("contacts","employee")},{path:"/unemployee",name:"离职员工",component:v()("contacts","unemployee")},{path:"/fileSet",name:"档案设置",component:v()("contacts","fileSet")},{path:"/recordInfo",name:"编辑员工信息",component:v()("contacts","recordInfo")},{path:"/recordIo",name:"导入导出员工档案",component:v()("contacts","recordIo")},{path:"/shareContact",name:"共享通讯录",component:v()("contacts","shareContact")},{path:"/shareCode",name:"共享通讯录二维码",component:v()("contacts","shareCode")},{path:"/employeeRecord",name:"在职员工",component:v()("contacts","employeeRecord")}]},{path:"/enterpriseApp",name:"企业应用",redirect:"appcenter",component:v()("enterpriseApp","index"),children:[{path:"/appcenter",name:"企业应用中心",component:v()("enterpriseApp","appcenter")},{path:"/mycustomer",name:"我的顾客",component:v()("enterpriseApp","mycustomer")},{path:"/cloudDaily",name:"云日报",redirect:"/dailyRecord",component:v()("enterpriseApp/cloudDaily","index"),children:[{path:"/dailyRecord",name:"云日报记录",component:v()("enterpriseApp/cloudDaily","dailyRecord")},{path:"/dailyDetail",name:"日报详情",component:v()("enterpriseApp/cloudDaily","dailyDetail")},{path:"/taskAssign",name:"任务下发设置",component:v()("enterpriseApp/cloudDaily","taskAssign")},{path:"/systemReport",name:"系统报表",component:v()("enterpriseApp/cloudDaily","systemReport")},{path:"/customReport",name:"自定义报表",component:v()("enterpriseApp/cloudDaily","customReport")}]},{path:"/trafficTask",name:"话务任务",redirect:"/taskRecord",component:v()("enterpriseApp/trafficTask","index"),children:[{path:"/taskRecord",name:"话务任务记录",component:v()("enterpriseApp/trafficTask","taskRecord")},{path:"/taskDetail",name:"话务任务详情",component:v()("enterpriseApp/trafficTask","taskDetail")},{path:"/trafficTaskSet",name:"话务任务设置",component:v()("enterpriseApp/trafficTask","trafficTaskSet")},{path:"/badEvaluateSet",name:"不良评价设置",component:v()("enterpriseApp/badEvaluate","badEvaluateSet")}]},{path:"/noticeList",name:"企业公告",redirect:"/noticeList",component:v()("enterpriseApp/notice","index"),children:[{path:"/noticeList",name:"企业公告列表",component:v()("enterpriseApp/notice","noticeList")},{path:"/addNotice",name:"新建公告",component:v()("enterpriseApp/notice","addNotice")}]},{path:"/badEvaluate",name:"不良评价",redirect:"/badEvaluateRecord",component:v()("enterpriseApp/badEvaluate","index"),children:[{path:"/badEvaluateRecord",name:"不良评价记录",component:v()("enterpriseApp/badEvaluate","badEvaluateRecord")},{path:"/badEvaluateDetail",name:"不良评价详情",component:v()("enterpriseApp/badEvaluate","badEvaluateDetail")}]},{path:"/quota",name:"指标管理",redirect:"/monthList",component:v()("enterpriseApp/quota","index"),children:[{path:"/monthList",name:"月指标列表",component:v()("enterpriseApp/quota","monthList")},{path:"/storeMonthTask",name:"门店月指标",component:v()("enterpriseApp/quota","storeMonthTask")},{path:"/salerMonthDetail",name:"导购月指标详情",component:v()("enterpriseApp/quota","salerMonthDetail")},{path:"/companyDaySet",name:"商户日权重",component:v()("enterpriseApp/quota","companyDaySet")},{path:"/monthTask",name:"月指标任务",component:v()("enterpriseApp/quota","monthTask"),meta:{keepAlive:!0}},{path:"/monthTaskDetail",name:"月指标任务详情",component:v()("enterpriseApp/quota","monthTaskDetail"),meta:{keepAlive:!0}}]},{path:"/signList",name:"企业公告",redirect:"/signList",component:v()("enterpriseApp/signApp","index"),children:[{path:"/signList",name:"企业公告列表",component:v()("enterpriseApp/signApp","signList")}]}]},{path:"/reviewCenter",name:"审核中心",redirect:"unreview",component:v()("reviewCenter","index"),children:[{path:"/reviewed",name:"已审核",component:v()("reviewCenter","reviewed")},{path:"/unreview",name:"未审核",component:v()("reviewCenter","unreview")}]},{path:"/setCenter",name:"设置",redirect:"companyAddress",component:v()("setting","index"),children:[{path:"/companyAddress",name:"企业地址",component:v()("setting","companyAddress")},{path:"/companyCertify",name:"企业认证",component:v()("setting","companyCertify")},{path:"/staffDetails",name:"员工详情字段",component:v()("setting","staffDetails")},{path:"/storePermission",name:"门店权限设置",component:v()("setting","storePermission")},{path:"/replaceAdmin",name:"更换超级管理员",component:v()("setting","replaceAdmin")},{path:"/setChildAdmin",name:"设置子管理员",component:v()("setting","setChildAdmin")},{path:"/addAdmin",name:"添加管理员",component:v()("setting","addAdmin")},{path:"/addAdminRole",name:"添加管理员角色",component:v()("setting","addAdminRole")}]},{path:"/staffRecordsTemplate",name:"员工档案设置",component:v()("contacts","staffRecordsTemplate")},{path:"/systemReportSet",name:"系统报表设置",component:v()("enterpriseApp/cloudDaily","systemReportSet")},{path:"/template",name:"模板设置",component:v()("enterpriseApp/cloudDaily","template")},{path:"/403",name:"无权访问",component:h},{path:"/404",name:"error404",component:h},{path:"/500",name:"error500",component:h},{path:"*",redirect:"/404",hidden:!0}],y=new u.a({routes:f,scrollBehavior:function(){return{y:0}}}),g=n("zL8q"),k=n.n(g),D=n("Rf8U"),x=n.n(D),R=n("mtWM"),w=n.n(R),C=n("bOdI"),b=n.n(C),I=n("SJI6"),T=n.n(I);m.a.use(T.a);var E=new T.a.Store({state:{user:{},token:null,title:"",show:!1,bgHeight:window.screen.availHeight-440-24+"px"},mutations:(A={},b()(A,"login",function(e,t){sessionStorage.token=t,e.token=t}),b()(A,"logout",function(e){sessionStorage.removeItem("token"),e.token=null}),b()(A,"title",function(e,t){e.title=t}),b()(A,"show",function(e,t){e.show=t}),A)}),S=(n("4qCZ"),n("uKUT"),n("Xcu2"),n("TUaa")),q=n.n(S),V=n("tyqE"),L=n.n(V),P=n("pRVe"),j=n.n(P),F=n("SE7k"),G=n.n(F),N=n("XsK6"),O=n.n(N),K=n("QRL9"),z=n.n(K),H=n("2Pnh"),J=n.n(H),M=n("l9mu"),U=n.n(M),X={install:function(e,t){e.prototype.getPdf=function(){var e=this.htmlTitle;J()(document.querySelector("#pdfDom"),{allowTaint:!0,foreignObjectRendering:!0}).then(function(t){var n=t.width,a=t.height,o=n/592.28*841.89,p=a,r=0,i=592.28/n*a,s=t.toDataURL("image/jpeg",1),c=new U.a("","pt","a4");if(p<o)c.addImage(s,"JPEG",0,0,595.28,i);else for(;p>0;)c.addImage(s,"JPEG",0,r,595.28,i),r-=841.89,(p-=o)>0&&c.addPage();c.save(e+".pdf")})}}};r.a.polyfill(),Vue.use(X),Vue.use(O.a),Vue.use(z.a),Vue.use(G.a),Vue.use(j.a),Vue.use(L.a),Vue.use(q.a),Vue.config.productionTip=!1,Vue.use(k.a,{size:"large"}),Vue.use(x.a,w.a),Vue.axios.defaults.withCredentials=!0,y.beforeEach(function(e,t,n){var a=void 0,p=window.location.origin;a=-1!=p.indexOf("localhost")?"http://www.gicdev.com":p,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){g.Message.error({duration:1e3,message:e.message})}),"/"==e.path?n({path:"/login"}):n()}),new Vue({el:"#app",router:y,store:E,components:{App:s},template:"<App/>"})},Opzk:function(e,t,n){var a={"./contacts/addClerk.vue":["27o1",0,20],"./contacts/addDepartment.vue":["HHRu",0,16],"./contacts/addEmployee.vue":["00Sv",48],"./contacts/addGroup.vue":["mPjx",0,77],"./contacts/administrativeFrame.vue":["kLcy",0,4],"./contacts/employee.vue":["AdJp",0,39],"./contacts/employeeIo.vue":["Rwbg",0,44],"./contacts/employeeRecord.vue":["zGJY",0,8],"./contacts/fileSet.vue":["CSjr",0,11],"./contacts/index.vue":["41Rh",0,75],"./contacts/recordInfo.vue":["67iC",0,13],"./contacts/recordIo.vue":["738z",0,18],"./contacts/recycle.vue":["HkK0",0,26],"./contacts/shareAddDepartment.vue":["q5Ri",0,15],"./contacts/shareCode.vue":["JsWW",0,65],"./contacts/shareContact.vue":["Gfms",0,2],"./contacts/staffRecordsTemplate.vue":["lFAe",0,76],"./contacts/storeFrame.vue":["7SJI",0,6],"./contacts/storeInfo.vue":["h/6A",0,68],"./contacts/storeIo.vue":["RHxA",0,49],"./contacts/unemployee.vue":["TGrv",0,14],"./download/index.vue":["ASGJ",0,9],"./enterpriseApp/appcenter.vue":["yuVF",0,29],"./enterpriseApp/badEvaluate/badEvaluateDetail.vue":["4m/B",0,32],"./enterpriseApp/badEvaluate/badEvaluateRecord.vue":["r//C",0,59],"./enterpriseApp/badEvaluate/badEvaluateSet.vue":["XzAK",0,70],"./enterpriseApp/badEvaluate/index.vue":["W0k8",0,36],"./enterpriseApp/cloudDaily/customReport.vue":["DxdI",0,37],"./enterpriseApp/cloudDaily/dailyDetail.vue":["5nNU",0,30],"./enterpriseApp/cloudDaily/dailyRecord.vue":["Ujni",0,31],"./enterpriseApp/cloudDaily/index.vue":["Knd1",0,74],"./enterpriseApp/cloudDaily/systemReport.vue":["Y8F9",0,55],"./enterpriseApp/cloudDaily/systemReportSet.vue":["VE2c",0,7],"./enterpriseApp/cloudDaily/taskAssign.vue":["5x7s",0,46],"./enterpriseApp/cloudDaily/template.vue":["IA9l",0,5],"./enterpriseApp/cloudDaily/template/block.vue":["PAYw",73],"./enterpriseApp/cloudDaily/template/date-range.vue":["79Bk",60],"./enterpriseApp/cloudDaily/template/image.vue":["H8Kg",56],"./enterpriseApp/cloudDaily/template/input.vue":["s4D+",58],"./enterpriseApp/cloudDaily/template/select.vue":["t0b0",35],"./enterpriseApp/index.vue":["da9f",50],"./enterpriseApp/mycustomer.vue":["cuIN",0,43],"./enterpriseApp/notice/addNotice.vue":["G5PL",0,3],"./enterpriseApp/notice/index.vue":["av/3",0,47],"./enterpriseApp/notice/noticeList.vue":["OVYO",0,22],"./enterpriseApp/quota/companyDaySet.vue":["xk7v",0,72],"./enterpriseApp/quota/index.vue":["FB5x",0,69],"./enterpriseApp/quota/monthList.vue":["ZxDn",0,38],"./enterpriseApp/quota/monthTask.vue":["cK0D",0,34],"./enterpriseApp/quota/monthTaskDetail.vue":["jMbb",0,57],"./enterpriseApp/quota/salerMonthDetail.vue":["IKv2",0,40],"./enterpriseApp/quota/storeMonthTask.vue":["kF1j",0,61],"./enterpriseApp/signApp/index.vue":["Gk4o",0,41],"./enterpriseApp/signApp/signList.vue":["kCy7",0,67],"./enterpriseApp/trafficTask/index.vue":["e88N",0,45],"./enterpriseApp/trafficTask/taskDetail.vue":["A33E",0,54],"./enterpriseApp/trafficTask/taskRecord.vue":["iG3v",0,42],"./enterpriseApp/trafficTask/trafficTaskSet.vue":["4H54",0,63],"./errorPage/403.vue":["6XGN",25],"./errorPage/404.vue":["AejC",27],"./errorPage/500.vue":["FskK",23],"./errorPage/index.vue":["ODjX",1],"./index/index.vue":["JXTs",0,28],"./login/index.vue":["T+/8",0,10],"./reviewCenter/index.vue":["+lem",53],"./reviewCenter/reviewed.vue":["CLYF",0,17],"./reviewCenter/unreview.vue":["xCEU",0,19],"./setting/addAdmin.vue":["rs/A",0,52],"./setting/addAdminRole.vue":["fZsz",0,71],"./setting/companyAddress.vue":["SKyE",0,64],"./setting/companyCertify.vue":["3zYh",0,12],"./setting/index.vue":["VlR1",33],"./setting/replaceAdmin.vue":["ys9I",0,62],"./setting/setChildAdmin.vue":["VqB7",0,51],"./setting/staffDetails.vue":["Zyzf",0,24],"./setting/storePermission.vue":["Xwfy",0,21],"./sign/index.vue":["RQuk",0,66]};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},SJI6:function(e,t){e.exports=Vuex},Xcu2:function(e,t){},lRwf:function(e,t){e.exports=Vue},pRNm:function(e,t){e.exports=VueRouter},uKUT:function(e,t){}},[0]);
\ No newline at end of file
!function(e){var c=window.webpackJsonp;window.webpackJsonp=function(d,b,n){for(var r,t,o,i=0,u=[];i<d.length;i++)t=d[i],a[t]&&u.push(a[t][0]),a[t]=0;for(r in b)Object.prototype.hasOwnProperty.call(b,r)&&(e[r]=b[r]);for(c&&c(d,b,n);u.length;)u.shift()();if(n)for(i=0;i<n.length;i++)o=f(f.s=n[i]);return o};var d={},a={81:0};function f(c){if(d[c])return d[c].exports;var a=d[c]={i:c,l:!1,exports:{}};return e[c].call(a.exports,a,a.exports,f),a.l=!0,a.exports}f.e=function(e){var c=a[e];if(0===c)return new Promise(function(e){e()});if(c)return c[2];var d=new Promise(function(d,f){c=a[e]=[d,f]});c[2]=d;var b=document.getElementsByTagName("head")[0],n=document.createElement("script");n.type="text/javascript",n.charset="utf-8",n.async=!0,n.timeout=12e4,f.nc&&n.setAttribute("nonce",f.nc),n.src=f.p+"static/js/"+e+"."+{0:"ba29b2417d9b8d5d4509",1:"0ebe3ead93207dc78a78",2:"fdf82093764059c1200c",3:"3282d88c1532d0ca9c9e",4:"01be0f85b0acd6f1d6df",5:"24fce89feae26ccdc92c",6:"12282235c2ce7ff45d56",7:"57af0bc90206c6098149",8:"9bd56928cea92db3c119",9:"860dbe8cf83334f9e3c0",10:"956d97940afe04265b88",11:"2d0a192288361dd95250",12:"3d3797e96dc9e8cc5bd4",13:"c01b6415e93d21d1c19f",14:"d9f8f7e5598d599d6b6a",15:"360a92075d219ac84088",16:"bdc37aea4c14db4484c6",17:"18d7b200f29fbb0cc9c8",18:"7f8b13ecc824e7a610b5",19:"68c0bcb8b87a388af800",20:"987af05d6bb759103010",21:"b0e7348ff74371924c3b",22:"ae3ca1d035af160b7832",23:"9efbbc6dd315a676ce09",24:"4637a4566383d6e864cf",25:"4f9db49437ea94436d03",26:"e0b684b65d0dbf5d032b",27:"acda88d3c2aa77c9f51c",28:"e1b3c97634b8203082e4",29:"a00a8b4033e1feddfe67",30:"07a39afe8e9361ef44b8",31:"8e77909f1af264b00346",32:"ec0bbd85e6d55909453d",33:"d649a5e4d061985d1c3a",34:"629893b7dd561b646232",35:"d6f0ed32cea79ea624b3",36:"61a1c2681f78e1fd7e80",37:"4353ffce2e97d528bc9b",38:"23b83bd7920693bc35c6",39:"45b7d5b9dbe354877342",40:"18605687ea6ee1539453",41:"78d64ae1581e8ea232cc",42:"56b8d3d551364d7fcf73",43:"dd9e90d8053228b68228",44:"28172dd8dbf35ac350fa",45:"bfad77aa2ad556a32c7c",46:"5e58d02bfb5d53a3e1b5",47:"de0e290ed4c878d0c8c3",48:"6d564387f233c08c800d",49:"aadad9540975c8930c5b",50:"331006123edd2049b7d9",51:"244dc6f576a64b7c174b",52:"3ee35b29a67a32a31d1d",53:"8ea56d269da04331dd65",54:"4b3de5b9c967cbdcb803",55:"c423570fcbf037d349d9",56:"03f9fa2efa7f832146f1",57:"ec64d57876772f26c560",58:"f8f6469b19558b91d2af",59:"014ae5d12d19afa067f5",60:"633307c153fec68e7774",61:"a6c4d42ed111c8f08d58",62:"1b7880620e9dff5a28ed",63:"02272fe3caa4b8c63c2a",64:"ebc341a9017c4b2c1112",65:"afcb60484e7a9ec39f28",66:"0c2656f4decfecb59972",67:"57f329b5a1c3658845e9",68:"1aaf6a61241359c709e8",69:"518fa345263ef1bb9abc",70:"5d2e33dad1088489e653",71:"e51a1b885d499897baff",72:"bfd2694c02bae17c273e",73:"7751e4d66fee99c15a39",74:"317ccff353170ac7c01f",75:"44714b271d06e1e87012",76:"7eaab216a287b1ffca0e",77:"01b9dbf75e1040e81146",80:"c4a24f0beb29dbd2892a"}[e]+".js";var r=setTimeout(t,12e4);function t(){n.onerror=n.onload=null,clearTimeout(r);var c=a[e];0!==c&&(c&&c[1](new Error("Loading chunk "+e+" failed.")),a[e]=void 0)}return n.onerror=n.onload=t,b.appendChild(n),d},f.m=e,f.c=d,f.d=function(e,c,d){f.o(e,c)||Object.defineProperty(e,c,{configurable:!1,enumerable:!0,get:d})},f.n=function(e){var c=e&&e.__esModule?function(){return e.default}:function(){return e};return f.d(c,"a",c),c},f.o=function(e,c){return Object.prototype.hasOwnProperty.call(e,c)},f.p="./",f.oe=function(e){throw console.error(e),e}}([]);
\ No newline at end of file
!function(e){var c=window.webpackJsonp;window.webpackJsonp=function(d,b,n){for(var r,t,o,i=0,u=[];i<d.length;i++)t=d[i],a[t]&&u.push(a[t][0]),a[t]=0;for(r in b)Object.prototype.hasOwnProperty.call(b,r)&&(e[r]=b[r]);for(c&&c(d,b,n);u.length;)u.shift()();if(n)for(i=0;i<n.length;i++)o=f(f.s=n[i]);return o};var d={},a={81:0};function f(c){if(d[c])return d[c].exports;var a=d[c]={i:c,l:!1,exports:{}};return e[c].call(a.exports,a,a.exports,f),a.l=!0,a.exports}f.e=function(e){var c=a[e];if(0===c)return new Promise(function(e){e()});if(c)return c[2];var d=new Promise(function(d,f){c=a[e]=[d,f]});c[2]=d;var b=document.getElementsByTagName("head")[0],n=document.createElement("script");n.type="text/javascript",n.charset="utf-8",n.async=!0,n.timeout=12e4,f.nc&&n.setAttribute("nonce",f.nc),n.src=f.p+"static/js/"+e+"."+{0:"1758b29fb68b8c89cec5",1:"0ebe3ead93207dc78a78",2:"fdf82093764059c1200c",3:"3282d88c1532d0ca9c9e",4:"01be0f85b0acd6f1d6df",5:"24fce89feae26ccdc92c",6:"12282235c2ce7ff45d56",7:"57af0bc90206c6098149",8:"9bd56928cea92db3c119",9:"860dbe8cf83334f9e3c0",10:"956d97940afe04265b88",11:"2d0a192288361dd95250",12:"3d3797e96dc9e8cc5bd4",13:"c01b6415e93d21d1c19f",14:"d9f8f7e5598d599d6b6a",15:"360a92075d219ac84088",16:"bdc37aea4c14db4484c6",17:"18d7b200f29fbb0cc9c8",18:"abdaeaa2156762ec876d",19:"2b9b49e18e64eeb57067",20:"663ea5d2777417161410",21:"b0e7348ff74371924c3b",22:"ae3ca1d035af160b7832",23:"9efbbc6dd315a676ce09",24:"4637a4566383d6e864cf",25:"4f9db49437ea94436d03",26:"e0b684b65d0dbf5d032b",27:"acda88d3c2aa77c9f51c",28:"e1b3c97634b8203082e4",29:"a00a8b4033e1feddfe67",30:"07a39afe8e9361ef44b8",31:"8e77909f1af264b00346",32:"ec0bbd85e6d55909453d",33:"d649a5e4d061985d1c3a",34:"629893b7dd561b646232",35:"d6f0ed32cea79ea624b3",36:"61a1c2681f78e1fd7e80",37:"4353ffce2e97d528bc9b",38:"23b83bd7920693bc35c6",39:"45b7d5b9dbe354877342",40:"18605687ea6ee1539453",41:"78d64ae1581e8ea232cc",42:"56b8d3d551364d7fcf73",43:"dd9e90d8053228b68228",44:"28172dd8dbf35ac350fa",45:"bfad77aa2ad556a32c7c",46:"5e58d02bfb5d53a3e1b5",47:"de0e290ed4c878d0c8c3",48:"6d564387f233c08c800d",49:"01c04b2289a5e66dad82",50:"331006123edd2049b7d9",51:"244dc6f576a64b7c174b",52:"3ee35b29a67a32a31d1d",53:"8ea56d269da04331dd65",54:"4b3de5b9c967cbdcb803",55:"c423570fcbf037d349d9",56:"03f9fa2efa7f832146f1",57:"ec64d57876772f26c560",58:"f8f6469b19558b91d2af",59:"014ae5d12d19afa067f5",60:"633307c153fec68e7774",61:"a6c4d42ed111c8f08d58",62:"1b7880620e9dff5a28ed",63:"02272fe3caa4b8c63c2a",64:"ebc341a9017c4b2c1112",65:"afcb60484e7a9ec39f28",66:"0c2656f4decfecb59972",67:"57f329b5a1c3658845e9",68:"1aaf6a61241359c709e8",69:"518fa345263ef1bb9abc",70:"5d2e33dad1088489e653",71:"e51a1b885d499897baff",72:"bfd2694c02bae17c273e",73:"7751e4d66fee99c15a39",74:"317ccff353170ac7c01f",75:"44714b271d06e1e87012",76:"7eaab216a287b1ffca0e",77:"01b9dbf75e1040e81146",80:"c4a24f0beb29dbd2892a"}[e]+".js";var r=setTimeout(t,12e4);function t(){n.onerror=n.onload=null,clearTimeout(r);var c=a[e];0!==c&&(c&&c[1](new Error("Loading chunk "+e+" failed.")),a[e]=void 0)}return n.onerror=n.onload=t,b.appendChild(n),d},f.m=e,f.c=d,f.d=function(e,c,d){f.o(e,c)||Object.defineProperty(e,c,{configurable:!1,enumerable:!0,get:d})},f.n=function(e){var c=e&&e.__esModule?function(){return e.default}:function(){return e};return f.d(c,"a",c),c},f.o=function(e,c){return Object.prototype.hasOwnProperty.call(e,c)},f.p="./",f.oe=function(e){throw console.error(e),e}}([]);
\ No newline at end of file
......@@ -6,17 +6,17 @@ import { Message } from 'element-ui';
/**
* 获取好办 企业 id
*/
if (!!localStorage.getItem('userInfo')) {
/* if (!!localStorage.getItem('userInfo')) {
let haobanSign = JSON.parse(localStorage.getItem('userInfo')).enterpriseId;
Vue.axios.defaults.headers.post['haobansign'] = haobanSign;
Vue.axios.defaults.headers.get['haobansign'] = haobanSign;
}
} */
Vue.axios.defaults.timeout = 25000;
let local = window.location.origin;
/* if (local.indexOf('localhost') != -1) {
if (local.indexOf('localhost') != -1) {
local = 'http://www.gicdev.com';
} */
}
Vue.axios.interceptors.request.use(
config => {
......
......@@ -5,7 +5,7 @@
<p class="title">选择</p>
<div class="tree-div">
<div class="input-container">
<el-input v-model="searchText" placeholder="请输入内容"></el-input>
<el-input v-model="searchText" placeholder="请输入内容" @keyup.native="value => toInput(e, searchText)"></el-input>
</div>
<div class="select-div" style="width: 100%;">
<el-select v-model="brandSelection" :disabled="(!!currentBrand ? true : false) || (treeSet.storeType == 'addClerk' ? true : false)" placeholder="请选择品牌" @change="selectBrand" style="width: 100%;margin-top:20px;">
......@@ -14,16 +14,25 @@
</el-option>
</el-select>
</div>
<!-- :default-expanded-keys="defaultOpen" -->
<el-tree class="search-menu" node-key="id" ref="tree" :check-strictly="true" :data="menuData" show-checkbox :highlight-current="true" :expand-on-click-node="false" icon-class="open-child" :props="myProps" :filter-node-method="filterNode" @check-change="getCurrentNode" @node-expand="nodeOpen" @node-collapse="nodeClose" @node-click="handleNodeClick">
<span class="custom-tree-node" :class="data.disableOpen ? 'disable-open' : ''" slot-scope="{ node, data }">
<span>{{ data.label }}</span>
<div class="open-btn" v-if="!!data.childrens">
<!-- && !!data.childrens[0].groupId" && !!data.childrens.length-->
<el-button :datatype="data.disableOpen" @click.self.prevent="nodeOpen(data, node)" :disabled="data.disableOpen" type="text" size="small">下级</el-button>
</div>
</span>
</el-tree>
<div class="search-tree" v-show="searchText != ''">
<el-tree class="search-menu" node-key="id" ref="searchTree" :check-strictly="true" :data="searchTextData" show-checkbox :highlight-current="true" :expand-on-click-node="false" icon-class="open-child" :props="myProps" @check-change="searchCheck">
<span class="custom-tree-node" :class="data.disableOpen ? 'disable-open' : ''" slot-scope="{ node, data }">
<span>{{ data.label }}</span>
</span>
</el-tree>
</div>
<div class="search-menu-tree" v-show="searchText == ''">
<!-- :default-expanded-keys="defaultOpen" -->
<el-tree class="search-menu" node-key="id" ref="tree" :check-strictly="true" :data="menuData" show-checkbox :highlight-current="true" :expand-on-click-node="false" icon-class="open-child" :props="myProps" :filter-node-method="filterNode" @check-change="getCurrentNode" @node-expand="nodeOpen" @node-collapse="nodeClose" @node-click="handleNodeClick">
<span class="custom-tree-node" :class="data.disableOpen ? 'disable-open' : ''" slot-scope="{ node, data }">
<span>{{ data.label }}</span>
<div class="open-btn" v-if="!!data.childrens">
<!-- && !!data.childrens[0].groupId" && !!data.childrens.length-->
<el-button :datatype="data.disableOpen" @click.self.prevent="nodeOpen(data, node)" :disabled="data.disableOpen" type="text" size="small">下级</el-button>
</div>
</span>
</el-tree>
</div>
</div>
</div>
<div class="selected-area t-a-select">
......@@ -53,7 +62,8 @@
</template>
<script>
import { getRequest } from '@/api/api';
import { _throttle } from '@/common/js/public';
import errMsg from '@/common/js/error';
import { _throttle, _debounce } from '@/common/js/public';
export default {
name: 'vue-select-employee',
props: {
......@@ -107,6 +117,7 @@ export default {
data() {
return {
searchText: '',
searchTextData: [],
myProps: {
children: 'childrens',
label: 'label',
......@@ -126,6 +137,48 @@ export default {
},
methods: {
/**
* 输入搜索
*
*/
toInput: _debounce(function(e, value) {
let that = this;
if (value == '') {
return false;
}
that.getSearchData();
}, 500),
/**
* 获取搜索数据
*
*/
getSearchData() {
let that = this;
if (that.searchText == '') {
return false;
}
let params = {
keyWord: that.searchText,
brandId: that.brands[that.brandSelection].brandId,
type: that.selectType,
appScene: that.appScene
};
getRequest('/haoban-manage-web/emp/plugin_search', params)
.then(res => {
let resData = res.data;
if (resData.errorCode == 1) {
that.searchTextData = [];
that.searchTextData = [...resData.result.departmentList, ...resData.result.storeList, ...resData.result.searchList];
that.searchTextData.forEach(ele => {
ele.label = ele.name || ele.storeName; // 新增
ele.id = ele.groupId || ele.storeId || ele.employeeClerkId; // 新增
});
} else {
errMsg.errorMsg(resData);
}
})
.catch(e => {});
},
/**
* 获取分组架构
*/
getGroupData() {
......@@ -225,6 +278,25 @@ export default {
});
}, 100),
/**
* 搜索 tree 选择
*
*/
searchCheck: _throttle(function(obj, isCheck, child) {
let that = this;
// console.log(obj, isCheck, child);
that.$nextTick(() => {
that.selectedList = that.$refs.searchTree.getCheckedNodes();
// 判断单选
if (that.treeSet.isSingle && that.selectedList.length > 1) {
let index = that.selectedList.indexOf(obj);
that.selectedList.splice(1 - index, 1);
that.$refs.searchTree.setCheckedNodes(that.selectedList);
that.$refs.tree.setCheckedNodes(that.selectedList);
}
});
}, 100),
/**
* 节点展开时,禁用复选框
*/
nodeOpen(data, node) {
......@@ -382,11 +454,13 @@ export default {
that.selectedList.splice(index, 1);
index--;
}
this.$refs.tree.setCheckedNodes(that.selectedList);
that.$refs.tree.setCheckedNodes(that.selectedList);
that.$refs.searchTree.setCheckedNodes(that.selectedList);
} else {
let index = this.selectedList.indexOf(obj);
this.selectedList.splice(index, 1);
this.$refs.tree.setCheckedNodes(this.selectedList);
let index = that.selectedList.indexOf(obj);
that.selectedList.splice(index, 1);
that.$refs.tree.setCheckedNodes(that.selectedList);
that.$refs.searchTree.setCheckedNodes(that.selectedList);
}
},
/**
......@@ -402,6 +476,7 @@ export default {
*/
selectBrand(val) {
let that = this;
that.getSearchData();
that.$nextTick(() => {
that.menuData = [that.brands[val]]; // 默认品牌数据为分组第一层数据
that.brands[val].hasLoad = true;
......@@ -456,7 +531,7 @@ export default {
},
watch: {
searchText(newK, old) {
this.$refs.tree.filter(newK);
// this.$refs.tree.filter(newK);
},
defaultList: {
handler(newValue, oldValue) {
......
......@@ -211,11 +211,8 @@ export default {
this.$message.error('文件格式不正确!');
return false;
}
/* eslint-disable */
console.log(file, xlsIndex)
let ext = file.name.substring(xlsIndex + 1, file.name.length);
let isExcel = ext.includes('xls') || ext.includes('xlsx');
console.log(ext, isExcel)
if (!isExcel) {
this.$message.error('文件格式必须为 xls 或 xlsx 格式!');
}
......
......@@ -202,9 +202,13 @@ export default {
/* eslint-disable */
handlePreview(file) {
},
uploadSuccess() {
uploadSuccess(res, file) {
if (res.errorCode == 1) {
this.uploadSuccessMsg = res.message.split(',');
this.$message({
message: res.message,
type: 'success'
});
} else {
this.$message.error(res.message);
}
......
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