补齐证书齐备、证件折算、移动用证和合同绑定,并带上报销批量发放、付款备注以及个人开发流程升级,便于继续讨论已安排计划的调整规则。 Co-authored-by: Cursor <cursoragent@cursor.com>
355 lines
12 KiB
TypeScript
355 lines
12 KiB
TypeScript
import { AppRouteRecordRaw } from '@/utils/router'
|
|
|
|
/**
|
|
* 静态路由配置(不需要权限就能访问的路由)
|
|
*
|
|
* 属性说明:
|
|
* isHideTab: true 表示不在标签页中显示
|
|
*
|
|
* 注意事项:
|
|
* 1、path、name 不要和动态路由冲突,否则会导致路由冲突无法访问
|
|
* 2、静态路由不管是否登录都可以访问
|
|
*/
|
|
export const staticRoutes: AppRouteRecordRaw[] = [
|
|
{
|
|
path: '/auth/login',
|
|
name: 'Login',
|
|
component: () => import('@views/auth/login/index.vue'),
|
|
meta: { title: 'menus.login.title', isHideTab: true }
|
|
},
|
|
{
|
|
path: '/300',
|
|
name: 'Exception403',
|
|
component: () => import('@views/exception/403/index.vue'),
|
|
meta: { title: '403', isHideTab: true }
|
|
},
|
|
{
|
|
path: '/400',
|
|
name: 'Exception404',
|
|
component: () => import('@views/exception/404/index.vue'),
|
|
meta: { title: '404', isHideTab: true }
|
|
},
|
|
{
|
|
path: '/500',
|
|
name: 'Exception500',
|
|
component: () => import('@views/exception/500/index.vue'),
|
|
meta: { title: '500', isHideTab: true }
|
|
},
|
|
{
|
|
path: '/403',
|
|
redirect: '/300'
|
|
},
|
|
{
|
|
path: '/404',
|
|
redirect: '/400'
|
|
},
|
|
{
|
|
path: '/outside',
|
|
component: () => import('@views/index/index.vue'),
|
|
name: 'Outside',
|
|
meta: { title: 'menus.outside.title' },
|
|
children: [
|
|
{
|
|
path: '/outside/iframe/:path',
|
|
name: 'Iframe',
|
|
component: () => import('@/views/outside/Iframe.vue'),
|
|
meta: { title: 'iframe' }
|
|
}
|
|
]
|
|
},
|
|
{
|
|
path: '/public/pl/transport-site/:token/history',
|
|
name: 'PublicPlTransportMultiStopSiteHistory',
|
|
component: () => import('@views/public/pl/transport-site/history.vue'),
|
|
meta: { title: '现场记录', isHideTab: true, isPublicMobile: true }
|
|
},
|
|
{
|
|
path: '/public/pl/transport-site/:token',
|
|
name: 'PublicPlTransportMultiStopSite',
|
|
component: () => import('@views/public/pl/transport-site/index.vue'),
|
|
meta: { title: '现场回传', isHideTab: true, isPublicMobile: true }
|
|
},
|
|
{
|
|
path: '/public/pl/transport/:token/history',
|
|
name: 'PublicPlTransportHistory',
|
|
component: () => import('@views/public/pl/transport/history.vue'),
|
|
meta: { title: '运输记录', isHideTab: true, isPublicMobile: true }
|
|
},
|
|
{
|
|
path: '/public/pl/transport/:token',
|
|
name: 'PublicPlTransportDriver',
|
|
component: () => import('@views/public/pl/transport/index.vue'),
|
|
meta: { title: '运输计划', isHideTab: true, isPublicMobile: true }
|
|
},
|
|
{
|
|
path: '/public/pl/site/:token',
|
|
name: 'PublicPlTransportSite',
|
|
component: () => import('@views/public/pl/site/index.vue'),
|
|
meta: { title: '运输现场', isHideTab: true, isPublicMobile: true }
|
|
},
|
|
{
|
|
path: '/public/pl/inbound/:token/history',
|
|
name: 'PublicPlInboundHistory',
|
|
component: () => import('@views/public/pl/inbound/history.vue'),
|
|
meta: { title: '现场记录', isHideTab: true, isPublicMobile: true }
|
|
},
|
|
{
|
|
path: '/public/pl/inbound/:token',
|
|
name: 'PublicPlInboundOrder',
|
|
component: () => import('@views/public/pl/inbound/index.vue'),
|
|
meta: { title: '入库单', isHideTab: true, isPublicMobile: true }
|
|
},
|
|
{
|
|
path: '/public/pl/outbound/:token/history',
|
|
name: 'PublicPlOutboundHistory',
|
|
component: () => import('@views/public/pl/outbound/history.vue'),
|
|
meta: { title: '现场记录', isHideTab: true, isPublicMobile: true }
|
|
},
|
|
{
|
|
path: '/public/pl/outbound/:token',
|
|
name: 'PublicPlOutboundOrder',
|
|
component: () => import('@views/public/pl/outbound/index.vue'),
|
|
meta: { title: '出库单', isHideTab: true, isPublicMobile: true }
|
|
},
|
|
{
|
|
path: '/public/pl/pound-qrcode/:inventoryId',
|
|
name: 'PublicPlPoundQrcode',
|
|
component: () => import('@views/public/pl/pound-qrcode/index.vue'),
|
|
meta: { title: '磅单二维码', isHideTab: true, isPublicMobile: true }
|
|
},
|
|
{
|
|
path: '/public/db/inventory/:token',
|
|
name: 'PublicDbInventorySite',
|
|
component: () => import('@views/public/db/inventory/index.vue'),
|
|
meta: { title: '出入库单', isHideTab: true, isPublicMobile: true }
|
|
},
|
|
{
|
|
path: '/public/duty/:token',
|
|
name: 'PublicDutyGrab',
|
|
component: () => import('@views/public/duty/index.vue'),
|
|
meta: { title: '值班抢班', isHideTab: true, isPublicMobile: true }
|
|
},
|
|
{
|
|
path: '/m/pl/site-dispatch-calendar',
|
|
name: 'MpSiteDispatchCalendar',
|
|
component: () => import('@views/m/pl/site-dispatch-calendar/index.vue'),
|
|
meta: { title: '现场派车日历', isHideTab: true, isMpWebview: true }
|
|
},
|
|
{
|
|
path: '/m/pl/dispatch-calendar',
|
|
name: 'MpDispatchCalendar',
|
|
component: () => import('@views/m/pl/dispatch-calendar/index.vue'),
|
|
meta: { title: '派车日历', isHideTab: true, isMpWebview: true }
|
|
},
|
|
{
|
|
path: '/m/pl/legal-use-document',
|
|
name: 'MpPlLegalUseDocument',
|
|
component: () => import('@views/m/pl/legal-use-document/index.vue'),
|
|
meta: { title: '合法使用证明', isHideTab: true, isMpWebview: true }
|
|
},
|
|
{
|
|
path: '/m/pl/plan-cert',
|
|
name: 'MpPlPlanCert',
|
|
component: () => import('@views/m/pl/plan-cert/index.vue'),
|
|
meta: { title: '运输证件管理', isHideTab: true, isMpWebview: true }
|
|
},
|
|
{
|
|
path: '/m/pl/plan-cert/archive/:kind/create',
|
|
name: 'MpPlPlanCertArchiveCreate',
|
|
component: () => import('@views/m/pl/plan-cert/archive-form.vue'),
|
|
meta: { title: '新增证件', isHideTab: true, isMpWebview: true }
|
|
},
|
|
{
|
|
path: '/m/pl/plan-cert/archive/:kind/:id/edit',
|
|
name: 'MpPlPlanCertArchiveEdit',
|
|
component: () => import('@views/m/pl/plan-cert/archive-form.vue'),
|
|
meta: { title: '编辑证件', isHideTab: true, isMpWebview: true }
|
|
},
|
|
{
|
|
path: '/m/pl/plan-cert/archive/:kind/:id',
|
|
name: 'MpPlPlanCertArchive',
|
|
component: () => import('@views/m/pl/plan-cert/archive-detail.vue'),
|
|
meta: { title: '证件建档', isHideTab: true, isMpWebview: true }
|
|
},
|
|
{
|
|
path: '/m/pl/plan-cert/contract/:id',
|
|
name: 'MpPlPlanCertContract',
|
|
component: () => import('@views/m/pl/plan-cert/contract-detail.vue'),
|
|
meta: { title: '合同用证', isHideTab: true, isMpWebview: true }
|
|
},
|
|
{
|
|
path: '/m/pl/plan-cert/usage/:kind/:id',
|
|
name: 'MpPlPlanCertUsage',
|
|
component: () => import('@views/m/pl/plan-cert/usage-detail.vue'),
|
|
meta: { title: '证件用量', isHideTab: true, isMpWebview: true }
|
|
},
|
|
{
|
|
path: '/m/pl/plan-cert/:id',
|
|
name: 'MpPlPlanCertDetail',
|
|
component: () => import('@views/m/pl/plan-cert/detail.vue'),
|
|
meta: { title: '计划用证详情', isHideTab: true, isMpWebview: true }
|
|
},
|
|
{
|
|
path: '/m/pl/plan',
|
|
name: 'MpPlPlanList',
|
|
component: () => import('@views/m/pl/plan/index.vue'),
|
|
meta: { title: '运输计划', isHideTab: true, isMpWebview: true }
|
|
},
|
|
{
|
|
path: '/m/pl/plan/new',
|
|
name: 'MpPlPlanNew',
|
|
component: () => import('@views/m/pl/plan/form.vue'),
|
|
meta: { title: '新增计划', isHideTab: true, isMpWebview: true }
|
|
},
|
|
{
|
|
path: '/m/pl/plan/paste',
|
|
name: 'MpPlPlanPaste',
|
|
component: () => import('@views/m/pl/plan/paste.vue'),
|
|
meta: { title: '三方人车快速创建', isHideTab: true, isMpWebview: true }
|
|
},
|
|
{
|
|
path: '/m/pl/plan/:id/edit',
|
|
name: 'MpPlPlanEdit',
|
|
component: () => import('@views/m/pl/plan/form.vue'),
|
|
meta: { title: '编辑计划', isHideTab: true, isMpWebview: true }
|
|
},
|
|
{
|
|
path: '/m/pl/plan/:id/arrange',
|
|
name: 'MpPlPlanArrange',
|
|
component: () => import('@views/m/pl/plan/form.vue'),
|
|
meta: { title: '安排运输', isHideTab: true, isMpWebview: true }
|
|
},
|
|
{
|
|
path: '/m/pl/plan/:id',
|
|
name: 'MpPlPlanDetail',
|
|
component: () => import('@views/m/pl/plan/detail.vue'),
|
|
meta: { title: '计划详情', isHideTab: true, isMpWebview: true }
|
|
},
|
|
{
|
|
path: '/m/crm/customer',
|
|
name: 'MpCrmCustomerList',
|
|
component: () => import('@views/m/crm/customer/index.vue'),
|
|
meta: { title: '客户管理', isHideTab: true, isMpWebview: true }
|
|
},
|
|
{
|
|
path: '/m/crm/customer/new',
|
|
name: 'MpCrmCustomerNew',
|
|
component: () => import('@views/m/crm/customer/form.vue'),
|
|
meta: { title: '新增客户', isHideTab: true, isMpWebview: true }
|
|
},
|
|
{
|
|
path: '/m/crm/customer/:id/edit',
|
|
name: 'MpCrmCustomerEdit',
|
|
component: () => import('@views/m/crm/customer/form.vue'),
|
|
meta: { title: '编辑客户', isHideTab: true, isMpWebview: true }
|
|
},
|
|
{
|
|
path: '/m/crm/customer/:id',
|
|
name: 'MpCrmCustomerDetail',
|
|
component: () => import('@views/m/crm/customer/detail.vue'),
|
|
meta: { title: '客户详情', isHideTab: true, isMpWebview: true }
|
|
},
|
|
{
|
|
path: '/m/crm/product',
|
|
name: 'MpCrmProductList',
|
|
component: () => import('@views/m/crm/product/index.vue'),
|
|
meta: { title: '产品管理', isHideTab: true, isMpWebview: true }
|
|
},
|
|
{
|
|
path: '/m/crm/product/new',
|
|
name: 'MpCrmProductNew',
|
|
component: () => import('@views/m/crm/product/form.vue'),
|
|
meta: { title: '新增产品', isHideTab: true, isMpWebview: true }
|
|
},
|
|
{
|
|
path: '/m/crm/product/categories',
|
|
name: 'MpCrmProductCategories',
|
|
component: () => import('@views/m/crm/product/categories.vue'),
|
|
meta: { title: '产品分类', isHideTab: true, isMpWebview: true }
|
|
},
|
|
{
|
|
path: '/m/crm/product/:id/edit',
|
|
name: 'MpCrmProductEdit',
|
|
component: () => import('@views/m/crm/product/form.vue'),
|
|
meta: { title: '编辑产品', isHideTab: true, isMpWebview: true }
|
|
},
|
|
{
|
|
path: '/m/crm/product/:id',
|
|
name: 'MpCrmProductDetail',
|
|
component: () => import('@views/m/crm/product/detail.vue'),
|
|
meta: { title: '产品详情', isHideTab: true, isMpWebview: true }
|
|
},
|
|
{
|
|
path: '/m/crm/quote',
|
|
name: 'MpCrmQuoteList',
|
|
component: () => import('@views/m/crm/quote/index.vue'),
|
|
meta: { title: '报价单管理', isHideTab: true, isMpWebview: true }
|
|
},
|
|
{
|
|
path: '/m/crm/quote/approval',
|
|
name: 'MpCrmQuoteApproval',
|
|
component: () => import('@views/m/crm/quote/approval.vue'),
|
|
meta: { title: '报价单审批', isHideTab: true, isMpWebview: true }
|
|
},
|
|
{
|
|
path: '/m/crm/quote/new',
|
|
name: 'MpCrmQuoteNew',
|
|
component: () => import('@views/m/crm/quote/form.vue'),
|
|
meta: { title: '新增报价单', isHideTab: true, isMpWebview: true }
|
|
},
|
|
{
|
|
path: '/m/crm/quote/:id/edit',
|
|
name: 'MpCrmQuoteEdit',
|
|
component: () => import('@views/m/crm/quote/form.vue'),
|
|
meta: { title: '编辑报价单', isHideTab: true, isMpWebview: true }
|
|
},
|
|
{
|
|
path: '/m/crm/quote/:id/versions',
|
|
name: 'MpCrmQuoteVersions',
|
|
component: () => import('@views/m/crm/quote/versions.vue'),
|
|
meta: { title: '版本历史', isHideTab: true, isMpWebview: true }
|
|
},
|
|
{
|
|
path: '/m/crm/quote/:id',
|
|
name: 'MpCrmQuoteDetail',
|
|
component: () => import('@views/m/crm/quote/detail.vue'),
|
|
meta: { title: '报价单详情', isHideTab: true, isMpWebview: true }
|
|
},
|
|
{
|
|
path: '/m/crm/contract',
|
|
name: 'MpCrmContractList',
|
|
component: () => import('@views/m/crm/contract/index.vue'),
|
|
meta: { title: '合同管理', isHideTab: true, isMpWebview: true }
|
|
},
|
|
{
|
|
path: '/m/crm/contract/approval',
|
|
name: 'MpCrmContractApproval',
|
|
component: () => import('@views/m/crm/contract/approval.vue'),
|
|
meta: { title: '合同审批', isHideTab: true, isMpWebview: true }
|
|
},
|
|
{
|
|
path: '/m/crm/contract/new',
|
|
name: 'MpCrmContractNew',
|
|
component: () => import('@views/m/crm/contract/form.vue'),
|
|
meta: { title: '新增合同', isHideTab: true, isMpWebview: true }
|
|
},
|
|
{
|
|
path: '/m/crm/contract/:id/edit',
|
|
name: 'MpCrmContractEdit',
|
|
component: () => import('@views/m/crm/contract/form.vue'),
|
|
meta: { title: '编辑合同', isHideTab: true, isMpWebview: true }
|
|
},
|
|
{
|
|
path: '/m/crm/contract/:id',
|
|
name: 'MpCrmContractDetail',
|
|
component: () => import('@views/m/crm/contract/detail.vue'),
|
|
meta: { title: '合同详情', isHideTab: true, isMpWebview: true }
|
|
},
|
|
{
|
|
path: '/:pathMatch(.*)*',
|
|
name: 'Exception404CatchAll',
|
|
component: () => import('@views/exception/404/index.vue'),
|
|
meta: { title: '404', isHideTab: true }
|
|
}
|
|
]
|