From 41def2450b7a523cac4636d60f10d7d70a685b70 Mon Sep 17 00:00:00 2001
From: wuyibo <771227828@qq.com>
Date: Thu, 3 Aug 2023 18:03:07 +0800
Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../src/views/system/bookManger/index.vue | 33 ++++--------
ruoyi-ui/src/views/system/customer/index.vue | 31 +++--------
.../src/views/system/customerOrder/index.vue | 15 +-----
.../views/system/potentialCustomer/index.vue | 54 ++++++++++++-------
.../src/views/system/salesFollowUp/index.vue | 5 ++
5 files changed, 62 insertions(+), 76 deletions(-)
diff --git a/ruoyi-ui/src/views/system/bookManger/index.vue b/ruoyi-ui/src/views/system/bookManger/index.vue
index 5c425254..db4a28a3 100644
--- a/ruoyi-ui/src/views/system/bookManger/index.vue
+++ b/ruoyi-ui/src/views/system/bookManger/index.vue
@@ -43,8 +43,8 @@
-
导出
- -->
+
-
-
-
-
-
-
-
-
-
-
-
-
+
-
-
-
-
-
{{ parseTime(scope.row.appointmentTime, '{y}-{m}-{d} {h}:{i}') }}
@@ -129,7 +113,12 @@
{{ parseTime(scope.row.arrivalTime, '{y}-{m}-{d} {h}:{i}') }}
-
+
+
+
+
+
+
diff --git a/ruoyi-ui/src/views/system/customer/index.vue b/ruoyi-ui/src/views/system/customer/index.vue
index b1daa1c8..eae71553 100644
--- a/ruoyi-ui/src/views/system/customer/index.vue
+++ b/ruoyi-ui/src/views/system/customer/index.vue
@@ -153,10 +153,9 @@
-
-
+
-
+ {{ parseTime(scope.row.createTime, '{y}-{m}-{d}') }}
@@ -164,6 +163,12 @@
+
+
+
+
+
+
@@ -187,28 +192,8 @@
-
-
- {{ parseTime(scope.row.orderDate, '{y}-{m}-{d}') }}
-
-
-
-
-
-
diff --git a/ruoyi-ui/src/views/system/customerOrder/index.vue b/ruoyi-ui/src/views/system/customerOrder/index.vue
index 2a2fff8e..ea3943dc 100644
--- a/ruoyi-ui/src/views/system/customerOrder/index.vue
+++ b/ruoyi-ui/src/views/system/customerOrder/index.vue
@@ -129,18 +129,7 @@
{{ parseTime(scope.row.outDate, '{y}-{m}-{d}') }}
-
+
@@ -187,7 +176,7 @@
-
+
-
+
-
+
@@ -156,26 +156,17 @@
-
-
-
+
{{ parseTime(scope.row.appointmentTime, '{y}-{m}-{d}') }}
-
-
-
-
-
+
+
+
+
+
@@ -694,6 +685,16 @@ export default {
this.loading = false;
});
},
+ tableRowClassName({row, rowIndex}) {
+ if (row.proposalNextFollowDate === '24小时内回访') {
+ return 'warning-row';
+ } else if (this.getDateYYYYMMdd() > row.proposalNextFollowDate) {
+ return 'danger-row';
+ }else {
+ // return 'success-row';
+ }
+ return '';
+ },
/** 查询客户跟进信息列表 */
getFollowList(customerId) {
let that = this;
@@ -857,6 +858,12 @@ export default {
const starSeconds = date.getSeconds().toString().padStart(2, '0');
return `${date.getFullYear()}-${month}-${strDate} ${starHours}:${starMinutes}:${starSeconds}`;
},
+ getDateYYYYMMdd(){
+ const date = new Date();
+ const month = (date.getMonth() + 1).toString().padStart(2, '0');
+ const strDate = date.getDate().toString().padStart(2, '0');
+ return `${date.getFullYear()}-${month}-${strDate}`;
+ },
/** 提交按钮 */
submitForm() {
this.$refs["form"].validate(valid => {
@@ -1036,4 +1043,15 @@ export default {
.login-code-img {
height: 38px;
}
+.el-table .warning-row {
+ background: #E6A23C;
+}
+
+.el-table .success-row {
+ background: #67C23A;
+}
+
+.el-table .danger-row {
+ background: #F56C6C;
+}
diff --git a/ruoyi-ui/src/views/system/salesFollowUp/index.vue b/ruoyi-ui/src/views/system/salesFollowUp/index.vue
index 47384a7e..1db59000 100644
--- a/ruoyi-ui/src/views/system/salesFollowUp/index.vue
+++ b/ruoyi-ui/src/views/system/salesFollowUp/index.vue
@@ -150,6 +150,11 @@
+
+
+ {{scope.row.actualFollowUpDate > scope.row.planFollowUpDate?'是':'否'}}
+
+