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) {