From 1b259197c464ec36ad82e45d000e128243ea75b2 Mon Sep 17 00:00:00 2001 From: ZhangYong Date: Sun, 25 Jan 2026 21:50:45 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AF=BC=E5=87=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/moneyManage/financialAccount/cashFlow.vue | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/src/views/moneyManage/financialAccount/cashFlow.vue b/src/views/moneyManage/financialAccount/cashFlow.vue index 76a99af..435ede2 100644 --- a/src/views/moneyManage/financialAccount/cashFlow.vue +++ b/src/views/moneyManage/financialAccount/cashFlow.vue @@ -240,6 +240,19 @@ const exportListLoading = ref(false) // 导出Excel const handleExport = async () => { + + const formatStatuses = (statuses) => { + // 情况1:非数组/空值 → 返回空数组 + if (!Array.isArray(statuses)) { + return []; + } + // 情况2:数组中包含 null 或 undefined → 返回空数组 + if (statuses.some(item => item === null || item === undefined)) { + return []; + } + // 情况3:正常数组 → 返回原数组 + return statuses; +}; try { const params = { pageNum: queryParams.pageNum, @@ -251,7 +264,7 @@ const handleExport = async () => { endTime: queryParams.timeRange?.[1] ? dayjs(queryParams.timeRange[1]).format('YYYY-MM-DD HH:mm:ss') : '', payType: normalizePayType(queryParams.payType || ''), orderCode: queryParams.orderCode, - statuses: queryParams.statuses, + statuses: formatStatuses(queryParams.statuses), markets:[], } }