From 534533425b15b183cea60fa162d9884e5d3c6243 Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期二, 13 十月 2026 17:55:50 +0800
Subject: [PATCH] Merge branch 'dev_海西州_北京同仁堂' into dev_海西州_惠牧
---
src/views/bi/dashboard/index.vue | 10 +++++++++-
1 files changed, 9 insertions(+), 1 deletions(-)
diff --git a/src/views/bi/dashboard/index.vue b/src/views/bi/dashboard/index.vue
index cac84a6..c1bbf5c 100644
--- a/src/views/bi/dashboard/index.vue
+++ b/src/views/bi/dashboard/index.vue
@@ -134,8 +134,16 @@
return formatNumber(v);
}
+// 澶у睆琛ㄦ牸閲岀殑鏃ユ湡鍒楀彧灞曠ず鍒板ぉ锛堝舰濡� 2026-09-01 10:23:45 鐨勫�煎垏鎴� 2026-09-01锛夛紝
+// 鍥捐〃 SQL 閲岀殑 order_time / receipt_date / create_time / hire_date 閮芥槸甯︽椂鍒嗙鐨�
+const DATE_TIME_RE = /^\d{4}-\d{2}-\d{2}[ T]\d{2}:\d{2}(?::\d{2})?(?:\.\d+)?$/;
+
function getCellValue(row: unknown, col: string): unknown {
- return (row as Record<string, unknown>)[col];
+ const val = (row as Record<string, unknown>)[col];
+ if (typeof val === 'string' && DATE_TIME_RE.test(val)) {
+ return val.slice(0, 10);
+ }
+ return val;
}
// ======== 鐪嬫澘涓婚鑹� ========
--
Gitblit v1.9.3