diff --git a/src/views/report/Environmental/sectionProduction/index.vue b/src/views/report/Environmental/sectionProduction/index.vue index ac843a79..ccd354d6 100644 --- a/src/views/report/Environmental/sectionProduction/index.vue +++ b/src/views/report/Environmental/sectionProduction/index.vue @@ -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); } }