소스 검색

fix(web): 统一运营商对账清单名称

sy 3 일 전
부모
커밋
9e648afce4

+ 2 - 2
web-scaffold/src/access/demo-navigation.ts

@@ -62,10 +62,10 @@ const partnerNavigation: readonly DemoNavigationItem[] = [
   { id: "contracts", title: "合同清单", path: "/bos/pv/contract", section: "客户与合同", icon: "contracts" },
   { id: "changeLog", title: "本方变更记录", path: "/bos/pv/n", section: "变更与范围", icon: "auditLogs" },
 ];
-// 册 8 菜单契约(视图§3.4):本方对账清单/账单明细(本方对账)+客户清单/合同清单(客户与合同);
+// 运营商菜单:对账清单/账单明细(本方对账)+客户清单/合同清单(客户与合同);
 // 第 5 项「本方变更记录」/bos/ov/n 同上按读口就绪位渲染;⛔ 侧栏出现工单分组(§3.1 纪律 2)。
 const operatorNavigation: readonly DemoNavigationItem[] = [
-  { id: "statements", title: "本方对账清单", path: "/bos/ov/recon", section: "本方对账", icon: "settlementBatches" },
+  { id: "statements", title: "对账清单", path: "/bos/ov/recon", section: "本方对账", icon: "settlementBatches" },
   { id: "bills", title: "账单明细", path: "/bos/ov/bill-detail", section: "本方对账", icon: "settlementBills" },
   { id: "enterprises", title: "客户清单", path: "/bos/ov/customer", section: "客户与合同", icon: "customers" },
   { id: "contracts", title: "合同清单", path: "/bos/ov/contract", section: "客户与合同", icon: "contracts" },

+ 2 - 2
web-scaffold/src/app/App.tsx

@@ -319,8 +319,8 @@ function Workspace() {
         {/* 裸路径兜底:明细列表并进「本运营区域对账」合并页,没有独立列表页 ⇒ 重定向,⛔ 落到 404。 */}
         <Route path="/bos/pv/bill-detail" element={<Navigate to="/bos/pv/recon" replace />} />
         <Route path="/bos/pv/bill-detail/:index" element={<NavAllowed><AppShell pageTitle="账单明细详情"><SettlementBillRecordPage partnerView /></AppShell></NavAllowed>} />
-        {/* V-P5 运营商本方对账清单(页顶两卡) */}
-        <Route path="/bos/ov/recon" element={<AppShell pageTitle="本方对账清单"><OperatorReconPage /></AppShell>} />
+        {/* V-P5 运营商对账清单 */}
+        <Route path="/bos/ov/recon" element={<AppShell pageTitle="对账清单"><OperatorReconPage /></AppShell>} />
         {/* V-P6 运营商账单明细 */}
         <Route path="/bos/ov/bill-detail" element={<AppShell pageTitle="账单明细"><OperatorBillDetailPage /></AppShell>} />
         <Route path="/bos/ov/bill-detail/:id" element={<AppShell pageTitle="账单明细详情"><PartyBillDetailPage kind="operator" /></AppShell>} />

+ 1 - 1
web-scaffold/src/lib/detail-navigation.ts

@@ -42,7 +42,7 @@ const pageLabels: Record<string, string> = {
   "/daily-tasks": "返回定时任务",
   "/audit-logs": "返回审计日志",
   "/bos/pv/recon": "返回本运营区域对账",
-  "/bos/ov/recon": "返回本方对账清单",
+  "/bos/ov/recon": "返回对账清单",
   "/bos/tv/recon": "返回本方对账",
   "/bos/ov/bill-detail": "返回账单明细",
 };

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

@@ -452,7 +452,7 @@ export function TeamReconPage() {
   return <PartyReconMergedPage kind="team" />;
 }
 
-/* ── V-P5 运营商「本方对账清单」(⚠️ 独立组件,⛔ 与 V-P1 合并靠 props 抹平,A51) ── */
+/* ── V-P5 运营商「对账清单」 ── */
 
 const PARTY_PAGE_SIZE = 20;
 
@@ -542,7 +542,7 @@ export function OperatorReconPage() {
 
   return <section className="ops-page reconcile-index page-fill page-fill-window">
     <header className="ops-heading statement-heading"><div>
-      <h1>本方对账清单</h1>
+      <h1>对账清单</h1>
       <PageIntro>按账期核对本方出账进度、分成金额和批次明细。</PageIntro>
     </div></header>
     {data && <div className="ops-list-shell team-recon-overview operator-recon-overview">

+ 2 - 2
web-scaffold/src/pages/__tests__/party-ledger-navigation.test.tsx

@@ -53,8 +53,8 @@ it("运营商从批次打开同月账单,重置后仍能返回原对账清单"
   fireEvent.click(screen.getByRole("button", { name: "重置筛选" }));
   await waitFor(() => expect(billGetList).toHaveBeenLastCalledWith(expect.objectContaining({ period: undefined, keyword: undefined, page: 0 })));
   expect(screen.queryByRole("button", { name: "重置筛选" })).toBeNull();
-  fireEvent.click(screen.getByRole("link", { name: "返回本方对账清单" }));
-  expect(await screen.findByRole("heading", { name: "本方对账清单" })).toBeTruthy();
+  fireEvent.click(screen.getByRole("link", { name: "返回对账清单" }));
+  expect(await screen.findByRole("heading", { name: "对账清单" })).toBeTruthy();
 });
 
 it.each([

+ 1 - 1
web-scaffold/tests/demo-navigation.test.mjs

@@ -67,7 +67,7 @@ function prototypeMenu(identity) {
     { title: "本方变更记录", section: "变更与范围" },
   ];
   if (identity.role === "operator") return [
-    { title: "本方对账清单", section: "本方对账" },
+    { title: "对账清单", section: "本方对账" },
     { title: "账单明细", section: "本方对账" },
     { title: "客户清单", section: "客户与合同" },
     { title: "合同清单", section: "客户与合同" },