| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133 |
- import type { UserRole } from '@/types/page';
- export interface MenuItem {
- key: string;
- path: string;
- roles: UserRole[];
- title: string;
- }
- export interface MenuGroup {
- key: string;
- title: string;
- items: MenuItem[];
- }
- export const menuGroups: MenuGroup[] = [
- {
- key: 'reports',
- title: '数据与报表',
- items: [
- { key: 'report-dashboard', title: '运营看板', path: '/report/dashboard', roles: ['admin', 'manager', 'operator', 'procurement'] },
- { key: 'report-center', title: '报表中心', path: '/report/center', roles: ['admin', 'manager', 'operator', 'procurement'] }
- ]
- },
- {
- key: 'product',
- title: '商品中心',
- items: [
- { key: 'product-list', title: '商品列表', path: '/product/list', roles: ['admin', 'manager', 'operator'] },
- { key: 'product-mapping', title: '渠道映射', path: '/product/mapping', roles: ['admin', 'manager', 'operator'] },
- { key: 'product-pricing', title: '定价与库存规则', path: '/product/pricing', roles: ['admin', 'manager', 'operator'] }
- ]
- },
- {
- key: 'orders',
- title: '订单中心',
- items: [
- { key: 'order-list', title: '订单列表', path: '/order/list', roles: ['admin', 'manager', 'operator', 'customer_service', 'warehouse'] },
- { key: 'order-after-sale', title: '售后处理', path: '/order/after-sale', roles: ['admin', 'manager', 'operator', 'customer_service'] }
- ]
- },
- {
- key: 'supplier',
- title: '供应商中心',
- items: [
- { key: 'supplier-list', title: '供应商管理', path: '/supplier/list', roles: ['admin', 'manager', 'procurement'] },
- { key: 'purchase-orders', title: '采购单管理', path: '/supplier/purchase-orders', roles: ['admin', 'manager', 'procurement'] },
- { key: 'supply-capability', title: '供货能力配置', path: '/supplier/capability', roles: ['admin', 'manager', 'procurement'] },
- { key: 'supplier-performance', title: '供应商绩效', path: '/supplier/performance', roles: ['admin', 'manager', 'procurement'] }
- ]
- },
- {
- key: 'channel',
- title: '渠道中心',
- items: [{ key: 'channel-config', title: '渠道接入配置', path: '/channel/config', roles: ['admin', 'manager', 'operator'] }]
- },
- {
- key: 'inventory',
- title: '库存与履约',
- items: [
- { key: 'inventory-overview', title: '库存总览', path: '/inventory/overview', roles: ['admin', 'manager', 'operator', 'procurement', 'warehouse'] },
- { key: 'inventory-logs', title: '库存变动记录', path: '/inventory/logs', roles: ['admin', 'manager', 'operator', 'warehouse'] },
- { key: 'warehouse-manage', title: '仓库管理', path: '/warehouse/manage', roles: ['admin', 'manager'] },
- { key: 'shipping-work', title: '发货作业', path: '/inventory/shipping', roles: ['admin', 'manager', 'warehouse'] }
- ]
- },
- {
- key: 'logistics',
- title: '物流中心',
- items: [
- { key: 'logistics-providers', title: '物流商配置', path: '/logistics/providers', roles: ['admin', 'manager', 'operator'] },
- { key: 'shipping-templates', title: '运费模板', path: '/logistics/templates', roles: ['admin', 'manager', 'operator'] }
- ]
- },
- {
- key: 'finance',
- title: '财务中心',
- items: [
- { key: 'finance-payments', title: '收款管理', path: '/finance/payments', roles: ['admin', 'manager', 'finance'] },
- { key: 'finance-refund', title: '退款管理', path: '/finance/refund', roles: ['admin', 'manager', 'finance'] },
- { key: 'supplier-settlement', title: '供应商结算', path: '/finance/settlement', roles: ['admin', 'manager', 'finance'] },
- { key: 'finance-invoice', title: '发票管理', path: '/finance/invoice', roles: ['admin', 'manager', 'finance'] }
- ]
- },
- {
- key: 'procurement',
- title: '采购中心',
- items: [
- { key: 'replenishment-plan', title: '备货计划', path: '/procurement/replenishment', roles: ['admin', 'manager', 'procurement'] },
- { key: 'purchase-request', title: '采购需求申请', path: '/procurement/purchase-request', roles: ['admin', 'manager', 'procurement'] },
- { key: 'procurement-iqc', title: '来料质检', path: '/procurement/iqc', roles: ['admin', 'manager', 'procurement', 'warehouse'] }
- ]
- },
- {
- key: 'crm',
- title: '客服中心',
- items: [
- { key: 'crm-tickets', title: '工单管理', path: '/crm/tickets', roles: ['admin', 'manager', 'customer_service'] },
- { key: 'crm-satisfaction', title: '满意度评价', path: '/crm/satisfaction', roles: ['admin', 'manager', 'customer_service'] }
- ]
- },
- {
- key: 'marketing',
- title: '营销中心',
- items: [
- { key: 'marketing-promotion', title: '促销活动', path: '/marketing/promotion', roles: ['admin', 'manager', 'operator'] },
- { key: 'marketing-coupon', title: '优惠券管理', path: '/marketing/coupon', roles: ['admin', 'manager', 'operator'] },
- { key: 'marketing-price-watch', title: '价格预警', path: '/marketing/price-watch', roles: ['admin', 'manager', 'operator'] }
- ]
- },
- {
- key: 'system',
- title: '系统与权限',
- items: [
- { key: 'role-permission', title: '角色权限', path: '/system/roles', roles: ['admin'] },
- { key: 'operation-log', title: '操作日志', path: '/system/logs', roles: ['admin', 'manager'] },
- { key: 'api-key', title: 'API Key 管理', path: '/system/api-keys', roles: ['admin'] },
- { key: 'system-notification', title: '消息中心', path: '/system/notification', roles: ['admin', 'manager'] },
- { key: 'message-template', title: '消息模板', path: '/system/message-template', roles: ['admin', 'manager'] },
- { key: 'approval-flow', title: '审批流程', path: '/system/approval-flow', roles: ['admin'] },
- { key: 'system-employee', title: '员工管理', path: '/system/employee', roles: ['admin'] },
- { key: 'system-department', title: '部门管理', path: '/system/department', roles: ['admin'] }
- ]
- },
- {
- key: 'report',
- title: '数据中心',
- items: [
- { key: 'inventory-turnover', title: '库存周转分析', path: '/report/inventory-turnover', roles: ['admin', 'manager', 'procurement'] },
- { key: 'return-package', title: '退件管理', path: '/warehouse/return-package', roles: ['admin', 'manager', 'warehouse'] }
- ]
- }
- ];
|