提交
This commit is contained in:
1 parent
31be9bfd95
commit
843e13bce3
722 files changed
+288067
-110680
No files matched your search
@@ -133,7 +133,7 @@ export class MenuProcessor {
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据 menu code 过滤菜单(仅补齐顶级父菜单)
|
||||
* 根据 menu code 过滤菜单(目录节点在有可见子菜单时保留)
|
||||
*/
|
||||
private filterMenuByCodes(
|
||||
menu: AppRouteRecord[],
|
||||
@@ -150,7 +150,7 @@ export class MenuProcessor {
|
||||
|
||||
const shouldKeep =
|
||||
hasSelfPermission ||
|
||||
(level === 1 && Array.isArray(filteredChildren) && filteredChildren.length > 0)
|
||||
(Array.isArray(filteredChildren) && filteredChildren.length > 0)
|
||||
|
||||
if (shouldKeep) {
|
||||
acc.push({
|
||||
|
||||
@@ -53,6 +53,7 @@ import { fetchGetUserInfo } from '@/api/auth'
|
||||
import { ApiStatus } from '@/utils/http/status'
|
||||
import { isHttpError } from '@/utils/http/error'
|
||||
import { RouteRegistry, MenuProcessor, IframeRouteManager, RoutePermissionValidator } from '../core'
|
||||
import { refreshMenuBadges } from '@/utils/menu-badge-registry'
|
||||
|
||||
// 路由注册器实例
|
||||
let routeRegistry: RouteRegistry | null = null
|
||||
@@ -295,6 +296,9 @@ async function handleDynamicRoutes(
|
||||
// 5.5 加载全量字典数据
|
||||
useDictStore().loadAllDict()
|
||||
|
||||
// 5.6 刷新侧栏菜单数字角标
|
||||
void refreshMenuBadges(menuList)
|
||||
|
||||
// 6. 保存 iframe 路由
|
||||
IframeRouteManager.getInstance().save()
|
||||
|
||||
|
||||
+294
-119
@@ -1,7 +1,7 @@
|
||||
import { AppRouteRecord } from '@/types/router'
|
||||
|
||||
/**
|
||||
* 运输管理路由
|
||||
* 运输管理路由(与 sys_menu 三级结构对齐)
|
||||
*/
|
||||
export const plRoutes: AppRouteRecord[] = [
|
||||
{
|
||||
@@ -12,68 +12,180 @@ export const plRoutes: AppRouteRecord[] = [
|
||||
meta: { title: '运输管理', icon: 'ri:truck-line', keepAlive: false, roles: ['admin'] },
|
||||
children: [
|
||||
{
|
||||
id: 'PL00000000000000000000000000002',
|
||||
name: 'PlCarrier',
|
||||
path: 'carrier',
|
||||
component: '/pl/carrier/index',
|
||||
meta: { title: '承运商管理', keepAlive: true, menuCode: 'pl:carrier:list' }
|
||||
id: 'PL_GROUP_PLAN',
|
||||
name: 'PlPlanModule',
|
||||
path: 'plan-module',
|
||||
meta: { title: '运输计划', keepAlive: false },
|
||||
children: [
|
||||
{
|
||||
id: 'PL00000000000000000000000000010',
|
||||
name: 'PlPlan',
|
||||
path: 'plan',
|
||||
component: '/pl/plan/index',
|
||||
meta: { title: '运输计划', keepAlive: true, menuCode: 'pl:plan:list' }
|
||||
},
|
||||
{
|
||||
id: 'PL00000000000000000000000000016',
|
||||
name: 'PlPlanArchive',
|
||||
path: 'plan-archive',
|
||||
component: '/pl/plan-archive/index',
|
||||
meta: { title: '运输计划归档', keepAlive: true, menuCode: 'pl:plan-archive:list' }
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
id: 'PL00000000000000000000000000003',
|
||||
name: 'PlVehicle',
|
||||
path: 'vehicle',
|
||||
component: '/pl/vehicle/index',
|
||||
meta: { title: '全部车辆管理', keepAlive: true, menuCode: 'pl:vehicle:list' }
|
||||
id: 'PL_GROUP_CERT',
|
||||
name: 'PlCertUpload',
|
||||
path: 'cert-upload',
|
||||
meta: { title: '购买证上传', keepAlive: false },
|
||||
children: [
|
||||
{
|
||||
id: 'PL00000000000000000000000000015',
|
||||
name: 'PlPlanCert',
|
||||
path: 'plan-cert',
|
||||
component: '/pl/plan-cert/index',
|
||||
meta: { title: '购买证上传', keepAlive: true, menuCode: 'pl:plan-cert:list' }
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
id: 'PL00000000000000000000000000003S',
|
||||
name: 'PlSelfVehicle',
|
||||
path: 'self-vehicle',
|
||||
component: '/pl/self-vehicle/index',
|
||||
meta: { title: '山峡自有车辆', keepAlive: true, menuCode: 'pl:self-vehicle:list' }
|
||||
id: 'PL_GROUP_FREIGHT',
|
||||
name: 'PlFreightModule',
|
||||
path: 'freight-fee',
|
||||
meta: { title: '运输费用', keepAlive: false },
|
||||
children: [
|
||||
{
|
||||
id: 'PL00000000000000000000000000030',
|
||||
name: 'PlFreight',
|
||||
path: 'freight',
|
||||
component: '/pl/freight/index',
|
||||
meta: { title: '运费结算', keepAlive: true, menuCode: 'pl:freight:list' }
|
||||
},
|
||||
{
|
||||
id: 'PL00000000000000000000000000031',
|
||||
name: 'PlFreightApproval',
|
||||
path: 'freight-approval',
|
||||
component: '/pl/freight-approval/index',
|
||||
meta: { title: '运费结算审批', keepAlive: true, menuCode: 'pl:freight-approval:list' }
|
||||
},
|
||||
{
|
||||
id: 'PL00000000000000000000000000032',
|
||||
name: 'PlFreightDisburse',
|
||||
path: 'freight-disburse',
|
||||
component: '/pl/freight-disburse/index',
|
||||
meta: { title: '运费财务发放', keepAlive: true, menuCode: 'pl:freight-disburse:list' }
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
id: 'PL00000000000000000000000000004',
|
||||
name: 'PlPersonnel',
|
||||
path: 'personnel',
|
||||
component: '/pl/personnel/index',
|
||||
meta: { title: '驾押人员管理', keepAlive: true, menuCode: 'pl:driver:list' }
|
||||
id: 'PL_GROUP_VEHICLE',
|
||||
name: 'PlVehicleModule',
|
||||
path: 'vehicle-mgmt',
|
||||
meta: { title: '车辆管理', keepAlive: false },
|
||||
children: [
|
||||
{
|
||||
id: 'PL_VEH_RECHARGE_APPLY',
|
||||
name: 'PlVehicleRechargeApply',
|
||||
path: 'vehicle-recharge-apply',
|
||||
component: '/pl/vehicle-recharge-apply/index',
|
||||
meta: { title: 'ETC加油申请', keepAlive: true, menuCode: 'pl:vehicle-recharge-apply:list' }
|
||||
},
|
||||
{
|
||||
id: 'PL_VEH_RECHARGE_RECORD',
|
||||
name: 'PlVehicleRechargeRecord',
|
||||
path: 'vehicle-recharge-record',
|
||||
component: '/pl/vehicle-recharge-record/index',
|
||||
meta: { title: 'ETC加油发放登记', keepAlive: true, menuCode: 'pl:vehicle-recharge-record:list' }
|
||||
},
|
||||
{
|
||||
id: 'PL_VEH_MAINT_APPLY',
|
||||
name: 'PlVehicleMaintenanceApply',
|
||||
path: 'vehicle-maintenance-apply',
|
||||
component: '/pl/vehicle-maintenance-apply/index',
|
||||
meta: { title: '车辆维保申请', keepAlive: true, menuCode: 'pl:vehicle-maintenance-apply:list' }
|
||||
},
|
||||
{
|
||||
id: 'PL_VEH_MAINT_PROCESS',
|
||||
name: 'PlVehicleMaintenanceProcess',
|
||||
path: 'vehicle-maintenance-process',
|
||||
component: '/pl/vehicle-maintenance-process/index',
|
||||
meta: { title: '车辆维保处理登记', keepAlive: true, menuCode: 'pl:vehicle-maintenance-process:list' }
|
||||
},
|
||||
{
|
||||
id: 'PL_VEH_UREA_APPLY',
|
||||
name: 'PlVehicleUreaApply',
|
||||
path: 'vehicle-urea-apply',
|
||||
component: '/pl/vehicle-urea-apply/index',
|
||||
meta: { title: '车辆尿素申请', keepAlive: true, menuCode: 'pl:vehicle-urea-apply:list' }
|
||||
},
|
||||
{
|
||||
id: 'PL_VEH_UREA_DISBURSE',
|
||||
name: 'PlVehicleUreaDisburse',
|
||||
path: 'vehicle-urea-disburse',
|
||||
component: '/pl/vehicle-urea-disburse/index',
|
||||
meta: { title: '车辆尿素发放登记', keepAlive: true, menuCode: 'pl:vehicle-urea-disburse:list' }
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
id: 'PL00000000000000000000000000004A',
|
||||
name: 'PlTransportAddress',
|
||||
path: 'transport-address',
|
||||
component: '/pl/transport-address/index',
|
||||
meta: { title: '地址库', keepAlive: true, menuCode: 'pl:transport-address:list' }
|
||||
id: 'PL_GROUP_DOC',
|
||||
name: 'PlDocumentReminderModule',
|
||||
path: 'document-reminder-module',
|
||||
meta: { title: '证件提醒', keepAlive: false },
|
||||
children: [
|
||||
{
|
||||
id: 'PL_DOC_REMINDER',
|
||||
name: 'PlDocumentReminder',
|
||||
path: 'document-reminder',
|
||||
component: '/pl/inventory/document-reminder',
|
||||
meta: { title: '证件提醒', keepAlive: true, menuCode: 'pl:document:list' }
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
id: 'PL00000000000000000000000000004R',
|
||||
name: 'PlDriverRedirect',
|
||||
path: 'driver',
|
||||
redirect: '/pl/personnel',
|
||||
meta: { title: '司机管理', isHide: true, menuCode: 'pl:driver:list' }
|
||||
},
|
||||
{
|
||||
id: 'PL00000000000000000000000000010',
|
||||
name: 'PlPlan',
|
||||
path: 'plan',
|
||||
component: '/pl/plan/index',
|
||||
meta: { title: '运输计划', keepAlive: true, menuCode: 'pl:plan:list' }
|
||||
},
|
||||
{
|
||||
id: 'PL00000000000000000000000000016',
|
||||
name: 'PlPlanArchive',
|
||||
path: 'plan-archive',
|
||||
component: '/pl/plan-archive/index',
|
||||
meta: { title: '运输计划归档', keepAlive: true, menuCode: 'pl:plan-archive:list' }
|
||||
},
|
||||
{
|
||||
id: 'PL00000000000000000000000000015',
|
||||
name: 'PlPlanCert',
|
||||
path: 'plan-cert',
|
||||
component: '/pl/plan-cert/index',
|
||||
meta: { title: '危化品证上传', keepAlive: true, menuCode: 'pl:plan-cert:list' }
|
||||
id: 'PL_GROUP_BASE',
|
||||
name: 'PlBaseInfo',
|
||||
path: 'base-info',
|
||||
meta: { title: '基础信息库', keepAlive: false },
|
||||
children: [
|
||||
{
|
||||
id: 'PL00000000000000000000000000002',
|
||||
name: 'PlCarrier',
|
||||
path: 'carrier',
|
||||
component: '/pl/carrier/index',
|
||||
meta: { title: '承运商信息', keepAlive: true, menuCode: 'pl:carrier:list' }
|
||||
},
|
||||
{
|
||||
id: 'PL00000000000000000000000000003',
|
||||
name: 'PlVehicle',
|
||||
path: 'vehicle',
|
||||
component: '/pl/vehicle/index',
|
||||
meta: { title: '全部车辆信息', keepAlive: true, menuCode: 'pl:vehicle:list' }
|
||||
},
|
||||
{
|
||||
id: 'PL00000000000000000000000000003S',
|
||||
name: 'PlSelfVehicle',
|
||||
path: 'self-vehicle',
|
||||
component: '/pl/self-vehicle/index',
|
||||
meta: { title: '山峡自有车辆', keepAlive: true, menuCode: 'pl:self-vehicle:list' }
|
||||
},
|
||||
{
|
||||
id: 'PL00000000000000000000000000004',
|
||||
name: 'PlPersonnel',
|
||||
path: 'personnel',
|
||||
component: '/pl/personnel/index',
|
||||
meta: { title: '驾押人员信息', keepAlive: true, menuCode: 'pl:driver:list' }
|
||||
},
|
||||
{
|
||||
id: 'PL00000000000000000000000000004A',
|
||||
name: 'PlTransportAddress',
|
||||
path: 'transport-address',
|
||||
component: '/pl/transport-address/index',
|
||||
meta: { title: '运输地址库', keepAlive: true, menuCode: 'pl:transport-address:list' }
|
||||
}
|
||||
]
|
||||
},
|
||||
// ── 计划子页(隐藏)与旧路径兼容重定向 ──
|
||||
{
|
||||
id: 'PL00000000000000000000000000011',
|
||||
name: 'PlPlanCreate',
|
||||
@@ -102,6 +214,13 @@ export const plRoutes: AppRouteRecord[] = [
|
||||
component: '/pl/plan/arrange',
|
||||
meta: { title: '运输安排', keepAlive: false, isHide: true, menuCode: 'pl:plan:arrange' }
|
||||
},
|
||||
{
|
||||
id: 'PL00000000000000000000000000004R',
|
||||
name: 'PlDriverRedirect',
|
||||
path: 'driver',
|
||||
redirect: '/pl/base-info/personnel',
|
||||
meta: { title: '司机管理', isHide: true, menuCode: 'pl:driver:list' }
|
||||
},
|
||||
{
|
||||
id: 'PL00000000000000000000000000020',
|
||||
name: 'PlTransport',
|
||||
@@ -109,69 +228,6 @@ export const plRoutes: AppRouteRecord[] = [
|
||||
component: '/pl/transport/index',
|
||||
meta: { title: '运输管理', keepAlive: true, isHide: true, menuCode: 'pl:transport:list' }
|
||||
},
|
||||
{
|
||||
id: 'PL00000000000000000000000000030',
|
||||
name: 'PlFreight',
|
||||
path: 'freight',
|
||||
component: '/pl/freight/index',
|
||||
meta: { title: '运费结算', keepAlive: true, menuCode: 'pl:freight:list' }
|
||||
},
|
||||
{
|
||||
id: 'PL00000000000000000000000000031',
|
||||
name: 'PlFreightApproval',
|
||||
path: 'freight-approval',
|
||||
component: '/pl/freight-approval/index',
|
||||
meta: { title: '运费结算审批', keepAlive: true, menuCode: 'pl:freight-approval:list' }
|
||||
},
|
||||
{
|
||||
id: 'PL00000000000000000000000000032',
|
||||
name: 'PlFreightDisburse',
|
||||
path: 'freight-disburse',
|
||||
component: '/pl/freight-disburse/index',
|
||||
meta: { title: '运费财务发放', keepAlive: true, menuCode: 'pl:freight-disburse:list' }
|
||||
},
|
||||
{
|
||||
id: 'PL_VEH_RECHARGE_APPLY',
|
||||
name: 'PlVehicleRechargeApply',
|
||||
path: 'vehicle-recharge-apply',
|
||||
component: '/pl/vehicle-recharge-apply/index',
|
||||
meta: { title: 'ETC加油申请', keepAlive: true, menuCode: 'pl:vehicle-recharge-apply:list' }
|
||||
},
|
||||
{
|
||||
id: 'PL_VEH_RECHARGE_RECORD',
|
||||
name: 'PlVehicleRechargeRecord',
|
||||
path: 'vehicle-recharge-record',
|
||||
component: '/pl/vehicle-recharge-record/index',
|
||||
meta: { title: 'ETC加油发放登记', keepAlive: true, menuCode: 'pl:vehicle-recharge-record:list' }
|
||||
},
|
||||
{
|
||||
id: 'PL_VEH_MAINT_APPLY',
|
||||
name: 'PlVehicleMaintenanceApply',
|
||||
path: 'vehicle-maintenance-apply',
|
||||
component: '/pl/vehicle-maintenance-apply/index',
|
||||
meta: { title: '车辆维保申请', keepAlive: true, menuCode: 'pl:vehicle-maintenance-apply:list' }
|
||||
},
|
||||
{
|
||||
id: 'PL_VEH_MAINT_PROCESS',
|
||||
name: 'PlVehicleMaintenanceProcess',
|
||||
path: 'vehicle-maintenance-process',
|
||||
component: '/pl/vehicle-maintenance-process/index',
|
||||
meta: { title: '车辆维保处理登记', keepAlive: true, menuCode: 'pl:vehicle-maintenance-process:list' }
|
||||
},
|
||||
{
|
||||
id: 'PL_VEH_UREA_APPLY',
|
||||
name: 'PlVehicleUreaApply',
|
||||
path: 'vehicle-urea-apply',
|
||||
component: '/pl/vehicle-urea-apply/index',
|
||||
meta: { title: '车辆尿素申请', keepAlive: true, menuCode: 'pl:vehicle-urea-apply:list' }
|
||||
},
|
||||
{
|
||||
id: 'PL_VEH_UREA_DISBURSE',
|
||||
name: 'PlVehicleUreaDisburse',
|
||||
path: 'vehicle-urea-disburse',
|
||||
component: '/pl/vehicle-urea-disburse/index',
|
||||
meta: { title: '车辆尿素发放登记', keepAlive: true, menuCode: 'pl:vehicle-urea-disburse:list' }
|
||||
},
|
||||
{
|
||||
id: 'PL00000000000000000000000000040',
|
||||
name: 'PlInventory',
|
||||
@@ -180,11 +236,130 @@ export const plRoutes: AppRouteRecord[] = [
|
||||
meta: { title: '库存台账', keepAlive: true, isHide: true, menuCode: 'pl:inventory:list' }
|
||||
},
|
||||
{
|
||||
id: 'PL00000000000000000000000000050',
|
||||
name: 'PlDocumentReminder',
|
||||
id: 'PL_REDIRECT_PLAN',
|
||||
name: 'PlPlanRedirect',
|
||||
path: 'plan',
|
||||
redirect: '/pl/plan-module/plan',
|
||||
meta: { title: '运输计划', isHide: true }
|
||||
},
|
||||
{
|
||||
id: 'PL_REDIRECT_PLAN_ARCHIVE',
|
||||
name: 'PlPlanArchiveRedirect',
|
||||
path: 'plan-archive',
|
||||
redirect: '/pl/plan-module/plan-archive',
|
||||
meta: { title: '运输计划归档', isHide: true }
|
||||
},
|
||||
{
|
||||
id: 'PL_REDIRECT_PLAN_CERT',
|
||||
name: 'PlPlanCertRedirect',
|
||||
path: 'plan-cert',
|
||||
redirect: '/pl/cert-upload/plan-cert',
|
||||
meta: { title: '购买证上传', isHide: true }
|
||||
},
|
||||
{
|
||||
id: 'PL_REDIRECT_FREIGHT',
|
||||
name: 'PlFreightRedirect',
|
||||
path: 'freight',
|
||||
redirect: '/pl/freight-fee/freight',
|
||||
meta: { title: '运费结算', isHide: true }
|
||||
},
|
||||
{
|
||||
id: 'PL_REDIRECT_FREIGHT_APPROVAL',
|
||||
name: 'PlFreightApprovalRedirect',
|
||||
path: 'freight-approval',
|
||||
redirect: '/pl/freight-fee/freight-approval',
|
||||
meta: { title: '运费结算审批', isHide: true }
|
||||
},
|
||||
{
|
||||
id: 'PL_REDIRECT_FREIGHT_DISBURSE',
|
||||
name: 'PlFreightDisburseRedirect',
|
||||
path: 'freight-disburse',
|
||||
redirect: '/pl/freight-fee/freight-disburse',
|
||||
meta: { title: '运费财务发放', isHide: true }
|
||||
},
|
||||
{
|
||||
id: 'PL_REDIRECT_CARRIER',
|
||||
name: 'PlCarrierRedirect',
|
||||
path: 'carrier',
|
||||
redirect: '/pl/base-info/carrier',
|
||||
meta: { title: '承运商信息', isHide: true }
|
||||
},
|
||||
{
|
||||
id: 'PL_REDIRECT_VEHICLE',
|
||||
name: 'PlVehicleRedirect',
|
||||
path: 'vehicle',
|
||||
redirect: '/pl/base-info/vehicle',
|
||||
meta: { title: '全部车辆信息', isHide: true }
|
||||
},
|
||||
{
|
||||
id: 'PL_REDIRECT_SELF_VEHICLE',
|
||||
name: 'PlSelfVehicleRedirect',
|
||||
path: 'self-vehicle',
|
||||
redirect: '/pl/base-info/self-vehicle',
|
||||
meta: { title: '山峡自有车辆', isHide: true }
|
||||
},
|
||||
{
|
||||
id: 'PL_REDIRECT_PERSONNEL',
|
||||
name: 'PlPersonnelRedirect',
|
||||
path: 'personnel',
|
||||
redirect: '/pl/base-info/personnel',
|
||||
meta: { title: '驾押人员信息', isHide: true }
|
||||
},
|
||||
{
|
||||
id: 'PL_REDIRECT_TRANSPORT_ADDRESS',
|
||||
name: 'PlTransportAddressRedirect',
|
||||
path: 'transport-address',
|
||||
redirect: '/pl/base-info/transport-address',
|
||||
meta: { title: '运输地址库', isHide: true }
|
||||
},
|
||||
{
|
||||
id: 'PL_REDIRECT_VEH_RECHARGE_APPLY',
|
||||
name: 'PlVehicleRechargeApplyRedirect',
|
||||
path: 'vehicle-recharge-apply',
|
||||
redirect: '/pl/vehicle-mgmt/vehicle-recharge-apply',
|
||||
meta: { title: 'ETC加油申请', isHide: true }
|
||||
},
|
||||
{
|
||||
id: 'PL_REDIRECT_VEH_RECHARGE_RECORD',
|
||||
name: 'PlVehicleRechargeRecordRedirect',
|
||||
path: 'vehicle-recharge-record',
|
||||
redirect: '/pl/vehicle-mgmt/vehicle-recharge-record',
|
||||
meta: { title: 'ETC加油发放登记', isHide: true }
|
||||
},
|
||||
{
|
||||
id: 'PL_REDIRECT_VEH_MAINT_APPLY',
|
||||
name: 'PlVehicleMaintenanceApplyRedirect',
|
||||
path: 'vehicle-maintenance-apply',
|
||||
redirect: '/pl/vehicle-mgmt/vehicle-maintenance-apply',
|
||||
meta: { title: '车辆维保申请', isHide: true }
|
||||
},
|
||||
{
|
||||
id: 'PL_REDIRECT_VEH_MAINT_PROCESS',
|
||||
name: 'PlVehicleMaintenanceProcessRedirect',
|
||||
path: 'vehicle-maintenance-process',
|
||||
redirect: '/pl/vehicle-mgmt/vehicle-maintenance-process',
|
||||
meta: { title: '车辆维保处理登记', isHide: true }
|
||||
},
|
||||
{
|
||||
id: 'PL_REDIRECT_VEH_UREA_APPLY',
|
||||
name: 'PlVehicleUreaApplyRedirect',
|
||||
path: 'vehicle-urea-apply',
|
||||
redirect: '/pl/vehicle-mgmt/vehicle-urea-apply',
|
||||
meta: { title: '车辆尿素申请', isHide: true }
|
||||
},
|
||||
{
|
||||
id: 'PL_REDIRECT_VEH_UREA_DISBURSE',
|
||||
name: 'PlVehicleUreaDisburseRedirect',
|
||||
path: 'vehicle-urea-disburse',
|
||||
redirect: '/pl/vehicle-mgmt/vehicle-urea-disburse',
|
||||
meta: { title: '车辆尿素发放登记', isHide: true }
|
||||
},
|
||||
{
|
||||
id: 'PL_REDIRECT_DOC_REMINDER',
|
||||
name: 'PlDocumentReminderRedirect',
|
||||
path: 'document-reminder',
|
||||
component: '/pl/inventory/document-reminder',
|
||||
meta: { title: '证件提醒', keepAlive: true, menuCode: 'pl:document:list' }
|
||||
redirect: '/pl/document-reminder-module/document-reminder',
|
||||
meta: { title: '证件提醒', isHide: true }
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -38,136 +38,180 @@ export const sqxpAdminRoutes: AppRouteRecord[] = [
|
||||
},
|
||||
children: [
|
||||
{
|
||||
id: 'BX00000000000000000000000000003',
|
||||
name: 'BxExpenseItem',
|
||||
path: 'config/expense-item',
|
||||
component: '/bx/expense-item/index',
|
||||
id: 'BX00000000000000000000000000002',
|
||||
name: 'BxConfig',
|
||||
path: 'config',
|
||||
meta: {
|
||||
title: '费用项目管理',
|
||||
keepAlive: true,
|
||||
menuCode: 'bx:expenseItem:list'
|
||||
}
|
||||
title: '基础配置',
|
||||
keepAlive: false
|
||||
},
|
||||
children: [
|
||||
{
|
||||
id: 'BX00000000000000000000000000003',
|
||||
name: 'BxExpenseItem',
|
||||
path: 'expense-item',
|
||||
component: '/bx/expense-item/index',
|
||||
meta: {
|
||||
title: '费用项目管理',
|
||||
keepAlive: true,
|
||||
menuCode: 'bx:expenseItem:list'
|
||||
}
|
||||
},
|
||||
{
|
||||
id: 'BX00000000000000000000000000004',
|
||||
name: 'BxWorkflowAdvance',
|
||||
path: 'workflow-advance',
|
||||
component: '/bx/workflow/advance/index',
|
||||
meta: {
|
||||
title: '工作流配置(备用金)',
|
||||
keepAlive: true,
|
||||
menuCode: 'bx:workflowAdvance:list'
|
||||
}
|
||||
},
|
||||
{
|
||||
id: 'BX00000000000000000000000000005',
|
||||
name: 'BxWorkflowReimburse',
|
||||
path: 'workflow-reimburse',
|
||||
component: '/bx/workflow/reimburse/index',
|
||||
meta: {
|
||||
title: '工作流配置(报销单)',
|
||||
keepAlive: true,
|
||||
menuCode: 'bx:workflowReimburse:list'
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
id: 'BX00000000000000000000000000004',
|
||||
name: 'BxWorkflowAdvance',
|
||||
path: 'config/workflow-advance',
|
||||
component: '/bx/workflow/advance/index',
|
||||
id: 'BX00000000000000000000000000006',
|
||||
name: 'BxAdvance',
|
||||
path: 'advance',
|
||||
meta: {
|
||||
title: '工作流配置(备用金)',
|
||||
keepAlive: true,
|
||||
menuCode: 'bx:workflowAdvance:list'
|
||||
}
|
||||
title: '备用金',
|
||||
keepAlive: false
|
||||
},
|
||||
children: [
|
||||
{
|
||||
id: 'BX00000000000000000000000000007',
|
||||
name: 'BxAdvanceApply',
|
||||
path: 'apply',
|
||||
component: '/bx/advance/apply/index',
|
||||
meta: {
|
||||
title: '备用金申请',
|
||||
keepAlive: true,
|
||||
menuCode: 'bx:advanceApply:list'
|
||||
}
|
||||
},
|
||||
{
|
||||
id: 'BX00000000000000000000000000008',
|
||||
name: 'BxAdvanceApprove',
|
||||
path: 'approve',
|
||||
component: '/bx/advance/approve/index',
|
||||
meta: {
|
||||
title: '备用金审批',
|
||||
keepAlive: true,
|
||||
menuCode: 'bx:advanceApprove:list'
|
||||
}
|
||||
},
|
||||
{
|
||||
id: 'BX00000000000000000000000000009',
|
||||
name: 'BxAdvanceIssue',
|
||||
path: 'issue',
|
||||
component: '/bx/advance/issue/index',
|
||||
meta: {
|
||||
title: '备用金发放',
|
||||
keepAlive: true,
|
||||
menuCode: 'bx:advanceIssue:list'
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
id: 'BX00000000000000000000000000005',
|
||||
name: 'BxWorkflowReimburse',
|
||||
path: 'config/workflow-reimburse',
|
||||
component: '/bx/workflow/reimburse/index',
|
||||
id: 'BX00000000000000000000000000010',
|
||||
name: 'BxReimburse',
|
||||
path: 'reimburse',
|
||||
meta: {
|
||||
title: '工作流配置(报销单)',
|
||||
keepAlive: true,
|
||||
menuCode: 'bx:workflowReimburse:list'
|
||||
}
|
||||
title: '报销',
|
||||
keepAlive: false
|
||||
},
|
||||
children: [
|
||||
{
|
||||
id: 'BX00000000000000000000000000011',
|
||||
name: 'BxReimburseApply',
|
||||
path: 'apply',
|
||||
component: '/bx/reimburse/apply/index',
|
||||
meta: {
|
||||
title: '报销申请',
|
||||
keepAlive: true,
|
||||
menuCode: 'bx:reimburseApply:list'
|
||||
}
|
||||
},
|
||||
{
|
||||
id: 'BX00000000000000000000000000012',
|
||||
name: 'BxReimburseApprove',
|
||||
path: 'approve',
|
||||
component: '/bx/reimburse/approve/index',
|
||||
meta: {
|
||||
title: '报销审批',
|
||||
keepAlive: true,
|
||||
menuCode: 'bx:reimburseApprove:list'
|
||||
}
|
||||
},
|
||||
{
|
||||
id: 'BX00000000000000000000000000013',
|
||||
name: 'BxPayment',
|
||||
path: 'payment',
|
||||
component: '/bx/payment/index',
|
||||
meta: {
|
||||
title: '支付发放冲抵',
|
||||
keepAlive: true,
|
||||
menuCode: 'bx:payment:list'
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
id: 'BX00000000000000000000000000007',
|
||||
name: 'BxAdvanceApply',
|
||||
path: 'advance/apply',
|
||||
component: '/bx/advance/apply/index',
|
||||
id: 'BX00000000000000000000000000014',
|
||||
name: 'BxViewCenter',
|
||||
path: 'view',
|
||||
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'
|
||||
}
|
||||
title: '视图中心',
|
||||
keepAlive: false
|
||||
},
|
||||
children: [
|
||||
{
|
||||
id: 'BX00000000000000000000000000015',
|
||||
name: 'BxViewMine',
|
||||
path: 'mine',
|
||||
component: '/bx/view/mine/index',
|
||||
meta: {
|
||||
title: '我的申请单',
|
||||
keepAlive: true,
|
||||
menuCode: 'bx:viewMine:list'
|
||||
}
|
||||
},
|
||||
{
|
||||
id: 'BX00000000000000000000000000016',
|
||||
name: 'BxViewTodo',
|
||||
path: 'todo',
|
||||
component: '/bx/view/todo/index',
|
||||
meta: {
|
||||
title: '待我审批',
|
||||
keepAlive: true,
|
||||
menuCode: 'bx:viewTodo:list'
|
||||
}
|
||||
},
|
||||
{
|
||||
id: 'BX00000000000000000000000000017',
|
||||
name: 'BxViewAll',
|
||||
path: 'all',
|
||||
component: '/bx/view/all/index',
|
||||
meta: {
|
||||
title: '全部申请单(总经理)',
|
||||
keepAlive: true,
|
||||
menuCode: 'bx:viewAll:list'
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user