From 28b4a428efd5478c25d0ce4177f40116866a09dc Mon Sep 17 00:00:00 2001 From: "HTEWJ\\26070045" <2815434552@qq.com> Date: Tue, 13 Oct 2026 10:31:42 +0800 Subject: [PATCH] =?UTF-8?q?fix(order-delivery-reply):=20=E4=BF=AE=E6=94=B9?= =?UTF-8?q?excel=E5=AF=BC=E5=87=BA=E5=90=8E=E5=91=BD=E5=90=8D=E4=B8=AD?= =?UTF-8?q?=E7=9A=84=E6=97=B6=E9=97=B4=E6=98=BE=E7=A4=BA=E4=B8=BA=E5=8C=97?= =?UTF-8?q?=E4=BA=AC=E6=97=B6=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../order-delivery-reply/api/orderDeliveryReply.api.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/frontend/src/features/order-delivery-reply/api/orderDeliveryReply.api.ts b/frontend/src/features/order-delivery-reply/api/orderDeliveryReply.api.ts index 47e634fb..298ce2ad 100644 --- a/frontend/src/features/order-delivery-reply/api/orderDeliveryReply.api.ts +++ b/frontend/src/features/order-delivery-reply/api/orderDeliveryReply.api.ts @@ -175,7 +175,10 @@ export async function exportOrderDeliveryLines(params: OrderDeliveryExportParams const url = URL.createObjectURL(blob); const link = document.createElement('a'); link.href = url; - link.download = `订单交期回复_${new Date().toISOString().slice(0, 10)}.xlsx`; + // 文件名日期取浏览器本地时区(toISOString 为 UTC,北京时间 0-8 点导出会差一天) + const now = new Date(); + const localDate = `${now.getFullYear()}-${String(now.getMonth() + 1).padStart(2, '0')}-${String(now.getDate()).padStart(2, '0')}`; + link.download = `订单交期回复_${localDate}.xlsx`; document.body.appendChild(link); link.click(); link.remove();