合格刷新页面

This commit is contained in:
jjLv 2024-11-25 13:16:53 +08:00
parent 353247efb2
commit e37a66e623
1 changed files with 20 additions and 2 deletions

View File

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