From 2e2c8d83d5a94c89de5112e34405ade1e7962c34 Mon Sep 17 00:00:00 2001 From: zsk <710162063@qq.com> Date: Fri, 21 Mar 2025 17:23:03 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E8=AF=A6=E6=83=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/order.js | 4 +- components/panel/detailItem.vue | 2 +- root/detail/applyTob.vue | 990 +++++++++++++++++----------------------- 3 files changed, 431 insertions(+), 565 deletions(-) diff --git a/api/order.js b/api/order.js index 9b0c480..f93bc3b 100644 --- a/api/order.js +++ b/api/order.js @@ -13,7 +13,9 @@ let orderInfo = { order_update_detail :"/yishoudan/user/apply/order/V2/updateOrderInfo",// 工单信息修改 order_submitRemark :"/yishoudan/user/apply/order/updateOrder",// 跟进记录提交事件 order_peopleList :"/yishoudan/user/getAgencyCorpUsers",// 报名人列表 - order_submitPeople :"/yishoudan/user/apply/order/updateApplyUserAndStatistic",// 报名人提交修改 + order_submitPeople :"/yishoudan/user/apply/order/updateApplyUser",// 报名人提交修改 + order_updateStatistic:"/yishoudan/user/apply/order/updateStatistic", //是否参与统计 + order_submitFellow :"/yishoudan/user/updateInfo",// 老乡编辑提交 order_submitTime :"/assistant/apply/order/changeTime",// 时间编辑提交 order_residentList :"/assistant/agency/onsite/user/list",// 驻场列表 diff --git a/components/panel/detailItem.vue b/components/panel/detailItem.vue index 9729571..536f1f7 100644 --- a/components/panel/detailItem.vue +++ b/components/panel/detailItem.vue @@ -2,7 +2,7 @@ - {{ label }} + {{ label }} - + - - - + - - - - 状态 - {{ orderDetail.status_text }} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - + + + + {{ orderDetail.userName }}{{ orderDetail.setTitle }} - {{ orderDetail.status_text }} - - - - - - - + + + + + 编辑 + + - {{ orderDetail.idCard ? orderDetail.idCard : "-" }} - - - - + {{ orderDetail.address ? orderDetail.address : "-" }} + + + + + - {{ orderDetail.tel ? orderDetail.tel : "-" }} + {{ orderDetail.idCard ? orderDetail.idCard : "-" }} - - - + + + + - {{ orderDetail.weChat ? orderDetail.weChat : "-" }} + {{ orderDetail.tel ? orderDetail.tel : "-" }} @@ -61,76 +86,49 @@ - + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + - - - + + 跟进记录 - + @@ -140,16 +138,15 @@ - - + - + --> + + + + + - - - - - @@ -176,97 +173,125 @@ + + + + + 参与统计 + + + + {{ item.label}} + + + + + + + + + + - - 报名信息 - - + + 老乡信息 + + 姓名: - {{ orderDetail.userName }}{{ orderDetail.setTitle }} - - - 电话: - - {{ orderDetail.tel ? orderDetail.tel : "-" }} - + {{ orderDetail.userName }}{{ orderDetail.setTitle }} 身份证号: - + {{ orderDetail.idCard ? orderDetail.idCard : "-" }} - 家庭住址: - - {{ orderDetail.address ? orderDetail.address : "-" }} + 企业岗位: + + {{ orderDetail.storeJobName ? orderDetail.storeJobName : "-" }} - - 报名职位: - - {{ orderDetail.storeJobName ? orderDetail.storeJobName : "-" }} + + + + 面试时间: + + {{ orderDetail.interview_time ? orderDetail.interview_time : "-" }} + - - 员工薪资: - - {{ orderDetail.employeeSalary ? orderDetail.employeeSalary : "-" }} + + + 约入职时间: + + {{ orderDetail.willEntry_time ? orderDetail.willEntry_time : "-" }} + - - 代理政策: - - {{ orderDetail.policy ? orderDetail.policy : "-" }} + + + 入职时间: + + {{ orderDetail.entry_time ? orderDetail.entry_time : "-" }} + - - - - 复制文本 - 知道了 - - - - - - 联系状态 - - - - - - {{ item.name }} + + + 约离职时间: + + {{ orderDetail.willLeave_time ? orderDetail.willLeave_time : "-" }} + + - - - - - - - {{ item.name }} + + + 离职时间: + + {{ orderDetail.leave_time ? orderDetail.leave_time : "-" }} + + - - - - - - - {{ item.name }} + + + 完成时间: + + {{ orderDetail.update_time ? orderDetail.update_time : "-" }} + + - + + + 电话: + + {{ orderDetail.tel ? orderDetail.tel : "-" }} + + + + + + 复制文本 + 知道了 @@ -282,7 +307,7 @@ class="iconfont icon-a-duigoubeifen2" style="font-size: 24px" :style="{ - color: item.isSelected ? '#6A81FF' : '#fff', + color: item.isSelected ? '#00b666' : '#fff', }" > @@ -309,7 +334,7 @@ class="iconfont icon-a-duigoubeifen2" style="font-size: 24px" :style="{ - color: item.isSelected ? '#6A81FF' : '#fff', + color: item.isSelected ? '#00b666' : '#fff', }" > @@ -337,13 +362,13 @@ export default { }, data() { return { - from: "", // 判断来源 + + joinCountList: [{ label: '不参与', value: 0, checked: false }, { label: '参与', value: 1, checked: false }], + joinVal: 0, + statisticsValue:0, + cdnBaseImg: this.G.store().cdnBaseImg, agencyId: uni.getStorageSync("apply-agencyId"), - isAdmin: uni.getStorageSync("apply-userinfo").admin, - isMember: uni.getStorageSync("IS_MINIAPP_MEMBER"), // 是否是该小程序对应代理的成员 - hasPermission: uni.getStorageSync("HAS_PERMISSION") == 1 ? true : false, // 登陆者是否有权限查看 - isCreator: false, //管理人员判断 speed: 0, applyInfo: {}, // 提交更改的对象 @@ -351,6 +376,10 @@ export default { relationId: 0, type: 0, orderDetail: {}, + chooseUserId:0, + + + peopleData: { recordList: [], }, @@ -360,6 +389,10 @@ export default { isShow: false, uid: 0, }, + statisticsModal: { + isShow: false, + uid: 0, + }, infoModal: { isShow: false, }, @@ -420,84 +453,12 @@ export default { isSelected: false, }, ], - resumeFlag: 0, - editNewResumeShow: false, - statusList: { - unadd: [ - { - name: "空号", - icon: "icon-konghao", - id: 1, - }, - { - name: "停机", - icon: "icon-tingji", - id: 2, - }, - { - name: "无法添加", - icon: "icon-wufatianjia", - id: 8, - }, - ], - adding: [ - { - name: "无人接听", - icon: "icon-wurenjieting", - id: 3, - }, - { - name: "拒接", - icon: "icon-jujie", - id: 4, - }, - { - name: "通话中", - icon: "icon-tonghuazhong", - id: 5, - }, - { - name: "无法接通", - icon: "icon-wufajietong", - id: 6, - }, - { - name: "关机", - icon: "icon-guanji", - id: 7, - }, - { - name: "已申请", - icon: "icon-yishenqing", - id: 10, - }, - ], - added: [ - { - name: "已接通", - icon: "icon-yijietong", - id: 100, - }, - { - name: "已添加", - icon: "icon-yitianjia", - id: 9, - }, - ], - }, }; }, onLoad(options) { - console.log("options", options); this.oid = options.id; this.relationId = options.relationId; this.type = options.type; - this.resumeFlag = options.resumeFlag; // 1简历 2工单 - this.from = options.from; // 1简历 2工单 - - uni.setNavigationBarTitle({ - title: "详情", - }); }, onShow() { this.isCreator = uni.getStorageSync("IS_CREATOR") == 1 ? true : false; @@ -509,23 +470,10 @@ export default { handleClickLabelBtn($data) { var that = this; var text = ""; - let copy = ""; - console.log("$data", $data); - if (!this.orderDetail.totalZC) { - return false; - } - - if (that.orderDetail.upOnSiteInfo || !that.orderDetail.prevRecordId) { - copy = that.orderDetail.upOnSiteInfo.slice(-11); - } - if (that.orderDetail.prevRecordId || (!that.orderDetail.prevRecordId && !that.orderDetail.nextRecordId)) { - copy = that.orderDetail.onSiteInfo.slice(-11); - } - if (that.orderDetail.upAgencyName == "江西人海") { - text = that.orderDetail.storeJobName + "\n\n⚠驻场接人:" + copy + "(接待面试,优先联系)\n\n服务投诉:19036980065"; + text = that.orderDetail.storeJobName + "\n\n⚠驻场接人:" + that.orderDetail.zhuchangTel + "(接待面试,优先联系)\n\n服务投诉:19036980065"; } else { - text = that.orderDetail.storeJobName + "\n\n⚠驻场接人:" + copy; + text = that.orderDetail.totalZC; } wx.setClipboardData({ data: text, @@ -542,8 +490,15 @@ export default { }); }, }); + // uni.setClipboardData({ + // data: $data, + // success: function () { + // uni.showToast({ + // title: "复制成功", + // }); + // }, + // }); }, - getResident() { let that = this; that.G.Post( @@ -577,193 +532,130 @@ export default { getDetail() { let that = this; that.speed = 0; - if (this.resumeFlag == 1) { - that.G.Post(that.api.resume_detail_new + "/" + that.oid, {}, (res) => { - console.log("简历详情", res); - res = { ...res.resume, ...res }; - console.log("that.G.getOrderStatus()", that.G.getOrderStatus()); - if (that.from == "toc") { - res.status_text = that.G.getOrderStatusNew().filter((itm, inx) => { - return itm.id == res.status; - })[0].name; + that.G.Get( + that.api.order_detail_new, + { + orderId: that.oid, + relationId: that.relationId, + }, + (res) => { + console.log("工单详情:", res); + // return; + console.log("res", res); + res = { ...res.applyOrder, ...res }; + if (res.policyNum === "" || res.policyNum === 0) { + res.policyNum = 1; + } + if (res.policyIdx === "" || res.policyIdx === 0) { + res.policyIdx = 1; + } + if (res.policyIdx) { + let list = []; + for (let i = 0; i < res.policyNum; i++) { + let pickerStr = that.G.policyNumToHanZi(i + 1); + list[i] = { value: i + 1, name: pickerStr, isSelected: false }; + } + console.log("list", list); + console.log("res.policyIdx - 1 ", res.policyIdx); + list[res.policyIdx - 1 >= 0 ? res.policyIdx - 1 : 0].isSelected = true; + that.zhengceList = list; } else { - res.status_text = that.G.getOrderStatus().filter((itm, inx) => { - return itm.id == res.status; - })[0].name; + that.zhengceList = [{ name: "政策一", value: 1, isSelected: true }]; } + res.zhengceTextShow = that.G.policyNumToHanZi(res.policyIdx); + // 驻场信息样式统一 + res.newZhuchang = res.onSiteInfo.replaceAll(";", "\n"); + res.totalZC = res.prevRecordId || (!res.prevRecordId && !res.nextRecordId) ? res.newZhuchang : ""; + if (res.upOnSiteInfo) { + res.totalZC = res.upOnSiteInfo || !res.prevRecordId ? res.upOnSiteInfo.replaceAll(";", "\n") + "\n" + res.totalZC : res.totalZC; + // console.log("newZhuchang upZhuchang", res.upZhuchang + "123" + res.newZhuchang); + } + if (res.upAgencyName == "江西人海" && res.totalZC.indexOf(" ") != -1) { + res.totalZC = res.totalZC.split(" ")[1]; + res.zhuchangTel = res.totalZC.replace(/\s+/g, ""); + } + res.status_text = that.G.getOrderStatus().filter((itm, inx) => { + return itm.id == res.status; + })[0].name; + if (res.createTime) { + res.create_time = that.G.getPointTime(res.createTime, "YY--MM--DD HH:MM"); + } + if (res.interviewTime) { + res.interview_time = that.G.getPointTime(res.interviewTime, "YY--MM--DD HH:MM"); + } + if (res.willEntryTime) { + res.willEntry_time = that.G.getPointTime(res.willEntryTime, "YY--MM--DD HH:MM"); + } + if (res.entryTime) { + res.entry_time = that.G.getPointTime(res.entryTime, "YY--MM--DD HH:MM"); + } + if (res.willLeaveTime) { + res.willLeave_time = that.G.getPointTime(res.willLeaveTime, "YY--MM--DD HH:MM"); + } + if (res.leaveTime) { + res.leave_time = that.G.getPointTime(res.leaveTime, "YY--MM--DD HH:MM"); + } + if (res.updateTime) { + res.update_time = that.G.getPointTime(res.updateTime, "YY--MM--DD HH:MM"); + } + that.orderDetail.serveRecords = {}; + for (var key in res.records) { + res.records[key].forEach((item, index) => { + if (item.desp.substr(item.desp.length - 3, 3) == "备注:") { + item.desp = item.desp.replace(/备注:/g, ""); + } + if (item.type == 1) { + item["statusText"] = "报名审核中"; + } else if (item.type == 2) { + item["statusText"] = "待接待"; + } else if (item.type == 3) { + item["statusText"] = "待入职"; + } else if (item.type == 4) { + item["statusText"] = "在职中"; + } else if (item.type == 5) { + item["statusText"] = "已离职"; + } else if (item.type == 9) { + item["statusText"] = "约离职"; + } else if (item.type == 6) { + item["statusText"] = "已完成"; + } else if (item.type == 11) { + item["statusText"] = "审核未通过"; + } else if (item.type == 12) { + item["statusText"] = "已接到"; + } else if (item.type == 13) { + item["statusText"] = "未接到"; + } else if (item.type == 14) { + item["statusText"] = "面试未通过"; + } else if (item.type == 15) { + item["statusText"] = "未入职"; + } - res.serveRecords.forEach((item) => { - item.create_time = that.G.getPointTime(item.createTime, "YY--MM--DD HH:MM"); - }); + if (item.createTime) { + item.create_time = that.G.getPointTime(item.createTime, "YY--MM--DD HH:MM"); + } + }); + } res.setTitle = that.G.titleToStr(res); - res.records = res.serveRecords; that.orderDetail = res; + console.log("that.orderDetail", that.orderDetail.onSiteInfo); + that.applyInfo = { + orderId: res.id, + relationId: res.relationId, + applyUserId: res.applyUserId, + agencyReturnFee: res.agencyReturnFee, + agencyReturnFeeType: res.agencyReturnFeeType, + agencyReturnFeeDesp: res.agencyReturnFeeDesp, + policyIdx: res.policyIdx, + interviewDesp: res.interviewDesp, + employeeSalary: res.employeeSalary, + version: res.version, + }; + console.log("that.orderDetail", that.orderDetail); + that.$forceUpdate(); that.speed = 1; - console.log("res", res); - }); - - } else { - - that.G.Get( - that.api.order_detail_newTob, - { - orderId: that.oid, - relationId: that.relationId, - }, - (res) => { - console.log("工单详情:", res); - // return; - console.log("res", res); - res = { ...res.applyOrder, ...res }; - if (res.policyNum === "" || res.policyNum === 0) { - res.policyNum = 1; - } - if (res.policyIdx === "" || res.policyIdx === 0) { - res.policyIdx = 1; - } - if (res.policyIdx) { - let list = []; - for (let i = 0; i < res.policyNum; i++) { - let pickerStr = that.G.policyNumToHanZi(i + 1); - list[i] = { value: i + 1, name: pickerStr, isSelected: false }; - } - console.log("list", list); - console.log("res.policyIdx - 1 ", res.policyIdx); - list[res.policyIdx - 1 >= 0 ? res.policyIdx - 1 : 0].isSelected = true; - that.zhengceList = list; - } else { - that.zhengceList = [{ name: "政策一", value: 1, isSelected: true }]; - } - res.zhengceTextShow = that.G.policyNumToHanZi(res.policyIdx); - // 驻场信息样式统一 - // res.newZhuchang = res.onSiteInfo.replaceAll(";", "\n"); - console.log("res.newZhuchang", res.newZhuchang); - console.log("res.onSiteInfo", res.onSiteInfo); - res.totalZC = ""; - if (res.prevRecordId || (!res.prevRecordId && !res.nextRecordId)) { - res.totalZC = "我的驻场:" + (res.onSiteInfo.slice(-11) || " -"); - } - if (res.upOnSiteInfo || !res.prevRecordId) { - res.totalZC = res.totalZC ? res.totalZC + "\n项目方:" + (res.upOnSiteInfo.slice(-11) || " -") : "项目方:" + (res.upOnSiteInfo.slice(-11) || " -"); - } - - // if (res.upOnSiteInfo) { - // res.totalZC = res.upOnSiteInfo || !res.prevRecordId ? res.upOnSiteInfo.replaceAll(";", "\n") + "\n" + res.totalZC : res.totalZC; - // // console.log("newZhuchang upZhuchang", res.upZhuchang + "123" + res.newZhuchang); - // } - // console.log("res.totalZC", res.totalZC); - // console.log(res.totalZC.match(/\d+/g)); - // console.log(/\d+/g.test(res.totalZC)); - console.log("res.upAgencyName ", res.upAgencyName); - // if (res.upAgencyName == "江西人海" && /\d+/g.test(res.totalZC)) { - // if (res.totalZC.indexOf(" ") > -1) { - // res.totalZC = res.totalZC.split(" ")[1]; - // res.zhuchangTel = res.totalZC.replace(/\s+/g, ""); - // } else { - // res.totalZC = res.zhuchangTel = res.totalZC.match(/\d+/g)[0]; - // } - // } - console.log("res.zhuchangTel", res.zhuchangTel); - console.log("res.totalZC", res.totalZC); - if (that.from == "toc") { - res.status_text = that.G.getOrderStatusNew().filter((itm, inx) => { - return itm.id == res.status; - })[0].name; - } else { - res.status_text = that.G.getOrderStatus().filter((itm, inx) => { - return itm.id == res.status; - })[0].name; - } - - if (res.createTime) { - res.create_time = that.G.getPointTime(res.createTime, "YY--MM--DD HH:MM"); - } - if (res.interviewTime) { - res.interview_time = that.G.getPointTime(res.interviewTime, "YY--MM--DD HH:MM"); - } - if (res.willEntryTime) { - res.willEntry_time = that.G.getPointTime(res.willEntryTime, "YY--MM--DD HH:MM"); - } - if (res.entryTime) { - res.entry_time = that.G.getPointTime(res.entryTime, "YY--MM--DD HH:MM"); - } - if (res.willLeaveTime) { - res.willLeave_time = that.G.getPointTime(res.willLeaveTime, "YY--MM--DD HH:MM"); - } - if (res.leaveTime) { - res.leave_time = that.G.getPointTime(res.leaveTime, "YY--MM--DD HH:MM"); - } - if (res.updateTime) { - res.update_time = that.G.getPointTime(res.updateTime, "YY--MM--DD HH:MM"); - } - that.orderDetail.serveRecords = {}; - for (var key in res.records) { - res.records[key].forEach((item, index) => { - if (item.desp.substr(item.desp.length - 3, 3) == "备注:") { - item.desp = item.desp.replace(/备注:/g, ""); - } - if (item.type == 1) { - item["statusText"] = "报名审核中"; - } else if (item.type == 2) { - item["statusText"] = "待接待"; - } else if (item.type == 3) { - item["statusText"] = "待入职"; - } else if (item.type == 4) { - item["statusText"] = "在职中"; - } else if (item.type == 5) { - item["statusText"] = "已离职"; - } else if (item.type == 9) { - item["statusText"] = "约离职"; - } else if (item.type == 6) { - item["statusText"] = "已完成"; - } else if (item.type == 11) { - item["statusText"] = "审核未通过"; - } else if (item.type == 12) { - item["statusText"] = "已接到"; - } else if (item.type == 13) { - item["statusText"] = "未接到"; - } else if (item.type == 14) { - item["statusText"] = "面试未通过"; - } else if (item.type == 15) { - item["statusText"] = "未入职"; - } - - if (item.createTime) { - item.create_time = that.G.getPointTime(item.createTime, "YY--MM--DD HH:MM"); - } - }); - } - - res.setTitle = that.G.titleToStr(res); - that.orderDetail = res; - console.log("that.orderDetail", that.orderDetail.onSiteInfo); - that.applyInfo = { - orderId: res.id, - relationId: res.relationId, - applyUserId: res.applyUserId, - agencyReturnFee: res.agencyReturnFee, - agencyReturnFeeType: res.agencyReturnFeeType, - agencyReturnFeeDesp: res.agencyReturnFeeDesp, - policyIdx: res.policyIdx, - interviewDesp: res.interviewDesp, - employeeSalary: res.employeeSalary, - version: res.version, - }; - console.log("that.orderDetail", that.orderDetail); - that.$forceUpdate(); - that.speed = 1; - } - ); - } - }, - - editNewResume() { - if (this.orderDetail.status === 0 && this.isMember && this.hasPermission) { - console.log("editNewResume"); - this.editNewResumeShow = true; - } + } + ); }, - handleClickIDcard() { this.G.viewBigImage(this.orderDetail.idCardImageUrl); }, @@ -792,23 +684,31 @@ export default { }); }, + handleOpenPeopleModal() { - this.peopleModal.uid = this.orderDetail.applyUserId; + this.peopleModal.isShow = true; }, handleChoosePeople($item, $index) { let that = this; console.log("$item", $item); - // return; - // that.peopleModal.uid = $item.id; + that.chooseUserId = $item.id; that.applyInfo.applyUserId = $item.id; + // that.chooseUserIndex = $index; + that.$forceUpdate(); + + }, + + handleSubmitChoosePeople(){ + let that = this; + that.G.Post( - that.api.order_update_detail, + that.api.order_submitPeople, { - ...that.applyInfo, + userApplyOrderId: that.oid, + userId: that.chooseUserId, }, - (res) => { - console.log("res", res); + () => { that.peopleModal.isShow = false; uni.showToast({ title: "修改成功", @@ -817,47 +717,80 @@ export default { that.getDetail(); } ); - // that.G.Post( - // that.api.order_submitPeople, - // { - // userApplyOrderId: that.oid, - // userId: that.peopleModal.uid, - // statistic: 1, - // agree: 1, - // }, - // () => { - // that.peopleModal.isShow = false; - // uni.showToast({ - // title: "修改成功", - // icon: "success", - // }); - // that.getDetail(); - // } - // ); }, - - handleCopy() { + // handleOpenstatisticModal + + handleOpenstatisticModal() { + + this.statisticsModal.isShow = true; + }, + handleChooseStatistics($item, $index) { let that = this; - var text = "姓名:" + that.orderDetail.userName + "/" + (that.orderDetail.sex == 1 ? "男" : "女") + "/" + that.orderDetail.age + "岁" + (that.orderDetail.nation == "族" ? "" : "/" + that.orderDetail.nation) + "\n电话:" + (that.orderDetail.tel == "" || that.orderDetail.tel == undefined || that.orderDetail.tel == null ? "-" : that.orderDetail.tel) + "\n身份证号:" + (that.orderDetail.idCard == "" ? "-" : that.orderDetail.idCard) + "\n家庭地址:" + (that.orderDetail.address == "" || that.orderDetail.address == undefined || that.orderDetail.address == null ? "-" : that.orderDetail.address) + "\n报名岗位:" + that.orderDetail.storeJobName + "\n员工薪资:" + (that.orderDetail.employeeSalary || "-") + (that.isCreator ? "\n代理政策:" + that.orderDetail.policy : ""); - uni.setClipboardData({ - data: text, - success(res) { - uni.getClipboardData({ - success(res) { - console.log(res.data); // data - uni.showToast({ - title: "复制成功", - icon: "success", - }); - }, - }); + console.log("$item", $item); + that.statisticsValue = $item.value; + // that.applyInfo.applyUserId = $item.id; + // that.chooseUserIndex = $index; + that.$forceUpdate(); + + }, + + handleSubmitChoosePeople(){ + let that = this; + + that.G.Post( + that.api.order_updateStatistic, + { + userApplyOrderId: that.oid, + statistic: that.statisticsValue, }, - }); + () => { + that.statisticsModal.isShow = false; + uni.showToast({ + title: "修改成功", + icon: "success", + }); + that.getDetail(); + } + ); + }, + + + handleOpenInfoModal() { + let that = this; + that.infoModal.isShow = true; + }, + handleCopy() { + let that = this, + params = {}; + params = { + "姓名:": this.orderDetail.userName + "/" + this.orderDetail.sex == 1 ? "男" : "女" + "/" + this.orderDetail.age + "岁/" + this.orderDetail.nation, + "身份证号:": this.orderDetail.idCard ? this.orderDetail.idCard : "-", + "企业岗位:": this.orderDetail.storeJobName ? this.orderDetail.storeJobName : "-", + 电话: this.orderDetail.tel ? this.orderDetail.tel : "-", + }; + if (this.orderDetail.status == 10 || this.orderDetail.status == 20 || this.orderDetail.status == 25) { + params["面试时间"] = this.orderDetail.interview_time ? this.orderDetail.interview_time : "-"; + } + if (this.orderDetail.status == 30) { + params["约入职时间"] = this.orderDetail.willEntry_time ? this.orderDetail.willEntry_time : "-"; + } + if (this.orderDetail.status == 40) { + params["入职时间"] = this.orderDetail.entry_time ? this.orderDetail.entry_time : "-"; + } + if (this.orderDetail.status == 48) { + params["约离职时间"] = this.orderDetail.willLeave_time ? this.orderDetail.willLeave_time : "-"; + } + if (this.orderDetail.status == 50) { + params["离职时间"] = this.orderDetail.leave_time ? this.orderDetail.leave_time : "-"; + } + if (this.orderDetail.status == 21 || this.orderDetail.status == 26 || this.orderDetail.status == 35 || this.orderDetail.status == 45) { + params["完成时间"] = this.orderDetail.update_time ? this.orderDetail.update_time : "-"; + } + that.G.copyText(that.G.objToStr(params, "copy")); }, goFellow() { let that = this, params = {}; - console.log("that.orderDetail", that.orderDetail); params = { name: this.orderDetail.userName, sex: this.orderDetail.sex, @@ -870,13 +803,7 @@ export default { imgs: "", userName: this.orderDetail.userName, userId: that.orderDetail.userId, - resumeFlag: this.resumeFlag, - weChat: that.orderDetail.weChat, }; - // if (this.resumeFlag == 1) { - // } else { - // params.weChat = ""; - // } uni.navigateTo({ url: "/root/detail/fellow?" + that.G.objToStr(params), }); @@ -890,12 +817,9 @@ export default { title: e.title, type: e.type, }; - that.orderDetail.policy = params.info; - that.infoModal.isShow = true; - - // uni.navigateTo({ - // url: "/root/detail/jobDesp?" + that.G.objToStr(params), - // }); + uni.navigateTo({ + url: "/root/detail/jobDesp?" + that.G.objToStr(params), + }); }, goInfo($info, $title, $type, $dis) { uni.setStorageSync("APPLY_OBJ", this.orderDetail); @@ -934,23 +858,21 @@ export default { }); return false; } - let params = { - type: that.resumeFlag, - desp: that.recordModal.remark, - }; - if (that.resumeFlag == 1) { - params.resumeId = that.oid; - } else { - params.orderId = that.oid; - } - that.G.Post(that.api.resume_follow, params, () => { - that.recordModal.isShow = false; - uni.showToast({ - title: "修改成功", - icon: "success", - }); - that.getDetail(); - }); + that.G.Post( + that.api.order_submitRemark, + { + orderId: that.oid, + desp: that.recordModal.remark, + }, + () => { + that.recordModal.isShow = false; + uni.showToast({ + title: "修改成功", + icon: "success", + }); + that.getDetail(); + } + ); }, handleMianshi(e) { @@ -1129,70 +1051,12 @@ export default { setReturnFee(returnFee, returnFeeType) { return this.G.setReturnFee(returnFee, returnFeeType); }, - // 标记简历 - markResume(e) { - let that = this; - let obj = { - resumeId: that.oid, - markTag: "", - }; - if ((e == 9 && !this.orderDetail.weChat) || (e == 100 && !this.orderDetail.tel)) { - uni.showToast({ - title: e == 9 && !this.orderDetail.weChat ? "请添加微信号" : "请添加手机号", - icon: "none", - }); - return false; - } - // 8,9,10 是微信相关的标记, 需要额外对应 - if (e != 8 && e != 9 && e != 10) { - obj.telMark = e; - obj.markTag = 0; - } else { - obj.markTag = 1; - switch (e) { - case 8: - obj.weChatMark = 1; - break; - case 9: - obj.weChatMark = 100; - break; - case 10: - obj.weChatMark = 2; - break; - } - } - that.G.Post(that.api.mark_resume, obj, (res) => { - console.log("res", res); - that.editNewResumeShow = false; - uni.showToast({ - title: "操作成功", - icon: "success", - }); - that.getDetail(); - }); - }, - record($item) { - console.log("$item", $item); - uni.navigateTo({ - url: "/root/other/quickApplication?id=" + $item.id, - // 小程序页面间通信, 确保页面渲染完再获取简历信息 - events: { - ceshi: function (data) { - setTimeout(() => { - uni.$emit("getTownsman", { info: $item }); - }, 0); - console.log(data); - }, - }, - }); - }, }, };