Răsfoiți Sursa

refactor(原型): 分成方式文案收口到 settleText,种子与导出改用「按比例/按金额/按每账号」

- 新增 settleText / shareSettleText / settleValueText / shareValueOfShare 四个唯一实现,
  档案列表、分成方详情、审计前后值、批次明细与账单明细导出共用,⛔ 各页自拼文案
- 分成方式三词统一:按总金额比例→按比例、按总客户账号数→按每账号(金额侧不变),
  data.js 种子与共享分成行同步改词
- 作业清单调度时间对齐设计册 1 §12(SNAPSHOT-FREEZE 00:00、DELEG-SYNC 每日 02:00 兜底、
  ORPHAN-CLEAN 00:20、REGION-WARM 01:00、ONEDIR-CHECK 01:30)
- 连带:页内说明「按总金额比例时再乘本方全局比例」改「按比例时…」,
  明细详情表头「方式」改「分成方式与取值」

⚠️ 文档侧同批(术语统一与需求 §6.2 标题回改)随下一批提交

Co-authored-by: Cursor <cursoragent@cursor.com>
cg 2 săptămâni în urmă
părinte
comite
7317be6433
2 a modificat fișierele cu 91 adăugiri și 46 ștergeri
  1. 64 19
      prototype/app.js
  2. 27 27
      prototype/data.js

+ 64 - 19
prototype/app.js

@@ -815,10 +815,55 @@ function shareValueText(o) {
   return `¥ ${money(o.shareValue)}/月`;
 }
 
-/* 审计日志等处的一行式文案,例如「按比例 20%」「按金额 ¥ 50.00/月」 */
+/* 分成方式与取值的**复合文案**:全库唯一实现(对齐《详细设计说明书》第 4 册 分成§10.2 `settle_text`)。
+   三选一逐字=「按比例 20%」/「每月分成 ¥ 120.00」/「按每账号 ¥ 3.00/账号」;
+   档案列表、分成方详情、审计前后值、出账分成明细共用,⛔ 各页自拼。
+   方式与取值不成对 ⇒「配置不完整」(设计明文:⛔ panic、⛔ 留空串);两列都空 ⇒「未配置」 */
+function settleText(mode, value) {
+  const hasMode = !!mode && mode !== "—";
+  const hasValue = value !== undefined && value !== null && value !== "";
+  if (!hasMode && !hasValue) return "未配置";
+  if (!hasMode || !hasValue) return "配置不完整";
+  if (mode === "按比例") return `按比例 ${pct(value)}`;
+  if (mode === "按每账号") return `按每账号 ¥ ${money(value)}/账号`;
+  if (mode === "按金额") return `每月分成 ¥ ${money(value)}`;
+  return "配置不完整";
+}
+
+/* 档案两列(shareMode / shareValue)的一句话,审计前后值与只读卡片共用 */
 function shareTextOf(o) {
-  if (!o || !o.shareMode) return "未配置";
-  return `${o.shareMode} ${shareValueText(o)}`;
+  if (!o) return "未配置";
+  return settleText(o.shareMode, o.shareValue);
+}
+
+/* 出账分成行(冻结快照)上的复合文案:取值按方式从快照行里取,仍回落到同一个 settleText。
+   ⚠️ 「× N 个」「× 天数」这类算式属「计算过程」列(shareCalcText),⛔ 混进这里 */
+function shareSettleText(sh) {
+  if (!sh || !sh.mode || sh.mode === "—") return "未配置";
+  if (sh.mode === "按比例") return settleText(sh.mode, sh.rate);
+  if (sh.mode === "按每账号") return settleText(sh.mode, sh.per);
+  if (sh.mode === "按金额") return settleText(sh.mode, sh.amount);
+  return "配置不完整";
+}
+
+/* 只出「取值」那一格(批次明细导出 / 账单明细导出的「分成取值」列)。
+   moneyFn 传 CSV 的裸数值格式化器,导出里不出千分位 */
+function settleValueText(mode, value, moneyFn) {
+  const m = moneyFn || money;
+  if (!mode || mode === "—" || value === undefined || value === null || value === "") return "—";
+  if (mode === "按比例") return pct(value);
+  if (mode === "按每账号") return `${m(value)} 元/账号`;
+  if (mode === "按金额") return `${m(value)} 元/月`;
+  return "—";
+}
+
+/* 快照行上的取值:按方式从 rate / per / amount 三个字段里挑一个,再交给 settleValueText */
+function shareValueOfShare(sh) {
+  if (!sh || !sh.mode || sh.mode === "—") return undefined;
+  if (sh.mode === "按比例") return sh.rate;
+  if (sh.mode === "按每账号") return sh.per;
+  if (sh.mode === "按金额") return sh.amount;
+  return undefined;
 }
 
 /* 金额类分成(按金额 / 按每账号)共用的取值校验:大于 0,精确到分 */
@@ -2076,13 +2121,13 @@ const JOBS = [
   },
   {
     code: "SNAPSHOT-FREEZE", name: "月度账单快照冻结(每月 1 日)", group: "业务", sw: "可启停",
-    sched: "每月 1 日 01:00", trig: "定时", next: "2026-11-01 01:00",
+    sched: "每月 1 日 00:00", trig: "定时", next: "2026-11-01 00:00",
     obj: "上一自然月的账单与应收明细", act: "把上一自然月的账单与应收冻结为不可改的历史口径,之后的调整只记当期",
     idem: "同一自然月已冻结的跳过;重复执行不重复冻结、不改写已冻结金额。",
   },
   {
     code: "DELEG-SYNC", name: "子账号权限同步", group: "业务", sw: "可启停",
-    sched: "每 30 分钟;分账号授权范围变更时即时触发", trig: "定时 / 事件", next: "2026-10-15 11:30",
+    sched: "每日 02:00 对账兜底;分账号授权范围变更时即时触发", trig: "定时 / 事件", next: "2026-10-16 02:00",
     obj: "全部下属分账号及其授权范围", act: "把分账号的授权范围同步到登录校验与数据可见范围判定",
     idem: "授权范围未变化的账号本轮跳过;同一变更重复执行不重复授权。",
   },
@@ -2124,19 +2169,19 @@ const JOBS = [
   },
   {
     code: "ORPHAN-CLEAN", name: "悬空节点清理", group: "系统维护", sw: "可启停",
-    sched: "每日 02:00;区域节点删除时即时触发", trig: "定时 / 事件", next: "2026-10-16 02:00",
+    sched: "每日 00:20;区域节点删除时即时触发", trig: "定时 / 事件", next: "2026-10-16 00:20",
     obj: "区域树节点及其挂载引用", act: "清理无下级、无客户挂载且无业务引用的空节点,保持区域树与实际一致",
     idem: "已清理的节点不重复处理;有下级、有客户或有业务引用的节点不清理。",
   },
   {
     code: "REGION-WARM", name: "区域树缓存预热", group: "系统维护", sw: "可启停",
-    sched: "每日 05:30;区域树变更后即时触发", trig: "定时 / 事件", next: "2026-10-16 05:30",
+    sched: "每日 01:00;区域树变更后即时触发", trig: "定时 / 事件", next: "2026-10-16 01:00",
     obj: "区域树与各节点可见范围缓存", act: "重建区域树与各节点的客户、可见范围缓存,避免列表首次加载变慢",
     idem: "缓存版本未变化的节点跳过;重复执行只覆盖同一份缓存,不累加。",
   },
   {
     code: "ONEDIR-CHECK", name: "一客一档一致性巡检", group: "系统维护", sw: "可启停",
-    sched: "每日 03:00", trig: "定时", next: "2026-10-16 03:00",
+    sched: "每日 01:30", trig: "定时", next: "2026-10-16 01:30",
     obj: "客户档案与其关联的订阅、账单、工单", act: "检查各业务对象指向的客户与档案是否一致,不一致的记入执行记录供人工核对",
     idem: "同一对象同一异常每日最多记一次;已人工核对关闭的不重复提示。",
   },
@@ -8256,7 +8301,7 @@ function pageTeams() {
    ⚠️ 2026-11-04 业主定案:取消全部逐客户分成规则(连同「区域常规/合同增补」层级),
    四类分成方的取值只在其档案上配置一次,对名下客户统一生效,分成管理页不再有按客户的规则录入行。 */
 
-/* 按总客户账号数的口径:合同内在计费的下属分账号(主账号不计、未开通照计;停机类回填停用后不计) */
+/* 按每账号的口径:合同内在计费的下属分账号(主账号不计、未开通照计;停机类回填停用后不计) */
 function sharedAccountCount(entIndex) {
   return db.accounts.filter((a) => a.enterprise === entIndex && a.status !== "停用").length;
 }
@@ -8611,7 +8656,7 @@ function partyShareTotal(ch, ref) {
    按金额方式看约定金额本身——⛔ 不乘分成基数、⛔ 不按在期天数折算;
    同客户同账期多条应收明细仍只记一次,⛔ 不按明细条数重复计入(需求规格说明 6.4 v1.20) */
 function shareCalcText(s, sh) {
-  if (sh.mode === "按总客户账号数") return `${money(sh.per)} 元 / 账号 × ${sh.accounts} 个在计费分账号${s.partial ? ` × ${s.days} / ${s.monthDays} 天` : ""}`;
+  if (sh.mode === "按每账号") return `${money(sh.per)} 元 / 账号 × ${sh.accounts} 个在计费分账号${s.partial ? ` × ${s.days} / ${s.monthDays} 天` : ""}`;
   if (sh.mode === "按金额") return `约定金额 ${money(sh.amount)} / 月原样记入(不乘分成基数、不按在期天数折算)`;
   if (!sh.rate) return "—";
   return `${money(s.base)} × ${pct(sh.rate)}${s.partial ? `(应收 ${money(s.amount)} 已按 ${s.days} / ${s.monthDays} 天折算)` : ""}`;
@@ -8900,7 +8945,7 @@ function statementDetailCsv(b) {
     b.no, `${p.name}(${p.type})`, i + 1, x.s.month, entName(x.s.enterprise), db.subs[x.s.sub].name,
     `${x.s.partial ? `${x.s.days}/${x.s.monthDays}` : "满月"}${x.s.tail ? "(尾月)" : ""}`,
     amt(x.s.base), x.sh.mode,
-    x.sh.mode === "按总客户账号数" ? `${amt(x.sh.per)} 元/账号 × ${x.sh.accounts} 个` : (x.sh.mode === "按金额" ? `${amt(x.sh.amount)} 元/月(约定金额直接记入)` : pct(x.sh.rate)),
+    settleValueText(x.sh.mode, shareValueOfShare(x.sh), amt),
     amt(x.sh.amount),
   ]);
   const t = statementTotals(b);
@@ -8961,7 +9006,7 @@ function statementPartyDetailRows(party, batches) {
       b.no, `${party.name}(${party.type})`, seq, x.s.month, entName(x.s.enterprise), db.subs[x.s.sub].name,
       `${x.s.partial ? `${x.s.days}/${x.s.monthDays}` : "满月"}${x.s.tail ? "(尾月)" : ""}`,
       amt(x.s.base), x.sh.mode,
-      x.sh.mode === "按总客户账号数" ? `${amt(x.sh.per)} 元/账号 × ${x.sh.accounts} 个` : (x.sh.mode === "按金额" ? `${amt(x.sh.amount)} 元/月(约定金额直接记入)` : pct(x.sh.rate)),
+      settleValueText(x.sh.mode, shareValueOfShare(x.sh), amt),
       amt(x.sh.amount),
     ];
   }));
@@ -9082,7 +9127,7 @@ function pageStatement() {
   const rows = list.map((x, i) => `<tr class="clickable" data-go="bill" data-id="${reconIndex(x.si, x.k)}">
     <td>${seq(i)}</td><td>${esc(x.s.month)}</td><td>${esc(entName(x.s.enterprise))}</td><td>${esc(db.subs[x.s.sub].name)}</td>
     <td>${x.s.partial ? `${x.s.days}/${x.s.monthDays}` : "满月"}${x.s.tail ? " · 尾月" : ""}</td>
-    <td>${money(x.s.base)}</td><td class="wrap">${esc(x.sh.mode === "按总客户账号数" ? `${money(x.sh.per)} 元 / 账号 × ${x.sh.accounts} 个` : (x.sh.mode === "按金额" ? `${money(x.sh.amount)} 元 / 月(约定金额直接记入)` : pct(x.sh.rate)))}</td>
+    <td>${money(x.s.base)}</td><td class="wrap">${esc(shareSettleText(x.sh))}</td>
     <td><strong>${money(x.sh.amount)}</strong></td></tr>`).join("");
   const shareTotal = list.reduce((n, x) => n + x.sh.amount, 0);
   return layout(b.no, `对账对象:${esc(party.name)}(${esc(party.type)}) · 自然月 ${b.month} · ${b.trigger}执行 · ${b.by} ${b.at}`, `
@@ -9134,7 +9179,7 @@ function billListRows(list) {
       x.party.name, x.party.type, x.s.month, entName(x.s.enterprise), db.subs[x.s.sub].name,
       `${x.s.partial ? `${x.s.days}/${x.s.monthDays}` : "满月"}${x.s.tail ? "(尾月)" : ""}`,
       amt(x.s.base), x.sh.mode,
-      x.sh.mode === "按总客户账号数" ? `${amt(x.sh.per)} 元/账号 × ${x.sh.accounts} 个` : (x.sh.mode === "按金额" ? `${amt(x.sh.amount)} 元/月(约定金额直接记入)` : pct(x.sh.rate)),
+      settleValueText(x.sh.mode, shareValueOfShare(x.sh), amt),
       amt(x.sh.amount), hit.b.no,
     ];
   });
@@ -9207,7 +9252,7 @@ function pageBill() {
   const hit = x && !denied ? billedStatementOf(x) : null;
   if (!x || denied || !hit) return layout("账单明细", "", `<div class="panel">没有该明细。该订阅的这一期还未进入「已执行」对账清单,本页只列已出账的明细;出账进度请到「对账清单」查看。</div>`);
   const b = x.s, sh = x.sh, party = x.party;
-  const shareCalc = sh.mode === "按总客户账号数"
+  const shareCalc = sh.mode === "按每账号"
     ? `${money(sh.per)} 元 / 账号 × ${sh.accounts} 个在用分账号${b.partial ? ` × ${b.days} / ${b.monthDays} 天` : ""}`
     : (sh.mode === "按金额"
       ? `约定金额 ${money(sh.amount)} 元 / 月原样记入(分成 = 约定金额,不乘分成基数 ${money(b.base)}、不按在期天数折算)`
@@ -9223,8 +9268,8 @@ function pageBill() {
       <div class="card"><span>所属对账单号</span><b style="font-size:16px"><span class="bno" data-go="statement" data-id="${hit.bi}">${esc(hit.b.no)}</span></b><span class="hint">已出账 · 点单号进批次详情</span></div>
     </div>
     <div class="panel"><h2>这一笔分成怎么算出来的</h2>
-      <table><thead><tr><th>分成方</th><th>方式</th><th>计算过程</th><th>分成金额</th></tr></thead>
-        <tbody><tr><td>${esc(sh.who)}</td><td>${esc(sh.mode)}</td><td class="wrap">${esc(shareCalc)}</td><td><strong>${money(sh.amount)}</strong></td></tr></tbody></table>
+      <table><thead><tr><th>分成方</th><th>分成方式与取值</th><th>计算过程</th><th>分成金额</th></tr></thead>
+        <tbody><tr><td>${esc(sh.who)}</td><td>${esc(shareSettleText(sh))}</td><td class="wrap">${esc(shareCalc)}</td><td><strong>${money(sh.amount)}</strong></td></tr></tbody></table>
       <p class="note">对账结果只用于与 ${esc(party.name)} 核对,不是付款指令。分成时点归属快照:${esc(b.attrs)}。工单责任人不写入分成对象;归属事后变更不回本明细。</p>
     </div>
     <div class="panel"><h2>计费依据(客户侧,不向客户对账)</h2>
@@ -10920,7 +10965,7 @@ function pageRegion() {
     <div class="panel"><h2>本方账单明细(共 ${allLines.length} 条,当前显示 ${lines.length} 条)</h2>
       <table><thead><tr><th>客户</th><th>订阅</th><th>自然月</th><th>天数</th><th>分成基数</th><th>本方分成金额</th><th>对账单号</th></tr></thead>
         <tbody>${lineRows || `<tr><td colspan="7">${filtering ? "没有符合筛选条件的账单明细" : "本方名下暂无已出账的账单明细"}</td></tr>`}</tbody></table>
-      <p class="note">本表只列已进入本方「已执行」对账清单的明细:未出账(各分成方都还没到对账日)与出账异常(只被失败批次覆盖过)的期次在本表没有行,那两态看订阅与客户详情的「计费与出账」表,或等本方批次跑完再回本页。分成基数 = 该订阅该月的实际结算金额减去当期计入的应扣除成本;${asTeam ? "分成方式与取值按「分成管理」里该客户配置的规则逐客户计算,团队不设全局比例" : `按总金额比例时再乘本方全局比例(${esc(shareTextOf(p))})`}。末列是该行所属批次的对账单号,点单号进批次详情。本页只读;${asTeam ? "如与本团队记录不符" : `如与贵方记录不符,请通过通知地址 ${esc(p.notify) || "—"}`},请联系总运营复核。点一行看这一笔是怎么算出来的。</p>
+      <p class="note">本表只列已进入本方「已执行」对账清单的明细:未出账(各分成方都还没到对账日)与出账异常(只被失败批次覆盖过)的期次在本表没有行,那两态看订阅与客户详情的「计费与出账」表,或等本方批次跑完再回本页。分成基数 = 该订阅该月的实际结算金额减去当期计入的应扣除成本;${asTeam ? "分成方式与取值按「分成管理」里该客户配置的规则逐客户计算,团队不设全局比例" : `按比例时再乘本方全局比例(${esc(shareTextOf(p))})`}。末列是该行所属批次的对账单号,点单号进批次详情。本页只读;${asTeam ? "如与本团队记录不符" : `如与贵方记录不符,请通过通知地址 ${esc(p.notify) || "—"}`},请联系总运营复核。点一行看这一笔是怎么算出来的。</p>
     </div>`);
 }
 
@@ -13168,7 +13213,7 @@ document.body.addEventListener("change", (event) => {
   const el = event.target;
   if (!el.dataset || el.dataset.rlMode === undefined) return;
   const key = el.dataset.rlMode;
-  const byAccount = el.value === "按总客户账号数";
+  const byAccount = el.value === "按每账号";
   const byAmount = el.value === "按金额";
   const show = (attr, on) => {
     const t = document.querySelector(`[data-${attr}="${key}"]`);

+ 27 - 27
prototype/data.js

@@ -673,10 +673,10 @@ const SEED = {
       enterprise: 0, sub: 1, month: "2026-03", days: 12, monthDays: 31, partial: true, std: 120, amount: 46.45, tail: false, exact: 46.45,
       costs: [], base: 46.45,
       shares: [
-        { ch: "operator", ref: 0, who: "联通", mode: "按总金额比例", rate: 0.2, amount: 9.29 },
-        { ch: "team", ref: 0, who: "华东运维", mode: "按总客户账号数", per: 50, accounts: 5, amount: 112.90 },
-        { ch: "team", ref: 1, who: "沪东开户组", mode: "按总金额比例", rate: 0.05, amount: 2.32 },
-        { ch: "partner", ref: 0, who: "邹合", mode: "按总金额比例", rate: 0.05, amount: 2.32 },
+        { ch: "operator", ref: 0, who: "联通", mode: "按比例", rate: 0.2, amount: 9.29 },
+        { ch: "team", ref: 0, who: "华东运维", mode: "按每账号", per: 50, accounts: 5, amount: 112.90 },
+        { ch: "team", ref: 1, who: "沪东开户组", mode: "按比例", rate: 0.05, amount: 2.32 },
+        { ch: "partner", ref: 0, who: "邹合", mode: "按比例", rate: 0.05, amount: 2.32 },
       ],
       attrs: "联通 / 邹合(华东) / 华东运维 / 沪东开户组",
     },
@@ -684,10 +684,10 @@ const SEED = {
       enterprise: 0, sub: 1, month: "2026-04", days: 30, monthDays: 30, partial: false, std: 120, amount: 120, tail: false, exact: 120,
       costs: [], base: 120,
       shares: [
-        { ch: "operator", ref: 0, who: "联通", mode: "按总金额比例", rate: 0.2, amount: 24 },
-        { ch: "team", ref: 0, who: "华东运维", mode: "按总客户账号数", per: 50, accounts: 5, amount: 250 },
-        { ch: "team", ref: 1, who: "沪东开户组", mode: "按总金额比例", rate: 0.05, amount: 6 },
-        { ch: "partner", ref: 0, who: "邹合", mode: "按总金额比例", rate: 0.05, amount: 6 },
+        { ch: "operator", ref: 0, who: "联通", mode: "按比例", rate: 0.2, amount: 24 },
+        { ch: "team", ref: 0, who: "华东运维", mode: "按每账号", per: 50, accounts: 5, amount: 250 },
+        { ch: "team", ref: 1, who: "沪东开户组", mode: "按比例", rate: 0.05, amount: 6 },
+        { ch: "partner", ref: 0, who: "邹合", mode: "按比例", rate: 0.05, amount: 6 },
       ],
       attrs: "联通 / 邹合(华东) / 华东运维 / 沪东开户组",
     },
@@ -695,10 +695,10 @@ const SEED = {
       enterprise: 0, sub: 1, month: "2026-09", days: 30, monthDays: 30, partial: false, std: 120, amount: 120, tail: false, exact: 120,
       costs: [], base: 120,
       shares: [
-        { ch: "operator", ref: 0, who: "联通", mode: "按总金额比例", rate: 0.2, amount: 24 },
-        { ch: "team", ref: 0, who: "华东运维", mode: "按总客户账号数", per: 50, accounts: 5, amount: 250 },
-        { ch: "team", ref: 1, who: "沪东开户组", mode: "按总金额比例", rate: 0.05, amount: 6 },
-        { ch: "partner", ref: 0, who: "邹合", mode: "按总金额比例", rate: 0.05, amount: 6 },
+        { ch: "operator", ref: 0, who: "联通", mode: "按比例", rate: 0.2, amount: 24 },
+        { ch: "team", ref: 0, who: "华东运维", mode: "按每账号", per: 50, accounts: 5, amount: 250 },
+        { ch: "team", ref: 1, who: "沪东开户组", mode: "按比例", rate: 0.05, amount: 6 },
+        { ch: "partner", ref: 0, who: "邹合", mode: "按比例", rate: 0.05, amount: 6 },
       ],
       attrs: "联通 / 邹合(华东) / 华东运维 / 沪东开户组",
     },
@@ -706,10 +706,10 @@ 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: 46 }], combo: "上海市 / 移动", base: 434,
       shares: [
-        { 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 },
+        { 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: "移动 / 何南(华南) / 华东运维 / 沪东开户组",
     },
@@ -717,10 +717,10 @@ const SEED = {
       enterprise: 3, sub: 5, month: "2026-09", days: 30, monthDays: 30, partial: false, std: 160, amount: 160, tail: false, exact: 160,
       costs: [{ name: "国际云主机月摊销", amount: 26 }], combo: "上海市 / 移动", base: 134,
       shares: [
-        { 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 },
+        { 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: "移动 / 何南(华南) / 华东运维 / 沪东开户组(叠加订阅各算各的;叠加增值不占分账号额度)",
     },
@@ -728,10 +728,10 @@ const SEED = {
       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: 50 }], combo: "上海市 / 联通", base: 110,
       shares: [
-        { ch: "operator", ref: 0, who: "联通", mode: "按总金额比例", rate: 0.2, amount: 22 },
-        { ch: "team", ref: 0, who: "华东运维", mode: "按总金额比例", rate: 0.1, amount: 11 },
+        { 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: 5.5 },
+        { ch: "partner", ref: 0, who: "邹合", mode: "按比例", rate: 0.05, amount: 5.5 },
       ],
       attrs: "联通 / 邹合(华东) / 华东运维 / 未挂沪东开户组",
     },
@@ -743,7 +743,7 @@ const SEED = {
       enterprise: 6, sub: 11, month: "2026-07", days: 31, monthDays: 31, partial: false, std: 160, amount: 160, tail: false, exact: 160,
       costs: [{ name: "国家 IP 地址月摊销", amount: 52 }], combo: "广东省 / 移动", base: 108,
       shares: [
-        { ch: "operator", ref: 5, who: "广东省 / 移动", mode: "按总金额比例", rate: 0.12, amount: 12.96 },
+        { ch: "operator", ref: 5, who: "广东省 / 移动", mode: "按比例", rate: 0.12, amount: 12.96 },
         { who: "华东运维(未配置,计 0)", mode: "—", rate: 0, amount: 0 },
       ],
       attrs: "广东省 / 移动 / 无合伙人 / 运维团队未配分成取值(计 0)",
@@ -752,7 +752,7 @@ const SEED = {
       enterprise: 6, sub: 11, month: "2026-08", days: 31, monthDays: 31, partial: false, std: 160, amount: 160, tail: false, exact: 160,
       costs: [{ name: "国家 IP 地址月摊销", amount: 52 }], combo: "广东省 / 移动", base: 108,
       shares: [
-        { ch: "operator", ref: 5, who: "广东省 / 移动", mode: "按总金额比例", rate: 0.12, amount: 12.96 },
+        { ch: "operator", ref: 5, who: "广东省 / 移动", mode: "按比例", rate: 0.12, amount: 12.96 },
         { who: "华东运维(未配置,计 0)", mode: "—", rate: 0, amount: 0 },
       ],
       attrs: "广东省 / 移动 / 无合伙人 / 运维团队未配分成取值(计 0)",
@@ -761,7 +761,7 @@ const SEED = {
       enterprise: 6, sub: 11, month: "2026-09", days: 30, monthDays: 30, partial: false, std: 160, amount: 160, tail: false, exact: 160,
       costs: [{ name: "国家 IP 地址月摊销", amount: 52 }], combo: "广东省 / 移动", base: 108,
       shares: [
-        { ch: "operator", ref: 5, who: "广东省 / 移动", mode: "按总金额比例", rate: 0.12, amount: 12.96 },
+        { ch: "operator", ref: 5, who: "广东省 / 移动", mode: "按比例", rate: 0.12, amount: 12.96 },
         { who: "华东运维(未配置,计 0)", mode: "—", rate: 0, amount: 0 },
       ],
       attrs: "广东省 / 移动 / 无合伙人 / 运维团队未配分成取值(计 0)",
@@ -895,7 +895,7 @@ const SEED = {
     { 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(对名下全部客户统一生效)" },
+    { at: "2026-10-05 15:25", by: "林管", type: "分成档案取值变更", object: "何南(华南渠道)", before: "未配分成(计 0)", after: "按比例 8%(对名下全部客户统一生效)" },
     { at: "2026-10-05 06:00", by: "系统", type: "对账清单自动执行", object: "DZD-20261005-LT · 联通 · 2026-09", before: "待执行", after: "已执行(2 条明细)" },
   ],
   /* 登录账号:login 为登录名,acctStatus 在用 / 停用(停用的不出现在「换身份」列表),