From 6c98ce3e2b28c1dcc73e79308dd1106637faff93 Mon Sep 17 00:00:00 2001
From: zuozhengqing <a13193816592@163.com>
Date: 星期四, 12 十月 2023 20:50:14 +0800
Subject: [PATCH] 服务合同-接口参数调整

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

diff --git a/src/views/sales/salesDetails/DetailSpecification.vue b/src/views/sales/salesDetails/DetailSpecification.vue
index 0e4cddf..4deabf7 100644
--- a/src/views/sales/salesDetails/DetailSpecification.vue
+++ b/src/views/sales/salesDetails/DetailSpecification.vue
@@ -191,22 +191,22 @@
           </div>
         </div>
         <div v-if="activeName === 'collection'" class="second">
-          <!-- <FollowupRecords :isDetail="true" /> -->
+          <CollectionPlan :isDetail="true" :add-config="addConfig" :source-type="1" />
         </div>
         <div v-if="activeName === 'receipt'" class="second">
-          <!-- <FollowupRecords :isDetail="true" /> -->
+          <Receipt :isDetail="true" :add-config="addConfig" :source-type="1" />
         </div>
         <div v-if="activeName === 'invoice'" class="second">
-          <!-- <FollowupRecords :isDetail="true" /> -->
+          <SaleInvoice :isDetail="true" :add-config="addConfig" :source-type="1" />
         </div>
         <div v-if="activeName === 'return'" class="second">
-          <SalesReturn :isDetail="true" />
+          <SalesReturn :isDetail="true" :add-config="addConfig" />
         </div>
         <div v-if="activeName === 'serviceContract'" class="second">
-          <ServiceContract :isDetail="true" />
+          <ServiceContract :isDetail="true" :add-config="addConfig" />
         </div>
         <div v-if="activeName === 'refundForm'" class="second">
-          <RefundForm :isDetail="true" />
+          <RefundForm :isDetail="true" :add-config="addConfig" />
         </div>
       </div>
     </el-drawer>
@@ -219,6 +219,9 @@
 import RefundForm from "@/views/sales/refundForm"
 import Status from "@/common/const/salesFixedStatus"
 import CommonFormTableView from "@/components/makepager/CommonFormTableView"
+import CollectionPlan from "@/views/other/payment/collectionPlan"
+import Receipt from "@/views/other/payment/receipt"
+import SaleInvoice from "@/views/other/payment/saleInvoice"
 export default {
   name: "DetailSpecification",
   props: {
@@ -232,7 +235,7 @@
       }
     }
   },
-  components: { SalesReturn, ServiceContract, RefundForm, CommonFormTableView },
+  components: { SalesReturn, ServiceContract, RefundForm, CommonFormTableView, CollectionPlan, Receipt, SaleInvoice },
   computed: {},
   data() {
     return {
@@ -254,14 +257,27 @@
       showSummary: {
         show: true,
         total: true,
-        sumProp: ["other1", "other2", "other3", "other4"],
-        mergeNumber: 3
+        sumProp: ["amount", "price", "total"],
+        mergeNumber: 1
       },
-      productTableList: {}
+      productTableList: {},
+      addConfig: {}
     }
   },
   created() {
     this.setData(this.detailConfig.infomation)
+    this.addConfig = {
+      id_name: "sale_detail_name",
+      keywordType: "閿�鍞槑缁嗗崟",
+      keyword: this.detailConfig.infomation.number,
+      id: this.detailConfig.infomation.id,
+      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,
+      amountTotal: this.detailConfig.infomation.amountTotal
+    }
     this.setTableForm()
   },
   mounted() {},
@@ -324,7 +340,7 @@
           leftStr: "鍒涘缓浜�",
           leftValue: "",
           rightStr: "鍒涘缓鏃堕棿",
-          rightValue: ""
+          rightValue: item.createTime
         }
       ]
       this.deliveryInfoList = [
@@ -344,7 +360,7 @@
       this.dynamicInfoList = [
         {
           leftStr: "淇敼鏃堕棿",
-          leftValue: "",
+          leftValue: item.updateTime,
           rightStr: "鍑哄簱鐘舵��",
           rightValue: ""
         },
@@ -396,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