|
|
@@ -1,19 +1,21 @@
|
|
|
/* 模拟数据只存在于页面内存。内部下标从 0 开始,页面上的序号从 1 开始。 */
|
|
|
const TODAY = "2026-10-15";
|
|
|
|
|
|
-/* 区域三级:大区 / 市 / 区县。客户可挂在任一层,只能挂一个节点。 */
|
|
|
-const LEVEL_NAMES = ["大区", "市", "区县"];
|
|
|
+/* 区域三级:省 / 市 / 区县。客户可挂在任一层,只能挂一个节点。
|
|
|
+ 省级节点即「省份 × 运营商」组合取数用的省份(见 costs);市、区县不重复维护,继承向上最近的省级节点。 */
|
|
|
+const LEVEL_NAMES = ["省", "市", "区县"];
|
|
|
|
|
|
const SEED = {
|
|
|
/* exitOptions:合同服务构成「线路出口」下拉的可选项(国家/地区名称原文),全局共用一套,
|
|
|
在「套餐目录 → 线路出口可选项配置」里由总运营增删;合同条目从这里取用,不再自由填写。 */
|
|
|
setting: { defaultReconcileDay: 5, exitOptions: ["中国香港", "中国澳门", "中国台湾", "日本", "韩国", "新加坡", "马来西亚", "泰国", "美国", "英国", "德国", "法国"] },
|
|
|
regions: [
|
|
|
- { id: "east", name: "华东大区", level: 0, parent: null },
|
|
|
- { id: "south", name: "华南大区", level: 0, parent: null },
|
|
|
- { id: "sh", name: "上海市", level: 1, parent: "east" },
|
|
|
- { id: "su", name: "苏州市", level: 1, parent: "east" },
|
|
|
- { id: "gz", name: "广州市", level: 1, parent: "south" },
|
|
|
+ { id: "shp", name: "上海市", level: 0, parent: null },
|
|
|
+ { id: "jsp", name: "江苏省", level: 0, parent: null },
|
|
|
+ { id: "gdp", name: "广东省", level: 0, parent: null },
|
|
|
+ { id: "sh", name: "上海市", level: 1, parent: "shp" },
|
|
|
+ { id: "su", name: "苏州市", level: 1, parent: "jsp" },
|
|
|
+ { id: "gz", name: "广州市", level: 1, parent: "gdp" },
|
|
|
{ id: "pd", name: "浦东新区", level: 2, parent: "sh" },
|
|
|
{ id: "lg", name: "临港新片区", level: 2, parent: "sh" },
|
|
|
{ id: "mh", name: "闵行区", level: 2, parent: "sh" },
|
|
|
@@ -26,29 +28,29 @@ const SEED = {
|
|
|
按每账号时为每个账号的人民币金额(结算时分成金额 = 账号数 × 每账号金额)。在各自编辑界面配置。 */
|
|
|
operators: [
|
|
|
{ name: "联通", region: "sh", reconcileDay: null, payCycle: "按月", notify: "notice@unicorn.example", shareMode: "按比例", shareValue: 0.2 },
|
|
|
- { name: "电信", region: "east", reconcileDay: null, payCycle: "按年", notify: "notice@ict-telecom.example", shareMode: "按比例", shareValue: 0.18 },
|
|
|
- { name: "移动", region: "east", reconcileDay: 8, payCycle: "按月", notify: "notice@mobile.example", shareMode: "按比例", shareValue: 0.15 },
|
|
|
- { name: "广东电信", region: "south", reconcileDay: null, payCycle: "按季度", notify: "notice@gd-ict.example", shareMode: "按金额", shareValue: 60 },
|
|
|
+ { name: "电信", region: "shp", reconcileDay: null, payCycle: "按年", notify: "notice@ict-telecom.example", shareMode: "按比例", shareValue: 0.18 },
|
|
|
+ { name: "移动", region: "shp", reconcileDay: 8, payCycle: "按月", notify: "notice@mobile.example", shareMode: "按比例", shareValue: 0.15 },
|
|
|
+ { name: "广东电信", region: "gdp", reconcileDay: null, payCycle: "按季度", notify: "notice@gd-ict.example", shareMode: "按金额", shareValue: 60 },
|
|
|
{ name: "苏州移动", region: "su", reconcileDay: 12, payCycle: "按季度", notify: "notice@sz-mobile.example", shareMode: "按每账号", shareValue: 3.5 },
|
|
|
{ name: "广州移动", region: "gz", reconcileDay: null, payCycle: "按月", notify: "notice@gz-mobile.example", shareMode: "按比例", shareValue: 0.12 },
|
|
|
],
|
|
|
partners: [
|
|
|
- { name: "邹合", region: "east", title: "华东渠道", notify: "zouhe@example", scope: { regions: ["east"], enterprises: [] }, shareMode: "按比例", shareValue: 0.05 },
|
|
|
+ { name: "邹合", region: "shp", title: "华东渠道", notify: "zouhe@example", scope: { regions: ["sh", "su"], enterprises: [] }, shareMode: "按比例", shareValue: 0.05 },
|
|
|
{ name: "何南", region: "gz", title: "华南渠道", notify: "henan@example", scope: { regions: ["th"], enterprises: [2] }, shareMode: "按每账号", shareValue: 6 },
|
|
|
],
|
|
|
/* 运维团队按所属区域建档(region 为建档区域节点 id,列表显示全路径),负责范围另在「配置范围」里勾;
|
|
|
type 为团队类型(常规 / 施工,各占一个 tab),mode 为团队内工单分派方式,
|
|
|
shareMode 与 shareValue 为档案级分成配置,口径与运营商、合伙人、运营团队一致。 */
|
|
|
teams: [
|
|
|
- { name: "华东常规运维", region: "east", type: "常规", mode: "手工", scope: { regions: ["sh", "su"], enterprises: [] }, shareMode: "按金额", shareValue: 50 },
|
|
|
+ { name: "华东常规运维", region: "shp", type: "常规", mode: "手工", scope: { regions: ["sh", "su"], enterprises: [] }, shareMode: "按金额", shareValue: 50 },
|
|
|
{ name: "沪东施工", region: "sh", type: "施工", mode: "自动平均", scope: { regions: ["pd"], enterprises: [1] }, shareMode: "按每账号", shareValue: 4 },
|
|
|
],
|
|
|
/* hq: true 为系统内置的总运营团队:不限所属区域(region 为空),负责范围覆盖全国,列表置顶且不可删除。
|
|
|
该团队的默认主账号即总运营账号(见 users 中 builtin: true 的一条),不再另设运营团队账号。 */
|
|
|
regOpsTeams: [
|
|
|
- { name: "总运营团队", region: "", hq: true, scope: { regions: ["east", "south"], enterprises: [] }, desc: "总部平台级团队,不限所属区域,覆盖全国全部客户", shareMode: "按比例", shareValue: 0.1 },
|
|
|
- { name: "华东运营", region: "east", scope: { regions: ["east"], enterprises: [] }, desc: "覆盖华东大区全部下挂客户", shareMode: "按比例", shareValue: 0.08 },
|
|
|
- { name: "华南运营", region: "south", scope: { regions: ["south"], enterprises: [] }, desc: "覆盖华南大区全部下挂客户", shareMode: "按金额", shareValue: 30 },
|
|
|
+ { name: "总运营团队", region: "", hq: true, scope: { regions: ["shp", "jsp", "gdp"], enterprises: [] }, desc: "总部平台级团队,不限所属区域,覆盖全国全部客户", shareMode: "按比例", shareValue: 0.1 },
|
|
|
+ { name: "华东运营", region: "shp", scope: { regions: ["shp", "jsp"], enterprises: [] }, desc: "覆盖上海市与江苏省全部下挂客户", shareMode: "按比例", shareValue: 0.08 },
|
|
|
+ { name: "华南运营", region: "gdp", scope: { regions: ["gdp"], enterprises: [] }, desc: "覆盖广东省全部下挂客户", shareMode: "按金额", shareValue: 30 },
|
|
|
{ name: "上海运营", region: "sh", scope: { regions: ["sh"], enterprises: [] }, desc: "覆盖上海市及其下级区域", shareMode: "按每账号", shareValue: 2.5 },
|
|
|
],
|
|
|
members: [
|
|
|
@@ -80,7 +82,7 @@ const SEED = {
|
|
|
status: "在用",
|
|
|
quota: 5,
|
|
|
history: [
|
|
|
- { at: "2026-08-10 10:20", field: "挂载区域", before: "未挂载", after: "华东大区 / 上海市 / 浦东新区", by: "林管" },
|
|
|
+ { at: "2026-08-10 10:20", field: "挂载区域", before: "未挂载", after: "上海市 / 上海市 / 浦东新区", by: "林管" },
|
|
|
{ at: "2026-03-20 16:40", field: "账户状态", before: "未开通", after: "在用(实际开通日 2026-03-20)", by: "周宁回填" },
|
|
|
],
|
|
|
},
|
|
|
@@ -101,7 +103,7 @@ const SEED = {
|
|
|
status: "未开通",
|
|
|
quota: 8,
|
|
|
history: [
|
|
|
- { at: "2026-09-02 09:05", field: "挂载区域", before: "未挂载", after: "华东大区 / 上海市 / 临港新片区", by: "林管" },
|
|
|
+ { at: "2026-09-02 09:05", field: "挂载区域", before: "未挂载", after: "上海市 / 上海市 / 临港新片区", by: "林管" },
|
|
|
],
|
|
|
},
|
|
|
{
|
|
|
@@ -121,7 +123,7 @@ const SEED = {
|
|
|
status: "在用",
|
|
|
quota: 1,
|
|
|
history: [
|
|
|
- { at: "2026-08-28 14:10", field: "挂载区域", before: "未挂载", after: "华东大区 / 苏州市 / 昆山市", by: "林管" },
|
|
|
+ { at: "2026-08-28 14:10", field: "挂载区域", before: "未挂载", after: "江苏省 / 苏州市 / 昆山市", by: "林管" },
|
|
|
],
|
|
|
},
|
|
|
{
|
|
|
@@ -141,7 +143,7 @@ const SEED = {
|
|
|
status: "在用",
|
|
|
quota: 2,
|
|
|
history: [
|
|
|
- { at: "2026-08-20 11:30", field: "挂载区域", before: "华东大区 / 苏州市 / 昆山市", after: "华东大区 / 上海市 / 浦东新区", by: "林管" },
|
|
|
+ { at: "2026-08-20 11:30", field: "挂载区域", before: "江苏省 / 苏州市 / 昆山市", after: "上海市 / 上海市 / 浦东新区", by: "林管" },
|
|
|
{ at: "2026-08-20 11:32", field: "合伙人", before: "无", after: "何南(华南渠道,直接多选客户)", by: "林管" },
|
|
|
],
|
|
|
},
|
|
|
@@ -162,7 +164,7 @@ const SEED = {
|
|
|
status: "在用",
|
|
|
quota: 2,
|
|
|
history: [
|
|
|
- { at: "2026-09-12 15:00", field: "挂载区域", before: "未挂载", after: "华东大区 / 上海市 / 闵行区", by: "林管" },
|
|
|
+ { at: "2026-09-12 15:00", field: "挂载区域", before: "未挂载", after: "上海市 / 上海市 / 闵行区", by: "林管" },
|
|
|
{ at: "2025-10-01 10:00", field: "账户状态", before: "未开通", after: "在用(实际开通日 2025-10-01)", by: "周宁回填" },
|
|
|
],
|
|
|
},
|
|
|
@@ -184,7 +186,7 @@ const SEED = {
|
|
|
status: "未开通",
|
|
|
quota: 1,
|
|
|
history: [
|
|
|
- { at: "2026-10-15 09:40", field: "挂载区域", before: "未挂载", after: "华东大区 / 上海市 / 闵行区", by: "林管" },
|
|
|
+ { at: "2026-10-15 09:40", field: "挂载区域", before: "未挂载", after: "上海市 / 上海市 / 闵行区", by: "林管" },
|
|
|
],
|
|
|
},
|
|
|
],
|
|
|
@@ -196,21 +198,22 @@ const SEED = {
|
|
|
报价单按月报价,首期只做按年订阅,年订阅价格 = 月价 × 12。
|
|
|
分账号额度报价单未给出,按用途推定(办公档 10;直播 A 单链接单流 2、B 单链接多流 5、C 顶配 10;
|
|
|
AI 5M 档 3、10M 档 5;按个叠加的增值项不占额度记 0),运营可在目录内直接改。
|
|
|
- costs 为该档位随附的成本项:名称取自「成本管理」里的全局应扣除成本项清单,金额默认沿用清单上的本期摊销额、可在档位上改写,
|
|
|
- 计算方式与周期取全局成本项上的口径,档位上不新建成本项。计算方式为「每份」的项再多一个 qty:本档位实际配了几份这项资源就摊几份
|
|
|
+ costs 为该档位随附的成本项:名称取自「成本管理」里的全局应扣除成本项清单,档位上不录金额——
|
|
|
+ 同一成本项的具体金额按「省份 × 运营商」组合各不相同(见 costs),金额在出账时按订单相关的组合取。
|
|
|
+ 计算方式为「每份」的项再多一个 qty:本档位实际配了几份这项资源就摊几份
|
|
|
(例如该档配了 2 台境外云主机记 qty: 2),不填按 1 份;「每客户」「每账号」的项不带 qty,也不按份数放大。
|
|
|
成本项本身是全局口径,不挂在客户或订阅上,客户本月计入哪几笔由其在用订阅引用的档位决定。 */
|
|
|
packages: [
|
|
|
{ name: "跨境办公 · 基础档", cat: "通用办公", yearPrice: 1080, monthPrice: 90, quota: 10, bw: "不承诺带宽", desc: "一般访问流量,无固定境外 IP,不承诺带宽", custom: null },
|
|
|
{ name: "跨境办公 · 标准档", cat: "通用办公", yearPrice: 1440, monthPrice: 120, quota: 10, bw: "下行 10M / 上行 1M", desc: "店铺管理、一般办公、视频会议、ERP 等,比基础档速度更快更稳定", custom: null },
|
|
|
- { name: "跨境办公 · 独立 IP 档", cat: "通用办公", yearPrice: 1920, monthPrice: 160, quota: 10, bw: "下行 5M / 上行 2M", desc: "单独境外 IP 配置,通过 CPE 组织网络管理平台", custom: null, costs: [{ name: "国家 IP 地址月摊销", amount: 40, qty: 1 }] },
|
|
|
+ { name: "跨境办公 · 独立 IP 档", cat: "通用办公", yearPrice: 1920, monthPrice: 160, quota: 10, bw: "下行 5M / 上行 2M", desc: "单独境外 IP 配置,通过 CPE 组织网络管理平台", custom: null, costs: [{ name: "国家 IP 地址月摊销", qty: 1 }] },
|
|
|
{ name: "直播高需求 · A 类", cat: "直播高需求", yearPrice: 10800, monthPrice: 900, quota: 2, bw: "上下行 10M", desc: "单链接、单流;单独境外 IP 另购,80 元/个", custom: null },
|
|
|
{ name: "直播高需求 · B 类", cat: "直播高需求", yearPrice: 32400, monthPrice: 2700, quota: 5, bw: "上下行 30M", desc: "单链接、多流;团队内部运营如后台管理、看播等已包含", custom: null },
|
|
|
{ name: "直播高需求 · C 类", cat: "直播高需求", yearPrice: 62400, monthPrice: 5200, quota: 10, bw: "上下行 50M", desc: "直播高需求顶配档;链接数与流数按合同另定", custom: null },
|
|
|
- { name: "AI 应用 · 5M 档", cat: "AI 应用", yearPrice: 5760, monthPrice: 480, quota: 3, bw: "上下行 5M", desc: "面向 AI 应用访问的固定上下行带宽档", custom: null, costs: [{ name: "国家 IP 地址月摊销", amount: 50, qty: 1 }] },
|
|
|
+ { name: "AI 应用 · 5M 档", cat: "AI 应用", yearPrice: 5760, monthPrice: 480, quota: 3, bw: "上下行 5M", desc: "面向 AI 应用访问的固定上下行带宽档", custom: null, costs: [{ name: "国家 IP 地址月摊销", qty: 1 }] },
|
|
|
{ name: "AI 应用 · 10M 档", cat: "AI 应用", yearPrice: 10800, monthPrice: 900, quota: 5, bw: "上下行 10M", desc: "面向 AI 应用访问的固定上下行带宽档", custom: null },
|
|
|
- { name: "单独境外 IP(按个叠加)", cat: "叠加增值", yearPrice: 960, monthPrice: 80, quota: 0, bw: "按个计,不占带宽", desc: "80 元/个/月,与主档叠加订阅、各自计费;个数与单价在订阅上按合同改写", custom: null, costs: [{ name: "国际云主机月摊销", amount: 30, qty: 1 }] },
|
|
|
- { name: "临港 ICT 定制套餐", cat: "定制化", yearPrice: 24000, monthPrice: 2000, quota: 8, bw: "150Mbps", desc: "使用规模 30 人及以上,业务分析与需求摸排调研后定制;临港跨境贸易专项档", custom: 1, costs: [{ name: "国际出口带宽月摊销", amount: 80 }, { name: "国际云主机月摊销", amount: 30, qty: 2 }] }, /* 每份:该档配了 2 台境外云主机,按 30 × 2 = 60 摊 */
|
|
|
+ { name: "单独境外 IP(按个叠加)", cat: "叠加增值", yearPrice: 960, monthPrice: 80, quota: 0, bw: "按个计,不占带宽", desc: "80 元/个/月,与主档叠加订阅、各自计费;个数与单价在订阅上按合同改写", custom: null, costs: [{ name: "国际云主机月摊销", qty: 1 }] },
|
|
|
+ { name: "临港 ICT 定制套餐", cat: "定制化", yearPrice: 24000, monthPrice: 2000, quota: 8, bw: "150Mbps", desc: "使用规模 30 人及以上,业务分析与需求摸排调研后定制;临港跨境贸易专项档", custom: 1, costs: [{ name: "国际出口带宽月摊销" }, { name: "国际云主机月摊销", qty: 2 }] }, /* 每份:该档配了 2 台境外云主机,金额按订单的「省份 × 运营商」组合 × 2 摊 */
|
|
|
],
|
|
|
/* 订阅一律按名称引用「套餐目录」中的档位,签约时把目录价冻结到订阅上(目录改价不影响存量订阅)。
|
|
|
示例覆盖全部用途分类:通用办公(基础 / 标准 / 独立 IP 档)、直播高需求(A 类)、AI 应用(5M 档)、
|
|
|
@@ -359,22 +362,53 @@ const SEED = {
|
|
|
{ ch: "team", ref: 0, ent: 4, layer: "区域常规", rate: 0.1 },
|
|
|
{ ch: "partner", ref: 0, ent: 4, layer: "区域常规", rate: 0.05 },
|
|
|
],
|
|
|
- /* 应扣除成本项是全局清单,不挂在客户或订阅名下:一条只描述这项成本本身,客户与订阅上不录入、不勾选。
|
|
|
- deduct 是是否从分成基数中扣除:勾选的按摊销额从基数中扣除;不勾选的本期只做登记,
|
|
|
+ /* 应扣除成本项是两块功能(见需求规格说明 6.1):① 定义全局一套、不涉及金额;② 金额按「省份 × 运营商」组合各配一套。
|
|
|
+ ① 一条只描述这项成本本身——kind 成本类别、name 项目名称、calc 计算方式、repeat 周期、deduct 是否从分成基数中扣除,
|
|
|
+ 不挂在客户或订阅名下,客户与订阅上不录入、不勾选;套餐档位按 name 引用它。
|
|
|
+ ② 存在 amounts[] 里,元素为 { operator: operators 下标, province: 省级区域节点名称, amount },某组合缺条目即该组合未配置。
|
|
|
+ deduct:勾选的按摊销额从基数中扣除;不勾选的本期只做登记,
|
|
|
设备采买与项目费用约定的固定金额直接记入分成结果属会议约定的口径,本期不实现。
|
|
|
- calc 是计算方式:每客户按客户整体计一次,每账号按该客户在期分账号数逐账号计,
|
|
|
- 每份按数量逐份摊销(amount 是单份的摊销额,份数取套餐档上这条随附成本项的 qty),用于成本随数量走的项目,
|
|
|
+ calc:每客户按客户整体计一次,每账号按该客户在期分账号数逐账号计,
|
|
|
+ 每份按数量逐份摊销(组合上的 amount 是单份的摊销额,份数取套餐档上这条随附成本项的 qty),用于成本随数量走的项目,
|
|
|
例如国家 IP 地址与国际云主机按每个 IP / 每台云主机摊一份。
|
|
|
repeat 是周期:本期只有「每月」一个取值,逐月摊销计入;一次性取值待固定金额记入口径沟通确定后再加。
|
|
|
+ amounts 是金额层:2026.10.21 与运营商侧确认「不同运营商有差异,账号收费模式一样,同一运营商全省统一」,
|
|
|
+ 故同一成本项为各省的各个运营商各配一个金额,operator 为 operators 下标、province 取客户向上最近的省级区域节点名称,
|
|
|
+ 同一组合内不再按市细分。组合没配到就是未配置:出账时该项不计入、不阻止出账,成本快照标「未配置」。
|
|
|
线路投入按约定比例分成、不扣基数,不登记为成本项;临时成本增补不建数据。
|
|
|
- 某客户本月计入哪几笔由其在用订阅引用的套餐档随附成本项决定(见 packages.costs),出账时冻结成该期的成本快照。 */
|
|
|
+ 某客户本月计入哪几笔由其在用订阅引用的套餐档随附成本项决定(见 packages.costs),金额按该客户的组合取,出账时冻结成该期的成本快照。 */
|
|
|
costs: [
|
|
|
- { kind: "国际资源", name: "国家 IP 地址月摊销", amount: 50, repeat: "每月", calc: "每份", deduct: true },
|
|
|
- { kind: "国际资源", name: "国际云主机月摊销", amount: 30, repeat: "每月", calc: "每份", deduct: true },
|
|
|
- { kind: "国际资源", name: "国际出口带宽月摊销", amount: 80, repeat: "每月", calc: "每账号", deduct: true },
|
|
|
- { kind: "项目费用", name: "园区机房改造项目月摊销", amount: 1200, repeat: "每月", calc: "每客户", deduct: false },
|
|
|
+ { kind: "国际资源", name: "国家 IP 地址月摊销", repeat: "每月", calc: "每份", deduct: true, amounts: [
|
|
|
+ { operator: 0, province: "上海市", amount: 50 },
|
|
|
+ { operator: 0, province: "江苏省", amount: 45 },
|
|
|
+ { operator: 1, province: "上海市", amount: 55 },
|
|
|
+ { operator: 1, province: "江苏省", amount: 48 },
|
|
|
+ { operator: 2, province: "上海市", amount: 46 },
|
|
|
+ { operator: 3, province: "广东省", amount: 60 },
|
|
|
+ { operator: 4, province: "江苏省", amount: 42 },
|
|
|
+ { operator: 5, province: "广东省", amount: 52 },
|
|
|
+ ] },
|
|
|
+ { kind: "国际资源", name: "国际云主机月摊销", repeat: "每月", calc: "每份", deduct: true, amounts: [
|
|
|
+ { operator: 0, province: "上海市", amount: 30 },
|
|
|
+ { operator: 0, province: "江苏省", amount: 28 },
|
|
|
+ { operator: 1, province: "上海市", amount: 33 },
|
|
|
+ { operator: 2, province: "上海市", amount: 26 },
|
|
|
+ { operator: 3, province: "广东省", amount: 35 },
|
|
|
+ { operator: 5, province: "广东省", amount: 32 },
|
|
|
+ ] },
|
|
|
+ { kind: "国际资源", name: "国际出口带宽月摊销", repeat: "每月", calc: "每账号", deduct: true, amounts: [
|
|
|
+ { operator: 0, province: "上海市", amount: 80 },
|
|
|
+ { operator: 0, province: "江苏省", amount: 72 },
|
|
|
+ { operator: 3, province: "广东省", amount: 90 },
|
|
|
+ { operator: 4, province: "江苏省", amount: 65 },
|
|
|
+ ] },
|
|
|
+ /* 演示「组合未配置」:这一条只配了联通/上海市,其余组合出账时该项不计入并标未配置 */
|
|
|
+ { kind: "项目费用", name: "园区机房改造项目月摊销", repeat: "每月", calc: "每客户", deduct: false, amounts: [
|
|
|
+ { operator: 0, province: "上海市", amount: 1200 },
|
|
|
+ ] },
|
|
|
],
|
|
|
/* 客户应收结算记录:一条 = 一份生效订阅 × 一个自然月,是计费的原始依据。
|
|
|
+ costs 是出账时冻结的成本快照,同时记取数所用的「省份 × 运营商」组合(combo),此后改组合金额不改写本条。
|
|
|
shares 每条带 ch / ref 标明该笔分成的分成方,账单明细与对账清单即按此围绕分成方展开;
|
|
|
「未配置,计 0」的占位行不带 ch / ref,不进对账。 */
|
|
|
settlements: [
|
|
|
@@ -413,34 +447,34 @@ const SEED = {
|
|
|
},
|
|
|
{
|
|
|
enterprise: 3, sub: 4, month: "2026-09", days: 30, monthDays: 30, partial: false, std: 480, amount: 480, tail: false, exact: 480,
|
|
|
- costs: [{ name: "国家 IP 地址月摊销", amount: 50 }], base: 430,
|
|
|
+ costs: [{ name: "国家 IP 地址月摊销", amount: 46 }], combo: "上海市 / 移动", base: 434,
|
|
|
shares: [
|
|
|
- { ch: "operator", ref: 2, who: "移动", mode: "按总金额比例", rate: 0.15, amount: 64.5 },
|
|
|
- { ch: "team", ref: 0, who: "华东常规运维", mode: "按总金额比例", rate: 0.1, amount: 43 },
|
|
|
- { ch: "team", ref: 1, who: "沪东施工", mode: "按总金额比例", rate: 0.05, amount: 21.5 },
|
|
|
- { ch: "partner", ref: 1, who: "何南", mode: "合同增补 · 比例", rate: 0.08, amount: 34.4 },
|
|
|
+ { ch: "operator", ref: 2, who: "移动", mode: "按总金额比例", rate: 0.15, amount: 65.1 },
|
|
|
+ { ch: "team", ref: 0, who: "华东常规运维", mode: "按总金额比例", rate: 0.1, amount: 43.4 },
|
|
|
+ { ch: "team", ref: 1, who: "沪东施工", mode: "按总金额比例", rate: 0.05, amount: 21.7 },
|
|
|
+ { ch: "partner", ref: 1, who: "何南", mode: "合同增补 · 比例", rate: 0.08, amount: 34.72 },
|
|
|
],
|
|
|
attrs: "移动 / 何南(华南) / 华东常规运维 / 沪东施工",
|
|
|
},
|
|
|
{
|
|
|
enterprise: 3, sub: 5, month: "2026-09", days: 30, monthDays: 30, partial: false, std: 160, amount: 160, tail: false, exact: 160,
|
|
|
- costs: [{ name: "国际云主机月摊销", amount: 30 }], base: 130,
|
|
|
+ costs: [{ name: "国际云主机月摊销", amount: 26 }], combo: "上海市 / 移动", base: 134,
|
|
|
shares: [
|
|
|
- { ch: "operator", ref: 2, who: "移动", mode: "按总金额比例", rate: 0.15, amount: 19.5 },
|
|
|
- { ch: "team", ref: 0, who: "华东常规运维", mode: "按总金额比例", rate: 0.1, amount: 13 },
|
|
|
- { ch: "team", ref: 1, who: "沪东施工", mode: "按总金额比例", rate: 0.05, amount: 6.5 },
|
|
|
- { ch: "partner", ref: 1, who: "何南", mode: "合同增补 · 比例", rate: 0.08, amount: 10.4 },
|
|
|
+ { ch: "operator", ref: 2, who: "移动", mode: "按总金额比例", rate: 0.15, amount: 20.1 },
|
|
|
+ { ch: "team", ref: 0, who: "华东常规运维", mode: "按总金额比例", rate: 0.1, amount: 13.4 },
|
|
|
+ { ch: "team", ref: 1, who: "沪东施工", mode: "按总金额比例", rate: 0.05, amount: 6.7 },
|
|
|
+ { ch: "partner", ref: 1, who: "何南", mode: "合同增补 · 比例", rate: 0.08, amount: 10.72 },
|
|
|
],
|
|
|
attrs: "移动 / 何南(华南) / 华东常规运维 / 沪东施工(叠加订阅各算各的;叠加增值不占分账号额度)",
|
|
|
},
|
|
|
{
|
|
|
enterprise: 4, sub: 6, month: "2026-09", days: 30, monthDays: 30, partial: false, std: 160, amount: 160, tail: true, exact: 160,
|
|
|
- costs: [{ name: "国家 IP 地址月摊销", amount: 40 }], base: 120,
|
|
|
+ costs: [{ name: "国家 IP 地址月摊销", amount: 50 }], combo: "上海市 / 联通", base: 110,
|
|
|
shares: [
|
|
|
- { ch: "operator", ref: 0, who: "联通", mode: "按总金额比例", rate: 0.2, amount: 24 },
|
|
|
- { ch: "team", ref: 0, who: "华东常规运维", mode: "按总金额比例", rate: 0.1, amount: 12 },
|
|
|
+ { ch: "operator", ref: 0, who: "联通", mode: "按总金额比例", rate: 0.2, amount: 22 },
|
|
|
+ { ch: "team", ref: 0, who: "华东常规运维", mode: "按总金额比例", rate: 0.1, amount: 11 },
|
|
|
{ who: "沪东施工(未配置,计 0)", mode: "—", rate: 0, amount: 0 },
|
|
|
- { ch: "partner", ref: 0, who: "邹合", mode: "按总金额比例", rate: 0.05, amount: 6 },
|
|
|
+ { ch: "partner", ref: 0, who: "邹合", mode: "按总金额比例", rate: 0.05, amount: 5.5 },
|
|
|
],
|
|
|
attrs: "联通 / 邹合(华东) / 华东常规运维 / 无施工团队",
|
|
|
},
|
|
|
@@ -487,9 +521,9 @@ const SEED = {
|
|
|
可见范围判据——区域不在其负责范围(含下级区域)内的记录不展示,登记时也落不到范围外的账上。 */
|
|
|
notes: [
|
|
|
{ level: "严重", region: "pd", bill: "澄澜科技 2026-03", text: "3 月比例曾按 0.18 录入,核验后从 4 月起改为 0.20。3 月账单已递交运营商,原明细保留不改。", by: "林管", at: "2026-04-06 09:30" },
|
|
|
- { level: "严重", region: "east", bill: "电信 2026-08 对账清单(DZD-20260905-DX)", text: "批次分成比例误录,运营商尚未付款,批次打回重做;重做批次 DZD-20260912-DX-R 核验通过。", by: "林管", at: "2026-09-12 10:15" },
|
|
|
- /* 归属华南大区:华东运营的账号在本页看不到这条,用于演示按负责范围的可见范围 */
|
|
|
- { level: "严重", region: "south", bill: "广东电信 2026-07 对账清单(DZD-20260808-GD)", text: "按季度对账时把 7 月与 8 月并进同一批次,跨了自然月;该分成方尚未付款,批次打回按月重出。", by: "林管", at: "2026-08-09 11:20" },
|
|
|
+ { level: "严重", region: "shp", bill: "电信 2026-08 对账清单(DZD-20260905-DX)", text: "批次分成比例误录,运营商尚未付款,批次打回重做;重做批次 DZD-20260912-DX-R 核验通过。", by: "林管", at: "2026-09-12 10:15" },
|
|
|
+ /* 归属广东省:华东运营的账号在本页看不到这条,用于演示按负责范围的可见范围 */
|
|
|
+ { level: "严重", region: "gdp", bill: "广东电信 2026-07 对账清单(DZD-20260808-GD)", text: "按季度对账时把 7 月与 8 月并进同一批次,跨了自然月;该分成方尚未付款,批次打回按月重出。", by: "林管", at: "2026-08-09 11:20" },
|
|
|
],
|
|
|
/* 运营商外部报文(反馈 / 竣工回执):不是独立流程,是按联通订单号归属到一张工单上的一次外部回填事件
|
|
|
(见运营支撑系统设计说明 6.4、工单流程说明 4.8)。ticket 为归属的工单序号,未归属为 null。
|
|
|
@@ -620,13 +654,13 @@ const SEED = {
|
|
|
],
|
|
|
/* 审计日志只追加。区域树维护仅总运营可见。 */
|
|
|
auditLogs: [
|
|
|
- { at: "2026-08-01 09:12", by: "林管", type: "新建区域", object: "华东大区 / 上海市 / 浦东新区", before: "", after: "新建三级节点" },
|
|
|
- { at: "2026-08-01 09:20", by: "林管", type: "新建区域", object: "华东大区 / 上海市 / 临港新片区", before: "", after: "新建区县节点" },
|
|
|
- { at: "2026-08-02 14:02", by: "林管", type: "新建区域", object: "华东大区 / 苏州市 / 昆山市", before: "", after: "新建区县节点" },
|
|
|
- { at: "2026-08-05 10:40", by: "林管", type: "重命名区域", object: "华东大区 / 上海市 / 临港新片区", before: "南汇新城区", after: "临港新片区" },
|
|
|
- { at: "2026-08-10 10:20", by: "林管", type: "客户挂载", object: "澄澜科技有限公司", before: "未挂载", after: "华东大区 / 上海市 / 浦东新区" },
|
|
|
- { at: "2026-08-20 11:30", by: "林管", type: "客户改挂区域", object: "王敏", before: "华东大区 / 苏州市 / 昆山市", after: "华东大区 / 上海市 / 浦东新区" },
|
|
|
- { at: "2026-08-21 16:00", by: "林管", type: "合伙人负责范围首次配置", object: "邹合(华东渠道)", before: "(空)", after: "澄澜科技、临港跨境、陈阿福、王敏、海岚跨境(选定华东大区,含其下级全部客户)" },
|
|
|
+ { at: "2026-08-01 09:12", by: "林管", type: "新建区域", object: "上海市 / 上海市 / 浦东新区", before: "", after: "新建三级节点" },
|
|
|
+ { at: "2026-08-01 09:20", by: "林管", type: "新建区域", object: "上海市 / 上海市 / 临港新片区", before: "", after: "新建区县节点" },
|
|
|
+ { at: "2026-08-02 14:02", by: "林管", type: "新建区域", object: "江苏省 / 苏州市 / 昆山市", before: "", after: "新建区县节点" },
|
|
|
+ { at: "2026-08-05 10:40", by: "林管", type: "重命名区域", object: "上海市 / 上海市 / 临港新片区", before: "南汇新城区", after: "临港新片区" },
|
|
|
+ { at: "2026-08-10 10:20", by: "林管", type: "客户挂载", object: "澄澜科技有限公司", before: "未挂载", after: "上海市 / 上海市 / 浦东新区" },
|
|
|
+ { at: "2026-08-20 11:30", by: "林管", type: "客户改挂区域", object: "王敏", before: "江苏省 / 苏州市 / 昆山市", after: "上海市 / 上海市 / 浦东新区" },
|
|
|
+ { at: "2026-08-21 16:00", by: "林管", type: "合伙人负责范围首次配置", object: "邹合(华东渠道)", before: "(空)", after: "澄澜科技、临港跨境、陈阿福、王敏、海岚跨境(选定上海市、苏州市,含其下级全部客户)" },
|
|
|
{ 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" },
|