From dd7fe1db0b9ca604664b59a906545fc1e13d55e2 Mon Sep 17 00:00:00 2001
From: zuozhengqing <a13193816592@163.com>
Date: 星期六, 30 三月 2024 10:37:08 +0800
Subject: [PATCH] 入库出库修改列表状态

---
 src/views/overview/AddOverviewDialog.vue |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/views/overview/AddOverviewDialog.vue b/src/views/overview/AddOverviewDialog.vue
index e7dda7d..e84bc86 100644
--- a/src/views/overview/AddOverviewDialog.vue
+++ b/src/views/overview/AddOverviewDialog.vue
@@ -1005,7 +1005,7 @@
           { label: "璁¢噺鍗曚綅", prop: "unit" },
           { label: "浜у搧瑙勬牸", prop: "specs" },
           { label: "浜у搧鍨嬪彿", prop: "model" },
-          // { label: "璋冨嚭浣嶇疆", prop: "fromLocationId", sonLocation: true, isRequird: true },
+          { label: "璋冨叆浣嶇疆", prop: "fromLocationId", sonLocation: true, isRequird: true },
           { label: "鏁伴噺", prop: "amount", inputFloat: true }
         ]
       } else if (this.workType === 3) {
@@ -1015,8 +1015,8 @@
           { label: "璁¢噺鍗曚綅", prop: "unit" },
           { label: "浜у搧瑙勬牸", prop: "specs" },
           { label: "浜у搧鍨嬪彿", prop: "model" },
-          { label: "璋冨嚭浣嶇疆", prop: "fromLocationId", sonLocation: true, isRequird: true },
-          { label: "璋冨叆浣嶇疆", prop: "toLocationId", toLocation: true, isRequird: true },
+          { label: "璋冨叆浣嶇疆", prop: "fromLocationId", sonLocation: true, isRequird: true },
+          { label: "璋冨嚭浣嶇疆", prop: "toLocationId", toLocation: true, isRequird: true },
           { label: "鏁伴噺", prop: "amount", inputFloat: true }
         ]
       }
@@ -1099,6 +1099,7 @@
       let list = this.tableData.map((res) => {
         return {
           ...res,
+          amount: 1,
           productName: res.name,
           productId: res.id
         }
@@ -1118,10 +1119,9 @@
     },
     // 鍒犻櫎
     handleDelClick(scope, value) {
-      console.log(scope)
       if (value === "鎿嶄綔") {
         this.tableData.splice(scope.$index, 1)
-        this.productTableList.tableData.splice(scope.$index, 1)
+        this.productTableList.tableData = this.tableData
         this.$message.success("鍒犻櫎鎴愬姛锛�")
       } else {
         this.detailTableData.splice(scope.$index, 1)

--
Gitblit v1.8.0