From 707512d5519e701ddcaf0912a768929998e22e58 Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期三, 28 十月 2026 15:27:23 +0800
Subject: [PATCH] fix(date): 页面展示的时间统一只到年月日
---
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 2525f70..6c65f28 100644
--- a/src/views/officeProcessAutomation/ReimburseManage/shared/finReimbursementMappers.js
+++ b/src/views/officeProcessAutomation/ReimburseManage/shared/finReimbursementMappers.js
@@ -292,14 +292,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