chunk-2032a5f9.6cda2612.js 53 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2032a5f9"],{"09f4":function(t,e,r){"use strict";r.d(e,"a",(function(){return o})),Math.easeInOutQuad=function(t,e,r,a){return t/=a/2,t<1?r/2*t*t+e:(t--,-r/2*(t*(t-2)-1)+e)};var a=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(t){window.setTimeout(t,1e3/60)}}();function n(t){document.documentElement.scrollTop=t,document.body.parentNode.scrollTop=t,document.body.scrollTop=t}function i(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function o(t,e,r){var o=i(),s=t-o,l=20,c=0;e="undefined"===typeof e?500:e;var u=function t(){c+=l;var i=Math.easeInOutQuad(c,o,s,e);n(i),c<e?a(t):r&&"function"===typeof r&&r()};u()}},"15fd":function(t,e,r){"use strict";function a(t,e){if(null==t)return{};var r,a,n={},i=Object.keys(t);for(a=0;a<i.length;a++)r=i[a],e.indexOf(r)>=0||(n[r]=t[r]);return n}function n(t,e){if(null==t)return{};var r,n,i=a(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}r.d(e,"a",(function(){return n}))},3607:function(t,e,r){"use strict";r.d(e,"h",(function(){return s})),r.d(e,"e",(function(){return l})),r.d(e,"g",(function(){return c})),r.d(e,"f",(function(){return u})),r.d(e,"j",(function(){return d})),r.d(e,"k",(function(){return p})),r.d(e,"i",(function(){return m})),r.d(e,"m",(function(){return f})),r.d(e,"n",(function(){return b})),r.d(e,"l",(function(){return g})),r.d(e,"q",(function(){return h})),r.d(e,"b",(function(){return v})),r.d(e,"a",(function(){return _})),r.d(e,"d",(function(){return y})),r.d(e,"o",(function(){return C})),r.d(e,"c",(function(){return j})),r.d(e,"p",(function(){return I}));var a=r("b775"),n=r("4328"),i=r.n(n),o="/api-web";function s(t){return Object(a["a"])({url:o+"/tenantEntryActivities/queryPage",method:"get",params:t})}function l(t){return Object(a["a"])({url:o+"/tenantEntryActivities/merge",method:"post",data:t})}function c(t){return Object(a["a"])({url:o+"/tenantEntryActivities/updateDelFlag",method:"post",data:i.a.stringify(t)})}function u(t){return Object(a["a"])({url:o+"/tenantEntryActivities/query",method:"get",params:t})}function d(t){return Object(a["a"])({url:"/api-cms/helpCenterCatalog/list",method:"get",params:t})}function p(t){return Object(a["a"])({url:"/api-cms/helpCenterCatalog/modify",method:"post",data:i.a.stringify(t)})}function m(t){return Object(a["a"])({url:"/api-cms/helpCenterCatalog/delete",method:"post",data:i.a.stringify(t)})}function f(t){return Object(a["a"])({url:"/api-cms/helpCenterContent/list",method:"get",params:t})}function b(t){return Object(a["a"])({url:"/api-cms/helpCenterContent/modify",method:"post",data:i.a.stringify(t)})}function g(t){return Object(a["a"])({url:"/api-cms/helpCenterContent/delete",method:"post",data:i.a.stringify(t)})}function h(t){return Object(a["a"])({url:"/api-web/sysSuggestion/queryPage",method:"get",params:t})}function v(t){return Object(a["a"])({method:"get",url:"/api-web/employeeInfo/queryPage",params:t})}function _(t){return Object(a["a"])({method:"post",url:"/api-web/employeeInfo/insert",data:t})}function y(t){return Object(a["a"])({method:"post",url:"/api-web/employeeInfo/update",data:t})}function C(t){return Object(a["a"])({method:"post",url:"/api-web/employeeInfo/insertVisit",data:t})}function j(t){return Object(a["a"])({method:"get",url:"/api-web/employeeInfo/queryDetail",params:t})}function I(t){return Object(a["a"])({method:"get",url:"/api-web/employee/queryEmployeeByRole",params:t})}},"3a03":function(t,e,r){},"3d7c":function(t,e,r){"use strict";r("f204")},6577:function(t,e,r){"use strict";r("e8ab")},adb21:function(t,e,r){"use strict";r.d(e,"a",(function(){return c}));var a=r("bc3a"),n=r.n(a),i=(r("4328"),r("5f87")),o=r("3908"),s=r("e3eb"),l=r.n(s),c=function(t,e,r){var a=e.url,s={method:e.method?e.method:"get",headers:{Authorization:Object(i["a"])()},url:a,responseType:"blob"};"post"==s.method?s.data=e.params:s.params=e.params,t.$confirm(r||"您确定下载模板","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){o["a"].startLoading(),n()(l()(s)).then((function(r){var a=new Blob([r.data],{type:"application/vnd.ms-excel;charset=utf-8"}),n=new Response(a).text();n.then((function(r){if(-1!=r.indexOf("code")){var n=JSON.parse(r);t.$message.error(n.msg)}else{var i=URL.createObjectURL(a),o=document.createElement("a"),s=e.fileName||"导出文件.xls";o.href=i,o.setAttribute("download",s),document.body.appendChild(o),o.click()}})),o["a"].endLoading()})).catch((function(e){t.$message.error("下载失败,请联系管理员"),o["a"].endLoading()}))})).catch((function(){}))}},cce4:function(t,e,r){"use strict";r.r(e);var a,n=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"m-container"},[t._m(0),t._v(" "),r("div",{staticClass:"m-core"},[r("div",{directives:[{name:"permission",rawName:"v-permission",value:"employeeInfo/insert",expression:"'employeeInfo/insert'"}],staticClass:"newBand",on:{click:function(e){return t.openTypes("create")}}},[t._v("\n 添加\n ")]),t._v(" "),r("saveform",{ref:"searchForm",staticClass:"searchForm",attrs:{inline:!0,model:t.searchForm},on:{"update:model":function(e){t.searchForm=e}}},[r("el-form-item",{attrs:{prop:"userNameOrIdOrMobile"}},[r("el-input",{attrs:{placeholder:"姓名手机号",clearable:""},model:{value:t.searchForm.userNameOrIdOrMobile,callback:function(e){t.$set(t.searchForm,"userNameOrIdOrMobile","string"===typeof e?e.trim():e)},expression:"searchForm.userNameOrIdOrMobile"}})],1),t._v(" "),r("el-form-item",{attrs:{prop:"sourceFrom"}},[r("el-select",{attrs:{clearable:"",filterable:"",placeholder:"请选择信息来源"},model:{value:t.searchForm.sourceFrom,callback:function(e){t.$set(t.searchForm,"sourceFrom","string"===typeof e?e.trim():e)},expression:"searchForm.sourceFrom"}},[r("el-option",{attrs:{label:"BOSS",value:"BOSS"}}),t._v(" "),r("el-option",{attrs:{label:"转介绍",value:"转介绍"}})],1)],1),t._v(" "),r("el-form-item",{attrs:{prop:"status"}},[r("el-select",{attrs:{clearable:"",filterable:"",placeholder:"请选择人员状态"},model:{value:t.searchForm.status,callback:function(e){t.$set(t.searchForm,"status","string"===typeof e?e.trim():e)},expression:"searchForm.status"}},[r("el-option",{attrs:{label:"未录用",value:"NOT_EMPLOYED"}}),t._v(" "),r("el-option",{attrs:{label:"面试中",value:"INTERVIEWING"}}),t._v(" "),r("el-option",{attrs:{label:"储备",value:"RESERVE"}}),t._v(" "),r("el-option",{attrs:{label:"兼职",value:"PART_TIME"}}),t._v(" "),r("el-option",{attrs:{label:"全职",value:"FULL_TIME"}}),t._v(" "),r("el-option",{attrs:{label:"离职",value:"DIMISSION"}})],1)],1),t._v(" "),r("el-form-item",{attrs:{prop:"position"}},[r("el-select",{attrs:{clearable:"",filterable:"",placeholder:"请选择职位"},model:{value:t.searchForm.position,callback:function(e){t.$set(t.searchForm,"position","string"===typeof e?e.trim():e)},expression:"searchForm.position"}},[r("el-option",{attrs:{label:"指导老师",value:"ADVISER"}}),t._v(" "),r("el-option",{attrs:{label:"乐团主管",value:"ACADEMIC"}}),t._v(" "),r("el-option",{attrs:{label:"乐队指导",value:"TEACHING"}})],1)],1),t._v(" "),r("el-form-item",{attrs:{prop:"organId"}},[r("el-select",{attrs:{placeholder:"请选择分部",clearable:"",filterable:""},model:{value:t.searchForm.organId,callback:function(e){t.$set(t.searchForm,"organId","string"===typeof e?e.trim():e)},expression:"searchForm.organId"}},t._l(t.organList,(function(t,e){return r("el-option",{key:e,attrs:{value:t.id,label:t.name}})})),1)],1),t._v(" "),r("el-form-item",{attrs:{prop:"subjectId","label-width":t.formLabelWidth}},[r("el-select",{attrs:{clearable:"",filterable:"",placeholder:"请选择声部"},model:{value:t.searchForm.subjectId,callback:function(e){t.$set(t.searchForm,"subjectId","string"===typeof e?e.trim():e)},expression:"searchForm.subjectId"}},t._l(t.subjectList,(function(t,e){return r("el-option",{key:e,attrs:{value:t.id,label:t.name}})})),1)],1),t._v(" "),r("el-form-item",{attrs:{prop:"dates","label-width":t.formLabelWidth}},[r("el-date-picker",{staticStyle:{width:"405px"},attrs:{type:"daterange","range-separator":"至","start-placeholder":"操作开始日期","end-placeholder":"操作结束日期"},model:{value:t.searchForm.dates,callback:function(e){t.$set(t.searchForm,"dates",e)},expression:"searchForm.dates"}})],1),t._v(" "),r("el-form-item",{attrs:{prop:"hrbp"}},[r("el-select",{attrs:{clearable:"",filterable:"",placeholder:"请选择HRBP"},model:{value:t.searchForm.hrbp,callback:function(e){t.$set(t.searchForm,"hrbp","string"===typeof e?e.trim():e)},expression:"searchForm.hrbp"}},t._l(t.roleList,(function(t,e){return r("el-option",{key:e,attrs:{value:t.userId,label:t.userName}})})),1)],1),t._v(" "),r("el-form-item",{attrs:{prop:"intentionCity"}},[r("el-input",{attrs:{placeholder:"意向城市",clearable:""},model:{value:t.searchForm.intentionCity,callback:function(e){t.$set(t.searchForm,"intentionCity","string"===typeof e?e.trim():e)},expression:"searchForm.intentionCity"}})],1),t._v(" "),r("el-form-item",[r("el-button",{attrs:{type:"danger"},on:{click:t.search}},[t._v("搜索")]),t._v(" "),r("el-button",{attrs:{type:"primary"},on:{click:t.onReSet}},[t._v("重置")]),t._v(" "),t.$helpers.permission("export/employeeInfo")?r("el-button",{attrs:{type:"primary"},on:{click:t.employeeExport}},[t._v("导出")]):t._e()],1)],1),t._v(" "),r("div",{staticClass:"tableWrap"},[r("el-table",{attrs:{data:t.tableList,"header-cell-style":{background:"#EDEEF0",color:"#444"}}},[r("el-table-column",{attrs:{width:"120px",align:"center",prop:"id",label:"编号"}}),t._v(" "),r("el-table-column",{attrs:{align:"center",prop:"realName",label:"姓名"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:e.row.realName,placement:"top"}},[r("copy-text",[t._v(t._s(e.row.realName))])],1)]}}])}),t._v(" "),r("el-table-column",{attrs:{align:"center",prop:"mobileNo",label:"手机号"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("div",[r("copy-text",[t._v(t._s(e.row.mobileNo))])],1)]}}])}),t._v(" "),r("el-table-column",{attrs:{align:"center",prop:"wechatNo",label:"微信"}}),t._v(" "),r("el-table-column",{attrs:{align:"center",label:"学历信息"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("el-button",{attrs:{type:"text"},on:{click:function(r){return t.openEducation(e.row)}}},[t._v("查看学历")])]}}])}),t._v(" "),r("el-table-column",{attrs:{align:"center",prop:"subjectName",label:"声部",width:"200px"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:e.row.subjectName,placement:"top"}},[r("span",[t._v(t._s(e.row.subjectName))])])]}}])}),t._v(" "),r("el-table-column",{attrs:{align:"center",prop:"liveCity",label:"所在城市"}}),t._v(" "),r("el-table-column",{attrs:{align:"center",prop:"intentionCity",label:"意向城市",width:"100px"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:e.row.intentionCity,placement:"top"}},[r("span",[t._v(t._s(e.row.intentionCity))])])]}}])}),t._v(" "),r("el-table-column",{attrs:{align:"center",prop:"sourceFrom",label:"信息来源"}}),t._v(" "),r("el-table-column",{attrs:{align:"center",prop:"nextVisitDate",label:"下次沟通时间",width:"150px"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(t._f("dayjsFormat")(e.row.nextVisitDate))+"\n ")]}}])}),t._v(" "),r("el-table-column",{attrs:{align:"center",prop:"entryDate",label:"入职时间",width:"150px"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(t._f("dayjsFormat")(e.row.entryDate))+"\n ")]}}])}),t._v(" "),r("el-table-column",{attrs:{align:"center",prop:"position",label:"职位"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(t._f("jobType")(e.row.position))+"\n ")]}}])}),t._v(" "),r("el-table-column",{attrs:{align:"center",prop:"organName",label:"分部"}}),t._v(" "),r("el-table-column",{attrs:{align:"center",prop:"status",label:"人员状态"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(t._f("hrStatus")(e.row.status))+"\n ")]}}])}),t._v(" "),r("el-table-column",{attrs:{align:"center",prop:"idCard",label:"证件号码",width:"200px"}}),t._v(" "),r("el-table-column",{attrs:{align:"center",prop:"age",label:"年龄"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.age>0?e.row.age:"")+"\n ")]}}])}),t._v(" "),r("el-table-column",{attrs:{align:"center",prop:"gender",label:"性别"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s("boolean"===typeof e.row.gender?e.row.gender?"男":"女":"")+"\n ")]}}])}),t._v(" "),r("el-table-column",{attrs:{align:"center",prop:"bankCardNo",label:"银行卡号",width:"200px"}}),t._v(" "),r("el-table-column",{attrs:{align:"center",prop:"bankAddress",label:"开户行",width:"200px"}}),t._v(" "),r("el-table-column",{attrs:{align:"center",prop:"emergencyContactName",label:"紧急联系人"}}),t._v(" "),r("el-table-column",{attrs:{align:"center",prop:"emergencyContactRelation",label:"紧急联系人关系"}}),t._v(" "),r("el-table-column",{attrs:{align:"center",prop:"emergencyContactPhone",label:"紧急联系人电话"}}),t._v(" "),r("el-table-column",{attrs:{align:"center",prop:"updateTime",label:"最后一次操作时间时间",width:"160px"}}),t._v(" "),r("el-table-column",{attrs:{align:"center",label:"HRBP"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("div",[r("copy-text",[t._v(t._s(t.roleFormat(e.row.hrbp)))])],1)]}}])}),t._v(" "),r("el-table-column",{attrs:{align:"center",prop:"resignationDate",label:"离职时间",width:"150px"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(t._f("dayjsFormat")(e.row.resignationDate))+"\n ")]}}])}),t._v(" "),r("el-table-column",{attrs:{align:"center",label:"操作",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){return[r("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"employeeInfo/update",expression:"'employeeInfo/update'"}],attrs:{type:"text"},on:{click:function(r){return t.openTypes("update",e.row)}}},[t._v("修改")])]}}])})],1),t._v(" "),r("pagination",{attrs:{total:t.pageInfo.total,page:t.pageInfo.page,limit:t.pageInfo.limit,"page-sizes":t.pageInfo.page_size,sync:""},on:{"update:total":function(e){return t.$set(t.pageInfo,"total",e)},"update:page":function(e){return t.$set(t.pageInfo,"page",e)},"update:limit":function(e){return t.$set(t.pageInfo,"limit",e)},pagination:t.getList}})],1)],1),t._v(" "),r("el-dialog",{attrs:{title:t.formTitle[t.formActionTitle],visible:t.typeStatus,"destroy-on-close":"","close-on-click-modal":!1,width:"1150px"},on:{"update:visible":function(e){t.typeStatus=e},close:function(e){return t.onFormClose("ruleForm")}}},[t.typeStatus?r("hrform",{attrs:{detail:t.rowDetail,organList:t.organList,subjectList:t.subjectList,roleList:t.roleList,close:t.onFormClose,formActionTitle:t.formActionTitle,getList:t.getList},on:{"update:detail":function(e){t.rowDetail=e}}}):t._e()],1),t._v(" "),r("el-dialog",{attrs:{title:"查看学历信息",visible:t.educationVisible,"destroy-on-close":"","close-on-click-modal":!1,width:"600px"},on:{"update:visible":function(e){t.educationVisible=e},close:function(e){t.educationVisible=!1}}},[r("el-table",{attrs:{data:t.educationList,"header-cell-style":{background:"#EDEEF0",color:"#444"}}},[r("el-table-column",{attrs:{align:"center",prop:"level",label:"学历"}}),t._v(" "),r("el-table-column",{attrs:{align:"center",prop:"school",label:"毕业学校"}}),t._v(" "),r("el-table-column",{attrs:{align:"center",prop:"year",label:"毕业时间"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(t._f("dayjsFormat")(e.row.year))+"\n ")]}}])})],1)],1)],1)},i=[function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("h2",[r("div",{staticClass:"squrt"}),t._v("\n 人力资源表\n ")])}],o=(r("ac6a"),r("15fd")),s=(r("7f7f"),r("96cf"),r("1da1")),l=r("5530"),c=r("ade3"),u=r("333d"),d=r("adb2"),p=r("5a0c"),m=r.n(p),f=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"form"},[t._m(0),t._v(" "),r("el-form",{ref:"ruleForm",attrs:{model:t.form,rules:t.rules,"label-width":"0px"}},[r("div",{staticClass:"description-view"},[r("table",{staticClass:"description-table"},[r("tbody",[r("tr",{staticClass:"description-tr"},[r("th",{staticClass:"description-label"},[r("i",{staticClass:"requiredStar"},[t._v("*")]),t._v("姓名")]),t._v(" "),r("td",{staticClass:"description-content"},[r("el-form-item",{attrs:{prop:"realName",rules:[{required:!0,message:"请输入姓名",trigger:"blur"}]}},[r("el-input",{attrs:{size:"mini",placeholder:"请输入姓名"},model:{value:t.form.realName,callback:function(e){t.$set(t.form,"realName",e)},expression:"form.realName"}})],1)],1),t._v(" "),r("th",{staticClass:"description-label"},[r("i",{staticClass:"requiredStar"},[t._v("*")]),t._v("年龄")]),t._v(" "),r("td",{staticClass:"description-content"},[r("el-form-item",{attrs:{prop:"age",rules:[{required:!0,message:"请输入年龄",trigger:"blur"}]}},[r("el-input",{attrs:{size:"mini",type:"number",min:"1",step:"1",placeholder:"请输入年龄"},model:{value:t.form.age,callback:function(e){t.$set(t.form,"age",e)},expression:"form.age"}})],1)],1),t._v(" "),r("th",{staticClass:"description-label"},[r("i",{staticClass:"requiredStar"},[t._v("*")]),t._v("性别")]),t._v(" "),r("td",{staticClass:"description-content"},[r("el-form-item",{attrs:{prop:"gender",rules:{required:!0,message:"请选择性别",trigger:"change"}}},[r("el-select",{attrs:{size:"mini",clearable:"",filterable:"",placeholder:"请选择性别"},model:{value:t.form.gender,callback:function(e){t.$set(t.form,"gender","string"===typeof e?e.trim():e)},expression:"form.gender"}},[r("el-option",{attrs:{label:"男",value:!0}}),t._v(" "),r("el-option",{attrs:{label:"女",value:!1}})],1)],1)],1)]),t._v(" "),r("tr",{staticClass:"description-tr"},[r("th",{staticClass:"description-label"},[r("i",{staticClass:"requiredStar"},[t._v("*")]),t._v("手机号")]),t._v(" "),r("td",{staticClass:"description-content"},[r("el-form-item",{attrs:{prop:"mobileNo",rules:[{required:!t.form.wechatNo,message:"请输入手机号",trigger:"blur"},{min:11,max:11,message:"请输入正确的手机号码",trigger:"blur"}]}},[r("el-input",{attrs:{size:"mini",minlength:"11",maxlength:"11",placeholder:"请输入手机号"},on:{blur:t.mobileOrWechatValidate},model:{value:t.form.mobileNo,callback:function(e){t.$set(t.form,"mobileNo",e)},expression:"form.mobileNo"}})],1)],1),t._v(" "),r("th",{staticClass:"description-label"},[t._v("微信号")]),t._v(" "),r("td",{staticClass:"description-content"},[r("el-form-item",{attrs:{prop:"wechatNo"}},[r("el-input",{attrs:{size:"mini",placeholder:"请输入微信号"},model:{value:t.form.wechatNo,callback:function(e){t.$set(t.form,"wechatNo",e)},expression:"form.wechatNo"}})],1)],1),t._v(" "),r("th",{staticClass:"description-label"},[t._v("身份证号")]),t._v(" "),r("td",{staticClass:"description-content"},[r("el-form-item",{attrs:{prop:"idCard"}},[r("el-input",{attrs:{size:"mini",placeholder:"请输入身份证号"},model:{value:t.form.idCard,callback:function(e){t.$set(t.form,"idCard",e)},expression:"form.idCard"}})],1)],1)])])])]),t._v(" "),r("div",{staticClass:"description-title",staticStyle:{"margin-top":"20px"}},[r("span",[t._v("教育信息")])]),t._v(" "),r("div",{staticClass:"description-view"},[r("table",{staticClass:"description-table"},[r("tbody",t._l(t.form.educations,(function(e,a){return r("tr",{key:a,staticClass:"description-tr"},[r("th",{staticClass:"description-label desc-item"},[r("span",{staticClass:"close"},[r("i",0===a?{staticClass:"el-icon-circle-plus-outline",on:{click:t.addEducation}}:{staticClass:"el-icon-remove-outline",on:{click:function(e){return t.removeEducation(a)}}})]),r("i",{staticClass:"requiredStar"},[t._v("*")]),t._v("学历")]),t._v(" "),r("td",{staticClass:"description-content"},[r("el-form-item",{attrs:{prop:"educations."+a+".level",rules:{required:!0,message:"请输入学历",trigger:"blur"}}},[r("el-input",{attrs:{size:"mini",placeholder:"请输入学历"},model:{value:t.form.educations[a].level,callback:function(e){t.$set(t.form.educations[a],"level",e)},expression:"form.educations[index].level"}})],1)],1),t._v(" "),r("th",{staticClass:"description-label"},[r("i",{staticClass:"requiredStar"},[t._v("*")]),t._v("学校")]),t._v(" "),r("td",{staticClass:"description-content"},[r("el-form-item",{attrs:{prop:"educations."+a+".school",rules:{required:!0,message:"请输入学校",trigger:"blur"}}},[r("el-input",{attrs:{size:"mini",placeholder:"请输入学校"},model:{value:t.form.educations[a].school,callback:function(e){t.$set(t.form.educations[a],"school",e)},expression:"form.educations[index].school"}})],1)],1),t._v(" "),r("th",{staticClass:"description-label"},[r("i",{staticClass:"requiredStar"},[t._v("*")]),t._v("专业")]),t._v(" "),r("td",{staticClass:"description-content"},[r("el-form-item",{attrs:{prop:"educations."+a+".subject",rules:{required:!0,message:"请输入专业",trigger:"blur"}}},[r("el-input",{attrs:{size:"mini",placeholder:"请输入专业"},model:{value:t.form.educations[a].subject,callback:function(e){t.$set(t.form.educations[a],"subject",e)},expression:"form.educations[index].subject"}})],1)],1),t._v(" "),r("th",{staticClass:"description-label"},[r("i",{staticClass:"requiredStar"},[t._v("*")]),t._v("毕业时间")]),t._v(" "),r("td",{staticClass:"description-content"},[r("el-form-item",{attrs:{prop:"educations."+a+".year",rules:{required:!0,message:"请选择毕业时间",trigger:"blur"}}},[r("el-date-picker",{attrs:{type:"month",placeholder:"请选择毕业时间",size:"mini"},model:{value:t.form.educations[a].year,callback:function(e){t.$set(t.form.educations[a],"year",e)},expression:"form.educations[index].year"}})],1)],1)])})),0)])]),t._v(" "),r("div",{staticClass:"description-title",staticStyle:{"margin-top":"20px"}},[r("span",[t._v("招聘信息")])]),t._v(" "),r("div",{staticClass:"description-view"},[r("table",{staticClass:"description-table"},[r("tbody",[r("tr",{staticClass:"description-tr"},[r("th",{staticClass:"description-label"},[r("i",{staticClass:"requiredStar"},[t._v("*")]),t._v("所在城市")]),t._v(" "),r("td",{staticClass:"description-content"},[r("el-form-item",{attrs:{prop:"liveCity",rules:[{required:!0,message:"请输入所在城市",trigger:"blur"}]}},[r("el-input",{attrs:{size:"mini",placeholder:"请输入所在城市"},model:{value:t.form.liveCity,callback:function(e){t.$set(t.form,"liveCity","string"===typeof e?e.trim():e)},expression:"form.liveCity"}})],1)],1),t._v(" "),r("th",{staticClass:"description-label"},[r("i",{staticClass:"requiredStar"},[t._v("*")]),t._v("意向城市")]),t._v(" "),r("td",{staticClass:"description-content",attrs:{rules:[{required:!0,message:"请输入意向城市",trigger:"blur"}]}},[r("el-form-item",{attrs:{prop:"intentionCity"}},[r("el-input",{attrs:{size:"mini",placeholder:"请输入意向城市"},model:{value:t.form.intentionCity,callback:function(e){t.$set(t.form,"intentionCity","string"===typeof e?e.trim():e)},expression:"form.intentionCity"}})],1)],1),t._v(" "),r("th",{staticClass:"description-label"},[r("i",{staticClass:"requiredStar"},[t._v("*")]),t._v("意向合作模式")]),t._v(" "),r("td",{staticClass:"description-content"},[r("el-form-item",{attrs:{prop:"jobNature",rules:[{required:!0,message:"请选择意向合作模式",trigger:"blur"}]}},[r("el-select",{attrs:{size:"mini",clearable:"",filterable:"",placeholder:"请选择意向合作模式"},model:{value:t.form.jobNature,callback:function(e){t.$set(t.form,"jobNature","string"===typeof e?e.trim():e)},expression:"form.jobNature"}},[r("el-option",{attrs:{label:"兼职",value:"PART_TIME"}}),t._v(" "),r("el-option",{attrs:{label:"全职",value:"FULL_TIME"}})],1)],1)],1)]),t._v(" "),r("tr",{staticClass:"description-tr"},[r("th",{staticClass:"description-label"},[r("i",{staticClass:"requiredStar"},[t._v("*")]),t._v("岗位类别")]),t._v(" "),r("td",{staticClass:"description-content"},[r("el-form-item",{attrs:{prop:"jobType",rules:[{required:!0,message:"请选择岗位类别",trigger:"blur"}]}},[r("el-select",{attrs:{size:"mini",clearable:"",filterable:"",placeholder:"请选择岗位类别"},model:{value:t.form.jobType,callback:function(e){t.$set(t.form,"jobType","string"===typeof e?e.trim():e)},expression:"form.jobType"}},[r("el-option",{attrs:{label:"指导老师",value:"ADVISER"}}),t._v(" "),r("el-option",{attrs:{label:"乐团主管",value:"ACADEMIC"}}),t._v(" "),r("el-option",{attrs:{label:"乐队指导",value:"TEACHING"}})],1)],1)],1),t._v(" "),r("th",{staticClass:"description-label"},["ADVISER"==t.form.jobType?r("i",{staticClass:"requiredStar"},[t._v("*")]):t._e(),t._v("声部")]),t._v(" "),r("td",{staticClass:"description-content",attrs:{colspan:"3"}},[r("el-form-item",{attrs:{prop:"subjectIdList",rules:[{required:"ADVISER"==t.form.jobType,message:"请选择声部",trigger:"blur"}]}},[r("el-select",{attrs:{size:"mini",clearable:"",filterable:"",multiple:"","collapse-tags":"",placeholder:"请选择声部"},model:{value:t.form.subjectIdList,callback:function(e){t.$set(t.form,"subjectIdList","string"===typeof e?e.trim():e)},expression:"form.subjectIdList"}},t._l(t.subjectList,(function(t,e){return r("el-option",{key:e,attrs:{value:String(t.id),label:t.name}})})),1)],1)],1)]),t._v(" "),r("tr",{staticClass:"description-tr"},[r("th",{staticClass:"description-label"},[r("i",{staticClass:"requiredStar"},[t._v("*")]),t._v("信息来源")]),t._v(" "),r("td",{staticClass:"description-content"},[r("el-form-item",{attrs:{prop:"sourceFrom",rules:[{required:!0,message:"请选择信息来源",trigger:"blur"}]}},[r("el-select",{attrs:{clearable:"",filterable:"",size:"mini",placeholder:"请选择信息来源"},model:{value:t.form.sourceFrom,callback:function(e){t.$set(t.form,"sourceFrom","string"===typeof e?e.trim():e)},expression:"form.sourceFrom"}},[r("el-option",{attrs:{label:"BOSS",value:"BOSS"}}),t._v(" "),r("el-option",{attrs:{label:"转介绍",value:"转介绍"}}),t._v(" "),r("el-option",{attrs:{label:"其它",value:"其它"}})],1)],1)],1),t._v(" "),r("th",{staticClass:"description-label"},[r("i",{staticClass:"requiredStar"},[t._v("*")]),t._v("人员状态")]),t._v(" "),r("td",{staticClass:"description-content"},[r("el-form-item",{attrs:{prop:"status",rules:[{required:!0,message:"请选择人员状态",trigger:"blur"}]}},[r("el-select",{attrs:{size:"mini",clearable:"",filterable:"",placeholder:"请选择人员状态"},model:{value:t.form.status,callback:function(e){t.$set(t.form,"status","string"===typeof e?e.trim():e)},expression:"form.status"}},[r("el-option",{attrs:{label:"未录用",value:"NOT_EMPLOYED"}}),t._v(" "),r("el-option",{attrs:{label:"面试中",value:"INTERVIEWING"}}),t._v(" "),r("el-option",{attrs:{label:"储备",value:"RESERVE"}}),t._v(" "),r("el-option",{attrs:{label:"兼职",value:"PART_TIME"}}),t._v(" "),r("el-option",{attrs:{label:"全职",value:"FULL_TIME"}}),t._v(" "),r("el-option",{attrs:{label:"离职",value:"DIMISSION"}}),t._v(" "),r("el-option",{attrs:{label:"黑名单",value:"BLACK_LIST"}})],1)],1)],1),t._v(" "),r("th",{staticClass:"description-label"},[r("i",{staticClass:"requiredStar"},[t._v("*")]),t._v("HRBP")]),t._v(" "),r("td",{staticClass:"description-content"},[r("el-form-item",{attrs:{prop:"hrbp",rules:[{required:!0,message:"请选择HRBP",trigger:"blur"}]}},[r("el-select",{attrs:{size:"mini",clearable:"",filterable:"",placeholder:"请选择HRBP"},model:{value:t.form.hrbp,callback:function(e){t.$set(t.form,"hrbp","string"===typeof e?e.trim():e)},expression:"form.hrbp"}},t._l(t.roleList,(function(t,e){return r("el-option",{key:e,attrs:{value:String(t.userId),label:t.userName}})})),1)],1)],1)])])])]),t._v(" "),r("div",{staticClass:"description-title",staticStyle:{"margin-top":"20px"}},[r("span",[t._v("在职信息")])]),t._v(" "),r("div",{staticClass:"description-view"},[r("table",{staticClass:"description-table"},[r("tbody",[r("tr",{staticClass:"description-tr"},[r("th",{staticClass:"description-label"},[t.propRequred?r("i",{staticClass:"requiredStar"},[t._v("*")]):t._e(),t._v("入职日期")]),t._v(" "),r("td",{staticClass:"description-content"},[r("el-form-item",{attrs:{prop:"entryDate",rules:{required:t.propRequred,message:"请选择入职日期",trigger:"change"}}},[r("el-date-picker",{attrs:{type:"date",placeholder:"选择入职日期",size:"mini"},model:{value:t.form.entryDate,callback:function(e){t.$set(t.form,"entryDate",e)},expression:"form.entryDate"}})],1)],1),t._v(" "),r("th",{staticClass:"description-label"},["DIMISSION"===t.form.status?r("i",{staticClass:"requiredStar"},[t._v("*")]):t._e(),t._v("离职日期")]),t._v(" "),r("td",{staticClass:"description-content"},[r("el-form-item",{attrs:{prop:"resignationDate",rules:[{required:"DIMISSION"===t.form.status,message:"请选择离职日期",trigger:"change"}]}},[r("el-date-picker",{attrs:{type:"date",placeholder:"选择离职日期",size:"mini"},model:{value:t.form.resignationDate,callback:function(e){t.$set(t.form,"resignationDate",e)},expression:"form.resignationDate"}})],1)],1),t._v(" "),r("th",{staticClass:"description-label"},[t.form.resignationDate?r("i",{staticClass:"requiredStar"},[t._v("*")]):t._e(),t._v("离职原因")]),t._v(" "),r("td",{staticClass:"description-content"},[r("el-form-item",{attrs:{prop:"resignationReason",rules:[{required:!!t.form.resignationDate,message:"请输入离职原因",trigger:"blur"}]}},[r("el-input",{attrs:{size:"mini",placeholder:"请输入离职原因"},model:{value:t.form.resignationReason,callback:function(e){t.$set(t.form,"resignationReason","string"===typeof e?e.trim():e)},expression:"form.resignationReason"}})],1)],1)]),t._v(" "),r("tr",{staticClass:"description-tr"},[r("th",{staticClass:"description-label"},[t.propRequred?r("i",{staticClass:"requiredStar"},[t._v("*")]):t._e(),t._v("分部")]),t._v(" "),r("td",{staticClass:"description-content"},[r("el-form-item",{attrs:{prop:"organId",rules:[{required:t.propRequred,message:"请选择分部",trigger:"change"}]}},[r("el-select",{attrs:{placeholder:"请选择分部",clearable:"",filterable:"",size:"mini"},model:{value:t.form.organId,callback:function(e){t.$set(t.form,"organId","string"===typeof e?e.trim():e)},expression:"form.organId"}},t._l(t.organList,(function(t,e){return r("el-option",{key:e,attrs:{value:t.id,label:t.name}})})),1)],1)],1),t._v(" "),r("th",{staticClass:"description-label"},[t.propRequred?r("i",{staticClass:"requiredStar"},[t._v("*")]):t._e(),t._v("职位")]),t._v(" "),r("td",{staticClass:"description-content"},[r("el-form-item",{attrs:{prop:"position",rules:[{required:t.propRequred,message:"请输入职位",trigger:"change"}]}},[r("el-select",{attrs:{clearable:"",filterable:"",size:"mini",placeholder:"请选择职位"},model:{value:t.form.position,callback:function(e){t.$set(t.form,"position","string"===typeof e?e.trim():e)},expression:"form.position"}},[r("el-option",{attrs:{label:"指导老师",value:"ADVISER"}}),t._v(" "),r("el-option",{attrs:{label:"乐团主管",value:"ACADEMIC"}}),t._v(" "),r("el-option",{attrs:{label:"乐队指导",value:"TEACHING"}})],1)],1)],1),t._v(" "),r("th",{staticClass:"description-label"},["ADVISER"==t.form.position?r("i",{staticClass:"requiredStar"},[t._v("*")]):t._e(),t._v("声部")]),t._v(" "),r("td",{staticClass:"description-content"},[r("el-form-item",{attrs:{prop:"jobSubjectIdList",rules:[{required:"ADVISER"==t.form.position,message:"请选择声部",trigger:"change"}]}},[r("el-select",{attrs:{size:"mini",clearable:"",filterable:"",multiple:"","collapse-tags":"",placeholder:"请选择声部"},model:{value:t.form.jobSubjectIdList,callback:function(e){t.$set(t.form,"jobSubjectIdList","string"===typeof e?e.trim():e)},expression:"form.jobSubjectIdList"}},t._l(t.subjectList,(function(t,e){return r("el-option",{key:e,attrs:{value:String(t.id),label:t.name}})})),1)],1)],1)]),t._v(" "),r("tr",{staticClass:"description-tr"},[r("th",{staticClass:"description-label"},[t.propRequred?r("i",{staticClass:"requiredStar"},[t._v("*")]):t._e(),t._v("紧急联系人姓名")]),t._v(" "),r("td",{staticClass:"description-content"},[r("el-form-item",{attrs:{prop:"emergencyContactName",rules:{required:t.propRequred,message:"请输入紧急联系人姓名",trigger:"blur"}}},[r("el-input",{attrs:{size:"mini",placeholder:"请输入紧急联系人姓名"},model:{value:t.form.emergencyContactName,callback:function(e){t.$set(t.form,"emergencyContactName","string"===typeof e?e.trim():e)},expression:"form.emergencyContactName"}})],1)],1),t._v(" "),r("th",{staticClass:"description-label"},[t.propRequred?r("i",{staticClass:"requiredStar"},[t._v("*")]):t._e(),t._v("紧急联系人关系")]),t._v(" "),r("td",{staticClass:"description-content"},[r("el-form-item",{attrs:{prop:"emergencyContactRelation",rules:{required:t.propRequred,message:"请输入紧急联系人关系",trigger:"blur"}}},[r("el-input",{attrs:{size:"mini",placeholder:"请输入紧急联系人关系"},model:{value:t.form.emergencyContactRelation,callback:function(e){t.$set(t.form,"emergencyContactRelation","string"===typeof e?e.trim():e)},expression:"form.emergencyContactRelation"}})],1)],1),t._v(" "),r("th",{staticClass:"description-label"},[t.propRequred?r("i",{staticClass:"requiredStar"},[t._v("*")]):t._e(),t._v("紧急联系人电话")]),t._v(" "),r("td",{staticClass:"description-content"},[r("el-form-item",{attrs:{prop:"emergencyContactPhone",rules:[{required:t.propRequred,message:"请输入紧急联系人电话",trigger:"blur"},{min:11,max:11,message:"请输入正确的手机号码",trigger:"blur"}]}},[r("el-input",{attrs:{size:"mini",minlength:"11",maxlength:"11",placeholder:"请输入紧急联系人电话"},model:{value:t.form.emergencyContactPhone,callback:function(e){t.$set(t.form,"emergencyContactPhone","string"===typeof e?e.trim():e)},expression:"form.emergencyContactPhone"}})],1)],1)]),t._v(" "),r("tr",{staticClass:"description-tr"},[r("th",{staticClass:"description-label"},[t._v("开户行")]),t._v(" "),r("td",{staticClass:"description-content"},[r("el-form-item",{attrs:{prop:"bankAddress"}},[r("el-input",{attrs:{size:"mini",placeholder:"请输入开户行"},model:{value:t.form.bankAddress,callback:function(e){t.$set(t.form,"bankAddress",e)},expression:"form.bankAddress"}})],1)],1),t._v(" "),r("th",{staticClass:"description-label"},[t._v("银行卡号")]),t._v(" "),r("td",{staticClass:"description-content",attrs:{colspan:"3"}},[r("el-form-item",{attrs:{prop:"bankCardNo"}},[r("el-input",{attrs:{size:"mini",placeholder:"请输入银行卡号"},model:{value:t.form.bankCardNo,callback:function(e){t.$set(t.form,"bankCardNo",e)},expression:"form.bankCardNo"}})],1)],1)])])])])]),t._v(" "),"update"==t.formActionTitle?r("div",{staticClass:"tableWrap",staticStyle:{"margin-top":"20px"}},[r("div",{staticClass:"description-title head_title"},[r("span",[t._v("在职信息")]),t._v(" "),t.$helpers.permission("employeeInfo/insertVisit")?r("span",{staticClass:"createRecord",on:{click:t.onCreateRecord}},[t._v("新增沟通记录 >>")]):t._e()]),t._v(" "),r("el-table",{staticStyle:{width:"100% !important"},attrs:{data:t.tableList,"header-cell-style":{background:"#fafafa",color:"#444",borderTop:"1px solid #ebeef5"}}},[r("el-table-column",{attrs:{align:"center",prop:"createTime",label:"沟通时间"}}),t._v(" "),r("el-table-column",{attrs:{align:"center",prop:"operatorName",label:"沟通人"}}),t._v(" "),r("el-table-column",{attrs:{align:"center",prop:"content",label:"沟通结论","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.content)+"\n ")]}}],null,!1,2844672564)}),t._v(" "),r("el-table-column",{attrs:{align:"center",prop:"nextVisitDate",label:"下次沟通时间"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(t._f("dayjsFormat")(e.row.nextVisitDate))+"\n ")]}}],null,!1,1215114432)})],1)],1):t._e(),t._v(" "),r("span",{staticClass:"dialog-footer"},[r("el-button",{on:{click:function(e){return t.close("ruleForm")}}},[t._v("取 消")]),t._v(" "),r("el-button",{staticClass:"main-button",attrs:{type:"primary"},on:{click:function(e){return t.onTypeSubmit("ruleForm")}}},[t._v("确 定")])],1),t._v(" "),r("el-dialog",{attrs:{title:"新增沟通记录",visible:t.recordStatus,"destroy-on-close":"","close-on-click-modal":!1,width:"500px","append-to-body":""},on:{"update:visible":function(e){t.recordStatus=e}}},[t.recordStatus?r("create-record",{attrs:{employeeInfoId:t.detail.id},on:{close:function(e){t.recordStatus=!1},getList:t.getRecordList}}):t._e()],1)],1)},b=[function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"description-title"},[r("span",[t._v("基本信息")])])}],g=r("2909"),h=(r("28a5"),r("3607")),v=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",[r("el-form",{ref:"ruleForm",attrs:{model:t.form,rules:t.rules}},[r("el-form-item",{attrs:{label:"沟通结论","label-width":"120PX",prop:"content"}},[r("el-input",{attrs:{type:"textarea",rows:3,autocomplete:"off",maxlength:"255","show-word-limit":"",placeholder:"请输入沟通结论"},model:{value:t.form.content,callback:function(e){t.$set(t.form,"content","string"===typeof e?e.trim():e)},expression:"form.content"}})],1),t._v(" "),r("el-form-item",{attrs:{label:"下次沟通日期","label-width":"120PX",prop:"nextVisitDate"}},[r("el-date-picker",{staticStyle:{width:"100% !important"},attrs:{type:"date",placeholder:"请选择下次沟通日期"},model:{value:t.form.nextVisitDate,callback:function(e){t.$set(t.form,"nextVisitDate",e)},expression:"form.nextVisitDate"}})],1)],1),t._v(" "),r("div",{staticClass:"dialog-footer"},[r("el-button",{on:{click:function(e){return t.onClose("ruleForm")}}},[t._v("取 消")]),t._v(" "),r("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.onSubmit("ruleForm")}}},[t._v("确 定")])],1)],1)},_=[],y=r("a5b0"),C={components:{Tooltip:y["a"]},props:["close","employeeInfoId"],data:function(){return{form:{nextVisitDate:null,content:null},rules:{content:[{required:!0,message:"请输入沟通结论",trigger:"blur"}],nextVisitDate:[{required:!0,message:"请选择下次沟通日期",trigger:"change"}]}}},mounted:function(){console.log(this.employeeInfoId)},methods:{onSubmit:function(t){var e=this;this.$refs[t].validate((function(t){if(t){var r=Object.assign({},e.form),a=Object(l["a"])(Object(l["a"])({},r),{},{employeeInfoId:e.employeeInfoId});Object(h["o"])(a).then((function(t){200===t.code?(e.$message.success("创建成功"),e.onClose("ruleForm"),e.$listeners.getList()):e.$message.error(t.msg)}))}}))},onClose:function(t){this.$refs[t].resetFields(),this.$listeners.close()}}},j=C,I=(r("f23e"),r("2877")),O=Object(I["a"])(j,v,_,!1,null,"437c0474",null),S=O.exports,k={name:"hrform",props:["detail","subjectList","organList","close","getList","formActionTitle","roleList"],components:{CreateRecord:S},data:function(){return{recordStatus:!1,realName:"",form:{age:"",bankAddress:"",bankCardNo:"",birthdate:"",educationalBackground:"",emergencyContactName:"",emergencyContactPhone:"",emergencyContactRelation:"",entryDate:"",gender:"",idCard:"",intentionCity:"",assessmentResult:"",status:"",isProbationPeriod:"",liveCity:"",mobileNo:"",otherComment:"",position:"",realName:"",resignationDate:"",subjectIdList:[],jobSubjectIdList:[],wechatNo:"",organId:"",sourceFrom:"",educations:[{level:"",school:"",year:""}]},rules:{birthdate:[{required:!0,message:"请输入生日",trigger:"blur"}],sourceFrom:[{required:!0,message:"请选择信息来源",trigger:"change"}],intentionCity:[{required:!0,message:"请输入工作意向",trigger:"blur"}],status:[{required:!0,message:"请选择员工状态",trigger:"change"}],liveCity:[{required:!0,message:"请输入所在城市",trigger:"blur"}],otherComment:[{required:!0,message:"请输入其他综合情况",trigger:"blur"}],position:[{required:!0,message:"请输入职位",trigger:"blur"}],realName:[{required:!0,message:"请输入姓名",trigger:"blur"}],subjectIdList:[{required:!0,message:"请选择声部",trigger:"change"}]},tableList:[]}},watch:{detail:function(){this.updateData()}},mounted:function(){var t=Object(s["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:this.updateData(),"update"==this.formActionTitle&&this.getRecordList();case 2:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),computed:{propRequred:function(){return"PART_TIME"===this.form.status||"FULL_TIME"===this.form.status||"DIMISSION"===this.form.status}},methods:{updateData:function(){if(this.detail){try{this.detail.subjectIdList=this.detail.subjectIdList?this.detail.subjectIdList.split(","):[],this.detail.jobSubjectIdList=this.detail.jobSubjectIdList?this.detail.jobSubjectIdList.split(","):[]}catch(t){}0===this.detail.organId&&(this.detail.organId=""),0===this.detail.age&&(this.detail.age=""),this.form=Object.assign({educations:[{level:"",school:"",year:"",subject:""}]},this.detail);try{this.form.educations=JSON.parse(this.detail.educationalBackground),this.form.educations.length<1&&(this.form.educations=[{level:"",school:"",year:"",subject:""}]),this.form=Object(l["a"])({},this.form)}catch(t){}console.log(this.form)}else this.form.educations=[{level:"",school:"",year:"",subject:""}],this.form=Object(l["a"])({},this.form);this.$refs["ruleForm"].resetFields()},addEducation:function(){this.form.educations=[].concat(Object(g["a"])(this.form.educations),[{level:"",school:"",year:"",subject:""}]),this.form=Object(l["a"])({},this.form)},removeEducation:function(t){this.form.educations[t]=null,this.form.educations=this.form.educations.filter((function(t){return!!t})),this.form=Object(l["a"])({},this.form)},onTypeSubmit:function(){var t=this;this.$refs["ruleForm"].validate((function(e){if(e){var r=t.$message;t.form.educationalBackground=JSON.stringify(t.form.educations);var a=t.form,n=(a.educations,a.subjectIdList),i=a.jobSubjectIdList,s=Object(o["a"])(a,["educations","subjectIdList","jobSubjectIdList"]);t.detail&&t.detail.id?Object(h["d"])(Object.assign({id:t.detail.id,subjectIdList:(n||[]).join(","),jobSubjectIdList:(i||[]).join(",")},s)).then((function(e){200===e.code&&(r.success("修改成功"),t.close("ruleForm"))})):Object(h["a"])(Object(l["a"])({subjectIdList:(n||[]).join(",")},s)).then((function(e){200===e.code&&(r.success("创建成功"),t.close("ruleForm"))}))}}))},mobileOrWechatValidate:function(){this.$refs["ruleForm"].validateField("mobileNo")},onCreateRecord:function(){this.recordStatus=!0},getRecordList:function(){var t=this;Object(h["c"])({id:this.detail.id}).then((function(e){var r=e.data.employeeVisitList||[];t.tableList=r}))}}},w=k,x=(r("6577"),Object(I["a"])(w,f,b,!1,null,"50f8f14c",null)),L=x.exports,q=r("adb21"),T=r("e3eb"),F=r.n(T),N=r("1cc7"),D=(r("d349"),function(t){var e,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t&&t.length?(e={},Object(c["a"])(e,r[0]||"start",m()(t[0]).format("YYYY-MM-DD")),Object(c["a"])(e,r[1]||"start",m()(t[1]).format("YYYY-MM-DD")),e):{}}),$={organId:"",jobNature:"",position:"",subjectId:"",userNameOrIdOrMobile:"",operator:"",dates:[],intentionCity:"",hrbp:""},E=(a={components:{pagination:u["a"],hrform:L,saveform:d["a"]},name:"helpCategory",data:function(){return{searchForm:Object(l["a"])({},$),educationVisible:!1,treeList:[],tableList:[],educationList:[],formActionTitle:"create",formTitle:{create:"添加人员",update:"修改人员"},typeStatus:!1,formLabelWidth:"100px",form:{title:null,content:null,catalogId:null},rules:{title:[{required:!0,message:"请输入标题",trigger:"blur"}],content:[{required:!0,message:"请输入内容",trigger:"blur"}],catalogId:[{required:!0,message:"请输入选择分类",trigger:"blur"}]},pageInfo:{limit:10,page:1,total:0,page_size:[10,20,40,50]},rowDetail:null,tempTreeList:[],organList:[],subjectList:[],roleList:[]}},activated:function(){this.getList(),this.getSubjectList()},mounted:function(){var t=Object(s["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:this.getList(),this.getSubjectList(),this.getTreeList();case 3:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),computed:{subjectListObj:function(){for(var t={},e=0;e<this.subjectList.length;e++){var r=this.subjectList[e];t[r.id]=r.name}return t},organListObj:function(){for(var t={},e=0;e<this.organList.length;e++){var r=this.organList[e];t[r.id]=r.name}return t}}},Object(c["a"])(a,"mounted",function(){var t=Object(s["a"])(regeneratorRuntime.mark((function t(){var e,r=this;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Object(h["p"])({roleId:40});case 2:e=t.sent,this.roleList=e.data||[],this.getList(),Object(N["gb"])().then((function(t){200==t.code&&(r.organList=t.data)})),this.getSubjectList();case 7:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()),Object(c["a"])(a,"methods",{employeeExport:function(){var t=this.searchForm,e=t.dates,r=Object(o["a"])(t,["dates"]),a=Object(l["a"])(Object(l["a"])({},r),D(e,["startDate","endDate"]));Object(q["a"])(this,{url:"/api-web/export/employeeInfo",fileName:"人力资源导出.xls",params:F()(Object(l["a"])({},a))},"是否确认导出人力资源?")},getSubjectList:function(){var t=this;Object(N["Hb"])({delFlag:0,tenantId:1}).then((function(e){var r=e.data;200==e.code&&(t.subjectList=r)}))},openEducation:function(t){try{this.educationList=t.educationalBackground?JSON.parse(t.educationalBackground):[],this.educationVisible=!0}catch(e){this.$message.error("数据解析失败")}},onTypeDelOpeation:function(t){var e=this;this.$confirm("您是否删除该内容?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){Object(h["l"])({id:t.id}).then((function(t){e.messageTips("删除",t)}))})).catch((function(){}))},search:function(){var t=this;this.$refs.searchForm.validate((function(e){t.pageInfo=Object(l["a"])(Object(l["a"])({},t.pageInfo),{},{page:1}),t.getList()}))},onReSet:function(){this.pageInfo=Object(l["a"])(Object(l["a"])({},this.pageInfo),{},{page:1}),this.$refs.searchForm.resetFields(),this.getList()},onTypeSubmit:function(t){var e=this;this.$refs[t].validate((function(t){if(!t)return!1;if("create"==e.formActionTitle){var r={title:e.form.title,content:e.form.content,catalogId:e.form.catalogId[e.form.catalogId.length-1]};Object(h["n"])(r).then((function(t){e.messageTips("添加",t)}))}else if("update"==e.formActionTitle){var a={id:e.form.id,title:e.form.title,content:e.form.content,catalogId:e.form.catalogId[e.form.catalogId.length-1]};Object(h["n"])(a).then((function(t){e.messageTips("修改",t)}))}}))},messageTips:function(t,e){200==e.code?(this.$message.success(t+"成功"),this.typeStatus=!1,this.getList()):this.$message.error(e.msg)},getList:function(){var t=this,e=this.searchForm,r=e.dates,a=Object(o["a"])(e,["dates"]);console.log(r);var n=Object(l["a"])(Object(l["a"])(Object(l["a"])({},a),D(r,["startDate","endDate"])),{},{page:this.pageInfo.page,rows:this.pageInfo.limit});Object(h["b"])(n).then((function(e){var r=e.data;200==e.code&&(t.tableList=r.rows,t.pageInfo.total=r.total)}))},getTreeList:function(){var t=this;Object(h["j"])({parentId:0}).then((function(e){var r=e.data;200==e.code&&(t.treeList=t.setTableData(r))}))},setTableData:function(t){var e=this,r=[];return r=t.map((function(t){var r={};return r={value:t.id,label:t.text,parentId:t.parentId},t.children&&t.children.length>0&&(r.children=e.setTableData(t.children)),r})),r},openTypes:function(t,e){this.rowDetail=Object(l["a"])({},e),this.typeStatus=!0,this.formActionTitle=t,"update"==t&&(this.form={id:e.id,title:e.title,content:e.content,catalogId:this.getAllIds(e)})},onToUrl:function(){this.$router.push("/helpCategory")},getAllIds:function(t){var e=[];this.getIdAndParent(this.treeList,e);var r=[];return this.getId(t.catalogId,r,e),r.reverse()},getIdAndParent:function(t,e){var r=this;t.forEach((function(t){var a={id:t.value,parentId:t.parentId};e.push(a),t.children&&r.getIdAndParent(t.children,e)}))},getId:function(t,e,r){var a=this;r.forEach((function(n){n.id==t&&(e.push(t),-1!=n.parentId&&a.getId(n.parentId,e,r))}))},onFormClose:function(t){this.rowDetail=null,this.typeStatus=!1,this.form={title:null,content:null,catalogId:[]},this.getList()},roleFormat:function(t){var e=this.roleList,r=null;return e.forEach((function(e){e.userId==t&&(r=e.userName)})),r}}),a),R=E;r("3d7c");r.d(e,"getTimes",(function(){return D}));var z=Object(I["a"])(R,n,i,!1,null,"98ed15e6",null);e["default"]=z.exports},d349:function(t,e,r){"use strict";r.d(e,"e",(function(){return c})),r.d(e,"d",(function(){return u})),r.d(e,"f",(function(){return d})),r.d(e,"c",(function(){return p})),r.d(e,"s",(function(){return m})),r.d(e,"G",(function(){return f})),r.d(e,"H",(function(){return b})),r.d(e,"h",(function(){return g})),r.d(e,"l",(function(){return h})),r.d(e,"g",(function(){return v})),r.d(e,"m",(function(){return _})),r.d(e,"v",(function(){return y})),r.d(e,"t",(function(){return C})),r.d(e,"u",(function(){return j})),r.d(e,"i",(function(){return I})),r.d(e,"j",(function(){return O})),r.d(e,"p",(function(){return S})),r.d(e,"k",(function(){return k})),r.d(e,"w",(function(){return w})),r.d(e,"I",(function(){return x})),r.d(e,"n",(function(){return L})),r.d(e,"x",(function(){return q})),r.d(e,"A",(function(){return T})),r.d(e,"y",(function(){return F})),r.d(e,"z",(function(){return N})),r.d(e,"r",(function(){return D})),r.d(e,"b",(function(){return $})),r.d(e,"F",(function(){return E})),r.d(e,"q",(function(){return R})),r.d(e,"E",(function(){return z})),r.d(e,"a",(function(){return A})),r.d(e,"o",(function(){return P})),r.d(e,"C",(function(){return M})),r.d(e,"B",(function(){return V})),r.d(e,"D",(function(){return B}));var a=r("15fd"),n=r("b775"),i=r("829b"),o=r("4328"),s=r.n(o),l="/api-web";function c(t){return Object(n["a"])({url:l+"/organization/queryPage",method:"get",params:t})}function u(t){return Object(n["a"])({url:l+"/organization/add",method:"post",data:s.a.stringify(t)})}function d(t){return Object(n["a"])({url:l+"/organization/update",method:"post",data:s.a.stringify(t)})}function p(t){return Object(n["a"])({url:l+"/area/queryChild",method:"get",params:t})}function m(t){return Object(n["a"])({url:l+"/area/getParentArea/".concat(t.id),method:"get"})}function f(t){return Object(n["a"])({url:l+"/subject/queryPageTree",method:"get",params:t})}function b(t){return Object(n["a"])({url:l+"/subject/upset",method:"post",data:t})}function g(t){return Object(n["a"])({url:l+"/chargeType/queryPage",method:"get",params:t})}function h(t){return Object(n["a"])({url:l+"/chargeType/upSet",method:"post",data:t})}function v(t){return Object(n["a"])({url:l+"/chargeType/del/".concat(t),method:"post"})}function _(t){return Object(n["a"])({url:l+"/courseHomeworkTemplate/queryPage",method:"post",data:t})}function y(t){return Object(n["a"])({url:l+"/courseHomeworkTemplate/update",method:"post",data:s.a.stringify(t)})}function C(t){return Object(n["a"])({url:l+"/courseHomeworkTemplate/add",method:"post",data:s.a.stringify(t)})}function j(t){return Object(n["a"])({url:l+"/courseHomeworkTemplate/del/".concat(t),method:"post"})}function I(t){return Object(n["a"])({url:l+"/chargeTypeOrganizationFee/add",method:"post",data:s.a.stringify(t)})}function O(t){return Object(n["a"])({url:l+"/chargeTypeOrganizationFee/update",method:"post",data:s.a.stringify(t)})}function S(t){return Object(n["a"])({url:l+"/employee/findEducationTeacher",method:"get",params:t})}function k(t){return Object(i["a"])({url:l+"/chargeTypeSubjectMapper/queryPage",method:"get",data:{},params:t,requestType:"form"})}function w(t){return Object(i["a"])({url:l+"/chargeTypeSubjectMapper/insert",method:"post",data:t})}function x(t){return Object(i["a"])({url:l+"/chargeTypeSubjectMapper/update",method:"post",data:t})}function L(t){var e=t.id,r=Object(a["a"])(t,["id"]);return Object(i["a"])({url:l+"/chargeTypeSubjectMapper/del/"+e,method:"post",params:r})}function q(t){return Object(i["a"])({url:l+"/musicGroupOrganizationCourseSettings/add",method:"post",data:t})}function T(t){return Object(i["a"])({url:l+"/musicGroupOrganizationCourseSettings/update",method:"post",data:t})}function F(t){return Object(i["a"])({url:l+"/musicGroupOrganizationCourseSettings/delSetting",method:"post",data:{},params:t,requestType:"form"})}function N(t){return Object(i["a"])({url:l+"/musicGroupOrganizationCourseSettings/queryPage",method:"get",data:{},params:t,requestType:"form"})}function D(t){return Object(i["a"])({url:l+"/organizationCourseUnitPriceSettings/queryPage",method:"get",params:t,data:{},requestType:"form"})}function $(t){return Object(i["a"])({url:l+"/organizationCourseUnitPriceSettings/insert",method:"post",data:t})}function E(t){return Object(i["a"])({url:l+"/organizationCourseUnitPriceSettings/update",method:"post",data:t})}function R(t){return Object(i["a"])({url:l+"/organizationCourseDurationSettings/queryPage",method:"get",data:{},params:t})}function z(t){return Object(i["a"])({url:l+"/organizationCourseDurationSettings/update",method:"post",params:t})}function A(t){return Object(i["a"])({url:l+"/organizationCourseDurationSettings/insert",method:"post",params:t})}function P(t){return Object(i["a"])({url:l+"/organizationCourseDurationSettings/del",method:"post",data:t})}function M(t){return Object(i["a"])({url:l+"/organizationCloudTeacherFee/queryPage",method:"get",params:t})}function V(t){return Object(i["a"])({url:l+"/organizationCloudTeacherFee/add",method:"post",requestType:"form",data:t})}function B(t){return Object(i["a"])({url:l+"/organizationCloudTeacherFee/update",method:"post",requestType:"form",data:t})}},e8ab:function(t,e,r){},f204:function(t,e,r){},f23e:function(t,e,r){"use strict";r("3a03")}}]);