From e6f552158fe95266179e0166e1ae9266c889da7e Mon Sep 17 00:00:00 2001
From: zuozhengqing <a13193816592@163.com>
Date: 星期五, 13 十月 2023 14:17:57 +0800
Subject: [PATCH] 销售线索动态显示联系人信息,隐藏收款计划,销售机会缺失字段添加

---
 src/views/client/salesLead/DetailSalesLead.vue |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/src/views/client/salesLead/DetailSalesLead.vue b/src/views/client/salesLead/DetailSalesLead.vue
index adafad6..0fd12d9 100644
--- a/src/views/client/salesLead/DetailSalesLead.vue
+++ b/src/views/client/salesLead/DetailSalesLead.vue
@@ -171,9 +171,11 @@
       if (item.FollowRecord && item.FollowRecord.length > 0) {
         this.record = item.FollowRecord[0].record
         console.log(item.FollowRecord[0].follow_time)
-        let follow_time = item.FollowRecord[0].follow_time
-        this.newContactDays = follow_time.substring(0, 10)
-        this.noContactDays = this.getDiffDay(Date.now(), this.newContactDays)
+        if (item.FollowRecord[0].follow_time && item.FollowRecord[0].follow_time.length > 0) {
+          let follow_time = item.FollowRecord[0].follow_time
+          this.newContactDays = follow_time.substring(0, 10)
+          this.noContactDays = this.getDiffDay(Date.now(), this.newContactDays)
+        }
       }
       this.basicInfoList = [
         {

--
Gitblit v1.8.0