|
@@ -346,8 +346,8 @@ function PartyReconMergedPage({ kind }: { kind: "partner" | "team" }) {
|
|
|
<td>{row.period}</td>
|
|
<td>{row.period}</td>
|
|
|
<td><OpsStatus tone={row.reconcile_status === "settled" ? "success" : row.reconcile_status === "abnormal" ? "danger" : "neutral"}>{RECONCILE_STATUS_TEXT[row.reconcile_status]}</OpsStatus></td>
|
|
<td><OpsStatus tone={row.reconcile_status === "settled" ? "success" : row.reconcile_status === "abnormal" ? "danger" : "neutral"}>{RECONCILE_STATUS_TEXT[row.reconcile_status]}</OpsStatus></td>
|
|
|
<td><OpsStatus tone={row.status === "executed" ? "success" : row.status === "failed" ? "danger" : "neutral"}>{BATCH_STATUS_TEXT[row.status]}</OpsStatus></td>
|
|
<td><OpsStatus tone={row.status === "executed" ? "success" : row.status === "failed" ? "danger" : "neutral"}>{BATCH_STATUS_TEXT[row.status]}</OpsStatus></td>
|
|
|
- <td>{row.detail_count}</td>
|
|
|
|
|
- <td><strong>{moneyFromCents(row.share_cents)}</strong></td>
|
|
|
|
|
|
|
+ <td className="table-number">{row.detail_count}</td>
|
|
|
|
|
+ <td><strong className="table-number">{moneyFromCents(row.share_cents)}</strong></td>
|
|
|
<td>
|
|
<td>
|
|
|
{/* 无明细 ⇒ 导出按钮整块不渲染(⚠️ 不是禁用,总则§16.9;KLT-H205xx 仅直调防护)。 */}
|
|
{/* 无明细 ⇒ 导出按钮整块不渲染(⚠️ 不是禁用,总则§16.9;KLT-H205xx 仅直调防护)。 */}
|
|
|
{row.has_detail && (
|
|
{row.has_detail && (
|
|
@@ -402,7 +402,7 @@ function PartyReconMergedPage({ kind }: { kind: "partner" | "team" }) {
|
|
|
</td>
|
|
</td>
|
|
|
<td className="ops-mono">{row.receivable_no}</td>
|
|
<td className="ops-mono">{row.receivable_no}</td>
|
|
|
<td>{row.period}</td>
|
|
<td>{row.period}</td>
|
|
|
- <td><strong>{moneyFromCents(row.receivable_cents)}</strong></td>
|
|
|
|
|
|
|
+ <td><strong className="table-number">{moneyFromCents(row.receivable_cents)}</strong></td>
|
|
|
{/* 批次详情宿主路由未在 14.1 路由表声明(仅 14.6 返回链路提及)⇒ 纯文本,缺口已登记。 */}
|
|
{/* 批次详情宿主路由未在 14.1 路由表声明(仅 14.6 返回链路提及)⇒ 纯文本,缺口已登记。 */}
|
|
|
<td className="ops-mono">{row.batch_no}</td>
|
|
<td className="ops-mono">{row.batch_no}</td>
|
|
|
<td><Link className="workspace-link" to={`${prefix}/bill-detail/${encodeURIComponent(row.bill_detail_id)}`}>查看详情</Link></td>
|
|
<td><Link className="workspace-link" to={`${prefix}/bill-detail/${encodeURIComponent(row.bill_detail_id)}`}>查看详情</Link></td>
|
|
@@ -540,8 +540,8 @@ export function OperatorReconPage() {
|
|
|
<td>{row.period}</td>
|
|
<td>{row.period}</td>
|
|
|
<td><OpsStatus tone={row.reconcile_status === "settled" ? "success" : row.reconcile_status === "abnormal" ? "danger" : "neutral"}>{RECONCILE_STATUS_TEXT[row.reconcile_status]}</OpsStatus></td>
|
|
<td><OpsStatus tone={row.reconcile_status === "settled" ? "success" : row.reconcile_status === "abnormal" ? "danger" : "neutral"}>{RECONCILE_STATUS_TEXT[row.reconcile_status]}</OpsStatus></td>
|
|
|
<td><OpsStatus tone={row.status === "executed" ? "success" : row.status === "failed" ? "danger" : "neutral"}>{BATCH_STATUS_TEXT[row.status]}</OpsStatus></td>
|
|
<td><OpsStatus tone={row.status === "executed" ? "success" : row.status === "failed" ? "danger" : "neutral"}>{BATCH_STATUS_TEXT[row.status]}</OpsStatus></td>
|
|
|
- <td>{row.detail_count}</td>
|
|
|
|
|
- <td><strong>{moneyFromCents(row.share_cents)}</strong></td>
|
|
|
|
|
|
|
+ <td className="table-number">{row.detail_count}</td>
|
|
|
|
|
+ <td><strong className="table-number">{moneyFromCents(row.share_cents)}</strong></td>
|
|
|
<td>
|
|
<td>
|
|
|
{/* 本批无明细 ⇒ 按钮整块不渲染;「查看明细」→ V-P6 按对账单号过滤(14.3 筛选行)。 */}
|
|
{/* 本批无明细 ⇒ 按钮整块不渲染;「查看明细」→ V-P6 按对账单号过滤(14.3 筛选行)。 */}
|
|
|
{row.detail_count > 0 && (
|
|
{row.detail_count > 0 && (
|
|
@@ -667,8 +667,8 @@ export function OperatorBillDetailPage() {
|
|
|
<td className="ops-mono">{row.bill_detail_id}</td>
|
|
<td className="ops-mono">{row.bill_detail_id}</td>
|
|
|
<td>{row.customer_name}</td>
|
|
<td>{row.customer_name}</td>
|
|
|
<td>{row.period}</td>
|
|
<td>{row.period}</td>
|
|
|
- <td>{moneyFromCents(row.share_base_cents)}</td>
|
|
|
|
|
- <td><strong>{moneyFromCents(row.share_amount_cents)}</strong></td>
|
|
|
|
|
|
|
+ <td className="table-number">{moneyFromCents(row.share_base_cents)}</td>
|
|
|
|
|
+ <td><strong className="table-number">{moneyFromCents(row.share_amount_cents)}</strong></td>
|
|
|
<td className="ops-mono">{row.batch_no}</td>
|
|
<td className="ops-mono">{row.batch_no}</td>
|
|
|
<td><Link className="workspace-link" to={`/bos/ov/bill-detail/${encodeURIComponent(row.bill_detail_id)}`}>查看详情</Link></td>
|
|
<td><Link className="workspace-link" to={`/bos/ov/bill-detail/${encodeURIComponent(row.bill_detail_id)}`}>查看详情</Link></td>
|
|
|
</tr>
|
|
</tr>
|
|
@@ -903,7 +903,7 @@ export function PartyCustomerDetailPage({ kind }: { kind: "partner" | "operator"
|
|
|
<tr><th>服务开通状态</th><td>{label(ACCT_STATUS, data.customer.acct_status)}</td></tr>
|
|
<tr><th>服务开通状态</th><td>{label(ACCT_STATUS, data.customer.acct_status)}</td></tr>
|
|
|
<tr><th>归属运营商</th><td>{data.customer.operator_name ?? "—"}</td></tr>
|
|
<tr><th>归属运营商</th><td>{data.customer.operator_name ?? "—"}</td></tr>
|
|
|
<tr><th>归属合伙人</th><td>{data.customer.partner_name ?? "—"}</td></tr>
|
|
<tr><th>归属合伙人</th><td>{data.customer.partner_name ?? "—"}</td></tr>
|
|
|
- <tr><th>下属分账号</th><td>{data.sub_account_count}</td></tr>
|
|
|
|
|
|
|
+ <tr><th>下属分账号</th><td className="table-number">{data.sub_account_count}</td></tr>
|
|
|
<tr><th>建档时间</th><td>{data.customer.created_at ?? "—"}</td></tr>
|
|
<tr><th>建档时间</th><td>{data.customer.created_at ?? "—"}</td></tr>
|
|
|
</tbody>
|
|
</tbody>
|
|
|
</table>
|
|
</table>
|
|
@@ -935,7 +935,7 @@ export function PartyContractDetailPage({ kind }: { kind: "partner" | "operator"
|
|
|
<tr><th>合同类型</th><td>{data.contract_type ? (CONTRACT_TYPE_LABEL[data.contract_type] ?? data.contract_type) : "—"}</td></tr>
|
|
<tr><th>合同类型</th><td>{data.contract_type ? (CONTRACT_TYPE_LABEL[data.contract_type] ?? data.contract_type) : "—"}</td></tr>
|
|
|
<tr><th>签署日期</th><td>{data.sign_date ?? "—"}</td></tr>
|
|
<tr><th>签署日期</th><td>{data.sign_date ?? "—"}</td></tr>
|
|
|
<tr><th>服务期(月)</th><td>{data.service_months ?? "—"}</td></tr>
|
|
<tr><th>服务期(月)</th><td>{data.service_months ?? "—"}</td></tr>
|
|
|
- <tr><th>合同金额</th><td>{moneyFromCents(data.contract_amount_cents)}</td></tr>
|
|
|
|
|
|
|
+ <tr><th>合同金额</th><td className="table-number">{moneyFromCents(data.contract_amount_cents)}</td></tr>
|
|
|
</tbody>
|
|
</tbody>
|
|
|
</table>
|
|
</table>
|
|
|
</div>
|
|
</div>
|
|
@@ -978,16 +978,16 @@ export function PartyBillDetailPage({ kind }: { kind: ViewKind }) {
|
|
|
<tr><th>客户名称</th><td>{data.customer_name}</td></tr>
|
|
<tr><th>客户名称</th><td>{data.customer_name}</td></tr>
|
|
|
<tr><th>套餐</th><td>{data.subscription_label}</td></tr>
|
|
<tr><th>套餐</th><td>{data.subscription_label}</td></tr>
|
|
|
{/* ① 尾月对齐前后两值同屏 */}
|
|
{/* ① 尾月对齐前后两值同屏 */}
|
|
|
- <tr><th>尾月对齐前</th><td>{moneyFromCents(data.pre_align_cents)}</td></tr>
|
|
|
|
|
- <tr><th>应结金额(对齐后)</th><td><strong>{moneyFromCents(data.receivable_cents)}</strong></td></tr>
|
|
|
|
|
|
|
+ <tr><th>尾月对齐前</th><td className="table-number">{moneyFromCents(data.pre_align_cents)}</td></tr>
|
|
|
|
|
+ <tr><th>应结金额(对齐后)</th><td><strong className="table-number">{moneyFromCents(data.receivable_cents)}</strong></td></tr>
|
|
|
{/* ② 计费区间与天数 */}
|
|
{/* ② 计费区间与天数 */}
|
|
|
<tr><th>计费区间</th><td>{(data.bill_from || data.bill_to) ? `${data.bill_from || "—"} ~ ${data.bill_to || "—"}` : "—"}({data.billing_days} 天{data.partial_month ? ",不满月" : ""})</td></tr>
|
|
<tr><th>计费区间</th><td>{(data.bill_from || data.bill_to) ? `${data.bill_from || "—"} ~ ${data.bill_to || "—"}` : "—"}({data.billing_days} 天{data.partial_month ? ",不满月" : ""})</td></tr>
|
|
|
{/* ④ 分成基数 */}
|
|
{/* ④ 分成基数 */}
|
|
|
- <tr><th>分成基数</th><td>{moneyFromCents(data.share_base_cents)}{data.base_floor_protected ? "(已按下限保护取 0)" : ""}</td></tr>
|
|
|
|
|
|
|
+ <tr><th>分成基数</th><td><span className="table-number">{moneyFromCents(data.share_base_cents)}</span>{data.base_floor_protected ? "(已按下限保护取 0)" : ""}</td></tr>
|
|
|
{/* ⑤ 当时冻结的分成方式与取值(⛔ 读档案现值,I22) */}
|
|
{/* ⑤ 当时冻结的分成方式与取值(⛔ 读档案现值,I22) */}
|
|
|
- <tr><th>分成方式与取值</th><td>{settleTextFromSnapshot(data.share_mode, data.share_value)}</td></tr>
|
|
|
|
|
|
|
+ <tr><th>分成方式与取值</th><td className="table-number">{settleTextFromSnapshot(data.share_mode, data.share_value)}</td></tr>
|
|
|
{/* ⑥ 本方分成金额 */}
|
|
{/* ⑥ 本方分成金额 */}
|
|
|
- <tr><th>本方分成金额</th><td><strong>{moneyFromCents(data.share_amount_cents)}</strong></td></tr>
|
|
|
|
|
|
|
+ <tr><th>本方分成金额</th><td><strong className="table-number">{moneyFromCents(data.share_amount_cents)}</strong></td></tr>
|
|
|
{/* ⑦ 逐账号在期天数:failed ⇒ 取数失败(⛔ 回落「无开停记录」) */}
|
|
{/* ⑦ 逐账号在期天数:failed ⇒ 取数失败(⛔ 回落「无开停记录」) */}
|
|
|
<tr>
|
|
<tr>
|
|
|
<th>逐账号在期天数</th>
|
|
<th>逐账号在期天数</th>
|