From b5472e8c5251aa6059bdc3957a9cdec3d3ba282b Mon Sep 17 00:00:00 2001 From: shijing Date: Tue, 26 Mar 2024 14:27:02 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E9=94=80=E5=94=AE=E7=BB=9F=E8=AE=A1?= =?UTF-8?q?=E6=A0=BC=E5=BC=8F=E7=B1=BB=E6=AF=94=E9=87=87=E8=B4=AD=E7=BB=9F?= =?UTF-8?q?=E8=AE=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/statistics/inm_statistics.vue | 694 +++++++++++-------- src/views/statistics/material_statistics.vue | 79 ++- 2 files changed, 436 insertions(+), 337 deletions(-) diff --git a/src/views/statistics/inm_statistics.vue b/src/views/statistics/inm_statistics.vue index 7cbdc739..45c573b7 100644 --- a/src/views/statistics/inm_statistics.vue +++ b/src/views/statistics/inm_statistics.vue @@ -2,64 +2,109 @@
- - + - +
- +
-

棒管交付数

- +
-
- +
- - 导出 - + + 导出 + - + + + + - + + + @@ -69,38 +114,56 @@
- - -
-

管交付数

- -
-
- - -
- -
- - 导出 - + + + +
+

交付统计总表

+
+
+ + 导出 + + - + + + + - + - + -
-
-
+ + + +
+
@@ -109,266 +172,287 @@ diff --git a/src/views/statistics/material_statistics.vue b/src/views/statistics/material_statistics.vue index 870c01a7..eb8ad266 100644 --- a/src/views/statistics/material_statistics.vue +++ b/src/views/statistics/material_statistics.vue @@ -84,18 +84,28 @@ :height="tableHeight" > - - + + + + - + + + @@ -127,14 +137,20 @@ hideDo > - + @@ -343,25 +359,25 @@ export default { }; that.$API.bi.dataset.exec.req(exec, obj).then((res) => { console.log("getInmData", res); - let data = res.data2.ds0; - that.tableData1 = data; - if (data.length > 0) { - option.series.data = []; - let seriesData = []; - data.forEach((item) => { - if (that.queryType == "月") { - let index = item.周 - that.firstWeekNum; - seriesData[index] = item.数量; - } else { - let index = item.月 - 1; - seriesData[index] = item.数量; - } - }); - option.series.data = seriesData; - that.setChart("bachart1", option); - } else { - that.setChart("bachart1", option); + option.series.data = []; + if (res.data2.ds0) { + let data = res.data2.ds0; + that.tableData1 = data; + if (data.length > 0) { + let seriesData = []; + data.forEach((item) => { + if (that.queryType == "月") { + let index = item.周 - that.firstWeekNum; + seriesData[index] = item.数量; + } else { + let index = item.月 - 1; + seriesData[index] = item.数量; + } + }); + option.series.data = seriesData; + } } + that.setChart("bachart1", option); }); }, getTable() { @@ -375,11 +391,10 @@ export default { }; let exec = that.queryType == "月" ? "saleOutWeek" : "saleOutMonth"; that.$API.bi.dataset.exec.req(exec, obj).then((res) => { + that.tableData2 = []; if (res.data2.ds0) { let data = res.data2.ds0; that.tableData2 = data; - } else { - that.tableData2 = []; } }); },