1 line
20 KiB
JavaScript
1 line
20 KiB
JavaScript
webpackJsonp([159],{UQ66:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=a("BO1k"),i=a.n(s),r=a("d7EF"),n=a.n(r),o=a("//Fk"),l=a.n(o),d=(a("GKmE"),a("NYxO"),a("lbHh")),c=a.n(d),p={name:"schedule_leave",data:function(){return{activeName:"first",dialogVisible:!1,total:0,pageSizes:[10,20,50],search_data:{pageno:1,pagesize:10,advertisePositionName:"",type:0},time:"",tableData:[],firstLoading:!1,team_total:0,search_data_team:{pageno:1,pagesize:10,advertisePositionName:"",type:4},allTime:"",tableTeamData:[],secondLoading:!1,appro_total:0,search_data_appro:{pageno:1,pagesize:10,advertisePositionName:"",type:1},approTime:"",tableApproData:[],threeLoading:!1,btnDelDisabled:!0,btnOtherDisabled:!0,rowIds:[],typeList:[],totalManHour:0,totalManHour1:0,totalManHour2:0,needHandleCount:0,depOptionsAll:[],depOptions:[],selectDeptIdAll:[],selectDeptId:[],depOptionsMy:[],selectDeptIdMy:[],userInfo:""}},computed:{},mounted:function(){this.$route.query.active&&(this.activeName="second");var e=JSON.parse(c.a.get("userInfo"));this.userInfo=JSON.parse(c.a.get("userInfo")),this.search_data_appro.approveUserId=e.userId,this.initialize(),this.getList()},watch:{activeName:function(e){switch(e){case"first":this.getList();break;case"second":this.getApproList();break;case"three":this.getTeamList()}},time:function(e){e?(this.search_data.startTime=e[0],this.search_data.endTime=e[1]):(this.search_data.startTime="",this.search_data.endTime="")},approTime:function(e){e?(this.search_data_appro.startTime=e[0],this.search_data_appro.endTime=e[1]):(this.search_data_appro.startTime="",this.search_data_appro.endTime="")},allTime:function(e){e?(this.search_data_team.startTime=e[0],this.search_data_team.endTime=e[1]):(this.search_data_team.startTime="",this.search_data_team.endTime="")}},methods:{initialize:function(){var e=this;l.a.all([this.$api.commonAPI.getDeptsTree(),this.$api.advertiseInfoAPI.pageList(this.search_data_appro)]).then(function(t){var a=n()(t,2),s=a[0],i=a[1];0===s.code&&(e.depOptions=s.data.children,e.setDeptList(e.depOptions),e.depOptionsAll=s.data.children,e.setDeptList(e.depOptionsAll),e.setDeptListMy(s.data.children),e.setDeptList(e.depOptionsMy)),0===i.code&&(console.log(i.data.totalRows),e.needHandleCount=i.data.total)}).catch(function(e){console.log(e)})},setDeptList:function(e){var t=!0,a=!1,s=void 0;try{for(var r,n=i()(e);!(t=(r=n.next()).done);t=!0){var o=r.value;o.hasChildren?this.setDeptList(o.children):o.children=void 0}}catch(e){a=!0,s=e}finally{try{!t&&n.return&&n.return()}finally{if(a)throw s}}},setDeptListMy:function(e){var t=!0,a=!1,s=void 0;try{for(var r,n=i()(e);!(t=(r=n.next()).done);t=!0){var o=r.value;o.id==this.userInfo.deptId?this.depOptionsMy=[o]:o.hasChildren&&this.setDeptListMy(o.children)}}catch(e){a=!0,s=e}finally{try{!t&&n.return&&n.return()}finally{if(a)throw s}}},handleChangeAll:function(e){this.search_data_appro.deptId=e.length>=1?e[e.length-1]:"",this.selectDeptIdAll=e},handleChange:function(e){this.search_data.deptId=e.length>=1?e[e.length-1]:"",this.selectDeptId=e},handleChangeMy:function(e){this.search_data_team.deptId=e.length>=1?e[e.length-1]:"",this.selectDeptIdMy=e},getSummaries:function(e){e.columns,e.data;var t=[];return t[1]="总计",t[4]=""+this.totalManHour,t},getSummaries1:function(e){e.columns,e.data;var t=[];return t[0]="",t[1]="总计时长:"+this.totalManHour1,t},getSummaries2:function(e){e.columns,e.data;var t=[];return t[0]="总计",t[3]=""+this.totalManHour2,t},edit:function(){var e=this.rowIds[0].id;0==this.rowIds[0].approveState?this.$router.push({path:"/advertiseManagement/advertiseInfo_add",query:{id:e,type:1,approveState:this.rowIds[0].approveState,t:Date.now()}}):this.$message({message:"请选择一条暂存的数据进行编辑",type:"warning"})},getList:function(e){var t=this;e&&(this.search_data.pageno=1),this.firstLoading=!0,this.search_data.deptId=0==this.selectDeptId.length?"":this.search_data.deptId,this.$api.advertiseInfoAPI.pageList(this.search_data).then(function(e){t.firstLoading=!1,e.data?(t.total=e.data.total,t.tableData=e.data.records?e.data.records:[],t.tableData.forEach(function(e){e.approveTime=/\d{4}-\d{1,2}-\d{1,2}/g.exec(e.approveTime)})):(t.total=0,t.tableData=[])}).catch(function(e){console.log(e)})},getApproList:function(e){var t=this;e&&(this.search_data_appro.pageno=1),this.secondLoading=!0,this.search_data_appro.deptId=0==this.selectDeptIdAll.length?"":this.search_data_appro.deptId,this.$api.advertiseInfoAPI.pageList(this.search_data_appro).then(function(e){t.secondLoading=!1,e.data?(t.appro_total=e.data.total,t.tableApproData=e.data.records?e.data.records:[]):(t.appro_total=0,t.tableApproData=[])}).catch(function(e){console.log(e)})},getTeamList:function(e){var t=this;e&&(this.search_data_team.pageno=1),this.threeLoading=!0,this.search_data_team.deptId=0==this.selectDeptIdMy.length?"":this.search_data_team.deptId,this.$api.advertiseInfoAPI.pageList(this.search_data_team).then(function(e){t.threeLoading=!1,e.data?(t.team_total=e.data.total,t.tableTeamData=e.data.records?e.data.records:[]):(t.team_total=0,t.tableTeamData=[])}).catch(function(e){console.log(e)})},handleCurrentChange:function(e){this.search_data.pageno=e,this.getList()},handleSizeChange:function(e){this.search_data.pagesize=e,this.getList()},handleTeamCurrentChange:function(e){this.search_data_team.pageno=e,this.getTeamList()},handleTeamSizeChange:function(e){this.search_data_team.pagesize=e,this.getTeamList()},handleApproCurrentChange:function(e){this.search_data_appro.pageno=e,this.getApproList()},handleApproSizeChange:function(e){this.search_data_appro.pagesize=e,this.getApproList()},add:function(){this.$router.push({path:"/advertiseManagement/advertiseInfo_add",query:{t:Date.now()}})},goCandidateInfo:function(){this.$router.push({path:"/advertiseManagement/candidateInfo_add",query:{t:Date.now()}})},remove:function(){var e=this,t=[];this.rowIds.forEach(function(e){t.push(e.id)}),this.$confirm("确认删除选中的招聘需求吗?","提示",{type:"warning"}).then(function(){e.$api.advertiseInfoAPI.batchRemove({ids:t}).then(function(t){0===t.code?(e.$message({message:t.msg,type:"success"}),e.getList()):e.$message({message:t.msg?t.msg:"删除失败,请重试",type:"error"})}).catch(function(t){e.$message({message:"删除失败,请重试",type:"error"})})})},batchClose:function(){var e=this,t=[];this.rowIds.forEach(function(e){t.push(e.id)}),this.$confirm("确认关闭选中的招聘需求吗?","提示",{type:"warning"}).then(function(){e.$api.advertiseInfoAPI.batchClose(t).then(function(t){0===t.code?(e.$message({message:t.msg,type:"success"}),e.getList()):e.$message({message:t.msg?t.msg:"关闭失败,请重试",type:"error"})}).catch(function(t){e.$message({message:"关闭失败,请重试",type:"error"})})})},viewDetail:function(e,t){this.$router.push({path:"/advertiseManagement/advertiseInfo_add",query:{id:e.id,type:t,approveState:e.approveState,t:Date.now()}})},openDetails:function(e){this.$router.push({path:"/advertiseManagement/advertiseInfo_approve",query:{id:e.id}})},handleSelectionChange:function(e){this.rowIds=e;var t=!0,a=!0;e.length>0?(a=!1,1==e.length&&(t=!1)):(t=!0,a=!0),this.btnDelDisabled=a,this.btnOtherDisabled=t}}},h={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"sys-box approve-box"},[a("div",{staticClass:"sys-tabs"},[a("el-tabs",{model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[a("el-tab-pane",{attrs:{label:"",name:"first"}},[a("span",{attrs:{slot:"label"},slot:"label"},[a("el-badge",{staticClass:"item"},[e._v("我发起的")])],1),e._v(" "),a("div",{staticClass:"sys-operate"},[a("el-button",{directives:[{name:"has",rawName:"v-has",value:"advertiseManagement:advertiseInfo:add",expression:"'advertiseManagement:advertiseInfo:add'"}],attrs:{type:"primary"},on:{click:function(t){return e.add()}}},[e._v("新增")]),e._v(" "),a("el-button",{directives:[{name:"has",rawName:"v-has",value:"advertiseManagement:advertiseInfo:remove",expression:"'advertiseManagement:advertiseInfo:remove'"}],attrs:{type:"primary",disabled:e.btnDelDisabled},on:{click:function(t){return e.remove()}}},[e._v("删除")]),e._v(" "),a("el-button",{directives:[{name:"has",rawName:"v-has",value:"advertiseManagement:advertiseInfo:edit",expression:"'advertiseManagement:advertiseInfo:edit'"}],attrs:{type:"primary",disabled:e.btnOtherDisabled},on:{click:function(t){return e.edit()}}},[e._v("编辑")]),e._v(" "),a("el-button",{directives:[{name:"has",rawName:"v-has",value:"advertiseManagement:advertiseInfo:batchClose",expression:"'advertiseManagement:advertiseInfo:batchClose'"}],attrs:{type:"primary",disabled:e.btnDelDisabled},on:{click:function(t){return e.batchClose()}}},[e._v("关闭")])],1),e._v(" "),a("div",{staticClass:"sys-search"},[a("el-form",{staticClass:"form_item_search_out",attrs:{inline:""}},[a("div",{staticClass:"form_item_input_out"},[a("el-form-item",{staticClass:"form_item-inline",staticStyle:{width:"33%"},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",{staticClass:"form_item-inline",staticStyle:{width:"33%"},attrs:{label:"招聘岗位"}},[a("el-input",{attrs:{placeholder:"模糊查询",clearable:""},model:{value:e.search_data.advertisePositionName,callback:function(t){e.$set(e.search_data,"advertisePositionName",t)},expression:"search_data.advertisePositionName"}})],1),e._v(" "),a("el-form-item",{staticClass:"form_item-inline",staticStyle:{width:"33%"},attrs:{label:"申请日期"}},[a("el-date-picker",{attrs:{type:"daterange",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd HH:mm:ss","range-separator":"—","start-placeholder":"开始时间","end-placeholder":"结束时间"},model:{value:e.time,callback:function(t){e.time=t},expression:"time"}})],1)],1),e._v(" "),a("div",{staticClass:"form_item_btn_out"},[a("el-form-item",[a("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.getList(1)}}},[e._v("查询")])],1)],1)])],1),e._v(" "),a("div",{staticClass:"sys-table"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.firstLoading,expression:"firstLoading"}],attrs:{border:"",data:e.tableData,"header-cell-style":{fontWeight:"normal",textAlign:"center",backgroundColor:"#eceff4",color:"#222"}},on:{"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"55",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{prop:"advertiseCode",align:"center",label:"招聘需求单号"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-link",{attrs:{type:"primary"},on:{click:function(a){return e.viewDetail(t.row,1)}}},[e._v(e._s(t.row.advertiseCode))])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"advertiseTypeName","show-overflow-tooltip":"",align:"center",label:"招聘类型"}}),e._v(" "),a("el-table-column",{attrs:{prop:"deptName","show-overflow-tooltip":"",align:"center",label:"招聘部门"}}),e._v(" "),a("el-table-column",{attrs:{prop:"advertisePositionName","show-overflow-tooltip":"",align:"center",label:"招聘岗位"}}),e._v(" "),a("el-table-column",{attrs:{prop:"advertiseCounts","show-overflow-tooltip":"",align:"center",label:"招聘人数"}}),e._v(" "),a("el-table-column",{attrs:{prop:"applicant","show-overflow-tooltip":"",align:"center",label:"申请人"}}),e._v(" "),a("el-table-column",{attrs:{prop:"submitTime","show-overflow-tooltip":"",align:"center",label:"申请日期"}}),e._v(" "),a("el-table-column",{attrs:{prop:"approveStateName",align:"center",label:"状态",sortable:""}}),e._v(" "),a("el-table-column",{attrs:{prop:"resumeCount",align:"center",label:"简历份数"}})],1)],1),e._v(" "),a("div",{staticClass:"sys-pagination"},[a("el-pagination",{attrs:{"current-page":e.search_data.pageno,"page-sizes":e.pageSizes,"page-size":e.search_data.pagesize,layout:"total, sizes, prev, pager, next, jumper",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1)]),e._v(" "),a("el-tab-pane",{attrs:{label:"我审批的",name:"second"}},[a("span",{attrs:{slot:"label"},slot:"label"},[a("el-badge",{staticClass:"item",attrs:{value:e.needHandleCount}},[e._v("我审批的")])],1),e._v(" "),a("div",{staticClass:"sys-search"},[a("el-form",{staticClass:"form_item_search_out",attrs:{inline:""}},[a("div",{staticClass:"form_item_input_out"},[a("el-form-item",{staticClass:"form_item-inline",staticStyle:{width:"33%"},attrs:{label:"部门"}},[a("el-cascader",{attrs:{clearable:"",options:e.depOptionsAll,props:{expandTrigger:"hover",label:"text",value:"id",checkStrictly:!0}},on:{change:e.handleChangeAll},model:{value:e.selectDeptIdAll,callback:function(t){e.selectDeptIdAll=t},expression:"selectDeptIdAll"}})],1),e._v(" "),a("el-form-item",{staticClass:"form_item-inline",staticStyle:{width:"33%"},attrs:{label:"招聘岗位"}},[a("el-input",{attrs:{placeholder:"模糊查询",clearable:""},model:{value:e.search_data_appro.advertisePositionName,callback:function(t){e.$set(e.search_data_appro,"advertisePositionName",t)},expression:"search_data_appro.advertisePositionName"}})],1),e._v(" "),a("el-form-item",{staticClass:"form_item-inline",staticStyle:{width:"33%"},attrs:{label:"申请日期"}},[a("el-date-picker",{attrs:{type:"daterange",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd HH:mm:ss","range-separator":"—","start-placeholder":"开始时间","end-placeholder":"结束时间"},model:{value:e.approTime,callback:function(t){e.approTime=t},expression:"approTime"}})],1)],1),e._v(" "),a("div",{staticClass:"form_item_btn_out"},[a("el-form-item",[a("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.getApproList(1)}}},[e._v("查询")])],1)],1)])],1),e._v(" "),a("div",{staticClass:"sys-table"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.secondLoading,expression:"secondLoading"}],attrs:{border:"",data:e.tableApproData,"header-cell-style":{fontWeight:"normal",textAlign:"center",backgroundColor:"#eceff4",color:"#222"}}},[a("el-table-column",{attrs:{prop:"approvePersonName",label:"审批标题",width:"300"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"approve-user"},[e._v(e._s(t.row.applicant.substring(0,1)))]),e._v(" "),a("div",{staticClass:"approve-title"},[a("el-link",{attrs:{type:"primary"},on:{click:function(a){return e.viewDetail(t.row,2)}}},[e._v(e._s(t.row.applicant)+"的招聘需求")])],1)]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"typename,timearea,begintime,endtime",align:"center",label:"审批摘要",width:"250"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("div",{staticClass:"approve-details"},[a("p",[e._v("部门:"+e._s(t.row.deptName))]),e._v(" "),a("p",[e._v("招聘岗位:"+e._s(t.row.advertisePositionName))]),e._v(" "),a("p",[e._v("招聘人数:"+e._s(t.row.advertiseCounts))])])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"applicant",align:"center",label:"申请人"}}),e._v(" "),a("el-table-column",{attrs:{prop:"submitTime",align:"center",label:"申请时间"}}),e._v(" "),a("el-table-column",{attrs:{prop:"approveStateName",align:"center",label:"审批状态",sortable:""}})],1)],1),e._v(" "),a("div",{staticClass:"sys-pagination"},[a("el-pagination",{attrs:{"current-page":e.search_data_appro.pageno,"page-sizes":e.pageSizes,"page-size":e.search_data_appro.pagesize,layout:"total, sizes, prev, pager, next, jumper",total:e.appro_total},on:{"size-change":e.handleApproSizeChange,"current-change":e.handleApproCurrentChange}})],1)]),e._v(" "),a("el-tab-pane",{attrs:{label:"所有的",name:"three"}},[a("div",{staticClass:"sys-operate"},[a("el-button",{directives:[{name:"has",rawName:"v-has",value:"advertiseManagement:advertiseInfo:add",expression:"'advertiseManagement:advertiseInfo:add'"}],attrs:{type:"primary"},on:{click:function(t){return e.add()}}},[e._v("新增")]),e._v(" "),a("el-button",{directives:[{name:"has",rawName:"v-has",value:"advertiseManagement:advertiseInfo:remove",expression:"'advertiseManagement:advertiseInfo:remove'"}],attrs:{type:"primary",disabled:e.btnDelDisabled},on:{click:function(t){return e.remove()}}},[e._v("删除")]),e._v(" "),a("el-button",{directives:[{name:"has",rawName:"v-has",value:"advertiseManagement:advertiseInfo:edit",expression:"'advertiseManagement:advertiseInfo:edit'"}],attrs:{type:"primary",disabled:e.btnOtherDisabled},on:{click:function(t){return e.edit()}}},[e._v("编辑")]),e._v(" "),a("el-button",{directives:[{name:"has",rawName:"v-has",value:"advertiseManagement:advertiseInfo:goCandidateInfo",expression:"'advertiseManagement:advertiseInfo:goCandidateInfo'"}],attrs:{type:"primary"},on:{click:function(t){return e.goCandidateInfo()}}},[e._v("上传简历")])],1),e._v(" "),a("div",{staticClass:"sys-search"},[a("el-form",{staticClass:"form_item_search_out",attrs:{inline:""}},[a("div",{staticClass:"form_item_input_out"},[a("el-form-item",{staticClass:"form_item-inline",staticStyle:{width:"33%"},attrs:{label:"我的部门"}},[a("el-cascader",{attrs:{clearable:"",options:e.depOptionsMy,props:{expandTrigger:"hover",label:"text",value:"id",checkStrictly:!0}},on:{change:e.handleChangeMy},model:{value:e.selectDeptIdMy,callback:function(t){e.selectDeptIdMy=t},expression:"selectDeptIdMy"}})],1),e._v(" "),a("el-form-item",{staticClass:"form_item-inline",staticStyle:{width:"33%"},attrs:{label:"招聘岗位"}},[a("el-input",{attrs:{placeholder:"模糊查询",clearable:""},model:{value:e.search_data_team.advertisePositionName,callback:function(t){e.$set(e.search_data_team,"advertisePositionName",t)},expression:"search_data_team.advertisePositionName"}})],1),e._v(" "),a("el-form-item",{staticClass:"form_item-inline",staticStyle:{width:"33%"},attrs:{label:"申请日期"}},[a("el-date-picker",{attrs:{type:"daterange",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd HH:mm:ss","range-separator":"—","start-placeholder":"开始时间","end-placeholder":"结束时间"},model:{value:e.allTime,callback:function(t){e.allTime=t},expression:"allTime"}})],1)],1),e._v(" "),a("div",{staticClass:"form_item_btn_out"},[a("el-form-item",[a("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.getTeamList(1)}}},[e._v("查询")])],1)],1)])],1),e._v(" "),a("div",{staticClass:"sys-table"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.threeLoading,expression:"threeLoading"}],attrs:{border:"",data:e.tableTeamData,"header-cell-style":{fontWeight:"normal",textAlign:"center",backgroundColor:"#eceff4",color:"#222"}},on:{"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"55",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{prop:"advertiseCode",align:"center",label:"招聘需求单号"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-link",{attrs:{type:"primary"},on:{click:function(a){return e.viewDetail(t.row,3)}}},[e._v(e._s(t.row.advertiseCode))])]}}])}),e._v(" "),a("el-table-column",{attrs:{prop:"advertiseTypeName","show-overflow-tooltip":"",align:"center",label:"招聘类型"}}),e._v(" "),a("el-table-column",{attrs:{prop:"deptName","show-overflow-tooltip":"",align:"center",label:"招聘部门"}}),e._v(" "),a("el-table-column",{attrs:{prop:"advertisePositionName","show-overflow-tooltip":"",align:"center",label:"招聘岗位"}}),e._v(" "),a("el-table-column",{attrs:{prop:"advertiseCounts","show-overflow-tooltip":"",align:"center",label:"招聘人数"}}),e._v(" "),a("el-table-column",{attrs:{prop:"applicant","show-overflow-tooltip":"",align:"center",label:"申请人"}}),e._v(" "),a("el-table-column",{attrs:{prop:"submitTime","show-overflow-tooltip":"",align:"center",label:"申请日期"}}),e._v(" "),a("el-table-column",{attrs:{prop:"approveStateName",align:"center",label:"状态",sortable:""}}),e._v(" "),a("el-table-column",{attrs:{prop:"resumeCount",align:"center",label:"简历份数"}})],1)],1),e._v(" "),a("div",{staticClass:"sys-pagination"},[a("el-pagination",{attrs:{"current-page":e.search_data_team.pageno,"page-sizes":e.pageSizes,"page-size":e.search_data_team.pagesize,layout:"total, sizes, prev, pager, next, jumper",total:e.team_total},on:{"size-change":e.handleTeamSizeChange,"current-change":e.handleTeamCurrentChange}})],1)])],1)],1)])},staticRenderFns:[]};var m=a("VU/8")(p,h,!1,function(e){a("Wkh6"),a("r21F")},"data-v-ca096a9a",null);t.default=m.exports},Wkh6:function(e,t){},r21F:function(e,t){}}); |