售后处置为补救完成或问题不成立时自动退还原追缴金额

This commit is contained in:
yml2213
2026-08-22 13:54:58 +08:00
parent 9beb501fa6
commit 6ac77c0124
12 changed files with 170 additions and 10 deletions
@@ -137,7 +137,10 @@ const AfterSalesPanel = forwardRef<AfterSalesPanelHandle>(function AfterSalesPan
resolutionNote: String(values.resolutionNote || '').trim(),
recoveryAmount: action === 'upheld' ? Number(values.recoveryAmount || 0) : 0,
}),
'售后问题单已处置',
(result) =>
(result.data?.refundedTotalAmount || 0) > 0
? `售后问题单已处置,已退还原追缴 ${formatMoney(result.data.refundedTotalAmount)} 至打手可用余额`
: '售后问题单已处置',
)
if (!succeeded) return
setAfterSalesCase(null)
@@ -264,6 +267,11 @@ const AfterSalesPanel = forwardRef<AfterSalesPanelHandle>(function AfterSalesPan
{formatMoney(item.recoveryAmount)} {formatMoney(item.debtAmount)}
</Typography.Text>
) : null}
{item.refundedAmount > 0 ? (
<Typography.Text type="success">
退 {formatMoney(item.refundedAmount)}
</Typography.Text>
) : null}
</div>
),
},
@@ -399,7 +407,11 @@ const AfterSalesPanel = forwardRef<AfterSalesPanelHandle>(function AfterSalesPan
>
<InputNumber min={0} precision={2} addonAfter="元" className="full-width" />
</Form.Item>
) : null
) : (
<Typography.Paragraph type="secondary" style={{ marginBottom: 16 }}>
退退
</Typography.Paragraph>
)
}
</Form.Item>
<Form.Item