From bd42b949807795c581e9193d92834a6187fc10d2 Mon Sep 17 00:00:00 2001
From: yangfeng <wanwan926_4@163.com>
Date: 星期二, 15 八月 2023 18:42:59 +0800
Subject: [PATCH] 销售管理模块联调

---
 src/views/client/client/index.vue |   22 ++++++++++++++--------
 1 files changed, 14 insertions(+), 8 deletions(-)

diff --git a/src/views/client/client/index.vue b/src/views/client/client/index.vue
index 63111a9..2b858d5 100644
--- a/src/views/client/client/index.vue
+++ b/src/views/client/client/index.vue
@@ -28,7 +28,6 @@
       />
       <div class="btn-pager">
         <PublicFunctionBtnView
-          :duplicate-check="true"
           :list-button="true"
           :map-button="true"
           :statistics="true"
@@ -145,11 +144,11 @@
           { label: "瀹㈡埛鍚嶇О", prop: "name", min: 100, isClientClick: true }, // 瀹㈡埛鍚嶇О
           { label: "閿�鍞礋璐d汉", prop: "member_name" }, // 閿�鍞礋璐d汉
           { label: "閲嶈绾у埆", prop: "client_level" }, // 閲嶈绾у埆
-          { label: "涓嬫鍥炶鏃ユ湡", prop: "next_visit_time", isTime: true, min: 90 }, // 涓嬫鍥炶鏃ユ湡
+          { label: "涓嬫鍥炶鏃ユ湡", prop: "next_visit_time", min: 90 }, // 涓嬫鍥炶鏃ユ湡
           { label: "璇︾粏鍦板潃", prop: "detail_address", min: 200 }, // 璇︾粏鍦板潃
           { label: "瀹㈡埛鐘舵��", prop: "client_status" }, // 瀹㈡埛鐘舵��
           { label: "鑱旂郴浜哄鍚�", prop: "contact_name", isContactClick: true }, // 鑱旂郴浜哄鍚�
-          { label: "鎵嬫満鍙风爜", prop: "contact_phone" } // 鎵嬫満鍙风爜
+          { label: "鑱旂郴浜烘墜鏈哄彿鐮�", prop: "contact_phone" } // 鎵嬫満鍙风爜
         ]
       }
       this.searchOptions = []
@@ -174,11 +173,13 @@
               const list = res.data.list.map((item) => {
                 let contact_name = ""
                 let contact_phone = ""
+                let contact_id = 0
                 if (item.contacts.length !== 0) {
                   for (let i = 0; i < item.contacts.length; i++) {
                     if (item.contacts[i].is_first) {
                       contact_name = item.contacts[i].name
                       contact_phone = item.contacts[i].phone
+                      contact_id = item.contacts[i].id
                     }
                   }
                 }
@@ -187,7 +188,9 @@
                   contact_name: contact_name,
                   contact_phone: contact_phone,
                   client_level: item.client_level.name,
-                  client_status: item.client_status.name
+                  client_status: item.client_status.name,
+                  contact_id: contact_id,
+                  member_name: item.member.username
                 }
               })
               this.tableList.tableInfomation = list || []
@@ -213,7 +216,7 @@
     searchClick(val, content) {
       console.log(val, content)
       this.search_map = {
-        [val]: content
+        [val.value]: content
       }
       this.getData()
     },
@@ -225,7 +228,7 @@
     addBtnClick() {
       this.editConfig.visible = true
       this.editConfig.title = "鏂板缓"
-      this.editConfig.infomation = {}
+      this.editConfig.infomation = { city_id: 0 }
     },
     // 缂栬緫
     handleClick(row) {
@@ -285,7 +288,6 @@
     },
     // 鑱旂郴浜鸿鎯�
     selContactsClick(row) {
-      console.log(row)
       this.contactsDeail.visible = true
       let contact = {}
       if (row.contacts.length !== 0) {
@@ -295,7 +297,11 @@
           }
         }
       }
-      this.contactsDeail.infomation = { ...contact, Client: { name: row.name } }
+      this.contactsDeail.infomation = {
+        ...contact,
+        Client: { name: row.name, client_status_id: row.client_status_id },
+        client_name: row.name
+      }
     },
     // 璺熻繘
     followupClick(row) {

--
Gitblit v1.8.0