From 5b3fa16becc845b72643fb575520968c8dc86e52 Mon Sep 17 00:00:00 2001 From: shijing Date: Mon, 9 Dec 2024 11:05:13 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E5=85=89=E5=AD=90=E7=BB=BC=E5=90=88?= =?UTF-8?q?=E6=9F=A5=E8=AF=A2=E5=BA=93=E5=AD=98=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/statistics/total_statistics.vue | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/views/statistics/total_statistics.vue b/src/views/statistics/total_statistics.vue index 4c90a7a6..398acb64 100644 --- a/src/views/statistics/total_statistics.vue +++ b/src/views/statistics/total_statistics.vue @@ -276,7 +276,7 @@ export default { let key = ""; if (item1.车间 == "7车间" && item1.工序 == "棒料成型") { key = "合格数"; - } else if (!item1.车间 && item1.工序 == "棒料成型") { + } else if (!item1.车间) { key = "仓库库存"; } else if ( item1.车间 == "6车间" && @@ -287,10 +287,7 @@ export default { key = "平头"; } else if (item1.车间 == "6车间" && item1.工序 == "粘头") { key = "粘头"; - } else if ( - item1.车间 == "6车间" && - item1.工序 == "粗中细磨" - ) { + } else if (item1.车间 == "6车间" &&(item1.工序 == "粗磨"||item1.工序 == "粗中磨"|| item1.工序 == "粗中细磨")) { key = "粗中细"; } else if (item1.车间 == "6车间" && item1.工序 == "抛光") { key = "抛光"; @@ -299,7 +296,7 @@ export default { } else if (item1.工序 == "配管") { key = "配管"; } - obj[key] = item1.数量; + obj[key] += item1.数量; }); obj.合计 = obj.合格数 +