From 4a9555f0342ed3185788318b82c70805670f629a Mon Sep 17 00:00:00 2001 From: shijing Date: Wed, 15 Apr 2026 11:12:20 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E7=A6=85=E9=81=93367?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/inm/good.vue | 69 +++++++++++++++++++++++++----------------- 1 file changed, 41 insertions(+), 28 deletions(-) diff --git a/src/views/inm/good.vue b/src/views/inm/good.vue index 5d8fc86c..afecaaa6 100644 --- a/src/views/inm/good.vue +++ b/src/views/inm/good.vue @@ -19,6 +19,7 @@ :value="item.id" > + 仓库总数:{{ totalCount }}
@@ -89,11 +87,6 @@
车间库存 -
@@ -146,15 +139,18 @@ :mtype="wmtype" :apiObj="apiObjPrint" > - - - + + + + + + + + + + + + @@ -176,8 +172,10 @@ export default { paramsWm: { count__gte: 1, material__type: 10 }, nodes:[], edges:[], + tableData:[], queryWm: {}, wmtype:0, + totalCount:0, print_m:false, limitedWatch:false, materialsVisible:false, @@ -240,9 +238,32 @@ export default { }, mounted() { this.getWarehouse(); - // this.getProcessOptions() + this.getProductCount(); }, methods: { + getProductCount(){ + let that = this; + let query ={ + select_dept: "", + groupby_dept: "", + material_types: "10", + select_material: "material.name as material_name", + groupby_material: "material.name", + select_material_name: "", + groupby_material_name: "" + }; + that.$API.bi.dataset.exec.req("materialCount", {query:query }).then((res) => { + let data = that.tableData = res.data2.ds0; + let totalCount = 0; + data.forEach(item => { + totalCount += item.count; + }); + that.totalCount = totalCount; + if (res.echart_options) { + that.echartsOptions = JSON.parse(res.echart_options); + } + }) + }, getWarehouse() { this.$API.inm.warehouse.list.req({ page: 0 }).then((res) => { this.warehouseOptions = res; @@ -262,16 +283,8 @@ export default { resetQuery() { this.query = {}; }, - handleWatch(row) { - let that = this; - that.$API.wpm.batchlog.dag.req({batch:row.batch}).then((res) => { - that.nodes = res.nodes; - that.edges = res.edges; - that.limitedWatch = true; - that.$nextTick(() => { - that.$refs.degraDialogs.open(); - }); - }) + handleWatch() { + this.limitedWatch = true; }, //打签 printMaterial(row,type){