From c25c96c5dd793c999b2796c0d00f662ce98317f3 Mon Sep 17 00:00:00 2001
From: haoxuan <haoxuan>
Date: 星期二, 24 十月 2023 17:56:27 +0800
Subject: [PATCH] 修改编码的 trigger设置

---
 src/views/sales/salesDetails/DetailSpecification.vue |   49 +++++++++++++++----------------------------------
 1 files changed, 15 insertions(+), 34 deletions(-)

diff --git a/src/views/sales/salesDetails/DetailSpecification.vue b/src/views/sales/salesDetails/DetailSpecification.vue
index 540e5f7..b7e5b9b 100644
--- a/src/views/sales/salesDetails/DetailSpecification.vue
+++ b/src/views/sales/salesDetails/DetailSpecification.vue
@@ -9,7 +9,7 @@
     >
       <template slot="title">
         <div class="header">
-          <span class="header-label">璁㈠崟缂栧彿</span>
+          <span class="header-label">閿�鍞槑缁嗗崟</span>
           <span class="header-title">{{ detailConfig.infomation.number }}</span>
         </div>
       </template>
@@ -48,7 +48,7 @@
             <el-tab-pane label="閿�鍞彂绁�" name="invoice"></el-tab-pane>
             <el-tab-pane label="閿�鍞��璐у崟" name="return"> </el-tab-pane>
             <el-tab-pane label="鏈嶅姟鍚堝悓" name="serviceContract"></el-tab-pane>
-            <el-tab-pane label="閿�鍞��娆惧崟" name="refundForm"></el-tab-pane>
+            <!-- <el-tab-pane label="閿�鍞��娆惧崟" name="refundForm"></el-tab-pane> -->
           </el-tabs>
         </div>
         <div v-if="activeName === 'first'" class="detail">
@@ -257,8 +257,8 @@
       showSummary: {
         show: true,
         total: true,
-        sumProp: ["other1", "other2", "other3", "other4"],
-        mergeNumber: 3
+        sumProp: ["amount", "price", "total"],
+        mergeNumber: 1
       },
       productTableList: {},
       addConfig: {}
@@ -274,8 +274,9 @@
       common_name: this.detailConfig.infomation.name,
       client_name: this.detailConfig.infomation.client.name,
       contact_name: this.detailConfig.infomation.contact_name,
-      client_id: this.detailConfig.infomation.client_id,
-      contact_id: this.detailConfig.infomation.contact_id
+      client_id: this.detailConfig.infomation.clientId,
+      contact_id: this.detailConfig.infomation.contact_id,
+      amountTotal: this.detailConfig.infomation.amountTotal
     }
     this.setTableForm()
   },
@@ -339,7 +340,7 @@
           leftStr: "鍒涘缓浜�",
           leftValue: "",
           rightStr: "鍒涘缓鏃堕棿",
-          rightValue: ""
+          rightValue: item.createTime
         }
       ]
       this.deliveryInfoList = [
@@ -359,7 +360,7 @@
       this.dynamicInfoList = [
         {
           leftStr: "淇敼鏃堕棿",
-          leftValue: "",
+          leftValue: item.updateTime,
           rightStr: "鍑哄簱鐘舵��",
           rightValue: ""
         },
@@ -411,33 +412,13 @@
     },
     setTableForm() {
       this.productTableList = {
-        tableData: [
-          {
-            id: "1",
-            productName: "涓婃捣鏈夐檺鍏徃",
-            other0: "ZDYBD03-1",
-            other1: "12",
-            other2: "5.00",
-            other4: "3.00",
-            other3: "2.00"
-          }
-        ],
+        tableData: this.detailConfig.infomation.products,
         tableColumn: [
-          { label: "#", prop: "id", width: 40 },
-          { label: "鍚◣鍗曚环", prop: "other9", input: true },
-          { label: "浜у搧鍚嶇О", prop: "productName", input: true, isRequird: true },
-          { label: "浜у搧缂栧彿", prop: "other0" },
-          { label: "鏁伴噺", prop: "other1", input: true, isRequird: true },
-          { label: "鎶樻墸鐜�(%)", prop: "other6", input: true },
-          { label: "涓嶅惈绋庡崟浠�", prop: "other7", input: true },
-          { label: "鎶樻墸棰�", prop: "other2" },
-          { label: "绋�(閿�鍞�)", prop: "other7", input: true },
-          { label: "瀹為檯鍚◣鍗曚环", prop: "other3" },
-          { label: "涓嶅惈绋庨噾棰�", prop: "other4" },
-          { label: "浠风◣鍚堣", prop: "other3", input: true },
-          { label: "鎻忚堪", prop: "other8" },
-          { label: "婧愬崟绫诲瀷", prop: "other5" },
-          { label: "婧愬崟", prop: "other6" }
+          { label: "浜у搧鍚嶇О", prop: "name", productName: true, isRequird: true },
+          { label: "浜у搧缂栧彿", prop: "number" },
+          { label: "鏁伴噺", prop: "amount", inputNumber: true, isRequird: true },
+          { label: "閿�鍞崟浠�", prop: "price", inputFloat: true },
+          { label: "浠风◣鍚堣", prop: "total", inputFloat: true }
         ]
       }
     }

--
Gitblit v1.8.0