add 设备加工数量

This commit is contained in:
lb
2023-08-30 14:11:24 +08:00
parent bf52db3b6a
commit 100d28fd68
2 changed files with 184 additions and 4 deletions

View File

@@ -503,7 +503,7 @@ export default {
// 设置span的行数
this.spanInfo[rowIndex] = data.length;
for (const equipment of data) {
rowIndex+=1
rowIndex += 1;
for (const [key, hourData] of Object.entries(equipment.hourData)) {
const { equipmentName, totalQuantity } = equipment;
const { inQuantity, outQuantity, nokQuantity, scrapRatio } =
@@ -518,12 +518,10 @@ export default {
row[key + '__out'] = outQuantity;
row[key + '__nok'] = nokQuantity;
row[key + '__ratio'] = scrapRatio;
console.log('row', row);
return;
this.list.push(row);
}
return;
}
console.log('list:', this.list, 'spanInfo:', this.spanInfo);
}
},