This commit is contained in:
zlwu committed 2026-06-07 00:40:01 +08:00
1 parent f9676f8759
commit 725774ef0c
155 files changed
+50675 -5242

No files matched your search

+155 -5
View File
@@ -1,8 +1,8 @@
import type { AppRouteRecord } from '@/types/router'
/**
* 前端路由(4 个一级菜单:控制台、CRM 管理、工作流管理、系统管理)
* 与后端菜单对齐时请同步 `backend/app/api/menu.py`。
* 前端路由(控制台、报销管理、CRM 管理、工作流管理、系统管理)
* 与后端菜单对齐时请同步 `backend/app/api/menu.py` 与 `sys_menu`(bx 见 docs/sql/20260606_bx_menu.sql)。
*/
export const sqxpAdminRoutes: AppRouteRecord[] = [
// ──────────────────────────────────────────────
@@ -22,7 +22,157 @@ export const sqxpAdminRoutes: AppRouteRecord[] = [
},
// ──────────────────────────────────────────────
// 2. CRM 管理
// 2. 报销管理(bx)
// ──────────────────────────────────────────────
{
id: 'BX00000000000000000000000000001',
name: 'BxManagement',
path: '/bx',
component: '/index/index',
meta: {
title: '报销管理',
icon: 'ri:wallet-3-line',
keepAlive: false,
roles: ['admin']
},
children: [
{
id: 'BX00000000000000000000000000003',
name: 'BxExpenseItem',
path: 'config/expense-item',
component: '/bx/expense-item/index',
meta: {
title: '费用项目管理',
keepAlive: true,
menuCode: 'bx:expenseItem:list'
}
},
{
id: 'BX00000000000000000000000000004',
name: 'BxWorkflowAdvance',
path: 'config/workflow-advance',
component: '/bx/workflow/advance/index',
meta: {
title: '工作流配置(备用金)',
keepAlive: true,
menuCode: 'bx:workflowAdvance:list'
}
},
{
id: 'BX00000000000000000000000000005',
name: 'BxWorkflowReimburse',
path: 'config/workflow-reimburse',
component: '/bx/workflow/reimburse/index',
meta: {
title: '工作流配置(报销单)',
keepAlive: true,
menuCode: 'bx:workflowReimburse:list'
}
},
{
id: 'BX00000000000000000000000000007',
name: 'BxAdvanceApply',
path: 'advance/apply',
component: '/bx/advance/apply/index',
meta: {
title: '备用金申请',
keepAlive: true,
menuCode: 'bx:advanceApply:list'
}
},
{
id: 'BX00000000000000000000000000008',
name: 'BxAdvanceApprove',
path: 'advance/approve',
component: '/bx/advance/approve/index',
meta: {
title: '备用金审批',
keepAlive: true,
menuCode: 'bx:advanceApprove:list'
}
},
{
id: 'BX00000000000000000000000000009',
name: 'BxAdvanceIssue',
path: 'advance/issue',
component: '/bx/advance/issue/index',
meta: {
title: '备用金发放管理',
keepAlive: true,
menuCode: 'bx:advanceIssue:list'
}
},
{
id: 'BX00000000000000000000000000011',
name: 'BxReimburseApply',
path: 'reimburse/apply',
component: '/bx/reimburse/apply/index',
meta: {
title: '报销申请',
keepAlive: true,
menuCode: 'bx:reimburseApply:list'
}
},
{
id: 'BX00000000000000000000000000012',
name: 'BxReimburseApprove',
path: 'reimburse/approve',
component: '/bx/reimburse/approve/index',
meta: {
title: '报销审批',
keepAlive: true,
menuCode: 'bx:reimburseApprove:list'
}
},
{
id: 'BX00000000000000000000000000013',
name: 'BxPayment',
path: 'reimburse/payment',
component: '/bx/payment/index',
meta: {
title: '支付管理(发放/冲抵)',
keepAlive: true,
menuCode: 'bx:payment:list'
}
},
{
id: 'BX00000000000000000000000000015',
name: 'BxViewMine',
path: 'view/mine',
component: '/bx/view/mine/index',
meta: {
title: '我的申请单',
keepAlive: true,
menuCode: 'bx:viewMine:list'
}
},
{
id: 'BX00000000000000000000000000016',
name: 'BxViewTodo',
path: 'view/todo',
component: '/bx/view/todo/index',
meta: {
title: '待我审批',
keepAlive: true,
menuCode: 'bx:viewTodo:list'
}
},
{
id: 'BX00000000000000000000000000017',
name: 'BxViewAll',
path: 'view/all',
component: '/bx/view/all/index',
meta: {
title: '全部申请单(总经理)',
keepAlive: true,
menuCode: 'bx:viewAll:list'
}
}
]
},
// ──────────────────────────────────────────────
// 3. CRM 管理
// ──────────────────────────────────────────────
{
id: 'CRM00000000000000000000000000001',
@@ -276,7 +426,7 @@ export const sqxpAdminRoutes: AppRouteRecord[] = [
},
// ──────────────────────────────────────────────
// 3. 工作流管理
// 4. 工作流管理
// ──────────────────────────────────────────────
{
id: 'WKF00000000000000000000000000001',
@@ -350,7 +500,7 @@ export const sqxpAdminRoutes: AppRouteRecord[] = [
},
// ──────────────────────────────────────────────
// 4. 系统管理
// 5. 系统管理
// ──────────────────────────────────────────────
{
id: 'SYSM000000000000000000000000000001',