From f3cb03e9e6cbd21bc5f1d9b2570f964d29a48aa8 Mon Sep 17 00:00:00 2001
From: zuozhengqing <a13193816592@163.com>
Date: 星期一, 15 四月 2024 10:09:56 +0800
Subject: [PATCH] 库存调整更换接口

---
 src/views/operate/inventoryAdjustment/index.vue |   17 ++++++++++++++---
 1 files changed, 14 insertions(+), 3 deletions(-)

diff --git a/src/views/operate/inventoryAdjustment/index.vue b/src/views/operate/inventoryAdjustment/index.vue
index 10a7700..daa9bec 100644
--- a/src/views/operate/inventoryAdjustment/index.vue
+++ b/src/views/operate/inventoryAdjustment/index.vue
@@ -64,9 +64,11 @@
   getInventoryAdjustmentList,
   addInventoryAdjustment,
   updateInventoryAdjustment,
-  finishInventoryAdjustment
+  finishInventoryAdjustment,
+  getLocationProductAmount
 } from "@/api/operate/inventoryAdjustment"
 import { currentTime } from "@/common/config/index"
+
 export default {
   name: "InventoryAdjustment",
   props: {},
@@ -314,10 +316,19 @@
       console.log(item, prop)
       this.locationId = item.value
     },
-    // 閫変腑浜у搧鏂规硶
-    selProductClick(value, item) {
+    // 閫夋嫨浜у搧鏂规硶
+    async selProductClick(value, item) {
+          console.log("鐪嬬湅杩斿洖",this.tableData)
       if (value === "product") {
         this.productId = item.productId
+        await getLocationProductAmount({
+          locationId:this.locationId,
+          productId:this.productId
+        }).then((res)=>{
+          if(res&&res.code===200){
+            this.tableData[0].amount=res.data.amount||0
+          }
+        })
       }
     },
     // 鑾峰彇褰撳墠鏃堕棿

--
Gitblit v1.8.0