From a11d38dff8d7beca6d33251557b7e370c155faf1 Mon Sep 17 00:00:00 2001 From: yangfeng <wanwan926_4@163.com> Date: 星期三, 18 十月 2023 17:10:41 +0800 Subject: [PATCH] 新建调拨弹窗样式调整(5288) --- 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