From 17191738bef2b1a61fec6330573e4b8568bb0ea8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A0=82=E7=B3=96?= Date: Tue, 24 Feb 2026 10:32:26 +0800 Subject: [PATCH] =?UTF-8?q?fix(wms/report):=20=E4=BF=AE=E6=AD=A3=E5=B9=B4?= =?UTF-8?q?=E4=BB=BD=E6=8A=A5=E8=A1=A8=E7=9A=84=E9=BB=98=E8=AE=A4=E6=97=A5?= =?UTF-8?q?=E6=9C=9F=E6=A0=BC=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 将默认日期格式从完整日期改为仅显示年份,以符合年份报表的需求 --- klp-ui/src/views/wms/report/zha/year.vue | 2 +- klp-ui/src/views/wms/report/zinc/year.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/klp-ui/src/views/wms/report/zha/year.vue b/klp-ui/src/views/wms/report/zha/year.vue index 0e0dc476..f85e24b3 100644 --- a/klp-ui/src/views/wms/report/zha/year.vue +++ b/klp-ui/src/views/wms/report/zha/year.vue @@ -161,7 +161,7 @@ export default { // 获取当前日期(默认选中当天) const now = new Date() - const currentDate = `${now.getFullYear()}-${addZero(now.getMonth() + 1)}-${addZero(now.getDate())}` + const currentDate = `${now.getFullYear()}}` /** * 生成指定年份的时间范围字符串 diff --git a/klp-ui/src/views/wms/report/zinc/year.vue b/klp-ui/src/views/wms/report/zinc/year.vue index 9cbf8db7..e7e1802c 100644 --- a/klp-ui/src/views/wms/report/zinc/year.vue +++ b/klp-ui/src/views/wms/report/zinc/year.vue @@ -161,7 +161,7 @@ export default { // 获取当前日期(默认选中当天) const now = new Date() - const currentDate = `${now.getFullYear()}-${addZero(now.getMonth() + 1)}-${addZero(now.getDate())}` + const currentDate = `${now.getFullYear()}}` /** * 生成指定年份的时间范围字符串