From bb4090e9741beae6578bb532cd488f7f9297fcf4 Mon Sep 17 00:00:00 2001
From: haoxuan <haoxuan>
Date: 星期三, 17 四月 2024 10:14:13 +0800
Subject: [PATCH] 库存调整, 表格编辑的交互问题修改+新建调用接口错误的问题修改
---
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