From 76d3cc25ccfbdf665eb958e0db6c72d97787452e Mon Sep 17 00:00:00 2001 From: shijing Date: Tue, 2 Dec 2025 17:02:13 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E5=BA=93=E5=AD=98=E7=BB=9F=E8=AE=A1?= =?UTF-8?q?=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/statistics/stock_statistics.vue | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/src/views/statistics/stock_statistics.vue b/src/views/statistics/stock_statistics.vue index 88a50125..1c4908a3 100644 --- a/src/views/statistics/stock_statistics.vue +++ b/src/views/statistics/stock_statistics.vue @@ -321,15 +321,21 @@ export default { that.initChartOptions(); }, initChartOptions() { - this.$API.bi.dataset.exec.req("materialCount", {query: { + let that = this; + let query = { "select_dept": "", "groupby_dept": "", "material_types": this.params.type, - "select_material": "material.cate as cate", - "groupby_material": "material.cate", - "select_material_name": "", - "groupby_material_name": "" - }}).then((res) => { + "select_material": "", + "groupby_material": "" + }; + if(that.params.type==40){ + query.select_material="material.cate as cate"; + query.groupby_material="material.cate"; + query.select_material_name = ""; + query.groupby_material_name = ""; + } + this.$API.bi.dataset.exec.req("materialCount", {query:query }).then((res) => { if (res.echart_options) { this.echartsOptions = JSON.parse(res.echart_options); }