From 803190f6789371daf42360db8167e6eb5679d03f Mon Sep 17 00:00:00 2001
From: 云 <2163098428@qq.com>
Date: 星期一, 28 九月 2026 10:21:35 +0800
Subject: [PATCH] fix(time): 统一将日期时间格式修改为仅日期格式
---
src/views/officeProcessAutomation/ReimburseManage/shared/finReimbursementMappers.js | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/src/views/officeProcessAutomation/ReimburseManage/shared/finReimbursementMappers.js b/src/views/officeProcessAutomation/ReimburseManage/shared/finReimbursementMappers.js
index 85029bc..c3bf0fc 100644
--- a/src/views/officeProcessAutomation/ReimburseManage/shared/finReimbursementMappers.js
+++ b/src/views/officeProcessAutomation/ReimburseManage/shared/finReimbursementMappers.js
@@ -334,14 +334,12 @@
};
}
-/** 鍒楄〃/璇︽儏鏃堕棿灞曠ず锛圛SO 鈫� YYYY-MM-DD HH:mm:ss锛� */
+/** 鍒楄〃/璇︽儏鏃堕棿灞曠ず锛圛SO 鈫� YYYY-MM-DD锛� */
export function formatReimbursementDateTime(val) {
if (val == null || val === "") return "";
const d = dayjs(val);
if (!d.isValid()) return String(val);
- const raw = String(val);
- const hasTime = raw.includes("T") || /:\d{2}/.test(raw);
- return hasTime ? d.format("YYYY-MM-DD HH:mm:ss") : d.format("YYYY-MM-DD");
+ return d.format("YYYY-MM-DD");
}
/** 鎺ュ彛琛� 鈫� 宸梾鎶ラ攢鍒楄〃琛岋紙鍏煎 useTravelReimburse 瀛楁锛� */
--
Gitblit v1.9.3