feat(fulfillment): 增加未命中渠道兜底核销
This commit is contained in:
@@ -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'
|
||||
|
||||
@@ -21,3 +21,9 @@ test('最近核销任务使用服务端分页', () => {
|
||||
assert.ok(panel.includes('setPageSize(nextPageSize)'))
|
||||
assert.ok(!panel.includes('pagination={false}\n scroll={{ x: 1200 }}'))
|
||||
})
|
||||
|
||||
test('自动核销策略提供未命中履约渠道的平台兜底配置', () => {
|
||||
assert.ok(panel.includes("unmatched: '未命中渠道兜底'"))
|
||||
assert.ok(panel.includes("label: '未命中渠道后'"))
|
||||
assert.ok(panel.includes("value: 'unmatched'"))
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user