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(() => {});