修复:收到订单后按订单级触发自动核销

This commit is contained in:
yml2213
2026-11-08 21:29:51 +08:00
parent d76e8265f8
commit 996054a5c5
13 changed files with 683 additions and 8 deletions
@@ -37,6 +37,7 @@ const PROVIDER_LABEL: Record<VoucherConsumeProvider, string> = {
}
const CHANNEL_LABEL: Record<VoucherConsumeChannel, string> = {
order_received: '订单级触发',
affiliate_dash: '自动发货',
work_order: '接单工单',
manual: '人工客服',
@@ -49,6 +50,10 @@ const MODE_OPTIONS: Record<
VoucherConsumeChannel,
Array<{ value: VoucherConsumeMode; label: string }>
> = {
order_received: [
{ value: 'after_order_received', label: '收到订单后' },
{ value: 'manual', label: '人工核销' },
],
affiliate_dash: [
{ value: 'after_order_received', label: '收到订单后' },
{ value: 'after_link_generated', label: '领取链接生成后' },
@@ -103,6 +108,7 @@ const PROVIDER_FILTER_OPTIONS: Array<{ value: VoucherConsumeProvider; label: str
]
const CHANNEL_FILTER_OPTIONS: Array<{ value: VoucherConsumeChannel; label: string }> = [
{ value: 'order_received', label: CHANNEL_LABEL.order_received },
{ value: 'affiliate_dash', label: CHANNEL_LABEL.affiliate_dash },
{ value: 'work_order', label: CHANNEL_LABEL.work_order },
{ value: 'manual', label: CHANNEL_LABEL.manual },
@@ -250,7 +256,7 @@ export default function VoucherConsumePolicyPanel() {
render: (provider: VoucherConsumeProvider) => PROVIDER_LABEL[provider],
},
{
title: '履约渠道',
title: '策略项',
dataIndex: 'channel',
width: 140,
render: (channel: VoucherConsumeChannel) => CHANNEL_LABEL[channel],
@@ -162,6 +162,7 @@ export type FinancePipelineStatus = {
export type VoucherConsumeProvider = 'kuaishou_industry' | 'douyin_mashida'
export type VoucherConsumeChannel =
| 'order_received'
| 'affiliate_dash'
| 'work_order'
| 'manual'