From e37a66e6235dfb890879e3a14b9f04dcf107c592 Mon Sep 17 00:00:00 2001 From: jjLv <1981429112@qq.com> Date: Mon, 25 Nov 2024 13:16:53 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=88=E6=A0=BC=E5=88=B7=E6=96=B0=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../repair/repairManage/component/edit.vue | 22 +++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/src/views/material/repair/repairManage/component/edit.vue b/src/views/material/repair/repairManage/component/edit.vue index 1b7958ec..fb7bfda0 100644 --- a/src/views/material/repair/repairManage/component/edit.vue +++ b/src/views/material/repair/repairManage/component/edit.vue @@ -1297,8 +1297,17 @@ export default { confirmButtonText: "确定", }); }else{ - auditPass(this.idsTemp).then((response) => { + auditPass(this.idsTemp).then(async(response) => { if (response.code == 200) { + let param = { + taskId: this.repairRow.taskId, + }; + this.taskIdTemp = this.repairRow.taskId; + const res = await getAppRepairMaTypeList(param); + this.equipmentList = res.data; + this.equipmentList.forEach((e) => { + e.disrepairNum = Number(e.typeRepairNum) - Number(e.typeRepairedNum); + }); this.$modal.msgSuccess("通过成功"); } }); @@ -1313,7 +1322,16 @@ export default { .then(function () { return auditPass(ids); }) - .then(() => { + .then(async() => { + let param = { + taskId: this.repairRow.taskId, + }; + this.taskIdTemp = this.repairRow.taskId; + const res = await getAppRepairMaTypeList(param); + this.equipmentList = res.data; + this.equipmentList.forEach((e) => { + e.disrepairNum = Number(e.typeRepairNum) - Number(e.typeRepairedNum); + }); this.$modal.msgSuccess("合格成功"); }) .catch(() => {});