feat(orders): 订单读取与筛选只认渠道/状态三列

- 展示与筛选全部改读 fulfillment_channel/status,不再回退旧列
- 支持 third_party_voucher 与 archived,legacy_platform 映射为归档
- 前端类型、筛选项与标签同步
This commit is contained in:
yml2213
2026-10-31 19:52:13 +08:00
parent 65b7f4f9dc
commit 4272515956
10 changed files with 122 additions and 31 deletions
+2
View File
@@ -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'
+6 -2
View File
@@ -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':
+2 -1
View File
@@ -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 = [