┌─────────────────────────────────────────────────────────────────────────────┐
│                           AI生鲜系统 - 导航结构图                              │
└─────────────────────────────────────────────────────────────────────────────┘


【公开路由 - 无需登录】

    ┌─────────────┐
    │   /login    │  ← 主登录页
    └─────────────┘

    ┌─────────────────┐
    │ /supplier/login │  ← 供应商登录
    └─────────────────┘

    ┌──────────────────┐
    │ /purchaser/login │  ← 采购员登录
    └──────────────────┘

    ┌───────────────────┐
    │ /delivery/login   │  ← 配送员登录
    └───────────────────┘


【受保护路由 - 需登录后访问】

         登录成功
            │
            ▼
    ┌───────────────┐
    │     Layout    │  ← 主布局（侧边栏+内容区）
    │   (根路由 /)  │
    └───────────────┘
            │
            ├──→ ┌─────────────────┐
            │    │   /dashboard    │  ← 数据看板
            │    └─────────────────┘
            │
            ├──→ ┌─────────────────┐
            │    │   /order-entry  │  ← S01 录单员代录
            │    └─────────────────┘
            │
            ├──→ ┌─────────────────┐
            │    │  /customer-order│  ← S02 客户自助下单
            │    └─────────────────┘
            │
            ├──→ ┌─────────────────┐      ┌─────────────────────┐
            │    │    /orders      │ ───→ │      /orders        │  ← 订单列表
            │    │   (父级菜单)    │      └─────────────────────┘
            │    └─────────────────┘      ┌─────────────────────┐
            │                             │  /orders/allocation │  ← 智能分配
            │                             └─────────────────────┘
            │                             ┌─────────────────────┐
            │                             │   /orders/bids      │  ← 竞价管理
            │                             └─────────────────────┘
            │
            ├──→ ┌─────────────────┐      ┌─────────────────────────┐
            │    │   /customers    │ ───→ │       /customers        │  ← 客户列表
            │    │   (父级菜单)    │      └─────────────────────────┘
            │    └─────────────────┘      ┌─────────────────────────┐
            │                             │ /customers/alias-library│  ← 映射库管理
            │                             └─────────────────────────┘
            │
            ├──→ ┌─────────────────┐      ┌─────────────────────────┐
            │    │    /products    │ ───→ │   /products/categories  │  ← 分类管理
            │    │   (父级菜单)    │      └─────────────────────────┘
            │    └─────────────────┘      ┌─────────────────────────┐
            │                             │     /products/skus      │  ← 商品管理
            │                             └─────────────────────────┘
            │                             ┌─────────────────────────┐
            │                             │   /products/aliases     │  ← 映射库
            │                             └─────────────────────────┘
            │
            ├──→ ┌─────────────────┐
            │    │    /suppliers   │  ← 供应商管理
            │    └─────────────────┘
            │
            ├──→ ┌─────────────────┐
            │    │    /inventory   │  ← 库存管理
            │    └─────────────────┘
            │
            ├──→ ┌─────────────────┐      ┌─────────────────────────┐
            │    │    /purchase    │ ───→ │       /purchase         │  ← 自采列表
            │    │   (父级菜单)    │      └─────────────────────────┘
            │    └─────────────────┘      ┌─────────────────────────┐
            │                             │ /purchase/preparations  │  ← 供应商备货表
            │                             └─────────────────────────┘
            │
            ├──→ ┌─────────────────┐      ┌─────────────────────────┐
            │    │   /inspection   │ ───→ │      /inspection        │  ← 验收列表
            │    │   (父级菜单)    │      └─────────────────────────┘
            │    └─────────────────┘      ┌─────────────────────────┐
            │                             │ /inspection/processing  │  ← 加工管理
            │                             └─────────────────────────┘
            │
            ├──→ ┌─────────────────┐
            │    │    /delivery    │  ← 配送管理
            │    └─────────────────┘
            │
            ├──→ ┌─────────────────────┐
            │    │   /delivery-persons │  ← 配送员管理
            │    └─────────────────────┘
            │
            ├──→ ┌─────────────────┐      ┌─────────────────────────┐
            │    │    /finance     │ ───→ │       /finance          │  ← 财务概览
            │    │   (父级菜单)    │      └─────────────────────────┘
            │    └─────────────────┘      ┌─────────────────────────┐
            │                             │    /finance/costs       │  ← 成本管理
            │                             └─────────────────────────┘
            │                             ┌─────────────────────────┐
            │                             │   /finance/fixed-costs  │  ← 固定成本
            │                             └─────────────────────────┘
            │                             ┌─────────────────────────┐
            │                             │/finance/cost-adjustments│  ← 成本调整
            │                             └─────────────────────────┘
            │                             ┌─────────────────────────┐
            │                             │/finance/customer-statements│  ← 客户结算
            │                             └─────────────────────────┘
            │                             ┌─────────────────────────┐
            │                             │/finance/supplier-statements│  ← 供应商结算
            │                             └─────────────────────────┘
            │                             ┌─────────────────────────┐
            │                             │   /finance/invoices     │  ← 发票管理
            │                             └─────────────────────────┘
            │
            ├──→ ┌─────────────────┐
            │    │   /after-sales  │  ← 售后管理
            │    └─────────────────┘
            │
            ├──→ ┌─────────────────┐
            │    │   /exceptions   │  ← 异常管理
            │    └─────────────────┘
            │
            ├──→ ┌─────────────────┐
            │    │   /warehouses   │  ← 仓库管理
            │    └─────────────────┘
            │
            ├──→ ┌─────────────────┐
            │    │ /market-monitor │  ← 市场监控
            │    └─────────────────┘
            │
            └──→ ┌─────────────────┐      ┌─────────────────────────┐
                 │    /system      │ ───→ │    /system/config       │  ← 系统配置
                 │   (父级菜单)    │      └─────────────────────────┘
                 └─────────────────┘      ┌─────────────────────────┐
                                          │    /system/users        │  ← 用户管理
                                          └─────────────────────────┘
                                          ┌─────────────────────────┐
                                          │    /system/roles        │  ← 角色权限
                                          └─────────────────────────┘
                                          ┌─────────────────────────┐
                                          │    /system/logs         │  ← 操作日志
                                          └─────────────────────────┘
                                          ┌─────────────────────────┐
                                          │ /system/notifications   │  ← 消息通知
                                          └─────────────────────────┘


【图例说明】

    ┌─────────────┐
    │   路由路径   │  ← 单级菜单（直接访问）
    └─────────────┘

    ┌─────────────┐
    │   (父级菜单) │  ← 可展开的多级菜单
    └─────────────┘

    ───→          ← 子菜单关系


【权限说明】

每个路由都有对应的权限控制：
• dashboard: 所有登录用户
• order-entry: order_entry
• customer-order: customer_order
• orders/*: order_manage, allocation_manage, bid_manage
• customers/*: customer_manage
• products/*: category_manage, sku_manage, alias_manage
• suppliers: supplier_manage
• inventory: inventory_manage
• purchase/*: purchase_manage, preparation_manage
• inspection/*: inspection_manage, processing_manage
• delivery: delivery_manage
• delivery-persons: delivery_person_manage (仅超管/管理员)
• finance/*: finance_manage, cost_manage, statement_manage, invoice_manage
• after-sales: aftersales_manage
• exceptions: exception_manage
• warehouses: warehouse_manage
• market-monitor: market_monitor
• system/*: system_manage, user_manage, role_manage, log_view (仅超管/管理员)
