From 519fd6dc67a4db8fdba7e63b61fc6cc0e28f04c1 Mon Sep 17 00:00:00 2001
From: zuozhengqing <a13193816592@163.com>
Date: 星期四, 16 十一月 2023 16:06:56 +0800
Subject: [PATCH] 采购管理更新字段

---
 src/views/purchaseManage/purchase/index.vue |   25 ++++++++++++++-----------
 1 files changed, 14 insertions(+), 11 deletions(-)

diff --git a/src/views/purchaseManage/purchase/index.vue b/src/views/purchaseManage/purchase/index.vue
index e16f0dd..7fda0cf 100644
--- a/src/views/purchaseManage/purchase/index.vue
+++ b/src/views/purchaseManage/purchase/index.vue
@@ -104,7 +104,7 @@
         { label: "閲囪喘鍗曞彿", prop: "number", min: 150, isCommonClick: true ,default:true},
         { label: "閲囪喘鍗曞悕绉�", prop: "name", min: 130, isCommonClick: true },
         { label: "鍗曟嵁绫诲瀷", prop: "orderType", min: 130 },
-        { label: "渚涘簲鍟嗗悕绉�", prop: "contact", min: 130 },
+        { label: "渚涘簲鍟嗗悕绉�", prop: "supplierName", min: 130 },
         { label: "閲囪喘鏁伴噺", prop: "quantity", min: 130 },
         { label: "鏀惰揣浠撳簱", prop: "warehouse", min: 130 },
         { label: "缁忓姙浜�", prop: "handledBy", min: 130 },
@@ -166,16 +166,19 @@
         page: this.pagerOptions.currPage,
         pageSize: this.pagerOptions.pageSize
       })
-        .then((res) => {
-          if (res.data.code === 200) {
-            const list = res.data.data.list
-            this.tableList.tableInfomation = list || []
-            this.pagerOptions.totalCount = res.data.data.total
-          }
-        })
-        .catch((err) => {
-          console.log(err)
-        })
+      .then((res) => {
+        if (res.data.code === 200) {
+          let list = res.data.data.list
+          list.map((item)=>{
+            item.supplierName=item.supplier.name
+          })
+          this.tableList.tableInfomation = list || []
+          this.pagerOptions.totalCount = res.data.data.total
+        }
+      })
+      .catch((err) => {
+        console.log(err)
+      })
     },
     // 鑾峰彇渚涘簲鍟嗘暟鎹�
     async getSupplierData() {

--
Gitblit v1.8.0