fix(payment): 区分退款 pending 并收敛匿名查单

This commit is contained in:
wucm667
2026-06-30 10:00:48 +08:00
parent 55902d8548
commit 7316d83027
14 changed files with 302 additions and 40 deletions
@@ -210,6 +210,7 @@ const statusFilterOptions = computed(() => [
{ value: 'FAILED', label: t('payment.status.failed') },
{ value: 'REFUNDED', label: t('payment.status.refunded') },
{ value: 'REFUND_REQUESTED', label: t('payment.status.refund_requested') },
{ value: 'REFUND_PENDING', label: t('payment.status.refund_pending') },
{ value: 'REFUND_FAILED', label: t('payment.status.refund_failed') },
])
@@ -198,7 +198,7 @@ const form = reactive({
force: false,
})
// In REFUND_REQUESTED status, refund_amount is the REQUESTED amount, not actually refunded.
// In REFUND_REQUESTED / REFUND_PENDING status, refund_amount is requested/pending, not actually refunded.
// Only PARTIALLY_REFUNDED / REFUNDED have real refund amounts.
const actuallyRefunded = computed(() => {
if (!props.order) return 0