Files
tms-erp-web/src/router/views/index.js
T

544 lines
14 KiB
JavaScript

import Layout from '@/page/index/index.vue';
import Store from '@/store/';
import { wrapViewLoader } from '@/utils/chunk-reload';
const loadView = loader => wrapViewLoader(loader);
export default [
{
path: '/payment/bill-payment/form',
component: Layout,
children: [
{
path: '',
name: '汇票付款表单',
meta: { keepAlive: false, activeMenu: '/payment/bill-payment' },
component: loadView(() => import('@/views/payment/bill-payment-form.vue')),
},
],
},
{
path: '/payment/bill-ledger/form',
component: Layout,
children: [
{
path: '',
name: '汇票台账表单',
meta: { keepAlive: false, activeMenu: '/payment/bill-ledger' },
component: loadView(() => import('@/views/payment/bill-ledger-form.vue')),
},
],
},
{
path: '/payment/receipt-claim-record/form',
component: Layout,
children: [
{
path: '',
name: '认领记录详情',
meta: { keepAlive: false, activeMenu: '/payment/receipt-claim-record' },
component: loadView(() => import('@/views/payment/receipt-claim-record-form.vue')),
},
],
},
{
path: '/payment/receipt-flow/form',
component: Layout,
children: [
{
path: '',
name: '收款流水认领',
meta: { keepAlive: false, activeMenu: '/payment/receipt-flow' },
component: loadView(() => import('@/views/payment/receipt-flow-form.vue')),
},
],
},
{
path: '/payment/invoice-receipt/form',
component: Layout,
children: [
{
path: '',
name: '收票登记',
meta: { keepAlive: false, activeMenu: '/payment/invoice-receipt' },
component: loadView(() => import('@/views/payment/invoice-receipt-form.vue')),
},
],
},
{
path: '/payment/invoice-application/form',
component: Layout,
children: [
{
path: '',
name: '开票申请',
meta: { keepAlive: false, activeMenu: '/payment/invoice-application' },
component: loadView(() => import('@/views/payment/invoice-application-form.vue')),
},
],
},
{
path: '/payment/payment-application/form',
component: Layout,
children: [
{
path: '',
name: '付款申请',
meta: { keepAlive: false, activeMenu: '/payment/payment-application' },
component: loadView(() => import('@/views/payment/payment-application-form.vue')),
},
],
},
{
path: '/settlement/pre-settlement/form',
component: Layout,
children: [
{
path: '',
name: '新增编辑预付结算单',
meta: {
keepAlive: false,
activeMenu: '/settlement/pre-settlement',
},
component: loadView(() => import('@/views/settlement/pre-settlement-form.vue')),
},
],
},
{
// 兼容旧菜单路径:按 detailNo 解析应付/应收后跳转到拆分后的列表页
path: '/settlement/formal-settlement',
component: Layout,
children: [
{
path: '',
name: '正式结算单兼容跳转',
meta: {
keepAlive: false,
activeMenu: '/settlement/payment-settlement',
},
component: loadView(() => import('@/views/settlement/formal-settlement-redirect.vue')),
},
],
},
{
path: '/settlement/formal-settlement/form',
component: Layout,
children: [
{
path: '',
name: '新增编辑结算单',
meta: {
keepAlive: false,
// 付款结算单表单入口,高亮付款结算单菜单
activeMenu: '/settlement/payment-settlement',
},
component: loadView(() => import('@/views/settlement/formal-settlement-form.vue')),
},
],
},
{
// 收款结算单表单入口:与付款结算单共用表单组件,仅高亮菜单不同
path: '/settlement/receipt-settlement/form',
component: Layout,
children: [
{
path: '',
name: '新增编辑收款结算单',
meta: {
keepAlive: false,
activeMenu: '/settlement/receipt-settlement',
},
component: loadView(() => import('@/views/settlement/formal-settlement-form.vue')),
},
],
},
{
// 付款结算单表单入口:与 settlementListPath('payable') + '/form' 对应
path: '/settlement/payment-settlement/form',
component: Layout,
children: [
{
path: '',
name: '新增编辑付款结算单',
meta: {
keepAlive: false,
activeMenu: '/settlement/payment-settlement',
},
component: loadView(() => import('@/views/settlement/formal-settlement-form.vue')),
},
],
},
{
path: '/settlement/settlement-import/form',
component: Layout,
children: [
{
path: '',
name: '新增导入结算单',
meta: {
keepAlive: false,
activeMenu: '/settlement/settlement-import',
},
component: loadView(() => import('@/views/settlement/settlement-import-form.vue')),
},
],
},
{
path: '/settlement/transport-reconciliation/form',
component: Layout,
children: [
{
path: '',
name: '新增编辑运输对账单',
meta: {
keepAlive: false,
activeMenu: '/settlement/transport-reconciliation',
},
component: loadView(() => import('@/views/settlement/transport-reconciliation-form.vue')),
},
],
},
{
path: '/business/voucher-manage/detail',
component: Layout,
children: [
{
path: '',
name: '执行凭证批次详情',
meta: { keepAlive: false, activeMenu: '/business/voucher-manage' },
component: loadView(() => import('@/views/business/voucher-manage-detail.vue')),
},
],
},
{
path: '/business/contract-manage/form',
component: Layout,
children: [
{
path: '',
name: '新增合同管理',
meta: { keepAlive: false },
component: loadView(() => import('@/views/business/contract-manage.vue')),
},
],
},
{
path: '/business/contract-manage/detail',
component: Layout,
children: [
{
path: '',
name: '合同详情',
meta: { keepAlive: false, activeMenu: '/business/contract-manage' },
component: loadView(() => import('@/views/business/contract-manage.vue')),
},
],
},
{
path: '/business/project-apply/form',
component: Layout,
children: [
{
path: '',
name: '新增项目申请',
meta: { keepAlive: false },
component: loadView(() => import('@/views/business/project-apply.vue')),
},
],
},
{
path: '/business/project-change/form',
component: Layout,
children: [
{
path: '',
name: '项目变更表单',
meta: { keepAlive: false, activeMenu: '/business/project-change' },
component: loadView(() => import('@/views/business/project-apply.vue')),
},
],
},
{
path: '/business/waybill-manage/form',
component: Layout,
children: [
{
path: '',
name: '新增编辑运单管理',
meta: { keepAlive: false },
component: loadView(() => import('@/views/business/waybill-manage.vue')),
},
],
},
{
path: '/business/waybill-manage/detail',
component: Layout,
children: [
{
path: '',
name: '运单管理详情',
meta: { keepAlive: false, activeMenu: '/business/waybill-manage' },
component: loadView(() => import('@/views/business/waybill-manage-detail.vue')),
},
],
},
{
path: '/business/waybill-import',
component: Layout,
children: [
{
path: '',
name: '导入运单',
meta: { keepAlive: false, activeMenu: '/business/waybill-import' },
component: loadView(() => import('@/views/business/waybill-import.vue')),
},
],
},
{
path: '/business/waybill-import/form',
component: Layout,
children: [
{
path: '',
name: '新建导入运单',
meta: { keepAlive: false, activeMenu: '/business/waybill-import' },
component: loadView(() => import('@/views/business/waybill-import-form.vue')),
},
],
},
{
path: '/business/loading-manage/form',
component: Layout,
children: [
{
path: '',
name: '新增编辑配载管理',
meta: { keepAlive: false },
component: loadView(() => import('@/views/business/loading-manage.vue')),
},
],
},
{
path: '/business/loading-manage/detail',
component: Layout,
children: [
{
path: '',
name: '配载单详情',
meta: { keepAlive: false, activeMenu: '/business/loading-manage' },
component: () => import('@/views/business/loading-manage.vue'),
},
],
},
{
path: '/business/transport-plan/form',
component: Layout,
children: [
{
path: '',
name: '新增编辑运输计划',
meta: { keepAlive: false },
component: loadView(() => import('@/views/business/transport-plan.vue')),
},
],
},
{
path: '/business/transport-plan/import',
component: Layout,
children: [
{
path: '',
name: '导入运输计划',
meta: { keepAlive: false, activeMenu: '/business/transport-plan' },
component: loadView(() => import('@/views/business/transport-plan-import.vue')),
},
],
},
{
path: '/business/transport-plan-dispatch',
component: Layout,
children: [
{
path: '',
name: '计划调度',
meta: { keepAlive: false, activeMenu: '/business/transport-plan' },
component: loadView(() => import('@/views/business/transport-plan-dispatch.vue')),
},
],
},
{
path: '/business/shipping-template/form',
component: Layout,
children: [
{
path: '',
name: '新增编辑运单模板',
meta: { keepAlive: false },
component: loadView(() => import('@/views/business/shipping-template.vue')),
},
],
},
{
path: '/vehicle/customer-archive/form',
component: Layout,
children: [
{
path: '',
name: '新增客商档案',
meta: { keepAlive: false },
component: loadView(() => import('@/views/vehicle/customer-archive.vue')),
},
],
},
{
path: '/business/contract-manage/change',
component: Layout,
children: [
{
path: '',
name: '合同变更',
meta: { keepAlive: false },
component: loadView(() => import('@/views/business/contract-manage-change.vue')),
},
],
},
{
path: '/business/contract-change/form',
component: Layout,
children: [
{
path: '',
name: '合同变更表单',
meta: { keepAlive: false, activeMenu: '/business/contract-change' },
component: loadView(() => import('@/views/business/contract-manage-change.vue')),
},
],
},
{
path: '/wel',
component: () =>
Store.getters.isMacOs ? import('@/mac/index.vue') : import('@/page/index/index.vue'),
redirect: '/wel/index',
children: [
{
path: 'index',
name: '首页',
meta: {
i18n: 'dashboard',
},
component: loadView(() => import(/* webpackChunkName: "views" */ '@/views/wel/index.vue')),
},
{
path: 'dashboard',
name: '控制台',
meta: {
i18n: 'dashboard',
menu: false,
},
component: loadView(() => import(/* webpackChunkName: "views" */ '@/views/wel/dashboard.vue')),
},
],
},
{
path: '/test',
component: Layout,
redirect: '/test/index',
children: [
{
path: 'index',
name: '测试页',
meta: {
i18n: 'test',
},
component: loadView(() => import(/* webpackChunkName: "views" */ '@/views/util/test.vue')),
},
],
},
{
path: '/dict-horizontal',
component: Layout,
redirect: '/dict-horizontal/index',
children: [
{
path: 'index',
name: '字典管理',
meta: {
i18n: 'dict',
},
component: loadView(() =>
import(/* webpackChunkName: "views" */ '@/views/util/demo/dict-horizontal.vue')
),
},
],
},
{
path: '/dict-vertical',
component: Layout,
redirect: '/dict-vertical/index',
children: [
{
path: 'index',
name: '字典管理',
meta: {
i18n: 'dict',
},
component: loadView(() =>
import(/* webpackChunkName: "views" */ '@/views/util/demo/dict-vertical.vue')
),
},
],
},
{
path: '/info',
component: Layout,
redirect: '/info/index',
children: [
{
path: 'index',
name: '个人信息',
meta: {
i18n: 'info',
},
component: loadView(() => import(/* webpackChunkName: "views" */ '@/views/system/userinfo.vue')),
},
],
},
{
path: '/work/process/leave',
component: Layout,
redirect: '/work/process/leave/form',
children: [
{
path: 'form/:processDefinitionId',
name: '请假流程',
meta: {
i18n: 'work',
},
component: loadView(() =>
import(/* webpackChunkName: "views" */ '@/views/work/process/leave/form.vue')
),
},
{
path: 'handle/:taskId/:processInstanceId/:businessId',
name: '处理请假流程',
meta: {
i18n: 'work',
},
component: loadView(() =>
import(/* webpackChunkName: "views" */ '@/views/work/process/leave/handle.vue')
),
},
{
path: 'detail/:processInstanceId/:businessId',
name: '请假流程详情',
meta: {
i18n: 'work',
},
component: loadView(() =>
import(/* webpackChunkName: "views" */ '@/views/work/process/leave/detail.vue')
),
},
],
},
];