|
@@ -212,7 +212,8 @@ const SEED = {
|
|
|
],
|
|
],
|
|
|
/* 订阅一律按名称引用「套餐目录」中的档位,签约时把目录价冻结到订阅上(目录改价不影响存量订阅)。
|
|
/* 订阅一律按名称引用「套餐目录」中的档位,签约时把目录价冻结到订阅上(目录改价不影响存量订阅)。
|
|
|
示例覆盖全部用途分类:通用办公(基础 / 标准 / 独立 IP 档)、直播高需求(A 类)、AI 应用(5M 档)、
|
|
示例覆盖全部用途分类:通用办公(基础 / 标准 / 独立 IP 档)、直播高需求(A 类)、AI 应用(5M 档)、
|
|
|
- 叠加增值(单独境外 IP ×2 个:80 元/个/月 × 2 × 12)、定制化(临港 ICT 自定义档)。 */
|
|
|
|
|
|
|
+ 叠加增值(单独境外 IP ×2 个:80 元/个/月 × 2 × 12)、定制化(临港 ICT 自定义档)。
|
|
|
|
|
+ 另含「同一套餐不同出口并存」示例(见末条):出口随所引用合同的套餐条目带出,不同出口各计一份额度、各自出账。 */
|
|
|
subs: [
|
|
subs: [
|
|
|
{ enterprise: 0, name: "跨境办公 · 基础档", kind: "升降配前", status: "已到期", start: "2025-03-18", end: "2026-03-17", yearPrice: 1080, monthPrice: 90, openedOn: "2025-03-20", contractNo: "HT-CL-20250318", files: ["oss://contracts/HT-CL-20250318.pdf"] },
|
|
{ enterprise: 0, name: "跨境办公 · 基础档", kind: "升降配前", status: "已到期", start: "2025-03-18", end: "2026-03-17", yearPrice: 1080, monthPrice: 90, openedOn: "2025-03-20", contractNo: "HT-CL-20250318", files: ["oss://contracts/HT-CL-20250318.pdf"] },
|
|
|
{ enterprise: 0, name: "跨境办公 · 标准档", kind: "正式", status: "生效中", start: "2026-03-18", end: "2027-03-17", yearPrice: 1440, monthPrice: 120, openedOn: "2026-03-20", contractNo: "HT-CL-20260318", files: ["oss://contracts/HT-CL-20260318.pdf"] },
|
|
{ enterprise: 0, name: "跨境办公 · 标准档", kind: "正式", status: "生效中", start: "2026-03-18", end: "2027-03-17", yearPrice: 1440, monthPrice: 120, openedOn: "2026-03-20", contractNo: "HT-CL-20260318", files: ["oss://contracts/HT-CL-20260318.pdf"] },
|
|
@@ -224,6 +225,36 @@ const SEED = {
|
|
|
{ enterprise: 4, name: "跨境办公 · 独立 IP 档", kind: "正式", status: "待生效", start: "2026-11-01", end: "2027-10-31", yearPrice: 1920, monthPrice: 160, openedOn: null, contractNo: "HT-HL-20261101", files: ["oss://contracts/HT-HL-20261101.pdf"] },
|
|
{ enterprise: 4, name: "跨境办公 · 独立 IP 档", kind: "正式", status: "待生效", start: "2026-11-01", end: "2027-10-31", yearPrice: 1920, monthPrice: 160, openedOn: null, contractNo: "HT-HL-20261101", files: ["oss://contracts/HT-HL-20261101.pdf"] },
|
|
|
/* 客户已在用时新增的叠加订阅:保存时自动生成「服务开通」工单(见 tickets 末条),实际开通日尚未回填 */
|
|
/* 客户已在用时新增的叠加订阅:保存时自动生成「服务开通」工单(见 tickets 末条),实际开通日尚未回填 */
|
|
|
{ enterprise: 3, name: "单独境外 IP(按个叠加)", kind: "叠加", status: "生效中", start: "2026-10-08", end: "2027-10-07", yearPrice: 1920, monthPrice: 160, openedOn: null, contractNo: "HT-WM-20261008", files: ["oss://contracts/HT-WM-20261008.pdf"] },
|
|
{ enterprise: 3, name: "单独境外 IP(按个叠加)", kind: "叠加", status: "生效中", start: "2026-10-08", end: "2027-10-07", yearPrice: 1920, monthPrice: 160, openedOn: null, contractNo: "HT-WM-20261008", files: ["oss://contracts/HT-WM-20261008.pdf"] },
|
|
|
|
|
+ /* 同一套餐不同出口并存示例:客户 0 已有中国香港出口的标准档生效订阅(HT-CL-20260318),本条经 HT-CL-20260901 走美国出口,
|
|
|
|
|
+ 两份额度累加、各自出账;出口随所引用合同的套餐条目带出(本条不写 exits,由合同条目派生演示兜底链路) */
|
|
|
|
|
+ { enterprise: 0, name: "跨境办公 · 标准档", kind: "正式", status: "生效中", start: "2026-09-01", end: "2027-08-31", yearPrice: 1440, monthPrice: 120, openedOn: "2026-09-03", contractNo: "HT-CL-20260901", files: ["oss://contracts/HT-CL-20260901.pdf"] },
|
|
|
|
|
+ ],
|
|
|
|
|
+ /* 合同管理(见需求规格说明 5.3):合同留存完整的合同业务配置信息,是生成工单与运营商对账的数据源头。
|
|
|
|
|
+ no 与订阅上的合同编号对应(界面录入可留空,由系统按客户主体号生成);extNo 为运营商侧外部单号(联通订单号,界面录入可空);
|
|
|
|
|
+ amount 为合同总额(客户应收仍按订阅冻结价计,见 5.3);items 为服务构成条目,两种形态可在同一份合同混用、逐项独立配置:
|
|
|
|
|
+ 套餐式 {type:"套餐", pkg:档位名, qty, exits, ips}——账号数按档位额度 × 数量派生,带宽以档位口径为准;
|
|
|
|
|
+ 自定义式 {type:"自定义", accounts, bwDown, bwUp, bwSym?, exits, ips}——不指定固定套餐,直接录账号数与上/下行带宽(只填单值时 bwSym 标注对称)。
|
|
|
|
|
+ 条目内 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"] },
|
|
|
|
|
+ /* 套餐式 + 自定义式混用示例:临港 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 }] },
|
|
|
|
|
+ ], 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"] },
|
|
|
|
|
+ /* 纯自定义式示例:不指定固定套餐,直接约定账号 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"] },
|
|
|
|
|
+ /* 叠加档示例:单独境外 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"] },
|
|
|
|
|
+ /* 不同出口并存演示合同:与客户 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"] },
|
|
|
],
|
|
],
|
|
|
/* 下属分账号:login 为账号名,规则是「客户主账号登录名-n」,n 为该客户的分账号序号,从 1 起,
|
|
/* 下属分账号:login 为账号名,规则是「客户主账号登录名-n」,n 为该客户的分账号序号,从 1 起,
|
|
|
正式与临时测试共用一个序号池;netLogin 为零信任客户端上的账号名,选填、可改、不校验唯一。
|
|
正式与临时测试共用一个序号池;netLogin 为零信任客户端上的账号名,选填、可改、不校验唯一。
|