From f43bb1ae8a4d47bf6fbc0005b45ae92ea848177b Mon Sep 17 00:00:00 2001 From: shijing Date: Mon, 15 Dec 2025 11:18:33 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E5=85=89=E5=AD=90=E7=BB=BC=E5=90=88?= =?UTF-8?q?=E7=BB=9F=E8=AE=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/statistics/total_statistics.vue | 38 +++++++++++------------ 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/src/views/statistics/total_statistics.vue b/src/views/statistics/total_statistics.vue index 1c9f9ebe..a033658e 100644 --- a/src/views/statistics/total_statistics.vue +++ b/src/views/statistics/total_statistics.vue @@ -80,7 +80,7 @@

管数据

- + { + let datas = res.data2; + let data_b = [...datas.ds0, ...datas.ds2]; + let data_g = [...datas.ds1, ...datas.ds3]; + that.data_b = data_b; + that.data_g = data_g; + that.getSaleOutData(data_b, data_g); + }); + }, //获取表格原始数据 getSourceData() { let that = this; @@ -328,8 +339,6 @@ export default { key = "开槽"; } if (item1.车间==null||item1.车间==undefined) { - // console.log( '仓库库存',item1); - // console.log( item1.工序 !== "配管"&&item1.类型==10); if (item1.工序 == "配管") { key = "配管"; }else if(item1.工序 !== "配管"&&item1.类型==10){ @@ -353,18 +362,6 @@ export default { obj.成品库; that.tableData11[index] = obj; }); - // saleData.forEach((item) => { - // let index = 0; - // if (item.型号.indexOf("+") > -1) { - // let model = item.型号.split("+")[0]; - // index = models.indexOf(model); - // } else { - // index = models.indexOf(item.型号); - // } - // if (index > -1) { - // that.tableData11[index].检验合格数=item.数量; - // } - // }) that.models_b = models; that.getCountOk('b',models); }, @@ -460,8 +457,6 @@ export default { key = "倒角"; } if (item5.车间==null||item5.车间==undefined) { - // console.log( '仓库库存',item5); - // console.log( item5.工序 !== "配管"&&item5.类型==10); if (item5.工序 == "配管") { key = "配棒"; }else if(item5.工序 !== "配管"&&item5.类型==10){ @@ -531,7 +526,12 @@ export default { that.query.date = that.currentDate; } } - that.getSourceData(); + if(that.query.date == that.currentDate){ + that.getSourceDataNow(); + }else{ + that.getSourceData(); + } + }, }, };