From ecba7c3d82e2114ef6c01480d7c6add5f20904d8 Mon Sep 17 00:00:00 2001
From: zuozhengqing <a13193816592@163.com>
Date: 星期四, 28 三月 2024 17:59:06 +0800
Subject: [PATCH] 到货确认不再过滤本次收货为0的数据

---
 src/views/purchaseManage/purchase/index.vue |   33 +++++++++++++++++++++------------
 1 files changed, 21 insertions(+), 12 deletions(-)

diff --git a/src/views/purchaseManage/purchase/index.vue b/src/views/purchaseManage/purchase/index.vue
index 9b7ca55..775a993 100644
--- a/src/views/purchaseManage/purchase/index.vue
+++ b/src/views/purchaseManage/purchase/index.vue
@@ -203,7 +203,7 @@
       { label: "鏀惰揣浠撳簱", prop: "warehouseName" },
       { label: "浜у搧鍚嶇О", prop: "name" },
       { label: "浜у搧缂栫爜", prop: "number" },
-      { label: "鏁伴噺", prop: "amount" },
+      { label: "鏁伴噺", prop: "overAmount" },
       { label: "鍏ュ簱鏃堕棿", prop: "overTime" },
       { label: "鏀惰揣浜�", prop: "principal" },
       { label: "鐘舵��", prop: "status", isCallMethod: true, getCallMethod: this.getWarehouseStatus }
@@ -629,7 +629,11 @@
             this.$message.error(res.msg ? res.msg + "," : "" + "鑾峰彇淇℃伅澶辫触锛�")
           }
         })
-      } else if (this.TabsIndex == 2) {
+      } else if (
+        (this.TabsIndex == 2 && row.status == 8) ||
+        (this.TabsIndex == 2 && row.status == 2) ||
+        (this.TabsIndex == 2 && row.status == 3)
+      ) {
         getOperationInfo({ id: row.id }).then((res) => {
           if (res.code == 200) {
             this.productTableList.tableInfomation = res.data
@@ -712,15 +716,16 @@
     },
     // 鑾峰彇浜у搧/鏀惰揣淇℃伅
     async getProductInventoryInfo(row) {
-      if (this.TabsIndex == 0) {
-        getPurchaseInfo({ id: row.id }).then((res) => {
-          if (res.code == 200) {
-            this.productTableList.tableInfomation = res.data.productList
-          } else {
-            this.$message.error(res.msg ? res.msg + "," : "" + "鑾峰彇淇℃伅澶辫触锛�")
-          }
-        })
-      } else if (this.TabsIndex == 1 && row.status == 1) {
+      // if (this.TabsIndex == 0) {
+      //   getPurchaseInfo({ id: row.id }).then((res) => {
+      //     if (res.code == 200) {
+      //       this.productTableList.tableInfomation = res.data.productList
+      //     } else {
+      //       this.$message.error(res.msg ? res.msg + "," : "" + "鑾峰彇淇℃伅澶辫触锛�")
+      //     }
+      //   })
+      // } else 
+      if (this.TabsIndex == 1 && row.status == 1) {
         this.productTableList.tableInfomation = []
       } else if (
         (this.TabsIndex == 1 && row.status == 7) ||
@@ -737,7 +742,11 @@
             this.$message.error(res.msg ? res.msg + "," : "" + "鑾峰彇淇℃伅澶辫触锛�")
           }
         })
-      } else if (this.TabsIndex == 2) {
+      } else if (this.TabsIndex == 0||
+        (this.TabsIndex == 2 && row.status == 8) ||
+        (this.TabsIndex == 2 && row.status == 2) ||
+        (this.TabsIndex == 2 && row.status == 3)
+      ) {
         getOperationInfo({ id: row.id }).then((res) => {
           if (res.code == 200) {
             this.productTableList.tableInfomation = res.data

--
Gitblit v1.8.0