From 27c8277d717b34b55f3ea967027b53b067f77df3 Mon Sep 17 00:00:00 2001
From: xiaoyi <908147524@qq.com>
Date: 星期四, 20 八月 2026 16:58:49 +0800
Subject: [PATCH] feat 功能变更
---
src/views/crm/customer/data.ts | 74 ++++++++++++++++++++++++++++++++++--
1 files changed, 69 insertions(+), 5 deletions(-)
diff --git a/src/views/crm/customer/data.ts b/src/views/crm/customer/data.ts
index bc31add..203cd55 100644
--- a/src/views/crm/customer/data.ts
+++ b/src/views/crm/customer/data.ts
@@ -3,10 +3,10 @@
import { markRaw } from 'vue';
-import { z } from '../../../packages/effects/common-ui/src';
-import { DICT_TYPE } from '../../../packages/constants/src';
-import { getDictOptions } from '../../../packages/effects/hooks/src';
-import { useUserStore } from '../../../packages/stores/src';
+import { z } from '@vben/common-ui';
+import { DICT_TYPE } from '@vben/constants';
+import { getDictOptions } from '@vben/hooks';
+import { useUserStore } from '@vben/stores';
import { getSimpleUserList } from '#/api/system/user';
import { AreaCascader } from '#/components/area';
@@ -41,6 +41,16 @@
componentProps: {
options: getDictOptions(DICT_TYPE.CRM_CUSTOMER_SOURCE, 'number'),
placeholder: '璇烽�夋嫨瀹㈡埛鏉ユ簮',
+ allowClear: true,
+ },
+ },
+ {
+ fieldName: 'customerType',
+ label: '瀹㈡埛鍒嗙被',
+ component: 'Select',
+ componentProps: {
+ options: getDictOptions(DICT_TYPE.CRM_CUSTOMER_TYPE),
+ placeholder: '璇烽�夋嫨瀹㈡埛鍒嗙被',
allowClear: true,
},
},
@@ -154,7 +164,7 @@
componentProps: {
showTime: true,
format: 'YYYY-MM-DD HH:mm:ss',
- valueFormat: 'x',
+ valueFormat: 'YYYY-MM-DD HH:mm:ss',
placeholder: '璇烽�夋嫨涓嬫鑱旂郴鏃堕棿',
allowClear: true,
},
@@ -198,6 +208,26 @@
component: 'Input',
componentProps: {
placeholder: '璇疯緭鍏ョ數璇�',
+ allowClear: true,
+ },
+ },
+ {
+ fieldName: 'customerType',
+ label: '瀹㈡埛鍒嗙被',
+ component: 'Select',
+ componentProps: {
+ options: getDictOptions(DICT_TYPE.CRM_CUSTOMER_TYPE),
+ placeholder: '璇烽�夋嫨瀹㈡埛鍒嗙被',
+ allowClear: true,
+ },
+ },
+ {
+ fieldName: 'creditLevel',
+ label: '淇$敤绛夌骇',
+ component: 'Select',
+ componentProps: {
+ options: getDictOptions(DICT_TYPE.CRM_CREDIT_LEVEL),
+ placeholder: '璇烽�夋嫨淇$敤绛夌骇',
allowClear: true,
},
},
@@ -276,6 +306,40 @@
},
},
{
+ field: 'customerType',
+ title: '瀹㈡埛鍒嗙被',
+ minWidth: 100,
+ cellRender: {
+ name: 'CellDict',
+ props: { type: DICT_TYPE.CRM_CUSTOMER_TYPE },
+ },
+ },
+ {
+ field: 'creditLevel',
+ title: '淇$敤绛夌骇',
+ minWidth: 100,
+ cellRender: {
+ name: 'CellDict',
+ props: { type: DICT_TYPE.CRM_CREDIT_LEVEL },
+ },
+ },
+ {
+ field: 'creditScore',
+ title: '淇$敤鍒�',
+ minWidth: 90,
+ },
+ {
+ field: 'overdueAmount',
+ title: '娆犺垂閲戦',
+ minWidth: 110,
+ formatter: 'formatAmount2',
+ },
+ {
+ field: 'overdueCount',
+ title: '娆犺垂绗旀暟',
+ minWidth: 90,
+ },
+ {
field: 'mobile',
title: '鎵嬫満',
minWidth: 120,
--
Gitblit v1.9.3