|
|
@ -9,48 +9,276 @@ Vue.use(Router) |
|
|
|
|
|
|
|
/* 所有角色可以访问/没有权限要求的基页 */ |
|
|
|
|
|
|
|
export const constantRoutes = [{ |
|
|
|
export const constantRoutes = [ |
|
|
|
{ |
|
|
|
path: '/redirect', |
|
|
|
component: Layout, |
|
|
|
hidden: true, |
|
|
|
children: [{ |
|
|
|
path: '/redirect/:path(.*)', |
|
|
|
component: () => import('@/views/redirect/index.vue') |
|
|
|
}] |
|
|
|
}, { |
|
|
|
children: [ |
|
|
|
{ |
|
|
|
path: '/redirect/:path(.*)', |
|
|
|
component: () => import('@/views/redirect/index.vue') |
|
|
|
}, |
|
|
|
] |
|
|
|
}, |
|
|
|
{ |
|
|
|
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', |
|
|
|
meta: { |
|
|
|
title: '首页' |
|
|
|
}, |
|
|
|
children: [{ |
|
|
|
path: '/index', |
|
|
|
component: () => import('@/views/index.vue'), |
|
|
|
name: 'index', |
|
|
|
meta: { |
|
|
|
title: '主页', |
|
|
|
noCache: true, |
|
|
|
affix: true |
|
|
|
} |
|
|
|
}] |
|
|
|
title: '首页', |
|
|
|
}, |
|
|
|
children: [ |
|
|
|
{ |
|
|
|
path: '/index', |
|
|
|
component: () => import('@/views/index.vue'), |
|
|
|
name: 'index', |
|
|
|
meta: { |
|
|
|
title: '主页', |
|
|
|
noCache: true, |
|
|
|
affix: true, |
|
|
|
} |
|
|
|
}, |
|
|
|
] |
|
|
|
}, |
|
|
|
// 客户中心
|
|
|
|
{ |
|
|
|
path: '1', |
|
|
|
component: Layout, |
|
|
|
meta: { title: '客户中心' }, |
|
|
|
children: [ |
|
|
|
{ |
|
|
|
path: 'cgsq/PurchaseApplicationManagement', |
|
|
|
component: () => import('@/views/supervise/purchaseapplicationmanagement/purchaseapplicationmanagement.vue'), |
|
|
|
name: 'PurchaseApplicationManagement', |
|
|
|
meta: {title: '采购申请管理',noCache: true,} |
|
|
|
}, |
|
|
|
{ |
|
|
|
path: 'xzgys', |
|
|
|
component: () => import('@/views/supervise/supplierbankinfo/supplierbankinfo.vue'), |
|
|
|
name: 'supplierManagement', |
|
|
|
meta: {title: '供应商管理',noCache: true} |
|
|
|
}, |
|
|
|
{ |
|
|
|
path: '/404', |
|
|
|
component: () => import('@/views/404'), |
|
|
|
name: 'manufacturerPreference', |
|
|
|
meta: {title: '厂商扣点汇总表',noCache: true} |
|
|
|
}, |
|
|
|
{ |
|
|
|
path: 'cgsq', |
|
|
|
component: Layout, |
|
|
|
meta: {title: '数据上报'}, |
|
|
|
children: [ |
|
|
|
{ |
|
|
|
path: '/404', |
|
|
|
component: () => import('@/views/404'), |
|
|
|
name: 'manufacturerPreference', |
|
|
|
meta: {title: '综合数据上报',noCache: true} |
|
|
|
}, |
|
|
|
{ |
|
|
|
path: '/404', |
|
|
|
component: () => import('@/views/404'), |
|
|
|
name: 'manufacturerPreference', |
|
|
|
meta: {title: '入库上报',noCache: true} |
|
|
|
}, |
|
|
|
{ |
|
|
|
path: '/404', |
|
|
|
component: () => import('@/views/404'), |
|
|
|
name: 'manufacturerPreference', |
|
|
|
meta: {title: '出库上报',noCache: true} |
|
|
|
}, |
|
|
|
{ |
|
|
|
path: '/404', |
|
|
|
component: () => import('@/views/404'), |
|
|
|
name: 'manufacturerPreference', |
|
|
|
meta: {title: '库存上报',noCache: true} |
|
|
|
}, |
|
|
|
{ |
|
|
|
path: '/404', |
|
|
|
component: () => import('@/views/404'), |
|
|
|
name: 'manufacturerPreference', |
|
|
|
meta: {title: '销售上报',noCache: true} |
|
|
|
}, |
|
|
|
{ |
|
|
|
path: '/404', |
|
|
|
component: () => import('@/views/404'), |
|
|
|
name: 'manufacturerPreference', |
|
|
|
meta: {title: '仓库调拨上报',noCache: true} |
|
|
|
}, |
|
|
|
{ |
|
|
|
path: '/404', |
|
|
|
component: () => import('@/views/404'), |
|
|
|
name: 'manufacturerPreference', |
|
|
|
meta: {title: '配送批发上报',noCache: true} |
|
|
|
} |
|
|
|
], |
|
|
|
}, |
|
|
|
{ |
|
|
|
path: 'cgsq', |
|
|
|
component: Layout, |
|
|
|
meta: {title: '信息查询'}, |
|
|
|
children: [ |
|
|
|
{ |
|
|
|
path: '/404', |
|
|
|
component: () => import('@/views/404'), |
|
|
|
name: 'manufacturerPreference', |
|
|
|
meta: {title: '库存信息查询',noCache: true} |
|
|
|
}, |
|
|
|
{ |
|
|
|
path: '/404', |
|
|
|
component: () => import('@/views/404'), |
|
|
|
name: 'manufacturerPreference', |
|
|
|
meta: {title: '订单查询',noCache: true} |
|
|
|
}, |
|
|
|
{ |
|
|
|
path: '/404', |
|
|
|
component: () => import('@/views/404'), |
|
|
|
name: 'manufacturerPreference', |
|
|
|
meta: {title: '订单商品查询',noCache: true} |
|
|
|
}, |
|
|
|
{ |
|
|
|
path: '/404', |
|
|
|
component: () => import('@/views/404'), |
|
|
|
name: 'manufacturerPreference', |
|
|
|
meta: {title: '出入库查询',noCache: true} |
|
|
|
}, |
|
|
|
{ |
|
|
|
path: '/404', |
|
|
|
component: () => import('@/views/404'), |
|
|
|
name: 'manufacturerPreference', |
|
|
|
meta: {title: '供应商查询',noCache: true} |
|
|
|
}, |
|
|
|
{ |
|
|
|
path: '/404', |
|
|
|
component: () => import('@/views/404'), |
|
|
|
name: 'manufacturerPreference', |
|
|
|
meta: {title: '仓库调拨查询',noCache: true} |
|
|
|
}, |
|
|
|
{ |
|
|
|
path: '/404', |
|
|
|
component: () => import('@/views/404'), |
|
|
|
name: 'manufacturerPreference', |
|
|
|
meta: {title: '配送批发查询',noCache: true} |
|
|
|
} |
|
|
|
] |
|
|
|
} |
|
|
|
] |
|
|
|
}, |
|
|
|
// 审批中心
|
|
|
|
{ |
|
|
|
path: '', |
|
|
|
component: Layout, |
|
|
|
meta: { title: '审批中心' }, |
|
|
|
children: [ |
|
|
|
{ |
|
|
|
path: '/404', |
|
|
|
component: () => import('@/views/404'), |
|
|
|
name: 'readWork', |
|
|
|
meta: {title: '已阅工作',noCache: true,} |
|
|
|
}, |
|
|
|
{ |
|
|
|
path: '/404', |
|
|
|
component: () => import('@/views/404'), |
|
|
|
name: 'waitingWork', |
|
|
|
meta: {title: '待阅工作',noCache: true} |
|
|
|
}, |
|
|
|
{ |
|
|
|
path: '/404', |
|
|
|
component: () => import('@/views/404'), |
|
|
|
name: 'alreadyHandledWork', |
|
|
|
meta: {title: '已办工作',noCache: true,} |
|
|
|
}, |
|
|
|
{ |
|
|
|
path: '/404', |
|
|
|
component: () => import('@/views/404'), |
|
|
|
name: 'handledWork', |
|
|
|
meta: {title: '待办工作',noCache: true} |
|
|
|
} |
|
|
|
] |
|
|
|
}, |
|
|
|
{ |
|
|
|
path: '', |
|
|
|
component: Layout, |
|
|
|
meta: { title: '消息中心' }, |
|
|
|
children: [ |
|
|
|
{ |
|
|
|
path: 'cgsq/PurchaseApplicationManagement', |
|
|
|
component: () => import('@/views/404'), |
|
|
|
name: 'PurchaseApplicationManagement', |
|
|
|
meta: {title: '未读消息',noCache: true,} |
|
|
|
}, |
|
|
|
{ |
|
|
|
path: 'xzgys', |
|
|
|
component: () => import('@/views/404'), |
|
|
|
name: 'supplierManagement', |
|
|
|
meta: {title: '已读消息',noCache: true} |
|
|
|
} |
|
|
|
] |
|
|
|
}, |
|
|
|
{ |
|
|
|
path: '', |
|
|
|
component: Layout, |
|
|
|
meta: { title: '报表中心' }, |
|
|
|
children: [ |
|
|
|
{ |
|
|
|
path: 'reportCenter/salesReport', |
|
|
|
component: () => import('@/views/reportCenter/salesReport.vue'), |
|
|
|
name: 'salesReport', |
|
|
|
meta: {title: '销售报表',noCache: true,} |
|
|
|
}, |
|
|
|
{ |
|
|
|
path: 'reportCenter/goodsOnWay', |
|
|
|
component: () => import('@/views/reportCenter/goodsOnWay.vue'), |
|
|
|
name: 'goodsOnWay', |
|
|
|
meta: {title: '在途商品管理表',noCache: true} |
|
|
|
} |
|
|
|
] |
|
|
|
}, |
|
|
|
{ |
|
|
|
path: '', |
|
|
|
component: Layout, |
|
|
|
meta: { title: '风控管理' }, |
|
|
|
children: [ |
|
|
|
{ |
|
|
|
path: 'risk/thresholdAnalysis', |
|
|
|
component: () => import('@/views/risk/thresholdAnalysis.vue'), |
|
|
|
name: 'thresholdAnalysis', |
|
|
|
meta: {title: '阀值分析',noCache: true,} |
|
|
|
} |
|
|
|
] |
|
|
|
}, |
|
|
|
{ |
|
|
|
path: '', |
|
|
|
component: Layout, |
|
|
|
meta: { title: '系统管理' }, |
|
|
|
children: [ |
|
|
|
{ |
|
|
|
path: 'risk/thresholdAnalysis', |
|
|
|
component: () => import('@/views/risk/thresholdAnalysis.vue'), |
|
|
|
name: 'thresholdAnalysis', |
|
|
|
meta: {title: '阀值分析',noCache: true,} |
|
|
|
} |
|
|
|
] |
|
|
|
}, |
|
|
|
{ |
|
|
|
path: '/customer', |
|
|
|
component: Layout, |
|
|
|
meta: { |
|
|
|
title: '客户中心' |
|
|
|
title: '客户中心(以下为原菜单)' |
|
|
|
}, |
|
|
|
children: [{ |
|
|
|
path: 'cgsq', |
|
|
|