feat(tplus): 新增 T+ 同步管理页面与菜单入口
这个提交包含在:
1 父节点
4fe5916c2c
当前提交
ea989ce9ad
12 个文件已更改
+410
-2
没有与搜索条件相匹配的文件
@@ -0,0 +1,17 @@
|
||||
import type { EntityType, TaskStatus, TPlusBatch } from '@/api/tplus'
|
||||
|
||||
export const entities: { value: EntityType; label: string }[] = [
|
||||
{ value: 'personnel', label: '人员' }, { value: 'products', label: '产品' },
|
||||
{ value: 'customers', label: '客户' }, { value: 'businesses', label: '订单' },
|
||||
{ value: 'business_items', label: '订单明细' }, { value: 'shipments', label: '销货单' },
|
||||
{ value: 'shipment_items', label: '销货明细' }, { value: 'receipts', label: '收付款单' },
|
||||
{ value: 'receipt_items', label: '收付款明细' },
|
||||
]
|
||||
export const statuses: Record<TaskStatus, string> = {
|
||||
QUEUED: '等待处理', RUNNING: '处理中', SUCCEEDED: '已完成', PARTIAL: '部分失败', FAILED: '失败',
|
||||
}
|
||||
/** 历史范围未记录时保持未知,不默认成全部。 */
|
||||
export function scopeLabel(row: TPlusBatch): string {
|
||||
if (row.task_type === 'AUDIT') return '关联与枚举检查'
|
||||
return row.entity_types?.map((key) => entities.find((item) => item.value === key)?.label ?? key).join('、') || '历史批次,范围未记录'
|
||||
}
|
||||
在新工单中引用
屏蔽一个用户