feat(fulfillment): 增加未命中渠道兜底核销

This commit is contained in:
yml2213
2026-11-06 19:21:41 +08:00
parent e85bbee7e0
commit 0a595acfa9
9 changed files with 200 additions and 13 deletions
@@ -42,6 +42,7 @@ const CHANNEL_LABEL: Record<VoucherConsumeChannel, string> = {
manual: '人工客服',
on_account: '统一结算',
third_party_voucher: '第三方卡券',
unmatched: '未命中渠道兜底',
}
const MODE_OPTIONS: Record<
@@ -75,6 +76,10 @@ const MODE_OPTIONS: Record<
{ value: 'after_order_received', label: '收到订单后' },
{ value: 'manual', label: '人工核销' },
],
unmatched: [
{ value: 'after_order_received', label: '未命中渠道后' },
{ value: 'manual', label: '人工核销' },
],
}
type PolicyRow = {
@@ -103,6 +108,7 @@ const CHANNEL_FILTER_OPTIONS: Array<{ value: VoucherConsumeChannel; label: strin
{ value: 'manual', label: CHANNEL_LABEL.manual },
{ value: 'third_party_voucher', label: CHANNEL_LABEL.third_party_voucher },
{ value: 'on_account', label: CHANNEL_LABEL.on_account },
{ value: 'unmatched', label: CHANNEL_LABEL.unmatched },
]
const JOB_STATUS_FILTER_OPTIONS: Array<{
@@ -167,6 +167,7 @@ export type VoucherConsumeChannel =
| 'manual'
| 'on_account'
| 'third_party_voucher'
| 'unmatched'
export type VoucherConsumeMode =
| 'manual'
| 'after_order_received'