提交
This commit is contained in:
1 parent
59fafb92d5
commit
6abfb6e251
1512 files changed
+1565614
-275592
No files matched your search
@@ -1,12 +1,12 @@
|
||||
import type { AppRouteRecord } from '@/types/router'
|
||||
|
||||
/**
|
||||
* 前端路由(报销管理、CRM 管理、地磅管理、工作流管理、系统管理;运输见 pl.ts)
|
||||
* 与后端菜单对齐时请同步 `sys_menu`(bx / db 见历史迁移;系统管理二级分组见 docs/sql/migrations/2026-08-09-system-menu-groups.sql)。
|
||||
* 前端路由(CRM、地磅、报销、值班、系统、工作流;运输见 pl.ts)
|
||||
* 一级模块展示顺序以 `PORTAL_TOP_MODULE_ORDER` 为准,不依赖本文件声明顺序。
|
||||
*/
|
||||
export const sqxpAdminRoutes: AppRouteRecord[] = [
|
||||
// ──────────────────────────────────────────────
|
||||
// 门户菜单启动器首页(一级叶子路由,由 Layout 包裹;不在业务菜单树中展示)
|
||||
// 门户菜单启动器首页(侧栏最顶部可点叶子,跳转 /#/home)
|
||||
// ──────────────────────────────────────────────
|
||||
{
|
||||
id: 'HOME00000000000000000000000000002',
|
||||
@@ -15,10 +15,9 @@ export const sqxpAdminRoutes: AppRouteRecord[] = [
|
||||
component: '/portal/home/index',
|
||||
meta: {
|
||||
title: '首页',
|
||||
icon: 'ri:home-line',
|
||||
keepAlive: true,
|
||||
fixedTab: true,
|
||||
isHide: true,
|
||||
roles: ['admin', 'super_admin']
|
||||
fixedTab: true
|
||||
}
|
||||
},
|
||||
|
||||
@@ -264,194 +263,228 @@ export const sqxpAdminRoutes: AppRouteRecord[] = [
|
||||
path: '/crm',
|
||||
component: '/index/index',
|
||||
meta: {
|
||||
title: 'CRM 管理',
|
||||
title: 'CRM管理',
|
||||
icon: 'goods',
|
||||
keepAlive: false,
|
||||
roles: ['admin']
|
||||
},
|
||||
children: [
|
||||
{
|
||||
id: 'CRM00000000000000000000000000002',
|
||||
name: 'CrmProductCategory',
|
||||
path: 'product-category',
|
||||
component: '/crm/product-category/index',
|
||||
meta: {
|
||||
title: '产品分类',
|
||||
keepAlive: false,
|
||||
isHide: true,
|
||||
menuCode: 'crm:productCategory:list'
|
||||
}
|
||||
id: 'CRM00000000000000000000000000010',
|
||||
name: 'CrmProductGroup',
|
||||
path: 'product-group',
|
||||
component: '/index/route-parent',
|
||||
meta: { title: '产品管理', keepAlive: false },
|
||||
children: [
|
||||
{
|
||||
id: 'CRM00000000000000000000000000003',
|
||||
name: 'CrmProduct',
|
||||
path: '/crm/product',
|
||||
component: '/crm/product/index',
|
||||
meta: { title: '产品管理', keepAlive: false, menuCode: 'crm:product:list' }
|
||||
},
|
||||
{
|
||||
id: 'CRM00000000000000000000000000002',
|
||||
name: 'CrmProductCategory',
|
||||
path: '/crm/product-category',
|
||||
component: '/crm/product-category/index',
|
||||
meta: {
|
||||
title: '产品分类',
|
||||
keepAlive: false,
|
||||
isHide: true,
|
||||
menuCode: 'crm:productCategory:list'
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
id: 'CRM00000000000000000000000000003',
|
||||
name: 'CrmProduct',
|
||||
path: 'product',
|
||||
component: '/crm/product/index',
|
||||
meta: { title: '产品管理', keepAlive: false, menuCode: 'crm:product:list' }
|
||||
id: 'CRM00000000000000000000000000020',
|
||||
name: 'CrmQuoteGroup',
|
||||
path: 'quote-group',
|
||||
component: '/index/route-parent',
|
||||
meta: { title: '报价单管理', keepAlive: false },
|
||||
children: [
|
||||
{
|
||||
id: 'CRM3000000000000000000000000010',
|
||||
name: 'CrmQuote',
|
||||
path: '/crm/quote',
|
||||
component: '/crm/quote/index',
|
||||
meta: { title: '报价单管理', keepAlive: false, menuCode: 'crm:quote:list' }
|
||||
},
|
||||
{
|
||||
id: 'CRM3000000000000000000000000016',
|
||||
name: 'CrmQuoteApproval',
|
||||
path: '/crm/quote-approval',
|
||||
component: '/crm/quote/approval/index',
|
||||
meta: { title: '报价单审批', keepAlive: false, menuCode: 'crm:quote:approve' }
|
||||
},
|
||||
{
|
||||
id: 'CRM3000000000000000000000000015',
|
||||
name: 'CrmQuoteApproverSetting',
|
||||
path: '/crm/quote-approver-setting',
|
||||
component: '/crm/quote/approver-setting/index',
|
||||
meta: {
|
||||
title: '报价单审批人设置',
|
||||
keepAlive: false,
|
||||
isHide: true,
|
||||
menuCode: 'crm:quote:approverSetting'
|
||||
}
|
||||
},
|
||||
{
|
||||
id: 'CRM3000000000000000000000000011',
|
||||
name: 'CrmQuoteForm',
|
||||
path: '/crm/quote/form',
|
||||
component: '/crm/quote/form',
|
||||
meta: {
|
||||
title: '报价单表单',
|
||||
keepAlive: false,
|
||||
isHide: true,
|
||||
menuCode: 'crm:quote:add'
|
||||
}
|
||||
},
|
||||
{
|
||||
id: 'CRM3000000000000000000000000012',
|
||||
name: 'CrmQuoteDetail',
|
||||
path: '/crm/quote/detail',
|
||||
component: '/crm/quote/detail',
|
||||
meta: {
|
||||
title: '报价单详情',
|
||||
keepAlive: false,
|
||||
isHide: true,
|
||||
menuCode: 'crm:quote:query'
|
||||
}
|
||||
},
|
||||
{
|
||||
id: 'CRM3000000000000000000000000013',
|
||||
name: 'CrmQuoteStatistics',
|
||||
path: '/crm/quote/statistics',
|
||||
component: '/crm/quote/statistics',
|
||||
meta: {
|
||||
title: '报价单统计',
|
||||
keepAlive: false,
|
||||
isHide: true,
|
||||
menuCode: 'crm:quote:list'
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
id: 'CRM3000000000000000000000000010',
|
||||
name: 'CrmQuote',
|
||||
path: 'quote',
|
||||
component: '/crm/quote/index',
|
||||
meta: { title: '报价单管理', keepAlive: false, menuCode: 'crm:quote:list' }
|
||||
id: 'CRM00000000000000000000000000030',
|
||||
name: 'CrmContractGroup',
|
||||
path: 'contract-group',
|
||||
component: '/index/route-parent',
|
||||
meta: { title: '合同管理', keepAlive: false },
|
||||
children: [
|
||||
{
|
||||
id: 'CRM3000000000000000000000000020',
|
||||
name: 'CrmContract',
|
||||
path: '/crm/contract',
|
||||
component: '/crm/contract/index',
|
||||
meta: { title: '合同管理', keepAlive: false, menuCode: 'crm:contract:list' }
|
||||
},
|
||||
{
|
||||
id: 'CRM3000000000000000000000000021',
|
||||
name: 'CrmContractApproval',
|
||||
path: '/crm/contract-approval',
|
||||
component: '/crm/contract/approval/index',
|
||||
meta: { title: '合同审批', keepAlive: false, menuCode: 'crm:contract:approve' }
|
||||
},
|
||||
{
|
||||
id: 'CRM3000000000000000000000000030',
|
||||
name: 'CrmPriceLetter',
|
||||
path: '/crm/price-letter',
|
||||
component: '/crm/price-letter/index',
|
||||
meta: { title: '调价函管理', keepAlive: false, menuCode: 'crm:priceLetter:list' }
|
||||
},
|
||||
{
|
||||
id: 'CRM3000000000000000000000000026',
|
||||
name: 'CrmContractApproverSetting',
|
||||
path: '/crm/contract-approver-setting',
|
||||
component: '/crm/contract/approver-setting/index',
|
||||
meta: {
|
||||
title: '合同审批人设置',
|
||||
keepAlive: false,
|
||||
isHide: true,
|
||||
menuCode: 'crm:contract:approverSetting'
|
||||
}
|
||||
},
|
||||
{
|
||||
id: 'CRM3000000000000000000000000027',
|
||||
name: 'CrmContractForm',
|
||||
path: '/crm/contract/form',
|
||||
component: '/crm/contract/form',
|
||||
meta: {
|
||||
title: '合同表单',
|
||||
keepAlive: false,
|
||||
isHide: true,
|
||||
menuCode: 'crm:contract:add'
|
||||
}
|
||||
},
|
||||
{
|
||||
id: 'CRM3000000000000000000000000022',
|
||||
name: 'CrmContractDetail',
|
||||
path: '/crm/contract/detail',
|
||||
component: '/crm/contract/detail',
|
||||
meta: {
|
||||
title: '合同详情',
|
||||
keepAlive: false,
|
||||
isHide: true,
|
||||
menuCode: 'crm:contract:query'
|
||||
}
|
||||
},
|
||||
{
|
||||
id: 'CRM3000000000000000000000000023',
|
||||
name: 'CrmContractChange',
|
||||
path: '/crm/contract/change',
|
||||
component: '/crm/contract/change/index',
|
||||
meta: {
|
||||
title: '合同变更',
|
||||
keepAlive: false,
|
||||
isHide: true,
|
||||
menuCode: 'crm:contract:change:list'
|
||||
}
|
||||
},
|
||||
{
|
||||
id: 'CRM3000000000000000000000000024',
|
||||
name: 'CrmContractTemplate',
|
||||
path: '/crm/contract/template',
|
||||
component: '/crm/contract/template/index',
|
||||
meta: {
|
||||
title: '合同模板',
|
||||
keepAlive: false,
|
||||
isHide: true,
|
||||
menuCode: 'crm:contract:template:list'
|
||||
}
|
||||
},
|
||||
{
|
||||
id: 'CRM3000000000000000000000000025',
|
||||
name: 'CrmContractApprovalRecord',
|
||||
path: '/crm/contract/approval',
|
||||
component: '/crm/contract/approval-record/index',
|
||||
meta: {
|
||||
title: '合同审批记录',
|
||||
keepAlive: false,
|
||||
isHide: true,
|
||||
menuCode: 'crm:contract:approval:list'
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
id: 'CRM3000000000000000000000000016',
|
||||
name: 'CrmQuoteApproval',
|
||||
path: 'quote-approval',
|
||||
component: '/crm/quote/approval/index',
|
||||
meta: { title: '报价单审批', keepAlive: false, menuCode: 'crm:quote:approve' }
|
||||
},
|
||||
{
|
||||
id: 'CRM3000000000000000000000000015',
|
||||
name: 'CrmQuoteApproverSetting',
|
||||
path: 'quote-approver-setting',
|
||||
component: '/crm/quote/approver-setting/index',
|
||||
meta: {
|
||||
title: '报价单审批人设置',
|
||||
keepAlive: false,
|
||||
isHide: true,
|
||||
menuCode: 'crm:quote:approverSetting'
|
||||
}
|
||||
},
|
||||
|
||||
{
|
||||
id: 'CRM3000000000000000000000000011',
|
||||
name: 'CrmQuoteForm',
|
||||
path: 'quote/form',
|
||||
component: '/crm/quote/form',
|
||||
meta: {
|
||||
title: '报价单表单',
|
||||
keepAlive: false,
|
||||
isHide: true,
|
||||
menuCode: 'crm:quote:add'
|
||||
}
|
||||
},
|
||||
{
|
||||
id: 'CRM3000000000000000000000000012',
|
||||
name: 'CrmQuoteDetail',
|
||||
path: 'quote/detail',
|
||||
component: '/crm/quote/detail',
|
||||
meta: {
|
||||
title: '报价单详情',
|
||||
keepAlive: false,
|
||||
isHide: true,
|
||||
menuCode: 'crm:quote:query'
|
||||
}
|
||||
},
|
||||
{
|
||||
id: 'CRM3000000000000000000000000013',
|
||||
name: 'CrmQuoteStatistics',
|
||||
path: 'quote/statistics',
|
||||
component: '/crm/quote/statistics',
|
||||
meta: {
|
||||
title: '报价单统计',
|
||||
keepAlive: false,
|
||||
isHide: true,
|
||||
menuCode: 'crm:quote:list'
|
||||
}
|
||||
},
|
||||
{
|
||||
id: 'CRM3000000000000000000000000020',
|
||||
name: 'CrmContract',
|
||||
path: 'contract',
|
||||
component: '/crm/contract/index',
|
||||
meta: { title: '合同管理', keepAlive: false, menuCode: 'crm:contract:list' }
|
||||
},
|
||||
{
|
||||
id: 'CRM3000000000000000000000000021',
|
||||
name: 'CrmContractApproval',
|
||||
path: 'contract-approval',
|
||||
component: '/crm/contract/approval/index',
|
||||
meta: { title: '合同审批', keepAlive: false, menuCode: 'crm:contract:approve' }
|
||||
},
|
||||
{
|
||||
id: 'CRM3000000000000000000000000026',
|
||||
name: 'CrmContractApproverSetting',
|
||||
path: 'contract-approver-setting',
|
||||
component: '/crm/contract/approver-setting/index',
|
||||
meta: {
|
||||
title: '合同审批人设置',
|
||||
keepAlive: false,
|
||||
isHide: true,
|
||||
menuCode: 'crm:contract:approverSetting'
|
||||
}
|
||||
},
|
||||
|
||||
{
|
||||
id: 'CRM3000000000000000000000000030',
|
||||
name: 'CrmPriceLetter',
|
||||
path: 'price-letter',
|
||||
component: '/crm/price-letter/index',
|
||||
meta: { title: '调价函管理', keepAlive: false, menuCode: 'crm:priceLetter:list' }
|
||||
},
|
||||
{
|
||||
id: 'CRM3000000000000000000000000027',
|
||||
name: 'CrmContractForm',
|
||||
path: 'contract/form',
|
||||
component: '/crm/contract/form',
|
||||
meta: {
|
||||
title: '合同表单',
|
||||
keepAlive: false,
|
||||
isHide: true,
|
||||
menuCode: 'crm:contract:add'
|
||||
}
|
||||
},
|
||||
{
|
||||
id: 'CRM3000000000000000000000000022',
|
||||
name: 'CrmContractDetail',
|
||||
path: 'contract/detail',
|
||||
component: '/crm/contract/detail',
|
||||
meta: {
|
||||
title: '合同详情',
|
||||
keepAlive: false,
|
||||
isHide: true,
|
||||
menuCode: 'crm:contract:query'
|
||||
}
|
||||
},
|
||||
{
|
||||
id: 'CRM3000000000000000000000000023',
|
||||
name: 'CrmContractChange',
|
||||
path: 'contract/change',
|
||||
component: '/crm/contract/change/index',
|
||||
meta: {
|
||||
title: '合同变更',
|
||||
keepAlive: false,
|
||||
isHide: true,
|
||||
menuCode: 'crm:contract:change:list'
|
||||
}
|
||||
},
|
||||
{
|
||||
id: 'CRM3000000000000000000000000024',
|
||||
name: 'CrmContractTemplate',
|
||||
path: 'contract/template',
|
||||
component: '/crm/contract/template/index',
|
||||
meta: {
|
||||
title: '合同模板',
|
||||
keepAlive: false,
|
||||
isHide: true,
|
||||
menuCode: 'crm:contract:template:list'
|
||||
}
|
||||
},
|
||||
{
|
||||
id: 'CRM3000000000000000000000000025',
|
||||
name: 'CrmContractApprovalRecord',
|
||||
path: 'contract/approval',
|
||||
component: '/crm/contract/approval-record/index',
|
||||
meta: {
|
||||
title: '合同审批记录',
|
||||
keepAlive: false,
|
||||
isHide: true,
|
||||
menuCode: 'crm:contract:approval:list'
|
||||
}
|
||||
},
|
||||
{
|
||||
id: 'CRM1000000000000000000000000002',
|
||||
name: 'CrmCustomer',
|
||||
path: 'customer',
|
||||
component: '/crm/customer/index',
|
||||
meta: { title: '客户管理', keepAlive: false, menuCode: 'crm:customer:list' }
|
||||
id: 'CRM00000000000000000000000000040',
|
||||
name: 'CrmCustomerGroup',
|
||||
path: 'customer-group',
|
||||
component: '/index/route-parent',
|
||||
meta: { title: '客户管理', keepAlive: false },
|
||||
children: [
|
||||
{
|
||||
id: 'CRM1000000000000000000000000002',
|
||||
name: 'CrmCustomer',
|
||||
path: '/crm/customer',
|
||||
component: '/crm/customer/index',
|
||||
meta: { title: '客户管理', keepAlive: false, menuCode: 'crm:customer:list' }
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user