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/clue/data.ts |   19 ++++++++++---------
 1 files changed, 10 insertions(+), 9 deletions(-)

diff --git a/src/views/crm/clue/data.ts b/src/views/crm/clue/data.ts
index 7540ad5..857622c 100644
--- a/src/views/crm/clue/data.ts
+++ b/src/views/crm/clue/data.ts
@@ -3,9 +3,9 @@
 
 import { markRaw } from 'vue';
 
-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 { getSimpleUserList } from '#/api/system/user';
 import { AreaCascader } from '#/components/area';
@@ -143,8 +143,8 @@
       component: 'DatePicker',
       componentProps: {
         showTime: true,
-        format: 'YYYY-MM-DD HH:mm:ss',
-        valueFormat: 'x',
+        format: 'YYYY-MM-DD',
+        valueFormat: 'YYYY-MM-DD HH:mm:ss',
         placeholder: '璇烽�夋嫨涓嬫鑱旂郴鏃堕棿',
       },
     },
@@ -209,6 +209,7 @@
       component: 'RangePicker',
       componentProps: {
         ...getRangePickerDefaultProps(),
+        format: 'YYYY-MM-DD',
         allowClear: true,
         placeholder: ['寮�濮嬫棩鏈�', '缁撴潫鏃ユ湡'],
       },
@@ -278,7 +279,7 @@
     {
       field: 'contactNextTime',
       title: '涓嬫鑱旂郴鏃堕棿',
-      formatter: 'formatDateTime',
+      formatter: 'formatDate',
       minWidth: 180,
     },
     {
@@ -289,7 +290,7 @@
     {
       field: 'contactLastTime',
       title: '鏈�鍚庤窡杩涙椂闂�',
-      formatter: 'formatDateTime',
+      formatter: 'formatDate',
       minWidth: 180,
     },
     {
@@ -310,13 +311,13 @@
     {
       field: 'updateTime',
       title: '鏇存柊鏃堕棿',
-      formatter: 'formatDateTime',
+      formatter: 'formatDate',
       minWidth: 180,
     },
     {
       field: 'createTime',
       title: '鍒涘缓鏃堕棿',
-      formatter: 'formatDateTime',
+      formatter: 'formatDate',
       minWidth: 180,
     },
     {

--
Gitblit v1.9.3