修试审核参数补全

This commit is contained in:
jjLv 2024-11-25 14:27:30 +08:00
parent f6347e6f4a
commit 5662d354cb
1 changed files with 7 additions and 3 deletions

View File

@ -269,11 +269,13 @@ export default {
this.ids = selection.map((item) => item.id); this.ids = selection.map((item) => item.id);
selection.forEach((item) => { selection.forEach((item) => {
this.passTemp.push({ id: item.id, status: "1",specificationType: item.specificationType,machineTypeName:item.machineTypeName, this.passTemp.push({ id: item.id, status: "1",specificationType: item.specificationType,machineTypeName:item.machineTypeName,
unitName:item.unitName,repairNum:item.repairNum,repairedNum:item.repairedNum,typeId:item.typeId,taskId:item.taskId, }); unitName:item.unitName,repairNum:item.repairNum,repairedNum:item.repairedNum,typeId:item.typeId,taskId:item.taskId,
auditId:row.auditId,repairId:row.repairId,maId:row.maId, });
}); });
selection.forEach((item) => { selection.forEach((item) => {
this.failTemp.push({ id: item.id, status: "2",specificationType: item.specificationType,machineTypeName:item.machineTypeName, this.failTemp.push({ id: item.id, status: "2",specificationType: item.specificationType,machineTypeName:item.machineTypeName,
unitName:item.unitName,repairNum:item.repairNum,repairedNum:item.repairedNum,typeId:item.typeId,taskId:item.taskId, }); unitName:item.unitName,repairNum:item.repairNum,repairedNum:item.repairedNum,typeId:item.typeId,taskId:item.taskId,
auditId:row.auditId,repairId:row.repairId,maId:row.maId, });
}); });
this.single = selection.length != 1; this.single = selection.length != 1;
this.multiple = !selection.length; this.multiple = !selection.length;
@ -292,7 +294,8 @@ export default {
handlePass(row) { handlePass(row) {
const param = []; const param = [];
param.push({ id: row.id, status: "1",specificationType: row.specificationType,machineTypeName:row.machineTypeName, param.push({ id: row.id, status: "1",specificationType: row.specificationType,machineTypeName:row.machineTypeName,
unitName:row.unitName,repairNum:row.repairNum,repairedNum:row.repairedNum,typeId:row.typeId,taskId:row.taskId, }); unitName:row.unitName,repairNum:row.repairNum,repairedNum:row.repairedNum,typeId:row.typeId,taskId:row.taskId,
auditId:row.auditId,repairId:row.repairId,maId:row.maId, });
this.$modal this.$modal
.confirm("是否确认通过所选择的数据项?") .confirm("是否确认通过所选择的数据项?")
.then(function () { .then(function () {
@ -309,6 +312,7 @@ export default {
const param = []; const param = [];
param.push({ id: row.id, status: "2",specificationType: row.specificationType,machineTypeName:row.machineTypeName, param.push({ id: row.id, status: "2",specificationType: row.specificationType,machineTypeName:row.machineTypeName,
unitName:row.unitName,repairNum:row.repairNum,repairedNum:row.repairedNum,typeId:row.typeId,taskId:row.taskId, unitName:row.unitName,repairNum:row.repairNum,repairedNum:row.repairedNum,typeId:row.typeId,taskId:row.taskId,
auditId:row.auditId,repairId:row.repairId,maId:row.maId,
}); });
this.$modal this.$modal
.confirm("是否确认驳回所选择的数据项?") .confirm("是否确认驳回所选择的数据项?")