来源仓库:jxc/ai-fresh-delivery 来源提交:f0b1a180e2deb7e4673b9d1c8542619f7bc0f73d 快照树: 09f679334ff38f0ff25e907961c94a8223bcaedd(与来源 HEAD 工作树逐字节一致,3801 个文件) 按约定本仓库不带任何历史提交:来源仓库的历史中含真实凭据 (生产 SSH 私钥 deploy/id_rsa_tencent、server/.env、.env.tencent/.env.production/.env.gitea、 deploy/小程序AppSecret.txt,其中 MP_APPSECRET / S3 AccessKey 经哈希比对与线上同值), 整包推送会把这些凭据永久带入本仓库,故只取「当前版本」的单提交快照。 供应商系统后续开发自本提交开始。
146 lines
8.4 KiB
Markdown
146 lines
8.4 KiB
Markdown
# Web 管理端模块对照表
|
||
|
||
权威来源:`src/config/menuCatalog.ts`。下表与当前代码同步。
|
||
|
||
## 独立一级菜单
|
||
|
||
| menuKey | 路由 | 默认名称 | 权限 / 角色 |
|
||
|---------|------|----------|-------------|
|
||
| `dashboard` | `/dashboard` | 数据看板 | `super_admin`, `admin` |
|
||
| `customer-order` | `/customer-order` | 订单录入 | `customer_order` 或 `order_entry` |
|
||
| `delivery` | `/delivery` | 配送管理 | `delivery_manage` |
|
||
| `after-sales` | `/after-sales` | 售后管理 | `aftersales_manage` |
|
||
| `exceptions` | `/exceptions` | 异常管理 | `exception_manage` |
|
||
|
||
> `inventory`(仓库管理)、`market-monitor`(市场价格监控)、`product-trace`(商品溯源)、`picking` 默认挂在分组内,见下表;导航配置仍可改为一级独立显示。
|
||
>
|
||
> `customer-portal`(`/customer-portal`)已在 `menuCatalog` 注册,权限为 `customer_portal` / `customer_order`,但当前默认导航布局未放置该入口;页面仍可直访或由管理员配置导航。
|
||
|
||
## 默认分组内的二级页面
|
||
|
||
### 订单管理(grp-orders)
|
||
|
||
| menuKey | 路由 | 默认名称 | 权限 |
|
||
|---------|------|----------|------|
|
||
| `orders-list` | `/orders` | 订单管理(含智能分配);**垃圾桶**在搜索按钮右侧 | `order_manage` / `order_entry`;改数据需 `order_edit` / `order_entry`;垃圾桶需 `order_delete` / `order_manage` |
|
||
|
||
### 基础数据(grp-master-data)
|
||
|
||
默认顺序(见 `20260806-master-data-menu-order.md`、`20260807-quality-reports-in-master-data.md`):
|
||
|
||
| menuKey | 路由 | 默认名称 | 权限 |
|
||
|---------|------|----------|------|
|
||
| `customers-list` | `/customers` | 客户列表 | `customer_manage` |
|
||
| `products-skus` | `/products/skus` | 商品管理 | `sku_manage` / `product_manage` |
|
||
| `products-categories` | `/products/categories` | 分类管理 | `category_manage` / `product_manage` |
|
||
| `customers-quote-versions` | `/customers/quote-versions` | 报价管理 | `customer_manage` |
|
||
| `suppliers-list` | `/suppliers` | 供应商列表 | `supplier_manage` |
|
||
| `orders-bids` | `/orders/bids` | 竞价管理 | `bid_manage` |
|
||
| `inventory` | `/inventory` | 仓库管理 | `inventory_manage` |
|
||
| `market-monitor` | `/market-monitor` | 市场价格监控 | `market_monitor` |
|
||
| `product-trace` | `/trace` | 商品溯源(公开页 `/t/:code`) | `product_trace`(默认仅管理员/超管) |
|
||
| `quality-reports` | `/purchase/quality-reports` | 检验报告 | `preparation_manage` |
|
||
| `products-units` | `/products/units` | 单位管理 | `sku_manage` / `product_manage` |
|
||
|
||
### 采购(grp-purchase)
|
||
|
||
| menuKey | 路由 | 默认名称 | 权限 |
|
||
|---------|------|----------|------|
|
||
| `purchase-list` | `/purchase` | 自采管理 | `purchase_manage`;采购员仅本人+待采自由池,管理员全量 |
|
||
| `purchase-preparations` | `/purchase/preparations` | 供应商备货表 | `preparation_manage` |
|
||
| `purchase-price-normalize` | `/purchase/price-normalize` | 单价归一清洗 | `purchase_manage` / `sku_manage` / `preparation_manage` |
|
||
|
||
> `purchase-price-normalize` 已注册且可直访,但当前默认导航布局未分配该入口;需要时由管理员在「导航菜单」中加入采购组。
|
||
>
|
||
> 采购员账号:在系统用户中维护业务角色,不再有独立「采购员管理」菜单页。
|
||
|
||
### 业务流程(grp-business)
|
||
|
||
| menuKey | 路由 | 默认名称 | 权限 |
|
||
|---------|------|----------|------|
|
||
| `inspection-list` | `/inspection` | 入库列表 | `inspection_manage` |
|
||
| `inspection-review` | `/inspection/review` | 验收照片复核 | `inspection_manage` |
|
||
| `inspection-processing` | `/inspection/processing` | 加工与验收 | `processing_manage` |
|
||
| `picking` | `/picking` | 分拣出库 | `picking_manage` |
|
||
|
||
### 财务(grp-finance)
|
||
|
||
| menuKey | 路由 | 默认名称 | 权限 |
|
||
|---------|------|----------|------|
|
||
| `finance-overview` | `/finance` | 财务概览 | `finance_manage` |
|
||
| `finance-costs` | `/finance/costs` | 订单采购成本 | `cost_manage` |
|
||
| `finance-customer-statements` | `/finance/customer-statements` | 客户结算(含销项开票) | `statement_manage` 或 `invoice_manage` |
|
||
| `finance-supplier-statements` | `/finance/supplier-statements` | 供应商结算(含进项发票) | `statement_manage` 或 `invoice_manage` |
|
||
|
||
> 旧路径 `/finance/invoices`(开票辅助)已删除独立页,访问时重定向到客户结算。开票动作分别在客户结算 / 供应商结算。
|
||
|
||
> **订单采购成本**(`/finance/costs`,原「成本管理」)为子集路由 Tab:总览 | `/sku` | `/records` | `/budget-alerts` | `/free` | `/fixed`(缺省总览;旧 `?tab=` 与 `/finance/fixed-costs` 等重定向到对应子路径;旧 `margin` 重定向 `/finance/margin`)。
|
||
> **财务概览**(`/finance`)含经营总览与商品毛利(`/finance/margin`)。
|
||
> 其它内容 Tab 子集路由:看板 `/dashboard/{ai|review|analysis}`、配送 `/delivery/{bindings|…}`、库存 `/inventory/{logs|alerts|holding|stock-in}`、行情 `/market-monitor/{index|trend|recommend}`、加工 `/inspection/processing/{inspect|done}`、分拣 `/picking/history`(旧 `/picking/ready` 重定向到 `/picking`)、竞价 `/orders/bids/history`。
|
||
> 能力缺口与数据口径见 [财务结算模块实现对照.md](./财务结算模块实现对照.md)。
|
||
|
||
### 系统(grp-system)
|
||
|
||
| menuKey | 路由 | 默认名称 | 权限 / 角色 |
|
||
|---------|------|----------|-------------|
|
||
| `system-config` | `/system/config` | 系统配置 | `system_manage`;`super_admin`, `admin` |
|
||
| `system-ai-models` | `/system/ai-models` | AI 模型 | `system_manage`;`super_admin` |
|
||
| `system-ai-prompts` | `/system/ai-prompts` | AI 提示词 | `system_manage`;`super_admin` |
|
||
| `system-weigh-ota` | `/system/weigh-ota` | 称端 OTA | `super_admin` |
|
||
| `system-branches` | `/system/branches` | 分公司管理 | `branch_manage`;`super_admin` |
|
||
| `system-users` | `/system/users` | 用户管理 | `user_manage` |
|
||
| `system-roles` | `/system/roles` | 角色权限 | `role_manage` |
|
||
| `system-logs` | `/system/logs` | 操作日志 | `log_view` |
|
||
| `system-notifications` | `/system/notifications` | 消息通知 | 登录即可 |
|
||
| `system-menu-layout` | `/system/menu-layout` | 导航菜单 | `super_admin`, `admin` |
|
||
| `system-print-templates` | `/system/print-templates` | 打印模板 | `super_admin`, `admin` |
|
||
|
||
> 配送员等业务账号在 **用户管理** 中按角色维护;旧路由 `/delivery-persons` 会重定向到用户管理筛选。
|
||
|
||
## 其他 Web 路由(不在 menuCatalog)
|
||
|
||
| 路由 | 页面 | 说明 |
|
||
|------|------|------|
|
||
| `/login` | 登录 | 统一登录入口 |
|
||
| `/change-password` | 修改密码 | 强制改密流程 |
|
||
| `/order-entry` | 订单录入(旧) | 兼容重定向到 `/customer-order` |
|
||
| `/purchaser/dashboard` | 采购员看板 | 独立全屏页 |
|
||
| `/mobile/*` | H5 移动端 | 配送员等;多数仓配角色以小程序为主 |
|
||
| `/supplier/login` 等 | — | 重定向至 `/login` |
|
||
|
||
## 页面源码位置
|
||
|
||
```
|
||
src/pages/
|
||
├── Dashboard.tsx
|
||
├── orders/ CustomerOrder, OrderManagement, BidManagement…
|
||
├── customers/ CustomerManagement, QuoteVersionManagement, CustomerAliasLibrary
|
||
├── products/ CategoryManagement, SkuManagement
|
||
├── suppliers/ SupplierManagement…
|
||
├── purchase/ PurchaseManagement, SupplierPreparation
|
||
├── inspection/ InspectionManagement, InspectionReview, ProcessingManagement
|
||
├── picking/ PickingManagement
|
||
├── delivery/ DeliveryManagement…
|
||
├── inventory/ InventoryManagement
|
||
├── finance/ FinanceOverview, UnifiedCostManagement…
|
||
├── aftersales/ AfterSalesManagement
|
||
├── exceptions/ ExceptionManagement
|
||
├── ai/ MarketMonitor
|
||
├── system/ SystemConfig, MenuLayoutConfig, PrintTemplateManagement, UserManagement…
|
||
├── auth/ Login, ChangePassword
|
||
└── mobile/ MobileApp(H5)
|
||
```
|
||
|
||
## 导航自定义
|
||
|
||
在 **导航菜单配置**(`/system/menu-layout`)中可:
|
||
|
||
- 将任意模块设为「单独显示」或放入自定义组
|
||
- 修改显示名称(全站 `<MenuLabel>` 同步)
|
||
- 拖拽调整顺序
|
||
- 组默认折叠
|
||
|
||
分组内二级项当前只显示文字与圆点,不渲染 `menuCatalog.icon`;多数二级项的 `ChevronRight` 仅为目录元数据,不代表侧栏缺少图标。
|
||
|
||
配置存储:`nav_menu_layout_config` 表,按 `branch_code`(或平台 `__PLATFORM__`)区分。
|