1 line
17 KiB
JavaScript
1 line
17 KiB
JavaScript
webpackJsonp([69],{"/cmu":function(module,__webpack_exports__,__webpack_require__){"use strict";var __WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_object_assign__=__webpack_require__("woOf"),__WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_object_assign___default=__webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_object_assign__),__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_extends__=__webpack_require__("Dd8w"),__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_extends___default=__webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_extends__),__WEBPACK_IMPORTED_MODULE_2_vuex__=__webpack_require__("NYxO"),__WEBPACK_IMPORTED_MODULE_3__components_System_upload__=__webpack_require__("veZ4"),__WEBPACK_IMPORTED_MODULE_4__dialogChooseAdvertiseInfo__=__webpack_require__("x6I4"),__WEBPACK_IMPORTED_MODULE_5__utils_config_js__=__webpack_require__("bzuE"),__WEBPACK_IMPORTED_MODULE_6__components_btnInput_vue__=__webpack_require__("ysqt");__webpack_exports__.a={components:{dialogChooseAdvertiseInfo:__WEBPACK_IMPORTED_MODULE_4__dialogChooseAdvertiseInfo__.a,btnInput:__WEBPACK_IMPORTED_MODULE_6__components_btnInput_vue__.a,upload:__WEBPACK_IMPORTED_MODULE_3__components_System_upload__.a},data:function(){return{formData:{id:"",advertiseCode:"",advertiseId:"",deptName:"",deptId:"",matchPositionName:"",matchPosition:""},businessTypeList:[{value:1,label:"男"},{value:0,label:"女"}],selectDeptId:"",depOptions:[],educationOptions:[],contractCategoryTypeList:[],contentAssocList:[],config:__WEBPACK_IMPORTED_MODULE_5__utils_config_js__.a,itemIds:[],typeList:[],from:"",chooseId:"",isDisabled:!1,btnDelDisabled:!1,chooseUserAdvertiseInfo:!1,advanceQueryDialogVisible:!0,loading:!1,salesBillId:"",uploadAttachment:[],ruleForm:{advertiseCode:[{required:!0,message:"请选择招聘需求单",trigger:"change"}],deptName:[{required:!0,message:"请选择应聘部门",trigger:"change"}],matchPositionName:[{required:!0,message:"请选择应聘岗位",trigger:"change"}],candidateName:[{required:!0,message:"请填写姓名",trigger:"change"}],gender:[{required:!0,message:"请填写性别",trigger:"change"}],mobilePhone:[{required:!0,message:"请填写手机号",trigger:"change"},{validator:function(e,t,a,i,s){var r=[];/^1\d{10}$/.test(t)||r.push("手机号码格式错误"),a(r)}}],email:[{required:!0,message:"请填写邮箱",trigger:"change"}],highestEducation:[{required:!0,message:"请选择最高学历",trigger:"change"}],graduateSchool:[{required:!0,message:"请填写毕业学校",trigger:"change"}],major:[{required:!0,message:"请填写所学专业",trigger:"change"}],age:[{required:!0,message:"请填写年龄",trigger:"change"}]}}},mounted:function(){this.initData(),this.$route.query.id&&(this.formData.id=this.$route.query.id,this.chooseId=this.$route.query.id,this.from=this.$route.query.from?this.$route.query.from:"",this.getDetail())},watch:{},methods:__WEBPACK_IMPORTED_MODULE_1_babel_runtime_helpers_extends___default()({},Object(__WEBPACK_IMPORTED_MODULE_2_vuex__.d)({removeTagNav:"tagNav/removeTagNav"}),{initData:function(){var e=this;this.$api.dictAPI.getDictsByType("education_background").then(function(t){e.educationOptions=t.datas})},getAdvertiseInfo:function(e){e&&(console.log(e),this.formData.advertiseCode=e.advertiseCode,this.formData.advertiseId=e.id,this.formData.deptName=e.deptName,this.formData.deptId=e.deptId,this.formData.matchPositionName=e.advertisePositionName,this.formData.matchPosition=e.advertisePosition)},clear:function(){var e=this;this.advanceQueryDialogVisible=!1,this.$nextTick(function(){e.formData={},e.uploadAttachment=[],e.contentAssocList=[],e.selectDeptId="",e.$refs.form.resetFields(),e.advanceQueryDialogVisible=!0;new Date;e.formData.contractType=0})},getDetail:function(){var e=this;this.loading=!0,this.formData={},this.$api.candidateInfoAPI.detail(this.chooseId).then(function(t){e.loading=!1,t.data?(console.log(t),e.formData=__WEBPACK_IMPORTED_MODULE_0_babel_runtime_core_js_object_assign___default()({},e.formData,t.data),e.uploadAttachment=t.data.resumeFile):e.$alert("获取简历失败","提示",{type:"warning"})}).catch(function(e){console.log(e)})},back:function(){"hireList"==this.from?this.$router.push({path:"/hireList/hireList_index",query:{t:Date.now()}}):"resume"==this.from?this.$router.push({path:"/resume/resume_index",query:{t:Date.now()}}):this.$router.push({path:"/advertiseManagement/candidateInfo",query:{t:Date.now()}})},goManagement:function(){this.$router.push({path:"/staffContract/laborContract_laborManagement",query:{t:Date.now()}})},save:function(e){var t=this;this.$refs[e].validate(function(e){if(e){if(null!=t.uploadAttachment&&t.uploadAttachment.length>0){var a=[];t.uploadAttachment.forEach(function(e){var t={fileName:e.fileName,filePath:e.filePath};a.push(t)}),t.contentAssocList=a,console.log(t.contentAssocList)}if(t.formData.contentAssocList=t.contentAssocList,t.isDisabled)return;t.isDisabled=!0,t.$api.candidateInfoAPI.save(t.formData).then(function(e){t.isDisabled=!1,0===e.code?(t.$message({message:e.msg,type:"success"}),window.location.href=t.changeURLArg("id",e.id)):t.$message({message:e.msg,type:"error"})})}})},changeURLArg:function changeURLArg(arg,arg_val){var url=window.location.href;console.log(arg),console.log(arg_val),console.log(url);var pattern=arg+"=([^&]*)",replaceText=arg+"="+arg_val;if(url.match(pattern)){var tmp="/("+arg+"=)([^&]*)/gi";return tmp=url.replace(eval(tmp),replaceText),tmp}return url.match("[?]")?url+"&"+replaceText:url+"?"+replaceText}})}},YXMc:function(e,t){},danx:function(e,t){},sk95:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=a("/cmu"),s={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"sys-box plan-box"},[a("div",{staticClass:"sys-operate"},[a("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.back()}}},[e._v(e._s(e.config.cancelText))]),e._v(" "),a("el-button",{attrs:{type:"primary",disabled:e.isDisabled},on:{click:function(t){return e.save("form")}}},[e._v("保存")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.clear("form")}}},[e._v("新增")])],1),e._v(" "),a("div",{staticClass:"sys-form"},[a("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"form",attrs:{"label-width":"120px","inline-message":!0,model:e.formData,rules:e.ruleForm}},[a("div",{staticClass:"flex"},[a("el-form-item",{staticClass:"form-inline",attrs:{label:"招聘需求单",prop:"advertiseCode"}},[a("btn-input",{attrs:{valueText:e.formData.advertiseCode,valueId:e.formData.advertiseId,chooseVisible:e.chooseUserAdvertiseInfo},on:{"update:valueText":function(t){return e.$set(e.formData,"advertiseCode",t)},"update:value-text":function(t){return e.$set(e.formData,"advertiseCode",t)},"update:valueId":function(t){return e.$set(e.formData,"advertiseId",t)},"update:value-id":function(t){return e.$set(e.formData,"advertiseId",t)},"update:chooseVisible":function(t){e.chooseUserAdvertiseInfo=t},"update:choose-visible":function(t){e.chooseUserAdvertiseInfo=t}}})],1),e._v(" "),a("el-form-item",{staticClass:"form-inline",attrs:{label:"应聘部门",prop:"deptName"}},[a("el-input",{attrs:{readonly:""},model:{value:e.formData.deptName,callback:function(t){e.$set(e.formData,"deptName",t)},expression:"formData.deptName"}})],1),e._v(" "),a("el-form-item",{staticClass:"form-inline",attrs:{label:"应聘岗位",prop:"matchPositionName"}},[a("el-input",{attrs:{readonly:""},model:{value:e.formData.matchPositionName,callback:function(t){e.$set(e.formData,"matchPositionName",t)},expression:"formData.matchPositionName"}})],1)],1),e._v(" "),a("div",{staticClass:"flex"},[a("el-form-item",{staticClass:"form-inline",attrs:{label:"姓名",prop:"candidateName"}},[a("el-input",{model:{value:e.formData.candidateName,callback:function(t){e.$set(e.formData,"candidateName",t)},expression:"formData.candidateName"}})],1),e._v(" "),a("el-form-item",{staticClass:"form-inline",attrs:{label:"性别",prop:"gender"}},[a("el-select",{attrs:{placeholder:"请选择",clearable:""},model:{value:e.formData.gender,callback:function(t){e.$set(e.formData,"gender",t)},expression:"formData.gender"}},e._l(e.businessTypeList,function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}),1)],1),e._v(" "),a("el-form-item",{staticClass:"form-inline",attrs:{label:"年龄",prop:"age "}},[a("el-input-number",{staticStyle:{width:"100%"},attrs:{label:"描述文字",size:"small",min:0},model:{value:e.formData.age,callback:function(t){e.$set(e.formData,"age",t)},expression:"formData.age"}})],1)],1),e._v(" "),a("div",{staticClass:"flex"},[a("el-form-item",{staticClass:"form-inline",attrs:{label:"身份证号"}},[a("el-input",{model:{value:e.formData.idNumber,callback:function(t){e.$set(e.formData,"idNumber",t)},expression:"formData.idNumber"}})],1),e._v(" "),a("el-form-item",{staticClass:"form-inline",attrs:{label:"手机号",prop:"mobilePhone"}},[a("el-input",{attrs:{clearable:""},model:{value:e.formData.mobilePhone,callback:function(t){e.$set(e.formData,"mobilePhone",t)},expression:"formData.mobilePhone"}})],1),e._v(" "),a("el-form-item",{staticClass:"form-inline",attrs:{label:"邮箱",prop:"email"}},[a("el-input",{model:{value:e.formData.email,callback:function(t){e.$set(e.formData,"email",t)},expression:"formData.email"}})],1)],1),e._v(" "),a("div",{staticClass:"flex"},[a("el-form-item",{staticClass:"form-inline",attrs:{label:"最高学历",prop:"highestEducation"}},[a("el-select",{attrs:{placeholder:"请选择",clearable:"",size:"small"},model:{value:e.formData.highestEducation,callback:function(t){e.$set(e.formData,"highestEducation",t)},expression:"formData.highestEducation"}},e._l(e.educationOptions,function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})}),1)],1),e._v(" "),a("el-form-item",{staticClass:"form-inline",attrs:{label:"所学专业",prop:"major"}},[a("el-input",{attrs:{clearable:""},model:{value:e.formData.major,callback:function(t){e.$set(e.formData,"major",t)},expression:"formData.major"}})],1)],1),e._v(" "),a("el-form-item",{attrs:{label:"毕业学校",prop:"graduateSchool"}},[a("el-input",{attrs:{clearable:""},model:{value:e.formData.graduateSchool,callback:function(t){e.$set(e.formData,"graduateSchool",t)},expression:"formData.graduateSchool"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"家庭住址"}},[a("el-input",{attrs:{clearable:""},model:{value:e.formData.address,callback:function(t){e.$set(e.formData,"address",t)},expression:"formData.address"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"备注信息"}},[a("el-input",{staticStyle:{width:"100%"},attrs:{type:"textarea",autosize:{minRows:4},clearable:""},model:{value:e.formData.remarks,callback:function(t){e.$set(e.formData,"remarks",t)},expression:"formData.remarks"}})],1),e._v(" "),a("el-form-item",{staticClass:"dialog-form-inline",attrs:{label:"上传简历"}},[e.advanceQueryDialogVisible?a("upload",{attrs:{title:"",limitNum:1,label_width:"0",isMakeDdf:!0,uploadTip:'请上传一份简历,支持格式:".pdf,.docx,.doc"',accept:".pdf,.docx,.doc,",attachment:e.uploadAttachment},on:{"update:attachment":function(t){e.uploadAttachment=t}}}):e._e()],1)],1)],1),e._v(" "),a("dialogChooseAdvertiseInfo",{attrs:{visible:e.chooseUserAdvertiseInfo},on:{"update:visible":function(t){e.chooseUserAdvertiseInfo=t},change:e.getAdvertiseInfo}})],1)},staticRenderFns:[]};var r=function(e){a("danx"),a("YXMc")},o=a("VU/8")(i.a,s,!1,r,"data-v-29e89804",null);t.default=o.exports},x6I4:function(e,t,a){"use strict";var i=a("BO1k"),s=a.n(i),r=a("mvHQ"),o=a.n(r),n={props:{id:{type:String,default:""},visible:{type:Boolean,default:!1}},watch:{visible:function(e,t){e!==t&&(e&&this.initData(),this.innerVisible=e)},innerVisible:function(e,t){e!==t&&this.$emit("update:visible",e)}},data:function(){return{subsetList:[],subsetAll:[],subsetTotal:0,searchData_Subset:{pageno:1,pagesize:5,status:64,bookmark:"all"},selectDeptId:"",depOptions:[],callBackData:[],innerVisible:this.visible,loading:!1,dialogLoading:!1,useStatus:[{name:"禁用",id:0},{name:"启用",id:1}],deviceDept:[],addVisible:!1}},computed:{},mounted:function(){this.initData()},methods:{clickRow:function(e){this.$refs.tb.toggleRowSelection(e)},initData:function(){var e=this;this.$api.commonAPI.getDeptsTree().then(function(t){0===t.code&&(e.depOptions=t.data.children,e.setDefaultDept(),e.setDeptList(e.depOptions))}),this.searchSubset()},searchSubset:function(e){var t=this;e&&(this.searchData_Subset.pageno=1),this.dialogLoading=!0,this.$api.advertiseInfoAPI.selectApprovedList(this.searchData_Subset).then(function(e){t.dialogLoading=!1,0===e.code&&(t.subsetList=e.data?e.data.records:[],t.subsetTotal=e.data?e.data.total:0)})},subsetSizeChange:function(e){this.searchData_Subset.pagesize=e,this.searchSubset()},subsetCurrentChange:function(e){this.searchData_Subset.pageno=e,this.searchSubset()},submit:function(e){this.$emit("change",e),this.innerVisible=!1},resetFields:function(){this.$refs.form&&this.$refs.form.resetFields()},handleChange:function(e){this.searchData_Subset.deptId=e.length>=1?Number(e[e.length-1]):"",this.searchData_Subset.deptName=this.$refs.cascaderAddr.getCheckedNodes()[0].label,this.selectDeptId=e},setDefaultDept:function(){if(this.depOptions.length>0&&this.searchData_Subset.deptId){var e=o()(this.searchData_Subset.deptId),t=this.treeFindPath(this.depOptions,function(t){return t.id===e});this.selectDeptId=JSON.parse(o()(t))}},treeFindPath:function(e,t){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(!e)return[];var i=!0,r=!1,o=void 0;try{for(var n,l=s()(e);!(i=(n=l.next()).done);i=!0){var c=n.value;if(a.push(c.id),t(c))return a;if(c.children){var u=this.treeFindPath(c.children,t,a);if(u.length)return u}a.pop()}}catch(e){r=!0,o=e}finally{try{!i&&l.return&&l.return()}finally{if(r)throw o}}return[]},setDeptList:function(e){var t=!0,a=!1,i=void 0;try{for(var r,o=s()(e);!(t=(r=o.next()).done);t=!0){var n=r.value;n.hasChildren?this.setDeptList(n.children):n.children=void 0}}catch(e){a=!0,i=e}finally{try{!t&&o.return&&o.return()}finally{if(a)throw i}}}}},l={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-dialog",{directives:[{name:"dialogDrag",rawName:"v-dialogDrag"}],attrs:{center:"",title:"选择招聘需求单",visible:e.innerVisible,width:"900px"},on:{"update:visible":function(t){e.innerVisible=t}}},[a("div",[a("el-form",{attrs:{inline:""}},[a("el-form-item",{attrs:{label:"部门"}},[a("el-cascader",{attrs:{clearable:"",options:e.depOptions,props:{expandTrigger:"hover",label:"text",value:"id",checkStrictly:!0}},on:{change:e.handleChange},model:{value:e.selectDeptId,callback:function(t){e.selectDeptId=t},expression:"selectDeptId"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"需求单号"}},[a("el-input",{attrs:{placeholder:"单号",clearable:""},model:{value:e.searchData_Subset.advertiseCode,callback:function(t){e.$set(e.searchData_Subset,"advertiseCode",t)},expression:"searchData_Subset.advertiseCode"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"招聘岗位"}},[a("el-input",{attrs:{placeholder:"模糊查询",clearable:""},model:{value:e.searchData_Subset.advertisePositionName,callback:function(t){e.$set(e.searchData_Subset,"advertisePositionName",t)},expression:"searchData_Subset.advertisePositionName"}})],1),e._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.searchSubset(1)}}},[e._v("查询")])],1)],1)],1),e._v(" "),a("div",{staticClass:"sys-table"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.dialogLoading,expression:"dialogLoading"}],ref:"tb",attrs:{data:e.subsetList,"header-cell-style":{fontWeight:"normal",textAlign:"center",backgroundColor:"#eceff4",color:"#222"}},on:{"row-click":e.clickRow}},[a("el-table-column",{attrs:{prop:"advertiseCode",label:"招聘需求单号",align:"center","show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{prop:"advertiseTypeName",label:"招聘类型",align:"center","show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{prop:"deptName",label:"招聘部门",align:"center","show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{prop:"advertisePositionName",label:"招聘岗位",align:"center","show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{prop:"advertiseCounts",label:"招聘人数",align:"center","show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{prop:"applicant",label:"申请人",align:"center","show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{prop:"submitTime",label:"申请日期",align:"center","show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{prop:"approveStateName",label:"审批状态",align:"center","show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{prop:"resumeCount",label:"简历份数",align:"center","show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{label:"操作",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.submit(t.row)}}},[e._v("选择")])]}}])})],1)],1),e._v(" "),a("div",{staticClass:"sys-pagination"},[a("el-pagination",{attrs:{"current-page":e.searchData_Subset.pageno,"page-sizes":[5,10,20],"page-size":e.searchData_Subset.pagesize,layout:"total, sizes, prev, pager, next, jumper",total:e.subsetTotal},on:{"update:currentPage":function(t){return e.$set(e.searchData_Subset,"pageno",t)},"update:current-page":function(t){return e.$set(e.searchData_Subset,"pageno",t)},"size-change":e.subsetSizeChange,"current-change":e.subsetCurrentChange}})],1)])},staticRenderFns:[]},c=a("VU/8")(n,l,!1,null,null,null);t.a=c.exports}}); |