From 2d1bc99d9b18142a4930b3465336344382053125 Mon Sep 17 00:00:00 2001
From: WindowBird <13870814+windows-bird@user.noreply.gitee.com>
Date: Fri, 21 Nov 2025 16:55:45 +0800
Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E4=BD=8E=E6=84=8F=E5=90=91?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
components/customer/CustomerManagement.vue | 13 +++++++++----
pages/customer/search/index.vue | 2 +-
utils/customerMappings.js | 16 +++++++++-------
3 files changed, 19 insertions(+), 12 deletions(-)
diff --git a/components/customer/CustomerManagement.vue b/components/customer/CustomerManagement.vue
index 20596a2..0c7aa94 100644
--- a/components/customer/CustomerManagement.vue
+++ b/components/customer/CustomerManagement.vue
@@ -39,9 +39,14 @@
>潜在
意向
+ :class="{ 'active': isFilterSelected('highIntent') }"
+ @click="toggleFilter('highIntent')"
+ >高意向
+ 低意向
{
// 如果当前没有选择任何状态筛选,则默认添加潜在 + 意向
if (statusFilters.length === 0) {
- statusFilters.push('potential', 'intent');
+ statusFilters.push('potential', 'highIntent', 'lowIntent');
}
console.log('筛选待跟进,日期 <=', today, ',状态:', statusFilters);
diff --git a/pages/customer/search/index.vue b/pages/customer/search/index.vue
index 7302709..321defe 100644
--- a/pages/customer/search/index.vue
+++ b/pages/customer/search/index.vue
@@ -142,7 +142,7 @@ const PAGE_SIZE = 20;
const BASE_QUERY = {
orderByColumn: 'createTime',
isAsc: 'descending',
- type: 2
+
};
const form = reactive({
diff --git a/utils/customerMappings.js b/utils/customerMappings.js
index 9f8c890..32cde9f 100644
--- a/utils/customerMappings.js
+++ b/utils/customerMappings.js
@@ -9,9 +9,10 @@
*/
export const CUSTOMER_STATUS_MAP = {
'1': '潜在',
- '2': '意向',
+ '2': '高意向',
'3': '成交',
- '4': '失效'
+ '4': '失效',
+ '5': '低意向',
};
/**
@@ -19,10 +20,11 @@ export const CUSTOMER_STATUS_MAP = {
* 状态文本 -> 状态值数组
*/
export const CUSTOMER_STATUS_FILTER_MAP = {
- 'potential': ['1'], // 潜在
- 'intent': ['2'], // 意向
- 'deal': ['3'], // 成交
- 'invalid': ['4'] // 失效
+ 'potential': ['1'], // 潜在
+ 'highIntent': ['2'], // 高意向
+ 'deal': ['3'], // 成交
+ 'invalid': ['4'], // 失效
+ 'lowIntent': ['5'] // 低意向
};
/**
@@ -121,7 +123,7 @@ export const getCustomerTypeText = (type, typeOptions = []) => {
/**
* 根据筛选键获取状态值数组
- * @param {string} filterKey - 筛选键(potential/intent/deal/invalid)
+ * @param {string} filterKey - 筛选键(potential/highIntent/deal/invalid/lowIntent)
* @returns {Array} 状态值数组
*/
export const getStatusListByFilter = (filterKey) => {