From f229c6ebd9a9b074f3efbcac4e47f65eb1b5db9b Mon Sep 17 00:00:00 2001 From: fengyuan_yang <1976974459@qq.com> Date: Tue, 27 Jan 2026 09:36:03 +0800 Subject: [PATCH] =?UTF-8?q?2026-01-27=20=E6=A0=87=E7=AD=BE=E5=8F=98?= =?UTF-8?q?=E5=8A=A8=E8=AE=B0=E5=BD=95=E3=80=90=E6=89=8B=E5=8A=A8=E9=87=8D?= =?UTF-8?q?=E8=AF=95=E3=80=91=E5=8A=9F=E8=83=BD=E8=B0=83=E6=95=B4=E4=B8=BA?= =?UTF-8?q?=E5=90=8C=E6=AD=A5=E8=B0=83=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../modules/warehouse/labelTransactionLog.vue | 45 +++++++++++++++++++ 1 file changed, 45 insertions(+) diff --git a/src/views/modules/warehouse/labelTransactionLog.vue b/src/views/modules/warehouse/labelTransactionLog.vue index a444abd..22290f4 100644 --- a/src/views/modules/warehouse/labelTransactionLog.vue +++ b/src/views/modules/warehouse/labelTransactionLog.vue @@ -486,6 +486,11 @@ export default { this.$message.error(message) } + // 显示详细结果对话框 + if (result.details && result.details.length > 0) { + this.showRetryResultDialog(result.details) + } + // 刷新列表 this.getDataList() } else { @@ -496,6 +501,46 @@ export default { this.$message.error('重试失败:' + (error.message || '网络错误')) }) }).catch(() => {}) + }, + + // 显示重试结果详情对话框 + showRetryResultDialog(details) { + const successList = details.filter(d => d.status === 'success') + const failureList = details.filter(d => d.status === 'failure') + const errorList = details.filter(d => d.status === 'error') + + let messageHtml = '
' + + if (successList.length > 0) { + messageHtml += '
成功 (' + successList.length + '):
' + } + + if (failureList.length > 0) { + messageHtml += '
失败 (' + failureList.length + '):
' + } + + if (errorList.length > 0) { + messageHtml += '
异常 (' + errorList.length + '):
' + } + + messageHtml += '
' + + this.$alert(messageHtml, '批量重试结果详情', { + confirmButtonText: '确定', + dangerouslyUseHTMLString: true + }) } } }