添加低意向

This commit is contained in:
WindowBird 2025-11-21 16:55:45 +08:00
parent bf1d09a2ff
commit 2d1bc99d9b
3 changed files with 19 additions and 12 deletions

View File

@ -39,9 +39,14 @@
>潜在</text>
<text
class="filter-option"
:class="{ 'active': isFilterSelected('intent') }"
@click="toggleFilter('intent')"
>意向</text>
:class="{ 'active': isFilterSelected('highIntent') }"
@click="toggleFilter('highIntent')"
>高意向</text>
<text
class="filter-option"
:class="{ 'active': isFilterSelected('lowIntent') }"
@click="toggleFilter('lowIntent')"
>低意向</text>
<text
class="filter-option"
:class="{ 'active': isFilterSelected('deal') }"
@ -288,7 +293,7 @@ const buildQueryParams = () => {
// +
if (statusFilters.length === 0) {
statusFilters.push('potential', 'intent');
statusFilters.push('potential', 'highIntent', 'lowIntent');
}
console.log('筛选待跟进,日期 <=', today, ',状态:', statusFilters);

View File

@ -142,7 +142,7 @@ const PAGE_SIZE = 20;
const BASE_QUERY = {
orderByColumn: 'createTime',
isAsc: 'descending',
type: 2
};
const form = reactive({

View File

@ -9,9 +9,10 @@
*/
export const CUSTOMER_STATUS_MAP = {
'1': '潜在',
'2': '意向',
'2': '意向',
'3': '成交',
'4': '失效'
'4': '失效',
'5': '低意向',
};
/**
@ -20,9 +21,10 @@ export const CUSTOMER_STATUS_MAP = {
*/
export const CUSTOMER_STATUS_FILTER_MAP = {
'potential': ['1'], // 潜在
'intent': ['2'], // 意向
'highIntent': ['2'], // 意向
'deal': ['3'], // 成交
'invalid': ['4'] // 失效
'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<string>} 状态值数组
*/
export const getStatusListByFilter = (filterKey) => {