This commit is contained in:
朱菊兰 2024-04-27 10:45:20 +08:00
parent da85e5211a
commit c0214c9eb7

View File

@ -382,9 +382,17 @@ export default {
obj.lineName = data[i].lineName;
obj.procedure = data[i].productDet[j].name;
data[i].productDet[j].data.map((item) => {
obj[item.timeStr] = item.input || null;
obj[item.timeStr] = item.output
? item.output
: item.input
? item.input
: null;
});
obj.sum = data[i].productDet[j].allInput;
obj.sum = data[i].productDet[j].allOutput
? data[i].productDet[j].allOutput
: data[i].productDet[j].allInput
? data[i].productDet[j].allInput
: null;
this.tableData2.push(obj);
}
}