From 13646595f3a8cb6c27a20f287c23a7649cbdff05 Mon Sep 17 00:00:00 2001
From: haoxuan <haoxuan>
Date: 星期三, 11 十月 2023 16:05:59 +0800
Subject: [PATCH] 销售线索+客户管理+联系人页面的跟进弹框编码规则获取问题更改+销售发票编码input修改为编码规则

---
 src/views/client/client/DetailClientManage.vue |   43 +++++++++++++++++++++++++++++++++++++------
 1 files changed, 37 insertions(+), 6 deletions(-)

diff --git a/src/views/client/client/DetailClientManage.vue b/src/views/client/client/DetailClientManage.vue
index d71dab4..3184063 100644
--- a/src/views/client/client/DetailClientManage.vue
+++ b/src/views/client/client/DetailClientManage.vue
@@ -225,6 +225,7 @@
 import SubOrder from "@/views/sales/subOrder"
 import SalesDetails from "@/views/sales/salesDetails"
 import Receipt from "@/views/other/payment/receipt"
+import { getContactList } from "@/api/client/contacts"
 export default {
   name: "DetailClientManage",
   props: {
@@ -256,10 +257,16 @@
       addressInfoList: [],
       isRemarkExpand: true, // 澶囨敞淇℃伅
       isAnnexExpand: true, // 闄勪欢淇℃伅
-      addConfig: {}
+      addConfig: {},
+      contact_name: "",
+      contact_phone: "",
+      contact_position: "",
+      contact_wechat: "",
+      contact_email: ""
     }
   },
   created() {
+    this.getContactList()
     this.setData(this.detailConfig.infomation)
     this.addConfig = {
       id_name: "client_name",
@@ -324,19 +331,19 @@
       this.contactList = [
         {
           leftStr: "鑱旂郴浜哄鍚�",
-          leftValue: item.contact_name,
+          leftValue: this.contact_name,
           rightStr: "鑱旂郴浜烘墜鏈�",
-          rightValue: item.contact_phone
+          rightValue: this.contact_phone
         },
         {
           leftStr: "鑱旂郴浜鸿亴鍔�",
-          leftValue: "",
+          leftValue: this.contact_position,
           rightStr: "鑱旂郴浜哄井淇�",
-          rightValue: ""
+          rightValue: this.contact_wechat
         },
         {
           leftStr: "鑱旂郴浜篍mail",
-          leftValue: "",
+          leftValue: this.contact_email,
           rightStr: "",
           rightValue: ""
         }
@@ -442,6 +449,29 @@
         }
       }
       return fmt
+    },
+    getContactList() {
+      getContactList({
+        search_map: {
+          client_id: this.clientManageDetail.infomation.id
+        },
+        page: 0,
+        pageSize: 0
+      }).then((res) => {
+        if (res.code === 200) {
+          console.log(res.data.list)
+          if (res.data.list && res.data.list.length > 0) {
+            let data = res.data.list[0]
+            console.log(data)
+            this.contact_name = data.name
+            this.contact_phone = data.phone
+            this.contact_position = data.position
+            this.contact_wechat = data.wechat
+            this.contact_email = data.email
+          }
+        }
+        this.setData(this.detailConfig.infomation)
+      })
     }
   }
 }
@@ -567,6 +597,7 @@
         }
       }
       .second {
+        height: calc(100vh - 111px);
         background: #fff;
         .followup-records {
           .table-view {

--
Gitblit v1.8.0