feat(orders): 订单读取与筛选只认渠道/状态三列
- 展示与筛选全部改读 fulfillment_channel/status,不再回退旧列 - 支持 third_party_voucher 与 archived,legacy_platform 映射为归档 - 前端类型、筛选项与标签同步
This commit is contained in:
@@ -11,9 +11,11 @@ export interface AdminOrderFulfillmentProgress {
|
||||
export type AdminOrderItemFulfillmentMode =
|
||||
| 'work_order'
|
||||
| 'affiliate_dash'
|
||||
| 'third_party_voucher'
|
||||
| 'legacy_platform'
|
||||
| 'manual'
|
||||
| 'pending'
|
||||
| 'archived'
|
||||
|
||||
export type AdminOrderFulfillmentMode = AdminOrderItemFulfillmentMode | 'mixed'
|
||||
|
||||
|
||||
@@ -222,9 +222,11 @@ export function resolveOrderFulfillmentMode(row: {
|
||||
fulfillmentMode?:
|
||||
| 'work_order'
|
||||
| 'affiliate_dash'
|
||||
| 'third_party_voucher'
|
||||
| 'legacy_platform'
|
||||
| 'manual'
|
||||
| 'pending'
|
||||
| 'archived'
|
||||
| 'mixed'
|
||||
}): { label: string; color: string } {
|
||||
switch (row.fulfillmentMode) {
|
||||
@@ -232,8 +234,10 @@ export function resolveOrderFulfillmentMode(row: {
|
||||
return { label: '⚡ 自动发货', color: 'blue' }
|
||||
case 'work_order':
|
||||
return { label: '👥 接单平台', color: 'purple' }
|
||||
case 'legacy_platform':
|
||||
return { label: '🗄 历史平台', color: 'default' }
|
||||
case 'third_party_voucher':
|
||||
return { label: '🎟 第三方卡券', color: 'cyan' }
|
||||
case 'archived':
|
||||
return { label: '🗄 历史归档', color: 'default' }
|
||||
case 'manual':
|
||||
return { label: '🙋 人工履约', color: 'orange' }
|
||||
case 'mixed':
|
||||
|
||||
@@ -32,10 +32,11 @@ export const adminOrderExecutorOptions = [
|
||||
export const adminOrderFulfillmentModeOptions = [
|
||||
{ label: '自动发货', value: 'affiliate_dash' },
|
||||
{ label: '接单平台', value: 'work_order' },
|
||||
{ label: '历史平台', value: 'legacy_platform' },
|
||||
{ label: '第三方卡券', value: 'third_party_voucher' },
|
||||
{ label: '人工履约', value: 'manual' },
|
||||
{ label: '混合履约', value: 'mixed' },
|
||||
{ label: '待判定', value: 'pending' },
|
||||
{ label: '历史归档', value: 'archived' },
|
||||
]
|
||||
|
||||
export const adminTaskStatusOptions = [
|
||||
|
||||
Reference in New Issue
Block a user