From 87f7f7a7588e926c6535eea2910ae98ca4101994 Mon Sep 17 00:00:00 2001
From: haoxuan <haoxuan>
Date: 星期二, 29 八月 2023 18:52:49 +0800
Subject: [PATCH] 采购 添加 列表编辑 子段补充,联调

---
 src/views/purchaseManage/purchase/DetailSupplier.vue |   25 +++++++++++++++++++------
 1 files changed, 19 insertions(+), 6 deletions(-)

diff --git a/src/views/purchaseManage/purchase/DetailSupplier.vue b/src/views/purchaseManage/purchase/DetailSupplier.vue
index f57178d..440d449 100644
--- a/src/views/purchaseManage/purchase/DetailSupplier.vue
+++ b/src/views/purchaseManage/purchase/DetailSupplier.vue
@@ -153,6 +153,7 @@
 
 <script>
 import { deletePurchase } from "@/api/purchaseManage/purchase";
+import { getDataByType } from "@/api/data";
 export default {
   name: "DetailSupplier",
   props: {
@@ -184,10 +185,11 @@
       tableList: {},
       showSummary:{
         show: true,
-        sumProp: ["number", "total"],
-        mergeNumber: 4,
+        sumProp: ["amount", "total"],
+        mergeNumber: 5,
         totalName:'灏忚'
       },
+      purchaseStatusList:getDataByType('purchaseStatus'),
     };
   },
   created() {
@@ -197,6 +199,17 @@
   mounted() {},
   computed: {},
   methods: {
+    getpurchaseStatus(val) {
+      if (val) {
+        for (let i in this.purchaseStatusList) {
+          if (this.purchaseStatusList[i].id == val) {
+            return this.purchaseStatusList[i].name;
+          }
+        }
+      } else {
+        return "--";
+      }
+    },
     // email 閫氱煡涓嬪崟
     emailClick() {},
     // 鍒犻櫎
@@ -267,7 +280,7 @@
         },
         {
           leftStr: "閲囪喘鍗曠姸鎬�",
-          leftValue: item.contact_name,
+          leftValue: this.getpurchaseStatus(item.status),
           rightStr: "閲囪喘璐熻矗浜�",
           rightValue: item.contact_position,
         },
@@ -285,7 +298,7 @@
         },
         {
           leftStr: "鍒拌揣浠撳簱",
-          leftValue: item.sales_resources,
+          leftValue: item.warehouse,
           rightStr: "",
           rightValue: "",
         },
@@ -314,8 +327,8 @@
         tableInfomation: item.productList?item.productList:[],
         selectIndex: true,
         tableColumn: [
-          { label: "浜у搧鍚嶇О", prop: "name", min: 190, isCommonClick: true },
-          { label: "浜у搧缂栫爜", prop: "number", min: 130, isCommonClick: true },
+          { label: "浜у搧鍚嶇О", prop: "name", min: 160,  },
+          { label: "浜у搧缂栫爜", prop: "number", min: 130, },
           { label: "璁¢噺鍗曚綅", prop: "unit", min: 130 },
           { label: "瑙勬牸鍨嬪彿", prop: "specifications", min: 130 },
           { label: "鏁伴噺", prop: "amount", min: 130 },

--
Gitblit v1.8.0