From 5948315e24e88cf5b87c0aefb12c51c886da7601 Mon Sep 17 00:00:00 2001 From: haoxuan <haoxuan> Date: 星期三, 18 十月 2023 19:50:08 +0800 Subject: [PATCH] Merge branch 'dev' of http://192.168.5.5:10010/r/web/WMS into dev --- src/views/productManage/product/AddProductDialog.vue | 21 ++++++++++++++++++++- 1 files changed, 20 insertions(+), 1 deletions(-) diff --git a/src/views/productManage/product/AddProductDialog.vue b/src/views/productManage/product/AddProductDialog.vue index 8bb5ebb..27f441a 100644 --- a/src/views/productManage/product/AddProductDialog.vue +++ b/src/views/productManage/product/AddProductDialog.vue @@ -39,7 +39,9 @@ <FormBtnsView :add-product="addProduct" @inOutBoundClick="inOutBoundClick" + @inLibraryClick="inLibraryClick" :show-procure="showProcure" + :countObject="statisticsMap" :show-sale="showSale" /> <div class="bottom"> @@ -524,7 +526,10 @@ { name: "杈呮枡", id: "杈呮枡" }, { name: "鑰楁潗", id: "鑰楁潗" }, { name: "鍏朵粬", id: "鍏朵粬" } - ] + ], + statisticsMap: { + inLibrary: 0 // 鍦ㄥ簱 + } } }, created() { @@ -532,6 +537,7 @@ this.getProductList() this.setTableForm() this.setBottonView() + this.statisticsMap.inLibrary = this.editConfig?.infomation?.amount ?? 0 }, methods: { // 鑾峰彇浜у搧绫诲埆 @@ -724,6 +730,19 @@ }) } }, + // 鍦ㄥ簱鐐瑰嚮 + inLibraryClick(){ + if (this.editConfig.title !== "鏂板缓") { + console.log(this.editConfig.infomation) + this.$router.push({ + name: "inventoryReport", + params: { + name: this.editConfig.infomation.name, + id: this.editConfig.infomation.id + } + }) + } + }, // 鍙攢鍞�/鍙噰璐� checkboxChange(val, param) { if (val === "閲囪喘") { -- Gitblit v1.8.0