You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

671 lines
18 KiB

import Vue from 'vue'
import Router from 'vue-router'
Vue.use(Router)
/* Layout */
import Layout from '@/layout'
/* 所有角色可以访问/没有权限要求的基页 */
import codemenu from './modules/codemenu'
export const constantRoutes = [{
path: '/',
redirect: 'index'
}, {
path: '/login',
component: () => import('@/views/login/login.vue')
}, {
path: '/home',
component: () => import('@/views/Home/Home.vue'),
name: 'home'
}, {
path: '/index',
component: Layout,
redirect: '/index',
children: [{
path: '/index',
component: () =>
import('@/views/index.vue'),
name: 'index',
meta: {
title: '主页',
noCache: true,
affix: true
}
}]
},
...codemenu,
{
path: '/404',
component: () =>
import('@/views/404'),
hidden: true
},
// 询价车型
{
path: '/xunjiachexing',
component: Layout,
redirect: '/xunjiachexing',
meta: {
title: '询价车型'
},
children: [{
path: '/xunjiachexing/chexinghejia',
component: () =>
import('@/views/xunjiachexing/chexinghejia.vue'),
name: 'chexinghejia',
meta: {
title: '车型核价'
}
}]
},
//
{
path: '/teshushenpi',
component: Layout,
redirect: '/teshushenpi',
meta: {
title: '特殊审批'
},
children: [
{
path: '/teshushenpi/qiankuanticheguanli',
component: () =>
import('@/views/teshushenpi/qiankuanticheguanli/qiankuanticheguanli.vue'),
name: 'qiankuanticheguanli',
meta: {
title: '欠款提车'
}
},
{
path: '/teshushenpi/qiankuanticheguanli',
component: () =>
import('@/views/teshushenpi/qiankuanticheguanli/jiansuocheliang.vue'),
name: 'jiansuocheliang',
meta: {
title: '检索车辆'
}
},
{
path: '/teshushenpi/qiankuanticheguanli',
component: () =>
import('@/views/teshushenpi/qiankuanticheguanli/qiankuanticheshenqing.vue'),
name: 'qiankuanticheshenqing',
meta: {
title: '欠款提车申请'
}
}
]
},
// 客户管理
{
path: '/kehuguanli',
component: Layout,
redirect: '/kehuguanli',
meta: {
title: '客户管理'
},
children: [
{
path: '/kehuguanli/kehudangan',
component: () =>
import('@/views/kehuguanli/kehudangan/kehudangan.vue'),
name: 'kehudangan',
meta: {
title: '客户档案'
}
},
{
path: '/kehuguanli/kehudanganAdd',
component: () =>
import('@/views/kehuguanli/kehudangan/kehudanganAdd.vue'),
name: 'kehudanganAdd',
meta: {
title: '客户档案'
}
},
{
path: '/kehuguanli/kehudanganinfo',
component: () =>
import('@/views/kehuguanli/kehudangan/kehudanganinfo.vue'),
name: 'kehudanganinfo',
meta: {
title: '客户档案查看'
}
},
{
path: '/kehuguanli/cheliangxuqiuAdd',
component: () =>
import('@/views/kehuguanli/cheliangxuqiu/cheliangxuqiuAdd.vue'),
name: 'cheliangxuqiuAdd1',
meta: {
title: '车辆需求'
}
},
// 客户跟踪
// {
// path: '/kehuguanli/kehugenzong',
// component: () =>
// import('@/views/kehuguanli/kehufuwu/kehugenzong/kehugenzong.vue'),
// name: 'kehugenzong',
// meta: {
// title: '客户跟踪'
// }
// },
// {
// path: '/kehuguanli/kehugenzongAdd',
// component: () =>
// import('@/views/kehuguanli/kehufuwu/kehugenzong/kehugenzongAdd.vue'),
// name: 'kehugenzongAdd',
// meta: {
// title: '客户跟踪'
// }
// },
// {
// path: '/kehuguanli/kehugenzongInfo',
// component: () =>
// import('@/views/kehuguanli/kehufuwu/kehugenzong/kehugenzongInfo.vue'),
// name: 'kehugenzongInfo',
// meta: {
// title: '客户跟踪'
// }
// },
// 跟进记录
{
path: '/kehuguanli/genjinjiluguanli',
component: () =>
import('@/views/kehuguanli/kehugenjinjilu/genjinjiluguanli.vue'),
name: 'genjinjiluguanli',
meta: {
title: '跟进记录'
}
},
{
path: '/kehuguanli/genjinjiliAdd',
component: () =>
import('@/views/kehuguanli/kehugenjinjilu/genjinjiliAdd.vue'),
name: 'genjinjiliAdd',
hidden: true,
meta: {
title: '跟进记录添加'
}
},
{
path: '/kehuguanli/genjinjiluinfo',
component: () =>
import('@/views/kehuguanli/kehugenjinjilu/genjinjiluinfo.vue'),
name: 'genjinjiluinfo',
meta: {
title: '跟进记录详情'
}
}
]
},
// 出库管理
{
path: '/chukuguanli',
component: Layout,
redirect: '/chukuguanli',
meta: {
title: '出库管理'
},
children: [
{
path: '/chukuguanli/chukubanli',
component: () =>
import('@/views/chukuguanli/chukubanli/daichukucheliang.vue'),
name: 'daichukucheliang',
meta: {
title: '出库办理'
}
}
]
},
// 销售管理
{
path: '/xiaoshouguanli',
component: Layout,
redirect: '/xiaoshouguanli',
meta: {
title: '销售管理'
},
children: [
// 虚拟订车单
{
path: '/xiaoshouguanli/xunidingdanguanli',
component: () =>
import('@/views/xiaoshouguanli/xunidingdan/xunidingdanguanli.vue'),
name: 'xunidingdanguanli',
meta: {
title: '虚拟订车单'
}
},
{
path: '/xiaoshouguanli/xunidingdanAdd',
component: () =>
import('@/views/xiaoshouguanli/xunidingdan/xunidingdanAdd.vue'),
name: 'xunidingdanAdd',
meta: {
title: '虚拟订车单添加'
}
},
{
path: '/xiaoshouguanli/xunidingdaninfo',
component: () =>
import('@/views/xiaoshouguanli/xunidingdan/xunidingdaninfo.vue'),
name: 'xunidingdaninfo',
meta: {
title: '虚拟订车单详情'
}
},
// 销售订单管理
{
path: '/xiaoshouguanli/dingdanxinxi',
component: () =>
import('@/views/xiaoshouguanli/xiaoshoudingdan/xiaoshoudingdan.vue'),
name: 'xiaoshoudingdan',
meta: {
title: '销售订单管理'
}
},
{
path: '/xiaoshouguanli/dingdanxinxiAdd',
component: () =>
import('@/views/xiaoshouguanli/dingdanguanli/dingdanxinxi/dingdanxinxiAdd.vue'),
name: 'dingdanxinxiAdd',
meta: {
title: '销售订单添加'
}
},
{
path: '/xiaoshouguanli/dingdanxinxiInfo',
component: () =>
import('@/views/xiaoshouguanli/dingdanguanli/dingdanxinxi/dingdanxinxiInfo.vue'),
name: 'dingdanxinxiInfo',
meta: {
title: '订销售订单详情'
}
},
{
path: '/xiaoshouguanli/xiaoshouzhengce',
component: () =>
import('@/views/xiaoshouguanli/xiaoshouzhengce/xiaoshouzhengce.vue'),
name: 'xiaoshouzhengce',
meta: {
title: '销售政策管理'
}
},
{
path: '/xiaoshouguanli/guachepeizhixinxi',
component: () =>
import('@/views/xiaoshouguanli/guachepeizhi/guachepeizhixinxi.vue'),
name: 'guachepeizhixinxi',
meta: {
title: '挂车配置'
}
},
// 车辆交付
{
path: '/xiaoshouguanli/cheliangjiaofu',
component: () =>
import('@/views/xiaoshouguanli/cheliangjiaofu/cheliangjiaofu.vue'),
name: 'cheliangjiaofu',
meta: {
title: '车辆交付'
}
},
// 客户登记单
{
path: '/xiaoshouguanli/kehudengjidan',
component: () =>
import('@/views/xiaoshouguanli/kehudengjidan/kehudengjidan.vue'),
name: 'kehudengjidan',
meta: {
title: '客户登记单'
}
},
{
path: '/xiaoshouguanli/kehudengjidanAdd',
component: () =>
import('@/views/xiaoshouguanli/kehudengjidan/kehudengjidanAdd.vue'),
name: 'kehudengjidanAdd',
meta: {
title: '客户登记单添加'
}
},
{
path: '/xiaoshouguanli/kehudengjidanInfo',
component: () =>
import('@/views/xiaoshouguanli/kehudengjidan/kehudengjidaninfo.vue'),
name: 'kehudengjidaninfo',
meta: {
title: '客户登记单详情'
}
},
// 客户登记单下的车辆需求
{
path: '/xiaoshouguanli/cheliangxuqiu',
component: () =>
import('@/views/xiaoshouguanli/cheliangxuqiu/cheliangxuqiu.vue'),
name: 'cheliangxuqiu',
meta: {
title: '车辆需求'
}
},
{
path: '/xiaoshouguanli/cheliangxuqiuAdd',
component: () =>
import('@/views/xiaoshouguanli/cheliangxuqiu/cheliangxuqiuAdd.vue'),
name: 'cheliangxuqiuAdd',
meta: {
title: '车辆需求添加'
}
},
{
path: '/xiaoshouguanli/cheliangxuqiuInfo',
component: () =>
import('@/views/xiaoshouguanli/cheliangxuqiu/cheliangxuqiuinfo.vue'),
name: 'cheliangxuqiuinfo',
meta: {
title: '车辆需求详情'
}
}
]
},
// 合同管理
{
path: '/hetongguanli',
component: Layout,
redirect: '/hetongguanli',
meta: {
title: '合同管理'
},
children: [
{
path: '/hetongguanli/hetongdanganguanli',
component: () =>
import('@/views/hetongguanli/hetongdanganguanli/hetongdanganguanli.vue'),
name: 'hetongdanganguanli',
meta: {
title: '合同审核管理'
}
},
{
path: '/hetongguanli/hetongdanganguanliAdd',
component: () =>
import('@/views/hetongguanli/hetongdanganguanli/hetongdanganguanliAdd.vue'),
name: 'hetongdanganguanliAdd',
meta: {
title: '合同档案管理添加'
}
},
{
path: '/hetongguanli/hetongdanganguanliInfo',
component: () =>
import('@/views/hetongguanli/hetongdanganguanli/hetongdanganguanliInfo.vue'),
name: 'hetongdanganguanliInfo',
meta: {
title: '合同档案管理详情'
}
},
{
path: '/hetongguanli/hetongshenheguanli',
component: () =>
import('@/views/hetongguanli/hetongshenheguanli/hetongshenheguanli.vue'),
name: 'HeTongDangAnGuanLi',
meta: {
title: '合同档案管理'
}
},
// 模板
{
path: '/hetongguanli/hetongmobanguanli',
component: () =>
import('@/views/hetongguanli/hetongmobanguanli/hetongmobanguanli.vue'),
name: 'hetongmobanguanli',
meta: {
title: '合同模板管理'
}
},
{
path: '/hetongguanli/hetongmobanguanliAdd',
component: () =>
import('@/views/hetongguanli/hetongmobanguanli/hetongmobanguanliAdd.vue'),
name: 'hetongmobanguanliAdd',
meta: {
title: '合同模板管理添加'
}
},
{
path: '/hetongguanli/hetongmobanguanliInfo',
component: () =>
import('@/views/hetongguanli/hetongmobanguanli/hetongmobanguanliInfo.vue'),
name: 'hetongmobanguanliInfo',
meta: {
title: '合同模板管理详情'
}
}
]
},
// 车型查询
{
path: '/chexingchaxun',
component: Layout,
redirect: '/chexingchaxun',
meta: {
title: '车型查询'
},
children: [
{
path: '/chexingchaxun/modelinquire',
component: () =>
import('@/views/chexingchaxun/modelinquire/modellibrary.vue'),
name: 'chexingchaxun',
meta: {
title: '车型库'
}
}
]
},
// 盖章管理
{
path: '/gaizhangguanli',
component: Layout,
redirect: '/gaizhangguanli',
meta: {
title: '盖章管理'
},
children: [
{
path: '/gaizhangguanli/gaizhangshenqingguanli',
component: () =>
import('@/views/gaizhanggunali/gaizhangshenqingguanli/gaizhangguanli.vue'),
name: 'gaizhangguanli',
meta: {
title: '盖章申请管理'
}
}
]
},
// 正常开票管理
{
path: '/kaipiaoguanli',
component: Layout,
redirect: '/kaipiaoguanli',
meta: {
title: '开票管理'
},
children: [
{
path: '/kaipiaoguanli/zhengchangkaipiaoguanli',
component: () =>
import('@/views/kaipiaoguanli/zhengchangkaipiaoguanli/zhangchangkaipiaoguanli.vue'),
name: 'zhengchangkaipiaoguanli',
meta: {
title: '正常开票管理'
}
}
]
},
// 流程所需页面路径
// 订金收取审批、发起人详情页面
{
path: '/xiaoshouguanliFlow/xunidingdan/dingjinshouquInfo',
component: () =>
import('@/views/workflow/xiaoshouguanliFlow/xunidingdanFlow/dingjinshouquInfo.vue'),
name: 'dingjinshouquInfo'
},
// 订金收取发起人办理编辑页面
{
path: '/xiaoshouguanliFlow/xunidingdan/dingjinshouquEdit',
component: () =>
import('@/views/workflow/xiaoshouguanliFlow/xunidingdanFlow/dingjinshouquEdit.vue'),
name: 'dingjinshouquEdit'
},
// 订金收取审批办理页面
{
path: '/xiaoshouguanliFlow/xunidingdan/dingjinshouqu',
component: () =>
import('@/views/workflow/xiaoshouguanliFlow/xunidingdanFlow/dingjinshouqu.vue'),
name: 'dingjinshouqu'
},
// 车辆预定审批办理页面
{
path: '/xiaoshouguanliFlow/xunidingdan/cheliangyuding',
component: () =>
import('@/views/workflow/xiaoshouguanliFlow/xunidingdanFlow/cheliangyuding.vue'),
name: 'cheliangyuding'
},
// 车辆预定发起人办理编辑页面
{
path: '/xiaoshouguanliFlow/xunidingdan/cheliangyudingEdit',
component: () =>
import('@/views/workflow/xiaoshouguanliFlow/xunidingdanFlow/cheliangyudingEdit.vue'),
name: 'cheliangyudingEdit'
},
// 车辆预定审批、发起人详情页面
{
path: '/xiaoshouguanliFlow/xunidingdan/cheliangyudingInfo',
component: () =>
import('@/views/workflow/xiaoshouguanliFlow/xunidingdanFlow/cheliangyudingInfo.vue'),
name: 'cheliangyudingInfo'
},
// 特殊审批
// 欠款提车申请详情
{
path: '/teshushenpiFlow/qiankuanticheguanli/qiankuanticheInfo',
component: () =>
import('@/views/workflow/teshushenpiFlow/qiankuanticheguanli/qiankuanticheInfo.vue'),
name: 'qiankuanticheInfo'
},
// 欠款提车编辑
{
path: '/teshushenpiFlow/qiankuanticheguanli/qiankuanticheEdit',
component: () =>
import('@/views/workflow/teshushenpiFlow/qiankuanticheguanli/qiankuanticheEdit.vue'),
name: 'qiankuanticheEdit'
},
// 欠款提车复核
{
path: '/teshushenpiFlow/qiankuanticheguanli/qiankuantichefuhe',
component: () =>
import('@/views/workflow/teshushenpiFlow/qiankuanticheguanli/qiankuantichefuhe.vue'),
name: 'qiankuantichefuhe'
},
// 欠款提车复核详情
{
path: '/teshushenpiFlow/qiankuanticheguanli/qiankuantichefuheInfo',
component: () =>
import('@/views/workflow/teshushenpiFlow/qiankuanticheguanli/qiankuantichefuheInfo.vue'),
name: 'qiankuantichefuheInfo'
},
// 合同管理
// 合同档案详情
{
path: '/hetongguanliFlow/hetongdanganguanli/hetongdangan',
component: () =>
import('@/views/workflow/hetongguanliFlow/hetongdanganguanli/hetongdangan.vue'),
name: 'hetongdangan'
},
// 合同档案编辑
{
path: '/hetongguanliFlow/hetongdanganguanli/hetongdanganEdit',
component: () =>
import('@/views/workflow/hetongguanliFlow/hetongdanganguanli/hetongdanganEdit.vue'),
name: 'hetongdanganEdit'
},
// 盖章管理
// 盖章申请详情
{
path: '/gaizhangguanliFlow/gaizhangshenqingguanli/gaizhangshenqingInfo.vue',
component: () =>
import('@/views/workflow/gaizhangguanliFlow/gaizhangshenqingguanli/gaizhangshenqingInfo.vue'),
name: 'gaizhangshenqingInfo'
},
// 盖章申请编辑
{
path: '/gaizhangguanliFlow/gaizhangshenqingguanli/gaizhangshenqingEdit.vue',
component: () =>
import('@/views/workflow/gaizhangguanliFlow/gaizhangshenqingguanli/gaizhangshenqingEdit.vue'),
name: 'gaizhangshenqingEdit'
},
// 开票管理
// 正常开票申请详情
{
path: '/kaipiaoguanliFlow/zhengchangkaipiaoguanli/zhengchangkaipiaoInfo.vue',
component: () =>
import('@/views/workflow/kaipiaoguanliFlow/zhengchangkaipiaoguanli/zhengchangkaipiaoInfo.vue'),
name: 'zhengchangkaipiaoguanliInfo'
},
// 正常开票申请编辑
{
path: '/kaipiaoguanliFlow/zhengchangkaipiaoguanli/zhengchangkaipiaoEdit.vue',
component: () =>
import('@/views/workflow/kaipiaoguanliFlow/zhengchangkaipiaoguanli/zhengchangkaipiaoEdit.vue'),
name: 'zhengchangkaipiaoEdit'
}
// 销售订单
// 销售管理详情
// {
// path: '/xiaoshouguanliFlow/xiaoshoudingdan/xiaoshoudingdan',
// component: () =>
// import('@/views/workflow/hetongguanliFlow/hetongdanganguanli/hetongdangan.vue'),
// name: 'hetongdangan',
// },
// 销售管理编辑
// {
// path: '/xiaoshouguanliFlow/xiaoshoudingdan/xiaoshoudingdanEdit',
// component: () =>
// import('@/views/workflow/hetongguanliFlow/hetongdanganguanli/hetongdangan.vue'),
// name: 'hetongdangan',
// },
// 404 page must be placed at the end !!!
// { path: '*', redirect: '/404', hidden: true }
]
const createRouter = () => new Router({
// mode: 'history', // require service support
scrollBehavior: () => ({
y: 0
}),
routes: constantRoutes
})
const router = createRouter()
// Detail see: https://github.com/vuejs/vue-router/issues/1234#issuecomment-357941465
export function resetRouter() {
const newRouter = createRouter()
router.matcher = newRouter.matcher // reset router
}
export default router