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"
>
-
-
- {{ scope.row.年 }}-
- {{
- scope.row.周
- }}
- {{
- scope.row.月
- }}
-
+
+
+
+
-
+
+
+
@@ -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 = [];
}
});
},