合格刷新页面
This commit is contained in:
parent
353247efb2
commit
e37a66e623
|
|
@ -1297,8 +1297,17 @@ export default {
|
||||||
confirmButtonText: "确定",
|
confirmButtonText: "确定",
|
||||||
});
|
});
|
||||||
}else{
|
}else{
|
||||||
auditPass(this.idsTemp).then((response) => {
|
auditPass(this.idsTemp).then(async(response) => {
|
||||||
if (response.code == 200) {
|
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("通过成功");
|
this.$modal.msgSuccess("通过成功");
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
@ -1313,7 +1322,16 @@ export default {
|
||||||
.then(function () {
|
.then(function () {
|
||||||
return auditPass(ids);
|
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("合格成功");
|
this.$modal.msgSuccess("合格成功");
|
||||||
})
|
})
|
||||||
.catch(() => {});
|
.catch(() => {});
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue