From 482062178ac5da78030a5270b2727d60ed0d2e76 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B8=B8=E7=86=9F=E5=90=B4=E5=BD=A6=E7=A5=96?= Date: Wed, 14 Oct 2026 13:53:39 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../modules/warehouse/crossSiteHuTransfer.vue | 23 +++++++++++++------ 1 file changed, 16 insertions(+), 7 deletions(-) diff --git a/src/views/modules/warehouse/crossSiteHuTransfer.vue b/src/views/modules/warehouse/crossSiteHuTransfer.vue index 767acf3..41d5213 100644 --- a/src/views/modules/warehouse/crossSiteHuTransfer.vue +++ b/src/views/modules/warehouse/crossSiteHuTransfer.vue @@ -626,16 +626,25 @@ export default { transferHuSite(requestData).then(({ data }) => { if (data && data.code === 0) { const result = data.row || {} - const htmlContent = `
` - + `

成功数量:${result.successCount || 0}

` - + `

出库事务号:${result.stoTransNo || ''}

` - + `

入库事务号:${result.stiTransNo || ''}

` - + `

${result.message || ''}

` - + `
` + // 失败分组逐条展示条码和原因;IFS或本地提交结果不明时提示停止重试。- rqrq + const escapeHtml = value => String(value == null ? '' : value).replace(/[&<>"']/g, char => ({ '&': '&', '<': '<', '>': '>', '"': '"', "'": ''' })[char]) + const failures = (result.failedUnitIds || []).map((unitId, index) => + `
${escapeHtml(unitId)}:${escapeHtml((result.failedReasons || [])[index] || '处理失败')}
`).join('') + const htmlContent = [ + '
', + `

成功数量:${result.successCount || 0}

`, + `

失败数量:${result.failCount || 0}

`, + `

出库事务号:${escapeHtml(result.stoTransNo)}

`, + `

入库事务号:${escapeHtml(result.stiTransNo)}

`, + `

${escapeHtml(result.message)}

`, + result.reconciliationRequired ? '

IFS或本地提交结果不明,请停止重试并人工对账。

' : '', + failures ? `
失败明细:${failures}
` : '', + '
' + ].join('') this.$alert(htmlContent, '跨site调拨结果', { dangerouslyUseHTMLString: true, confirmButtonText: this.$t('warehouse.common.confirm'), - type: 'success', + type: result.reconciliationRequired ? 'error' : (result.failCount ? 'warning' : 'success'), callback: () => { this.closeTransferDialog() this.getDataList()