Files
admin-web/src/modules/customers/routes.ts
T
2026-09-30 14:01:58 +08:00

29 lines
1.4 KiB
TypeScript

import type { RouteRecordRaw } from 'vue-router'
export const customerRoutes = [
{
path: 'customers',
name: 'customers',
component: () => import('@/modules/customers/pages/CustomersView.vue'),
meta: { title: '客户管理', showPageHeading: false, description: '维护客户企业资料、合作状态和注册审核', permission: 'platform:customer:list', permissionAnyOf: ['platform:customer:review'] },
},
{
path: 'customers/overseas-storage-fees',
name: 'overseas-storage-fees',
component: () => import('@/modules/customers/pages/OverseasStorageFeesView.vue'),
meta: { title: '海外仓阶梯费用', showPageHeading: false, description: '维护客户仓租和退货仓储费阶梯', permission: 'platform:overseas-storage-fee:list' },
},
{
path: 'customers/:tenantId',
name: 'customer-detail',
component: () => import('@/modules/customers/pages/CustomerDetailView.vue'),
meta: { title: '客户详情', description: '查看企业资料、关联用户和业务记录', permission: 'platform:customer:list', showPageHeading: false },
},
{
path: 'customers/reviews',
name: 'enterprise-reviews',
redirect: '/customers',
meta: { title: '客户管理', description: '企业审核已合并到客户列表', permission: 'platform:customer:list', permissionAnyOf: ['platform:customer:review'] },
},
] satisfies RouteRecordRaw[]