Kaynağa Gözat

统一表格未配置与未开通文字颜色

sy 18 saat önce
ebeveyn
işleme
6b89363cba

+ 1 - 1
web-scaffold/src/components/DeliveryStatusTable.tsx

@@ -175,7 +175,7 @@ export function DeliveryStatusTable({ customerId, subscriptionId, compact = fals
                   <td>{row.net_account?.trim() ? row.net_account : <span className="ops-muted">未登记</span>}</td>
                   {!compact && <td>{row.plan_name ?? "-"}{row.plan_family ? <><br /><span className="ops-muted">{PLAN_FAMILY_LABEL[row.plan_family] ?? row.plan_family}</span></> : null}</td>}
                   <td>{row.account_status ? <OpsStatus tone={row.account_status === "active" || row.account_status === "in_use" ? "success" : row.account_status === "stopped" || row.account_status === "disabled" ? "danger" : "neutral"}>{row.account_status}</OpsStatus> : <Tri tone="missing" text={MISSING} title={MISSING + ":sub_account.status"} />}</td>
-                  <td>{row.opened_at ?? <span className="ops-muted">—(未开通)</span>}</td>
+                  <td>{row.opened_at ?? <span className="ops-muted table-placeholder">—(未开通)</span>}</td>
                   <td>{row.sub_end_date ?? <span className="ops-muted">长期有效</span>}</td>
                   <td>{exitText(row.contract_exits) || <Tri tone="missing" text={MISSING} title={MISSING + ":subscription.line_exits"} />}</td>
                   <td className={mismatch ? "ops-delivery-mismatch-cell" : undefined}>{row.measured_egress ?? <span className="ops-muted" title="该账号没有成功的开通回填,无实测值">无实测</span>}

+ 10 - 3
web-scaffold/src/components/triState.tsx

@@ -9,11 +9,18 @@
  * 后端⛔ 回退 `0` 冒充缺值;前端同样⛔ 把 `null`/缺字段渲染成 `¥0.00`。
  */
 import type { ReactNode } from "react";
-import { WORD_FETCH_FAILED } from "../lib/api/lockedCopy";
+import { WORD_FETCH_FAILED, WORD_NOT_OPENED, WORD_UNCONFIGURED } from "../lib/api/lockedCopy";
 import type { ValueState } from "../lib/api/types";
 
 export type TriTone = "val" | "missing" | "fail";
 
+export function TableValueText({ children }: { children: ReactNode }) {
+  if (children === WORD_UNCONFIGURED || children === WORD_NOT_OPENED) {
+    return <span className="table-placeholder">{children}</span>;
+  }
+  return <>{children}</>;
+}
+
 /** 后端三态键优先;后端未回该键时按「有没有取到值」回落(⛔ 把缺值显示成 0)。 */
 export function triTone(state: ValueState | undefined, hasValue: boolean): TriTone {
   if (state === "error") return "fail";
@@ -41,10 +48,10 @@ export function Tri({
         </span>
       ) : tone === "missing" ? (
         <span className="oss-tri-missing" title={title}>
-          {text}
+          <TableValueText>{text}</TableValueText>
         </span>
       ) : (
-        <span title={title}>{text}</span>
+        <span title={title}><TableValueText>{text}</TableValueText></span>
       )}
       {note ? (
         <span className="oss-tri-missing" style={{ marginLeft: 6 }}>

+ 3 - 3
web-scaffold/src/pages/ContractManagementPage.tsx

@@ -13,7 +13,7 @@ import { OpsResponsiveActions, OpsNotice, OpsStatus, OpsTableEmpty, OpsTableColu
 import { contractDelete, rowsOf } from "../lib/api/bos";
 import { ApiError } from "../lib/api/http";
 import { WORD_NOT_PROVIDED, WORD_FETCH_FAILED, WORD_UNCONFIGURED } from "../lib/api/lockedCopy";
-import { Tri } from "../components/triState";
+import { TableValueText, Tri } from "../components/triState";
 import { useHorizontalOverflow } from "../lib/use-horizontal-overflow";
 import { useBusinessView } from "../lib/use-business-view";
 import { useLineExits } from "../lib/package-catalog";
@@ -152,12 +152,12 @@ export function ContractManagementPage() {
         const expiringRow = isExpiringSoon(item.end);
         const renewContractId = item.contractId ?? "";
         return <tr key={item.contractId || item.no} tabIndex={0} aria-label={`查看合同 ${item.no}`} onClick={() => navigate(`/contracts/${link}`, { state: { from: location.pathname + location.search } })} onKeyDown={(event) => { if (event.key === "Enter" && event.target === event.currentTarget) navigate(`/contracts/${link}`, { state: { from: location.pathname + location.search } }); }}>
-          <td><strong className="table-cell-title" title={item.no}>{item.no || WORD_UNCONFIGURED}</strong><small title={`${item.customer} · ${item.source ?? ""}`}>{item.customer || WORD_UNCONFIGURED} · {item.contractType || "新建"} · {item.source === undefined ? <Tri tone="missing" text={WORD_NOT_PROVIDED} title="后端合同读口未返回 source 列(服务版本落后于 20261115000002 迁移)——如实标未下发,不填 manual 冒充" /> : textCell(item.source)}</small></td>
+          <td><strong className="table-cell-title" title={item.no}><TableValueText>{item.no || WORD_UNCONFIGURED}</TableValueText></strong><small title={`${item.customer} · ${item.source ?? ""}`}><TableValueText>{item.customer || WORD_UNCONFIGURED}</TableValueText> · {item.contractType || "新建"} · {item.source === undefined ? <Tri tone="missing" text={WORD_NOT_PROVIDED} title="后端合同读口未返回 source 列(服务版本落后于 20261115000002 迁移)——如实标未下发,不填 manual 冒充" /> : textCell(item.source)}</small></td>
           <td title={item.extNo || undefined}>{item.extNo ? <span className="ops-mono">{item.extNo}</span> : "—"}</td>
           <td>{state ? <OpsStatus tone={contractStatusTone[state]}>{state}</OpsStatus> : <Tri tone={item.periodState === "fail" ? "fail" : "missing"} text={item.periodState === "fail" ? WORD_FETCH_FAILED : WORD_UNCONFIGURED} title="缺少生效日或结束日,状态不可判" />}{expiringRow && <OpsStatus tone="warning">快到期 · {expiringLabel(item.end)}</OpsStatus>}<small>{item.periodState === "val" ? `${d(item.start)} 至 ${d(item.end)}` : <Tri tone={item.periodState === "fail" ? "fail" : "missing"} text={item.periodState === "fail" ? WORD_FETCH_FAILED : WORD_UNCONFIGURED} />}</small></td>
           <td>{item.opened === undefined || item.opened === null ? <Tri tone={item.opened === undefined ? "fail" : "missing"} text={item.opened === undefined ? WORD_FETCH_FAILED : WORD_UNCONFIGURED} title="是否已开通取关联工单回填,取数失败只坏本列" /> : <OpsStatus tone={item.opened ? "success" : "warning"}>{item.opened ? "已开通" : "未开通"}</OpsStatus>}<small>实际开通日 {item.openedOn ? d(item.openedOn) : "未回填"}</small></td>
           <td>{item.amountState === "val" ? <span className="ops-money">¥{item.amount.toLocaleString("zh-CN")}</span> : <Tri tone={item.amountState === "fail" ? "fail" : "missing"} text={item.amountState === "fail" ? WORD_FETCH_FAILED : WORD_UNCONFIGURED} />}<small>{item.serviceMonthsState === "val" ? `服务期 ${item.serviceMonths} 个月` : <Tri tone={item.serviceMonthsState === "fail" ? "fail" : "missing"} text={item.serviceMonthsState === "fail" ? WORD_FETCH_FAILED : WORD_UNCONFIGURED} />}</small></td>
-          <td><strong>{item.agent || WORD_UNCONFIGURED}</strong><small>{item.agentPhone || WORD_UNCONFIGURED}</small></td>
+          <td><strong><TableValueText>{item.agent || WORD_UNCONFIGURED}</TableValueText></strong><small><TableValueText>{item.agentPhone || WORD_UNCONFIGURED}</TableValueText></small></td>
 <td><div className="ops-inline-actions"><button type="button" onClick={(event) => { event.stopPropagation(); navigate(`/contracts/${link}`, { state: { from: location.pathname + location.search } }); }}>详情</button>{!view.readOnly && <OpsResponsiveActions expanded={expandedActions} items={[
             ...(expiringRow && renewContractId ? [{ label: "续签合同", shortLabel: "续签", icon: <CalendarClock size={15} />, title: "按旧合同带入金额、服务期、服务条目与新的生效日(旧止期次日),生成新合同;不替换原订阅", onSelect: () => navigate(`/contracts/new?renew=${encodeURIComponent(renewContractId)}`) }] : []),
             { label: "删除合同", shortLabel: "删除", danger: true, icon: <Trash2 size={15} />, title: "引用拦截由服务端判定,删除后不可恢复", onSelect: () => setDeleteId(item.contractId ?? item.no) },

Dosya farkı çok büyük olduğundan ihmal edildi
+ 1 - 1
web-scaffold/src/pages/ContractRecordPage.tsx


+ 2 - 2
web-scaffold/src/pages/CustomerSelfServicePages.tsx

@@ -165,14 +165,14 @@ export function CustomerAccountsPage() {
         <td><strong>{row.username?.trim()
           ? row.username
           : row.status === "not_opened"
-            ? <span className="ops-muted" title="该席位尚未开通,登录名在开通后登记">未开通</span>
+            ? <span className="ops-muted table-placeholder" title="该席位尚未开通,登录名在开通后登记">未开通</span>
             : row.status === "stopped"
               ? <span className="ops-muted" title="该席位已停用,登录名随停用不再展示">已停用</span>
               : <Tri tone="missing" text={MISSING} title="sub_account.username 已下发、值为空" />}</strong></td>
         <td>{seatDisplayName(row)
           ? <><span>{seatDisplayName(row)}</span>{isSeatPlaceholder(row) && <small className="ml-1 text-xs opacity-70">(席位占位·姓名待填)</small>}</>
           : row.status === "not_opened"
-            ? <span className="ops-muted" title="该席位尚未开通,真实姓名开通后由客户填写">未开通(开通后填写)</span>
+            ? <span className="ops-muted table-placeholder" title="该席位尚未开通,真实姓名开通后由客户填写">未开通(开通后填写)</span>
             : <Tri tone="missing" text={MISSING} title="sub_account.display_name 已下发、值为空" />}</td>
         <td><OpsStatus tone={row.status === "active" || row.status === "normal" ? "success" : row.status === "stopped" || row.status === "disabled" ? "neutral" : "warning"}>{label(ACCT_STATUS, row.status) || MISSING}</OpsStatus></td>
         <td><Button variant="ghost" size="sm" onClick={() => { setEditing(row); setName(row.display_name ?? ""); setError(""); }}><PencilLine size={14} />修改姓名</Button></td>

+ 2 - 2
web-scaffold/src/pages/CustomerWorkspacePage.tsx

@@ -760,7 +760,7 @@ export function CustomerWorkspacePage() {
             <td>{row.username?.trim()
               ? <TextCell value={row.username} />
               : row.status === "not_opened"
-                ? <span className="ops-muted" title="该席位尚未开通,账号名在开通后登记">未开通</span>
+                ? <span className="ops-muted table-placeholder" title="该席位尚未开通,账号名在开通后登记">未开通</span>
                 : row.status === "stopped"
                   ? <span className="ops-muted" title="该席位已停用,账号名随停用不再展示">已停用</span>
                   : <OptionalCell value={row.username} note="后端未登记该席位的账号名(sub_account.username 已下发、值为空)" />}</td>
@@ -773,7 +773,7 @@ export function CustomerWorkspacePage() {
             <td>{row.net_account?.trim()
               ? row.net_account
               : row.status === "not_opened"
-                ? <span className="ops-muted" title="该席位尚未开通,网络侧账号名在开户回填后登记">未开通</span>
+                ? <span className="ops-muted table-placeholder" title="该席位尚未开通,网络侧账号名在开户回填后登记">未开通</span>
                 : <OptionalCell value={row.net_account} note="开户回填未登记该席位的网络侧账号名(sub_account.net_account 已下发、值为空)" />}</td>
             <td><AcctCell raw={row.status} /></td>
             <td><TextCell value={row.created_at} /></td>

+ 5 - 5
web-scaffold/src/pages/OrderRecordPage.tsx

@@ -7,7 +7,7 @@ import { OpsMore, OpsNotice, OpsStatus } from "../components/OperationsKit";
 import { OrderEditor } from "../components/OrderChangeDialogs";
 import { DeliveryStatusTable } from "../components/DeliveryStatusTable";
 import { ListPager } from "../components/ListPager";
-import { Tri } from "../components/triState";
+import { TableValueText, Tri } from "../components/triState";
 import { getBillableStartDate } from "../domain/order-dates";
 import { contractRawByParam, contractStatusOf } from "../lib/contract-demo";
 import { orderView, useOrderRecord } from "../lib/order-demo";
@@ -211,14 +211,14 @@ export function OrderRecordPage() {
     <section className="order-record-section" aria-labelledby="order-service-title">
       <div className="order-record-section-title"><h2 id="order-service-title">本条订阅</h2></div>
       <div className="order-record-detail-wrap"><table className="order-record-detail"><tbody>
-        <tr><th scope="row">套餐档</th><td>{cell(item.planName)}{plan ? <span className="order-record-inline-note"> · {label(PLAN_FAMILY, plan.plan_family) || "形态未填"} · 目录年价 {moneyCell(plan.annual_price_cents).text} / 月标准 {moneyCell(plan.monthly_settle_cents).text} · 额度 {plan.sub_account_quota ?? WORD_UNCONFIGURED}</span> : <span className="order-record-inline-note"> · {catalog.error ? `目录档位取数失败:${catalog.error.message}` : "目录档位未取到,本条按冻结价继续计费"}</span>}</td></tr>
+        <tr><th scope="row">套餐档</th><td>{cell(item.planName)}{plan ? <span className="order-record-inline-note"> · {label(PLAN_FAMILY, plan.plan_family) || "形态未填"} · 目录年价 {moneyCell(plan.annual_price_cents).text} / 月标准 {moneyCell(plan.monthly_settle_cents).text} · 额度 <TableValueText>{plan.sub_account_quota ?? WORD_UNCONFIGURED}</TableValueText></span> : <span className="order-record-inline-note"> · {catalog.error ? `目录档位取数失败:${catalog.error.message}` : "目录档位未取到,本条按冻结价继续计费"}</span>}</td></tr>
         <tr><th scope="row">冻结价格</th><td>年订阅价格 {moneyCellView(item.annual)} · 月结算标准 {moneyCellView(item.settle)}<span className="order-record-inline-note">({plan ? catalogMatches ? "与当前目录价一致" : "与当前目录价不同,以本条冻结值为准" : "目录档位未取到,以本条冻结值为准"})</span></td></tr>
-        <tr><th scope="row">订阅方式</th><td>{item.modeLabel || WORD_UNCONFIGURED}<span className="order-record-inline-note"> · 交付形态({item.familyLabel || WORD_UNCONFIGURED}){catalogMode}</span>{item.original && <> · 替换 <Link to={`/orders/${encodeURIComponent(item.original.subscription_id)}`} state={outgoingState}>{item.original.subscription_id}</Link></>}{item.replacedBy && <> · 已被 <Link to={`/orders/${encodeURIComponent(item.replacedBy.subscription_id)}`} state={outgoingState}>{item.replacedBy.subscription_id}</Link> 替换</>}</td></tr>
+        <tr><th scope="row">订阅方式</th><td><TableValueText>{item.modeLabel || WORD_UNCONFIGURED}</TableValueText><span className="order-record-inline-note"> · 交付形态({item.familyLabel || WORD_UNCONFIGURED}){catalogMode}</span>{item.original && <> · 替换 <Link to={`/orders/${encodeURIComponent(item.original.subscription_id)}`} state={outgoingState}>{item.original.subscription_id}</Link></>}{item.replacedBy && <> · 已被 <Link to={`/orders/${encodeURIComponent(item.replacedBy.subscription_id)}`} state={outgoingState}>{item.replacedBy.subscription_id}</Link> 替换</>}</td></tr>
         <tr><th scope="row">订阅状态</th><td>{item.statusLabel ? <OpsStatus tone={statusTone(item.statusLabel)}>{item.statusLabel}</OpsStatus> : <Tri tone="fail" text={WORD_FETCH_FAILED} />}{item.reason && <span className="order-record-inline-note"> · 办理说明:{item.reason}</span>}</td></tr>
         <tr><th scope="row">起止时间</th><td>{cell(item.start)} 至 {cell(item.end)}<span className="order-record-inline-note"> · 应收从实际开通日与合同生效日的较晚者起算{billableStart ? `(${billableStart})` : "(尚未开通)"}</span></td></tr>
         {item.trialMonths ? <tr><th scope="row">试用优惠</th><td>{item.trialMonths} 个月 · {item.trialDiscount === undefined ? <Tri tone="fail" text={WORD_FETCH_FAILED} /> : item.trialDiscount === null ? "优惠金额未填写" : `${moneyCell(item.trialDiscount).text} / 月`}</td></tr> : null}
         <tr><th scope="row">线路出口</th><td>{item.exits === undefined ? <Tri tone="fail" text={WORD_FETCH_FAILED} /> : item.exits === null ? <Tri tone="missing" text={WORD_UNCONFIGURED} /> : item.exits.length ? item.exits.join("、") : <Tri tone="missing" text={WORD_UNCONFIGURED} />}<span className="order-record-inline-note"> · 随合同服务构成条目带出,保存时冻结</span></td></tr>
-        <tr><th scope="row">合同编号</th><td>{cell(item.contractNo)}{contract.error ? <span className="order-record-inline-note">(合同记录取数失败:{contract.error.message})</span> : contract.loading ? <span className="order-record-inline-note">(正在读取合同…)</span> : contractRow ? <> · {contractRow.start_date ?? WORD_UNCONFIGURED} 至 {contractRow.end_date ?? WORD_UNCONFIGURED} · 合同状态 {contractState ?? WORD_UNCONFIGURED} · 合同总额 {moneyCell(contractRow.amount_cents).text} <Link to={`/contracts/${encodeURIComponent(contractRow.contract_id)}`} state={outgoingState}>查看合同 <ArrowRight size={14} /></Link></> : <span className="order-record-inline-note">(合同记录不存在或未下发 contract_id)</span>}</td></tr>
+        <tr><th scope="row">合同编号</th><td>{cell(item.contractNo)}{contract.error ? <span className="order-record-inline-note">(合同记录取数失败:{contract.error.message})</span> : contract.loading ? <span className="order-record-inline-note">(正在读取合同…)</span> : contractRow ? <> · <TableValueText>{contractRow.start_date ?? WORD_UNCONFIGURED}</TableValueText> 至 <TableValueText>{contractRow.end_date ?? WORD_UNCONFIGURED}</TableValueText> · 合同状态 <TableValueText>{contractState ?? WORD_UNCONFIGURED}</TableValueText> · 合同总额 {moneyCell(contractRow.amount_cents).text} <Link to={`/contracts/${encodeURIComponent(contractRow.contract_id)}`} state={outgoingState}>查看合同 <ArrowRight size={14} /></Link></> : <span className="order-record-inline-note">(合同记录不存在或未下发 contract_id)</span>}</td></tr>
         <tr><th scope="row">订单号</th><td>{cell(item.orderNo, "无运营商订单号")}<span className="order-record-inline-note"> · 保存时从合同外部单号冻结;订阅写入方在第4册{!view.readOnly && item.orderNo && <> · <Link to={`/orders?order=${encodeURIComponent(item.orderNo)}`}>按该单查询</Link></>}</span></td></tr>
         <tr><th scope="row">实际开通日</th><td>{item.openedOn === undefined ? <Tri tone="fail" text={WORD_FETCH_FAILED} /> : item.openedOn ? item.openedOn : <Tri tone="missing" text="未开通" />}<span className="order-record-inline-note"> · 由运维回填,本册只读</span></td></tr>
         <tr><th scope="row">提前停机日</th><td>{item.earlyStoppedOn ? item.earlyStoppedOn : <Tri tone="missing" text="—" />}<span className="order-record-inline-note"> · 提前停机回填生效后写入;起止日不变</span></td></tr>
@@ -279,7 +279,7 @@ export function OrderRecordPage() {
       <div className="order-record-section-title"><h2 id="order-customer-title">相关客户主体</h2><Link className="ops-card-link" to={`/customers/${encodeURIComponent(item.customerId)}`} state={outgoingState}>客户档案 <ArrowRight size={14} /></Link></div>
       <p className="order-record-section-intro">下面是本条订阅所属客户的主体信息;归属变更、主账号与全部分账号请到客户档案查看。</p>
       <div className="order-record-detail-wrap"><table className="order-record-detail"><tbody>
-        <tr><th scope="row">客户主体</th><td>{item.customerId || WORD_UNCONFIGURED} · {cell(custRow?.customer_name ?? item.customer)}({custRow ? label(SUBJECT_TYPE, custRow.subject_type) : custCell("主体类型")} · 识别号 {custText(custRow?.identity_no_masked, "未登记", "识别号")})</td></tr>
+        <tr><th scope="row">客户主体</th><td><TableValueText>{item.customerId || WORD_UNCONFIGURED}</TableValueText> · {cell(custRow?.customer_name ?? item.customer)}({custRow ? label(SUBJECT_TYPE, custRow.subject_type) : custCell("主体类型")} · 识别号 {custText(custRow?.identity_no_masked, "未登记", "识别号")})</td></tr>
         <tr><th scope="row">账户状态</th><td>{custRow ? <OpsStatus tone={statusTone(label(ACCT_STATUS, custRow.acct_status))}>{label(ACCT_STATUS, custRow.acct_status)}</OpsStatus> : custCell("账户状态")}<span className="order-record-inline-note"> · 所属区域 {regionText} · 运营商 {custText(custRow?.operator_name, "未关联", "运营商")} / 合伙人 {custText(custRow?.partner_name, "无", "合伙人")}</span></td></tr>
         <tr><th scope="row">经办联系人</th><td>{custText(custRow?.contact_name, "未填", "经办联系人")} / {custText(custRow?.contact_mobile, "未填", "经办联系电话")}<span className="order-record-inline-note"> · 地址 {custText(custRow?.address, "未填", "装机地址")}</span></td></tr>
         <tr><th scope="row">分账号</th><td>{accounts.error ? <Tri tone="fail" text={WORD_FETCH_FAILED} title={`分账号取数失败:${accounts.error.message}`} /> : accounts.loading ? <Tri tone="missing" text="读取中…" title="分账号读取中" /> : <>共 {accounts.data?.total ?? 0} 个 / 额度 {custText(custRow?.quota_cents, WORD_UNCONFIGURED, "分账号额度")}<span className="order-record-inline-note"> · 本条订阅计入额度 {item.quotaSlots === undefined ? WORD_FETCH_FAILED : item.quotaSlots === null ? WORD_UNCONFIGURED : item.quotaSlots}(未到期订阅按档位额度累加)</span></>}</td></tr>

+ 6 - 6
web-scaffold/src/pages/OrganizationPages.tsx

@@ -29,7 +29,7 @@ import * as bos from "../lib/api/bos";
 import { MAINTENANCE_TICKET_TYPES, typeLabel } from "../lib/api/ticket";
 import { useDemoIdentity } from "../lib/demo-session";
 import { useSession } from "../auth/session";
-import { Tri } from "../components/triState";
+import { TableValueText, Tri } from "../components/triState";
 import "../styles/operations.css";
 import "../styles/organization.css";
 
@@ -1119,9 +1119,9 @@ export function OperatorManagementPage() {
               <td className="org-directory-identity"><span className="org-directory-name table-cell-title" title={o.name}>{o.name}</span>{o.brand && <small>{o.brand}</small>}</td>
               <td title={regionPath(data, o.region)}>{regionPath(data, o.region)}</td>
               <td><span className="org-directory-value" title={reconcileDayTitle(o, defaultDay)}>{reconcileDayText(o, defaultDay)}</span></td>
-              <td title={o.payCycle || undefined}>{o.payCycle || "未配置"}</td>
+              <td title={o.payCycle || undefined}><TableValueText>{o.payCycle || "未配置"}</TableValueText></td>
               <td title={shareLabel}>
-                {o.sharePending ? <span className="org-operator-muted">{shareLabel}</span> : (
+                {o.sharePending ? <TableValueText>{shareLabel}</TableValueText> : (
                   <><span className="org-directory-value org-directory-share-value">{shareText(o)}</span><small>{o.shareMode}</small></>
                 )}
               </td>
@@ -1253,7 +1253,7 @@ export function PartnerManagementPage() {
                       <Tri tone="missing" text="未配置" title="档案里分成方式/分成值为空=尚未配置,不是后端未下发" />
                     ) : <span className="org-directory-value org-directory-share-value">{shareText(p)}</span>}
                   </td>
-                  <td title={scopeLabel}>{scopeLabel}</td>
+                  <td title={scopeLabel}><TableValueText>{scopeLabel}</TableValueText></td>
                   <td className="org-directory-customer-count"><Count v={p.coverageCustomers} /></td>
                   <td className="org-table-actions-cell">
                     <div className="org-table-actions is-icons">
@@ -1334,7 +1334,7 @@ export function OperationsTeamManagementPage() {
     <div className="org-maintenance-ledger-shell list-shell-fill">
       <div className="ops-toolbar"><SearchBox onChange={(value) => { setQuery(value); paging.resetPage(); }} placeholder="搜索团队名称、说明或负责范围" value={query} /><RegionSelect all data={data} onChange={(value) => { setRegionFilter(value); paging.resetPage(); }} value={regionFilter} />{(query || regionFilter) && <FilterResetButton variant="ghost" size="sm" onClick={() => { setQuery(""); setRegionFilter(""); paging.resetPage(); }}>重置筛选</FilterResetButton>}<FilterResetButton variant="ghost" size="sm" disabled={!teams.length} onClick={exportRows}><Download size={14} /> 导出 CSV</FilterResetButton></div>
       <div ref={tableOverflow.ref} tabIndex={0} role="region" aria-label="运营团队台账,可横向滚动查看字段" className={`measured-table-scroll org-table-wrap org-team-table-scroll${tableOverflow.overflow ? " has-horizontal-overflow" : ""}${tableOverflow.canScrollLeft ? " can-scroll-left" : ""}${tableOverflow.canScrollRight ? " can-scroll-right" : ""}`}><table className="org-table org-operations-ledger-table org-team-ledger"><OpsTableColumns widths={columnWidths} /><thead><tr><th className="sortable" aria-sort={sortAria("name")} onClick={() => toggleSort("name")}>团队 / 说明</th><th className="sortable" aria-sort={sortAria("region")} onClick={() => toggleSort("region")}>所属区域</th><th>分成规则</th><th>负责范围</th><th className="sortable" aria-sort={sortAria("coverage")} onClick={() => toggleSort("coverage")}>覆盖客户</th><th className="sortable" aria-sort={sortAria("members")} onClick={() => toggleSort("members")}>成员账号</th><th className="org-table-actions-heading">操作</th></tr></thead><tbody>{pageTeams.map((team) => {
-        return <tr key={team.id}><td><div className="org-operations-team-name"><strong className="table-cell-title" title={team.name}>{team.name}</strong>{team.hq && <OpsTag tone="brand">总部内置</OpsTag>}</div><small title={team.desc || "尚未填写团队说明"}>{team.desc || "尚未填写团队说明"}</small></td><td>{team.hq ? "总部 · 不限区域" : operationsRegionLabel(data, team.region)}</td><td className="org-maintenance-share"><strong>{shareText(team)}</strong><small>{team.shareMode}</small></td><td className="org-maintenance-scope-cell" title={scopeSummary(data, team.scope)}>{scopeSummary(data, team.scope)}</td><td className="org-number"><Count v={team.coverageCustomers} /> 家</td><td>{team.members.length || (team.memberCount ?? 0) > 0 ? <span className="org-member-count" title={team.membersPending || undefined}><strong><Count v={team.memberCount} />{typeof team.memberCount === "number" ? " 个" : null}</strong>{team.membersPending ? <span aria-label={team.membersPending} className="org-member-count-hint" role="img" title={team.membersPending}><Info aria-hidden="true" size={13} /></span> : null}</span> : <OrganizationAccountStatus status="未开通" />}</td><td className="org-table-actions-cell"><div className="org-table-actions is-icons"><Link className="org-maintenance-account-link" to={`/organization/operations-teams/${encodeURIComponent(team.id)}/accounts`}><UserRound size={15} />账号</Link>{!teamReadOnly && <OpsResponsiveActions expanded={expandedActions} items={[
+        return <tr key={team.id}><td><div className="org-operations-team-name"><strong className="table-cell-title" title={team.name}>{team.name}</strong>{team.hq && <OpsTag tone="brand">总部内置</OpsTag>}</div><small title={team.desc || "尚未填写团队说明"}>{team.desc || "尚未填写团队说明"}</small></td><td>{team.hq ? "总部 · 不限区域" : operationsRegionLabel(data, team.region)}</td><td className="org-maintenance-share"><strong>{shareText(team)}</strong><small>{team.shareMode}</small></td><td className="org-maintenance-scope-cell" title={scopeSummary(data, team.scope)}><TableValueText>{scopeSummary(data, team.scope)}</TableValueText></td><td className="org-number"><Count v={team.coverageCustomers} /> 家</td><td>{team.members.length || (team.memberCount ?? 0) > 0 ? <span className="org-member-count" title={team.membersPending || undefined}><strong><Count v={team.memberCount} />{typeof team.memberCount === "number" ? " 个" : null}</strong>{team.membersPending ? <span aria-label={team.membersPending} className="org-member-count-hint" role="img" title={team.membersPending}><Info aria-hidden="true" size={13} /></span> : null}</span> : <OrganizationAccountStatus status="未开通" />}</td><td className="org-table-actions-cell"><div className="org-table-actions is-icons"><Link className="org-maintenance-account-link" to={`/organization/operations-teams/${encodeURIComponent(team.id)}/accounts`}><UserRound size={15} />账号</Link>{!teamReadOnly && <OpsResponsiveActions expanded={expandedActions} items={[
           { label: "编辑团队", shortLabel: "编辑", icon: <PencilLine size={15} />, onSelect: () => setEditor({ kind: "operations", id: team.id }) },
           ...(!team.hq ? [{ label: "删除团队", shortLabel: "删除", danger: true, icon: <Trash2 size={15} />, onSelect: () => setDeleteId(team.id) }] : []),
         ]} />}</div></td></tr>;
@@ -1434,7 +1434,7 @@ export function MaintenanceTeamLedgerPage() {
     <div className="org-maintenance-ledger-shell list-shell-fill">
       <div className="ops-toolbar"><SearchBox onChange={(value) => { setQuery(value); paging.resetPage(); }} placeholder="搜索团队名称、区域路径、说明或成员" value={query} /><RegionSelect all data={data} onChange={(value) => { setRegionFilter(value); paging.resetPage(); }} value={regionFilter} /><FilterSelect icon="assignment" aria-label="分派方式" onChange={(event) => { setModeFilter(event.target.value); paging.resetPage(); }} value={modeFilter}><option value="">全部分派方式</option><option value="手工">手工</option><option value="自动平均">自动平均</option></FilterSelect>{(query || regionFilter || modeFilter) && <FilterResetButton variant="ghost" size="sm" onClick={() => { setQuery(""); setRegionFilter(""); setModeFilter(""); paging.resetPage(); }}>重置筛选</FilterResetButton>}<FilterResetButton variant="ghost" size="sm" disabled={!teams.length} onClick={exportRows}><Download size={14} /> 导出 CSV</FilterResetButton></div>
       <div ref={tableRef} tabIndex={0} role="region" aria-label="运维团队台账,可横向滚动查看字段" className={`measured-table-scroll org-table-wrap org-team-table-scroll${tableOverflow.overflow ? " has-horizontal-overflow" : ""}${tableOverflow.canScrollLeft ? " can-scroll-left" : ""}${tableOverflow.canScrollRight ? " can-scroll-right" : ""}`}><table className="org-table org-maintenance-ledger-table org-team-ledger"><OpsTableColumns widths={columnWidths} /><thead><tr><th className="sortable" aria-sort={sortAria("name")} onClick={() => toggleSort("name")}>团队 / 分派</th><th className="sortable" aria-sort={sortAria("region")} onClick={() => toggleSort("region")}>所属区域</th><th className="org-maintenance-ticket-types"><span>可分配工单类型</span></th><th>分成规则</th><th>负责范围</th><th className="sortable" aria-sort={sortAria("coverage")} onClick={() => toggleSort("coverage")}>覆盖客户</th><th className="sortable" aria-sort={sortAria("open")} onClick={() => toggleSort("open")}>未完成</th><th>超期未完成</th><th className="sortable" aria-sort={sortAria("members")} onClick={() => toggleSort("members")}>成员账号</th><th className="org-table-actions-heading">操作</th></tr></thead><tbody>{pageTeams.map((team) => {
-        return <tr key={team.id}><td><strong className="table-cell-title" title={team.name}>{team.name}</strong><small>{team.mode}分派</small></td><td title={regionPath(data, team.region)}>{regionPath(data, team.region)}</td><td className="org-maintenance-ticket-types"><TeamTicketTypes types={teamTicketTypes(team)} /></td><td className="org-maintenance-share"><strong>{shareText(team)}</strong><small>{team.shareMode}</small></td><td className="org-maintenance-scope-cell" title={scopeSummary(data, team.scope)}>{scopeSummary(data, team.scope)}</td><td className="org-number"><Count v={team.coverageCustomers} /></td><td className="org-number"><Count v={team.openTickets} /></td><td>{team.overdueOpenTickets === undefined || team.overdueOpenTickets === null ? <Tri tone="missing" text={FIELD_UNAVAILABLE} title={team.loadPending} /> : team.overdueOpenTickets > 0 ? <OpsStatus tone="danger">超期 {team.overdueOpenTickets}</OpsStatus> : <OpsStatus tone="brand">正常</OpsStatus>}</td><td><strong><Count v={team.memberCount} /></strong><small>{team.membersPending ?? `成员 ${team.members.length} 人`}</small></td><td className="org-table-actions-cell"><div className="org-table-actions is-icons"><Link className="org-maintenance-account-link" to={`/organization/maintenance-teams/${encodeURIComponent(team.id)}/accounts`}><UserRound size={15} />账号</Link><OpsResponsiveActions expanded={expandedActions} items={[
+        return <tr key={team.id}><td><strong className="table-cell-title" title={team.name}>{team.name}</strong><small>{team.mode}分派</small></td><td title={regionPath(data, team.region)}>{regionPath(data, team.region)}</td><td className="org-maintenance-ticket-types"><TeamTicketTypes types={teamTicketTypes(team)} /></td><td className="org-maintenance-share"><strong>{shareText(team)}</strong><small>{team.shareMode}</small></td><td className="org-maintenance-scope-cell" title={scopeSummary(data, team.scope)}><TableValueText>{scopeSummary(data, team.scope)}</TableValueText></td><td className="org-number"><Count v={team.coverageCustomers} /></td><td className="org-number"><Count v={team.openTickets} /></td><td>{team.overdueOpenTickets === undefined || team.overdueOpenTickets === null ? <Tri tone="missing" text={FIELD_UNAVAILABLE} title={team.loadPending} /> : team.overdueOpenTickets > 0 ? <OpsStatus tone="danger">超期 {team.overdueOpenTickets}</OpsStatus> : <OpsStatus tone="brand">正常</OpsStatus>}</td><td><strong><Count v={team.memberCount} /></strong><small>{team.membersPending ?? `成员 ${team.members.length} 人`}</small></td><td className="org-table-actions-cell"><div className="org-table-actions is-icons"><Link className="org-maintenance-account-link" to={`/organization/maintenance-teams/${encodeURIComponent(team.id)}/accounts`}><UserRound size={15} />账号</Link><OpsResponsiveActions expanded={expandedActions} items={[
           // 负责范围已并入「编辑团队」弹窗(2026-11-16 业主指示),⛔ 再单列一条动作。
           { label: "编辑团队", shortLabel: "编辑", icon: <PencilLine size={15} />, onSelect: () => setEditor({ kind: "maintenance", id: team.id }) },
           { label: "删除团队", shortLabel: "删除", danger: true, icon: <Trash2 size={15} />, onSelect: () => setDeleteId(team.id) },

+ 2 - 2
web-scaffold/src/pages/PackageManagementPage.tsx

@@ -5,7 +5,7 @@ import { createPortal } from "react-dom";
 import { CircleHelp, LockKeyhole, PencilLine, Plus, Search, Trash2, X } from "lucide-react";
 import { Button } from "../components/ui/button";
 import { Input } from "../components/ui/input";
-import { Tri } from "../components/triState";
+import { TableValueText, Tri } from "../components/triState";
 import { NOTICE_DISMISS_MS, OpsTag, OpsTableColumns, OpsTableEmpty } from "../components/OperationsKit";
 import { ListPager } from "../components/ListPager";
 import { COST_BY_COMBINATION, OPERATOR_ONLY_CONFIG, WORD_FETCH_FAILED, WORD_NOT_PROVIDED, WORD_UNCONFIGURED } from "../lib/api/lockedCopy";
@@ -165,7 +165,7 @@ function CustomPlanRow({ plan, index, writable, readOnlyNote, onEdit, onDelete }
 /** 固定档按用途分类分组的一行表头(分组落在表体内,与原型同形):分类名+「X · 口径说明」(X 为订阅方式值,不再冠「订阅方式:」)。
  *  用途分类由本行承载,档位行不再单列该字段(2026-11-15)。 */
 function PlanGroupRow({ title, hint, colSpan }: { title: string; hint?: string; colSpan: number }) {
-  return <tr className="catalog-group-row"><td colSpan={colSpan}><strong>{title}</strong>{hint && <span>{hint}</span>}</td></tr>;
+  return <tr className="catalog-group-row"><td colSpan={colSpan}><strong><TableValueText>{title}</TableValueText></strong>{hint && <span>{hint}</span>}</td></tr>;
 }
 
 /** 交付形态对应的订阅方式提示(`link` 可升降配、`addon` 可叠加)。 */

+ 4 - 0
web-scaffold/src/styles/globals.css

@@ -378,6 +378,10 @@ table tbody td .table-cell-title {
   font-weight: 500;
 }
 
+table td .table-placeholder {
+  color: var(--border-hover);
+}
+
 /* 表体正文默认 13px,只有后续说明行使用 12px。 */
 table tbody td,
 table[class] tbody td,

+ 0 - 1
web-scaffold/src/styles/organization.css

@@ -642,7 +642,6 @@ a.org-overview-card{text-decoration:none;color:inherit}
 :is(.org-operator-ledger,.org-partner-ledger) .org-directory-identity small { margin-top: 3px; font-size: var(--type-meta); }
 .org-directory-value { display: block; overflow: hidden; color: var(--foreground); font-variant-numeric: tabular-nums; text-overflow: ellipsis; }
 .org-directory-share-value { color: var(--primary); font-weight: 550; }
-.org-operator-muted { color: var(--muted-foreground); }
 :is(.org-operator-ledger,.org-partner-ledger) tbody tr:is(:hover,:focus-within) td{background:var(--surface-subtle)}
 :is(.org-operator-ledger,.org-partner-ledger) tbody tr.selected td{background:color-mix(in srgb,var(--primary-soft) 42%,var(--card))}
 :is(.org-operator-ledger,.org-partner-ledger) tbody tr.selected .org-directory-identity::before { position: absolute; inset-block: 8px; inset-inline-start: 0; width: 3px; border-radius: 0 3px 3px 0; background: var(--primary); content: ""; }

Bu fark içinde çok fazla dosya değişikliği olduğu için bazı dosyalar gösterilmiyor