Commit 631cbeb0 by 无尘

fix: 修改导出档案 bug

parent d8c4bb4a
<!DOCTYPE html><html><head><meta charset=utf-8><link rel="shortcut icon" href=./favicon.ico><title>好办管理平台</title><link href=./static/css/app.d9bebaf5578e7389aa4a8311a91d71c5.css rel=stylesheet></head><body style="min-width: 1400px;"><div id=app></div><script type=text/javascript src=./static/js/manifest.dee304f215a6a715aaf2.js></script><script type=text/javascript src=./static/js/vendor.fe6bbed1214c1931680c.js></script><script type=text/javascript src=./static/js/app.00231ebf281d6f3e60c0.js></script></body></html> <!DOCTYPE html><html><head><meta charset=utf-8><link rel="shortcut icon" href=./favicon.ico><title>好办管理平台</title><link href=./static/css/app.94537bb643cf12696ded2b3c79d19a0b.css rel=stylesheet></head><body style="min-width: 1400px;"><div id=app></div><script type=text/javascript src=./static/js/manifest.9b2002aab7c0bf1341eb.js></script><script type=text/javascript src=./static/js/vendor.fe6bbed1214c1931680c.js></script><script type=text/javascript src=./static/js/app.00231ebf281d6f3e60c0.js></script></body></html>
\ No newline at end of file \ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
webpackJsonp([17],{"738z":function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=i("3Xzz"),s=i("elmV"),o=i("P9l9"),n=i("O3H5"),l={name:"employee-io",components:{navCrumb:a.a,uploadExcelComponent:s.a,exportSet:n.a},data:function(){var t=window.location.origin;return-1!=t.indexOf("localhost")&&(t="http://www.gicdev.com"),{navpath:[{name:"首页",path:"/index"},{name:"企业通讯录",path:"/administrativeFrame"},{name:"在职员工",path:"employeeRecord"},{name:"导入员工档案",path:""}],windowH:window.screen.availHeight-180+"px",host:window.location.origin,type:"import",fileList:[],url:t+"/haoban-manage-web/record/record-template-file-upload",logList:[],loading:!0,pageSize:20,currentPage:1,total:0,tempList:[],dialogVisible:!1}},methods:{handleSizeChange:function(t){this.pageSize=t,this.getErrorNote()},handleCurrentChange:function(t){this.currentPage=t,this.getErrorNote()},resetList:function(t){this.fileList=[],"note"==t&&this.getErrorNote()},getErrorNote:function(){var t=this,e={departmentId:t.$route.query.departmentId,importCode:t.$route.query.importCode,pageNum:t.currentPage,pageSize:t.pageSize};Object(o.a)("/haoban-manage-web/record/find-error-log",e).then(function(e){1==e.data.errorCode?(t.total=e.data.result.totalCount,t.logList=e.data.result.result,t.formatData(e.data.result.template,e.data.result.page.result)):t.$message.error({message:e.data.message})}).catch(function(e){t.$message.error({message:e.message})})},formatData:function(t,e){var i=[];t.forEach(function(t){i.push({fieldCode:t.fieldCode,fieldName:t.fieldName})}),this.tempList=i,this.logList=e,this.loading=!1},beforeAvatarUpload:function(t){var e=t.raw.type,i="application/vnd.ms-excel"===e||"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"===e;return i||this.$message.error("文件格式必须为 xls 或 xlsx 格式!"),i},uploadSuccess:function(){this.fileList=[],this.type="note",this.getErrorNote()},submitUpload:function(t){this.$refs[t].submit()},getChange:function(t,e){var i=e.length-1<0?0:e.length-1,a=t.raw.type;if(!("application/vnd.ms-excel"===a||"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"===a))return this.$message.error("文件格式必须为 xls 或 xlsx 格式!"),this.fileList.splice(i,1),!1;this.fileList=[e[i]]},callExport:function(){this.dialogVisible=!0},cancelCho:function(){this.dialogVisible=!1}},beforeMount:function(){"note"==this.type&&this.getErrorNote(),this.$nextTick(function(){document.querySelector(".contact-wrap__body").style.overflow="hidden"})},beforeDestroy:function(){document.querySelector(".contact-wrap__body").style.overflow="auto"}},c={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"common-set-wrap record-io-wrap",style:{height:t.windowH}},[i("nav-crumb",{attrs:{navpath:t.navpath}}),t._v(" "),i("div",{staticClass:"right-content"},[i("div",{staticClass:"right-box"},[i("div",{staticClass:"io-container"},[t.dialogVisible?[i("export-set",{on:{cancelCho:t.cancelCho}})]:[t._m(0),t._v(" "),i("el-radio-group",{staticClass:"m-t-20",on:{change:t.resetList},model:{value:t.type,callback:function(e){t.type=e},expression:"type"}},[i("el-radio-button",{attrs:{label:"import"}},[t._v("导入员工档案")]),t._v(" "),i("el-radio-button",{attrs:{label:"export"}},[t._v("导出/修改员工档案")]),t._v(" "),i("el-radio-button",{attrs:{label:"note"}},[t._v("错误记录")])],1),t._v(" "),"import"==t.type?i("div",{staticClass:"handle-area import"},[i("div",{staticClass:"step-div",staticStyle:{"margin-bottom":"90px","line-height":"32px"}},[i("span",{staticClass:"ft-large"},[t._v("①")]),t._v("下载模板\n "),i("a",{staticClass:"d-u-btn",attrs:{href:t.host+"/haoban-manage-web/record/export-record-template.json"}},[i("el-button",{attrs:{type:"primary"}},[t._v("下载"),i("i",{staticClass:"iconfont icon-icon_yunxiazai m-l-5"})])],1)]),t._v(" "),i("div",{staticClass:"step-div"},[i("span",{staticClass:"ft-large"},[t._v("②")]),t._v("上传员工档案\n "),i("div",{staticClass:"d-u-btn"},[i("el-upload",{ref:"upload",staticClass:"upload-demo",attrs:{action:t.url,multiple:!1,"file-list":t.fileList,"auto-upload":!1,"before-upload":t.beforeAvatarUpload,"on-success":t.uploadSuccess,"on-change":t.getChange}},[i("el-button",{attrs:{slot:"trigger",size:"small",type:"primary"},slot:"trigger"},[t._v("选取文件")]),t._v(" "),i("div",{staticClass:"el-upload__tip",attrs:{slot:"tip"},slot:"tip"},[t._v("文件格式必须为xls或xlsx格式")])],1)],1)]),t._v(" "),i("div",{staticClass:"up-btn-div"},[i("el-button",{attrs:{type:"primary",disabled:0==t.fileList.length},on:{click:function(e){t.submitUpload("upload")}}},[t._v("上传")])],1)]):"export"==t.type?i("div",{staticClass:"handle-area import"},[i("div",{staticClass:"step-div",staticStyle:{"margin-bottom":"90px","line-height":"32px"}},[i("span",{staticClass:"ft-large"},[t._v("①")]),t._v("导出员工档案\n "),i("a",{staticClass:"d-u-btn"},[i("el-button",{attrs:{type:"primary"},on:{click:t.callExport}},[t._v("下载"),i("i",{staticClass:"iconfont icon-icon_yunxiazai m-l-5"})])],1)]),t._v(" "),i("div",{staticClass:"step-div"},[i("span",{staticClass:"ft-large"},[t._v("②")]),t._v("上传更新后的员工档案\n "),i("div",{staticClass:"d-u-btn"},[i("el-upload",{ref:"uploadEdit",staticClass:"upload-demo",attrs:{action:t.url,multiple:!1,"file-list":t.fileList,"auto-upload":!1,"on-success":t.uploadSuccess,"on-change":t.getChange}},[i("el-button",{attrs:{slot:"trigger",size:"small",type:"primary"},slot:"trigger"},[t._v("选取文件")]),t._v(" "),i("div",{staticClass:"el-upload__tip",attrs:{slot:"tip"},slot:"tip"},[t._v("文件格式必须为xls或xlsx格式")])],1)],1)]),t._v(" "),i("div",{staticClass:"up-btn-div"},[i("el-button",{attrs:{type:"primary",disabled:0==t.fileList.length},on:{click:function(e){t.submitUpload("uploadEdit")}}},[t._v("上传")])],1)]):i("div",{staticClass:"error-log import"},[i("div",{staticClass:"title-area"},[i("div",{staticClass:"tip"}),t._v(" "),i("a",{attrs:{href:t.host+"/haoban-manage-web/record/error-log-export?importCode="+t.$route.query.importCode}},[i("el-button",{attrs:{type:"primary"}},[t._v("导出错误记录")])],1)]),t._v(" "),i("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"m-t-20",staticStyle:{width:"100%"},attrs:{data:t.logList,height:"400"}},[i("el-table-column",{attrs:{type:"index",width:"50",label:"序号"}}),t._v(" "),i("el-table-column",{attrs:{width:"200",prop:"fieldValue",label:"字段值"}}),t._v(" "),i("el-table-column",{attrs:{width:"200",prop:"fieldName",label:"字段名"}}),t._v(" "),i("el-table-column",{attrs:{width:"200",prop:"failReason",label:"错误原因"}}),t._v(" "),t._l(t.tempList,function(t){return[i("el-table-column",{key:t.fieldCode,attrs:{width:"200",label:t.fieldName,prop:t.fieldCode}})]})],2),t._v(" "),t.logList.length?i("el-pagination",{staticClass:"pagination",attrs:{background:"","page-sizes":[20,40,60,80],"page-size":t.pageSize,"current-page":t.currentPage,layout:"total, sizes, prev, pager, next",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}}):t._e()],1)]],2)])]),t._v(" "),i("vue-gic-footer")],1)},staticRenderFns:[function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("ul",{staticClass:"tip-area"},[i("li",{staticClass:"tip"},[t._v("\n 姓名必须和好办企业通讯录中的员工姓名保持一致,手机号必须为员工注册好办的手机号\n ")]),t._v(" "),i("li",{staticClass:"tip"},[t._v("\n 员工档案导入时,直接以手机号去做匹配,通讯录中不存在的将无法导入(模板中配置的部门、职位、code,这些字段信息请保持与企业通讯录中一致,这几个字段的信息将不会修改通讯录的信息,直接取该成员对应的通讯录的字段信息)\n ")]),t._v(" "),i("li",{staticClass:"tip"},[t._v("如果想要新增字段,可在后台档案设置中增加,再导入模板")]),t._v(" "),i("li",{staticClass:"tip"},[t._v("字段类型为图片上传、多选的字段无法导入、导出")]),t._v(" "),i("li",{staticClass:"tip"},[t._v("确保导入的表头字段和后台配置表头字段的名称一致(模板下载时间不可修改)")]),t._v(" "),i("li",{staticClass:"tip"},[t._v("\n 由于数据量可能较大,每次最多导入2000条员工档案,若超过只取前2000条,可以分多次导入\n ")])])}]};var r=i("VU/8")(l,c,!1,function(t){i("cHyZ")},null,null);e.default=r.exports},O3H5:function(t,e,i){"use strict";var a=i("mvHQ"),s=i.n(a),o=i("P9l9"),n=i("DAYN"),l={name:"export-set",components:{draggable:i.n(n).a},data:function(){return{tempList:[],checkList:[],origin:[],checkAll:!1,isIndeterminate:!1,checkedList:[]}},methods:{deleteField:function(t){this.checkedList.splice(t,1);var e=this.checkedList.map(function(t){return t.fieldCode});this.origin.forEach(function(t,i){e.includes(t.fieldCode)?t.checked=!0:t.checked=!1}),this.checkHalf()},checkHalf:function(){if(0===this.checkedList.length)return this.isIndeterminate=!1,!1;this.checkedList.length===this.origin.length?this.isIndeterminate=!1:this.isIndeterminate=!0},checkThis:function(t){var e=this;t.checked?e.checkedList.push(t):e.checkedList.forEach(function(i,a){i.fieldCode===t.fieldCode&&e.checkedList.splice(a,1)}),e.checkHalf()},handleCheckAllChange:function(t){this.checkedList=[],this.origin.forEach(function(e,i){e.checked=t,t&&(e.order=i+1)}),t&&(this.checkedList=this.origin.slice(0)),this.checkHalf()},getTemplate:function(){var t=this;Object(o.a)("/haoban-manage-web/record/employee-find-template",{}).then(function(e){1==e.data.errorCode?t.formatTemplateList(e.data.result):t.$message.error({message:e.data.message})}).catch(function(e){t.$message.error({message:e.message})})},formatTemplateList:function(t){var e=[],i=[],a=t;t.forEach(function(t){t.title=t.fieldName,t.name=t.fieldName,t.checked=!1;var i=[];a.forEach(function(e){e.parentCode==t.fieldCode&&i.push(e)}),i.sort(function(t,e){return 1*t.sort-1*e.sort}),i.length>0&&(t.childrens=i),0==t.parentCode&&e.push(t)}),e.sort(function(t,e){return 1*t.sort-1*e.sort}),e.forEach(function(t){i=i.concat(t.childrens)}),this.origin=i,this.tempList=e},cancelCho:function(){this.origin.forEach(function(t){t.checked=!1}),this.$emit("cancelCho")},exportCho:function(){var t=[];this.checkedList.forEach(function(e){e.checked&&t.push({fieldCode:e.fieldCode,fieldName:e.fieldName})});s()(t);var e=window.location.origin;-1!=e.indexOf("localhost")&&(e="http://www.gicdev.com"),location.href=e+"/haoban-manage-web/record/define-export?exportTitleContent="+s()(t),this.$emit("cancelCho")}},beforeMount:function(){this.getTemplate()}},c={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"export-set-container"},[t._m(0),t._v(" "),i("div",{staticClass:"cho-list"},[i("draggable",{model:{value:t.checkedList,callback:function(e){t.checkedList=e},expression:"checkedList"}},[t._l(t.checkedList,function(e,a){return[e.checked?i("div",{key:e.fieldCode+a,staticClass:"cho"},[t._v(t._s(e.fieldName)+" "),i("i",{staticClass:"el-icon-circle-close",on:{click:function(e){t.deleteField(a)}}})]):t._e()]})],2)],1),t._v(" "),i("div",{staticClass:"cho-area"},[i("div",{staticClass:"title"},[t._v("选择需要导出的字段")]),t._v(" "),i("div",{staticClass:"cho-area-group"},[i("div",{staticClass:"group-div"},[i("div",{staticClass:"group-title"}),t._v(" "),i("ul",{staticClass:"group-son-list"},[i("el-checkbox",{attrs:{indeterminate:t.isIndeterminate},on:{change:t.handleCheckAllChange},model:{value:t.checkAll,callback:function(e){t.checkAll=e},expression:"checkAll"}},[t._v("全选")])],1)]),t._v(" "),t._l(t.tempList,function(e,a){return i("div",{key:e.fieldCode+a,staticClass:"group-div"},[i("div",{staticClass:"group-title"},[t._v(t._s(e.title))]),t._v(" "),i("ul",{staticClass:"group-son-list"},[t._l(t.origin,function(a){return[a.parentCode==e.fieldCode?i("li",{key:a.fieldCode},[i("el-checkbox",{key:a.fieldCode,attrs:{label:a.fieldName},on:{change:function(e){t.checkThis(a)}},model:{value:a.checked,callback:function(e){t.$set(a,"checked",e)},expression:"items.checked"}},[t._v(t._s(a.fieldName))])],1):t._e()]})],2)])})],2)]),t._v(" "),i("div",{staticClass:"handle-cho-btn"},[i("el-button",{staticClass:"export-btn",attrs:{type:"primary",disabled:t.checkedList.length<1},on:{click:t.exportCho}},[t._v("导出"),i("i",{staticClass:"iconfont icon-icon_yunxiazai"})]),t._v(" "),i("el-button",{on:{click:t.cancelCho}},[t._v("取消")])],1)])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"title"},[this._v("已选择字段"),e("span",[this._v("导出的列表中将按顺序显示这些字段(可拖拽排序)")])])}]};var r=i("VU/8")(l,c,!1,function(t){i("wEsK")},null,null);e.a=r.exports},cHyZ:function(t,e){},wEsK:function(t,e){}});
\ No newline at end of file
webpackJsonp([17],{"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){1==e.data.errorCode?(t.total=e.data.result.totalCount,t.logList=e.data.result.result,t.formatData(e.data.result.template,e.data.result.page.result)):t.$message.error({message:e.data.message})}).catch(function(e){t.$message.error({message:e.message})})},formatData:function(t,e){var 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){var e=t.raw.type,a="application/vnd.ms-excel"===e||"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"===e;return a||this.$message.error("文件格式必须为 xls 或 xlsx 格式!"),a},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(" "),t.logList.length?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}}):t._e()],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("\n 姓名必须和好办企业通讯录中的员工姓名保持一致,手机号必须为员工注册好办的手机号\n ")]),t._v(" "),a("li",{staticClass:"tip"},[t._v("\n 员工档案导入时,直接以手机号去做匹配,通讯录中不存在的将无法导入(模板中配置的部门、职位、code,这些字段信息请保持与企业通讯录中一致,这几个字段的信息将不会修改通讯录的信息,直接取该成员对应的通讯录的字段信息)\n ")]),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("\n 由于数据量可能较大,每次最多导入2000条员工档案,若超过只取前2000条,可以分多次导入\n ")])])}]};var c=a("VU/8")(n,r,!1,function(t){a("cHyZ")},null,null);e.default=c.exports},FyzY:function(t,e){},O3H5:function(t,e,a){"use strict";var i=a("mvHQ"),s=a.n(i),o=a("P9l9"),l=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("FyzY")},null,null);e.a=c.exports},cHyZ:function(t,e){}});
\ No newline at end of file
webpackJsonp([5],{K4Vl:function(e,t){},NNAT:function(e,t,i){"use strict";var o=i("fZjL"),a=i.n(o),s=i("mvHQ"),n=i.n(s),l=i("P9l9"),r=i("0xDb"),c={name:"list-item",props:{item:{type:String,required:!0}},filters:{formatDate:r.b},data:function(){return{typeLsit:["全部","全职","兼职","外包","实习","无类型"],reasons:["","家庭原因","个人原因","发展原因","合同到期不续签","协议解除","无法胜任工作","经济性裁员","严重违法违纪","其他"],propList:{headPic:{label:"",slot:!0,width:50},clerkName:{label:"姓名",width:90},clerkPhone:{label:"手机号"},groupName:{label:"部门"},clerkCode:{label:"code"},positionName:{label:"职位"},clerkType:{label:"员工类型",slot:!0},hireDate:{label:"入职日期",needSort:"custom",slot:!0},correctionDate:{label:"转正日期",needSort:"custom",slot:!0},fireDate:{label:"离职日期",needSort:"custom",slot:!0},fireReason:{label:"离职原因",slot:!0},handleEmployee:{label:"操作",slot:!0},handleUnEmployee:{label:"操作",slot:!0}}}},methods:{callHandle:function(e){"编辑员工资料"!=e.typeTitle?this.$emit("callHandle",e.obj,e.type,e.typeTitle):location.href="#/recordInfo?recordId="+e.obj.recordId}},mounted:function(){}},d={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return e.propList[e.item].slot?i("el-table-column",{attrs:{label:e.propList[e.item].label,width:e.propList[e.item].width,sortable:e.propList[e.item].needSort,prop:e.item},scopedSlots:e._u([{key:"default",fn:function(t){return["clerkType"==e.item?i("div",[e._v("\n "+e._s(e.typeLsit[t.row[e.item]||5])+"\n ")]):"hireDate"==e.item||"correctionDate"==e.item||"fireDate"==e.item?i("div",[e._v("\n "+e._s(e._f("formatDate")(t.row[e.item],"YY-MM-DD")||"--")+"\n ")]):"headPic"==e.item?i("div",[t.row[e.item]?i("img",{staticClass:"header-pic",attrs:{src:t.row[e.item]}}):i("div",{staticClass:"replace-head-img"},[i("i",{staticClass:"iconfont icon-yewuduanmorentouxian"})])]):"fireReason"==e.item?i("div",[e._v("\n "+e._s(e.reasons[t.row[e.item]]||"--")+"\n ")]):"handleEmployee"==e.item?i("div",[i("div",{staticClass:"table-handle"},[i("el-dropdown",{staticClass:"more",on:{command:e.callHandle}},[i("span",{staticClass:"el-dropdown-link"},[e._v(" 更多"),i("i",{staticClass:"el-icon-arrow-down el-icon--right"})]),e._v(" "),i("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[2==t.row.clerkStatus?[i("el-dropdown-item",{attrs:{command:{obj:t.row,type:"turnPositive",typeTitle:"办理转正"}}},[e._v("办理转正")]),e._v(" "),i("el-dropdown-item",{attrs:{command:{obj:t.row,type:"eidtCorrectionTime",typeTitle:"修改转正时间"}}},[e._v("修改转正时间")])]:e._e(),e._v(" "),i("el-dropdown-item",{attrs:{command:{obj:t.row,type:"editEmployee",typeTitle:"编辑员工资料"}}},[e._v("编辑员工资料")]),e._v(" "),i("el-dropdown-item",{attrs:{command:{obj:t.row,type:"resignation",typeTitle:"办理离职"}}},[e._v("办理离职")])],2)],1)],1)]):"handleUnEmployee"==e.item?i("div",[i("div",{staticClass:"table-handle"},[i("a",{staticClass:"a-href",attrs:{href:"#/recordInfo?recordId="+t.row.recordId+"&type=unemployee"}},[e._v("编辑")])])]):e._e()]}}])}):i("el-table-column",{attrs:{"class-name":"clerkName"==e.item?"control-width":"",label:e.propList[e.item].label,width:e.propList[e.item].width,prop:e.item}})},staticRenderFns:[]};var h=i("VU/8")(c,d,!1,function(e){i("edn0")},null,null).exports,p=i("IVno"),u=i("Ie7z"),m=i("c4uw"),f={name:"employeeRecordList",props:{isUnEmployee:{type:Boolean,default:!1}},components:{listItem:h,handleDialog:p.a,vueSelectStore:u.a,vueSelectEmployee:m.a},data:function(){return{tableH:window.screen.availHeight-440-160,pickerOptions2:{shortcuts:[{text:"最近一周",onClick:function(e){var t=new Date,i=new Date;i.setTime(i.getTime()-6048e5),e.$emit("pick",[i,t])}},{text:"最近一个月",onClick:function(e){var t=new Date,i=new Date;i.setTime(i.getTime()-2592e6),e.$emit("pick",[i,t])}},{text:"最近三个月",onClick:function(e){var t=new Date,i=new Date;i.setTime(i.getTime()-7776e6),e.$emit("pick",[i,t])}}]},employeeList:[],pageNum:1,pageSize:20,sortType:"desc",sortColumn:"hireDate",statusList:["全部","正式","试用"],typeLsit:["全部","全职","兼职","外包","实习","无类型"],clerkType:0,clerkStatus:0,total:0,handleType:"turnPositive",typeTitle:"",dialogVisible:!1,employeeObj:{},fireDate:[],startDate:"",endDate:"",showSelector:!0,searchParam:"",departMentSet:{},storeSet:{},treeData:{},selectionList:[],disabled:!0,chooseClerkIdList:[],chooseGroupIdList:[],chooseStoreIdList:[],adList:[],adDefaultSelection:[],stList:[],changed:0}},methods:{searchFn:function(){this.getEmloyeeList()},getGroupData:function(){var e=this;Object(l.a)("/haoban-manage-web/dept/deptListForCompany",{isStoreGroup:0}).then(function(t){var i=[],o=[];1==t.data.errorCode&&(i=t.data.result.departmentList||[],o=t.data.result.searchList||[]),e.treeData={treeData:i,personData:o},e.disabled=!1}).catch(function(e){})},callSelector:function(){this.$refs.departmentSelector.treeSet.dialogVisible=!0},callStoreSelector:function(){this.$refs.storeSelector.treeSet.dialogVisible=!0},showExportSet:function(){if(this.isUnEmployee){var e=window.location.origin;-1!=e.indexOf("localhost")&&(e="http://www.gicdev.com");var t=0==this.clerkType?"":this.clerkType;location.href=e+"/haoban-manage-web/record/export-fire-employee-record?clerkType="+t+"&sortType="+this.sortType+"&sortColumn="+this.sortColumn+"&startDate="+this.startDate+"&endDate="+this.endDate+"&searchParam="+this.searchParam+"&chooseClerkIdList="+this.chooseClerkIdList.join(",")+"&chooseGroupIdList="+this.chooseGroupIdList.join(",")+"&chooseStoreIdList="+this.chooseStoreIdList.join(",")}else this.$emit("showExportSetFn")},handleSelectedList:function(e){this.adDefaultSelection=e,this.adList=e;var t=this.selectionList.concat(e);this.selectionList=t,this.formatSelectionList(t)},handleStoreSelectedList:function(e){this.stList=e;var t=this.selectionList.concat(e);this.selectionList=t,this.formatSelectionList(t)},formatSelectionList:function(e){var t=this.unique(e);this.selectionList=t;var i=this;t.length&&(i.chooseClerkIdList=[],i.chooseStoreIdList=[],i.chooseGroupIdList=[],t.forEach(function(e){e.employeeClerkId?i.chooseClerkIdList.push(e.employeeClerkId):e.storeId?i.chooseStoreIdList.push(e.storeId):e.groupId&&i.chooseGroupIdList.push(e.groupId)}),i.getEmloyeeList())},unique:function(e){var t={};return e.forEach(function(e){t[n()(e)]=e}),e=a()(t).map(function(e){return JSON.parse(e)})},delSld:function(e,t){var i=this,o=this.selectionList.indexOf(e);this.selectionList.splice(o,1),this.formatSelectionList(this.selectionList),i.adList.forEach(function(t){t.id==e.id&&i.adList.splice(i.adList.indexOf(t),1)}),i.changed+=1,i.adDefaultSelection=i.adList.slice(0)},handleSuccess:function(){this.dialogVisible=!1,this.getEmloyeeList()},callHandle:function(e,t,i){this.handleType=t,this.employeeObj=e,this.typeTitle=i,this.dialogVisible=!0},handleSizeChange:function(e){this.pageSize=e,this.getEmloyeeList()},handleCurrentChange:function(e){this.pageNum=e,this.getEmloyeeList()},sortList:function(e){this.sortColumn=e.prop,this.sortType="descending"==e.order?"desc":"asc",this.getEmloyeeList()},reGetList:function(){this.getEmloyeeList()},getEmloyeeList:function(){var e=this,t=e.isUnEmployee,i=t?"/haoban-manage-web/record/find-fire-employee-record-page":"/haoban-manage-web/record/find-on-work-employee-record-page",o={pageNum:e.pageNum,chooseClerkIdList:e.chooseClerkIdList.join(","),chooseGroupIdList:e.chooseGroupIdList.join(","),chooseStoreIdList:e.chooseStoreIdList.join(","),pageSize:e.pageSize,sortType:e.sortType,clerkStatus:0==e.clerkStatus?"":e.clerkStatus,sortColumn:e.sortColumn,clerkType:0==e.clerkType?"":e.clerkType,startDate:e.startDate,endDate:e.endDate,searchParam:e.searchParam};Object(l.a)(i,o).then(function(i){1==i.data.errorCode?(e.employeeList=i.data.result.list,e.total=t?i.data.result.total:i.data.result.pageInfo.total):e.$message.error({message:i.data.message})}).catch(function(t){e.$message({message:t.message})})},selectDate:function(e){e?(this.startDate=e[0],this.endDate=e[1]):(this.startDate="",this.endDate=""),this.getEmloyeeList()}},beforeMount:function(){this.getEmloyeeList(),this.getGroupData()},computed:{propList:function(){return this.isUnEmployee?["headPic","clerkName","clerkPhone","groupName","clerkCode","positionName","clerkType","hireDate","fireDate","fireReason","handleUnEmployee"]:["headPic","clerkName","clerkPhone","groupName","clerkCode","positionName","clerkType","hireDate","correctionDate","handleEmployee"]}}},v={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"e-r-l-container"},[i("div",{staticClass:"handle-area"},[i("div",{staticClass:"flex1"},[i("el-button",{staticStyle:{"margin-right":"10px",height:"32px"},attrs:{disabled:e.disabled},on:{click:e.callSelector}},[e._v("行政架构选人")]),e._v(" "),i("el-button",{staticStyle:{"margin-right":"10px",height:"32px"},on:{click:e.callStoreSelector}},[e._v("门店架构选人")]),e._v(" "),e.isUnEmployee?i("div",{staticClass:"block"},[i("span",{staticClass:"demonstration"},[e._v("离职日期")]),e._v(" "),i("el-date-picker",{attrs:{type:"daterange",align:"right","value-format":"yyyy-MM-dd","unlink-panels":"","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期","picker-options":e.pickerOptions2},on:{change:e.selectDate},model:{value:e.fireDate,callback:function(t){e.fireDate=t},expression:"fireDate"}})],1):[i("el-select",{staticClass:"m-r-10 w-130",attrs:{placeholder:"选择类型"},on:{change:e.reGetList},model:{value:e.clerkType,callback:function(t){e.clerkType=t},expression:"clerkType"}},e._l(e.typeLsit,function(e,t){return i("el-option",{key:t,attrs:{label:e,value:t}})})),e._v(" "),i("el-select",{staticClass:"w-130",attrs:{placeholder:"选择状态"},on:{change:e.reGetList},model:{value:e.clerkStatus,callback:function(t){e.clerkStatus=t},expression:"clerkStatus"}},e._l(e.statusList,function(e,t){return i("el-option",{key:t,attrs:{label:e,value:t}})}))],e._v(" "),i("el-input",{staticStyle:{width:"218px","margin-left":"10px"},attrs:{placeholder:"请输入姓名或手机号",clearable:""},on:{clear:e.searchFn},nativeOn:{keyup:function(t){return"button"in t||!e._k(t.keyCode,"enter",13,t.key,"Enter")?e.searchFn(t):null}},model:{value:e.searchParam,callback:function(t){e.searchParam=t},expression:"searchParam"}})],2),e._v(" "),i("el-button",{attrs:{type:"primary"},on:{click:e.showExportSet}},[e._v("导出"),i("i",{staticClass:"el-icon-upload el-icon--right"})])],1),e._v(" "),e.selectionList.length>0?i("ul",{staticClass:"selector-selected-list"},[e._l(e.selectionList,function(t,o){return[i("li",{key:o+t.id+t.label,staticClass:"sld"},[e._v(e._s(t.label)+" "),i("i",{staticClass:"el-icon-close",on:{click:function(i){e.delSld(t,t.isStoreGroup)}}})])]}),e._v(" "),i("li",{staticClass:"sld tip"},[e._v("共筛选出"+e._s(e.total)+"人")])],2):e._e(),e._v(" "),i("el-table",{staticClass:"list-table",attrs:{height:e.employeeList.length?e.tableH:"auto",data:e.employeeList,"default-sort":{prop:"hireDate",order:"descending"}},on:{"sort-change":e.sortList}},[e._l(e.propList,function(t){return[i("list-item",{key:t,attrs:{item:t},on:{callHandle:e.callHandle}})]})],2),e._v(" "),e.employeeList.length?i("el-pagination",{staticClass:"pagination",attrs:{background:"","page-sizes":[20,40,60,80],"page-size":e.pageSize,"current-page":e.pageNum,layout:"total, sizes, prev, pager, next",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}}):e._e(),e._v(" "),i("el-dialog",{attrs:{title:e.typeTitle,visible:e.dialogVisible,width:"480px"},on:{"update:visible":function(t){e.dialogVisible=t}}},[i("handle-dialog",{attrs:{employee:e.employeeObj,handleType:e.handleType,typeTitle:e.typeTitle},on:{handleSuccess:e.handleSuccess}})],1),e._v(" "),i("vue-select-store",{ref:"storeSelector",on:{handleSelectedList:e.handleStoreSelectedList}}),e._v(" "),i("vue-select-employee",{ref:"departmentSelector",attrs:{changed:e.changed,treeData:e.treeData,defaultSelection:e.adDefaultSelection},on:{handleSelectedList:e.handleSelectedList}})],1)},staticRenderFns:[]};var g=i("VU/8")(f,v,!1,function(e){i("K4Vl")},null,null);t.a=g.exports},O3H5:function(e,t,i){"use strict";var o=i("mvHQ"),a=i.n(o),s=i("P9l9"),n=i("DAYN"),l={name:"export-set",components:{draggable:i.n(n).a},data:function(){return{tempList:[],checkList:[],origin:[],checkAll:!1,isIndeterminate:!1,checkedList:[]}},methods:{deleteField:function(e){this.checkedList.splice(e,1);var t=this.checkedList.map(function(e){return e.fieldCode});this.origin.forEach(function(e,i){t.includes(e.fieldCode)?e.checked=!0:e.checked=!1}),this.checkHalf()},checkHalf:function(){if(0===this.checkedList.length)return this.isIndeterminate=!1,!1;this.checkedList.length===this.origin.length?this.isIndeterminate=!1:this.isIndeterminate=!0},checkThis:function(e){var t=this;e.checked?t.checkedList.push(e):t.checkedList.forEach(function(i,o){i.fieldCode===e.fieldCode&&t.checkedList.splice(o,1)}),t.checkHalf()},handleCheckAllChange:function(e){this.checkedList=[],this.origin.forEach(function(t,i){t.checked=e,e&&(t.order=i+1)}),e&&(this.checkedList=this.origin.slice(0)),this.checkHalf()},getTemplate:function(){var e=this;Object(s.a)("/haoban-manage-web/record/employee-find-template",{}).then(function(t){1==t.data.errorCode?e.formatTemplateList(t.data.result):e.$message.error({message:t.data.message})}).catch(function(t){e.$message.error({message:t.message})})},formatTemplateList:function(e){var t=[],i=[],o=e;e.forEach(function(e){e.title=e.fieldName,e.name=e.fieldName,e.checked=!1;var i=[];o.forEach(function(t){t.parentCode==e.fieldCode&&i.push(t)}),i.sort(function(e,t){return 1*e.sort-1*t.sort}),i.length>0&&(e.childrens=i),0==e.parentCode&&t.push(e)}),t.sort(function(e,t){return 1*e.sort-1*t.sort}),t.forEach(function(e){i=i.concat(e.childrens)}),this.origin=i,this.tempList=t},cancelCho:function(){this.origin.forEach(function(e){e.checked=!1}),this.$emit("cancelCho")},exportCho:function(){var e=[];this.checkedList.forEach(function(t){t.checked&&e.push({fieldCode:t.fieldCode,fieldName:t.fieldName})});a()(e);var t=window.location.origin;-1!=t.indexOf("localhost")&&(t="http://www.gicdev.com"),location.href=t+"/haoban-manage-web/record/define-export?exportTitleContent="+a()(e),this.$emit("cancelCho")}},beforeMount:function(){this.getTemplate()}},r={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"export-set-container"},[e._m(0),e._v(" "),i("div",{staticClass:"cho-list"},[i("draggable",{model:{value:e.checkedList,callback:function(t){e.checkedList=t},expression:"checkedList"}},[e._l(e.checkedList,function(t,o){return[t.checked?i("div",{key:t.fieldCode+o,staticClass:"cho"},[e._v(e._s(t.fieldName)+" "),i("i",{staticClass:"el-icon-circle-close",on:{click:function(t){e.deleteField(o)}}})]):e._e()]})],2)],1),e._v(" "),i("div",{staticClass:"cho-area"},[i("div",{staticClass:"title"},[e._v("选择需要导出的字段")]),e._v(" "),i("div",{staticClass:"cho-area-group"},[i("div",{staticClass:"group-div"},[i("div",{staticClass:"group-title"}),e._v(" "),i("ul",{staticClass:"group-son-list"},[i("el-checkbox",{attrs:{indeterminate:e.isIndeterminate},on:{change:e.handleCheckAllChange},model:{value:e.checkAll,callback:function(t){e.checkAll=t},expression:"checkAll"}},[e._v("全选")])],1)]),e._v(" "),e._l(e.tempList,function(t,o){return i("div",{key:t.fieldCode+o,staticClass:"group-div"},[i("div",{staticClass:"group-title"},[e._v(e._s(t.title))]),e._v(" "),i("ul",{staticClass:"group-son-list"},[e._l(e.origin,function(o){return[o.parentCode==t.fieldCode?i("li",{key:o.fieldCode},[i("el-checkbox",{key:o.fieldCode,attrs:{label:o.fieldName},on:{change:function(t){e.checkThis(o)}},model:{value:o.checked,callback:function(t){e.$set(o,"checked",t)},expression:"items.checked"}},[e._v(e._s(o.fieldName))])],1):e._e()]})],2)])})],2)]),e._v(" "),i("div",{staticClass:"handle-cho-btn"},[i("el-button",{staticClass:"export-btn",attrs:{type:"primary",disabled:e.checkedList.length<1},on:{click:e.exportCho}},[e._v("导出"),i("i",{staticClass:"iconfont icon-icon_yunxiazai"})]),e._v(" "),i("el-button",{on:{click:e.cancelCho}},[e._v("取消")])],1)])},staticRenderFns:[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"title"},[this._v("已选择字段"),t("span",[this._v("导出的列表中将按顺序显示这些字段(可拖拽排序)")])])}]};var c=i("VU/8")(l,r,!1,function(e){i("wEsK")},null,null);t.a=c.exports},edn0:function(e,t){},rHG8:function(e,t){},wEsK:function(e,t){},zGJY:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=i("3Xzz"),a=i("P9l9"),s=i("O3H5"),n=i("NNAT"),l={name:"employeeRecord",components:{navCrumb:o.a,employeeList:n.a,exportSet:s.a},data:function(){return{windowH:window.screen.availHeight-180+"px",navpath:[{name:"首页",path:"/index"},{name:"企业通讯录",path:"/administrativeFrame"},{name:"员工档案",path:"/fileSet"},{name:"在职员工",path:""}],typeObj:{onWorkCout:"在职员工",allWorkCount:"全职",partTimeWorkCount:"兼职",outWorkCount:"外包",practiceWorkCount:"实习",noTypeWorkCount:"无类型",regularCount:"正式",onTrialCount:"试用",noStatusCount:"无状态"},otherSet:{},countObj:{},showExportSet:!1}},methods:{cancelCho:function(){this.showExportSet=!1},showExportSetFn:function(){this.showExportSet=!0},getEmployeeCount:function(){var e=this;Object(a.a)("/haoban-manage-web/record/employee-count-detail",{}).then(function(t){1==t.data.errorCode?e.countObj=t.data.result:e.$message.error({message:t.data.message})}).catch(function(t){e.$message.error({message:t.message})})}},beforeMount:function(){this.getEmployeeCount(),this.$nextTick(function(){document.querySelector(".contact-wrap__body").style.overflow="hidden"})},beforeDestroy:function(){document.querySelector(".contact-wrap__body").style.overflow="auto"}},r={render:function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"common-set-wrap employee-record-wrap",style:{height:e.windowH}},[i("nav-crumb",{attrs:{navpath:e.navpath,slotFlag:!0}},[[i("div",{staticClass:"top-area"},[i("div",{staticClass:"top-title"},[i("span",{staticClass:"title-span"},[e._v("在职员工")]),e._v(" "),i("a",{attrs:{href:"#/recordIo?importCode=record"}},[i("el-button",{attrs:{type:"primary"}},[e._v("导入员工档案"),i("i",{staticClass:"el-icon-upload el-icon--right"})])],1)]),e._v(" "),i("div",{staticClass:"e-type-num-title"},e._l(e.countObj,function(t,o){return i("div",{key:o,staticClass:"type-cell",class:"onWorkCout"==o||"noTypeWorkCount"==o?"with-bdr":""},[i("p",{staticClass:"type-name"},[e._v(e._s(e.typeObj[o]))]),e._v(" "),i("p",{staticClass:"num"},[e._v(e._s(t))])])}))])]],2),e._v(" "),i("div",{staticClass:"right-content"},[i("div",{staticClass:"right-box"},[i("div",{staticClass:"e-record-container"},[e.showExportSet?[i("export-set",{attrs:{otherSet:e.otherSet},on:{cancelCho:e.cancelCho}})]:[i("employee-list",{on:{showExportSetFn:e.showExportSetFn}})]],2)])]),e._v(" "),i("vue-gic-footer")],1)},staticRenderFns:[]};var c=i("VU/8")(l,r,!1,function(e){i("rHG8")},null,null);t.default=c.exports}});
\ No newline at end of file
webpackJsonp([5],{FyzY:function(e,t){},K4Vl:function(e,t){},NNAT:function(e,t,o){"use strict";var i=o("fZjL"),a=o.n(i),s=o("mvHQ"),n=o.n(s),l=o("P9l9"),r=o("0xDb"),c={name:"list-item",props:{item:{type:String,required:!0}},filters:{formatDate:r.b},data:function(){return{typeLsit:["全部","全职","兼职","外包","实习","无类型"],reasons:["","家庭原因","个人原因","发展原因","合同到期不续签","协议解除","无法胜任工作","经济性裁员","严重违法违纪","其他"],propList:{headPic:{label:"",slot:!0,width:50},clerkName:{label:"姓名",width:90},clerkPhone:{label:"手机号"},groupName:{label:"部门"},clerkCode:{label:"code"},positionName:{label:"职位"},clerkType:{label:"员工类型",slot:!0},hireDate:{label:"入职日期",needSort:"custom",slot:!0},correctionDate:{label:"转正日期",needSort:"custom",slot:!0},fireDate:{label:"离职日期",needSort:"custom",slot:!0},fireReason:{label:"离职原因",slot:!0},handleEmployee:{label:"操作",slot:!0},handleUnEmployee:{label:"操作",slot:!0}}}},methods:{callHandle:function(e){"编辑员工资料"!=e.typeTitle?this.$emit("callHandle",e.obj,e.type,e.typeTitle):location.href="#/recordInfo?recordId="+e.obj.recordId}},mounted:function(){}},d={render:function(){var e=this,t=e.$createElement,o=e._self._c||t;return e.propList[e.item].slot?o("el-table-column",{attrs:{label:e.propList[e.item].label,width:e.propList[e.item].width,sortable:e.propList[e.item].needSort,prop:e.item},scopedSlots:e._u([{key:"default",fn:function(t){return["clerkType"==e.item?o("div",[e._v("\n "+e._s(e.typeLsit[t.row[e.item]||5])+"\n ")]):"hireDate"==e.item||"correctionDate"==e.item||"fireDate"==e.item?o("div",[e._v("\n "+e._s(e._f("formatDate")(t.row[e.item],"YY-MM-DD")||"--")+"\n ")]):"headPic"==e.item?o("div",[t.row[e.item]?o("img",{staticClass:"header-pic",attrs:{src:t.row[e.item]}}):o("div",{staticClass:"replace-head-img"},[o("i",{staticClass:"iconfont icon-yewuduanmorentouxian"})])]):"fireReason"==e.item?o("div",[e._v("\n "+e._s(e.reasons[t.row[e.item]]||"--")+"\n ")]):"handleEmployee"==e.item?o("div",[o("div",{staticClass:"table-handle"},[o("el-dropdown",{staticClass:"more",on:{command:e.callHandle}},[o("span",{staticClass:"el-dropdown-link"},[e._v(" 更多"),o("i",{staticClass:"el-icon-arrow-down el-icon--right"})]),e._v(" "),o("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[2==t.row.clerkStatus?[o("el-dropdown-item",{attrs:{command:{obj:t.row,type:"turnPositive",typeTitle:"办理转正"}}},[e._v("办理转正")]),e._v(" "),o("el-dropdown-item",{attrs:{command:{obj:t.row,type:"eidtCorrectionTime",typeTitle:"修改转正时间"}}},[e._v("修改转正时间")])]:e._e(),e._v(" "),o("el-dropdown-item",{attrs:{command:{obj:t.row,type:"editEmployee",typeTitle:"编辑员工资料"}}},[e._v("编辑员工资料")]),e._v(" "),o("el-dropdown-item",{attrs:{command:{obj:t.row,type:"resignation",typeTitle:"办理离职"}}},[e._v("办理离职")])],2)],1)],1)]):"handleUnEmployee"==e.item?o("div",[o("div",{staticClass:"table-handle"},[o("a",{staticClass:"a-href",attrs:{href:"#/recordInfo?recordId="+t.row.recordId+"&type=unemployee"}},[e._v("编辑")])])]):e._e()]}}])}):o("el-table-column",{attrs:{"class-name":"clerkName"==e.item?"control-width":"",label:e.propList[e.item].label,width:e.propList[e.item].width,prop:e.item}})},staticRenderFns:[]};var h=o("VU/8")(c,d,!1,function(e){o("edn0")},null,null).exports,p=o("IVno"),u=o("Ie7z"),m=o("c4uw"),f={name:"employeeRecordList",props:{isUnEmployee:{type:Boolean,default:!1}},components:{listItem:h,handleDialog:p.a,vueSelectStore:u.a,vueSelectEmployee:m.a},data:function(){return{tableH:window.screen.availHeight-440-160,pickerOptions2:{shortcuts:[{text:"最近一周",onClick:function(e){var t=new Date,o=new Date;o.setTime(o.getTime()-6048e5),e.$emit("pick",[o,t])}},{text:"最近一个月",onClick:function(e){var t=new Date,o=new Date;o.setTime(o.getTime()-2592e6),e.$emit("pick",[o,t])}},{text:"最近三个月",onClick:function(e){var t=new Date,o=new Date;o.setTime(o.getTime()-7776e6),e.$emit("pick",[o,t])}}]},employeeList:[],pageNum:1,pageSize:20,sortType:"desc",sortColumn:"hireDate",statusList:["全部","正式","试用"],typeLsit:["全部","全职","兼职","外包","实习","无类型"],clerkType:0,clerkStatus:0,total:0,handleType:"turnPositive",typeTitle:"",dialogVisible:!1,employeeObj:{},fireDate:[],startDate:"",endDate:"",showSelector:!0,searchParam:"",departMentSet:{},storeSet:{},treeData:{},selectionList:[],disabled:!0,chooseClerkIdList:[],chooseGroupIdList:[],chooseStoreIdList:[],adList:[],adDefaultSelection:[],stList:[],changed:0}},methods:{searchFn:function(){this.getEmloyeeList()},getGroupData:function(){var e=this;Object(l.a)("/haoban-manage-web/dept/deptListForCompany",{isStoreGroup:0}).then(function(t){var o=[],i=[];1==t.data.errorCode&&(o=t.data.result.departmentList||[],i=t.data.result.searchList||[]),e.treeData={treeData:o,personData:i},e.disabled=!1}).catch(function(e){})},callSelector:function(){this.$refs.departmentSelector.treeSet.dialogVisible=!0},callStoreSelector:function(){this.$refs.storeSelector.treeSet.dialogVisible=!0},showExportSet:function(){if(this.isUnEmployee){var e=window.location.origin;-1!=e.indexOf("localhost")&&(e="http://www.gicdev.com");var t=0==this.clerkType?"":this.clerkType;location.href=e+"/haoban-manage-web/record/export-fire-employee-record?clerkType="+t+"&sortType="+this.sortType+"&sortColumn="+this.sortColumn+"&startDate="+this.startDate+"&endDate="+this.endDate+"&searchParam="+this.searchParam+"&chooseClerkIdList="+this.chooseClerkIdList.join(",")+"&chooseGroupIdList="+this.chooseGroupIdList.join(",")+"&chooseStoreIdList="+this.chooseStoreIdList.join(",")}else this.$emit("showExportSetFn")},handleSelectedList:function(e){this.adDefaultSelection=e,this.adList=e;var t=this.selectionList.concat(e);this.selectionList=t,this.formatSelectionList(t)},handleStoreSelectedList:function(e){this.stList=e;var t=this.selectionList.concat(e);this.selectionList=t,this.formatSelectionList(t)},formatSelectionList:function(e){var t=this.unique(e);this.selectionList=t;var o=this;t.length&&(o.chooseClerkIdList=[],o.chooseStoreIdList=[],o.chooseGroupIdList=[],t.forEach(function(e){e.employeeClerkId?o.chooseClerkIdList.push(e.employeeClerkId):e.storeId?o.chooseStoreIdList.push(e.storeId):e.groupId&&o.chooseGroupIdList.push(e.groupId)}),o.getEmloyeeList())},unique:function(e){var t={};return e.forEach(function(e){t[n()(e)]=e}),e=a()(t).map(function(e){return JSON.parse(e)})},delSld:function(e,t){var o=this,i=this.selectionList.indexOf(e);this.selectionList.splice(i,1),this.formatSelectionList(this.selectionList),o.adList.forEach(function(t){t.id==e.id&&o.adList.splice(o.adList.indexOf(t),1)}),o.changed+=1,o.adDefaultSelection=o.adList.slice(0)},handleSuccess:function(){this.dialogVisible=!1,this.getEmloyeeList()},callHandle:function(e,t,o){this.handleType=t,this.employeeObj=e,this.typeTitle=o,this.dialogVisible=!0},handleSizeChange:function(e){this.pageSize=e,this.getEmloyeeList()},handleCurrentChange:function(e){this.pageNum=e,this.getEmloyeeList()},sortList:function(e){this.sortColumn=e.prop,this.sortType="descending"==e.order?"desc":"asc",this.getEmloyeeList()},reGetList:function(){this.getEmloyeeList()},getEmloyeeList:function(){var e=this,t=e.isUnEmployee,o=t?"/haoban-manage-web/record/find-fire-employee-record-page":"/haoban-manage-web/record/find-on-work-employee-record-page",i={pageNum:e.pageNum,chooseClerkIdList:e.chooseClerkIdList.join(","),chooseGroupIdList:e.chooseGroupIdList.join(","),chooseStoreIdList:e.chooseStoreIdList.join(","),pageSize:e.pageSize,sortType:e.sortType,clerkStatus:0==e.clerkStatus?"":e.clerkStatus,sortColumn:e.sortColumn,clerkType:0==e.clerkType?"":e.clerkType,startDate:e.startDate,endDate:e.endDate,searchParam:e.searchParam};Object(l.a)(o,i).then(function(o){1==o.data.errorCode?(e.employeeList=o.data.result.list,e.total=t?o.data.result.total:o.data.result.pageInfo.total):e.$message.error({message:o.data.message})}).catch(function(t){e.$message({message:t.message})})},selectDate:function(e){e?(this.startDate=e[0],this.endDate=e[1]):(this.startDate="",this.endDate=""),this.getEmloyeeList()}},beforeMount:function(){this.getEmloyeeList(),this.getGroupData()},computed:{propList:function(){return this.isUnEmployee?["headPic","clerkName","clerkPhone","groupName","clerkCode","positionName","clerkType","hireDate","fireDate","fireReason","handleUnEmployee"]:["headPic","clerkName","clerkPhone","groupName","clerkCode","positionName","clerkType","hireDate","correctionDate","handleEmployee"]}}},v={render:function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"e-r-l-container"},[o("div",{staticClass:"handle-area"},[o("div",{staticClass:"flex1"},[o("el-button",{staticStyle:{"margin-right":"10px",height:"32px"},attrs:{disabled:e.disabled},on:{click:e.callSelector}},[e._v("行政架构选人")]),e._v(" "),o("el-button",{staticStyle:{"margin-right":"10px",height:"32px"},on:{click:e.callStoreSelector}},[e._v("门店架构选人")]),e._v(" "),e.isUnEmployee?o("div",{staticClass:"block"},[o("span",{staticClass:"demonstration"},[e._v("离职日期")]),e._v(" "),o("el-date-picker",{attrs:{type:"daterange",align:"right","value-format":"yyyy-MM-dd","unlink-panels":"","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期","picker-options":e.pickerOptions2},on:{change:e.selectDate},model:{value:e.fireDate,callback:function(t){e.fireDate=t},expression:"fireDate"}})],1):[o("el-select",{staticClass:"m-r-10 w-130",attrs:{placeholder:"选择类型"},on:{change:e.reGetList},model:{value:e.clerkType,callback:function(t){e.clerkType=t},expression:"clerkType"}},e._l(e.typeLsit,function(e,t){return o("el-option",{key:t,attrs:{label:e,value:t}})})),e._v(" "),o("el-select",{staticClass:"w-130",attrs:{placeholder:"选择状态"},on:{change:e.reGetList},model:{value:e.clerkStatus,callback:function(t){e.clerkStatus=t},expression:"clerkStatus"}},e._l(e.statusList,function(e,t){return o("el-option",{key:t,attrs:{label:e,value:t}})}))],e._v(" "),o("el-input",{staticStyle:{width:"218px","margin-left":"10px"},attrs:{placeholder:"请输入姓名或手机号",clearable:""},on:{clear:e.searchFn},nativeOn:{keyup:function(t){return"button"in t||!e._k(t.keyCode,"enter",13,t.key,"Enter")?e.searchFn(t):null}},model:{value:e.searchParam,callback:function(t){e.searchParam=t},expression:"searchParam"}})],2),e._v(" "),o("el-button",{attrs:{type:"primary"},on:{click:e.showExportSet}},[e._v("导出"),o("i",{staticClass:"el-icon-upload el-icon--right"})])],1),e._v(" "),e.selectionList.length>0?o("ul",{staticClass:"selector-selected-list"},[e._l(e.selectionList,function(t,i){return[o("li",{key:i+t.id+t.label,staticClass:"sld"},[e._v(e._s(t.label)+" "),o("i",{staticClass:"el-icon-close",on:{click:function(o){e.delSld(t,t.isStoreGroup)}}})])]}),e._v(" "),o("li",{staticClass:"sld tip"},[e._v("共筛选出"+e._s(e.total)+"人")])],2):e._e(),e._v(" "),o("el-table",{staticClass:"list-table",attrs:{height:e.employeeList.length?e.tableH:"auto",data:e.employeeList,"default-sort":{prop:"hireDate",order:"descending"}},on:{"sort-change":e.sortList}},[e._l(e.propList,function(t){return[o("list-item",{key:t,attrs:{item:t},on:{callHandle:e.callHandle}})]})],2),e._v(" "),e.employeeList.length?o("el-pagination",{staticClass:"pagination",attrs:{background:"","page-sizes":[20,40,60,80],"page-size":e.pageSize,"current-page":e.pageNum,layout:"total, sizes, prev, pager, next",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}}):e._e(),e._v(" "),o("el-dialog",{attrs:{title:e.typeTitle,visible:e.dialogVisible,width:"480px"},on:{"update:visible":function(t){e.dialogVisible=t}}},[o("handle-dialog",{attrs:{employee:e.employeeObj,handleType:e.handleType,typeTitle:e.typeTitle},on:{handleSuccess:e.handleSuccess}})],1),e._v(" "),o("vue-select-store",{ref:"storeSelector",on:{handleSelectedList:e.handleStoreSelectedList}}),e._v(" "),o("vue-select-employee",{ref:"departmentSelector",attrs:{changed:e.changed,treeData:e.treeData,defaultSelection:e.adDefaultSelection},on:{handleSelectedList:e.handleSelectedList}})],1)},staticRenderFns:[]};var g=o("VU/8")(f,v,!1,function(e){o("K4Vl")},null,null);t.a=g.exports},O3H5:function(e,t,o){"use strict";var i=o("mvHQ"),a=o.n(i),s=o("P9l9"),n=o("DAYN"),l={name:"export-set",components:{draggable:o.n(n).a},data:function(){return{tempList:[],checkList:[],origin:[],checkAll:!1,isIndeterminate:!1,checkedList:[]}},methods:{checkThis:function(e){e.checked&&this.checkedList.push(e)},handleCheckAllChange:function(e){this.checkedList=[],this.origin.forEach(function(t,o){t.checked=e,e&&(t.order=o+1)}),e&&(this.checkedList=this.origin.slice(0))},getTemplate:function(){var e=this;Object(s.a)("/haoban-manage-web/record/employee-find-template",{}).then(function(t){1==t.data.errorCode?e.formatTemplateList(t.data.result):e.$message.error({message:t.data.message})}).catch(function(t){e.$message.error({message:t.message})})},formatTemplateList:function(e){var t=[],o=[],i=e;e.forEach(function(e){e.title=e.fieldName,e.name=e.fieldName,e.checked=!1;var o=[];i.forEach(function(t){t.parentCode==e.fieldCode&&o.push(t)}),o.sort(function(e,t){return 1*e.sort-1*t.sort}),o.length>0&&(e.childrens=o),0==e.parentCode&&t.push(e)}),t.sort(function(e,t){return 1*e.sort-1*t.sort}),t.forEach(function(e){o=o.concat(e.childrens)}),this.origin=o,this.tempList=t},cancelCho:function(){this.origin.forEach(function(e){e.checked=!1}),this.$emit("cancelCho")},exportCho:function(){var e=[];this.checkedList.forEach(function(t){t.checked&&e.push({fieldCode:t.fieldCode,fieldName:t.fieldName})});a()(e);var t=window.location.origin;-1!=t.indexOf("localhost")&&(t="http://www.gicdev.com"),location.href=t+"/haoban-manage-web/record/define-export?exportTitleContent="+a()(e),this.$emit("cancelCho")}},beforeMount:function(){this.getTemplate()}},r={render:function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"export-set-container"},[e._m(0),e._v(" "),o("div",{staticClass:"cho-list"},[o("draggable",{model:{value:e.checkedList,callback:function(t){e.checkedList=t},expression:"checkedList"}},[e._l(e.checkedList,function(t){return[t.checked?o("div",{key:t.fieldCode,staticClass:"cho"},[e._v(e._s(t.fieldName))]):e._e()]})],2)],1),e._v(" "),o("div",{staticClass:"cho-area"},[o("div",{staticClass:"title"},[e._v("选择需要导出的字段")]),e._v(" "),o("div",{staticClass:"cho-area-group"},[o("div",{staticClass:"group-div"},[o("div",{staticClass:"group-title"}),e._v(" "),o("ul",{staticClass:"group-son-list"},[o("el-checkbox",{attrs:{indeterminate:e.isIndeterminate},on:{change:e.handleCheckAllChange},model:{value:e.checkAll,callback:function(t){e.checkAll=t},expression:"checkAll"}},[e._v("全选")])],1)]),e._v(" "),e._l(e.tempList,function(t,i){return o("div",{key:t.fieldCode+i,staticClass:"group-div"},[o("div",{staticClass:"group-title"},[e._v(e._s(t.title))]),e._v(" "),o("ul",{staticClass:"group-son-list"},[e._l(e.origin,function(i){return[i.parentCode==t.fieldCode?o("li",{key:i.fieldCode},[o("el-checkbox",{key:i.fieldCode,attrs:{label:i.fieldName},on:{change:function(t){e.checkThis(i)}},model:{value:i.checked,callback:function(t){e.$set(i,"checked",t)},expression:"items.checked"}},[e._v(e._s(i.fieldName))])],1):e._e()]})],2)])})],2)]),e._v(" "),o("div",{staticClass:"handle-cho-btn"},[o("el-button",{staticClass:"export-btn",attrs:{type:"primary",disabled:e.checkedList.length<1},on:{click:e.exportCho}},[e._v("导出"),o("i",{staticClass:"iconfont icon-icon_yunxiazai"})]),e._v(" "),o("el-button",{on:{click:e.cancelCho}},[e._v("取消")])],1)])},staticRenderFns:[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"title"},[this._v("已选择字段"),t("span",[this._v("导出的列表中将按顺序显示这些字段(可拖拽排序)")])])}]};var c=o("VU/8")(l,r,!1,function(e){o("FyzY")},null,null);t.a=c.exports},edn0:function(e,t){},rHG8:function(e,t){},zGJY:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=o("3Xzz"),a=o("P9l9"),s=o("O3H5"),n=o("NNAT"),l={name:"employeeRecord",components:{navCrumb:i.a,employeeList:n.a,exportSet:s.a},data:function(){return{windowH:window.screen.availHeight-180+"px",navpath:[{name:"首页",path:"/index"},{name:"企业通讯录",path:"/administrativeFrame"},{name:"员工档案",path:"/fileSet"},{name:"在职员工",path:""}],typeObj:{onWorkCout:"在职员工",allWorkCount:"全职",partTimeWorkCount:"兼职",outWorkCount:"外包",practiceWorkCount:"实习",noTypeWorkCount:"无类型",regularCount:"正式",onTrialCount:"试用",noStatusCount:"无状态"},otherSet:{},countObj:{},showExportSet:!1}},methods:{cancelCho:function(){this.showExportSet=!1},showExportSetFn:function(){this.showExportSet=!0},getEmployeeCount:function(){var e=this;Object(a.a)("/haoban-manage-web/record/employee-count-detail",{}).then(function(t){1==t.data.errorCode?e.countObj=t.data.result:e.$message.error({message:t.data.message})}).catch(function(t){e.$message.error({message:t.message})})}},beforeMount:function(){this.getEmployeeCount(),this.$nextTick(function(){document.querySelector(".contact-wrap__body").style.overflow="hidden"})},beforeDestroy:function(){document.querySelector(".contact-wrap__body").style.overflow="auto"}},r={render:function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"common-set-wrap employee-record-wrap",style:{height:e.windowH}},[o("nav-crumb",{attrs:{navpath:e.navpath,slotFlag:!0}},[[o("div",{staticClass:"top-area"},[o("div",{staticClass:"top-title"},[o("span",{staticClass:"title-span"},[e._v("在职员工")]),e._v(" "),o("a",{attrs:{href:"#/recordIo?importCode=record"}},[o("el-button",{attrs:{type:"primary"}},[e._v("导入员工档案"),o("i",{staticClass:"el-icon-upload el-icon--right"})])],1)]),e._v(" "),o("div",{staticClass:"e-type-num-title"},e._l(e.countObj,function(t,i){return o("div",{key:i,staticClass:"type-cell",class:"onWorkCout"==i||"noTypeWorkCount"==i?"with-bdr":""},[o("p",{staticClass:"type-name"},[e._v(e._s(e.typeObj[i]))]),e._v(" "),o("p",{staticClass:"num"},[e._v(e._s(t))])])}))])]],2),e._v(" "),o("div",{staticClass:"right-content"},[o("div",{staticClass:"right-box"},[o("div",{staticClass:"e-record-container"},[e.showExportSet?[o("export-set",{attrs:{otherSet:e.otherSet},on:{cancelCho:e.cancelCho}})]:[o("employee-list",{on:{showExportSetFn:e.showExportSetFn}})]],2)])]),e._v(" "),o("vue-gic-footer")],1)},staticRenderFns:[]};var c=o("VU/8")(l,r,!1,function(e){o("rHG8")},null,null);t.default=c.exports}});
\ No newline at end of file
!function(e){var a=window.webpackJsonp;window.webpackJsonp=function(c,n,r){for(var t,b,o,i=0,u=[];i<c.length;i++)b=c[i],f[b]&&u.push(f[b][0]),f[b]=0;for(t in n)Object.prototype.hasOwnProperty.call(n,t)&&(e[t]=n[t]);for(a&&a(c,n,r);u.length;)u.shift()();if(r)for(i=0;i<r.length;i++)o=d(d.s=r[i]);return o};var c={},f={44:0};function d(a){if(c[a])return c[a].exports;var f=c[a]={i:a,l:!1,exports:{}};return e[a].call(f.exports,f,f.exports,d),f.l=!0,f.exports}d.e=function(e){var a=f[e];if(0===a)return new Promise(function(e){e()});if(a)return a[2];var c=new Promise(function(c,d){a=f[e]=[c,d]});a[2]=c;var 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:"eb0a4246ba12b2f19e2a",1:"0ebe3ead93207dc78a78",2:"a3034ac019ab3b076959",3:"7f87f1f60c09bb6ad371",4:"7dd9b3bb0689b9db1cf3",5:"a59d9c23005287905ed6",6:"fbd06ea78358b8144d70",7:"fb9879c0177f64d093fb",8:"d7aaadab295e16aa570e",9:"325d932bbdd43400378c",10:"4e361f7d71dc54b505c7",11:"f0a5934a01e738b98d90",12:"083c2dea91ab829164ab",13:"cd7e52c325cdc13a2368",14:"c7093604e27c367303cf",15:"bd12670087ac2b78bcd8",16:"1524360dd522553f9835",17:"2fcb22c1678bfb340c98",18:"07d5abcfefbcf450eccc",19:"dabaaf4b65f9f75c9a0d",20:"f5dd0c36e2944f5fa78c",21:"7faaa888e2db1aa1e5a3",22:"e2b096ce6ec3d2f5b0d7",23:"36f14084226b8d6bba02",24:"da00208b59bc1152ea8c",25:"e18d84688b21155beafe",26:"bd139135ffeed7c3be5d",27:"e85ffa7929197dc4609a",28:"c75ca2dc62974c43903c",29:"25c23e727c71fda1821b",30:"5546948c939232668fc6",31:"16358ad3a9085c551664",32:"20338d6b658d38bf70dc",33:"375e96e88f2f82b30e3c",34:"57d4132e0ff6a5a8ac00",35:"aed8a28b82487ff5f295",36:"158063a49dabc462fe14",37:"f30f4e653b1f9e708aaa",38:"ac5ef7410309c861198f",39:"3e612f993ddd107c14dd",40:"f965564e0c6bf413d47f",43:"13848f214bb993c20004"}[e]+".js";var t=setTimeout(b,12e4);function b(){r.onerror=r.onload=null,clearTimeout(t);var a=f[e];0!==a&&(a&&a[1](new Error("Loading chunk "+e+" failed.")),f[e]=void 0)}return r.onerror=r.onload=b,n.appendChild(r),c},d.m=e,d.c=c,d.d=function(e,a,c){d.o(e,a)||Object.defineProperty(e,a,{configurable:!1,enumerable:!0,get:c})},d.n=function(e){var a=e&&e.__esModule?function(){return e.default}:function(){return e};return d.d(a,"a",a),a},d.o=function(e,a){return Object.prototype.hasOwnProperty.call(e,a)},d.p="./",d.oe=function(e){throw console.error(e),e}}([]); !function(e){var a=window.webpackJsonp;window.webpackJsonp=function(c,n,r){for(var t,b,o,i=0,u=[];i<c.length;i++)b=c[i],f[b]&&u.push(f[b][0]),f[b]=0;for(t in n)Object.prototype.hasOwnProperty.call(n,t)&&(e[t]=n[t]);for(a&&a(c,n,r);u.length;)u.shift()();if(r)for(i=0;i<r.length;i++)o=d(d.s=r[i]);return o};var c={},f={44:0};function d(a){if(c[a])return c[a].exports;var f=c[a]={i:a,l:!1,exports:{}};return e[a].call(f.exports,f,f.exports,d),f.l=!0,f.exports}d.e=function(e){var a=f[e];if(0===a)return new Promise(function(e){e()});if(a)return a[2];var c=new Promise(function(c,d){a=f[e]=[c,d]});a[2]=c;var 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:"eb0a4246ba12b2f19e2a",1:"0ebe3ead93207dc78a78",2:"a3034ac019ab3b076959",3:"7f87f1f60c09bb6ad371",4:"7dd9b3bb0689b9db1cf3",5:"3417bcae84d670c66db1",6:"fbd06ea78358b8144d70",7:"fb9879c0177f64d093fb",8:"d7aaadab295e16aa570e",9:"325d932bbdd43400378c",10:"4e361f7d71dc54b505c7",11:"f0a5934a01e738b98d90",12:"083c2dea91ab829164ab",13:"cd7e52c325cdc13a2368",14:"c7093604e27c367303cf",15:"bd12670087ac2b78bcd8",16:"1524360dd522553f9835",17:"0df740b440fad8662864",18:"07d5abcfefbcf450eccc",19:"dabaaf4b65f9f75c9a0d",20:"f5dd0c36e2944f5fa78c",21:"7faaa888e2db1aa1e5a3",22:"e2b096ce6ec3d2f5b0d7",23:"36f14084226b8d6bba02",24:"da00208b59bc1152ea8c",25:"e18d84688b21155beafe",26:"bd139135ffeed7c3be5d",27:"e85ffa7929197dc4609a",28:"c75ca2dc62974c43903c",29:"25c23e727c71fda1821b",30:"5546948c939232668fc6",31:"16358ad3a9085c551664",32:"20338d6b658d38bf70dc",33:"375e96e88f2f82b30e3c",34:"57d4132e0ff6a5a8ac00",35:"aed8a28b82487ff5f295",36:"158063a49dabc462fe14",37:"f30f4e653b1f9e708aaa",38:"ac5ef7410309c861198f",39:"3e612f993ddd107c14dd",40:"f965564e0c6bf413d47f",43:"13848f214bb993c20004"}[e]+".js";var t=setTimeout(b,12e4);function b(){r.onerror=r.onload=null,clearTimeout(t);var a=f[e];0!==a&&(a&&a[1](new Error("Loading chunk "+e+" failed.")),f[e]=void 0)}return r.onerror=r.onload=b,n.appendChild(r),c},d.m=e,d.c=c,d.d=function(e,a,c){d.o(e,a)||Object.defineProperty(e,a,{configurable:!1,enumerable:!0,get:c})},d.n=function(e){var a=e&&e.__esModule?function(){return e.default}:function(){return e};return d.d(a,"a",a),a},d.o=function(e,a){return Object.prototype.hasOwnProperty.call(e,a)},d.p="./",d.oe=function(e){throw console.error(e),e}}([]);
\ No newline at end of file \ No newline at end of file
...@@ -3,8 +3,8 @@ ...@@ -3,8 +3,8 @@
<div class="title">已选择字段<span>导出的列表中将按顺序显示这些字段(可拖拽排序)</span></div> <div class="title">已选择字段<span>导出的列表中将按顺序显示这些字段(可拖拽排序)</span></div>
<div class="cho-list"> <div class="cho-list">
<draggable v-model="checkedList"> <draggable v-model="checkedList">
<template v-for="tem in checkedList"> <template v-for="(item, index) in checkedList">
<div class="cho" v-if="tem.checked" :key="tem.fieldCode">{{ tem.fieldName }}</div> <div class="cho" v-if="item.checked" :key="item.fieldCode + index">{{ item.fieldName }} <i class="el-icon-circle-close" @click="deleteField(index)"></i></div>
</template> </template>
</draggable> </draggable>
</div> </div>
...@@ -54,11 +54,51 @@ export default { ...@@ -54,11 +54,51 @@ export default {
}; };
}, },
methods: { methods: {
/**
* 删除已选
*/
deleteField(index) {
let that = this;
that.checkedList.splice(index, 1);
let listData = that.checkedList.map(item => item.fieldCode);
that.origin.forEach(function(ele, index) {
if (listData.includes(ele.fieldCode)) {
ele.checked = true;
} else {
ele.checked = false;
}
});
that.checkHalf();
},
/**
* 检查全选和半选
*/
checkHalf() {
let that = this;
if (that.checkedList.length === 0) {
that.isIndeterminate = false;
return false;
}
if (that.checkedList.length === that.origin.length) {
that.isIndeterminate = false;
} else {
that.isIndeterminate = true;
}
},
checkThis(items) { checkThis(items) {
let that = this;
// 将勾选的字段放入已勾选列表 // 将勾选的字段放入已勾选列表
if (items.checked) { if (items.checked) {
this.checkedList.push(items); that.checkedList.push(items);
} else {
that.checkedList.forEach((item, index) => {
if (item.fieldCode === items.fieldCode) {
that.checkedList.splice(index, 1);
}
});
} }
that.checkHalf();
}, },
handleCheckAllChange(val) { handleCheckAllChange(val) {
// 全选勾选框 // 全选勾选框
...@@ -73,6 +113,7 @@ export default { ...@@ -73,6 +113,7 @@ export default {
if (val) { if (val) {
that.checkedList = that.origin.slice(0); that.checkedList = that.origin.slice(0);
} }
that.checkHalf();
}, },
getTemplate() { getTemplate() {
// 获取模版字段 // 获取模版字段
...@@ -185,6 +226,7 @@ export default { ...@@ -185,6 +226,7 @@ export default {
flex-wrap: wrap; flex-wrap: wrap;
margin-bottom: 44px; margin-bottom: 44px;
.cho { .cho {
position: relative;
padding: 0 15px; padding: 0 15px;
box-sizing: border-box; box-sizing: border-box;
height: 32px; height: 32px;
...@@ -203,6 +245,18 @@ export default { ...@@ -203,6 +245,18 @@ export default {
background: rgba(64, 158, 255, 1); background: rgba(64, 158, 255, 1);
color: #fff; color: #fff;
} }
.el-icon-circle-close {
position: absolute;
top: -10px;
right: -10px;
font-size: 16px;
color: #808995;
cursor: pointer;
&:hover {
color: #f56c6c;
}
}
} }
} }
} }
......
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