|
@@ -0,0 +1,46 @@
|
|
|
|
|
+# 前端文件与路由核查
|
|
|
|
|
+
|
|
|
|
|
+核查日期为 2026-12-02,路径均相对于 `klt-bos-web/`。从 `src/main.tsx` 追踪模块导入、再导出、动态导入和 CSS 引用,并检查测试、脚本及公开资源引用。路由对照 `src/app/App.tsx` 的 69 个路由模式(另有兜底页)、角色菜单和页面跳转。静态检查无法判断用户书签及外部系统是否访问了公开地址。
|
|
|
|
|
+
|
|
|
|
|
+## 页面中仍能点到的旧地址
|
|
|
|
|
+
|
|
|
|
|
+| 页面入口 | 当前链接 | 实际表现 | 对应页面 |
|
|
|
|
|
+| --- | --- | --- | --- |
|
|
|
|
|
+| 团队主账号 → 分派方式 → 待分派工单 | `/workspace/queue` | 工作台菜单已移除该路径,路由会转到角色首页。团队主账号首页恰好是待分派,旧链接看起来仍能使用。 | `/work-orders/queue` |
|
|
|
|
|
+
|
|
|
|
|
+链接位于 `src/pages/TeamWorkspacePages.tsx`。返回导航映射 `src/lib/detail-navigation.ts` 及对应测试也保留了旧地址。`src/pages/TeamQueuePage.tsx` 中的 `QueueBoard` 仍供正式待分派页面使用。
|
|
|
|
|
+
|
|
|
|
|
+## 文档或历史版本中的旧地址
|
|
|
|
|
+
|
|
|
|
|
+| 旧地址 | 当前情况 |
|
|
|
|
|
+| --- | --- |
|
|
|
|
|
+| `/workspace/partner-reconciliation` | 交付文档中的合伙人对账入口。已拆为 `/bos/pv/recon`(对账清单)和 `/bos/pv/bill-detail`(账单明细)。 |
|
|
|
|
|
+| `/workspace/team-reconciliation` | 交付文档中的团队对账入口。已拆为 `/bos/tv/recon` 和 `/bos/tv/bill-detail`。 |
|
|
|
|
|
+| `/share-rules/:id` | 独立详情页已移除。现从 `/share-rules` 列表打开分成金额对话框。 |
|
|
|
|
|
+| `/settlement-scopes`、`/maintenance-notes`、`/operator-feedback` | 前端 README 仍把这三项列作管理入口;当前没有对应路由,已登录时直接访问会显示「未找到」。 |
|
|
|
|
|
+
|
|
|
|
|
+`/m` 是移动端路径前缀,未注册独立首页。登录入口为 `/m/login`,待办入口为 `/m/work-orders/mine`。另有几个旧地址仍受支持,包括 `/regional-reconciliation`、`/settings`、`/customers/:no/edit` 和 `/contracts/:no/edit`。
|
|
|
|
|
+
|
|
|
|
|
+## 未发现项目内使用的 15 个文件
|
|
|
|
|
+
|
|
|
|
|
+| 文件 | 核查结果 |
|
|
|
|
|
+| --- | --- |
|
|
|
|
|
+| `src/components/ContractCustomerFields.tsx` | 旧合同客户录入组件,现行表单未引入。 |
|
|
|
|
|
+| `src/styles/contract-customer-onboarding.css` | 仅由上面的旧组件引入。 |
|
|
|
|
|
+| `src/lib/contract-customer-onboarding.ts` | 旧的合同与客户联合建档逻辑。 |
|
|
|
|
|
+| `src/components/OverviewChart.tsx` | 图表组件,没有找到调用方。 |
|
|
|
|
|
+| `src/styles/identity-switch.css` | 旧身份切换界面样式,没有找到样式入口。 |
|
|
|
|
|
+| `src/lib/contract-billing-demo.ts` | 合同账期演示数据。 |
|
|
|
|
|
+| `src/lib/order-store.ts` | 仅由上述合同账期演示模块引入。 |
|
|
|
|
|
+| `src/lib/scheduled-job-demo.ts` | 定时任务演示数据。 |
|
|
|
|
|
+| `src/lib/work-order-closure.ts` | 基于本地存储的工单关闭模式。 |
|
|
|
|
|
+| `src/access/index.ts`、`src/domain/index.ts`、`src/lib/api/index.ts` | 三个统一导出文件均未被业务、测试或脚本引入。其导出的子模块需要分别判断。 |
|
|
|
|
|
+| `src/lib/api/query-keys.ts`、`src/lib/api/routes.ts` | 从上面的 API 统一入口导出,未进入运行链路。后者是旧 HTTP 接口路径表。 |
|
|
|
|
|
+| `public/images/login-captcha.svg` | 旧验证码样图。登录页通过接口取图,前端 README 仍提到此文件。公开 URL 可能有外部引用。 |
|
|
|
|
|
+
|
|
|
|
|
+## 有其他用途的文件
|
|
|
|
|
+
|
|
|
|
|
+- `src/lib/customer-service-stop.ts`、`src/lib/settlement-retries.ts` 均有对应的 Node 测试引用。
|
|
|
|
|
+- `src/env.d.ts` 由 TypeScript 加载。`public/images/operations-login-diorama-*.webp` 由登录页动态拼接文件名加载。
|
|
|
|
|
+- `prototype-v3/work-order-detail.html` 与 `public/prototype-v3/work-order-detail.html` 内容相同。后一份会随构建发布,可通过 `/prototype-v3/work-order-detail.html` 单独访问。
|
|
|
|
|
+- `prototype/`、`prototype-v2/` 提供独立原型,其中 `prototype/data.js` 还被 `scripts/sync-prototype-work-orders.cjs` 读取。`assets/source-images/` 保存设计原图,`artifacts/` 保存截图和样例。
|