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/client/followupRecords/index.vue |   13 ++++++++-----
 1 files changed, 8 insertions(+), 5 deletions(-)

diff --git a/src/views/client/followupRecords/index.vue b/src/views/client/followupRecords/index.vue
index 592b2bb..9a5954e 100644
--- a/src/views/client/followupRecords/index.vue
+++ b/src/views/client/followupRecords/index.vue
@@ -50,7 +50,7 @@
       </div>
     </div>
     <!-- 鏂板缓/缂栬緫璺熻繘璁板綍 -->
-    <AddFollowupRecordsDialog v-if="editConfig.visible" :edit-contacts-config="editConfig" />
+    <AddFollowupRecordsDialog :is-detail="isDetail" v-if="editConfig.visible" :edit-contacts-config="editConfig" />
     <!-- 鑱旂郴浜鸿鎯� -->
     <DetailContacts v-if="contactsDeail.visible" :contacts-detail="contactsDeail" />
     <!-- 瀹㈡埛璇︽儏 -->
@@ -171,7 +171,7 @@
       if (this.addConfig.keywordType === "閿�鍞満浼�") {
         content = this.addConfig.id
       } else {
-        content = this.addConfig.common_name
+        content = this.addConfig.id
       }
       this.search_map = {
         [this.addConfig.id_name]: content
@@ -249,21 +249,24 @@
     },
     // 鎼滅储
     onFilterSearch(searchText) {
-      this.search_map.name = searchText ?? ""
+      this.search_map.client_name = searchText ?? ""
       this.pagerOptions.currPage = 1
       this.getData()
     },
     // 鏂板缓
     addBtnClick() {
       this.editConfig.title = "鏂板缓"
-      this.editConfig.infomation = { ...this.addConfig }
+      this.editConfig.infomation = { ...this.addConfig ,contact_name:"",sales_leads_name:"",sale_chance_name:""}
       this.editConfig.visible = true
     },
     // 缂栬緫
     handleClick(row) {
       console.log(row)
       this.editConfig.title = "缂栬緫"
-      this.editConfig.infomation = { ...row, sale_chance_name: "", sales_leads_name: "" }
+      let config=JSON.parse(JSON.stringify(row));
+      config.client_status_id=config.client_status_id?config.client_status_id:null
+      config.contact_information_id=config.contact_information_id?config.contact_information_id:null
+      this.editConfig.infomation = { ...config, sale_chance_name: "", sales_leads_name: "" }
       this.editConfig.visible = true
     },
     // 鍒犻櫎

--
Gitblit v1.8.0