Commit 109944c4 by 无尘

style: 修改批量导入导出样式

parent 7f4c6da3
<!DOCTYPE html><html><head><meta charset=utf-8><link rel="shortcut icon" href=./favicon.ico><title>好办管理平台</title><link href=./static/css/app.5cfa077464a3ed0bc8a2d4c4498ab97d.css rel=stylesheet></head><body style="min-width: 1400px;"><div id=app></div><script type=text/javascript src=./static/js/manifest.67a9b4ea55de0d498a04.js></script><script type=text/javascript src=./static/js/vendor.fe6bbed1214c1931680c.js></script><script type=text/javascript src=./static/js/app.00e817f90a91aa06e73f.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.46c26300f565a9cd215a04c2f8607024.css rel=stylesheet></head><body style="min-width: 1400px;"><div id=app></div><script type=text/javascript src=./static/js/manifest.2220ac780ff47077515b.js></script><script type=text/javascript src=./static/js/vendor.fe6bbed1214c1931680c.js></script><script type=text/javascript src=./static/js/app.93008e343671cc91ab62.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.
......@@ -325,7 +325,19 @@ input:focus {
display: inline-block;
}
.block {
display: block;
}
.bdr-box {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
.border-box {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
......
webpackJsonp([16],{"738z":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=a("3Xzz"),s=a("elmV"),o=a("P9l9"),l=a("O3H5"),n={name:"employee-io",components:{navCrumb:i.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:"employeeRecord"},{name:"导入员工档案",path:""}],windowH:window.screen.availHeight-180+"px",host:window.location.origin,type:"import",fileList:[],url:t+"/haoban-manage-web/record/record-template-file-upload",logList:[],loading:!0,pageSize:20,currentPage:1,total:0,tempList:[],dialogVisible:!1}},methods:{handleSizeChange:function(t){this.pageSize=t,this.getErrorNote()},handleCurrentChange:function(t){this.currentPage=t,this.getErrorNote()},resetList:function(t){this.fileList=[],"note"==t&&this.getErrorNote()},getErrorNote:function(){var t=this,e={departmentId:t.$route.query.departmentId,importCode:t.$route.query.importCode,pageNum:t.currentPage,pageSize:t.pageSize};Object(o.a)("/haoban-manage-web/record/find-error-log",e).then(function(e){console.log(e),1==e.data.errorCode?(console.log(e.data),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 a=[];t.forEach(function(t){a.push({fieldCode:t.fieldCode,fieldName:t.fieldName})}),this.tempList=a,this.logList=e,this.loading=!1},beforeAvatarUpload:function(t){console.log(t.type);var e="application/vnd.ms-excel"===fileType||"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"===fileType;return e||this.$message.error("文件格式必须为 xls 或 xlsx 格式!"),e},uploadSuccess:function(){this.fileList=[],this.type="note",this.getErrorNote()},submitUpload:function(t){this.$refs[t].submit()},getChange:function(t,e){console.log(t.raw.type);var a=e.length-1<0?0:e.length-1,i=t.raw.type;if(!("application/vnd.ms-excel"===i||"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"===i))return this.$message.error("文件格式必须为 xls 或 xlsx 格式!"),this.fileList.splice(a,1),!1;this.fileList=[e[a]]},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(){console.log(document.querySelector(".contact-wrap__body")),document.querySelector(".contact-wrap__body").style.overflow="auto"}},r={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"common-set-wrap record-io-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"},[t.dialogVisible?[a("export-set",{on:{cancelCho:t.cancelCho}})]:[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"}},[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"}},[a("span",{staticClass:"ft-large"},[t._v("①")]),t._v("下载模板\n "),a("a",{staticClass:"d-u-btn",attrs:{href:"http://www.gicdev.com/haoban-manage-web/record/export-record-template.json"}},[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,multiple:!1,"file-list":t.fileList,"auto-upload":!1,"before-upload":t.beforeAvatarUpload,"on-success":t.uploadSuccess,"on-change":t.getChange}},[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("上传")])],1)]):"export"==t.type?a("div",{staticClass:"handle-area import"},[a("div",{staticClass:"step-div",staticStyle:{"margin-bottom":"90px"}},[a("span",{staticClass:"ft-large"},[t._v("①")]),t._v("导出员工档案\n "),a("a",{staticClass:"d-u-btn"},[a("el-button",{attrs:{type:"primary"},on:{click:t.callExport}},[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:"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}},[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("uploadEdit")}}},[t._v("上传")])],1)]):a("div",{staticClass:"error-log import"},[a("div",{staticClass:"title-area"},[a("div",{staticClass:"tip"}),t._v(" "),a("a",{attrs:{href:t.host+"/haoban-manage-web/record/error-log-export?importCode="+t.$route.query.importCode}},[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,height:"400"}},[a("el-table-column",{attrs:{type:"index",width:"50",label:"序号"}}),t._v(" "),a("el-table-column",{attrs:{width:"200",prop:"fieldValue",label:"字段值"}}),t._v(" "),a("el-table-column",{attrs:{width:"200",prop:"fieldName",label:"字段名"}}),t._v(" "),a("el-table-column",{attrs:{width:"200",prop:"failReason",label:"错误原因"}}),t._v(" "),t._l(t.tempList,function(t){return[a("el-table-column",{key:t.fieldCode,attrs:{width:"200",label:t.fieldName,prop:t.fieldCode}})]})],2),t._v(" "),a("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}})],1)]],2)])]),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"},[a("li",{staticClass:"tip"},[t._v("姓名必须和好办企业通讯录中的员工姓名保持一致,手机号必须为员工注册好办的手机号")]),t._v(" "),a("li",{staticClass:"tip"},[t._v("员工档案导入时,直接以手机号去做匹配,通讯录中不存在的将无法导入(模板中配置的部门、职位、code,这些字段信息请保持与企业通讯录中一致,这几个字段的信息将不会修改通讯录的信息,直接取该成员对应的通讯录的字段信息)")]),t._v(" "),a("li",{staticClass:"tip"},[t._v("如果想要新增字段,可在后台档案设置中增加,再导入模板")]),t._v(" "),a("li",{staticClass:"tip"},[t._v("字段类型为图片上传、多选的字段无法导入、导出")]),t._v(" "),a("li",{staticClass:"tip"},[t._v("确保导入的表头字段和后台配置表头字段的名称一致(模板下载时间不可修改)")]),t._v(" "),a("li",{staticClass:"tip"},[t._v("由于数据量可能较大,每次最多导入2000条员工档案,若超过只取前2000条,可以分多次导入")])])}]};var c=a("VU/8")(n,r,!1,function(t){a("E+By")},null,null);e.default=c.exports},"E+By":function(t,e){},O3H5:function(t,e,a){"use strict";var i=a("mvHQ"),s=a.n(i),o=a("P9l9"),l=(a("0xDb"),a("DAYN")),n={name:"export-set",components:{draggable:a.n(l).a},data:function(){return{tempList:[],checkList:[],origin:[],checkAll:!1,isIndeterminate:!1,checkedList:[]}},methods:{checkThis:function(t){t.checked&&this.checkedList.push(t)},handleCheckAllChange:function(t){this.checkedList=[],this.origin.forEach(function(e,a){e.checked=t,t&&(e.order=a+1)}),t&&(this.checkedList=this.origin.slice(0))},getTemplate:function(){var t=this;Object(o.a)("/haoban-manage-web/record/employee-find-template",{}).then(function(e){1==e.data.errorCode?t.formatTemplateList(e.data.result):t.$message.error({message:e.data.message})}).catch(function(e){t.$message.error({message:e.message})})},formatTemplateList:function(t){var e=[],a=[],i=t;t.forEach(function(t){t.title=t.fieldName,t.name=t.fieldName,t.checked=!1;var a=[];i.forEach(function(e){e.parentCode==t.fieldCode&&a.push(e)}),a.sort(function(t,e){return 1*t.sort-1*e.sort}),a.length>0&&(t.childrens=a),0==t.parentCode&&e.push(t)}),e.sort(function(t,e){return 1*t.sort-1*e.sort}),e.forEach(function(t){a=a.concat(t.childrens)}),this.origin=a,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,a=t._self._c||e;return a("div",{staticClass:"export-set-container"},[t._m(0),t._v(" "),a("div",{staticClass:"cho-list"},[a("draggable",{model:{value:t.checkedList,callback:function(e){t.checkedList=e},expression:"checkedList"}},[t._l(t.checkedList,function(e){return[e.checked?a("div",{key:e.fieldCode,staticClass:"cho"},[t._v(t._s(e.fieldName))]):t._e()]})],2)],1),t._v(" "),a("div",{staticClass:"cho-area"},[a("div",{staticClass:"title"},[t._v("选择需要导出的字段")]),t._v(" "),a("div",{staticClass:"cho-area-group"},[a("div",{staticClass:"group-div"},[a("div",{staticClass:"group-title"}),t._v(" "),a("ul",{staticClass:"group-son-list"},[a("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,i){return a("div",{key:e.fieldCode+i,staticClass:"group-div"},[a("div",{staticClass:"group-title"},[t._v(t._s(e.title))]),t._v(" "),a("ul",{staticClass:"group-son-list"},[t._l(t.origin,function(i){return[i.parentCode==e.fieldCode?a("li",{key:i.fieldCode},[a("el-checkbox",{key:i.fieldCode,attrs:{label:i.fieldName},on:{change:function(e){t.checkThis(i)}},model:{value:i.checked,callback:function(e){t.$set(i,"checked",e)},expression:"items.checked"}},[t._v(t._s(i.fieldName))])],1):t._e()]})],2)])})],2)]),t._v(" "),a("div",{staticClass:"handle-cho-btn"},[a("el-button",{staticClass:"export-btn",attrs:{type:"primary",disabled:t.checkedList.length<1},on:{click:t.exportCho}},[t._v("导出"),a("i",{staticClass:"iconfont icon-icon_yunxiazai"})]),t._v(" "),a("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=a("VU/8")(n,r,!1,function(t){a("s9fp")},null,null);e.a=c.exports},s9fp:function(t,e){}});
\ No newline at end of file
webpackJsonp([16],{"738z":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=a("3Xzz"),s=a("elmV"),o=a("P9l9"),l=a("O3H5"),n={name:"employee-io",components:{navCrumb:i.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:"employeeRecord"},{name:"导入员工档案",path:""}],windowH:window.screen.availHeight-180+"px",host:window.location.origin,type:"import",fileList:[],url:t+"/haoban-manage-web/record/record-template-file-upload",logList:[],loading:!0,pageSize:20,currentPage:1,total:0,tempList:[],dialogVisible:!1}},methods:{handleSizeChange:function(t){this.pageSize=t,this.getErrorNote()},handleCurrentChange:function(t){this.currentPage=t,this.getErrorNote()},resetList:function(t){this.fileList=[],"note"==t&&this.getErrorNote()},getErrorNote:function(){var t=this,e={departmentId:t.$route.query.departmentId,importCode:t.$route.query.importCode,pageNum:t.currentPage,pageSize:t.pageSize};Object(o.a)("/haoban-manage-web/record/find-error-log",e).then(function(e){console.log(e),1==e.data.errorCode?(console.log(e.data),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 a=[];t.forEach(function(t){a.push({fieldCode:t.fieldCode,fieldName:t.fieldName})}),this.tempList=a,this.logList=e,this.loading=!1},beforeAvatarUpload:function(t){console.log(t.type);var e="application/vnd.ms-excel"===fileType||"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"===fileType;return e||this.$message.error("文件格式必须为 xls 或 xlsx 格式!"),e},uploadSuccess:function(){this.fileList=[],this.type="note",this.getErrorNote()},submitUpload:function(t){this.$refs[t].submit()},getChange:function(t,e){var a=e.length-1<0?0:e.length-1,i=t.raw.type;if(!("application/vnd.ms-excel"===i||"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"===i))return this.$message.error("文件格式必须为 xls 或 xlsx 格式!"),this.fileList.splice(a,1),!1;this.fileList=[e[a]]},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,a=t._self._c||e;return a("div",{staticClass:"common-set-wrap record-io-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"},[t.dialogVisible?[a("export-set",{on:{cancelCho:t.cancelCho}})]:[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"}},[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/record/export-record-template.json"}},[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,multiple:!1,"file-list":t.fileList,"auto-upload":!1,"before-upload":t.beforeAvatarUpload,"on-success":t.uploadSuccess,"on-change":t.getChange}},[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("上传")])],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"},[a("el-button",{attrs:{type:"primary"},on:{click:t.callExport}},[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:"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}},[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("uploadEdit")}}},[t._v("上传")])],1)]):a("div",{staticClass:"error-log import"},[a("div",{staticClass:"title-area"},[a("div",{staticClass:"tip"}),t._v(" "),a("a",{attrs:{href:t.host+"/haoban-manage-web/record/error-log-export?importCode="+t.$route.query.importCode}},[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,height:"400"}},[a("el-table-column",{attrs:{type:"index",width:"50",label:"序号"}}),t._v(" "),a("el-table-column",{attrs:{width:"200",prop:"fieldValue",label:"字段值"}}),t._v(" "),a("el-table-column",{attrs:{width:"200",prop:"fieldName",label:"字段名"}}),t._v(" "),a("el-table-column",{attrs:{width:"200",prop:"failReason",label:"错误原因"}}),t._v(" "),t._l(t.tempList,function(t){return[a("el-table-column",{key:t.fieldCode,attrs:{width:"200",label:t.fieldName,prop:t.fieldCode}})]})],2),t._v(" "),a("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}})],1)]],2)])]),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"},[a("li",{staticClass:"tip"},[t._v("姓名必须和好办企业通讯录中的员工姓名保持一致,手机号必须为员工注册好办的手机号")]),t._v(" "),a("li",{staticClass:"tip"},[t._v("员工档案导入时,直接以手机号去做匹配,通讯录中不存在的将无法导入(模板中配置的部门、职位、code,这些字段信息请保持与企业通讯录中一致,这几个字段的信息将不会修改通讯录的信息,直接取该成员对应的通讯录的字段信息)")]),t._v(" "),a("li",{staticClass:"tip"},[t._v("如果想要新增字段,可在后台档案设置中增加,再导入模板")]),t._v(" "),a("li",{staticClass:"tip"},[t._v("字段类型为图片上传、多选的字段无法导入、导出")]),t._v(" "),a("li",{staticClass:"tip"},[t._v("确保导入的表头字段和后台配置表头字段的名称一致(模板下载时间不可修改)")]),t._v(" "),a("li",{staticClass:"tip"},[t._v("由于数据量可能较大,每次最多导入2000条员工档案,若超过只取前2000条,可以分多次导入")])])}]};var c=a("VU/8")(n,r,!1,function(t){a("bxH+")},null,null);e.default=c.exports},O3H5:function(t,e,a){"use strict";var i=a("mvHQ"),s=a.n(i),o=a("P9l9"),l=(a("0xDb"),a("DAYN")),n={name:"export-set",components:{draggable:a.n(l).a},data:function(){return{tempList:[],checkList:[],origin:[],checkAll:!1,isIndeterminate:!1,checkedList:[]}},methods:{checkThis:function(t){t.checked&&this.checkedList.push(t)},handleCheckAllChange:function(t){this.checkedList=[],this.origin.forEach(function(e,a){e.checked=t,t&&(e.order=a+1)}),t&&(this.checkedList=this.origin.slice(0))},getTemplate:function(){var t=this;Object(o.a)("/haoban-manage-web/record/employee-find-template",{}).then(function(e){1==e.data.errorCode?t.formatTemplateList(e.data.result):t.$message.error({message:e.data.message})}).catch(function(e){t.$message.error({message:e.message})})},formatTemplateList:function(t){var e=[],a=[],i=t;t.forEach(function(t){t.title=t.fieldName,t.name=t.fieldName,t.checked=!1;var a=[];i.forEach(function(e){e.parentCode==t.fieldCode&&a.push(e)}),a.sort(function(t,e){return 1*t.sort-1*e.sort}),a.length>0&&(t.childrens=a),0==t.parentCode&&e.push(t)}),e.sort(function(t,e){return 1*t.sort-1*e.sort}),e.forEach(function(t){a=a.concat(t.childrens)}),this.origin=a,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,a=t._self._c||e;return a("div",{staticClass:"export-set-container"},[t._m(0),t._v(" "),a("div",{staticClass:"cho-list"},[a("draggable",{model:{value:t.checkedList,callback:function(e){t.checkedList=e},expression:"checkedList"}},[t._l(t.checkedList,function(e){return[e.checked?a("div",{key:e.fieldCode,staticClass:"cho"},[t._v(t._s(e.fieldName))]):t._e()]})],2)],1),t._v(" "),a("div",{staticClass:"cho-area"},[a("div",{staticClass:"title"},[t._v("选择需要导出的字段")]),t._v(" "),a("div",{staticClass:"cho-area-group"},[a("div",{staticClass:"group-div"},[a("div",{staticClass:"group-title"}),t._v(" "),a("ul",{staticClass:"group-son-list"},[a("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,i){return a("div",{key:e.fieldCode+i,staticClass:"group-div"},[a("div",{staticClass:"group-title"},[t._v(t._s(e.title))]),t._v(" "),a("ul",{staticClass:"group-son-list"},[t._l(t.origin,function(i){return[i.parentCode==e.fieldCode?a("li",{key:i.fieldCode},[a("el-checkbox",{key:i.fieldCode,attrs:{label:i.fieldName},on:{change:function(e){t.checkThis(i)}},model:{value:i.checked,callback:function(e){t.$set(i,"checked",e)},expression:"items.checked"}},[t._v(t._s(i.fieldName))])],1):t._e()]})],2)])})],2)]),t._v(" "),a("div",{staticClass:"handle-cho-btn"},[a("el-button",{staticClass:"export-btn",attrs:{type:"primary",disabled:t.checkedList.length<1},on:{click:t.exportCho}},[t._v("导出"),a("i",{staticClass:"iconfont icon-icon_yunxiazai"})]),t._v(" "),a("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=a("VU/8")(n,r,!1,function(t){a("s9fp")},null,null);e.a=c.exports},"bxH+":function(t,e){},s9fp:function(t,e){}});
\ No newline at end of file
webpackJsonp([26],{Rwbg:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=a("3Xzz"),i=a("elmV"),l=a("P9l9"),o={name:"employee-io",components:{navCrumb:s.a,uploadExcelComponent:i.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:"administrativeFrame"},{name:"批量导入导出",path:""}],host:window.location.origin,windowH:window.screen.availHeight-180+"px",type:"import",fileList:[],url:t+"/haoban-manage-web/emp/upload",logList:[],loading:!0,pageSize:20,currentPage:1,total: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(l.a)("/haoban-manage-web/error-log-page",e).then(function(e){1==e.data.errorCode?(console.log(e.data),t.total=e.data.result.totalCount,t.logList=e.data.result.result,t.loading=!1):t.$message.error({message:e.data.message})}).catch(function(e){t.$message.error({message:e.message})})},uploadSuccess:function(){this.fileList=[],this.type="note",this.getErrorNote()},submitUpload:function(t){this.$refs[t].submit()},getChange:function(t,e){var a=e.length-1<0?0:e.length-1,s=t.raw.type;if(!("application/vnd.ms-excel"===s||"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"===s))return this.$message.error("文件格式必须为 xls 或 xlsx 格式!"),this.fileList.splice(a,1),!1;this.fileList=[e[a]]}},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,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"}},[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,"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("上传")])],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:t.host+"/haoban-manage-web/emp/export?departmentId="+t.$route.query.departmentId+"&showChild="+t.$route.query.showChildMember}},[a("el-button",{attrs:{type:"primary"}},[t._v("\n 下载"),a("i",{staticClass:"iconfont icon-icon_yunxiazai m-l-5"})])],1),t._v("\n 批量修改员工信息\n ")]),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:"uploadEdit",staticClass:"upload-demo",attrs:{action:t.url,"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("uploadEdit")}}},[t._v("上传")])],1)]):a("div",{staticClass:"error-log import"},[a("div",{staticClass:"title-area"},[t._m(1),t._v(" "),a("a",{attrs:{href:t.host+"/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:"name"}}),t._v(" "),a("el-table-column",{attrs:{label:"手机号",prop:"phoneNumber"}}),t._v(" "),a("el-table-column",{attrs:{label:"部门ID",prop:"departmentId"}}),t._v(" "),a("el-table-column",{attrs:{label:"职位",prop:"positionName"}}),t._v(" "),a("el-table-column",{attrs:{label:"是否此部门负责人(是/否)",prop:"isManager"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(1==e.row.isManager?"是":"否")+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"入职时间",prop:"hireDate"}})],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("由于你的企业未进行企业认证,通讯录最多只能导入200人以内的员工,如有超出可先进行"),a("a",{staticClass:"a-href"},[t._v("企业认证")])]),t._v(" "),a("li",{staticClass:"tip"},[t._v("如需更新已存在的员工,可逐个进行修改,或请先导出通讯录,在导出表格里进行修改")]),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("员工所在部门:请先到后台创建部门,将部门id填入导入表格中,导入中,若找不到对应部门,将直接将员工挂在根目录下面")]),t._v(" "),a("li",{staticClass:"tip"},[t._v("未认证企业通讯录最多只能导入200人,超出后无法导入,请先进行企业认证")])])},function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"tip"},[this._v("\n 导入总条数:0条,成功导入0条,"),e("span",{staticClass:"red"},[this._v("错误导入0条")])])}]};var n=a("VU/8")(o,r,!1,function(t){a("zcp1")},null,null);e.default=n.exports},zcp1:function(t,e){}});
\ No newline at end of file
webpackJsonp([26],{OADW:function(e,t){},"rs/A":function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=r("mvHQ"),l=r.n(a),s=r("3Xzz"),o=r("c4uw"),i=r("Ie7z"),n=(r("Mk6G"),r("3E4D")),c=r("Ch4/"),u=r("PI0u"),d=r("P9l9"),m={name:"addAdminRole",data:function(){return{navpath:[{name:"首页",path:"/index"},{name:"设置",path:"/companyAddress"},{name:"设置子管理员",path:"/setChildAdmin"},{name:"添加成员",path:""}],ruleForm:{brandId:"",roleId:"",roleCode:"admin",roleName:"企业管理员",peopleList:[],departList:[],brandValue:[],brandOptions:[]},rules:{},treeSet:{isSelectPerson:!1,dialogVisible:!1,isSingle:!1},treeData:{},defaultSelection:[],changed:"",onlyPerson:!1,selectType:"",defaultStoreList:[],storeTreeSet:{isSelectPerson:!1,dialogVisible:!1,isSingle:!1}}},computed:{},methods:{changeRoute:function(e){this.$router.push(e)},submitForm:Object(u.a)(function(e){var t=this;t.$refs[e].validate(function(e){if(!e)return!1;var r=[],a=t.ruleForm.departList.length&&t.ruleForm.peopleList.length&&t.ruleForm.brandValue.length;if(a){a=null,t.ruleForm.departList.forEach(function(e){r.push({groupId:e.groupId})}),t.ruleForm.brandValue.forEach(function(e){"admin"===t.ruleForm.roleCode?r.push({groupId:e}):e.storeId?r.push({storeId:e.storeId}):r.push({groupId:e.groupId})});var l=t.ruleForm.peopleList.map(function(e){return e.employeeClerkId}).join(",");t.postSave(r,l)}else t.$message.error({message:"请完善信息"})})},500),postSave:function(e,t){var r=this,a={data:l()(e),roleId:r.ruleForm.roleId,brandId:r.ruleForm.brandId,clerkIds:t};Object(d.c)("/haoban-manage-web/save-clerk-role",a).then(function(e){var t=e.data;if(1==t.errorCode)return n.a.showmsg("添加成功","success"),void r.changeRoute("/setChildAdmin");c.a.errorMsg(t)}).catch(function(e){r.$message.error({duration:1e3,message:e.message})})},delField:function(e,t,r){this.$alert("确定要删除?","提示",{confirmButtonText:"确定",cancelButtonText:"取消"}).then(function(t){t.value;r.splice(e,1)}).catch(function(){})},delDepart:function(e,t){t.splice(e,1)},showDialogLayer:function(e,t){if(this.selectType=e,this.changed=e,"store"===e)return this.defaultStoreList=t,void(this.storeTreeSet={dialogVisible:!0,isSingle:!1,isSelectPerson:!0});this.treeSet={dialogVisible:!0,isSingle:!1,isSelectPerson:!1},"people"===e?(this.onlyPerson=!0,this.treeSet={dialogVisible:!0,isSingle:!1,isSelectPerson:!0}):this.onlyPerson=!1,this.defaultSelection=t,this.treeData.hasOwnProperty("treeData")},handleSelectedList:function(e){"people"===this.selectType?this.ruleForm.peopleList=e:"store"===this.selectType?this.ruleForm.brandValue=e:this.ruleForm.departList=e},getBrandData:function(){var e=this;Object(d.c)("/haoban-manage-web/brand/list",{}).then(function(t){var r=t.data;1!=r.errorCode?c.a.errorMsg(r):r.result&&r.result.length&&(e.ruleForm.brandOptions=r.result)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},getUserData:function(){var e=this,t={roleId:e.ruleForm.roleId,userId:e.ruleForm.userId};Object(d.c)("/haoban-manage-web/find-clerk-role",t).then(function(t){var r=t.data;1!=r.errorCode?c.a.errorMsg(r):r.result&&(e.ruleForm.peopleList=[r.result.user],r.result.admList.forEach(function(e,t){e.id=e.groupId,e.label=e.name}),e.ruleForm.departList=r.result.admList||[],r.result.storeList.forEach(function(e,t){e.id=e.groupId?e.groupId:e.storeId,e.label=e.name}),e.ruleForm.brandValue="admin"===e.ruleForm.roleCode?r.result.storeList.map(function(e){return e.groupId}):r.result.storeList||[],console.log(e.ruleForm))}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},mounted:function(){this.getBrandData(),this.ruleForm.brandId=this.$route.query.brandId,this.$route.query.hasOwnProperty("roleId")&&(this.ruleForm.roleId=this.$route.query.roleId),this.$route.query.hasOwnProperty("roleCode")&&(this.ruleForm.roleCode=this.$route.query.roleCode,this.ruleForm.roleName="admin"===this.$route.query.roleCode?"企业管理员":"子管理员"),this.$route.query.hasOwnProperty("userId")&&(this.ruleForm.userId=this.$route.query.userId,this.navpath=[{name:"首页",path:"/index"},{name:"设置",path:"/companyAddress"},{name:"设置子管理员",path:"/setChildAdmin"},{name:"编辑成员",path:""}],this.getUserData())},components:{navCrumb:s.a,vueSelectEmployee:o.a,vueSelectStore:i.a}},p={render:function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"companyAddress-wrap common-set-wrap"},[r("nav-crumb",{attrs:{navpath:e.navpath}}),e._v(" "),r("div",{staticClass:"right-content"},[r("div",{staticClass:"right-box",style:{height:e.$store.state.bgHeight}},[r("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,rules:e.rules,"label-width":"100px"}},[r("el-form-item",{attrs:{label:"管理员角色",prop:"roleName"}},[r("el-input",{staticClass:"w-380",attrs:{disabled:"",placeholder:""},model:{value:e.ruleForm.roleName,callback:function(t){e.$set(e.ruleForm,"roleName",t)},expression:"ruleForm.roleName"}})],1),e._v(" "),r("el-form-item",{attrs:{label:e.ruleForm.userId?"":"选择人员",prop:"name"}},[r("div",{staticClass:"flex w-380 flex-wrap"},[e._l(e.ruleForm.peopleList,function(t,a){return[r("div",{key:a+t.name,staticClass:"people-cell flex flex-align-center flex-pack-center flex-column"},[r("div",{class:["inline-block","img-wrap","flex","flex-align-center","flex-pack-center",t.headPic?"":"img-wrap-bg"]},[t.headPic?r("img",{attrs:{src:t.headPic,alt:"headPic"}}):r("i",{staticClass:"iconfont icon-yewuduanmorentouxian"}),e._v(" "),e.ruleForm.userId?e._e():r("i",{staticClass:"el-icon-circle-close",on:{click:function(r){r.stopPropagation(),e.delField(a,t,e.ruleForm.peopleList)}}})]),e._v(" "),r("p",[e._v(e._s(t.name))])])]}),e._v(" "),e.ruleForm.userId?e._e():r("div",{staticClass:"people-cell"},[r("span",{staticClass:"add-icon",on:{click:function(t){t.stopPropagation(),e.showDialogLayer("people",e.ruleForm.peopleList)}}},[r("i",{staticClass:"el-icon-plus"})])])],2)]),e._v(" "),r("el-form-item",{staticClass:"m-b-0",attrs:{label:"选择管理范围",prop:"name"}}),e._v(" "),r("el-form-item",{staticClass:"m-b-0 m-t-10",attrs:{label:"行政架构",prop:"name"}},[r("div",{staticClass:"flex w-380 flex-column item-cell-select"},[r("div",{staticClass:"depart-item-wrap"},[r("div",{staticClass:"el-select el-select--large depart-item-content",on:{click:function(t){e.showDialogLayer("depart",e.ruleForm.departList)}}},[r("div",{staticClass:"el-select__tags",staticStyle:{"max-width":"181px"}},[r("span",[e._l(e.ruleForm.departList,function(t,a){return[r("span",{key:a,staticClass:"el-tag el-tag--info el-tag--small"},[r("span",{staticClass:"el-select__tags-text"},[e._v(e._s(t.name))]),r("i",{staticClass:"el-tag__close el-icon-close",on:{click:function(t){t.stopPropagation(),e.delDepart(a,e.ruleForm.departList)}}})])]})],2)])])])])]),e._v(" "),r("el-form-item",{staticClass:"m-t-22",attrs:{label:"门店架构",prop:"name"}},[r("div",{staticClass:"flex w-380 flex-column item-cell-select"},["admin"==e.ruleForm.roleCode?r("div",{staticClass:"store-item-wrap"},[r("el-select",{staticStyle:{width:"213px"},attrs:{multiple:"",placeholder:"请选择"},model:{value:e.ruleForm.brandValue,callback:function(t){e.$set(e.ruleForm,"brandValue",t)},expression:"ruleForm.brandValue"}},e._l(e.ruleForm.brandOptions,function(e){return r("el-option",{key:e.groupId,attrs:{label:e.name,value:e.groupId}})}))],1):e._e(),e._v(" "),"child_admin"==e.ruleForm.roleCode?r("div",{staticClass:"depart-item-wrap"},[r("div",{staticClass:"el-select el-select--large depart-item-content",staticStyle:{width:"213px"},on:{click:function(t){e.showDialogLayer("store",e.ruleForm.brandValue)}}},[r("div",{staticClass:"el-select__tags",staticStyle:{"max-width":"181px"}},[r("span",[e._l(e.ruleForm.brandValue,function(t,a){return[r("span",{key:a,staticClass:"el-tag el-tag--info el-tag--small"},[r("span",{staticClass:"el-select__tags-text"},[e._v(e._s(t.name||t.storeName))]),r("i",{staticClass:"el-tag__close el-icon-close",on:{click:function(t){t.stopPropagation(),e.delDepart(a,e.ruleForm.brandValue)}}})])]})],2)])])]):e._e()])]),e._v(" "),r("el-form-item",{staticClass:"m-t-24"},[r("el-button",{attrs:{type:"primary"},on:{click:function(t){e.submitForm("ruleForm")}}},[e._v("保存")])],1)],1)],1)]),e._v(" "),r("vue-gic-footer"),e._v(" "),r("vue-select-employee",{attrs:{defaultSelection:e.defaultSelection,onlyPerson:e.onlyPerson,treeSet:e.treeSet,changed:e.changed},on:{handleSelectedList:e.handleSelectedList}}),e._v(" "),r("vue-select-store",{ref:"storeSelector",attrs:{treeSet:e.storeTreeSet,selectType:"group-store",defaultList:e.defaultStoreList},on:{handleSelectedList:e.handleSelectedList}})],1)},staticRenderFns:[]};var h=r("VU/8")(m,p,!1,function(e){r("OADW")},"data-v-ee6d678a",null);t.default=h.exports}});
\ No newline at end of file
webpackJsonp([27],{OADW:function(e,t){},"rs/A":function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=r("mvHQ"),l=r.n(a),s=r("3Xzz"),o=r("c4uw"),i=r("Ie7z"),n=(r("Mk6G"),r("3E4D")),c=r("Ch4/"),u=r("PI0u"),d=r("P9l9"),m={name:"addAdminRole",data:function(){return{navpath:[{name:"首页",path:"/index"},{name:"设置",path:"/companyAddress"},{name:"设置子管理员",path:"/setChildAdmin"},{name:"添加成员",path:""}],ruleForm:{brandId:"",roleId:"",roleCode:"admin",roleName:"企业管理员",peopleList:[],departList:[],brandValue:[],brandOptions:[]},rules:{},treeSet:{isSelectPerson:!1,dialogVisible:!1,isSingle:!1},treeData:{},defaultSelection:[],changed:"",onlyPerson:!1,selectType:"",defaultStoreList:[],storeTreeSet:{isSelectPerson:!1,dialogVisible:!1,isSingle:!1}}},computed:{},methods:{changeRoute:function(e){this.$router.push(e)},submitForm:Object(u.a)(function(e){var t=this;t.$refs[e].validate(function(e){if(!e)return!1;var r=[],a=t.ruleForm.departList.length&&t.ruleForm.peopleList.length&&t.ruleForm.brandValue.length;if(a){a=null,t.ruleForm.departList.forEach(function(e){r.push({groupId:e.groupId})}),t.ruleForm.brandValue.forEach(function(e){"admin"===t.ruleForm.roleCode?r.push({groupId:e}):e.storeId?r.push({storeId:e.storeId}):r.push({groupId:e.groupId})});var l=t.ruleForm.peopleList.map(function(e){return e.employeeClerkId}).join(",");t.postSave(r,l)}else t.$message.error({message:"请完善信息"})})},500),postSave:function(e,t){var r=this,a={data:l()(e),roleId:r.ruleForm.roleId,brandId:r.ruleForm.brandId,clerkIds:t};Object(d.c)("/haoban-manage-web/save-clerk-role",a).then(function(e){var t=e.data;if(1==t.errorCode)return n.a.showmsg("添加成功","success"),void r.changeRoute("/setChildAdmin");c.a.errorMsg(t)}).catch(function(e){r.$message.error({duration:1e3,message:e.message})})},delField:function(e,t,r){this.$alert("确定要删除?","提示",{confirmButtonText:"确定",cancelButtonText:"取消"}).then(function(t){t.value;r.splice(e,1)}).catch(function(){})},delDepart:function(e,t){t.splice(e,1)},showDialogLayer:function(e,t){if(this.selectType=e,this.changed=e,"store"===e)return this.defaultStoreList=t,void(this.storeTreeSet={dialogVisible:!0,isSingle:!1,isSelectPerson:!0});this.treeSet={dialogVisible:!0,isSingle:!1,isSelectPerson:!1},"people"===e?(this.onlyPerson=!0,this.treeSet={dialogVisible:!0,isSingle:!1,isSelectPerson:!0}):this.onlyPerson=!1,this.defaultSelection=t,this.treeData.hasOwnProperty("treeData")},handleSelectedList:function(e){"people"===this.selectType?this.ruleForm.peopleList=e:"store"===this.selectType?this.ruleForm.brandValue=e:this.ruleForm.departList=e},getBrandData:function(){var e=this;Object(d.c)("/haoban-manage-web/brand/list",{}).then(function(t){var r=t.data;1!=r.errorCode?c.a.errorMsg(r):r.result&&r.result.length&&(e.ruleForm.brandOptions=r.result)}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})},getUserData:function(){var e=this,t={roleId:e.ruleForm.roleId,userId:e.ruleForm.userId};Object(d.c)("/haoban-manage-web/find-clerk-role",t).then(function(t){var r=t.data;1!=r.errorCode?c.a.errorMsg(r):r.result&&(e.ruleForm.peopleList=[r.result.user],r.result.admList.forEach(function(e,t){e.id=e.groupId,e.label=e.name}),e.ruleForm.departList=r.result.admList||[],r.result.storeList.forEach(function(e,t){e.id=e.groupId?e.groupId:e.storeId,e.label=e.name}),e.ruleForm.brandValue="admin"===e.ruleForm.roleCode?r.result.storeList.map(function(e){return e.groupId}):r.result.storeList||[],console.log(e.ruleForm))}).catch(function(t){e.$message.error({duration:1e3,message:t.message})})}},mounted:function(){this.getBrandData(),this.ruleForm.brandId=this.$route.query.brandId,this.$route.query.hasOwnProperty("roleId")&&(this.ruleForm.roleId=this.$route.query.roleId),this.$route.query.hasOwnProperty("roleCode")&&(this.ruleForm.roleCode=this.$route.query.roleCode,this.ruleForm.roleName="admin"===this.$route.query.roleCode?"企业管理员":"子管理员"),this.$route.query.hasOwnProperty("userId")&&(this.ruleForm.userId=this.$route.query.userId,this.navpath=[{name:"首页",path:"/index"},{name:"设置",path:"/companyAddress"},{name:"设置子管理员",path:"/setChildAdmin"},{name:"编辑成员",path:""}],this.getUserData())},components:{navCrumb:s.a,vueSelectEmployee:o.a,vueSelectStore:i.a}},p={render:function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"companyAddress-wrap common-set-wrap"},[r("nav-crumb",{attrs:{navpath:e.navpath}}),e._v(" "),r("div",{staticClass:"right-content"},[r("div",{staticClass:"right-box",style:{height:e.$store.state.bgHeight}},[r("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,rules:e.rules,"label-width":"100px"}},[r("el-form-item",{attrs:{label:"管理员角色",prop:"roleName"}},[r("el-input",{staticClass:"w-380",attrs:{disabled:"",placeholder:""},model:{value:e.ruleForm.roleName,callback:function(t){e.$set(e.ruleForm,"roleName",t)},expression:"ruleForm.roleName"}})],1),e._v(" "),r("el-form-item",{attrs:{label:e.ruleForm.userId?"":"选择人员",prop:"name"}},[r("div",{staticClass:"flex w-380 flex-wrap"},[e._l(e.ruleForm.peopleList,function(t,a){return[r("div",{key:a+t.name,staticClass:"people-cell flex flex-align-center flex-pack-center flex-column"},[r("div",{class:["inline-block","img-wrap","flex","flex-align-center","flex-pack-center",t.headPic?"":"img-wrap-bg"]},[t.headPic?r("img",{attrs:{src:t.headPic,alt:"headPic"}}):r("i",{staticClass:"iconfont icon-yewuduanmorentouxian"}),e._v(" "),e.ruleForm.userId?e._e():r("i",{staticClass:"el-icon-circle-close",on:{click:function(r){r.stopPropagation(),e.delField(a,t,e.ruleForm.peopleList)}}})]),e._v(" "),r("p",[e._v(e._s(t.name))])])]}),e._v(" "),e.ruleForm.userId?e._e():r("div",{staticClass:"people-cell"},[r("span",{staticClass:"add-icon",on:{click:function(t){t.stopPropagation(),e.showDialogLayer("people",e.ruleForm.peopleList)}}},[r("i",{staticClass:"el-icon-plus"})])])],2)]),e._v(" "),r("el-form-item",{staticClass:"m-b-0",attrs:{label:"选择管理范围",prop:"name"}}),e._v(" "),r("el-form-item",{staticClass:"m-b-0 m-t-10",attrs:{label:"行政架构",prop:"name"}},[r("div",{staticClass:"flex w-380 flex-column item-cell-select"},[r("div",{staticClass:"depart-item-wrap"},[r("div",{staticClass:"el-select el-select--large depart-item-content",on:{click:function(t){e.showDialogLayer("depart",e.ruleForm.departList)}}},[r("div",{staticClass:"el-select__tags",staticStyle:{"max-width":"181px"}},[r("span",[e._l(e.ruleForm.departList,function(t,a){return[r("span",{key:a,staticClass:"el-tag el-tag--info el-tag--small"},[r("span",{staticClass:"el-select__tags-text"},[e._v(e._s(t.name))]),r("i",{staticClass:"el-tag__close el-icon-close",on:{click:function(t){t.stopPropagation(),e.delDepart(a,e.ruleForm.departList)}}})])]})],2)])])])])]),e._v(" "),r("el-form-item",{staticClass:"m-t-22",attrs:{label:"门店架构",prop:"name"}},[r("div",{staticClass:"flex w-380 flex-column item-cell-select"},["admin"==e.ruleForm.roleCode?r("div",{staticClass:"store-item-wrap"},[r("el-select",{staticStyle:{width:"213px"},attrs:{multiple:"",placeholder:"请选择"},model:{value:e.ruleForm.brandValue,callback:function(t){e.$set(e.ruleForm,"brandValue",t)},expression:"ruleForm.brandValue"}},e._l(e.ruleForm.brandOptions,function(e){return r("el-option",{key:e.groupId,attrs:{label:e.name,value:e.groupId}})}))],1):e._e(),e._v(" "),"child_admin"==e.ruleForm.roleCode?r("div",{staticClass:"depart-item-wrap"},[r("div",{staticClass:"el-select el-select--large depart-item-content",staticStyle:{width:"213px"},on:{click:function(t){e.showDialogLayer("store",e.ruleForm.brandValue)}}},[r("div",{staticClass:"el-select__tags",staticStyle:{"max-width":"181px"}},[r("span",[e._l(e.ruleForm.brandValue,function(t,a){return[r("span",{key:a,staticClass:"el-tag el-tag--info el-tag--small"},[r("span",{staticClass:"el-select__tags-text"},[e._v(e._s(t.name||t.storeName))]),r("i",{staticClass:"el-tag__close el-icon-close",on:{click:function(t){t.stopPropagation(),e.delDepart(a,e.ruleForm.brandValue)}}})])]})],2)])])]):e._e()])]),e._v(" "),r("el-form-item",{staticClass:"m-t-24"},[r("el-button",{attrs:{type:"primary"},on:{click:function(t){e.submitForm("ruleForm")}}},[e._v("保存")])],1)],1)],1)]),e._v(" "),r("vue-gic-footer"),e._v(" "),r("vue-select-employee",{attrs:{defaultSelection:e.defaultSelection,onlyPerson:e.onlyPerson,treeSet:e.treeSet,changed:e.changed},on:{handleSelectedList:e.handleSelectedList}}),e._v(" "),r("vue-select-store",{ref:"storeSelector",attrs:{treeSet:e.storeTreeSet,selectType:"group-store",defaultList:e.defaultStoreList},on:{handleSelectedList:e.handleSelectedList}})],1)},staticRenderFns:[]};var h=r("VU/8")(m,p,!1,function(e){r("OADW")},"data-v-ee6d678a",null);t.default=h.exports}});
\ No newline at end of file
webpackJsonp([27],{da9f:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o={name:"enterprise",data:function(){return{projectName:"haoban-manage-web",collapseFlag:!1}},computed:{},methods:{toRouterView:function(e){console.log(e),this.$router.push({path:e.path})},collapseTag:function(e){console.log(e),this.collapseFlag=e}},mounted:function(){}},n={render:function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"enterprise-wrap"},[t("vue-office-header",{attrs:{projectName:this.projectName},on:{collapseTag:this.collapseTag,toRouterView:this.toRouterView}}),this._v(" "),t("div",{staticClass:"enterprise-wrap__body"})],1)},staticRenderFns:[]};var s=a("VU/8")(o,n,!1,function(e){a("g62t")},"data-v-dce5fb1e",null);t.default=s.exports},g62t:function(e,t){}});
\ No newline at end of file
webpackJsonp([28],{da9f:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o={name:"enterprise",data:function(){return{projectName:"haoban-manage-web",collapseFlag:!1}},computed:{},methods:{toRouterView:function(e){console.log(e),this.$router.push({path:e.path})},collapseTag:function(e){console.log(e),this.collapseFlag=e}},mounted:function(){}},n={render:function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"enterprise-wrap"},[t("vue-office-header",{attrs:{projectName:this.projectName},on:{collapseTag:this.collapseTag,toRouterView:this.toRouterView}}),this._v(" "),t("div",{staticClass:"enterprise-wrap__body"})],1)},staticRenderFns:[]};var s=a("VU/8")(o,n,!1,function(e){a("g62t")},"data-v-dce5fb1e",null);t.default=s.exports},g62t:function(e,t){}});
\ No newline at end of file
webpackJsonp([28],{mPjx:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=a("3Xzz"),r=a("Ie7z"),o=a("P9l9"),s={name:"store-view-group-info",components:{navCrumb:n.a,vueSelectStore:r.a},data:function(){return{departInfo:{name:"",parentName:"",parentId:""},rules:{name:[{required:!0,message:"请输入部门名称",trigger:"blur"},{min:1,max:20,message:"长度在 1 到 20 个字符",trigger:"blur"}],parentId:[{required:!0,message:"请选择父级部门",trigger:"change"}]},disabled:!0,treeSet:{isSelectPerson:!1,dialogVisible:!1,isSingle:!0}}},methods:{delGroup:function(){var e=this;e.$confirm(" 是否确认删除分组 ?","提示",{type:"warning"}).then(function(){Object(o.a)("/haoban-manage-web/dept/del",{groupId:e.$route.query.departmentId}).then(function(t){console.log(t),1==t.data.errorCode?(e.$message.success({message:t.data.message}),window.history.go(-1)):e.$message.error({message:t.data.message})}).catch(function(t){e.$message.error({message:t.message})})}).catch(function(e){console.log(e)})},handleSelectedList:function(e){var t=e[0];this.departInfo.parentId=t?t.id:"",this.departInfo.parentName=t?t.label:""},callGroupSelector:function(){this.treeSet.dialogVisible=!0},saveEdit:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";this.$refs.departForm.validate(function(a){if(!a)return!1;var n=e,r={parentId:n.departInfo.parentId,name:n.departInfo.name},s="";n.isAddNew?s="/haoban-manage-web/dept/insert":(s="/haoban-manage-web/dept/update",r.groupId=n.$route.query.groupId),Object(o.a)(s,r).then(function(e){console.log(e),1==e.data.errorCode?(n.$message.success({duration:1e3,message:"操作成功!"}),console.log(t),"continue"==t?(n.departInfo={name:"",parentName:"",parentId:""},n.disabled=!0,n.getGroupData()):window.history.go(-1)):n.$message.error({duration:1e3,message:e.data.message})}).catch(function(e){n.$message.error({duration:1e3,message:e.message})})})},cancel:function(){this.$confirm(" 是否确认取消,取消后当前页面信息将丢失 ?","提示",{type:"warning"}).then(function(){window.history.go(-1)}).catch(function(e){console.log(e)})},getGroupInfo:function(){var e=this,t={groupId:e.$route.query.groupId};Object(o.a)("/haoban-manage-web/dept/findDeptById",t).then(function(t){1==t.data.errorCode?e.departInfo={name:t.data.result.name,parentName:t.data.result.chainName,parentId:t.data.result.parentId}:e.$message.error({message:t.data.message})}).catch(function(t){e.$message.error({message:t.message})})}},computed:{isAddNew:function(){return!(1!=this.$route.query.addnew)},forbidenList:function(){return this.isAddNew?"":[this.$route.query.groupId]},navpath:function(){return[{name:"首页",path:"/index"},{name:"企业通讯录",path:"/administrativeFrame"},{name:"门店架构",path:"/storeFrame"},{name:"group"==this.$route.query.type?"编辑分组":this.isAddNew?"添加子分组":"品牌编辑",path:""}]}},beforeMount:function(){this.isAddNew||this.getGroupInfo()},mounted:function(){this.disabled=!1},watch:{treeData:function(){this.disabled=!1}}},i={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"common-set-wrap"},[a("nav-crumb",{attrs:{navpath:e.navpath}}),e._v(" "),a("div",{staticClass:"right-content"},[a("div",{staticClass:"right-box"},[a("div",{staticClass:"add-department-container"},[a("div",{staticClass:"setting-cell"},[a("el-form",{ref:"departForm",staticClass:"department-info-form",attrs:{"label-position":"right",rules:e.rules,model:e.departInfo,"label-width":"120px"}},[a("el-form-item",{attrs:{label:"group"==e.$route.query.type?"部门名称":"品牌名称",prop:"name"}},[a("el-input",{model:{value:e.departInfo.name,callback:function(t){e.$set(e.departInfo,"name",t)},expression:"departInfo.name"}})],1),e._v(" "),"group"==e.$route.query.type||e.isAddNew?a("el-form-item",{attrs:{label:"部门排序调整",prop:"parentId"}},[a("el-input",{attrs:{disabled:e.disabled,"suffix-icon":"el-icon-arrow-down"},on:{focus:e.callGroupSelector},model:{value:e.departInfo.parentName,callback:function(t){e.$set(e.departInfo,"parentName",t)},expression:"departInfo.parentName"}})],1):e._e()],1)],1),e._v(" "),a("div",{staticClass:"setting-cell"},[a("div",{staticClass:"btn-area"},[a("el-button",{attrs:{type:"primary"},on:{click:e.saveEdit}},[e._v("保存")]),e._v(" "),e.isAddNew?a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.saveEdit("continue")}}},[e._v("保存并继续添加")]):a("el-button",{attrs:{type:"danger"},on:{click:e.delGroup}},[e._v("删除")]),e._v(" "),a("el-button",{on:{click:e.cancel}},[e._v("取消")])],1)]),e._v(" "),a("vue-select-store",{ref:"storeSelector",attrs:{treeSet:e.treeSet,selectType:"group",forbidenList:e.forbidenList},on:{handleSelectedList:e.handleSelectedList}})],1)])])],1)},staticRenderFns:[]};var d=a("VU/8")(s,i,!1,function(e){a("nf/P")},null,null);t.default=d.exports},"nf/P":function(e,t){}});
\ No newline at end of file
webpackJsonp([29],{mPjx:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=a("3Xzz"),r=a("Ie7z"),o=a("P9l9"),s={name:"store-view-group-info",components:{navCrumb:n.a,vueSelectStore:r.a},data:function(){return{departInfo:{name:"",parentName:"",parentId:""},rules:{name:[{required:!0,message:"请输入部门名称",trigger:"blur"},{min:1,max:20,message:"长度在 1 到 20 个字符",trigger:"blur"}],parentId:[{required:!0,message:"请选择父级部门",trigger:"change"}]},disabled:!0,treeSet:{isSelectPerson:!1,dialogVisible:!1,isSingle:!0}}},methods:{delGroup:function(){var e=this;e.$confirm(" 是否确认删除分组 ?","提示",{type:"warning"}).then(function(){Object(o.a)("/haoban-manage-web/dept/del",{groupId:e.$route.query.departmentId}).then(function(t){console.log(t),1==t.data.errorCode?(e.$message.success({message:t.data.message}),window.history.go(-1)):e.$message.error({message:t.data.message})}).catch(function(t){e.$message.error({message:t.message})})}).catch(function(e){console.log(e)})},handleSelectedList:function(e){var t=e[0];this.departInfo.parentId=t?t.id:"",this.departInfo.parentName=t?t.label:""},callGroupSelector:function(){this.treeSet.dialogVisible=!0},saveEdit:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";this.$refs.departForm.validate(function(a){if(!a)return!1;var n=e,r={parentId:n.departInfo.parentId,name:n.departInfo.name},s="";n.isAddNew?s="/haoban-manage-web/dept/insert":(s="/haoban-manage-web/dept/update",r.groupId=n.$route.query.groupId),Object(o.a)(s,r).then(function(e){console.log(e),1==e.data.errorCode?(n.$message.success({duration:1e3,message:"操作成功!"}),console.log(t),"continue"==t?(n.departInfo={name:"",parentName:"",parentId:""},n.disabled=!0,n.getGroupData()):window.history.go(-1)):n.$message.error({duration:1e3,message:e.data.message})}).catch(function(e){n.$message.error({duration:1e3,message:e.message})})})},cancel:function(){this.$confirm(" 是否确认取消,取消后当前页面信息将丢失 ?","提示",{type:"warning"}).then(function(){window.history.go(-1)}).catch(function(e){console.log(e)})},getGroupInfo:function(){var e=this,t={groupId:e.$route.query.groupId};Object(o.a)("/haoban-manage-web/dept/findDeptById",t).then(function(t){1==t.data.errorCode?e.departInfo={name:t.data.result.name,parentName:t.data.result.chainName,parentId:t.data.result.parentId}:e.$message.error({message:t.data.message})}).catch(function(t){e.$message.error({message:t.message})})}},computed:{isAddNew:function(){return!(1!=this.$route.query.addnew)},forbidenList:function(){return this.isAddNew?"":[this.$route.query.groupId]},navpath:function(){return[{name:"首页",path:"/index"},{name:"企业通讯录",path:"/administrativeFrame"},{name:"门店架构",path:"/storeFrame"},{name:"group"==this.$route.query.type?"编辑分组":this.isAddNew?"添加子分组":"品牌编辑",path:""}]}},beforeMount:function(){this.isAddNew||this.getGroupInfo()},mounted:function(){this.disabled=!1},watch:{treeData:function(){this.disabled=!1}}},i={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"common-set-wrap"},[a("nav-crumb",{attrs:{navpath:e.navpath}}),e._v(" "),a("div",{staticClass:"right-content"},[a("div",{staticClass:"right-box"},[a("div",{staticClass:"add-department-container"},[a("div",{staticClass:"setting-cell"},[a("el-form",{ref:"departForm",staticClass:"department-info-form",attrs:{"label-position":"right",rules:e.rules,model:e.departInfo,"label-width":"120px"}},[a("el-form-item",{attrs:{label:"group"==e.$route.query.type?"部门名称":"品牌名称",prop:"name"}},[a("el-input",{model:{value:e.departInfo.name,callback:function(t){e.$set(e.departInfo,"name",t)},expression:"departInfo.name"}})],1),e._v(" "),"group"==e.$route.query.type||e.isAddNew?a("el-form-item",{attrs:{label:"部门排序调整",prop:"parentId"}},[a("el-input",{attrs:{disabled:e.disabled,"suffix-icon":"el-icon-arrow-down"},on:{focus:e.callGroupSelector},model:{value:e.departInfo.parentName,callback:function(t){e.$set(e.departInfo,"parentName",t)},expression:"departInfo.parentName"}})],1):e._e()],1)],1),e._v(" "),a("div",{staticClass:"setting-cell"},[a("div",{staticClass:"btn-area"},[a("el-button",{attrs:{type:"primary"},on:{click:e.saveEdit}},[e._v("保存")]),e._v(" "),e.isAddNew?a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.saveEdit("continue")}}},[e._v("保存并继续添加")]):a("el-button",{attrs:{type:"danger"},on:{click:e.delGroup}},[e._v("删除")]),e._v(" "),a("el-button",{on:{click:e.cancel}},[e._v("取消")])],1)]),e._v(" "),a("vue-select-store",{ref:"storeSelector",attrs:{treeSet:e.treeSet,selectType:"group",forbidenList:e.forbidenList},on:{handleSelectedList:e.handleSelectedList}})],1)])])],1)},staticRenderFns:[]};var d=a("VU/8")(s,i,!1,function(e){a("nf/P")},null,null);t.default=d.exports},"nf/P":function(e,t){}});
\ No newline at end of file
webpackJsonp([29],{"3rQ0":function(t,a){},RHxA:function(t,a,e){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var s=e("3Xzz"),i=e("elmV"),l=e("P9l9"),o={name:"employee-io",components:{navCrumb:s.a,uploadExcelComponent:i.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:""}],type:"import",fileList:[],url:t+"/haoban-manage-web/store/upload",logList:[],loading:!0,pageSize:20,currentPage:1,total: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,a={departmentId:t.$route.query.departmentId,importCode:t.$route.query.importCode};Object(l.a)("/haoban-manage-web/error-log-page",a).then(function(a){1==a.data.errorCode?(t.total=a.data.result.totalCount,t.logList=a.data.result,t.loading=!1):t.$message.error({message:a.data.message})}).catch(function(a){t.$message.error({message:a.message})})},handleRemove:function(t,a){console.log(t,a)},handlePreview:function(t){console.log(t)},uploadSuccess:function(){this.fileList=[],this.type="note",this.getErrorNote()},submitUpload:function(t){this.$refs[t].submit()},getChange:function(t,a){console.log(t,a),this.fileList=a}},beforeMount:function(){"note"==this.type&&this.getErrorNote()}},r={render:function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"common-set-wrap"},[e("nav-crumb",{attrs:{navpath:t.navpath}}),t._v(" "),e("div",{staticClass:"right-content"},[e("div",{staticClass:"right-box"},[e("div",{staticClass:"io-container"},[t._m(0),t._v(" "),e("el-radio-group",{staticClass:"m-t-20",on:{change:t.resetList},model:{value:t.type,callback:function(a){t.type=a},expression:"type"}},[e("el-radio-button",{attrs:{label:"import"}},[t._v("导入门店")]),t._v(" "),e("el-radio-button",{attrs:{label:"export"}},[t._v("导出/修改门店")]),t._v(" "),e("el-radio-button",{attrs:{label:"note"}},[t._v("错误记录")])],1),t._v(" "),"import"==t.type?e("div",{staticClass:"handle-area import"},[e("div",{staticClass:"step-div",staticStyle:{"margin-bottom":"90px"}},[e("span",{staticClass:"ft-large"},[t._v("①")]),t._v("下载门店导入模板,批量填写门店信息\n "),e("a",{staticClass:"d-u-btn",attrs:{href:"http://www.gicdev.com/haoban-manage-web/excel/通讯录-门店架构导入模板.xlsx"}},[e("el-button",{attrs:{type:"primary"}},[t._v("下载"),e("i",{staticClass:"iconfont icon-icon_yunxiazai m-l-5"})])],1)]),t._v(" "),e("div",{staticClass:"step-div"},[e("span",{staticClass:"ft-large"},[t._v("②")]),t._v("上传填写好的门店信息\n "),e("div",{staticClass:"d-u-btn m-t-20"},[e("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}},[e("el-button",{attrs:{slot:"trigger",size:"small",type:"primary"},slot:"trigger"},[t._v("选取文件")]),t._v(" "),e("div",{staticClass:"el-upload__tip",attrs:{slot:"tip"},slot:"tip"},[t._v("文件格式必须为xls或xlsx格式")])],1)],1)]),t._v(" "),e("div",{staticClass:"up-btn-div"},[e("el-button",{attrs:{type:"primary",disabled:0==t.fileList.length},on:{click:function(a){t.submitUpload("upload")}}},[t._v("上传")])],1)]):"export"==t.type?e("div",{staticClass:"handle-area import"},[e("div",{staticClass:"step-div",staticStyle:{"margin-bottom":"90px"}},[e("span",{staticClass:"ft-large"},[t._v("①")]),t._v("导出门店\n "),e("a",{staticClass:"d-u-btn",attrs:{href:"http://www.gicdev.com/haoban-manage-web/store/export?storeGroupId="+t.$route.query.departmentId+"&showChild="+t.$route.query.showChildMember}},[e("el-button",{attrs:{type:"primary"}},[t._v("下载"),e("i",{staticClass:"iconfont icon-icon_yunxiazai m-l-5"})])],1),t._v("\n 批量修改门店信息\n ")]),t._v(" "),e("div",{staticClass:"step-div"},[e("span",{staticClass:"ft-large"},[t._v("②")]),t._v("上传修改后的门店信息\n "),e("div",{staticClass:"d-u-btn m-t-20"},[e("el-upload",{ref:"uploadEdit",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}},[e("el-button",{attrs:{slot:"trigger",size:"small",type:"primary"},slot:"trigger"},[t._v("选取文件")]),t._v(" "),e("div",{staticClass:"el-upload__tip",attrs:{slot:"tip"},slot:"tip"},[t._v("文件格式必须为xls或xlsx格式")])],1)],1)]),t._v(" "),e("div",{staticClass:"up-btn-div"},[e("el-button",{attrs:{type:"primary",disabled:0==t.fileList.length},on:{click:function(a){t.submitUpload("uploadEdit")}}},[t._v("上传")])],1)]):e("div",{staticClass:"error-log import"},[e("div",{staticClass:"title-area"},[e("div",{staticClass:"tip"}),t._v(" "),e("a",{attrs:{href:"http://www.gicdev.com/haoban-manage-web/error-improt-log-export?importCode="+t.$route.query.importCode+"&departmentId="+t.$route.query.departmentId}},[e("el-button",{attrs:{type:"primary"}},[t._v("导出错误记录")])],1)]),t._v(" "),e("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"m-t-20",staticStyle:{width:"100%"},attrs:{data:t.logList}},[e("el-table-column",{attrs:{type:"index",width:"50",label:"序号"}}),t._v(" "),e("el-table-column",{attrs:{label:"错误提示",prop:"failReason"}}),t._v(" "),e("el-table-column",{attrs:{label:"姓名",prop:"name"}}),t._v(" "),e("el-table-column",{attrs:{label:"手机号",prop:"phoneNumber"}}),t._v(" "),e("el-table-column",{attrs:{label:"部门ID",prop:"departmentId"}}),t._v(" "),e("el-table-column",{attrs:{label:"职位",prop:"positionName"}}),t._v(" "),e("el-table-column",{attrs:{label:"是否此部门负责人(是/否)",prop:"isManager"},scopedSlots:t._u([{key:"default",fn:function(a){return[t._v("\n "+t._s(1==a.row.isManager?"是":"否")+"\n ")]}}])}),t._v(" "),e("el-table-column",{attrs:{label:"入职时间",prop:"hireDate"}})],1),t._v(" "),e("div",{staticClass:"pagination"},[e("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)],1)],1)])])],1)},staticRenderFns:[function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("ul",{staticClass:"tip-area"},[e("li",{staticClass:"tip"},[t._v("由于你的企业未进行企业认证,最多导入30家门店,如有超出,可先进行"),e("a",{staticClass:"a-href"},[t._v("企业认证")])]),t._v(" "),e("li",{staticClass:"tip"},[t._v("如需更新已存在的门店及店员,可逐个进行修改,或请先导出,在导出表格里进行修改")]),t._v(" "),e("li",{staticClass:"tip"},[t._v("由于数据量可能较大,每次最多导入2000条员工档案,若超过只取前2000条,可以分多次导入")]),t._v(" "),e("li",{staticClass:"tip"},[t._v("不能在本excel表中对门店信息类别进行增加、删除、修改")]),t._v(" "),e("li",{staticClass:"tip"},[t._v("标*字段为必填字段,未标*字段为选填字段")]),t._v(" "),e("li",{staticClass:"tip"},[t._v("门店所在分组:请先到后台创建门店分组,将分组id填入导入表格中,导入中,若找不到对应分组,将直接将门店挂在根目录下面")]),t._v(" "),e("li",{staticClass:"tip"},[t._v("未认证企业通讯录最多只能导入30家门店,超出后无法导入,请先进行企业认证")]),t._v(" "),e("li",{staticClass:"tip"},[t._v("每次最多导入2000家门店,如果超出则只取前2000条数据,可以分多次导入")])])}]};var n=e("VU/8")(o,r,!1,function(t){e("3rQ0")},null,null);a.default=n.exports}});
\ No newline at end of file
webpackJsonp([37],{Haij:function(t,a){},Rwbg:function(t,a,e){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var s=e("3Xzz"),i=e("elmV"),l=e("P9l9"),o={name:"employee-io",components:{navCrumb:s.a,uploadExcelComponent:i.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:"administrativeFrame"},{name:"批量导入导出",path:""}],type:"import",fileList:[],url:t+"/haoban-manage-web/emp/upload",logList:[],loading:!0,pageSize:20,currentPage:1,total: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,a={departmentId:t.$route.query.departmentId,importCode:t.$route.query.importCode};Object(l.a)("/haoban-manage-web/error-log-page",a).then(function(a){1==a.data.errorCode?(console.log(a.data),t.total=a.data.result.totalCount,t.logList=a.data.result.result,t.loading=!1):t.$message.error({message:a.data.message})}).catch(function(a){t.$message.error({message:a.message})})},uploadSuccess:function(){this.fileList=[],this.type="note",this.getErrorNote()},submitUpload:function(t){this.$refs[t].submit()},getChange:function(t,a){this.fileList=a}},beforeMount:function(){"note"==this.type&&this.getErrorNote()}},r={render:function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"common-set-wrap"},[e("nav-crumb",{attrs:{navpath:t.navpath}}),t._v(" "),e("div",{staticClass:"right-content"},[e("div",{staticClass:"right-box"},[e("div",{staticClass:"io-container"},[t._m(0),t._v(" "),e("el-radio-group",{staticClass:"m-t-20",on:{change:t.resetList},model:{value:t.type,callback:function(a){t.type=a},expression:"type"}},[e("el-radio-button",{attrs:{label:"import"}},[t._v("导入通讯录")]),t._v(" "),e("el-radio-button",{attrs:{label:"export"}},[t._v("导出/修改通讯录")]),t._v(" "),e("el-radio-button",{attrs:{label:"note"}},[t._v("错误记录")])],1),t._v(" "),"import"==t.type?e("div",{staticClass:"handle-area import"},[e("div",{staticClass:"step-div",staticStyle:{"margin-bottom":"90px"}},[e("span",{staticClass:"ft-large"},[t._v("①")]),t._v("下载员工通讯录模板,统一收集员工信息\n "),e("a",{staticClass:"d-u-btn",attrs:{href:"http://www.gicdev.com/haoban-manage-web/excel/通讯录-行政架构导入模板.xlsx"}},[e("el-button",{attrs:{type:"primary"}},[t._v("下载"),e("i",{staticClass:"iconfont icon-icon_yunxiazai m-l-5"})])],1)]),t._v(" "),e("div",{staticClass:"step-div"},[e("span",{staticClass:"ft-large"},[t._v("②")]),t._v("上传收集完毕的员工信息表\n "),e("div",{staticClass:"d-u-btn m-t-20"},[e("el-upload",{ref:"upload",staticClass:"upload-demo",attrs:{action:t.url,"on-success":t.uploadSuccess,"on-change":t.getChange,multiple:!1,"file-list":t.fileList,"auto-upload":!1}},[e("el-button",{attrs:{slot:"trigger",size:"small",type:"primary"},slot:"trigger"},[t._v("选取文件")]),t._v(" "),e("div",{staticClass:"el-upload__tip",attrs:{slot:"tip"},slot:"tip"},[t._v("文件格式必须为xls或xlsx格式")])],1)],1)]),t._v(" "),e("div",{staticClass:"up-btn-div"},[e("el-button",{attrs:{type:"primary",disabled:0==t.fileList.length},on:{click:function(a){t.submitUpload("upload")}}},[t._v("上传")])],1)]):"export"==t.type?e("div",{staticClass:"handle-area import"},[e("div",{staticClass:"step-div",staticStyle:{"margin-bottom":"90px"}},[e("span",{staticClass:"ft-large"},[t._v("①")]),t._v("导出所有员工信息\n "),e("a",{staticClass:"d-u-btn",attrs:{href:"http://www.gicdev.com/haoban-manage-web/emp/export?departmentId="+t.$route.query.departmentId+"&showChild="+t.$route.query.showChildMember}},[e("el-button",{attrs:{type:"primary"}},[t._v("下载"),e("i",{staticClass:"iconfont icon-icon_yunxiazai m-l-5"})])],1),t._v("\n 批量修改员工信息\n ")]),t._v(" "),e("div",{staticClass:"step-div"},[e("span",{staticClass:"ft-large"},[t._v("②")]),t._v("上传修改好的员工信息表\n "),e("div",{staticClass:"d-u-btn m-t-20"},[e("el-upload",{ref:"uploadEdit",staticClass:"upload-demo",attrs:{action:t.url,"on-success":t.uploadSuccess,"on-change":t.getChange,multiple:!1,"file-list":t.fileList,"auto-upload":!1}},[e("el-button",{attrs:{slot:"trigger",size:"small",type:"primary"},slot:"trigger"},[t._v("选取文件")]),t._v(" "),e("div",{staticClass:"el-upload__tip",attrs:{slot:"tip"},slot:"tip"},[t._v("文件格式必须为xls或xlsx格式")])],1)],1)]),t._v(" "),e("div",{staticClass:"up-btn-div"},[e("el-button",{attrs:{type:"primary",disabled:0==t.fileList.length},on:{click:function(a){t.submitUpload("uploadEdit")}}},[t._v("上传")])],1)]):e("div",{staticClass:"error-log import"},[e("div",{staticClass:"title-area"},[t._m(1),t._v(" "),e("a",{attrs:{href:"http://www.gicdev.com/haoban-manage-web/error-improt-log-export?importCode="+t.$route.query.importCode+"&departmentId="+t.$route.query.departmentId}},[e("el-button",{attrs:{type:"primary"}},[t._v("导出错误记录")])],1)]),t._v(" "),e("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"m-t-20",staticStyle:{width:"100%"},attrs:{data:t.logList}},[e("el-table-column",{attrs:{type:"index",width:"50",label:"序号"}}),t._v(" "),e("el-table-column",{attrs:{label:"错误提示",prop:"failReason"}}),t._v(" "),e("el-table-column",{attrs:{label:"姓名",prop:"name"}}),t._v(" "),e("el-table-column",{attrs:{label:"手机号",prop:"phoneNumber"}}),t._v(" "),e("el-table-column",{attrs:{label:"部门ID",prop:"departmentId"}}),t._v(" "),e("el-table-column",{attrs:{label:"职位",prop:"positionName"}}),t._v(" "),e("el-table-column",{attrs:{label:"是否此部门负责人(是/否)",prop:"isManager"},scopedSlots:t._u([{key:"default",fn:function(a){return[t._v("\n "+t._s(1==a.row.isManager?"是":"否")+"\n ")]}}])}),t._v(" "),e("el-table-column",{attrs:{label:"入职时间",prop:"hireDate"}})],1),t._v(" "),e("div",{staticClass:"pagination"},[e("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)],1)],1)])])],1)},staticRenderFns:[function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("ul",{staticClass:"tip-area"},[e("li",{staticClass:"tip"},[t._v("由于你的企业未进行企业认证,通讯录最多只能导入200人以内的员工,如有超出可先进行"),e("a",{staticClass:"a-href"},[t._v("企业认证")])]),t._v(" "),e("li",{staticClass:"tip"},[t._v("如需更新已存在的员工,可逐个进行修改,或请先导出通讯录,在导出表格里进行修改")]),t._v(" "),e("li",{staticClass:"tip"},[t._v("不能在本excel表中对员工信息类别进行增加、删除、修改")]),t._v(" "),e("li",{staticClass:"tip"},[t._v("标*字段为必填字段,未标*字段为选填字段")]),t._v(" "),e("li",{staticClass:"tip"},[t._v("员工所在部门:请先到后台创建部门,将部门id填入导入表格中,导入中,若找不到对应部门,将直接将员工挂在根目录下面")]),t._v(" "),e("li",{staticClass:"tip"},[t._v("未认证企业通讯录最多只能导入200人,超出后无法导入,请先进行企业认证")])])},function(){var t=this.$createElement,a=this._self._c||t;return a("div",{staticClass:"tip"},[this._v("\n 导入总条数:0条,成功导入0条,"),a("span",{staticClass:"red"},[this._v("错误导入0条")])])}]};var n=e("VU/8")(o,r,!1,function(t){e("Haij")},null,null);a.default=n.exports}});
\ No newline at end of file
webpackJsonp([38],{"h/6A":function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=o("//Fk"),r=o.n(a),s=o("3Xzz"),n=o("l46T"),i=o("P9l9"),l=o("Ie7z"),m={name:"store-info",components:{navCrumb:s.a,vueSelectStore:l.a,limitInput:n.a},data:function(){return{navpath:[{name:"首页",path:"/index"},{name:"企业通讯录",path:"/administrativeFrame"},{name:"门店架构",path:"/storeFrame"},{name:"添加门店",path:""}],editpath:[{name:"首页",path:"/index"},{name:"企业通讯录",path:"/administrativeFrame"},{name:"门店架构",path:"/storeFrame"},{name:"编辑门店",path:""}],treeSet:{isSelectPerson:!1,dialogVisible:!1,isSingle:!0},storeInfo:{departmentName:""},areaChainName:"",location:"",areaOptions:{},imgs:[],uploadUrl:"/haoban-manage-web/upload-img",rules:{storeName:[{required:!0,message:"请输入门店名称",trigger:"blur"}],groupChainName:[{required:!0,message:"请选择部门",trigger:"change"}],phoneNumber:[{required:!0,validator:function(e,t,o){if(t)return/^1[34578]\d{9}$/.test(t)||/^(\(\d{3,4}\)|\d{3,4}-|\s)?\d{7,14}$/.test(t)?o():o(new Error("联系电话格式不正确"));return o(new Error("请输入联系电话"))},trigger:"blur"}],storeCode:[{required:!0,message:"请输入门店代码",trigger:"blur"}],managerName:[{required:!0,message:"请输入店长姓名",trigger:"blur"}],managerPhoneNumber:[{required:!0,validator:function(e,t,o){if(t)return/^1[34578]\d{9}$/.test(t)?o():o(new Error("手机号码格式不正确"));return o()},trigger:"blur"}],specialService:[{max:20,message:"长度在 20 个字符以内",trigger:"blur"}],personCost:[{validator:function(e,t,o){if(t)return/^\d+(\.\d+)?$/.test(1*t)?o():o(new Error("人均消费只能为非负整数或者小数"));return o()},trigger:"blur"}]}}},methods:{callSelector:function(){this.treeSet.dialogVisible=!0},handleSelectedList:function(e){this.storeInfo.departmentName=e[0].label,this.storeInfo.storeGroupId=e[0].id},selected:function(e){this.areaChainName=e.provinceName+"/"+e.cityName+"/"+e.countryName},getStoreInfo:function(){var e=this,t={storeId:e.$route.query.storeId};Object(i.a)("/haoban-manage-web/store/findStoreById",t).then(function(t){1==t.data.errorCode?(e.showEmployee="store",e.formatStoreInfo(t.data.result)):e.$message.error({message:t.data.message})})},clickToSave:function(){var e=this,t=new r.a(function(t,o){e.$refs.storeInfo.validate(function(e){e&&t()})}),o=new r.a(function(t,o){e.$refs.storeManager.validate(function(e){e&&t()})}),a=new r.a(function(t,o){e.$refs.storeOperate.validate(function(e){e&&t()})});r.a.all([t,o,a]).then(function(){e.save()})},formatStoreInfo:function(e){var t=(e.areaChainName||"").split("/");this.areaOptions={provinceName:t[0],provinceId:e.provinceId,cityName:t[1],cityId:e.cityId,countryName:t[2],countyId:e.countyId},this.imgs=e.imageUrl?e.imageUrl.split(","):[];var o=[];this.imgs.forEach(function(e){o.push({url:e})}),this.imgs=o,this.storeInfo=e},uploadOnSuccess:function(e,t){e.file.url=e.res.result[0].qcloudImageUrl,t.push(e.file)},sortImg:function(){},deleteImage:function(){},save:function(){var e=this,t=e.location.split(",");e.storeInfo.longitude=t[0],e.storeInfo.latitude=2!==t.length?"":t[1],e.storeInfo.managerPhone=e.storeInfo.managerPhoneNumber,e.storeInfo.areaChainName=e.areaChainName;var o=e.storeInfo,a=[];e.imgs.forEach(function(e){a.push(e.url)}),o.imageUrls=a.join(",");var r=e.isNew?"/haoban-manage-web/store/insert":"/haoban-manage-web/store/update";Object(i.a)(r,o).then(function(t){1==t.data.errorCode?(e.$message.success({message:t.data.message}),window.history.go(-1)):e.$message.error({message:t.data.message})}).catch(function(t){e.$message.error({message:t.message})})}},computed:{isNew:function(){return!this.$route.query.storeId}},beforeMount:function(){this.isNew||this.getStoreInfo()},mounted:function(){this.$route.query.storeId&&(this.navpath=this.editpath)}},u={render:function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"common-set-wrap"},[o("nav-crumb",{attrs:{navpath:e.navpath}}),e._v(" "),o("div",{staticClass:"right-content"},[o("div",{staticClass:"right-box"},[o("div",[o("div",{staticClass:"store-info"},[o("div",{staticClass:"info-cell"},[o("p",{staticClass:"title font-w-500"},[e._v("门店信息")]),e._v(" "),o("el-form",{ref:"storeInfo",staticClass:"store-info-form info-form",attrs:{rules:e.rules,model:e.storeInfo,"label-width":"100px"}},[o("el-form-item",{attrs:{label:"门店名称",prop:"storeName"}},[o("limitInput",{attrs:{inputWidth:500,inputValue:e.storeInfo.storeName,holder:"",maxLength:10},on:{"update:inputValue":function(t){e.$set(e.storeInfo,"storeName",t)}}})],1),e._v(" "),o("el-form-item",{attrs:{label:"所属分组",prop:"departmentName"}},[o("el-input",{on:{focus:e.callSelector},model:{value:e.storeInfo.departmentName,callback:function(t){e.$set(e.storeInfo,"departmentName",t)},expression:"storeInfo.departmentName"}},[o("i",{staticClass:"el-input__icon el-icon-arrow-down",attrs:{slot:"suffix"},slot:"suffix"})])],1),e._v(" "),o("el-form-item",{attrs:{label:"门店图片",prop:"imageUrls"}},[o("div",{staticClass:"member-upload-image"},[o("vue-office-upload-image",{attrs:{projectName:"haoban-manage-web",wxFlag:"0",actionUrl:e.uploadUrl,imageList:e.imgs,limitW:640,limitH:340,maxImageLength:5},on:{uploadOnSuccess:e.uploadOnSuccess,sortImg:e.sortImg,deleteImage:e.deleteImage}})],1),e._v(" "),o("div",{staticClass:"tip font-12 color-909399 m-t-8 line-h-1"},[e._v("门店图片(640*340)")])]),e._v(" "),o("el-form-item",{attrs:{label:"联系电话",prop:"phoneNumber"}},[o("el-input",{model:{value:e.storeInfo.phoneNumber,callback:function(t){e.$set(e.storeInfo,"phoneNumber",t)},expression:"storeInfo.phoneNumber"}})],1),e._v(" "),o("el-form-item",{attrs:{label:"营业时间",prop:"phoneNumber"}},[o("el-time-select",{attrs:{placeholder:"起始时间","picker-options":{start:"00:00",step:"00:05",end:"24:00"}},model:{value:e.storeInfo.openTime,callback:function(t){e.$set(e.storeInfo,"openTime",t)},expression:"storeInfo.openTime"}}),e._v("\n ~\n "),o("el-time-select",{attrs:{placeholder:"结束时间","picker-options":{start:"00:00",step:"00:05",end:"24:00",minTime:e.storeInfo.openTime}},model:{value:e.storeInfo.closeTime,callback:function(t){e.$set(e.storeInfo,"closeTime",t)},expression:"storeInfo.closeTime"}})],1),e._v(" "),o("el-form-item",{attrs:{label:"门店类型"}},[o("el-radio-group",{model:{value:e.storeInfo.storeType,callback:function(t){e.$set(e.storeInfo,"storeType",t)},expression:"storeInfo.storeType"}},[o("el-radio",{attrs:{label:0}},[e._v("自营")]),e._v(" "),o("el-radio",{attrs:{label:1}},[e._v("联营")]),e._v(" "),o("el-radio",{attrs:{label:2}},[e._v("代理")]),e._v(" "),o("el-radio",{attrs:{label:3}},[e._v("代销")]),e._v(" "),o("el-radio",{attrs:{label:4}},[e._v("托管")])],1)],1),e._v(" "),o("el-form-item",{attrs:{label:"门店地址"}},[o("vue-office-area",{attrs:{areaOptions:e.areaOptions,projectName:"haoban-web",postUrl:"/haoban-manage-web/dict-district-list"},on:{selected:e.selected}}),e._v(" "),o("div",{staticClass:"m-t-15"},[o("limitInput",{attrs:{inputWidth:500,inputValue:e.storeInfo.postAddress,holder:"",maxLength:50},on:{"update:inputValue":function(t){e.$set(e.storeInfo,"postAddress",t)}}})],1)],1),e._v(" "),o("el-form-item",{attrs:{label:"GPS坐标"}},[o("el-input",{staticClass:"m-r-10",model:{value:e.location,callback:function(t){e.location=t},expression:"location"}}),e._v(" "),o("a",{staticClass:"a-href",attrs:{href:"http://m.gpsspg.com/maps.htm",target:"_blank"}},[e._v("经纬度测试工具")])],1),e._v(" "),o("el-form-item",{attrs:{prop:"storeCode"}},[o("template",{slot:"label"},[e._v("\n 门店代码\n "),o("i",{staticClass:"el-icon-question",staticStyle:{color:"#C0C4CC"}})]),e._v(" "),o("limitInput",{attrs:{inputWidth:500,inputValue:e.storeInfo.storeCode,holder:"",maxLength:20},on:{"update:inputValue":function(t){e.$set(e.storeInfo,"storeCode",t)}}})],2)],1)],1),e._v(" "),o("div",{staticClass:"info-cell"},[o("p",{staticClass:"title font-w-500"},[e._v("店长信息")]),e._v(" "),o("el-form",{ref:"storeManager",staticClass:"store-manager-info-form info-form",attrs:{rules:e.rules,model:e.storeInfo,"label-width":"100px"}},[o("el-form-item",{attrs:{label:"店长姓名",prop:"managerName"}},[o("limitInput",{attrs:{inputWidth:500,inputValue:e.storeInfo.managerName,holder:"",maxLength:10},on:{"update:inputValue":function(t){e.$set(e.storeInfo,"managerName",t)}}})],1),e._v(" "),o("el-form-item",{attrs:{label:"手机号码",prop:"managerPhoneNumber"}},[o("el-input",{attrs:{disabled:!e.isNew&&!!e.storeInfo.managerPhoneNumber},model:{value:e.storeInfo.managerPhoneNumber,callback:function(t){e.$set(e.storeInfo,"managerPhoneNumber",t)},expression:"storeInfo.managerPhoneNumber"}})],1),e._v(" "),o("el-form-item",{attrs:{label:"店长性别"}},[o("el-radio-group",{model:{value:e.storeInfo.managerSex,callback:function(t){e.$set(e.storeInfo,"managerSex",t)},expression:"storeInfo.managerSex"}},[o("el-radio",{attrs:{label:1}},[e._v("男")]),e._v(" "),o("el-radio",{attrs:{label:2}},[e._v("女")])],1)],1),e._v(" "),o("el-form-item",{attrs:{label:"店长代码",prop:"managerCode"}},[o("limitInput",{attrs:{inputWidth:500,inputValue:e.storeInfo.managerCode,holder:"",maxLength:20},on:{"update:inputValue":function(t){e.$set(e.storeInfo,"managerCode",t)}}})],1)],1)],1),e._v(" "),o("div",{staticClass:"info-cell"},[o("p",{staticClass:"title font-w-500"},[e._v("经营信息")]),e._v(" "),o("el-form",{ref:"storeOperate",staticClass:"operate-info-form info-form",attrs:{rules:e.rules,model:e.storeInfo,"label-width":"90px"}},[o("el-form-item",{attrs:{label:"特色服务",prop:"specialService"}},[o("el-input",{attrs:{type:"textarea",rows:2},model:{value:e.storeInfo.specialService,callback:function(t){e.$set(e.storeInfo,"specialService",t)},expression:"storeInfo.specialService"}}),e._v(" "),o("p",{staticClass:"counter t-rt c-909399 font-12"},[e._v(e._s((e.storeInfo.specialService||"").length)+"/20")])],1),e._v(" "),o("el-form-item",{attrs:{label:"人均消费",prop:"personCost"}},[o("limitInput",{attrs:{inputWidth:500,inputValue:e.storeInfo.personCost,holder:"",maxLength:10},on:{"update:inputValue":function(t){e.$set(e.storeInfo,"personCost",t)}}})],1),e._v(" "),o("el-form-item",{attrs:{label:"推荐商品"}},[o("el-input",{attrs:{type:"textarea",rows:2},model:{value:e.storeInfo.recommendGoods,callback:function(t){e.$set(e.storeInfo,"recommendGoods",t)},expression:"storeInfo.recommendGoods"}}),e._v(" "),o("p",{staticClass:"counter t-rt c-909399 font-12"},[e._v(e._s((e.storeInfo.recommendGoods||"").length)+"/100")])],1),e._v(" "),o("el-form-item",{attrs:{label:"品牌介绍"}},[o("el-input",{attrs:{type:"textarea",rows:2},model:{value:e.storeInfo.brandDes,callback:function(t){e.$set(e.storeInfo,"brandDes",t)},expression:"storeInfo.brandDes"}}),e._v(" "),o("p",{staticClass:"counter t-rt c-909399 font-12"},[e._v(e._s((e.storeInfo.recommendGoods||"").length)+"/200")])],1)],1)],1),e._v(" "),o("div",{staticClass:"handle-area"},[o("el-button",{attrs:{type:"primary"},on:{click:e.clickToSave}},[e._v("保 存")])],1)]),e._v(" "),o("vue-select-store",{ref:"storeSelector",attrs:{treeSet:e.treeSet,selectType:"group",forbidenList:[e.storeInfo.storeGroupId]},on:{handleSelectedList:e.handleSelectedList}})],1)])])],1)},staticRenderFns:[]};var c=o("VU/8")(m,u,!1,function(e){o("onu3")},null,null);t.default=c.exports},onu3:function(e,t){}});
\ No newline at end of file
webpackJsonp([37],{"h/6A":function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=o("//Fk"),r=o.n(a),s=o("3Xzz"),n=o("l46T"),i=o("P9l9"),l=o("Ie7z"),m={name:"store-info",components:{navCrumb:s.a,vueSelectStore:l.a,limitInput:n.a},data:function(){return{navpath:[{name:"首页",path:"/index"},{name:"企业通讯录",path:"/administrativeFrame"},{name:"门店架构",path:"/storeFrame"},{name:"添加门店",path:""}],editpath:[{name:"首页",path:"/index"},{name:"企业通讯录",path:"/administrativeFrame"},{name:"门店架构",path:"/storeFrame"},{name:"编辑门店",path:""}],treeSet:{isSelectPerson:!1,dialogVisible:!1,isSingle:!0},storeInfo:{departmentName:""},areaChainName:"",location:"",areaOptions:{},imgs:[],uploadUrl:"/haoban-manage-web/upload-img",rules:{storeName:[{required:!0,message:"请输入门店名称",trigger:"blur"}],groupChainName:[{required:!0,message:"请选择部门",trigger:"change"}],phoneNumber:[{required:!0,validator:function(e,t,o){if(t)return/^1[34578]\d{9}$/.test(t)||/^(\(\d{3,4}\)|\d{3,4}-|\s)?\d{7,14}$/.test(t)?o():o(new Error("联系电话格式不正确"));return o(new Error("请输入联系电话"))},trigger:"blur"}],storeCode:[{required:!0,message:"请输入门店代码",trigger:"blur"}],managerName:[{required:!0,message:"请输入店长姓名",trigger:"blur"}],managerPhoneNumber:[{required:!0,validator:function(e,t,o){if(t)return/^1[34578]\d{9}$/.test(t)?o():o(new Error("手机号码格式不正确"));return o()},trigger:"blur"}],specialService:[{max:20,message:"长度在 20 个字符以内",trigger:"blur"}],personCost:[{validator:function(e,t,o){if(t)return/^\d+(\.\d+)?$/.test(1*t)?o():o(new Error("人均消费只能为非负整数或者小数"));return o()},trigger:"blur"}]}}},methods:{callSelector:function(){this.treeSet.dialogVisible=!0},handleSelectedList:function(e){this.storeInfo.departmentName=e[0].label,this.storeInfo.storeGroupId=e[0].id},selected:function(e){this.areaChainName=e.provinceName+"/"+e.cityName+"/"+e.countryName},getStoreInfo:function(){var e=this,t={storeId:e.$route.query.storeId};Object(i.a)("/haoban-manage-web/store/findStoreById",t).then(function(t){1==t.data.errorCode?(e.showEmployee="store",e.formatStoreInfo(t.data.result)):e.$message.error({message:t.data.message})})},clickToSave:function(){var e=this,t=new r.a(function(t,o){e.$refs.storeInfo.validate(function(e){e&&t()})}),o=new r.a(function(t,o){e.$refs.storeManager.validate(function(e){e&&t()})}),a=new r.a(function(t,o){e.$refs.storeOperate.validate(function(e){e&&t()})});r.a.all([t,o,a]).then(function(){e.save()})},formatStoreInfo:function(e){var t=(e.areaChainName||"").split("/");this.areaOptions={provinceName:t[0],provinceId:e.provinceId,cityName:t[1],cityId:e.cityId,countryName:t[2],countyId:e.countyId},this.imgs=e.imageUrl?e.imageUrl.split(","):[];var o=[];this.imgs.forEach(function(e){o.push({url:e})}),this.imgs=o,this.storeInfo=e},uploadOnSuccess:function(e,t){e.file.url=e.res.result[0].qcloudImageUrl,t.push(e.file)},sortImg:function(){},deleteImage:function(){},save:function(){var e=this,t=e.location.split(",");e.storeInfo.longitude=t[0],e.storeInfo.latitude=2!==t.length?"":t[1],e.storeInfo.managerPhone=e.storeInfo.managerPhoneNumber,e.storeInfo.areaChainName=e.areaChainName;var o=e.storeInfo,a=[];e.imgs.forEach(function(e){a.push(e.url)}),o.imageUrls=a.join(",");var r=e.isNew?"/haoban-manage-web/store/insert":"/haoban-manage-web/store/update";Object(i.a)(r,o).then(function(t){1==t.data.errorCode?(e.$message.success({message:t.data.message}),window.history.go(-1)):e.$message.error({message:t.data.message})}).catch(function(t){e.$message.error({message:t.message})})}},computed:{isNew:function(){return!this.$route.query.storeId}},beforeMount:function(){this.isNew||this.getStoreInfo()},mounted:function(){this.$route.query.storeId&&(this.navpath=this.editpath)}},u={render:function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"common-set-wrap"},[o("nav-crumb",{attrs:{navpath:e.navpath}}),e._v(" "),o("div",{staticClass:"right-content"},[o("div",{staticClass:"right-box"},[o("div",[o("div",{staticClass:"store-info"},[o("div",{staticClass:"info-cell"},[o("p",{staticClass:"title font-w-500"},[e._v("门店信息")]),e._v(" "),o("el-form",{ref:"storeInfo",staticClass:"store-info-form info-form",attrs:{rules:e.rules,model:e.storeInfo,"label-width":"100px"}},[o("el-form-item",{attrs:{label:"门店名称",prop:"storeName"}},[o("limitInput",{attrs:{inputWidth:500,inputValue:e.storeInfo.storeName,holder:"",maxLength:10},on:{"update:inputValue":function(t){e.$set(e.storeInfo,"storeName",t)}}})],1),e._v(" "),o("el-form-item",{attrs:{label:"所属分组",prop:"departmentName"}},[o("el-input",{on:{focus:e.callSelector},model:{value:e.storeInfo.departmentName,callback:function(t){e.$set(e.storeInfo,"departmentName",t)},expression:"storeInfo.departmentName"}},[o("i",{staticClass:"el-input__icon el-icon-arrow-down",attrs:{slot:"suffix"},slot:"suffix"})])],1),e._v(" "),o("el-form-item",{attrs:{label:"门店图片",prop:"imageUrls"}},[o("div",{staticClass:"member-upload-image"},[o("vue-office-upload-image",{attrs:{projectName:"haoban-manage-web",wxFlag:"0",actionUrl:e.uploadUrl,imageList:e.imgs,limitW:640,limitH:340,maxImageLength:5},on:{uploadOnSuccess:e.uploadOnSuccess,sortImg:e.sortImg,deleteImage:e.deleteImage}})],1),e._v(" "),o("div",{staticClass:"tip font-12 color-909399 m-t-8 line-h-1"},[e._v("门店图片(640*340)")])]),e._v(" "),o("el-form-item",{attrs:{label:"联系电话",prop:"phoneNumber"}},[o("el-input",{model:{value:e.storeInfo.phoneNumber,callback:function(t){e.$set(e.storeInfo,"phoneNumber",t)},expression:"storeInfo.phoneNumber"}})],1),e._v(" "),o("el-form-item",{attrs:{label:"营业时间",prop:"phoneNumber"}},[o("el-time-select",{attrs:{placeholder:"起始时间","picker-options":{start:"00:00",step:"00:05",end:"24:00"}},model:{value:e.storeInfo.openTime,callback:function(t){e.$set(e.storeInfo,"openTime",t)},expression:"storeInfo.openTime"}}),e._v("\n ~\n "),o("el-time-select",{attrs:{placeholder:"结束时间","picker-options":{start:"00:00",step:"00:05",end:"24:00",minTime:e.storeInfo.openTime}},model:{value:e.storeInfo.closeTime,callback:function(t){e.$set(e.storeInfo,"closeTime",t)},expression:"storeInfo.closeTime"}})],1),e._v(" "),o("el-form-item",{attrs:{label:"门店类型"}},[o("el-radio-group",{model:{value:e.storeInfo.storeType,callback:function(t){e.$set(e.storeInfo,"storeType",t)},expression:"storeInfo.storeType"}},[o("el-radio",{attrs:{label:0}},[e._v("自营")]),e._v(" "),o("el-radio",{attrs:{label:1}},[e._v("联营")]),e._v(" "),o("el-radio",{attrs:{label:2}},[e._v("代理")]),e._v(" "),o("el-radio",{attrs:{label:3}},[e._v("代销")]),e._v(" "),o("el-radio",{attrs:{label:4}},[e._v("托管")])],1)],1),e._v(" "),o("el-form-item",{attrs:{label:"门店地址"}},[o("vue-office-area",{attrs:{areaOptions:e.areaOptions,projectName:"haoban-web",postUrl:"/haoban-manage-web/dict-district-list"},on:{selected:e.selected}}),e._v(" "),o("div",{staticClass:"m-t-15"},[o("limitInput",{attrs:{inputWidth:500,inputValue:e.storeInfo.postAddress,holder:"",maxLength:50},on:{"update:inputValue":function(t){e.$set(e.storeInfo,"postAddress",t)}}})],1)],1),e._v(" "),o("el-form-item",{attrs:{label:"GPS坐标"}},[o("el-input",{staticClass:"m-r-10",model:{value:e.location,callback:function(t){e.location=t},expression:"location"}}),e._v(" "),o("a",{staticClass:"a-href",attrs:{href:"http://m.gpsspg.com/maps.htm",target:"_blank"}},[e._v("经纬度测试工具")])],1),e._v(" "),o("el-form-item",{attrs:{prop:"storeCode"}},[o("template",{slot:"label"},[e._v("\n 门店代码\n "),o("i",{staticClass:"el-icon-question",staticStyle:{color:"#C0C4CC"}})]),e._v(" "),o("limitInput",{attrs:{inputWidth:500,inputValue:e.storeInfo.storeCode,holder:"",maxLength:20},on:{"update:inputValue":function(t){e.$set(e.storeInfo,"storeCode",t)}}})],2)],1)],1),e._v(" "),o("div",{staticClass:"info-cell"},[o("p",{staticClass:"title font-w-500"},[e._v("店长信息")]),e._v(" "),o("el-form",{ref:"storeManager",staticClass:"store-manager-info-form info-form",attrs:{rules:e.rules,model:e.storeInfo,"label-width":"100px"}},[o("el-form-item",{attrs:{label:"店长姓名",prop:"managerName"}},[o("limitInput",{attrs:{inputWidth:500,inputValue:e.storeInfo.managerName,holder:"",maxLength:10},on:{"update:inputValue":function(t){e.$set(e.storeInfo,"managerName",t)}}})],1),e._v(" "),o("el-form-item",{attrs:{label:"手机号码",prop:"managerPhoneNumber"}},[o("el-input",{attrs:{disabled:!e.isNew&&!!e.storeInfo.managerPhoneNumber},model:{value:e.storeInfo.managerPhoneNumber,callback:function(t){e.$set(e.storeInfo,"managerPhoneNumber",t)},expression:"storeInfo.managerPhoneNumber"}})],1),e._v(" "),o("el-form-item",{attrs:{label:"店长性别"}},[o("el-radio-group",{model:{value:e.storeInfo.managerSex,callback:function(t){e.$set(e.storeInfo,"managerSex",t)},expression:"storeInfo.managerSex"}},[o("el-radio",{attrs:{label:1}},[e._v("男")]),e._v(" "),o("el-radio",{attrs:{label:2}},[e._v("女")])],1)],1),e._v(" "),o("el-form-item",{attrs:{label:"店长代码",prop:"managerCode"}},[o("limitInput",{attrs:{inputWidth:500,inputValue:e.storeInfo.managerCode,holder:"",maxLength:20},on:{"update:inputValue":function(t){e.$set(e.storeInfo,"managerCode",t)}}})],1)],1)],1),e._v(" "),o("div",{staticClass:"info-cell"},[o("p",{staticClass:"title font-w-500"},[e._v("经营信息")]),e._v(" "),o("el-form",{ref:"storeOperate",staticClass:"operate-info-form info-form",attrs:{rules:e.rules,model:e.storeInfo,"label-width":"90px"}},[o("el-form-item",{attrs:{label:"特色服务",prop:"specialService"}},[o("el-input",{attrs:{type:"textarea",rows:2},model:{value:e.storeInfo.specialService,callback:function(t){e.$set(e.storeInfo,"specialService",t)},expression:"storeInfo.specialService"}}),e._v(" "),o("p",{staticClass:"counter t-rt c-909399 font-12"},[e._v(e._s((e.storeInfo.specialService||"").length)+"/20")])],1),e._v(" "),o("el-form-item",{attrs:{label:"人均消费",prop:"personCost"}},[o("limitInput",{attrs:{inputWidth:500,inputValue:e.storeInfo.personCost,holder:"",maxLength:10},on:{"update:inputValue":function(t){e.$set(e.storeInfo,"personCost",t)}}})],1),e._v(" "),o("el-form-item",{attrs:{label:"推荐商品"}},[o("el-input",{attrs:{type:"textarea",rows:2},model:{value:e.storeInfo.recommendGoods,callback:function(t){e.$set(e.storeInfo,"recommendGoods",t)},expression:"storeInfo.recommendGoods"}}),e._v(" "),o("p",{staticClass:"counter t-rt c-909399 font-12"},[e._v(e._s((e.storeInfo.recommendGoods||"").length)+"/100")])],1),e._v(" "),o("el-form-item",{attrs:{label:"品牌介绍"}},[o("el-input",{attrs:{type:"textarea",rows:2},model:{value:e.storeInfo.brandDes,callback:function(t){e.$set(e.storeInfo,"brandDes",t)},expression:"storeInfo.brandDes"}}),e._v(" "),o("p",{staticClass:"counter t-rt c-909399 font-12"},[e._v(e._s((e.storeInfo.recommendGoods||"").length)+"/200")])],1)],1)],1),e._v(" "),o("div",{staticClass:"handle-area"},[o("el-button",{attrs:{type:"primary"},on:{click:e.clickToSave}},[e._v("保 存")])],1)]),e._v(" "),o("vue-select-store",{ref:"storeSelector",attrs:{treeSet:e.treeSet,selectType:"group",forbidenList:[e.storeInfo.storeGroupId]},on:{handleSelectedList:e.handleSelectedList}})],1)])])],1)},staticRenderFns:[]};var c=o("VU/8")(m,u,!1,function(e){o("onu3")},null,null);t.default=c.exports},onu3:function(e,t){}});
\ No newline at end of file
webpackJsonp([39],{"00Sv":function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r={render:function(){var e=this.$createElement;return(this._self._c||e)("div")},staticRenderFns:[]};var u=t("VU/8")({name:"add-employee"},r,!1,function(e){t("qJDF")},null,null);n.default=u.exports},qJDF:function(e,n){}});
\ No newline at end of file
webpackJsonp([38],{"00Sv":function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var r={render:function(){var e=this.$createElement;return(this._self._c||e)("div")},staticRenderFns:[]};var u=t("VU/8")({name:"add-employee"},r,!1,function(e){t("qJDF")},null,null);n.default=u.exports},qJDF:function(e,n){}});
\ No newline at end of file
webpackJsonp([40],{"7CSP":function(e,t){},ys9I:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=r("3Xzz"),s=(r("Mk6G"),r("3E4D"),r("Ch4/"),r("PI0u")),n={name:"replaceAdmin",data:function(){return{navpath:[{name:"首页",path:"/index"},{name:"设置",path:"/companyAddress"},{name:"更换超级管理员",path:""}],subNavText:"更换超级管理员,需要先验证当前超级管理员身份",active:0,ruleForm:{name:"11",phone:1334444444,code:""},rules:{name:[{required:!0,message:"请输入当前绑定账号",trigger:"blur"}],phone:[{required:!0,message:"请输入手机号",trigger:"blur"}],code:[{required:!0,message:"请输入验证码",trigger:"blur"}]},disableBtn:!1,countNum:60,newFormLoad:!1,newRuleForm:{name:""},newRules:{name:[{required:!0,message:"请输入手机号/姓名",trigger:["blur","change"]}]}}},computed:{},methods:{countDown:function(){var e=this,t=setInterval(function(){if(0===e.countNum)return clearInterval(t),e.countNum=60,e.disableBtn=!1,!1;e.countNum--},1e3)},sendCode:Object(s.a)(function(e){this.disableBtn=!0;var t=String(e).substr(0,3)+"****"+e.substr(7,11);this.countDown(),this.$message({message:"验证码已发送到您的手机:+86 "+t,type:"success"})},500),postSendCode:function(){},submitForm:Object(s.a)(function(e){var t=this;t.$refs[e].validate(function(e){if(!e)return!1;t.active++>2&&t.active,t.$nextTick(function(){console.log(t.$refs.newRuleForm)})})},500),newSubmitForm:Object(s.a)(function(e){var t=this;t.newRuleForm.name=t.newRuleForm.name.replace(/(^\s+)|(\s+$)/g,""),t.$refs[e].validate(function(e){if(!e)return!1;t.active++})},500),submitFormBack:function(){this.$refs.newRuleForm.resetFields(),this.active&&this.active--},getCurrentUser:function(){var e=JSON.parse(localStorage.getItem("userInfo"));this.ruleForm.phone=e.phoneNumber}},mounted:function(){this.getCurrentUser()},components:{navCrumb:a.a}},o={render:function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"replaceAdmin-wrap common-set-wrap"},[r("nav-crumb",{attrs:{navpath:e.navpath}}),e._v(" "),r("div",{staticClass:"right-content"},[r("div",{staticClass:"right-box",style:{height:e.$store.state.bgHeight}},[r("el-steps",{attrs:{active:e.active,"finish-status":"success","align-center":""}},[r("el-step",{attrs:{title:"获取验证码"}}),e._v(" "),r("el-step",{attrs:{title:"绑定新的超级管理员"}}),e._v(" "),r("el-step",{attrs:{title:"完成"}})],1),e._v(" "),r("div",{staticClass:"w-514 replaceAdmin-wrap-form m-t-45"},[0==e.active?r("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,rules:e.rules,"label-width":"110px"}},[r("el-form-item",{attrs:{label:"当前绑定账号",prop:"name"}},[r("el-input",{staticClass:"w-280",attrs:{disabled:"",placeholder:""},model:{value:e.ruleForm.name,callback:function(t){e.$set(e.ruleForm,"name",t)},expression:"ruleForm.name"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"手机号",prop:"phone"}},[r("el-input",{staticClass:"w-280",attrs:{disabled:"",placeholder:""},model:{value:e.ruleForm.phone,callback:function(t){e.$set(e.ruleForm,"phone",t)},expression:"ruleForm.phone"}}),r("el-button",{staticClass:"m-l-20 v-align-b",attrs:{type:"primary",plain:"",disabled:e.disableBtn},on:{click:function(t){e.sendCode(e.ruleForm.phone)}}},[e._v(e._s(!e.disableBtn&&e.countNum?"获取验证码":e.countNum))])],1),e._v(" "),r("el-form-item",{attrs:{label:"验证码",prop:"code"}},[r("el-input",{staticClass:"w-280",attrs:{placeholder:"请输入验证码"},model:{value:e.ruleForm.code,callback:function(t){e.$set(e.ruleForm,"code",t)},expression:"ruleForm.code"}})],1),e._v(" "),r("el-form-item",[r("el-button",{attrs:{type:"primary"},on:{click:function(t){e.submitForm("ruleForm")}}},[e._v("下一步")])],1)],1):e._e(),e._v(" "),r("el-form",{directives:[{name:"show",rawName:"v-show",value:1==e.active,expression:"active == 1"}],ref:"newRuleForm",staticClass:"demo-ruleForm",attrs:{model:e.newRuleForm,rules:e.newRules,"label-width":"140px"}},[r("el-form-item",{attrs:{label:"新绑定超级管理员",prop:"name"}},[r("el-input",{staticClass:"w-280",attrs:{placeholder:"请输入手机号/姓名"},model:{value:e.newRuleForm.name,callback:function(t){e.$set(e.newRuleForm,"name",t)},expression:"newRuleForm.name"}})],1),e._v(" "),r("el-form-item",[r("el-button",{attrs:{type:"primary",loading:e.newFormLoad},on:{click:function(t){e.newSubmitForm("newRuleForm")}}},[e._v("提 交")]),e._v(" "),r("el-button",{attrs:{plain:""},on:{click:e.submitFormBack}},[e._v("上一步")])],1)],1),e._v(" "),2==e.active?r("div",{staticClass:"replaceAdmin-wrap-success"},[e._m(0),e._v(" "),r("p",{staticClass:"font-w-500"},[e._v("操作成功")])]):e._e()],1)],1)]),e._v(" "),r("vue-gic-footer")],1)},staticRenderFns:[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"icon-outer"},[t("i",{staticClass:"el-icon-success"})])}]};var l=r("VU/8")(n,o,!1,function(e){r("7CSP")},"data-v-0f787a58",null);t.default=l.exports}});
\ No newline at end of file
webpackJsonp([39],{"7CSP":function(e,t){},ys9I:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=r("3Xzz"),s=(r("Mk6G"),r("3E4D"),r("Ch4/"),r("PI0u")),n={name:"replaceAdmin",data:function(){return{navpath:[{name:"首页",path:"/index"},{name:"设置",path:"/companyAddress"},{name:"更换超级管理员",path:""}],subNavText:"更换超级管理员,需要先验证当前超级管理员身份",active:0,ruleForm:{name:"11",phone:1334444444,code:""},rules:{name:[{required:!0,message:"请输入当前绑定账号",trigger:"blur"}],phone:[{required:!0,message:"请输入手机号",trigger:"blur"}],code:[{required:!0,message:"请输入验证码",trigger:"blur"}]},disableBtn:!1,countNum:60,newFormLoad:!1,newRuleForm:{name:""},newRules:{name:[{required:!0,message:"请输入手机号/姓名",trigger:["blur","change"]}]}}},computed:{},methods:{countDown:function(){var e=this,t=setInterval(function(){if(0===e.countNum)return clearInterval(t),e.countNum=60,e.disableBtn=!1,!1;e.countNum--},1e3)},sendCode:Object(s.a)(function(e){this.disableBtn=!0;var t=String(e).substr(0,3)+"****"+e.substr(7,11);this.countDown(),this.$message({message:"验证码已发送到您的手机:+86 "+t,type:"success"})},500),postSendCode:function(){},submitForm:Object(s.a)(function(e){var t=this;t.$refs[e].validate(function(e){if(!e)return!1;t.active++>2&&t.active,t.$nextTick(function(){console.log(t.$refs.newRuleForm)})})},500),newSubmitForm:Object(s.a)(function(e){var t=this;t.newRuleForm.name=t.newRuleForm.name.replace(/(^\s+)|(\s+$)/g,""),t.$refs[e].validate(function(e){if(!e)return!1;t.active++})},500),submitFormBack:function(){this.$refs.newRuleForm.resetFields(),this.active&&this.active--},getCurrentUser:function(){var e=JSON.parse(localStorage.getItem("userInfo"));this.ruleForm.phone=e.phoneNumber}},mounted:function(){this.getCurrentUser()},components:{navCrumb:a.a}},o={render:function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"replaceAdmin-wrap common-set-wrap"},[r("nav-crumb",{attrs:{navpath:e.navpath}}),e._v(" "),r("div",{staticClass:"right-content"},[r("div",{staticClass:"right-box",style:{height:e.$store.state.bgHeight}},[r("el-steps",{attrs:{active:e.active,"finish-status":"success","align-center":""}},[r("el-step",{attrs:{title:"获取验证码"}}),e._v(" "),r("el-step",{attrs:{title:"绑定新的超级管理员"}}),e._v(" "),r("el-step",{attrs:{title:"完成"}})],1),e._v(" "),r("div",{staticClass:"w-514 replaceAdmin-wrap-form m-t-45"},[0==e.active?r("el-form",{ref:"ruleForm",staticClass:"demo-ruleForm",attrs:{model:e.ruleForm,rules:e.rules,"label-width":"110px"}},[r("el-form-item",{attrs:{label:"当前绑定账号",prop:"name"}},[r("el-input",{staticClass:"w-280",attrs:{disabled:"",placeholder:""},model:{value:e.ruleForm.name,callback:function(t){e.$set(e.ruleForm,"name",t)},expression:"ruleForm.name"}})],1),e._v(" "),r("el-form-item",{attrs:{label:"手机号",prop:"phone"}},[r("el-input",{staticClass:"w-280",attrs:{disabled:"",placeholder:""},model:{value:e.ruleForm.phone,callback:function(t){e.$set(e.ruleForm,"phone",t)},expression:"ruleForm.phone"}}),r("el-button",{staticClass:"m-l-20 v-align-b",attrs:{type:"primary",plain:"",disabled:e.disableBtn},on:{click:function(t){e.sendCode(e.ruleForm.phone)}}},[e._v(e._s(!e.disableBtn&&e.countNum?"获取验证码":e.countNum))])],1),e._v(" "),r("el-form-item",{attrs:{label:"验证码",prop:"code"}},[r("el-input",{staticClass:"w-280",attrs:{placeholder:"请输入验证码"},model:{value:e.ruleForm.code,callback:function(t){e.$set(e.ruleForm,"code",t)},expression:"ruleForm.code"}})],1),e._v(" "),r("el-form-item",[r("el-button",{attrs:{type:"primary"},on:{click:function(t){e.submitForm("ruleForm")}}},[e._v("下一步")])],1)],1):e._e(),e._v(" "),r("el-form",{directives:[{name:"show",rawName:"v-show",value:1==e.active,expression:"active == 1"}],ref:"newRuleForm",staticClass:"demo-ruleForm",attrs:{model:e.newRuleForm,rules:e.newRules,"label-width":"140px"}},[r("el-form-item",{attrs:{label:"新绑定超级管理员",prop:"name"}},[r("el-input",{staticClass:"w-280",attrs:{placeholder:"请输入手机号/姓名"},model:{value:e.newRuleForm.name,callback:function(t){e.$set(e.newRuleForm,"name",t)},expression:"newRuleForm.name"}})],1),e._v(" "),r("el-form-item",[r("el-button",{attrs:{type:"primary",loading:e.newFormLoad},on:{click:function(t){e.newSubmitForm("newRuleForm")}}},[e._v("提 交")]),e._v(" "),r("el-button",{attrs:{plain:""},on:{click:e.submitFormBack}},[e._v("上一步")])],1)],1),e._v(" "),2==e.active?r("div",{staticClass:"replaceAdmin-wrap-success"},[e._m(0),e._v(" "),r("p",{staticClass:"font-w-500"},[e._v("操作成功")])]):e._e()],1)],1)]),e._v(" "),r("vue-gic-footer")],1)},staticRenderFns:[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"icon-outer"},[t("i",{staticClass:"el-icon-success"})])}]};var l=r("VU/8")(n,o,!1,function(e){r("7CSP")},"data-v-0f787a58",null);t.default=l.exports}});
\ No newline at end of file
webpackJsonp([40],{RHxA:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=a("3Xzz"),i=a("elmV"),o=a("P9l9"),l={name:"employee-io",components:{navCrumb:s.a,uploadExcelComponent:i.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",logList:[],loading:!0,pageSize:20,currentPage:1,total: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(o.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){console.log(t,e)},handlePreview:function(t){console.log(t)},uploadSuccess:function(){this.fileList=[],this.type="note",this.getErrorNote()},submitUpload:function(t){this.$refs[t].submit()},getChange:function(t,e){console.log(t,e),this.fileList=e}},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"}},n={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"}},[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("\n 下载"),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("\n 下载"),a("i",{staticClass:"iconfont icon-icon_yunxiazai m-l-5"})])],1),t._v("\n 批量修改门店信息\n ")]),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:"uploadEdit",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("uploadEdit")}}},[t._v("\n 上传\n ")])],1)]):a("div",{staticClass:"error-log import"},[a("div",{staticClass:"title-area"},[a("div",{staticClass:"tip"}),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:"name"}}),t._v(" "),a("el-table-column",{attrs:{label:"手机号",prop:"phoneNumber"}}),t._v(" "),a("el-table-column",{attrs:{label:"部门ID",prop:"departmentId"}}),t._v(" "),a("el-table-column",{attrs:{label:"职位",prop:"positionName"}}),t._v(" "),a("el-table-column",{attrs:{label:"是否此部门负责人(是/否)",prop:"isManager"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(1==e.row.isManager?"是":"否")+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"入职时间",prop:"hireDate"}})],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"},[t._v("企业认证")])]),t._v(" "),a("li",{staticClass:"tip"},[t._v("如需更新已存在的门店及店员,可逐个进行修改,或请先导出,在导出表格里进行修改")]),t._v(" "),a("li",{staticClass:"tip"},[t._v("由于数据量可能较大,每次最多导入2000条员工档案,若超过只取前2000条,可以分多次导入")]),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("门店所在分组:请先到后台创建门店分组,将分组id填入导入表格中,导入中,若找不到对应分组,将直接将门店挂在根目录下面")]),t._v(" "),a("li",{staticClass:"tip"},[t._v("未认证企业通讯录最多只能导入30家门店,超出后无法导入,请先进行企业认证")]),t._v(" "),a("li",{staticClass:"tip"},[t._v("每次最多导入2000家门店,如果超出则只取前2000条数据,可以分多次导入")])])}]};var r=a("VU/8")(l,n,!1,function(t){a("cXcX")},null,null);e.default=r.exports},cXcX:function(t,e){}});
\ No newline at end of file
webpackJsonp([42],{"4qCZ":function(e,t){},"5tgt":function(e,t,n){e.exports=function(e,t){return function(o){n("Opzk")("./"+e+"/"+t+".vue").then(function(e){o(e)})}}},NHnr:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n("mvHQ"),a=n.n(o),r=n("7+uW"),c={render:function(){var e=this.$createElement,t=this._self._c||e;return t("div",{attrs:{id:"app"}},[t("transition",{attrs:{name:"fade",mode:"out-in"}},[t("router-view")],1)],1)},staticRenderFns:[]};var s=n("VU/8")({name:"App",data:function(){return{}}},c,!1,function(e){n("Qxu9")},null,null).exports,i=n("/ocq"),m=n("5tgt"),d=n.n(m);r.default.use(i.a);var p=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 u,l=[{path:"/",name:"/",redirect:"login"},{path:"/login",name:"登录",component:d()("login","index")},{path:"/index",name:"index",component:d()("index","index")},{path:"/contacts",name:"通讯录",redirect:"administrativeFrame",component:d()("contacts","index"),children:[{path:"/administrativeFrame",name:"行政架构",component:d()("contacts","administrativeFrame")},{path:"/employeeIo",name:"批量导入/导出",component:d()("contacts","employeeIo")},{path:"/addDepartment",name:"添加部门",component:d()("contacts","addDepartment")},{path:"/addClerk",name:"添加店员",component:d()("contacts","addClerk")},{path:"/storeFrame",name:"门店架构",component:d()("contacts","storeFrame")},{path:"/addGroup",name:"添加子分组",component:d()("contacts","addGroup")},{path:"/storeIo",name:"门店导入/导出",component:d()("contacts","storeIo")},{path:"/storeInfo",name:"编辑门店",component:d()("contacts","storeInfo")},{path:"/recycle",name:"门店回收站",component:d()("contacts","recycle")},{path:"/employee",name:"编辑员工",component:d()("contacts","employee")},{path:"/unemployee",name:"离职员工",component:d()("contacts","unemployee")},{path:"/fileSet",name:"档案设置",component:d()("contacts","fileSet")},{path:"/recordInfo",name:"编辑员工信息",component:d()("contacts","recordInfo")},{path:"/recordIo",name:"导入导出员工档案",component:d()("contacts","recordIo")},{path:"/shareContact",name:"共享通讯录",component:d()("contacts","shareContact")},{path:"/shareCode",name:"共享通讯录二维码",component:d()("contacts","shareCode")},{path:"/employeeRecord",name:"在职员工",component:d()("contacts","employeeRecord")}]},{path:"/enterpriseApp",name:"企业应用",component:d()("enterpriseApp","index")},{path:"/reviewCenter",name:"审核中心",redirect:"unreview",component:d()("reviewCenter","index"),children:[{path:"/reviewed",name:"已审核",component:d()("reviewCenter","reviewed")},{path:"/unreview",name:"未审核",component:d()("reviewCenter","unreview")}]},{path:"/setCenter",name:"设置",redirect:"companyAddress",component:d()("setting","index"),children:[{path:"/companyAddress",name:"企业地址",component:d()("setting","companyAddress")},{path:"/companyCertify",name:"企业认证",component:d()("setting","companyCertify")},{path:"/staffDetails",name:"员工详情字段",component:d()("setting","staffDetails")},{path:"/storePermission",name:"门店权限设置",component:d()("setting","storePermission")},{path:"/replaceAdmin",name:"更换超级管理员",component:d()("setting","replaceAdmin")},{path:"/setChildAdmin",name:"设置子管理员",component:d()("setting","setChildAdmin")},{path:"/addAdmin",name:"添加管理员",component:d()("setting","addAdmin")},{path:"/addAdminRole",name:"添加管理员角色",component:d()("setting","addAdminRole")}]},{path:"/staffRecordsTemplate",name:"员工档案设置",component:d()("contacts","staffRecordsTemplate")},{path:"/403",name:"无权访问",component:p},{path:"/404",name:"error404",component:p},{path:"/500",name:"error500",component:p},{path:"*",redirect:"/404",hidden:!0}],f=new i.a({routes:l,scrollBehavior:function(){return{y:0}}}),h=n("zL8q"),v=n.n(h),g=n("Rf8U"),w=n.n(g),y=n("mtWM"),C=n.n(y),x=n("bOdI"),A=n.n(x),I=n("NYxO");r.default.use(I.a);var R=new I.a.Store({state:{user:{},token:null,title:"",show:!1,bgHeight:window.screen.availHeight-440-24+"px"},mutations:(u={},A()(u,"login",function(e,t){sessionStorage.token=t,e.token=t}),A()(u,"logout",function(e){sessionStorage.removeItem("token"),e.token=null}),A()(u,"title",function(e,t){e.title=t}),A()(u,"show",function(e,t){e.show=t}),u)}),k=(n("4qCZ"),n("uKUT"),n("Xcu2"),n("TUaa")),P=n.n(k),S=n("tyqE"),O=n.n(S),T=n("pRVe"),b=n.n(T),D=n("SE7k"),F=n.n(D),j=n("XsK6"),z=n.n(j),E=n("QRL9"),G=n.n(E),H=n("2Pnh"),q=n.n(H),J=n("l9mu"),X=n.n(J),U={install:function(e,t){e.prototype.getPdf=function(){var e=this.htmlTitle;q()(document.querySelector("#pdfDom"),{allowTaint:!0,foreignObjectRendering:!0}).then(function(t){var n=t.width,o=t.height,a=n/592.28*841.89,r=o,c=0,s=592.28/n*o,i=t.toDataURL("image/jpeg",1),m=new X.a("","pt","a4");if(r<a)m.addImage(i,"JPEG",0,0,595.28,s);else for(;r>0;)m.addImage(i,"JPEG",0,c,595.28,s),c-=841.89,(r-=a)>0&&m.addPage();m.save(e+".pdf")})}}};r.default.use(U),r.default.use(z.a),r.default.use(G.a),r.default.use(F.a),r.default.use(b.a),r.default.use(O.a),r.default.use(P.a),r.default.config.productionTip=!1,r.default.use(v.a,{size:"large"}),r.default.use(w.a,C.a),r.default.axios.defaults.withCredentials=!0,f.beforeEach(function(e,t,n){var o=void 0,r=window.location.origin;o="-1"!=r.indexOf("localhost")?"http://www.gicdev.com":r,localStorage.getItem("userInfo")||C.a.get(o+"/haoban-manage-web/emp/get-user-info",{}).then(function(e){var t=e.data;1!=t.errorCode?h.Message.error({duration:1e3,message:t.message}):localStorage.setItem("userInfo",a()(t.result))}).catch(function(e){h.Message.error({duration:1e3,message:e.message})}),"/"==e.path?n({path:"/login"}):n()}),new r.default({el:"#app",router:f,store:R,components:{App:s},template:"<App/>"})},Opzk:function(e,t,n){var o={"./contacts/addClerk.vue":["27o1",0,15],"./contacts/addDepartment.vue":["HHRu",0,9],"./contacts/addEmployee.vue":["00Sv",39],"./contacts/addGroup.vue":["mPjx",0,28],"./contacts/administrativeFrame.vue":["kLcy",0,3],"./contacts/employee.vue":["AdJp",0,30],"./contacts/employeeIo.vue":["Rwbg",0,37],"./contacts/employeeRecord.vue":["zGJY",0,5],"./contacts/fileSet.vue":["CSjr",0,6],"./contacts/index.vue":["41Rh",0,35],"./contacts/recordInfo.vue":["67iC",0,18],"./contacts/recordIo.vue":["738z",0,16],"./contacts/recycle.vue":["HkK0",0,19],"./contacts/shareAddDepartment.vue":["q5Ri",0,10],"./contacts/shareCode.vue":["JsWW",0,34],"./contacts/shareContact.vue":["Gfms",0,2],"./contacts/staffRecordsTemplate.vue":["lFAe",0,12],"./contacts/storeFrame.vue":["7SJI",0,4],"./contacts/storeInfo.vue":["h/6A",0,38],"./contacts/storeIo.vue":["RHxA",0,29],"./contacts/unemployee.vue":["TGrv",0,11],"./enterpriseApp/index.vue":["da9f",27],"./errorPage/403.vue":["6XGN",21],"./errorPage/404.vue":["AejC",23],"./errorPage/500.vue":["FskK",22],"./errorPage/index.vue":["ODjX",1],"./index/index.vue":["JXTs",0,25],"./login/index.vue":["T+/8",0,7],"./reviewCenter/index.vue":["+lem",32],"./reviewCenter/reviewed.vue":["CLYF",0,14],"./reviewCenter/unreview.vue":["xCEU",0,13],"./setting/addAdmin.vue":["rs/A",0,26],"./setting/addAdminRole.vue":["fZsz",0,20],"./setting/companyAddress.vue":["SKyE",0,31],"./setting/companyCertify.vue":["3zYh",0,8],"./setting/index.vue":["VlR1",33],"./setting/replaceAdmin.vue":["ys9I",0,40],"./setting/setChildAdmin.vue":["VqB7",0,36],"./setting/staffDetails.vue":["Zyzf",0,24],"./setting/storePermission.vue":["Xwfy",0,17]};function a(e){var t=o[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+"'."))}a.keys=function(){return Object.keys(o)},a.id="Opzk",e.exports=a},Qxu9:function(e,t){},Xcu2:function(e,t){},uKUT:function(e,t){}},["NHnr"]);
\ No newline at end of file
webpackJsonp([42],{"4qCZ":function(e,t){},"5tgt":function(e,t,n){e.exports=function(e,t){return function(o){n("Opzk")("./"+e+"/"+t+".vue").then(function(e){o(e)})}}},NHnr:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n("mvHQ"),a=n.n(o),r=n("7+uW"),c={render:function(){var e=this.$createElement,t=this._self._c||e;return t("div",{attrs:{id:"app"}},[t("transition",{attrs:{name:"fade",mode:"out-in"}},[t("router-view")],1)],1)},staticRenderFns:[]};var s=n("VU/8")({name:"App",data:function(){return{}}},c,!1,function(e){n("Qxu9")},null,null).exports,i=n("/ocq"),m=n("5tgt"),d=n.n(m);r.default.use(i.a);var p=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 u,l=[{path:"/",name:"/",redirect:"login"},{path:"/login",name:"登录",component:d()("login","index")},{path:"/index",name:"index",component:d()("index","index")},{path:"/contacts",name:"通讯录",redirect:"administrativeFrame",component:d()("contacts","index"),children:[{path:"/administrativeFrame",name:"行政架构",component:d()("contacts","administrativeFrame")},{path:"/employeeIo",name:"批量导入/导出",component:d()("contacts","employeeIo")},{path:"/addDepartment",name:"添加部门",component:d()("contacts","addDepartment")},{path:"/addClerk",name:"添加店员",component:d()("contacts","addClerk")},{path:"/storeFrame",name:"门店架构",component:d()("contacts","storeFrame")},{path:"/addGroup",name:"添加子分组",component:d()("contacts","addGroup")},{path:"/storeIo",name:"门店导入/导出",component:d()("contacts","storeIo")},{path:"/storeInfo",name:"编辑门店",component:d()("contacts","storeInfo")},{path:"/recycle",name:"门店回收站",component:d()("contacts","recycle")},{path:"/employee",name:"编辑员工",component:d()("contacts","employee")},{path:"/unemployee",name:"离职员工",component:d()("contacts","unemployee")},{path:"/fileSet",name:"档案设置",component:d()("contacts","fileSet")},{path:"/recordInfo",name:"编辑员工信息",component:d()("contacts","recordInfo")},{path:"/recordIo",name:"导入导出员工档案",component:d()("contacts","recordIo")},{path:"/shareContact",name:"共享通讯录",component:d()("contacts","shareContact")},{path:"/shareCode",name:"共享通讯录二维码",component:d()("contacts","shareCode")},{path:"/employeeRecord",name:"在职员工",component:d()("contacts","employeeRecord")}]},{path:"/enterpriseApp",name:"企业应用",component:d()("enterpriseApp","index")},{path:"/reviewCenter",name:"审核中心",redirect:"unreview",component:d()("reviewCenter","index"),children:[{path:"/reviewed",name:"已审核",component:d()("reviewCenter","reviewed")},{path:"/unreview",name:"未审核",component:d()("reviewCenter","unreview")}]},{path:"/setCenter",name:"设置",redirect:"companyAddress",component:d()("setting","index"),children:[{path:"/companyAddress",name:"企业地址",component:d()("setting","companyAddress")},{path:"/companyCertify",name:"企业认证",component:d()("setting","companyCertify")},{path:"/staffDetails",name:"员工详情字段",component:d()("setting","staffDetails")},{path:"/storePermission",name:"门店权限设置",component:d()("setting","storePermission")},{path:"/replaceAdmin",name:"更换超级管理员",component:d()("setting","replaceAdmin")},{path:"/setChildAdmin",name:"设置子管理员",component:d()("setting","setChildAdmin")},{path:"/addAdmin",name:"添加管理员",component:d()("setting","addAdmin")},{path:"/addAdminRole",name:"添加管理员角色",component:d()("setting","addAdminRole")}]},{path:"/staffRecordsTemplate",name:"员工档案设置",component:d()("contacts","staffRecordsTemplate")},{path:"/403",name:"无权访问",component:p},{path:"/404",name:"error404",component:p},{path:"/500",name:"error500",component:p},{path:"*",redirect:"/404",hidden:!0}],f=new i.a({routes:l,scrollBehavior:function(){return{y:0}}}),h=n("zL8q"),v=n.n(h),g=n("Rf8U"),w=n.n(g),y=n("mtWM"),C=n.n(y),x=n("bOdI"),A=n.n(x),I=n("NYxO");r.default.use(I.a);var R=new I.a.Store({state:{user:{},token:null,title:"",show:!1,bgHeight:window.screen.availHeight-440-24+"px"},mutations:(u={},A()(u,"login",function(e,t){sessionStorage.token=t,e.token=t}),A()(u,"logout",function(e){sessionStorage.removeItem("token"),e.token=null}),A()(u,"title",function(e,t){e.title=t}),A()(u,"show",function(e,t){e.show=t}),u)}),k=(n("4qCZ"),n("uKUT"),n("Xcu2"),n("TUaa")),P=n.n(k),S=n("tyqE"),O=n.n(S),T=n("pRVe"),b=n.n(T),D=n("SE7k"),F=n.n(D),j=n("XsK6"),z=n.n(j),E=n("QRL9"),G=n.n(E),H=n("2Pnh"),q=n.n(H),J=n("l9mu"),X=n.n(J),U={install:function(e,t){e.prototype.getPdf=function(){var e=this.htmlTitle;q()(document.querySelector("#pdfDom"),{allowTaint:!0,foreignObjectRendering:!0}).then(function(t){var n=t.width,o=t.height,a=n/592.28*841.89,r=o,c=0,s=592.28/n*o,i=t.toDataURL("image/jpeg",1),m=new X.a("","pt","a4");if(r<a)m.addImage(i,"JPEG",0,0,595.28,s);else for(;r>0;)m.addImage(i,"JPEG",0,c,595.28,s),c-=841.89,(r-=a)>0&&m.addPage();m.save(e+".pdf")})}}};r.default.use(U),r.default.use(z.a),r.default.use(G.a),r.default.use(F.a),r.default.use(b.a),r.default.use(O.a),r.default.use(P.a),r.default.config.productionTip=!1,r.default.use(v.a,{size:"large"}),r.default.use(w.a,C.a),r.default.axios.defaults.withCredentials=!0,f.beforeEach(function(e,t,n){var o=void 0,r=window.location.origin;o="-1"!=r.indexOf("localhost")?"http://www.gicdev.com":r,localStorage.getItem("userInfo")||C.a.get(o+"/haoban-manage-web/emp/get-user-info",{}).then(function(e){var t=e.data;1!=t.errorCode?h.Message.error({duration:1e3,message:t.message}):localStorage.setItem("userInfo",a()(t.result))}).catch(function(e){h.Message.error({duration:1e3,message:e.message})}),"/"==e.path?n({path:"/login"}):n()}),new r.default({el:"#app",router:f,store:R,components:{App:s},template:"<App/>"})},Opzk:function(e,t,n){var o={"./contacts/addClerk.vue":["27o1",0,15],"./contacts/addDepartment.vue":["HHRu",0,9],"./contacts/addEmployee.vue":["00Sv",38],"./contacts/addGroup.vue":["mPjx",0,29],"./contacts/administrativeFrame.vue":["kLcy",0,3],"./contacts/employee.vue":["AdJp",0,30],"./contacts/employeeIo.vue":["Rwbg",0,26],"./contacts/employeeRecord.vue":["zGJY",0,5],"./contacts/fileSet.vue":["CSjr",0,6],"./contacts/index.vue":["41Rh",0,35],"./contacts/recordInfo.vue":["67iC",0,18],"./contacts/recordIo.vue":["738z",0,16],"./contacts/recycle.vue":["HkK0",0,19],"./contacts/shareAddDepartment.vue":["q5Ri",0,10],"./contacts/shareCode.vue":["JsWW",0,34],"./contacts/shareContact.vue":["Gfms",0,2],"./contacts/staffRecordsTemplate.vue":["lFAe",0,12],"./contacts/storeFrame.vue":["7SJI",0,4],"./contacts/storeInfo.vue":["h/6A",0,37],"./contacts/storeIo.vue":["RHxA",0,40],"./contacts/unemployee.vue":["TGrv",0,11],"./enterpriseApp/index.vue":["da9f",28],"./errorPage/403.vue":["6XGN",21],"./errorPage/404.vue":["AejC",23],"./errorPage/500.vue":["FskK",22],"./errorPage/index.vue":["ODjX",1],"./index/index.vue":["JXTs",0,25],"./login/index.vue":["T+/8",0,7],"./reviewCenter/index.vue":["+lem",32],"./reviewCenter/reviewed.vue":["CLYF",0,14],"./reviewCenter/unreview.vue":["xCEU",0,13],"./setting/addAdmin.vue":["rs/A",0,27],"./setting/addAdminRole.vue":["fZsz",0,20],"./setting/companyAddress.vue":["SKyE",0,31],"./setting/companyCertify.vue":["3zYh",0,8],"./setting/index.vue":["VlR1",33],"./setting/replaceAdmin.vue":["ys9I",0,39],"./setting/setChildAdmin.vue":["VqB7",0,36],"./setting/staffDetails.vue":["Zyzf",0,24],"./setting/storePermission.vue":["Xwfy",0,17]};function a(e){var t=o[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+"'."))}a.keys=function(){return Object.keys(o)},a.id="Opzk",e.exports=a},Qxu9:function(e,t){},Xcu2:function(e,t){},uKUT:function(e,t){}},["NHnr"]);
\ No newline at end of file
!function(e){var c=window.webpackJsonp;window.webpackJsonp=function(f,n,r){for(var t,o,b,i=0,u=[];i<f.length;i++)o=f[i],a[o]&&u.push(a[o][0]),a[o]=0;for(t in n)Object.prototype.hasOwnProperty.call(n,t)&&(e[t]=n[t]);for(c&&c(f,n,r);u.length;)u.shift()();if(r)for(i=0;i<r.length;i++)b=d(d.s=r[i]);return b};var f={},a={44:0};function d(c){if(f[c])return f[c].exports;var a=f[c]={i:c,l:!1,exports:{}};return e[c].call(a.exports,a,a.exports,d),a.l=!0,a.exports}d.e=function(e){var c=a[e];if(0===c)return new Promise(function(e){e()});if(c)return c[2];var f=new Promise(function(f,d){c=a[e]=[f,d]});c[2]=f;var n=document.getElementsByTagName("head")[0],r=document.createElement("script");r.type="text/javascript",r.charset="utf-8",r.async=!0,r.timeout=12e4,d.nc&&r.setAttribute("nonce",d.nc),r.src=d.p+"static/js/"+e+"."+{0:"f25c4ad74628a9c4e256",1:"4e5dc79adcf9e1d40da1",2:"0018e5e56bcf374b0fc9",3:"e2d855350417948f7791",4:"c03fae50c3898c1c507f",5:"96e9bd527364c3b21801",6:"bcf4532e6a55dfcc50de",7:"5e87410d160e19c222a5",8:"bc9879c18e0eefd45736",9:"dafaf5df18266c43eda5",10:"f71d995b31916b56a357",11:"904fb1ec168a22ec03a3",12:"f33078370ab13436ea86",13:"2d4736bd7e251f3dcf47",14:"e7d3ed2156f3fb9a1081",15:"4559c7f280133c1c843a",16:"f39c7bfa0f5fc8ed86d6",17:"e276878409aef724ffb3",18:"ba7e9ae20df2cc330b46",19:"cad3457efbfa82dcd956",20:"ada1a23d2ad53ce7e8f0",21:"86cf9b32a6a3a5bdd242",22:"a51dc83d6123e696f14e",23:"2d4fb5655c6a50627ac3",24:"116e361cc02f70bfcaa3",25:"cef58007b279cec51d0c",26:"2b908724cc25801d0b99",27:"e91ad83c4c8984fd36cb",28:"9e07fe8f120cba9b2df2",29:"516c7ceb85621860fe0e",30:"24ee02c41bae733cd122",31:"07e388fdec2be21fd250",32:"193e23440780913a5a69",33:"b25c2b09e091c0f2488e",34:"de97886133d42d6f0b82",35:"6bfb9b1f8bb17ea37d29",36:"168ed8d707044cc855fa",37:"774ebe3d54ad8b741119",38:"b99de1c255ed20dcccbd",39:"e40ef2d2e3948fbf5db2",40:"0342cde8f52fadd8217e",43:"13848f214bb993c20004"}[e]+".js";var t=setTimeout(o,12e4);function o(){r.onerror=r.onload=null,clearTimeout(t);var c=a[e];0!==c&&(c&&c[1](new Error("Loading chunk "+e+" failed.")),a[e]=void 0)}return r.onerror=r.onload=o,n.appendChild(r),f},d.m=e,d.c=f,d.d=function(e,c,f){d.o(e,c)||Object.defineProperty(e,c,{configurable:!1,enumerable:!0,get:f})},d.n=function(e){var c=e&&e.__esModule?function(){return e.default}:function(){return e};return d.d(c,"a",c),c},d.o=function(e,c){return Object.prototype.hasOwnProperty.call(e,c)},d.p="./",d.oe=function(e){throw console.error(e),e}}([]);
\ No newline at end of file
!function(e){var c=window.webpackJsonp;window.webpackJsonp=function(a,r,t){for(var d,o,b,i=0,u=[];i<a.length;i++)o=a[i],f[o]&&u.push(f[o][0]),f[o]=0;for(d in r)Object.prototype.hasOwnProperty.call(r,d)&&(e[d]=r[d]);for(c&&c(a,r,t);u.length;)u.shift()();if(t)for(i=0;i<t.length;i++)b=n(n.s=t[i]);return b};var a={},f={44:0};function n(c){if(a[c])return a[c].exports;var f=a[c]={i:c,l:!1,exports:{}};return e[c].call(f.exports,f,f.exports,n),f.l=!0,f.exports}n.e=function(e){var c=f[e];if(0===c)return new Promise(function(e){e()});if(c)return c[2];var a=new Promise(function(a,n){c=f[e]=[a,n]});c[2]=a;var r=document.getElementsByTagName("head")[0],t=document.createElement("script");t.type="text/javascript",t.charset="utf-8",t.async=!0,t.timeout=12e4,n.nc&&t.setAttribute("nonce",n.nc),t.src=n.p+"static/js/"+e+"."+{0:"f25c4ad74628a9c4e256",1:"4e5dc79adcf9e1d40da1",2:"0018e5e56bcf374b0fc9",3:"e2d855350417948f7791",4:"c03fae50c3898c1c507f",5:"96e9bd527364c3b21801",6:"bcf4532e6a55dfcc50de",7:"5e87410d160e19c222a5",8:"bc9879c18e0eefd45736",9:"dafaf5df18266c43eda5",10:"f71d995b31916b56a357",11:"904fb1ec168a22ec03a3",12:"f33078370ab13436ea86",13:"2d4736bd7e251f3dcf47",14:"e7d3ed2156f3fb9a1081",15:"4559c7f280133c1c843a",16:"7ac0f9e9a62d414ab15c",17:"e276878409aef724ffb3",18:"ba7e9ae20df2cc330b46",19:"cad3457efbfa82dcd956",20:"ada1a23d2ad53ce7e8f0",21:"86cf9b32a6a3a5bdd242",22:"a51dc83d6123e696f14e",23:"2d4fb5655c6a50627ac3",24:"116e361cc02f70bfcaa3",25:"cef58007b279cec51d0c",26:"4a0b90e23e8a098453c2",27:"421e7b88a9f2266350a4",28:"4147549ac5b6140398a6",29:"61f4d15a30accce601a8",30:"24ee02c41bae733cd122",31:"07e388fdec2be21fd250",32:"193e23440780913a5a69",33:"b25c2b09e091c0f2488e",34:"de97886133d42d6f0b82",35:"6bfb9b1f8bb17ea37d29",36:"168ed8d707044cc855fa",37:"48a0986e2a3e2afc0a11",38:"76a8a6ee8b88a2273a85",39:"8ce936c37fb95f91d15e",40:"e2e529b47f207d258685",43:"13848f214bb993c20004"}[e]+".js";var d=setTimeout(o,12e4);function o(){t.onerror=t.onload=null,clearTimeout(d);var c=f[e];0!==c&&(c&&c[1](new Error("Loading chunk "+e+" failed.")),f[e]=void 0)}return t.onerror=t.onload=o,r.appendChild(t),a},n.m=e,n.c=a,n.d=function(e,c,a){n.o(e,c)||Object.defineProperty(e,c,{configurable:!1,enumerable:!0,get:a})},n.n=function(e){var c=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(c,"a",c),c},n.o=function(e,c){return Object.prototype.hasOwnProperty.call(e,c)},n.p="./",n.oe=function(e){throw console.error(e),e}}([]);
\ No newline at end of file
<template>
<div class="common-set-wrap">
<div class="common-set-wrap" :style="{'height': windowH}">
<nav-crumb :navpath="navpath"></nav-crumb>
<div class="right-content">
<div class="right-box">
<div class="io-container">
<ul class="tip-area">
<div class="io-container border-box ">
<ul class="tip-area border-box ">
<li class="tip">由于你的企业未进行企业认证,通讯录最多只能导入200人以内的员工,如有超出可先进行<a class="a-href">企业认证</a></li>
<li class="tip">如需更新已存在的员工,可逐个进行修改,或请先导出通讯录,在导出表格里进行修改</li>
<li class="tip">不能在本excel表中对员工信息类别进行增加、删除、修改</li>
......@@ -18,16 +18,26 @@
<el-radio-button label="note">错误记录</el-radio-button>
</el-radio-group>
<div class="handle-area import" v-if="type == 'import'">
<div class="step-div" style="margin-bottom :90px;">
<div class="step-div" style="margin-bottom: 90px; line-height: 32px;">
<span class="ft-large"></span>下载员工通讯录模板,统一收集员工信息
<a href="http://www.gicdev.com/haoban-manage-web/excel/通讯录-行政架构导入模板.xlsx" class="d-u-btn">
<a
:href="host + '/haoban-manage-web/excel/通讯录-行政架构导入模板.xlsx'"
class="d-u-btn">
<el-button type="primary">下载<i class="iconfont icon-icon_yunxiazai m-l-5"></i></el-button>
</a>
</div>
<div class="step-div">
<span class="ft-large"></span>上传收集完毕的员工信息表
<div class="d-u-btn m-t-20">
<el-upload class="upload-demo" ref="upload" :action="url" :on-success="uploadSuccess" :on-change="getChange" :multiple="false" :file-list="fileList" :auto-upload="false">
<div class="d-u-btn">
<el-upload
class="upload-demo"
ref="upload"
:action="url"
:on-success="uploadSuccess"
:on-change="getChange"
:multiple="false"
:file-list="fileList"
:auto-upload="false">
<el-button slot="trigger" size="small" type="primary">选取文件</el-button>
<div slot="tip" class="el-upload__tip">文件格式必须为xls或xlsx格式</div>
</el-upload>
......@@ -38,17 +48,29 @@
</div>
</div>
<div class="handle-area import" v-else-if="type == 'export'">
<div class="step-div" style="margin-bottom :90px;">
<div class="step-div" style="margin-bottom: 90px; line-height: 32px;">
<span class="ft-large"></span>导出所有员工信息
<a class="d-u-btn" :href="'http://www.gicdev.com/haoban-manage-web/emp/export?departmentId='+$route.query.departmentId+'&showChild='+$route.query.showChildMember">
<el-button type="primary">下载<i class="iconfont icon-icon_yunxiazai m-l-5"></i></el-button>
</a>
<a
class="d-u-btn"
:href="host + '/haoban-manage-web/emp/export?departmentId='+$route.query.departmentId+'&showChild='+$route.query.showChildMember">
<el-button type="primary">
下载<i class="iconfont icon-icon_yunxiazai m-l-5"></i>
</el-button>
</a>
批量修改员工信息
</div>
<div class="step-div">
<span class="ft-large"></span>上传修改好的员工信息表
<div class="d-u-btn m-t-20">
<el-upload class="upload-demo" ref="uploadEdit" :action="url" :on-success="uploadSuccess" :on-change="getChange" :multiple="false" :file-list="fileList" :auto-upload="false">
<div class="d-u-btn">
<el-upload
class="upload-demo"
ref="uploadEdit"
:action="url"
:on-success="uploadSuccess"
:on-change="getChange"
:multiple="false"
:file-list="fileList"
:auto-upload="false">
<el-button slot="trigger" size="small" type="primary">选取文件</el-button>
<div slot="tip" class="el-upload__tip">文件格式必须为xls或xlsx格式</div>
</el-upload>
......@@ -63,11 +85,16 @@
<div class="tip">
导入总条数:0条,成功导入0条,<span class="red">错误导入0条</span>
</div>
<a :href="'http://www.gicdev.com/haoban-manage-web/error-improt-log-export?importCode='+$route.query.importCode+'&departmentId='+$route.query.departmentId">
<el-button type="primary">导出错误记录</el-button>
</a>
<a
:href="host + '/haoban-manage-web/error-improt-log-export?importCode='+$route.query.importCode+'&departmentId='+$route.query.departmentId">
<el-button type="primary">导出错误记录</el-button>
</a>
</div>
<el-table v-loading="loading" :data="logList" class="m-t-20" style="width: 100%">
<el-table
v-loading="loading"
:data="logList"
class="m-t-20"
style="width: 100%">
<el-table-column type="index" width="50" label="序号">
</el-table-column>
<el-table-column label="错误提示" prop="failReason"></el-table-column>
......@@ -82,14 +109,23 @@
</el-table-column>
<el-table-column label="入职时间" prop="hireDate"></el-table-column>
</el-table>
<div class="pagination">
<el-pagination background @size-change="handleSizeChange" @current-change="handleCurrentChange" :page-sizes="[20, 40, 60, 80]" :page-size="pageSize" :current-page="currentPage" layout="total, sizes, prev, pager, next" :total="total">
<div class="pagination" v-if="!!logList.length">
<el-pagination
background
:page-sizes="[20, 40, 60, 80]"
:page-size="pageSize"
:current-page="currentPage"
layout="total, sizes, prev, pager, next"
:total="total"
@size-change="handleSizeChange"
@current-change="handleCurrentChange" >
</el-pagination>
</div>
</div>
</div>
</div>
</div>
<vue-gic-footer></vue-gic-footer>
</div>
</template>
<script>
......@@ -126,6 +162,8 @@ export default {
path: ''
}
],
host: window.location.origin,
windowH: (window.screen.availHeight - 180) + 'px',
type: "import",
fileList: [],
url: local + "/haoban-manage-web/emp/upload",
......@@ -186,14 +224,34 @@ export default {
submitUpload(upload) {
this.$refs[upload].submit();
},
/**
* 上传文件改变
*/
getChange(file, fileList) {
this.fileList = fileList;
let len = fileList.length - 1 < 0 ? 0 : fileList.length - 1 ;
// 判断上传文件类型
let fileType = file.raw.type;
let isExcel = (fileType === 'application/vnd.ms-excel') || (fileType ==='application/vnd.openxmlformats-officedocument.spreadsheetml.sheet');
if (!isExcel) {
this.$message.error('文件格式必须为 xls 或 xlsx 格式!');
this.fileList.splice(len,1);
return false;
}
this.fileList = [fileList[len]];
}
},
beforeMount() {
if (this.type == "note") {
this.getErrorNote();
}
this.$nextTick(function(){
document.querySelector('.contact-wrap__body').style.overflow = 'hidden';
})
},
beforeDestroy() {
document.querySelector('.contact-wrap__body').style.overflow = 'auto';
}
}
......@@ -201,7 +259,6 @@ export default {
<style lang="scss">
.io-container {
width: 100%;
height: 538px;
background: #fff;
box-sizing: border-box;
padding: 28px 32px;
......@@ -281,9 +338,9 @@ export default {
.step-div {
.d-u-btn {
display: inline-block;
vertical-align: top;
margin-left: 10px;
margin-right: 10px;
vertical-align: middle;
.iconfont {
margin-left: 5px;
......@@ -307,7 +364,7 @@ export default {
.up-btn-div {
text-align: center;
margin-top: 20px;
margin-top: 40px;
}
}
}
......
......@@ -19,9 +19,11 @@
<el-radio-button label="note">错误记录</el-radio-button>
</el-radio-group>
<div class="handle-area import" v-if="type == 'import'">
<div class="step-div" style="margin-bottom :90px;">
<div class="step-div" style="margin-bottom: 90px; line-height: 32px;">
<span class="ft-large"></span>下载模板
<a href="http://www.gicdev.com/haoban-manage-web/record/export-record-template.json" class="d-u-btn">
<a
:href="host + '/haoban-manage-web/record/export-record-template.json'"
class="d-u-btn">
<el-button type="primary">下载<i class="iconfont icon-icon_yunxiazai m-l-5"></i></el-button>
</a>
</div>
......@@ -48,7 +50,7 @@
</div>
</div>
<div class="handle-area import" v-else-if="type == 'export'">
<div class="step-div" style="margin-bottom :90px;">
<div class="step-div" style="margin-bottom: 90px; line-height: 32px;">
<span class="ft-large"></span>导出员工档案
<a class="d-u-btn">
<el-button type="primary" @click="callExport">下载<i class="iconfont icon-icon_yunxiazai m-l-5"></i></el-button>
......@@ -238,7 +240,6 @@ export default {
this.$refs[upload].submit();
},
getChange(file, fileList) {
console.log(file.raw.type)
let len = fileList.length - 1 < 0 ? 0 : fileList.length - 1 ;
// 判断上传文件类型
let fileType = file.raw.type;
......@@ -268,7 +269,6 @@ export default {
})
},
beforeDestroy() {
console.log(document.querySelector('.contact-wrap__body'))
document.querySelector('.contact-wrap__body').style.overflow = 'auto';
}
}
......
<template>
<div class="common-set-wrap">
<div class="common-set-wrap" :style="{'height': windowH}">
<nav-crumb :navpath="navpath"></nav-crumb>
<div class="right-content">
<div class="right-box">
<div class="io-container">
<ul class="tip-area">
<div class="io-container border-box ">
<ul class="tip-area border-box ">
<li class="tip">由于你的企业未进行企业认证,最多导入30家门店,如有超出,可先进行<a class="a-href">企业认证</a></li>
<li class="tip">如需更新已存在的门店及店员,可逐个进行修改,或请先导出,在导出表格里进行修改</li>
<li class="tip">由于数据量可能较大,每次最多导入2000条员工档案,若超过只取前2000条,可以分多次导入</li>
......@@ -20,44 +20,78 @@
<el-radio-button label="note">错误记录</el-radio-button>
</el-radio-group>
<div class="handle-area import" v-if="type == 'import'">
<div class="step-div" style="margin-bottom :90px;">
<div class="step-div" style="margin-bottom: 90px;line-height: 32px;">
<span class="ft-large"></span>下载门店导入模板,批量填写门店信息
<a href="http://www.gicdev.com/haoban-manage-web/excel/通讯录-门店架构导入模板.xlsx" class="d-u-btn">
<el-button type="primary">下载<i class="iconfont icon-icon_yunxiazai m-l-5"></i></el-button>
<a
:href="host + '/haoban-manage-web/excel/通讯录-门店架构导入模板.xlsx'"
class="d-u-btn">
<el-button type="primary">
下载<i class="iconfont icon-icon_yunxiazai m-l-5"></i>
</el-button>
</a>
</div>
<div class="step-div">
<span class="ft-large"></span>上传填写好的门店信息
<div class="d-u-btn m-t-20">
<el-upload class="upload-demo" ref="upload" :action="url+'?brandId='+$route.query.brandId" :on-success="uploadSuccess" :on-change="getChange" :multiple="false" :file-list="fileList" :auto-upload="false">
<div class="d-u-btn">
<el-upload
class="upload-demo"
ref="upload"
:action="url+'?brandId='+$route.query.brandId"
:on-success="uploadSuccess"
:on-change="getChange"
:multiple="false"
:file-list="fileList"
:auto-upload="false">
<el-button slot="trigger" size="small" type="primary">选取文件</el-button>
<div slot="tip" class="el-upload__tip">文件格式必须为xls或xlsx格式</div>
</el-upload>
</div>
</div>
<div class="up-btn-div">
<el-button type="primary" @click="submitUpload('upload')" :disabled="fileList.length == 0">上传</el-button>
<el-button
type="primary"
@click="submitUpload('upload')"
:disabled="fileList.length == 0">
上传
</el-button>
</div>
</div>
<div class="handle-area import" v-else-if="type == 'export'">
<div class="step-div" style="margin-bottom :90px;">
<div class="step-div" style="margin-bottom: 90px; line-height: 32px;">
<span class="ft-large"></span>导出门店
<a class="d-u-btn" :href="'http://www.gicdev.com/haoban-manage-web/store/export?storeGroupId='+$route.query.departmentId+'&showChild='+$route.query.showChildMember">
<el-button type="primary">下载<i class="iconfont icon-icon_yunxiazai m-l-5"></i></el-button>
</a>
<a
class="d-u-btn"
:href="'/haoban-manage-web/store/export?storeGroupId='+$route.query.departmentId+'&showChild='+$route.query.showChildMember">
<el-button type="primary">
下载<i class="iconfont icon-icon_yunxiazai m-l-5"></i>
</el-button>
</a>
批量修改门店信息
</div>
<div class="step-div">
<span class="ft-large"></span>上传修改后的门店信息
<div class="d-u-btn m-t-20">
<el-upload class="upload-demo" ref="uploadEdit" :action="url+'?brandId='+$route.query.brandId" :on-success="uploadSuccess" :on-change="getChange" :multiple="false" :file-list="fileList" :auto-upload="false">
<div class="d-u-btn ">
<el-upload
class="upload-demo"
ref="uploadEdit"
:action="url+'?brandId='+$route.query.brandId"
:on-success="uploadSuccess"
:on-change="getChange"
:multiple="false"
:file-list="fileList"
:auto-upload="false">
<el-button slot="trigger" size="small" type="primary">选取文件</el-button>
<div slot="tip" class="el-upload__tip">文件格式必须为xls或xlsx格式</div>
</el-upload>
</div>
</div>
<div class="up-btn-div">
<el-button type="primary" @click="submitUpload('uploadEdit')" :disabled="fileList.length == 0">上传</el-button>
<el-button
type="primary"
@click="submitUpload('uploadEdit')"
:disabled="fileList.length == 0">
上传
</el-button>
</div>
</div>
<div class="error-log import" v-else>
......@@ -65,11 +99,16 @@
<div class="tip">
<!-- 导入总条数:0条,成功导入0条,<span class="red">错误导入0条</span> -->
</div>
<a :href="'http://www.gicdev.com/haoban-manage-web/error-improt-log-export?importCode='+$route.query.importCode+'&departmentId='+$route.query.departmentId">
<el-button type="primary">导出错误记录</el-button>
</a>
<a
:href="'/haoban-manage-web/error-improt-log-export?importCode='+$route.query.importCode+'&departmentId='+$route.query.departmentId">
<el-button type="primary">导出错误记录</el-button>
</a>
</div>
<el-table v-loading="loading" :data="logList" class="m-t-20" style="width: 100%">
<el-table
v-loading="loading"
:data="logList"
class="m-t-20"
style="width: 100%">
<el-table-column type="index" width="50" label="序号">
</el-table-column>
<el-table-column label="错误提示" prop="failReason"></el-table-column>
......@@ -84,14 +123,23 @@
</el-table-column>
<el-table-column label="入职时间" prop="hireDate"></el-table-column>
</el-table>
<div class="pagination">
<el-pagination background @size-change="handleSizeChange" @current-change="handleCurrentChange" :page-sizes="[20, 40, 60, 80]" :page-size="pageSize" :current-page="currentPage" layout="total, sizes, prev, pager, next" :total="total">
<div class="pagination" v-if="!!logList.length">
<el-pagination
background
:page-sizes="[20, 40, 60, 80]"
:page-size="pageSize"
:current-page="currentPage"
layout="total, sizes, prev, pager, next"
:total="total"
@size-change="handleSizeChange"
@current-change="handleCurrentChange" >
</el-pagination>
</div>
</div>
</div>
</div>
</div>
<vue-gic-footer></vue-gic-footer>
</div>
</template>
<script>
......@@ -128,6 +176,8 @@ export default {
path: ''
}
],
host: window.location.origin,
windowH: (window.screen.availHeight - 180) + 'px',
type: "import",
fileList: [],
url: local + "/haoban-manage-web/store/upload",
......@@ -200,6 +250,12 @@ export default {
if (this.type == "note") {
this.getErrorNote();
}
this.$nextTick(function(){
document.querySelector('.contact-wrap__body').style.overflow = 'hidden';
})
},
beforeDestroy() {
document.querySelector('.contact-wrap__body').style.overflow = 'auto';
}
}
......@@ -207,7 +263,6 @@ export default {
<style lang="scss">
.io-container {
width: 100%;
height: 538px;
background: #fff;
box-sizing: border-box;
padding: 28px 32px;
......@@ -286,9 +341,9 @@ export default {
.step-div {
.d-u-btn {
display: inline-block;
vertical-align: top;
margin-left: 10px;
margin-right: 10px;
vertical-align: middle;
.iconfont {
margin-left: 5px;
......@@ -312,7 +367,7 @@ export default {
.up-btn-div {
text-align: center;
margin-top: 20px;
margin-top: 40px;
}
}
}
......
......@@ -325,7 +325,19 @@ input:focus {
display: inline-block;
}
.block {
display: block;
}
.bdr-box {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
.border-box {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
......
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