From a99b4aeb7e61be31a7dad81719a4e2102b284963 Mon Sep 17 00:00:00 2001
From: zuozhengqing <a13193816592@163.com>
Date: 星期二, 26 三月 2024 09:50:17 +0800
Subject: [PATCH] 采购管理:到货确认添加全部合格入库

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

diff --git a/src/views/purchaseManage/purchase/index.vue b/src/views/purchaseManage/purchase/index.vue
index 53d8dad..08caf16 100644
--- a/src/views/purchaseManage/purchase/index.vue
+++ b/src/views/purchaseManage/purchase/index.vue
@@ -166,9 +166,9 @@
   data() {
     // 浜у搧淇℃伅
     const productColumn = [
-      { label: "浜у搧缂栧彿", prop: "number", default: true },
-      { label: "浜у搧鍚嶇О", prop: "name" },
-      { label: "瑙勬牸", prop: "specifications" },
+      { label: "浜у搧缂栧彿", prop: "productId", default: true },
+      { label: "浜у搧鍚嶇О", prop: "productName" },
+      { label: "瑙勬牸", prop: "specs" },
       { label: "鍨嬪彿", prop: "modelNumber" },
       { label: "閲囪喘鏁伴噺", prop: "amount" },
       { label: "宸插彂璐ф暟閲�", prop: "sendAmount" },
@@ -250,7 +250,7 @@
       showCol: ["閲囪喘鍗曞彿", "閲囪喘鍗曞悕绉�", "鍗曟嵁绫诲瀷", "渚涘簲鍟嗗悕绉�", "閲囪喘鏁伴噺", "鏀惰揣浠撳簱", "缁忓姙浜�", "鍒跺崟浜�"],
       tableBottomColumn: [],
       showBottomCol: [],
-      TabsIndex: "0",
+      TabsIndex: 0,
       productTableList: {},
       // 浜у搧淇℃伅
       productColumn: productColumn,
@@ -369,7 +369,8 @@
             this.pagerOptions.totalCount = res.data.total
             if (res.data.total > 0) {
               this.selectRow = this.tableList.tableInfomation.length > 0 ? this.tableList.tableInfomation[0] : {}
-              this.tableRowClick(this.selectRow)
+              // this.tableRowClick(this.selectRow)
+              this.getProductInventoryInfo(this.selectRow)
             }
           }
         })
@@ -687,7 +688,7 @@
         })
       } else if (this.TabsIndex == 1 && row.status == 1) {
         this.productTableList.tableInfomation = []
-      } else if(this.TabsIndex==1 && row.status==7||row.status==8){
+      } else if(this.TabsIndex==1 && row.status==7||this.TabsIndex==1&&row.status==8){
         getPurchaseQualityInspectionInfo({
             purchaseNumber: row.number,
           }).then((res)=>{

--
Gitblit v1.8.0