提交
This commit is contained in:
1 parent
59fafb92d5
commit
6abfb6e251
1512 files changed
+1565614
-275592
No files matched your search
@@ -1,9 +1,28 @@
|
||||
import { AppRouteRecord } from '@/types/router'
|
||||
import { PORTAL_TOP_MODULE_ORDER } from '@/utils/router/portal-menu'
|
||||
import { sqxpAdminRoutes } from './sqxp'
|
||||
import { plRoutes } from './pl'
|
||||
|
||||
/**
|
||||
* 动态菜单与路由(前端权限模式 VITE_ACCESS_MODE=frontend 时使用)
|
||||
* 山峡化工业务菜单,与 backend/app/api/menu.py 中 get_admin_menu_list 对齐
|
||||
* 一级业务模块顺序与 PORTAL_TOP_MODULE_ORDER 对齐(左侧菜单展示)。
|
||||
*/
|
||||
export const routeModules: AppRouteRecord[] = [...sqxpAdminRoutes, ...plRoutes]
|
||||
const mergedRoutes: AppRouteRecord[] = [...sqxpAdminRoutes, ...plRoutes]
|
||||
const topModuleOrder = new Map<string, number>(
|
||||
PORTAL_TOP_MODULE_ORDER.map((path, index) => [path, index])
|
||||
)
|
||||
|
||||
export const routeModules: AppRouteRecord[] = mergedRoutes.slice().sort((a, b) => {
|
||||
const indexA = topModuleOrder.has(String(a.path ?? ''))
|
||||
? (topModuleOrder.get(String(a.path ?? '')) as number)
|
||||
: -1
|
||||
const indexB = topModuleOrder.has(String(b.path ?? ''))
|
||||
? (topModuleOrder.get(String(b.path ?? '')) as number)
|
||||
: -1
|
||||
if (indexA < 0 && indexB < 0) {
|
||||
return mergedRoutes.indexOf(a) - mergedRoutes.indexOf(b)
|
||||
}
|
||||
if (indexA < 0) return -1
|
||||
if (indexB < 0) return 1
|
||||
return indexA - indexB
|
||||
})
|
||||
+453
-287
@@ -1,7 +1,7 @@
|
||||
import { AppRouteRecord } from '@/types/router'
|
||||
|
||||
/**
|
||||
* 运输管理路由(与 sys_menu 三级结构对齐)
|
||||
* 运输管理 + 车辆管理路由(车辆管理为与运输管理同级的一级模块)
|
||||
*/
|
||||
export const plRoutes: AppRouteRecord[] = [
|
||||
{
|
||||
@@ -24,41 +24,34 @@ export const plRoutes: AppRouteRecord[] = [
|
||||
component: '/pl/plan/index',
|
||||
meta: { title: '运输计划', keepAlive: false, menuCode: 'pl:plan:list' }
|
||||
},
|
||||
{
|
||||
id: 'PL00000000000000000000000000016',
|
||||
name: 'PlPlanArchive',
|
||||
path: 'plan-archive',
|
||||
component: '/pl/plan-archive/index',
|
||||
meta: { title: '运输计划归档', keepAlive: false, menuCode: 'pl:plan-archive:list' }
|
||||
},
|
||||
{
|
||||
id: 'PL_PLAN_CONTRACT',
|
||||
name: 'PlPlanContract',
|
||||
path: 'plan-contract',
|
||||
component: '/pl/plan-contract/index',
|
||||
meta: { title: '运输计划合同完善', keepAlive: false, menuCode: 'pl:plan-contract:list' }
|
||||
},
|
||||
{
|
||||
id: 'PL_REDIRECT_PLAN_ARCHIVE_OLD',
|
||||
name: 'PlPlanArchiveOldRedirect',
|
||||
path: 'plan-archive',
|
||||
redirect: '/pl/archive-module/plan-archive',
|
||||
meta: { title: '运输计划归档', isHide: true, menuCode: 'pl:plan-archive:list' }
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
id: 'PL_GROUP_STOCK',
|
||||
name: 'PlStockModule',
|
||||
path: 'stock-module',
|
||||
meta: { title: '库存管理', keepAlive: false },
|
||||
id: 'PL_GROUP_ARCHIVE',
|
||||
name: 'PlArchiveModule',
|
||||
path: 'archive-module',
|
||||
meta: { title: '运输归档', keepAlive: false },
|
||||
children: [
|
||||
{
|
||||
id: 'PL_INBOUND',
|
||||
name: 'PlInbound',
|
||||
path: 'inbound',
|
||||
component: '/pl/inbound/index',
|
||||
meta: { title: '入库单', keepAlive: false, menuCode: 'pl:inbound:list' }
|
||||
},
|
||||
{
|
||||
id: 'PL_OUTBOUND',
|
||||
name: 'PlOutbound',
|
||||
path: 'outbound',
|
||||
component: '/pl/outbound/index',
|
||||
meta: { title: '出库单', keepAlive: false, menuCode: 'pl:outbound:list' }
|
||||
id: 'PL00000000000000000000000000016',
|
||||
name: 'PlPlanArchive',
|
||||
path: 'plan-archive',
|
||||
component: '/pl/plan-archive/index',
|
||||
meta: { title: '运输计划归档', keepAlive: false, menuCode: 'pl:plan-archive:list' }
|
||||
}
|
||||
]
|
||||
},
|
||||
@@ -81,7 +74,7 @@ export const plRoutes: AppRouteRecord[] = [
|
||||
id: 'PL_GROUP_FREIGHT',
|
||||
name: 'PlFreightModule',
|
||||
path: 'freight-fee',
|
||||
meta: { title: '运输费用', keepAlive: false },
|
||||
meta: { title: '运费管理', keepAlive: false },
|
||||
children: [
|
||||
{
|
||||
id: 'PL00000000000000000000000000030',
|
||||
@@ -107,10 +100,393 @@ export const plRoutes: AppRouteRecord[] = [
|
||||
]
|
||||
},
|
||||
{
|
||||
id: 'PL_GROUP_VEHICLE',
|
||||
name: 'PlVehicleModule',
|
||||
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: false, menuCode: 'pl:document:list' }
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
id: 'PL_GROUP_STOCK',
|
||||
name: 'PlStockModule',
|
||||
path: 'stock-module',
|
||||
meta: { title: '库存管理', keepAlive: false },
|
||||
children: [
|
||||
{
|
||||
id: 'PL_INBOUND',
|
||||
name: 'PlInbound',
|
||||
path: 'inbound',
|
||||
component: '/pl/inbound/index',
|
||||
meta: { title: '入库单', keepAlive: false, menuCode: 'pl:inbound:list' }
|
||||
},
|
||||
{
|
||||
id: 'PL_OUTBOUND',
|
||||
name: 'PlOutbound',
|
||||
path: 'outbound',
|
||||
component: '/pl/outbound/index',
|
||||
meta: { title: '出库单', keepAlive: false, menuCode: 'pl:outbound:list' }
|
||||
}
|
||||
]
|
||||
},
|
||||
// ── 计划子页(隐藏)与旧路径兼容重定向 ──
|
||||
{
|
||||
id: 'PL00000000000000000000000000011',
|
||||
name: 'PlPlanCreate',
|
||||
path: 'plan/create',
|
||||
component: '/pl/plan/form',
|
||||
meta: { title: '新增计划', keepAlive: false, isHide: true, menuCode: 'pl:plan:add' }
|
||||
},
|
||||
{
|
||||
id: 'PL00000000000000000000000000012',
|
||||
name: 'PlPlanEdit',
|
||||
path: 'plan/edit/:id',
|
||||
component: '/pl/plan/form',
|
||||
meta: { title: '编辑计划', keepAlive: false, isHide: true, menuCode: 'pl:plan:edit' }
|
||||
},
|
||||
{
|
||||
id: 'PL00000000000000000000000000013',
|
||||
name: 'PlPlanDetail',
|
||||
path: 'plan/detail/:id',
|
||||
component: '/pl/plan/detail',
|
||||
meta: { title: '计划详情', keepAlive: false, isHide: true, menuCode: 'pl:plan:query' }
|
||||
},
|
||||
{
|
||||
id: 'PL00000000000000000000000000014',
|
||||
name: 'PlPlanArrange',
|
||||
path: 'plan/arrange/:id',
|
||||
component: '/pl/plan/arrange',
|
||||
meta: { title: '运输安排', keepAlive: false, isHide: true, menuCode: 'pl:plan:arrange' }
|
||||
},
|
||||
{
|
||||
id: 'PL00000000000000000000000000004R',
|
||||
name: 'PlDriverRedirect',
|
||||
path: 'driver',
|
||||
redirect: '/vehicle-mgmt/base-info/personnel',
|
||||
meta: { title: '司机管理', isHide: true, menuCode: 'pl:driver:list' }
|
||||
},
|
||||
{
|
||||
id: 'PL00000000000000000000000000020',
|
||||
name: 'PlTransport',
|
||||
path: 'transport',
|
||||
component: '/pl/transport/index',
|
||||
meta: { title: '运输管理', keepAlive: false, isHide: true, menuCode: 'pl:transport:list' }
|
||||
},
|
||||
{
|
||||
id: 'PL00000000000000000000000000040',
|
||||
name: 'PlInventory',
|
||||
path: 'inventory',
|
||||
component: '/pl/inventory/ledger',
|
||||
meta: { title: '库存台账', keepAlive: false, isHide: true, menuCode: 'pl:inventory:list' }
|
||||
},
|
||||
{
|
||||
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/archive-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: '/vehicle-mgmt/base-info/carrier',
|
||||
meta: { title: '承运商信息', isHide: true }
|
||||
},
|
||||
{
|
||||
id: 'PL_REDIRECT_VEHICLE',
|
||||
name: 'PlVehicleRedirect',
|
||||
path: 'vehicle',
|
||||
redirect: '/vehicle-mgmt/base-info/vehicle',
|
||||
meta: { title: '三方车辆', isHide: true }
|
||||
},
|
||||
{
|
||||
id: 'PL_REDIRECT_SELF_VEHICLE',
|
||||
name: 'PlSelfVehicleRedirect',
|
||||
path: 'self-vehicle',
|
||||
redirect: '/vehicle-mgmt/base-info/self-vehicle',
|
||||
meta: { title: '山峡自有车辆', isHide: true }
|
||||
},
|
||||
{
|
||||
id: 'PL_REDIRECT_PERSONNEL',
|
||||
name: 'PlPersonnelRedirect',
|
||||
path: 'personnel',
|
||||
redirect: '/vehicle-mgmt/base-info/personnel',
|
||||
meta: { title: '山峡驾押人员', isHide: true }
|
||||
},
|
||||
{
|
||||
id: 'PL_REDIRECT_PERSONNEL_CARRIER',
|
||||
name: 'PlPersonnelCarrierRedirect',
|
||||
path: 'personnel-carrier',
|
||||
redirect: '/vehicle-mgmt/base-info/personnel-carrier',
|
||||
meta: { title: '三方驾押人员', isHide: true }
|
||||
},
|
||||
{
|
||||
id: 'PL_REDIRECT_TRANSPORT_ADDRESS',
|
||||
name: 'PlTransportAddressRedirect',
|
||||
path: 'transport-address',
|
||||
redirect: '/vehicle-mgmt/base-info/transport-address',
|
||||
meta: { title: '运输地址库', isHide: true }
|
||||
},
|
||||
{
|
||||
id: 'PL_REDIRECT_BASE_INFO',
|
||||
name: 'PlBaseInfoRedirect',
|
||||
path: 'base-info',
|
||||
redirect: '/vehicle-mgmt/base-info',
|
||||
meta: { title: '基础信息库', isHide: true }
|
||||
},
|
||||
{
|
||||
id: 'PL_REDIRECT_BASE_INFO_CARRIER_NESTED',
|
||||
name: 'PlBaseInfoCarrierNestedRedirect',
|
||||
path: 'base-info/carrier',
|
||||
redirect: '/vehicle-mgmt/base-info/carrier',
|
||||
meta: { title: '承运商信息', isHide: true }
|
||||
},
|
||||
{
|
||||
id: 'PL_REDIRECT_BASE_INFO_VEHICLE_NESTED',
|
||||
name: 'PlBaseInfoVehicleNestedRedirect',
|
||||
path: 'base-info/vehicle',
|
||||
redirect: '/vehicle-mgmt/base-info/vehicle',
|
||||
meta: { title: '三方车辆', isHide: true }
|
||||
},
|
||||
{
|
||||
id: 'PL_REDIRECT_BASE_INFO_SELF_VEHICLE_NESTED',
|
||||
name: 'PlBaseInfoSelfVehicleNestedRedirect',
|
||||
path: 'base-info/self-vehicle',
|
||||
redirect: '/vehicle-mgmt/base-info/self-vehicle',
|
||||
meta: { title: '山峡自有车辆', isHide: true }
|
||||
},
|
||||
{
|
||||
id: 'PL_REDIRECT_BASE_INFO_PERSONNEL_NESTED',
|
||||
name: 'PlBaseInfoPersonnelNestedRedirect',
|
||||
path: 'base-info/personnel',
|
||||
redirect: '/vehicle-mgmt/base-info/personnel',
|
||||
meta: { title: '山峡驾押人员', isHide: true }
|
||||
},
|
||||
{
|
||||
id: 'PL_REDIRECT_BASE_INFO_PERSONNEL_CARRIER_NESTED',
|
||||
name: 'PlBaseInfoPersonnelCarrierNestedRedirect',
|
||||
path: 'base-info/personnel-carrier',
|
||||
redirect: '/vehicle-mgmt/base-info/personnel-carrier',
|
||||
meta: { title: '三方驾押人员', isHide: true }
|
||||
},
|
||||
{
|
||||
id: 'PL_REDIRECT_BASE_INFO_ADDRESS_NESTED',
|
||||
name: 'PlBaseInfoAddressNestedRedirect',
|
||||
path: 'base-info/transport-address',
|
||||
redirect: '/vehicle-mgmt/base-info/transport-address',
|
||||
meta: { title: '运输地址库', isHide: true }
|
||||
},
|
||||
{
|
||||
id: 'PL_REDIRECT_VEHICLE_MGMT',
|
||||
name: 'PlVehicleMgmtRedirect',
|
||||
path: 'vehicle-mgmt',
|
||||
meta: { title: '车辆管理', keepAlive: false },
|
||||
redirect: '/vehicle-mgmt',
|
||||
meta: { title: '车辆管理', isHide: true }
|
||||
},
|
||||
{
|
||||
id: 'PL_REDIRECT_VEH_RECHARGE_APPLY',
|
||||
name: 'PlVehicleRechargeApplyRedirect',
|
||||
path: 'vehicle-recharge-apply',
|
||||
redirect: '/vehicle-mgmt/etc-recharge/vehicle-recharge-apply',
|
||||
meta: { title: 'ETC/加油充值申请', isHide: true }
|
||||
},
|
||||
{
|
||||
id: 'PL_REDIRECT_VEH_RECHARGE_APPLY_NESTED',
|
||||
name: 'PlVehicleRechargeApplyNestedRedirect',
|
||||
path: 'vehicle-mgmt/vehicle-recharge-apply',
|
||||
redirect: '/vehicle-mgmt/etc-recharge/vehicle-recharge-apply',
|
||||
meta: { title: 'ETC/加油充值申请', isHide: true }
|
||||
},
|
||||
{
|
||||
id: 'PL_REDIRECT_VEH_RECHARGE_RECORD',
|
||||
name: 'PlVehicleRechargeRecordRedirect',
|
||||
path: 'vehicle-recharge-record',
|
||||
redirect: '/vehicle-mgmt/etc-recharge/vehicle-recharge-record',
|
||||
meta: { title: 'ETC/加油充值发放管理', isHide: true }
|
||||
},
|
||||
{
|
||||
id: 'PL_REDIRECT_VEH_RECHARGE_RECORD_NESTED',
|
||||
name: 'PlVehicleRechargeRecordNestedRedirect',
|
||||
path: 'vehicle-mgmt/vehicle-recharge-record',
|
||||
redirect: '/vehicle-mgmt/etc-recharge/vehicle-recharge-record',
|
||||
meta: { title: 'ETC/加油充值发放管理', isHide: true }
|
||||
},
|
||||
{
|
||||
id: 'PL_REDIRECT_VEH_RECHARGE_APPROVAL',
|
||||
name: 'PlVehicleRechargeApprovalRedirect',
|
||||
path: 'vehicle-recharge-approval',
|
||||
redirect: '/vehicle-mgmt/etc-recharge/vehicle-recharge-approval',
|
||||
meta: { title: 'ETC/加油充值审批', isHide: true }
|
||||
},
|
||||
{
|
||||
id: 'PL_REDIRECT_VEH_RECHARGE_APPROVAL_NESTED',
|
||||
name: 'PlVehicleRechargeApprovalNestedRedirect',
|
||||
path: 'vehicle-mgmt/vehicle-recharge-approval',
|
||||
redirect: '/vehicle-mgmt/etc-recharge/vehicle-recharge-approval',
|
||||
meta: { title: 'ETC/加油充值审批', isHide: true }
|
||||
},
|
||||
{
|
||||
id: 'PL_REDIRECT_VEH_RECHARGE_WORKFLOW',
|
||||
name: 'PlVehicleRechargeWorkflowRedirect',
|
||||
path: 'vehicle-recharge-workflow',
|
||||
redirect: '/vehicle-mgmt/etc-recharge/vehicle-recharge-workflow',
|
||||
meta: { title: 'ETC/加油充值审批人设置', isHide: true }
|
||||
},
|
||||
{
|
||||
id: 'PL_REDIRECT_VEH_RECHARGE_WORKFLOW_NESTED',
|
||||
name: 'PlVehicleRechargeWorkflowNestedRedirect',
|
||||
path: 'vehicle-mgmt/vehicle-recharge-workflow',
|
||||
redirect: '/vehicle-mgmt/etc-recharge/vehicle-recharge-workflow',
|
||||
meta: { title: 'ETC/加油充值审批人设置', isHide: true }
|
||||
},
|
||||
{
|
||||
id: 'PL_REDIRECT_VEH_MAINT_APPLY',
|
||||
name: 'PlVehicleMaintenanceApplyRedirect',
|
||||
path: 'vehicle-maintenance-apply',
|
||||
redirect: '/vehicle-mgmt/maintenance/vehicle-maintenance-apply',
|
||||
meta: { title: '车辆维保申请', isHide: true }
|
||||
},
|
||||
{
|
||||
id: 'PL_REDIRECT_VEH_MAINT_APPLY_NESTED',
|
||||
name: 'PlVehicleMaintenanceApplyNestedRedirect',
|
||||
path: 'vehicle-mgmt/vehicle-maintenance-apply',
|
||||
redirect: '/vehicle-mgmt/maintenance/vehicle-maintenance-apply',
|
||||
meta: { title: '车辆维保申请', isHide: true }
|
||||
},
|
||||
{
|
||||
id: 'PL_REDIRECT_VEH_MAINT_PROCESS',
|
||||
name: 'PlVehicleMaintenanceProcessRedirect',
|
||||
path: 'vehicle-maintenance-process',
|
||||
redirect: '/vehicle-mgmt/maintenance/vehicle-maintenance-process',
|
||||
meta: { title: '车辆维保处理登记', isHide: true }
|
||||
},
|
||||
{
|
||||
id: 'PL_REDIRECT_VEH_MAINT_PROCESS_NESTED',
|
||||
name: 'PlVehicleMaintenanceProcessNestedRedirect',
|
||||
path: 'vehicle-mgmt/vehicle-maintenance-process',
|
||||
redirect: '/vehicle-mgmt/maintenance/vehicle-maintenance-process',
|
||||
meta: { title: '车辆维保处理登记', isHide: true }
|
||||
},
|
||||
{
|
||||
id: 'PL_REDIRECT_VEH_UREA_APPLY',
|
||||
name: 'PlVehicleUreaApplyRedirect',
|
||||
path: 'vehicle-urea-apply',
|
||||
redirect: '/vehicle-mgmt/vehicle-urea-apply',
|
||||
meta: { title: '车辆尿素申请', isHide: true }
|
||||
},
|
||||
{
|
||||
id: 'PL_REDIRECT_VEH_UREA_APPLY_NESTED',
|
||||
name: 'PlVehicleUreaApplyNestedRedirect',
|
||||
path: 'vehicle-mgmt/vehicle-urea-apply',
|
||||
redirect: '/vehicle-mgmt/vehicle-urea-apply',
|
||||
meta: { title: '车辆尿素申请', isHide: true }
|
||||
},
|
||||
{
|
||||
id: 'PL_REDIRECT_VEH_UREA_DISBURSE',
|
||||
name: 'PlVehicleUreaDisburseRedirect',
|
||||
path: 'vehicle-urea-disburse',
|
||||
redirect: '/vehicle-mgmt/vehicle-urea-disburse',
|
||||
meta: { title: '车辆尿素发放登记', isHide: true }
|
||||
},
|
||||
{
|
||||
id: 'PL_REDIRECT_VEH_UREA_DISBURSE_NESTED',
|
||||
name: 'PlVehicleUreaDisburseNestedRedirect',
|
||||
path: 'vehicle-mgmt/vehicle-urea-disburse',
|
||||
redirect: '/vehicle-mgmt/vehicle-urea-disburse',
|
||||
meta: { title: '车辆尿素发放登记', isHide: true }
|
||||
},
|
||||
{
|
||||
id: 'PL_REDIRECT_VEH_FUEL_REG',
|
||||
name: 'PlVehicleFuelRegisterRedirect',
|
||||
path: 'vehicle-fuel-register',
|
||||
redirect: '/vehicle-mgmt/fuel-register/vehicle-fuel-register',
|
||||
meta: { title: '加油登记', isHide: true }
|
||||
},
|
||||
{
|
||||
id: 'PL_REDIRECT_VEH_FUEL_REG_NESTED',
|
||||
name: 'PlVehicleFuelRegisterNestedRedirect',
|
||||
path: 'vehicle-mgmt/vehicle-fuel-register',
|
||||
redirect: '/vehicle-mgmt/fuel-register/vehicle-fuel-register',
|
||||
meta: { title: '加油登记', isHide: true }
|
||||
},
|
||||
{
|
||||
id: 'PL_REDIRECT_VEH_FUEL_SUM',
|
||||
name: 'PlVehicleFuelSummaryRedirect',
|
||||
path: 'vehicle-fuel-summary',
|
||||
redirect: '/vehicle-mgmt/fuel-register/vehicle-fuel-summary',
|
||||
meta: { title: '加油信息汇总', isHide: true }
|
||||
},
|
||||
{
|
||||
id: 'PL_REDIRECT_VEH_FUEL_SUM_NESTED',
|
||||
name: 'PlVehicleFuelSummaryNestedRedirect',
|
||||
path: 'vehicle-mgmt/vehicle-fuel-summary',
|
||||
redirect: '/vehicle-mgmt/fuel-register/vehicle-fuel-summary',
|
||||
meta: { title: '加油信息汇总', isHide: true }
|
||||
},
|
||||
{
|
||||
id: 'PL_REDIRECT_DOC_REMINDER',
|
||||
name: 'PlDocumentReminderRedirect',
|
||||
path: 'document-reminder',
|
||||
redirect: '/pl/document-reminder-module/document-reminder',
|
||||
meta: { title: '证件提醒', isHide: true }
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
id: 'PL_GROUP_VEHICLE',
|
||||
name: 'PlVehicleModule',
|
||||
path: '/vehicle-mgmt',
|
||||
component: '/index/index',
|
||||
meta: { title: '车辆管理', icon: 'ri:car-line', keepAlive: false, roles: ['admin'] },
|
||||
children: [
|
||||
{
|
||||
id: 'PL_GROUP_VEH_RECHARGE',
|
||||
name: 'PlVehicleRechargeGroup',
|
||||
path: 'etc-recharge',
|
||||
meta: { title: 'ETC/加油充值管理', keepAlive: false },
|
||||
children: [
|
||||
{
|
||||
id: 'PL_VEH_RECHARGE_APPLY',
|
||||
@@ -138,43 +514,24 @@ export const plRoutes: AppRouteRecord[] = [
|
||||
meta: { title: 'ETC/加油充值发放管理', keepAlive: false, 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: false, 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: false, menuCode: 'pl:vehicle-maintenance-process:list' }
|
||||
},
|
||||
{
|
||||
id: 'PL_VEH_UREA_APPLY',
|
||||
name: 'PlVehicleUreaApply',
|
||||
path: 'vehicle-urea-apply',
|
||||
component: '/pl/vehicle-urea-apply/index',
|
||||
id: 'PL_VEH_RECHARGE_WF',
|
||||
name: 'PlVehicleRechargeWorkflow',
|
||||
path: 'vehicle-recharge-workflow',
|
||||
component: '/pl/vehicle-recharge-workflow/index',
|
||||
meta: {
|
||||
title: '车辆尿素申请',
|
||||
title: 'ETC/加油充值审批人设置',
|
||||
keepAlive: false,
|
||||
isHide: true,
|
||||
menuCode: 'pl:vehicle-urea-apply:list'
|
||||
menuCode: 'pl:vehicle-recharge-workflow:list'
|
||||
}
|
||||
},
|
||||
{
|
||||
id: 'PL_VEH_UREA_DISBURSE',
|
||||
name: 'PlVehicleUreaDisburse',
|
||||
path: 'vehicle-urea-disburse',
|
||||
component: '/pl/vehicle-urea-disburse/index',
|
||||
meta: {
|
||||
title: '车辆尿素发放登记',
|
||||
keepAlive: false,
|
||||
isHide: true,
|
||||
menuCode: 'pl:vehicle-urea-disburse:list'
|
||||
}
|
||||
},
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
id: 'PL_GROUP_VEH_FUEL',
|
||||
name: 'PlVehicleFuelGroup',
|
||||
path: 'fuel-register',
|
||||
meta: { title: '加油登记管理', keepAlive: false },
|
||||
children: [
|
||||
{
|
||||
id: 'PL_VEH_FUEL_REG',
|
||||
name: 'PlVehicleFuelRegister',
|
||||
@@ -192,32 +549,28 @@ export const plRoutes: AppRouteRecord[] = [
|
||||
keepAlive: false,
|
||||
menuCode: 'pl:vehicle-fuel-summary:list'
|
||||
}
|
||||
},
|
||||
{
|
||||
id: 'PL_VEH_RECHARGE_WF',
|
||||
name: 'PlVehicleRechargeWorkflow',
|
||||
path: 'vehicle-recharge-workflow',
|
||||
component: '/pl/vehicle-recharge-workflow/index',
|
||||
meta: {
|
||||
title: 'ETC/加油充值审批人配置',
|
||||
keepAlive: false,
|
||||
menuCode: 'pl:vehicle-recharge-workflow:list'
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
id: 'PL_GROUP_DOC',
|
||||
name: 'PlDocumentReminderModule',
|
||||
path: 'document-reminder-module',
|
||||
meta: { title: '证件提醒', keepAlive: false },
|
||||
id: 'PL_GROUP_VEH_MAINT',
|
||||
name: 'PlVehicleMaintGroup',
|
||||
path: 'maintenance',
|
||||
meta: { title: '车辆维保管理', keepAlive: false },
|
||||
children: [
|
||||
{
|
||||
id: 'PL_DOC_REMINDER',
|
||||
name: 'PlDocumentReminder',
|
||||
path: 'document-reminder',
|
||||
component: '/pl/inventory/document-reminder',
|
||||
meta: { title: '证件提醒', keepAlive: false, menuCode: 'pl:document:list' }
|
||||
id: 'PL_VEH_MAINT_APPLY',
|
||||
name: 'PlVehicleMaintenanceApply',
|
||||
path: 'vehicle-maintenance-apply',
|
||||
component: '/pl/vehicle-maintenance-apply/index',
|
||||
meta: { title: '车辆维保申请', keepAlive: false, 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: false, menuCode: 'pl:vehicle-maintenance-process:list' }
|
||||
}
|
||||
]
|
||||
},
|
||||
@@ -286,216 +639,29 @@ export const plRoutes: AppRouteRecord[] = [
|
||||
}
|
||||
]
|
||||
},
|
||||
// ── 计划子页(隐藏)与旧路径兼容重定向 ──
|
||||
{
|
||||
id: 'PL00000000000000000000000000011',
|
||||
name: 'PlPlanCreate',
|
||||
path: 'plan/create',
|
||||
component: '/pl/plan/form',
|
||||
meta: { title: '新增计划', keepAlive: false, isHide: true, menuCode: 'pl:plan:add' }
|
||||
},
|
||||
{
|
||||
id: 'PL00000000000000000000000000012',
|
||||
name: 'PlPlanEdit',
|
||||
path: 'plan/edit/:id',
|
||||
component: '/pl/plan/form',
|
||||
meta: { title: '编辑计划', keepAlive: false, isHide: true, menuCode: 'pl:plan:edit' }
|
||||
},
|
||||
{
|
||||
id: 'PL00000000000000000000000000013',
|
||||
name: 'PlPlanDetail',
|
||||
path: 'plan/detail/:id',
|
||||
component: '/pl/plan/detail',
|
||||
meta: { title: '计划详情', keepAlive: false, isHide: true, menuCode: 'pl:plan:query' }
|
||||
},
|
||||
{
|
||||
id: 'PL00000000000000000000000000014',
|
||||
name: 'PlPlanArrange',
|
||||
path: 'plan/arrange/:id',
|
||||
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',
|
||||
path: 'transport',
|
||||
component: '/pl/transport/index',
|
||||
meta: { title: '运输管理', keepAlive: false, isHide: true, menuCode: 'pl:transport:list' }
|
||||
},
|
||||
{
|
||||
id: 'PL00000000000000000000000000040',
|
||||
name: 'PlInventory',
|
||||
path: 'inventory',
|
||||
component: '/pl/inventory/ledger',
|
||||
meta: { title: '库存台账', keepAlive: false, isHide: true, menuCode: 'pl:inventory:list' }
|
||||
},
|
||||
{
|
||||
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_PERSONNEL_CARRIER',
|
||||
name: 'PlPersonnelCarrierRedirect',
|
||||
path: 'personnel-carrier',
|
||||
redirect: '/pl/base-info/personnel-carrier',
|
||||
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_RECHARGE_APPROVAL',
|
||||
name: 'PlVehicleRechargeApprovalRedirect',
|
||||
path: 'vehicle-recharge-approval',
|
||||
redirect: '/pl/vehicle-mgmt/vehicle-recharge-approval',
|
||||
meta: { title: 'ETC/加油充值审批', isHide: true }
|
||||
},
|
||||
{
|
||||
id: 'PL_REDIRECT_VEH_RECHARGE_WORKFLOW',
|
||||
name: 'PlVehicleRechargeWorkflowRedirect',
|
||||
path: 'vehicle-recharge-workflow',
|
||||
redirect: '/pl/vehicle-mgmt/vehicle-recharge-workflow',
|
||||
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',
|
||||
id: 'PL_VEH_UREA_APPLY',
|
||||
name: 'PlVehicleUreaApply',
|
||||
path: 'vehicle-urea-apply',
|
||||
redirect: '/pl/vehicle-mgmt/vehicle-urea-apply',
|
||||
meta: { title: '车辆尿素申请', isHide: true }
|
||||
component: '/pl/vehicle-urea-apply/index',
|
||||
meta: {
|
||||
title: '车辆尿素申请',
|
||||
keepAlive: false,
|
||||
isHide: true,
|
||||
menuCode: 'pl:vehicle-urea-apply:list'
|
||||
}
|
||||
},
|
||||
{
|
||||
id: 'PL_REDIRECT_VEH_UREA_DISBURSE',
|
||||
name: 'PlVehicleUreaDisburseRedirect',
|
||||
id: 'PL_VEH_UREA_DISBURSE',
|
||||
name: 'PlVehicleUreaDisburse',
|
||||
path: 'vehicle-urea-disburse',
|
||||
redirect: '/pl/vehicle-mgmt/vehicle-urea-disburse',
|
||||
meta: { title: '车辆尿素发放登记', isHide: true }
|
||||
},
|
||||
{
|
||||
id: 'PL_REDIRECT_VEH_FUEL_REG',
|
||||
name: 'PlVehicleFuelRegisterRedirect',
|
||||
path: 'vehicle-fuel-register',
|
||||
redirect: '/pl/vehicle-mgmt/vehicle-fuel-register',
|
||||
meta: { title: '加油登记', isHide: true }
|
||||
},
|
||||
{
|
||||
id: 'PL_REDIRECT_VEH_FUEL_SUM',
|
||||
name: 'PlVehicleFuelSummaryRedirect',
|
||||
path: 'vehicle-fuel-summary',
|
||||
redirect: '/pl/vehicle-mgmt/vehicle-fuel-summary',
|
||||
meta: { title: '加油信息汇总', isHide: true }
|
||||
},
|
||||
{
|
||||
id: 'PL_REDIRECT_DOC_REMINDER',
|
||||
name: 'PlDocumentReminderRedirect',
|
||||
path: 'document-reminder',
|
||||
redirect: '/pl/document-reminder-module/document-reminder',
|
||||
meta: { title: '证件提醒', isHide: true }
|
||||
component: '/pl/vehicle-urea-disburse/index',
|
||||
meta: {
|
||||
title: '车辆尿素发放登记',
|
||||
keepAlive: false,
|
||||
isHide: true,
|
||||
menuCode: 'pl:vehicle-urea-disburse:list'
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -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