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/statistics/customer/data.ts | 13 +++++++------
1 files changed, 7 insertions(+), 6 deletions(-)
diff --git a/src/views/crm/statistics/customer/data.ts b/src/views/crm/statistics/customer/data.ts
index 437aa79..5ba644f 100644
--- a/src/views/crm/statistics/customer/data.ts
+++ b/src/views/crm/statistics/customer/data.ts
@@ -1,16 +1,16 @@
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 { useUserStore } from '../../../../packages/stores/src';
+import { DICT_TYPE } from '@vben/constants';
+import { getDictOptions } from '@vben/hooks';
+import { useUserStore } from '@vben/stores';
import {
beginOfDay,
endOfDay,
erpCalculatePercentage,
formatDateTime,
handleTree,
-} from '../../../../packages/utils/src';
+} from '@vben/utils';
import { getSimpleDeptList } from '#/api/system/dept';
import { getSimpleUserList } from '#/api/system/user';
@@ -62,6 +62,7 @@
component: 'RangePicker',
componentProps: {
...getRangePickerDefaultProps(),
+ format: 'YYYY-MM-DD',
},
defaultValue: [
formatDateTime(beginOfDay(new Date(Date.now() - 3600 * 1000 * 24 * 7))),
@@ -176,13 +177,13 @@
field: 'createTime',
title: '鍒涘缓鏃堕棿',
minWidth: 200,
- formatter: 'formatDateTime',
+ formatter: 'formatDate',
},
{
field: 'orderDate',
title: '涓嬪崟鏃ユ湡',
minWidth: 200,
- formatter: 'formatDateTime',
+ formatter: 'formatDate',
},
];
}
--
Gitblit v1.9.3