|
|
@@ -5,7 +5,9 @@ const TODAY = "2026-10-15";
|
|
|
const LEVEL_NAMES = ["大区", "市", "区县"];
|
|
|
|
|
|
const SEED = {
|
|
|
- setting: { defaultReconcileDay: 5 },
|
|
|
+ /* exitOptions:合同服务构成「线路出口」下拉的可选项(国家/地区名称原文),全局共用一套,
|
|
|
+ 在「套餐目录 → 线路出口可选项配置」里由总运营增删;合同条目从这里取用,不再自由填写。 */
|
|
|
+ setting: { defaultReconcileDay: 5, exitOptions: ["中国香港", "中国澳门", "中国台湾", "日本", "韩国", "新加坡", "马来西亚", "泰国", "美国", "英国", "德国", "法国"] },
|
|
|
regions: [
|
|
|
{ id: "east", name: "华东大区", level: 0, parent: null },
|
|
|
{ id: "south", name: "华南大区", level: 0, parent: null },
|
|
|
@@ -234,27 +236,27 @@ const SEED = {
|
|
|
amount 为合同总额(客户应收仍按订阅冻结价计,见 5.3);items 为服务构成条目,两种形态可在同一份合同混用、逐项独立配置:
|
|
|
套餐式 {type:"套餐", pkg:档位名, qty, exits, ips}——账号数按档位额度 × 数量派生,带宽以档位口径为准;
|
|
|
自定义式 {type:"自定义", accounts, bwDown, bwUp, bwSym?, exits, ips}——不指定固定套餐,直接录账号数与上/下行带宽(只填单值时 bwSym 标注对称)。
|
|
|
- 条目内 exits 为线路出口(国家/地区,一条一行);ips 为需分配 IP 条目(出口 + 带宽档位 + 数量,与 7.2 交接单同口径);
|
|
|
+ 条目内 exits 为线路出口(国家/地区,从下拉选取):套餐式单选一条(要换出口另建一条合同),自定义式可选多条;ips 为需分配 IP 条目(出口 + 带宽档位 + 数量,与 7.2 交接单同口径);
|
|
|
列表与详情的带宽 / 出口 / 账号数 / IP 条目均按条目汇总派生。agent 三件套为运营商经办人(姓名、电话、交接单日期,均必填);
|
|
|
source 记合同进入系统的途径(联通同步 / 界面录入 / 批量导入)。状态按起止日与 TODAY 派生:待生效 / 生效中 / 已到期。 */
|
|
|
contracts: [
|
|
|
- { no: "HT-CL-20250318", enterprise: 0, extNo: "CU-SH-20250315-011", amount: 1080, payCycle: "按年", start: "2025-03-18", end: "2026-03-17", items: [{ type: "套餐", pkg: "跨境办公 · 基础档", qty: 1, exits: ["中国香港"], ips: [] }], agent: "上海联通 · 王经理", agentPhone: "13601700101", handoverOn: "2025-03-15", source: "联通同步", files: ["oss://contracts/HT-CL-20250318.pdf"] },
|
|
|
- { no: "HT-CL-20260318", enterprise: 0, extNo: "CU-SH-20260316-023", amount: 1440, payCycle: "按年", start: "2026-03-18", end: "2027-03-17", items: [{ type: "套餐", pkg: "跨境办公 · 标准档", qty: 1, exits: ["中国香港"], ips: [] }], agent: "上海联通 · 王经理", agentPhone: "13601700101", handoverOn: "2026-03-16", source: "联通同步", files: ["oss://contracts/HT-CL-20260318.pdf"] },
|
|
|
+ { no: "HT-CL-20250318", enterprise: 0, extNo: "CU-SH-20250315-011", amount: 1080, payCycle: "按年", start: "2025-03-18", end: "2026-03-17", items: [{ type: "套餐", pkg: "跨境办公 · 基础档", qty: 1, exits: ["中国香港"], ipCount: 0 }], agent: "上海联通 · 王经理", agentPhone: "13601700101", handoverOn: "2025-03-15", source: "联通同步", files: ["oss://contracts/HT-CL-20250318.pdf"] },
|
|
|
+ { no: "HT-CL-20260318", enterprise: 0, extNo: "CU-SH-20260316-023", amount: 1440, payCycle: "按年", start: "2026-03-18", end: "2027-03-17", items: [{ type: "套餐", pkg: "跨境办公 · 标准档", qty: 1, exits: ["中国香港"], ipCount: 0 }], agent: "上海联通 · 王经理", agentPhone: "13601700101", handoverOn: "2026-03-16", source: "联通同步", files: ["oss://contracts/HT-CL-20260318.pdf"] },
|
|
|
/* 套餐式 + 自定义式混用示例:临港 ICT 定制套餐 ×1,另有一笔不指定套餐的自定义服务(账号 4、对称 30M、美国出口 + IP) */
|
|
|
{ no: "ICT-LG-20260902", enterprise: 1, extNo: "", amount: 24000, payCycle: "按年", start: "2026-09-02", end: "2027-09-01", items: [
|
|
|
- { type: "套餐", pkg: "临港 ICT 定制套餐", qty: 1, exits: ["中国香港", "美国"], ips: [{ country: "中国香港", bw: "10兆", count: 2 }] },
|
|
|
- { type: "自定义", accounts: 4, bwDown: 30, bwUp: 30, bwSym: true, exits: ["美国"], ips: [{ country: "美国", bw: "30兆", count: 1 }] },
|
|
|
+ { type: "套餐", pkg: "临港 ICT 定制套餐", qty: 1, exits: ["中国香港"], ipCount: 2 },
|
|
|
+ { type: "自定义", accounts: 4, bwDown: 30, bwUp: 30, bwSym: true, exits: ["美国"], ipCount: 1 },
|
|
|
], agent: "临港联通 · 张工", agentPhone: "13601700208", handoverOn: "2026-10-06", source: "界面录入", files: ["oss://contracts/ICT-LG-20260902.pdf"] },
|
|
|
- { no: "HT-CFA-20260901", enterprise: 2, extNo: "CM-SZ-20260828-042", amount: 10800, payCycle: "按月", start: "2026-09-01", end: "2026-10-31", items: [{ type: "套餐", pkg: "直播高需求 · A 类", qty: 1, exits: ["美国"], ips: [{ country: "美国", bw: "10兆", count: 1 }] }], agent: "苏州移动 · 刘经理", agentPhone: "13800002201", handoverOn: "2026-08-29", source: "批量导入", files: ["oss://contracts/HT-CFA-20260901.pdf"] },
|
|
|
- { no: "HT-WM-20260601", enterprise: 3, extNo: "", amount: 5760, payCycle: "按年", start: "2026-06-01", end: "2027-05-31", items: [{ type: "套餐", pkg: "AI 应用 · 5M 档", qty: 1, exits: ["日本"], ips: [{ country: "日本", bw: "5兆", count: 1 }] }], agent: "上海移动 · 高经理", agentPhone: "13900003301", handoverOn: "2026-05-28", source: "界面录入", files: ["oss://contracts/HT-WM-20260601.pdf"] },
|
|
|
+ { no: "HT-CFA-20260901", enterprise: 2, extNo: "CM-SZ-20260828-042", amount: 10800, payCycle: "按月", start: "2026-09-01", end: "2026-10-31", items: [{ type: "套餐", pkg: "直播高需求 · A 类", qty: 1, exits: ["美国"], ipCount: 1 }], agent: "苏州移动 · 刘经理", agentPhone: "13800002201", handoverOn: "2026-08-29", source: "批量导入", files: ["oss://contracts/HT-CFA-20260901.pdf"] },
|
|
|
+ { no: "HT-WM-20260601", enterprise: 3, extNo: "", amount: 5760, payCycle: "按年", start: "2026-06-01", end: "2027-05-31", items: [{ type: "套餐", pkg: "AI 应用 · 5M 档", qty: 1, exits: ["日本"], ipCount: 1 }], agent: "上海移动 · 高经理", agentPhone: "13900003301", handoverOn: "2026-05-28", source: "界面录入", files: ["oss://contracts/HT-WM-20260601.pdf"] },
|
|
|
/* 纯自定义式示例:不指定固定套餐,直接约定账号 2、上下行对称 5M、日本出口与 IP 条目 */
|
|
|
- { no: "HT-WM-20260801", enterprise: 3, extNo: "", amount: 1920, payCycle: "按年", start: "2026-08-01", end: "2027-07-31", items: [{ type: "自定义", accounts: 2, bwDown: 5, bwUp: 5, bwSym: true, exits: ["日本"], ips: [{ country: "日本", bw: "10兆", count: 2 }] }], agent: "上海移动 · 高经理", agentPhone: "13900003301", handoverOn: "2026-07-29", source: "界面录入", files: ["oss://contracts/HT-WM-20260801.pdf"] },
|
|
|
+ { no: "HT-WM-20260801", enterprise: 3, extNo: "", amount: 1920, payCycle: "按年", start: "2026-08-01", end: "2027-07-31", items: [{ type: "自定义", accounts: 2, bwDown: 5, bwUp: 5, bwSym: true, exits: ["日本"], ipCount: 2 }], agent: "上海移动 · 高经理", agentPhone: "13900003301", handoverOn: "2026-07-29", source: "界面录入", files: ["oss://contracts/HT-WM-20260801.pdf"] },
|
|
|
/* 叠加档示例:单独境外 IP ×2 个,档位额度为 0,不新增账号数 */
|
|
|
- { no: "HT-WM-20261008", enterprise: 3, extNo: "", amount: 1920, payCycle: "按年", start: "2026-10-08", end: "2027-10-07", items: [{ type: "套餐", pkg: "单独境外 IP(按个叠加)", qty: 2, exits: ["中国香港"], ips: [{ country: "中国香港", bw: "10兆", count: 2 }] }], agent: "上海移动 · 高经理", agentPhone: "13900003301", handoverOn: "2026-10-06", source: "界面录入", files: ["oss://contracts/HT-WM-20261008.pdf"] },
|
|
|
- { no: "HT-HL-20251001", enterprise: 4, extNo: "CU-SH-20250925-090", amount: 1920, payCycle: "按年", start: "2025-10-01", end: "2026-09-30", items: [{ type: "套餐", pkg: "跨境办公 · 独立 IP 档", qty: 1, exits: ["新加坡"], ips: [{ country: "新加坡", bw: "5兆", count: 1 }] }], agent: "上海联通 · 王经理", agentPhone: "13601700101", handoverOn: "2025-09-26", source: "联通同步", files: ["oss://contracts/HT-HL-20251001.pdf"] },
|
|
|
- { no: "HT-HL-20261101", enterprise: 4, extNo: "CU-SH-20261009-115", amount: 1920, payCycle: "按年", start: "2026-11-01", end: "2027-10-31", items: [{ type: "套餐", pkg: "跨境办公 · 独立 IP 档", qty: 1, exits: ["新加坡"], ips: [{ country: "新加坡", bw: "5兆", count: 1 }] }], agent: "上海联通 · 王经理", agentPhone: "13601700101", handoverOn: "2026-10-10", source: "联通同步", files: ["oss://contracts/HT-HL-20261101.pdf"] },
|
|
|
+ { no: "HT-WM-20261008", enterprise: 3, extNo: "", amount: 1920, payCycle: "按年", start: "2026-10-08", end: "2027-10-07", items: [{ type: "套餐", pkg: "单独境外 IP(按个叠加)", qty: 2, exits: ["中国香港"], ipCount: 2 }], agent: "上海移动 · 高经理", agentPhone: "13900003301", handoverOn: "2026-10-06", source: "界面录入", files: ["oss://contracts/HT-WM-20261008.pdf"] },
|
|
|
+ { no: "HT-HL-20251001", enterprise: 4, extNo: "CU-SH-20250925-090", amount: 1920, payCycle: "按年", start: "2025-10-01", end: "2026-09-30", items: [{ type: "套餐", pkg: "跨境办公 · 独立 IP 档", qty: 1, exits: ["新加坡"], ipCount: 1 }], agent: "上海联通 · 王经理", agentPhone: "13601700101", handoverOn: "2025-09-26", source: "联通同步", files: ["oss://contracts/HT-HL-20251001.pdf"] },
|
|
|
+ { no: "HT-HL-20261101", enterprise: 4, extNo: "CU-SH-20261009-115", amount: 1920, payCycle: "按年", start: "2026-11-01", end: "2027-10-31", items: [{ type: "套餐", pkg: "跨境办公 · 独立 IP 档", qty: 1, exits: ["新加坡"], ipCount: 1 }], agent: "上海联通 · 王经理", agentPhone: "13601700101", handoverOn: "2026-10-10", source: "联通同步", files: ["oss://contracts/HT-HL-20261101.pdf"] },
|
|
|
/* 不同出口并存演示合同:与客户 0 的中国香港标准档(HT-CL-20260318)同套餐不同出口,两份额度累加、各自出账 */
|
|
|
- { no: "HT-CL-20260901", enterprise: 0, extNo: "", amount: 1440, payCycle: "按年", start: "2026-09-01", end: "2027-08-31", items: [{ type: "套餐", pkg: "跨境办公 · 标准档", qty: 1, exits: ["美国"], ips: [{ country: "美国", bw: "10兆", count: 1 }] }], agent: "上海联通 · 王经理", agentPhone: "13601700101", handoverOn: "2026-08-28", source: "界面录入", files: ["oss://contracts/HT-CL-20260901.pdf"] },
|
|
|
+ { no: "HT-CL-20260901", enterprise: 0, extNo: "", amount: 1440, payCycle: "按年", start: "2026-09-01", end: "2027-08-31", items: [{ type: "套餐", pkg: "跨境办公 · 标准档", qty: 1, exits: ["美国"], ipCount: 1 }], agent: "上海联通 · 王经理", agentPhone: "13601700101", handoverOn: "2026-08-28", source: "界面录入", files: ["oss://contracts/HT-CL-20260901.pdf"] },
|
|
|
],
|
|
|
/* 下属分账号:login 为账号名,规则是「客户主账号登录名-n」,n 为该客户的分账号序号,从 1 起,
|
|
|
正式与临时测试共用一个序号池;netLogin 为零信任客户端上的账号名,选填、可改、不校验唯一。
|
|
|
@@ -331,7 +333,7 @@ const SEED = {
|
|
|
{ kind: "项目费用", name: "园区机房改造项目月摊销", amount: 1200, repeat: "每月", calc: "每客户", deduct: false },
|
|
|
],
|
|
|
/* 客户应收结算记录:一条 = 一份生效订阅 × 一个自然月,是计费的原始依据。
|
|
|
- shares 每条带 ch / ref 标明该笔分成的分成方,对账明细与对账批次即按此围绕分成方展开;
|
|
|
+ shares 每条带 ch / ref 标明该笔分成的分成方,账单明细与对账清单即按此围绕分成方展开;
|
|
|
「未配置,计 0」的占位行不带 ch / ref,不进对账。 */
|
|
|
settlements: [
|
|
|
{
|
|
|
@@ -401,20 +403,20 @@ const SEED = {
|
|
|
attrs: "联通 / 邹合(华东) / 华东常规运维 / 无施工团队",
|
|
|
},
|
|
|
],
|
|
|
- /* 对账批次:一条 = 一个分成方 × 一个已结束自然月。对账是与分成方(运营商 / 合伙人 / 运维团队)进行的,
|
|
|
+ /* 对账清单:一条 = 一个分成方 × 一个已结束自然月。对账是与分成方(运营商 / 合伙人 / 运维团队)进行的,
|
|
|
不是与客户,故批次只挂 ch / ref(分成方类型与档案下标),客户与该分成方的对应关系逐条落在 rows 指向的
|
|
|
应收结算记录里。同一个结算记录会同时进入多个分成方的批次(各算各的)。
|
|
|
运营商按档案上的对账日出批次(无覆盖时按系统默认对账日),合伙人与运维团队按系统默认对账日出批次。 */
|
|
|
- batches: [
|
|
|
- { no: "DZ-20261005-LT", day: "2026-10-05", month: "2026-09", ch: "operator", ref: 0, trigger: "自动", status: "已执行", by: "系统", at: "2026-10-05 06:00", rows: [2, 5], warning: "" },
|
|
|
- { no: "DZ-20261008-YD", day: "2026-10-08", month: "2026-09", ch: "operator", ref: 2, trigger: "自动", status: "已执行", by: "系统", at: "2026-10-08 06:00", rows: [3, 4], warning: "" },
|
|
|
- { no: "DZ-20261005-ZH", day: "2026-10-05", month: "2026-09", ch: "partner", ref: 0, trigger: "自动", status: "已执行", by: "系统", at: "2026-10-05 06:00", rows: [2, 5], warning: "" },
|
|
|
- { no: "DZ-20261005-YW0", day: "2026-10-05", month: "2026-09", ch: "team", ref: 0, trigger: "自动", status: "已执行", by: "系统", at: "2026-10-05 06:00", rows: [2, 3, 4, 5], warning: "" },
|
|
|
- { no: "DZ-20261005-SG1", day: "2026-10-05", month: "2026-09", ch: "team", ref: 1, trigger: "自动", status: "已执行", by: "系统", at: "2026-10-05 06:00", rows: [2, 3, 4], warning: "海岚跨境未挂施工团队,该分成方本月不计分成" },
|
|
|
- { no: "DZ-20260905-DX", day: "2026-09-05", month: "2026-08", ch: "operator", ref: 1, trigger: "自动", status: "已打回", by: "系统", at: "2026-09-05 06:00", rows: [], warning: "分成比例误录,运营商尚未付款" },
|
|
|
- { no: "DZ-20260912-DX-R", day: "2026-09-12", month: "2026-08", ch: "operator", ref: 1, trigger: "人工", status: "已执行", by: "林管", at: "2026-09-12 10:20", rows: [], warning: "打回后重做,新明细成为 8 月唯一有效分成" },
|
|
|
- { no: "DZ-20260605-LT", day: "2026-06-05", month: "2026-05", ch: "operator", ref: 0, trigger: "自动", status: "执行失败", by: "系统", at: "2026-06-05 06:00", rows: [], warning: "对账任务异常中断,等待人工补跑" },
|
|
|
- { no: "DZ-20260905-HN", day: "2026-09-05", month: "2026-08", ch: "partner", ref: 1, trigger: "自动", status: "已执行", by: "系统", at: "2026-09-05 06:00", rows: [], warning: "何南(华南渠道)8 月尚无生效分成规则,本批 0 条明细" },
|
|
|
+ statements: [
|
|
|
+ { no: "DZD-20261005-LT", day: "2026-10-05", month: "2026-09", ch: "operator", ref: 0, trigger: "自动", status: "已执行", by: "系统", at: "2026-10-05 06:00", rows: [2, 5], warning: "" },
|
|
|
+ { no: "DZD-20261008-YD", day: "2026-10-08", month: "2026-09", ch: "operator", ref: 2, trigger: "自动", status: "已执行", by: "系统", at: "2026-10-08 06:00", rows: [3, 4], warning: "" },
|
|
|
+ { no: "DZD-20261005-ZH", day: "2026-10-05", month: "2026-09", ch: "partner", ref: 0, trigger: "自动", status: "已执行", by: "系统", at: "2026-10-05 06:00", rows: [2, 5], warning: "" },
|
|
|
+ { no: "DZD-20261005-YW0", day: "2026-10-05", month: "2026-09", ch: "team", ref: 0, trigger: "自动", status: "已执行", by: "系统", at: "2026-10-05 06:00", rows: [2, 3, 4, 5], warning: "" },
|
|
|
+ { no: "DZD-20261005-SG1", day: "2026-10-05", month: "2026-09", ch: "team", ref: 1, trigger: "自动", status: "已执行", by: "系统", at: "2026-10-05 06:00", rows: [2, 3, 4], warning: "海岚跨境未挂施工团队,该分成方本月不计分成" },
|
|
|
+ { no: "DZD-20260905-DX", day: "2026-09-05", month: "2026-08", ch: "operator", ref: 1, trigger: "自动", status: "已打回", by: "系统", at: "2026-09-05 06:00", rows: [], warning: "分成比例误录,运营商尚未付款" },
|
|
|
+ { no: "DZD-20260912-DX-R", day: "2026-09-12", month: "2026-08", ch: "operator", ref: 1, trigger: "人工", status: "已执行", by: "林管", at: "2026-09-12 10:20", rows: [], warning: "打回后重做,新明细成为 8 月唯一有效分成" },
|
|
|
+ { no: "DZD-20260605-LT", day: "2026-06-05", month: "2026-05", ch: "operator", ref: 0, trigger: "自动", status: "执行失败", by: "系统", at: "2026-06-05 06:00", rows: [], warning: "对账任务异常中断,等待人工补跑" },
|
|
|
+ { no: "DZD-20260905-HN", day: "2026-09-05", month: "2026-08", ch: "partner", ref: 1, trigger: "自动", status: "已执行", by: "系统", at: "2026-09-05 06:00", rows: [], warning: "何南(华南渠道)8 月尚无生效分成规则,本批 0 条明细" },
|
|
|
],
|
|
|
/* 客户批量导入批次(见需求规格说明 4.8):一次上传一个文件生成一个批次,批次号贯穿行级结果、续传与按批次导出。
|
|
|
rows 每行记 line 行编号、cells 模板 14 列原文、status 成功 / 失败、reason 失败原因、
|
|
|
@@ -440,7 +442,7 @@ const SEED = {
|
|
|
],
|
|
|
notes: [
|
|
|
{ level: "严重", bill: "澄澜科技 2026-03", text: "3 月比例曾按 0.18 录入,核验后从 4 月起改为 0.20。3 月账单已递交运营商,原明细保留不改。", by: "林管", at: "2026-04-06 09:30" },
|
|
|
- { level: "严重", bill: "电信 2026-08 对账批次(DZ-20260905-DX)", text: "批次分成比例误录,运营商尚未付款,批次打回重做;重做批次 DZ-20260912-DX-R 核验通过。", by: "林管", at: "2026-09-12 10:15" },
|
|
|
+ { level: "严重", bill: "电信 2026-08 对账清单(DZD-20260905-DX)", text: "批次分成比例误录,运营商尚未付款,批次打回重做;重做批次 DZD-20260912-DX-R 核验通过。", by: "林管", at: "2026-09-12 10:15" },
|
|
|
],
|
|
|
feedback: [
|
|
|
{ no: "KL-UNKNOWN-3", action: "开户", date: "2026-10-11", state: "nomatch", result: "主体号匹配不到任何待执行记录,待人工处理。不自动创建客户,不改账户状态。", handled: false },
|
|
|
@@ -462,7 +464,7 @@ const SEED = {
|
|
|
{ at: "2026-09-02 09:10", by: "林管", type: "运维团队负责范围调整", object: "沪东施工", before: "澄澜科技、王敏", after: "澄澜科技、临港跨境、王敏(新增直接多选客户:临港跨境)" },
|
|
|
{ at: "2026-10-05 15:20", by: "林管", type: "合伙人负责范围调整", object: "何南(华南渠道)", before: "(空)", after: "天河区(暂无直属客户);直接多选客户:陈阿福" },
|
|
|
{ at: "2026-10-05 15:25", by: "林管", type: "分成规则新建", object: "何南(华南渠道)× 王敏", before: "(无规则,分成计 0)", after: "合同增补 · 按总金额比例 0.08" },
|
|
|
- { at: "2026-10-05 06:00", by: "系统", type: "对账批次自动执行", object: "DZ-20261005-LT · 联通 · 2026-09", before: "待执行", after: "已执行(2 条明细)" },
|
|
|
+ { at: "2026-10-05 06:00", by: "系统", type: "对账清单自动执行", object: "DZD-20261005-LT · 联通 · 2026-09", before: "待执行", after: "已执行(2 条明细)" },
|
|
|
],
|
|
|
/* 登录账号:login 为登录名,acctStatus 在用 / 停用(停用的不出现在「换身份」列表),
|
|
|
mustChange 为下次登录是否必须改密,pwdResetOn 为最近一次重置密码日期。
|