From 6887629cbd7c09407d25a6199d8ddd878d17da4f Mon Sep 17 00:00:00 2001
From: haoxuan <haoxuan>
Date: 星期二, 24 十月 2023 17:50:11 +0800
Subject: [PATCH] 客户管理,跟进记录,线索,发票,合同管理,总单,报价单,退款单,明细单,机会,退货单,子单,客户服务单,服务合同,服务回访单连天

---
 src/views/client/followupRecords/index.vue |   15 +++++++++------
 1 files changed, 9 insertions(+), 6 deletions(-)

diff --git a/src/views/client/followupRecords/index.vue b/src/views/client/followupRecords/index.vue
index e593d33..4904afc 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" />
     <!-- 瀹㈡埛璇︽儏 -->
@@ -249,22 +249,25 @@
     },
     // 鎼滅储
     onFilterSearch(searchText) {
-      this.search_map.name = searchText ?? ""
+      this.search_map.client_name = searchText ?? ""
       this.pagerOptions.currPage = 1
       this.getData()
     },
     // 鏂板缓
     addBtnClick() {
-      this.editConfig.visible = true
       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.visible = true
       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
     },
     // 鍒犻櫎
     delClick(id) {

--
Gitblit v1.8.0