From fc6d1505b9d763e4d387a4c6c589ae6d88675eb7 Mon Sep 17 00:00:00 2001
From: songshankun <songshankun@foxmail.com>
Date: 星期三, 18 十月 2023 14:38:53 +0800
Subject: [PATCH] feat: 统计组件添加判空; 添加在库数据展示

---
 src/views/productManage/product/AddProductDialog.vue |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/src/views/productManage/product/AddProductDialog.vue b/src/views/productManage/product/AddProductDialog.vue
index 8bb5ebb..d3b49a6 100644
--- a/src/views/productManage/product/AddProductDialog.vue
+++ b/src/views/productManage/product/AddProductDialog.vue
@@ -40,6 +40,7 @@
             :add-product="addProduct"
             @inOutBoundClick="inOutBoundClick"
             :show-procure="showProcure"
+            :countObject="statisticsMap"
             :show-sale="showSale"
           />
           <div class="bottom">
@@ -524,7 +525,10 @@
         { name: "杈呮枡", id: "杈呮枡" },
         { name: "鑰楁潗", id: "鑰楁潗" },
         { name: "鍏朵粬", id: "鍏朵粬" }
-      ]
+      ],
+      statisticsMap: {
+        inLibrary: 0 // 鍦ㄥ簱
+      }
     }
   },
   created() {
@@ -532,6 +536,7 @@
     this.getProductList()
     this.setTableForm()
     this.setBottonView()
+    this.statisticsMap.inLibrary = this.editConfig?.infomation?.amount ?? 0
   },
   methods: {
     // 鑾峰彇浜у搧绫诲埆

--
Gitblit v1.8.0