From d2305882d2ae52d068ea7c693a426eae8f337c79 Mon Sep 17 00:00:00 2001 From: van Date: Thu, 8 Oct 2026 00:15:30 +0800 Subject: [PATCH] 1 --- src/views/system/jdorder/orderList.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/views/system/jdorder/orderList.vue b/src/views/system/jdorder/orderList.vue index 087cd8b..8ce38c1 100644 --- a/src/views/system/jdorder/orderList.vue +++ b/src/views/system/jdorder/orderList.vue @@ -2235,7 +2235,8 @@ export default { return } const encodedName = res.headers['download-filename'] - const filename = encodedName ? decodeURIComponent(encodedName) : '返现表-新表头.xlsx' + const fallback = (file.name || '返现表.xlsx').replace(/\.(xlsx|xls)$/i, '') + '新.xlsx' + const filename = encodedName ? decodeURIComponent(encodedName) : fallback this.$download.saveAs(blob, filename) const encodedSummary = res.headers['x-convert-summary'] const summary = encodedSummary ? decodeURIComponent(encodedSummary) : '已生成新表'