From 90943dd32237e9e1c9f0cd66e33b2145c26883ff Mon Sep 17 00:00:00 2001
From: songshankun <songshankun@foxmail.com>
Date: 星期一, 25 九月 2023 14:14:47 +0800
Subject: [PATCH] feat: 侧边栏样式调整; 表格组件样式调整; 新增搜索组件; 销售线索模块布局样式调整
---
src/views/client/salesLead/DetailSalesLead.vue | 37 ++++++++++++++++++++++++++-----------
1 files changed, 26 insertions(+), 11 deletions(-)
diff --git a/src/views/client/salesLead/DetailSalesLead.vue b/src/views/client/salesLead/DetailSalesLead.vue
index 8a3a847..0fd12d9 100644
--- a/src/views/client/salesLead/DetailSalesLead.vue
+++ b/src/views/client/salesLead/DetailSalesLead.vue
@@ -62,7 +62,7 @@
</li>
</ul>
<div class="business_scope">
- <div class="content-title">{{ "鏈�鏂拌繘灞�" }}</div>
+ <div class="content-title">{{ "鏈�鏂拌繘灞曪細" }}</div>
<div class="content-data">{{ record ? record : "--" }}</div>
</div>
</div>
@@ -150,7 +150,9 @@
isRemarkExpand: true, // 澶囨敞淇℃伅
remarkInfoList: [],
addConfig: {},
- record: ""
+ record: "", // 鏈�鏂拌繘灞�
+ noContactDays: 0,
+ newContactDays: ""
}
},
created() {
@@ -168,6 +170,12 @@
setData(item) {
if (item.FollowRecord && item.FollowRecord.length > 0) {
this.record = item.FollowRecord[0].record
+ console.log(item.FollowRecord[0].follow_time)
+ 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 = [
{
@@ -216,15 +224,9 @@
this.dynamicInfoList = [
{
leftStr: "鏈仈绯诲ぉ鏁�",
- leftValue: "",
+ leftValue: this.noContactDays,
rightStr: "鏈�鏂拌仈绯绘棩鏈�",
- rightValue: ""
- },
- {
- leftStr: "鏈�鏂拌繘灞�",
- leftValue: this.record,
- rightStr: "",
- rightValue: ""
+ rightValue: this.newContactDays
}
]
this.addressInfoList = [
@@ -261,6 +263,19 @@
} else if (value === "remark") {
this.isRemarkExpand = !this.isRemarkExpand
}
+ },
+ // 璁$畻涓や釜鏃ユ湡涔嬮棿鐨勫樊鍊�
+ getDiffDay(date_1, date_2) {
+ let totalDays, diffDate
+ let myDate_1 = date_1
+ let myDate_2 = Date.parse(date_2)
+ // 灏嗕袱涓棩鏈熼兘杞崲涓烘绉掓牸寮忥紝鐒跺悗鍋氬樊
+ diffDate = Math.abs(myDate_1 - myDate_2) // 鍙栫浉宸绉掓暟鐨勭粷瀵瑰��
+
+ totalDays = Math.floor(diffDate / (1000 * 3600 * 24)) // 鍚戜笅鍙栨暣
+ // console.log(totalDays)
+
+ return totalDays // 鐩稿樊鐨勫ぉ鏁�
}
}
}
@@ -329,7 +344,7 @@
align-items: center;
height: 40px;
.content-title {
- width: 220px;
+ width: 320px;
text-align: right;
color: #555;
}
--
Gitblit v1.8.0