From 84a4fe2072b93f767b6747045af0cff8d212d9e9 Mon Sep 17 00:00:00 2001
From: zuozhengqing <a13193816592@163.com>
Date: 星期六, 23 三月 2024 15:24:19 +0800
Subject: [PATCH] 采购订单联调收货信息接口,状态修改

---
 src/views/purchaseManage/purchase/index.vue |   26 +++++++++++++++++++-------
 1 files changed, 19 insertions(+), 7 deletions(-)

diff --git a/src/views/purchaseManage/purchase/index.vue b/src/views/purchaseManage/purchase/index.vue
index f052302..affa53a 100644
--- a/src/views/purchaseManage/purchase/index.vue
+++ b/src/views/purchaseManage/purchase/index.vue
@@ -148,6 +148,7 @@
   getPurchaseInfo,
   newSubmitPurchase,
   deletePurchase,
+  getPurchaseQualityInspectionInfo,
   getOperationInfo
 } from "@/api/purchaseManage/purchase"
 import DetailSupplier from "@/views/purchaseManage/purchase/DetailSupplier"
@@ -178,13 +179,13 @@
     ]
     // 鏀惰揣淇℃伅
     const recriveColumn = [
-      { label: "鏀惰揣鏃堕棿", prop: "operationNumber", default: true },
+      { label: "鏀惰揣鏃堕棿", prop: "createTime", default: true },
       { label: "鏀惰揣浜�", prop: "principal" },
-      { label: "浜у搧鍚嶇О", prop: "name" },
-      { label: "浜у搧缂栫爜", prop: "number" },
-      { label: "瑙勬牸", prop: "warehouseName" },
+      { label: "浜у搧鍚嶇О", prop: "productName" },
+      { label: "浜у搧缂栫爜", prop: "productId" },
+      { label: "瑙勬牸", prop: "specs" },
       { label: "鏁伴噺", prop: "amount" },
-      { label: "鍗曚綅", prop: "overTime" },
+      { label: "鍗曚綅", prop: "unit" },
       { label: "鐘舵��", prop: "status", isCallMethod: true, getCallMethod: this.getreceiveStatusStatus }
     ]
     // 鍏ュ簱淇℃伅
@@ -665,7 +666,6 @@
     },
     // 鑾峰彇浜у搧/鏀惰揣淇℃伅
     async getProductInventoryInfo(row) {
-      console.log(row)
       if (this.TabsIndex == 0 && row.status == 1) {
         getPurchaseInfo({ id: row.id }).then((res) => {
           if (res.code == 200) {
@@ -676,7 +676,17 @@
         })
       } else if (this.TabsIndex == 1 && row.status == 1) {
         this.productTableList.tableInfomation = []
-      } else {
+      } else if(this.TabsIndex==1 && row.status==7||row.status==8){
+        getPurchaseQualityInspectionInfo({
+            purchaseNumber: row.number,
+          }).then((res)=>{
+          if (res.code == 200) {
+            this.productTableList.tableInfomation = res.data
+          } else {
+            this.$message.error(res.msg ? res.msg + "," : "" + "鑾峰彇淇℃伅澶辫触锛�")
+          }""
+        })
+      }else if(this.TabsIndex==2){
         getOperationInfo({ id: row.id }).then((res) => {
           if (res.code == 200) {
             this.productTableList.tableInfomation = res.data
@@ -684,6 +694,8 @@
             this.$message.error(res.msg ? res.msg + "," : "" + "鑾峰彇淇℃伅澶辫触锛�")
           }
         })
+      }else{
+        this.productTableList.tableInfomation =[]
       }
     }
   }

--
Gitblit v1.8.0