From 6d1f8fcbcbfa94c570a029928dd3ad743c9a41d5 Mon Sep 17 00:00:00 2001 From: shijing Date: Tue, 9 Apr 2024 09:34:53 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E6=88=90=E5=93=81=E3=80=81=E5=8D=8A?= =?UTF-8?q?=E6=88=90=E5=93=81=E5=BA=93=E5=AD=98=E7=BB=9F=E8=AE=A1=E6=9B=B4?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/home/widgets/index_photon.vue | 39 ++++++++++++++----- src/views/statistics/stock_statistics.vue | 47 ++++++++++++++++++++++- 2 files changed, 76 insertions(+), 10 deletions(-) diff --git a/src/views/home/widgets/index_photon.vue b/src/views/home/widgets/index_photon.vue index c4913857..77c2eef4 100644 --- a/src/views/home/widgets/index_photon.vue +++ b/src/views/home/widgets/index_photon.vue @@ -376,15 +376,27 @@ style="width: 100%; height: 285px" > + + + - { - // this.halfProductList = res; - // }); + let that = this; + let obj = { + query: { + material_types: "20", + }, + }; + that.$API.bi.dataset.exec.req("materialCount", obj).then((res) => { + if (res.data2.ds0) { + this.halfProductList = res.data2.ds0; + } + }); }, materialTypeChange() { this.getMaterialList(); diff --git a/src/views/statistics/stock_statistics.vue b/src/views/statistics/stock_statistics.vue index 41b72513..7dea40b6 100644 --- a/src/views/statistics/stock_statistics.vue +++ b/src/views/statistics/stock_statistics.vue @@ -32,6 +32,32 @@ + + + + + + + + { + if (res.data2.ds0) { + that.tableData1 = res.data2.ds0; + } + }); + } else { + that.$refs.tables1.refresh(); + } }, //更改周预估用量 weekcountChange(row) {