import type { StatusTone } from "../domain/statuses"; /** 维护说明、运营商反馈与审计日志为虚构演示数据。 */ export type DemoMaintenanceNote = { id: string; title: string; scopePath: string; windowStart: string; windowEnd: string; publisher: string; summary: string; status: "草稿" | "已发布" | "已归档"; }; export const maintenanceNoteTone = { 草稿: "neutral", 已发布: "success", 已归档: "neutral", } as const satisfies Record; export const initialMaintenanceNotes: DemoMaintenanceNote[] = [ { id: "NOTE-2026-018", title: "浦东核心节点线路割接", scopePath: "华东大区 / 上海市 / 浦东新区", windowStart: "2026-10-25 01:00", windowEnd: "2026-10-25 05:00", publisher: "吴队", summary: "运营商侧核心路由器更换,割接期间客户链路闪断 1-2 次,涉及澄澜科技等 5 家客户。", status: "已发布", }, { id: "NOTE-2026-017", title: "临港出口带宽扩容", scopePath: "华东大区 / 上海市 / 临港新片区", windowStart: "2026-10-20 23:30", windowEnd: "2026-10-21 02:00", publisher: "吴队", summary: "出口带宽由 200M 扩容至 500M,短暂抖动已结束,业务无感知。", status: "已发布", }, { id: "NOTE-2026-019", title: "深圳宝安机房消防巡检", scopePath: "华南大区 / 深圳市 / 宝安区", windowStart: "2026-11-02 02:00", windowEnd: "2026-11-02 04:00", publisher: "郑工", summary: "机房例行消防巡检,不中断业务;如触发告警请以现场公告为准。", status: "草稿", }, { id: "NOTE-2026-012", title: "九月账期对账口径调整说明", scopePath: "全区域", windowStart: "2026-09-28 09:00", windowEnd: "2026-09-28 18:00", publisher: "林管", summary: "对账日跟随系统默认 5 日;9 月电信范围出账失败部分改人工补跑。", status: "已归档", }, ]; export type DemoOperatorFeedback = { id: string; operator: string; category: "对账" | "结算" | "网络" | "其他"; summary: string; detail: string; submittedAt: string; status: "待处理" | "处理中" | "已回复" | "已关闭"; replies: { at: string; actor: string; content: string }[]; }; export const operatorFeedbackTone = { 待处理: "neutral", 处理中: "info", 已回复: "success", 已关闭: "neutral", } as const satisfies Record; export const initialOperatorFeedback: DemoOperatorFeedback[] = [ { id: "FB-2026-031", operator: "电信 · 上海分公司", category: "结算", summary: "9 月结算批次失败原因询问", detail: "我方对账系统未收到 9 月批次数据,请确认出账状态与补跑计划。", submittedAt: "2026-10-16", status: "处理中", replies: [{ at: "2026-10-17", actor: "林管", content: "已定位为对账日配置缺失,计划本周人工补跑后同步结果。" }], }, { id: "FB-2026-030", operator: "移动 · 广东分公司", category: "对账", summary: "对账日调整申请", detail: "我集团统一账期为每月 15 日,申请将结算范围对账日由默认 5 日调整为 15 日。", submittedAt: "2026-10-09", status: "已回复", replies: [{ at: "2026-10-10", actor: "林管", content: "已在「对账设置」中为贵司范围配置单独对账日 15 日,11 月起生效。" }], }, { id: "FB-2026-029", operator: "联通 · 上海分公司", category: "网络", summary: "浦东割接窗口确认", detail: "10 月 25 日凌晨割接请提前 48 小时同步受影响客户清单。", submittedAt: "2026-10-14", status: "待处理", replies: [], }, { id: "FB-2026-026", operator: "联通 · 江苏分公司", category: "其他", summary: "苏州新增客户资料核对", detail: "批量导入的 7 家客户里有两家主体名称与合同不一致,请核对。", submittedAt: "2026-09-30", status: "已关闭", replies: [{ at: "2026-10-03", actor: "许芸", content: "已与客户重签并修正档案名称,导入批次行级结果已更新。" }], }, ]; export type DemoAuditLog = { id: string; at: string; actor: string; role: string; action: "新增" | "编辑" | "删除" | "账号" | "导出" | "登录"; target: string; detail: string; }; export const auditActionTone = { 新增: "success", 编辑: "info", 删除: "danger", 账号: "warning", 导出: "info", 登录: "neutral", } as const satisfies Record; export const initialAuditLogs: DemoAuditLog[] = [ { id: "LOG-8841", at: "2026-10-22 09:12", actor: "林管", role: "总运营", action: "账号", target: "运维团队 / 华东常规运维 · 周宁", detail: "重置激活码,原码立即作废。" }, { id: "LOG-8840", at: "2026-10-22 08:47", actor: "许芸", role: "运营子账号", action: "编辑", target: "客户管理 / 极目海外购", detail: "修正主体名称,与重签合同一致。" }, { id: "LOG-8839", at: "2026-10-21 18:03", actor: "吴队", role: "运维团队", action: "新增", target: "维护说明 / 临港出口带宽扩容", detail: "发布维护窗口公告。" }, { id: "LOG-8838", at: "2026-10-21 15:29", actor: "林管", role: "总运营", action: "导出", target: "客户管理 / 激活码清单", detail: "按区域范围导出 5 个激活码,有效期默认 30 天。" }, { id: "LOG-8837", at: "2026-10-21 10:11", actor: "系统", role: "每日任务", action: "编辑", target: "订阅管理 / DT-01 到达合同生效日", detail: "续订订阅自动由待生效转为生效中。" }, { id: "LOG-8836", at: "2026-10-20 16:40", actor: "林管", role: "总运营", action: "删除", target: "组织与区域 / 测试团队", detail: "删除前已清理团队全部账号。" }, { id: "LOG-8835", at: "2026-10-20 09:26", actor: "郑工", role: "运维子账号", action: "登录", target: "会话", detail: "使用手机号登录成功。" }, { id: "LOG-8834", at: "2026-10-19 14:55", actor: "许芸", role: "运营子账号", action: "新增", target: "客户管理 / 云帆智能装备", detail: "批量导入建档成功。" }, ];