From 48e9b7d100ddd91a13e79e09bb5d992a62ffd026 Mon Sep 17 00:00:00 2001
From: 云 <2163098428@qq.com>
Date: 星期二, 13 十月 2026 14:34:16 +0800
Subject: [PATCH] fix(crm): 统一日期格式化并添加客户公海配置选项
---
src/views/crm/customer/pool/data.ts | 19 +++++++++++++------
1 files changed, 13 insertions(+), 6 deletions(-)
diff --git a/src/views/crm/customer/pool/data.ts b/src/views/crm/customer/pool/data.ts
index f16720e..728bf70 100644
--- a/src/views/crm/customer/pool/data.ts
+++ b/src/views/crm/customer/pool/data.ts
@@ -1,8 +1,8 @@
import type { VbenFormSchema } from '#/adapter/form';
import type { VxeTableGridOptions } from '#/adapter/vxe-table';
-import { DICT_TYPE } from '../../../../packages/constants/src';
-import { getDictOptions } from '../../../../packages/effects/hooks/src';
+import { DICT_TYPE } from '@vben/constants';
+import { getDictOptions } from '@vben/hooks';
/** 鍒楄〃鐨勬悳绱㈣〃鍗� */
export function useGridFormSchema(): VbenFormSchema[] {
@@ -60,6 +60,7 @@
export function useGridColumns(): VxeTableGridOptions['columns'] {
return [
+ { type: 'checkbox', width: 50, fixed: 'left' },
{
title: '瀹㈡埛鍚嶇О',
field: 'name',
@@ -113,7 +114,7 @@
title: '涓嬫鑱旂郴鏃堕棿',
field: 'contactNextTime',
minWidth: 180,
- formatter: 'formatDateTime',
+ formatter: 'formatDate',
},
{
title: '澶囨敞',
@@ -133,7 +134,7 @@
title: '鏈�鍚庤窡杩涙椂闂�',
field: 'contactLastTime',
minWidth: 180,
- formatter: 'formatDateTime',
+ formatter: 'formatDate',
},
{
title: '鏈�鍚庤窡杩涜褰�',
@@ -144,18 +145,24 @@
title: '鏇存柊鏃堕棿',
field: 'updateTime',
minWidth: 180,
- formatter: 'formatDateTime',
+ formatter: 'formatDate',
},
{
title: '鍒涘缓鏃堕棿',
field: 'createTime',
minWidth: 180,
- formatter: 'formatDateTime',
+ formatter: 'formatDate',
},
{
title: '鍒涘缓浜�',
field: 'creatorName',
minWidth: 100,
},
+ {
+ title: '鎿嶄綔',
+ width: 150,
+ fixed: 'right',
+ slots: { default: 'actions' },
+ },
];
}
--
Gitblit v1.9.3