From d4f4c52402b91cb8e17c1845da71c5e39662fde0 Mon Sep 17 00:00:00 2001
From: yangfeng <wanwan926_4@163.com>
Date: 星期三, 03 一月 2024 15:28:06 +0800
Subject: [PATCH] 销售报价单列表页增加统计内容及接口联调、添加报价单天天客户名称及对应限制功能

---
 src/views/other/payment/receipt/index.vue |   25 +++++++++++++------------
 1 files changed, 13 insertions(+), 12 deletions(-)

diff --git a/src/views/other/payment/receipt/index.vue b/src/views/other/payment/receipt/index.vue
index 6270398..5649bb0 100644
--- a/src/views/other/payment/receipt/index.vue
+++ b/src/views/other/payment/receipt/index.vue
@@ -146,9 +146,7 @@
     }
     this.getData()
   },
-  mounted() {
-    console.log(this.addConfig, "杩欐槸鍟�")
-  },
+  mounted() {},
   methods: {
     setTable() {
       this.tableList = {
@@ -182,26 +180,28 @@
       // console.log()
       this.loading = true
       let params = {}
-      let sourceTyle = this.addConfig.keywordType === "閿�鍞槑缁嗗崟" ? 1 : 2
+      let sourceTyle = this.addConfig.keywordType === "閿�鍞槑缁嗗崟" || this.addConfig.keywordType === "瀹㈡埛鍚嶇О" ? 1 : 2
       if (this.addConfig.id) {
         params = {
-          sourceID: this.addConfig.id,
+          sourceId: this.addConfig.id,
           sourceType: sourceTyle,
           page: this.pagerOptions.currPage,
-          pageSize: this.pagerOptions.pageSize
+          pageSize: this.pagerOptions.pageSize,
+          client_id: this.addConfig.client_id
         }
       } else {
         params = {
           keyword: this.keyword,
           keywordType: this.keywordType,
           page: this.pagerOptions.currPage,
-          pageSize: this.pagerOptions.pageSize
+          pageSize: this.pagerOptions.pageSize,
+          client_id: this.addConfig.client_id
         }
       }
       await getReceiptList(params)
         .then((res) => {
-          if (res.data.code === 200) {
-            const resList = res?.data?.data?.data ?? []
+          if (res.code === 200) {
+            const resList = res?.data?.data ?? []
             if (resList.length > 0) {
               const list = resList.map((item) => {
                 return {
@@ -212,7 +212,7 @@
                 }
               })
               this.tableList.tableInfomation = list || []
-              this.pagerOptions.totalCount = res.data.data.count
+              this.pagerOptions.totalCount = res.data.count
             } else {
               this.tableList.tableInfomation = []
             }
@@ -246,8 +246,9 @@
     addBtnClick() {
       this.editConfig.visible = true
       this.editConfig.title = "鏂板缓"
-      this.editConfig.sourceType = this.sourceType
-      this.editConfig.infomation = { ...this.addConfig, number: "" }
+      this.editConfig.sourceType = this.addConfig.keywordType === "瀹㈡埛鍚嶇О" ? 1 : this.sourceType
+      console.log(this.addConfig)
+      this.editConfig.infomation = { ...this.addConfig, saleDetailNumber: "" }
     }
   }
 }

--
Gitblit v1.8.0