/** 状态文案取自《运营支撑系统设计说明》,不复用报价原型的上架状态。 */ export const accountStatuses = ["未开通", "在用", "停用"] as const; export const orderStatuses = ["待生效", "生效中", "已到期", "提前停机", "已退订", "已替换"] as const; export const workOrderStatuses = ["待派单", "待处理", "处理中", "已完成", "已办结", "已关闭"] as const; export const settlementBatchStatuses = ["待执行", "已执行", "执行失败", "已打回", "已作废"] as const; export const workOrderTypes = ["开户", "到期停机", "服务开通", "提前停机", "服务停用", "故障", "售后"] as const; export type AccountStatus = (typeof accountStatuses)[number]; export type OrderStatus = (typeof orderStatuses)[number]; export type WorkOrderStatus = (typeof workOrderStatuses)[number]; export type SettlementBatchStatus = (typeof settlementBatchStatuses)[number]; export type WorkOrderType = (typeof workOrderTypes)[number]; export type StatusTone = "neutral" | "info" | "success" | "warning" | "danger"; type StatusMeta = { label: string; tone: StatusTone }; export const statusPresentation = { account: { 未开通: { label: "未开通", tone: "neutral" }, 在用: { label: "在用", tone: "success" }, 停用: { label: "停用", tone: "neutral" }, }, order: { 待生效: { label: "待生效", tone: "neutral" }, 生效中: { label: "生效中", tone: "success" }, 已到期: { label: "已到期", tone: "neutral" }, 提前停机: { label: "提前停机", tone: "danger" }, 已退订: { label: "已退订", tone: "neutral" }, 已替换: { label: "已替换", tone: "neutral" }, }, workOrder: { 待派单: { label: "待派单", tone: "warning" }, 待处理: { label: "待处理", tone: "neutral" }, 处理中: { label: "处理中", tone: "info" }, 已完成: { label: "已完成", tone: "success" }, 已办结: { label: "已办结", tone: "success" }, 已关闭: { label: "已关闭", tone: "neutral" }, }, settlementBatch: { 待执行: { label: "待执行", tone: "neutral" }, 已执行: { label: "已执行", tone: "success" }, 执行失败: { label: "执行失败", tone: "danger" }, 已打回: { label: "已打回", tone: "warning" }, 已作废: { label: "已作废", tone: "neutral" }, }, } as const satisfies { account: Record; order: Record; workOrder: Record; settlementBatch: Record; };