103 lines
5.5 KiB
TypeScript
103 lines
5.5 KiB
TypeScript
import type { RouteRecordRaw } from 'vue-router'
|
|
import { overseasMasterDataPermissions as permission } from './permissions'
|
|
|
|
export const overseasMasterDataRoutes = [
|
|
{
|
|
path: 'overseas-master-data/capacity-offers',
|
|
name: 'overseas-master-data-capacity-offers',
|
|
component: () => import('./pages/DispatchCapacityDemandsView.vue'),
|
|
meta: { title: '散板需求', description: '查看车次余位与调度联系方式', permission: permission.capacityOfferList, permissionAnyOf: [permission.capacityOfferManage], showPageHeading: false },
|
|
},
|
|
{
|
|
path: 'overseas-master-data/capacity-offers/:offerNo',
|
|
name: 'overseas-master-data-capacity-offer-detail',
|
|
component: () => import('./pages/CapacityOfferDetailView.vue'),
|
|
meta: { title: '散板需求详情', description: '查看车次分段余位与调度联系方式', permission: permission.capacityOfferList, permissionAnyOf: [permission.capacityOfferManage], showPageHeading: false },
|
|
},
|
|
{
|
|
path: 'overseas-master-data/fleet-quotes',
|
|
name: 'overseas-master-data-fleet-quotes',
|
|
component: () => import('./pages/FleetQuotesView.vue'),
|
|
meta: { title: '车队报价', description: '维护车队采购与外接销售报价', permission: permission.fleetQuoteList, showPageHeading: false },
|
|
},
|
|
{
|
|
path: 'overseas-master-data/trip-operations',
|
|
name: 'overseas-master-data-trip-operations',
|
|
component: () => import('./pages/TripOperationsView.vue'),
|
|
meta: { title: '出车记录', description: '按实际发车记录查询车辆运营统计', permission: permission.operationsList, showPageHeading: false },
|
|
},
|
|
{
|
|
path: 'overseas-master-data/owned-business',
|
|
name: 'overseas-master-data-owned-business',
|
|
component: () => import('./pages/OwnedBusinessView.vue'),
|
|
meta: { title: '自有业务', description: '查看未接入拼车货物的已装车排车与运营记录', permission: permission.ownedBusinessList, showPageHeading: false },
|
|
},
|
|
{
|
|
path: 'overseas-master-data/owned-business/:dispatchNo',
|
|
name: 'overseas-master-data-owned-business-detail',
|
|
component: () => import('./pages/OwnedBusinessDetailView.vue'),
|
|
meta: { title: '自有业务详情', description: '查看原排车事实与附加运营信息', permission: permission.ownedBusinessList, showPageHeading: false },
|
|
},
|
|
{
|
|
path: 'overseas-master-data/outsourced-business',
|
|
name: 'overseas-master-data-outsourced-business',
|
|
component: () => import('./pages/OutsourcedBusinessView.vue'),
|
|
meta: { title: '外配任务', description: '查看已实际接入拼车货物的装车后履约与承运信息', permission: permission.outsourcedBusinessList, showPageHeading: false },
|
|
},
|
|
{
|
|
path: 'overseas-master-data/outsourced-business/:dispatchNo',
|
|
name: 'overseas-master-data-outsourced-business-detail',
|
|
component: () => import('./pages/OutsourcedBusinessDetailView.vue'),
|
|
meta: { title: '外配任务详情', description: '查看原排车及外配承运登记', permission: permission.outsourcedBusinessList, showPageHeading: false },
|
|
},
|
|
{
|
|
path: 'overseas-master-data/trips',
|
|
name: 'overseas-master-data-trips',
|
|
component: () => import('./pages/TripsView.vue'),
|
|
meta: { title: '车次管理', description: '安排车辆司机、关联货物并核对整车装载', permission: permission.tripList },
|
|
},
|
|
{
|
|
path: 'overseas-master-data/trips/:tripNo',
|
|
name: 'overseas-master-data-trip-detail',
|
|
component: () => import('./pages/TripDetailView.vue'),
|
|
meta: { title: '车次详情', description: '分配、装载、结案与资源任务结束', permission: permission.tripList, showPageHeading: false },
|
|
},
|
|
{
|
|
path: 'overseas-master-data/drivers',
|
|
name: 'overseas-master-data-drivers',
|
|
component: () => import('./pages/DriversView.vue'),
|
|
meta: { title: '司机管理', description: '维护司机档案、驾驶证及到期提醒', permission: permission.driverList },
|
|
},
|
|
{
|
|
path: 'overseas-master-data/drivers/:driverId',
|
|
name: 'overseas-master-data-driver-detail',
|
|
component: () => import('./pages/DriverDetailView.vue'),
|
|
meta: { title: '司机详情', description: '司机档案、证照审核与任务资格校验', permission: permission.driverList, showPageHeading: false },
|
|
},
|
|
{
|
|
path: 'overseas-master-data/quotes',
|
|
name: 'overseas-master-data-quotes',
|
|
component: () => import('./pages/OverseasQuotesView.vue'),
|
|
meta: { showPageHeading: false, title: '海外仓报价', description: '维护海外合作仓仓储作业与中转派送报价', permission: permission.quoteList },
|
|
},
|
|
{
|
|
path: 'overseas-master-data/exchange-rates',
|
|
name: 'overseas-master-data-exchange-rates',
|
|
component: () => import('./pages/ExchangeRatesView.vue'),
|
|
meta: { showPageHeading: false, title: '汇率管理', description: '维护美元兑人民币月平均汇率', permission: permission.exchangeRateList },
|
|
},
|
|
{
|
|
path: 'overseas-master-data/vehicles',
|
|
name: 'overseas-master-data-vehicles',
|
|
component: () => import('./pages/VehiclesView.vue'),
|
|
meta: { showPageHeading: false, title: '车辆列表', description: '查询国内与海外自有、外派车辆档案', permission: permission.vehicleList },
|
|
},
|
|
{
|
|
path: 'overseas-master-data/vehicles/:vehicleId',
|
|
name: 'overseas-master-data-vehicle-detail',
|
|
component: () => import('./pages/VehicleDetailView.vue'),
|
|
meta: { title: '车辆详情', description: '查看车辆档案、保养加油及车辆运维记录', permission: permission.vehicleList, showPageHeading: false },
|
|
},
|
|
] satisfies RouteRecordRaw[]
|
|
|