From 95ff77e1e2994fe1088c69b326bdd7023c8563dc Mon Sep 17 00:00:00 2001
From: haoxuan <haoxuan>
Date: 星期三, 17 四月 2024 14:32:24 +0800
Subject: [PATCH] Merge branch 'dev' of http://192.168.5.5:10010/r/web/WMS into zzq

---
 src/views/operate/inventoryAdjustment/index.vue |   10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/src/views/operate/inventoryAdjustment/index.vue b/src/views/operate/inventoryAdjustment/index.vue
index 3fbf293..90897a0 100644
--- a/src/views/operate/inventoryAdjustment/index.vue
+++ b/src/views/operate/inventoryAdjustment/index.vue
@@ -209,7 +209,8 @@
     // 鏄惁閫夋嫨浜у搧
     isSel() {
       for (let i = 0; i < this.tableData.length; i++) {
-        if (this.tableData[i].productName?.length === 0) {
+        // this.tableData[i].productName?.length === 0||!this.tableData[i].productId
+        if (!this.tableData[i].productId||!this.tableData[i].isEdit) {
           this.isNoProduct = false
           break
         } else {
@@ -281,8 +282,9 @@
       this.locationId = row.locationId
       this.rowIndex = rowIndex
       this.isSel()
-      if (!this.isNoProduct && this.currentRowId === 0) {
-        this.$message.error("璇峰畬鎴愬綋鍓嶆柊寤烘垨鍙栨秷鏂板缓")
+      //!this.isNoProduct && this.currentRowId == 0
+      if (!this.isNoProduct) {
+        this.$message.error("璇峰畬鎴愬綋鍓嶄繚瀛樻垨鍙栨秷淇濆瓨锛�")
       } else {
         this.currentRowId = row.id
         this.addTitle = "淇濆瓨"
@@ -326,7 +328,7 @@
           productId:this.productId
         }).then((res)=>{
           if(res&&res.code===200){
-            this.tableData[0].amount=res.data.amount||0
+            this.tableData[0].amount=res.data?res.data.amount:0
           }
         })
       }

--
Gitblit v1.8.0