| 1 |
- (window.webpackJsonp=window.webpackJsonp||[]).push([[16],{389:function(e,t,n){},431:function(e,t,n){"use strict";var r=n(389);n.n(r).a},473:function(e,t,n){"use strict";n.r(t);n(24),n(26);var r=n(3),o=(n(167),n(170)),c=(n(37),n(4)),l=["工作ID","方向","企业方","开发者","状态","驻场","基本薪资","每周工时","用户来源","客户经理","发布时间","本期托管","下期托管","开始时间","结薪时间","发薪时间","试用期","开票","纳税","企业方费用","开发者工资","试用期","开票","纳税","企业方费用","开发者薪资"],m=["id","matchDirections","nickname","devNickname","status","publish_present_hire","salary","workHours","remark_user_from","userManagerName","createTime","current_deposit_num","next_deposit_num","startTime","endTime","sendSalaryTime","isNeedProbation","isInvoice","devIsInvoice","companyTotalPrice","personTotalPrice"],d={"待审核":"#F56C6C","审核拒绝":"#909399","对接开发者":"#E6A23C","面试中":"#E6A23C","确认聘用":"#E6A23C","开发中":"#67C23A","结束合作":"#909399","取消":"#909399"},v={data:function(){return{uid:"",devID:"",comID:"",jobID:"",checkID:"",unDeposit:!1,presentHire:!1,totalFee:11,statuses:[],directions:[],selectedDirection:"",selectedStatus:"",totalCount:0,currentPage:1,tableHeaders:l,tableProps:m,STATUS_COLOR:d,tableData:[],nums:{}}},watch:{comID:function(e){console.log(e)}},mounted:function(){this.getJobStatus(),this.getDirection(),this.getCloudJob()},methods:{getUserManager:function(){},getNums:function(){var e=Object(c.a)(regeneratorRuntime.mark(function e(){var t;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:(t={data:{userinvite:0,outsourcecoder:1,project_progress:7,suggestion:3,projectmanage:581,hiremanage:"116",coderverify:"9",companyverify:"0",realnameverify:"8",experience_audit:"4",take_big_coins_audit:4,rooter_notify:0,cloudjob:523,cloudjobArr:{all:{num:523},waitCheckNum:{status:2,num:170},selectDeveloperNum:{status:4,num:25},waitInterviewNum:{status:5,num:13},waitSettNum:{status:7,num:"315"}}},info:"返回统计数据",status:"yes"})&&console.log(t.data);case 2:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}(),getCloudJob:function(){var e=Object(c.a)(regeneratorRuntime.mark(function e(){var t,n,data,r;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.$post("/api/admin/job/cloud_job",(t={uid:this.uid,developer_id:this.devID},Object(o.a)(t,"uid",this.comID),Object(o.a)(t,"checker_id",this.checkID),Object(o.a)(t,"job_id",this.jobID),Object(o.a)(t,"direction_id",this.selectedDirection),Object(o.a)(t,"status",this.selectedStatus),Object(o.a)(t,"not_deposit",this.unDeposit?"1":"0"),Object(o.a)(t,"present_hire",this.presentHire?"1":"0"),Object(o.a)(t,"page",this.currentPage),t));case 2:(n=e.sent)&&(this.tableData=[],data=n.data.listData,r=data.list,this.tableData=this.formatTableData(r),this.totalCount=Number(data.total),this.totalPage=data.totalPage);case 4:case"end":return e.stop()}},e,this)}));return function(){return e.apply(this,arguments)}}(),getDirection:function(){var e=Object(c.a)(regeneratorRuntime.mark(function e(){var t;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.$post("/api/admin/job/get_direction");case 2:(t=e.sent)&&(this.directions=t.data);case 4:case"end":return e.stop()}},e,this)}));return function(){return e.apply(this,arguments)}}(),getJobStatus:function(){var e=Object(c.a)(regeneratorRuntime.mark(function e(){var t,n;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.$post("/api/admin/job/getJobStatus");case 2:(t=e.sent)&&(n=t.data.status_num,this.nums=n,this.statuses=t.data.status_name.map(function(e){var t={name:e};switch(e){case"全部":t.num=n.all.num;break;case"对接开发者":t.num=n.selectDeveloperNum.num,t.color="#F0F9EB";break;case"待审核":t.num=n.waitCheckNum.num,t.color="#e1f3d8";break;case"面试中":t.num=n.waitInterviewNum.num,t.color="#F0F9EB";break;case"开发中":t.num=n.waitSettNum.num,t.color="#FAECD8";break;case"待托管费用":t.num=n.waitPayNum.num,t.color="#F0F9EB";break;case"确认聘用":case"面试通过":case"等待确定工资":t.num=n.interviewOkNum.num,t.color="#F0F9EB"}return t}));case 4:case"end":return e.stop()}},e,this)}));return function(){return e.apply(this,arguments)}}(),changeSelect:function(e){this.currentPage=1,this.getCloudJob(e)},clickDetail:function(e){window.open("/rooter/cloudjobitem/".concat(e))},tableRowClassName:function(e){var t,n=e.row;e.rowIndex;switch(n.statusName){case"待审核":t="background: #E1F3D8;";break;case"对接开发者":case"面试中":case"确认聘用":t="background: #F0F9EB;";break;case"开发中":t="background: #FAECD8;";break;case"结束合作":t="background: #F4F4F5;"}return t},formatTableData:function(data){return data.map(function(i){return Object(r.a)({},i,{nickname:i.companyUser.nickname,devNickname:i.developerUser?i.developerUser.nickname:"",direction:i.developerUser?i.developerUser.direction_name:"",workHours:"0"===i.hours?i.workHours?i.workHours.name.replace("小时",""):"":i.hours,endTime:"每月".concat(i.end_time,"号"),salary:"0"!==i.salary?i.salary:"".concat(i.match_salary_min,"-").concat(i.match_salary_max),sendSalaryTime:"每月".concat(i.send_salary_time,"号"),isNeedProbation:"1"===i.is_need_probation?i.probation_days:"--",isInvoice:"1"===i.is_invoice?"是":"否",devIsInvoice:"1"===i.dev_is_invoice?"是":"否",userManagerName:i.user_manager?i.user_manager.nickname:""})})},changePagination:function(e){this.getCloudJob()},changeDeposit:function(e){},createPeriod:function(){var e=Object(c.a)(regeneratorRuntime.mark(function e(){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.$post("/api/admin/job/create_period");case 2:e.sent&&this.$message({message:"生成成功",type:"success"});case 4:case"end":return e.stop()}},e,this)}));return function(){return e.apply(this,arguments)}}(),finishPeriod:function(){var e=Object(c.a)(regeneratorRuntime.mark(function e(){return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.$post("/api/admin/job/create_period");case 2:e.sent&&this.$message({message:"更新成功",type:"success"});case 4:case"end":return e.stop()}},e,this)}));return function(){return e.apply(this,arguments)}}(),doManager:function(){window.open("/main/cloud_balance")},clickRow:function(e){var t=e.id;"rooter.proginn.com"==location.hostname?window.open("https://www.proginn.com/rooter/cloudjobitem/".concat(t)):window.open("https://dev.test.proginn.com/rooter/cloudjobitem/".concat(t))},doExport:function(){window.open("/api/admin/job/exportJobData")}}},_=(n(431),n(2)),component=Object(_.a)(v,function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{id:"cloud-job"}},[n("div",{staticClass:"top"},[n("h3",[e._v("云端工作")]),e._v(" "),n("div",{staticClass:"top-info"},[n("div",{staticClass:"top-info-left"},[n("span",[e._v("\n 待审核:\n "),n("b",[e._v(e._s(e.nums.waitCheckNum&&e.nums.waitCheckNum.num))])]),e._v(" "),n("span",[e._v("\n 对接面试中:\n "),n("b",[e._v(e._s(e.nums.selectDeveloperNum&&e.nums.selectDeveloperNum.num+e.nums.waitInterviewNum.num))])]),e._v(" "),n("span",[e._v("\n 待托管费用:\n "),n("b",[e._v(e._s(e.nums.waitPayNum&&e.nums.waitPayNum.num))])]),e._v(" "),n("span",[e._v("\n 开发中:\n "),n("b",[e._v(e._s(e.nums.waitSettNum&&e.nums.waitSettNum.num))])])]),e._v(" "),n("div",{staticClass:"top-info-right"},[n("span",{on:{click:e.createPeriod}},[e._v("生成20天内的账单")]),e._v(" "),n("span",{on:{click:e.finishPeriod}},[e._v("生成待结薪的账单")])])])]),e._v(" "),n("div",{staticClass:"form"},[n("div",{staticClass:"left"},[n("el-select",{attrs:{placeholder:"工作状态"},model:{value:e.selectedStatus,callback:function(t){e.selectedStatus=t},expression:"selectedStatus"}},e._l(e.statuses,function(t,r){return n("el-option",{key:r,attrs:{label:t.name,value:r}},[n("div",[e._v("\n "+e._s(t.name)+"\n "),n("span",{staticClass:"num",style:"color: "+e.STATUS_COLOR[t.name]+";"},[e._v(e._s(t.num))])])])}),1),e._v(" "),n("el-select",{attrs:{placeholder:"职位方向"},model:{value:e.selectedDirection,callback:function(t){e.selectedDirection=t},expression:"selectedDirection"}},e._l(e.directions,function(e,t){return n("el-option",{key:t,attrs:{label:e.direction_name,value:e.direction_id}})}),1),e._v(" "),n("el-input",{attrs:{placeholder:"工作ID"},model:{value:e.jobID,callback:function(t){e.jobID=t},expression:"jobID"}}),e._v(" "),n("el-input",{attrs:{placeholder:"企业方ID"},model:{value:e.comID,callback:function(t){e.comID=t},expression:"comID"}}),e._v(" "),n("el-input",{attrs:{placeholder:"开发者ID"},model:{value:e.devID,callback:function(t){e.devID=t},expression:"devID"}}),e._v(" "),n("el-input",{attrs:{placeholder:"客户经理"},model:{value:e.checkID,callback:function(t){e.checkID=t},expression:"checkID"}}),e._v(" "),n("el-checkbox",{model:{value:e.presentHire,callback:function(t){e.presentHire=t},expression:"presentHire"}},[e._v("驻场招聘")]),e._v(" "),n("el-checkbox",{on:{change:e.changeDeposit},model:{value:e.unDeposit,callback:function(t){e.unDeposit=t},expression:"unDeposit"}},[e._v("本期未托管")]),e._v(" "),n("el-button",{on:{click:e.getCloudJob}},[e._v("筛选")])],1),e._v(" "),n("div",{staticClass:"right"},[n("el-button",{on:{click:e.doManager}},[e._v("结算管理")]),e._v(" "),n("el-button",{on:{click:e.doExport}},[e._v("导出报表")])],1)]),e._v(" "),n("div",{staticClass:"table"},[e.tableData.length?n("el-table",{staticStyle:{width:"100%"},attrs:{stripe:"",height:"100%",data:e.tableData},on:{"row-click":e.clickRow}},e._l(e.tableProps,function(t,r){return n("el-table-column",{key:r,attrs:{prop:t,label:e.tableHeaders[r],fixed:r<4,width:"150px"},scopedSlots:e._u([{key:"default",fn:function(r){return["ctrl"===t?n("el-button",{attrs:{type:"text"},on:{click:function(t){return e.clickDetail(r.row.id)}}},[e._v(e._s(r.row[t]))]):"status"===t?n("span",{style:"color: "+e.STATUS_COLOR[r.row.statusName]+";"},[e._v(e._s(r.row.statusName))]):n("span","id"===t?[e._v("\n "+e._s(r.row.id)+"\n "),r.row.deposit_status?e._e():n("span",{staticStyle:{color:"red"}},[e._v("(待托管)")])]:[e._v(e._s(r.row[t]||"--"))])]}}],null,!0)})}),1):e._e()],1),e._v(" "),n("el-pagination",{attrs:{"current-page":e.currentPage,"page-size":20,layout:"total, prev, pager, next",total:e.totalCount},on:{"current-change":e.changePagination,"update:currentPage":function(t){e.currentPage=t},"update:current-page":function(t){e.currentPage=t}}})],1)},[],!1,null,"298e69c9",null);t.default=component.exports}}]);
|