fix(admin): 任务列表商品名与执行器标签改为中文展示
建单时不再把英文 sku 写入商品名,列表按映射反查中文名,并将 Affiliate Dash 等标签本地化。 Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -28,6 +28,7 @@ const STATUS_LABELS: Record<string, string> = {
|
||||
delivered: '已发放',
|
||||
disabled: '已停用',
|
||||
dispatched_pending_return: '待退还号码',
|
||||
draft: '草稿',
|
||||
expired: '已过期',
|
||||
external: '外部链接',
|
||||
failed: '失败',
|
||||
@@ -91,6 +92,7 @@ const STATUS_COLORS: Record<string, string> = {
|
||||
customer_processing: 'blue',
|
||||
delivered: 'green',
|
||||
disabled: 'red',
|
||||
draft: 'gold',
|
||||
external: 'cyan',
|
||||
failed: 'red',
|
||||
invalid: 'orange',
|
||||
|
||||
@@ -845,7 +845,7 @@ function resolveDeliveryStepSummary(detail: AdminTaskDetail) {
|
||||
function resolveTaskExecutorDisplay(value: unknown) {
|
||||
const executorKey = String(value || '').trim()
|
||||
if (executorKey === 'affiliate_dash') {
|
||||
return { label: 'Affiliate Dash', color: 'green' }
|
||||
return { label: '联盟发货', color: 'green' }
|
||||
}
|
||||
if (executorKey === 'kuaishou_ct_assisted') {
|
||||
return { label: '乐玩云(已下线)', color: 'default' }
|
||||
|
||||
@@ -137,7 +137,9 @@ export default function AdminTasksPage() {
|
||||
return (
|
||||
<div className="cell-stack">
|
||||
<span>{row.skuName || '-'}</span>
|
||||
<span className="muted">{row.skuCode || '-'}</span>
|
||||
{row.skuCode && row.skuCode !== row.skuName ? (
|
||||
<span className="muted">{row.skuCode}</span>
|
||||
) : null}
|
||||
<Tag className="task-list-executor-tag" color={executor.color} title={executor.key}>
|
||||
{executor.label}
|
||||
</Tag>
|
||||
@@ -472,7 +474,7 @@ export default function AdminTasksPage() {
|
||||
function resolveTaskExecutorDisplay(value: unknown) {
|
||||
const executorKey = String(value || '').trim()
|
||||
if (executorKey === 'affiliate_dash') {
|
||||
return { key: executorKey, label: 'Affiliate Dash', color: 'green' }
|
||||
return { key: executorKey, label: '联盟发货', color: 'green' }
|
||||
}
|
||||
if (executorKey === 'kuaishou_ct_assisted') {
|
||||
return { key: executorKey, label: '乐玩云(已下线)', color: 'default' }
|
||||
|
||||
@@ -45,7 +45,7 @@ type EditableRoutingRule = Omit<AdminFulfillmentRoutingRule, 'normalizedProductN
|
||||
}
|
||||
|
||||
const ROUTING_EXECUTORS = [
|
||||
{ key: 'affiliate_dash', label: 'affiliate-dash', color: 'gold' },
|
||||
{ key: 'affiliate_dash', label: '联盟发货', color: 'gold' },
|
||||
{ key: 'manual_dispatch', label: '人工履约', color: 'default' },
|
||||
]
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ export const adminPayStatusOptions = [
|
||||
]
|
||||
|
||||
export const adminOrderExecutorOptions = [
|
||||
{ label: 'Affiliate Dash', value: 'affiliate_dash' },
|
||||
{ label: '联盟发货', value: 'affiliate_dash' },
|
||||
{ label: '行业凭证', value: 'kuaishou-industry' },
|
||||
{ label: '人工履约', value: 'manual_dispatch' },
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user