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.
69 lines
2.2 KiB
69 lines
2.2 KiB
|
6 years ago
|
/*路由表:销售管理*/
|
||
|
|
|
||
|
|
const router = {
|
||
|
6 years ago
|
path: 'sell',
|
||
|
6 years ago
|
meta: {title: '销售管理', icon: 'svg-sell', alwaysShow: true},
|
||
|
6 years ago
|
children: [
|
||
|
|
{
|
||
|
|
path: 'order',
|
||
|
|
name: 'sellOrder',
|
||
|
6 years ago
|
component: 'sell/order/',
|
||
|
6 years ago
|
meta: {title: '销售订单'}
|
||
|
|
},
|
||
|
6 years ago
|
{
|
||
|
|
path: 'order/detail/:type(see|add|edit)/:id?',
|
||
|
|
props: true,
|
||
|
6 years ago
|
component: 'sell/order/detail',
|
||
|
6 years ago
|
meta: {
|
||
|
6 years ago
|
title: '销售订单详情页',
|
||
|
|
hidden: true,
|
||
|
6 years ago
|
dynamicTitle(to) {
|
||
|
|
const {type, id} = to.params
|
||
|
|
switch (type) {
|
||
|
|
case 'add':
|
||
|
|
return '添加销售订单'
|
||
|
|
case 'edit':
|
||
|
|
return `编辑销售订单${id}`
|
||
|
|
case 'see':
|
||
|
|
return `查看销售订单${id}`
|
||
|
|
}
|
||
|
|
},
|
||
|
6 years ago
|
activeMenu: '/sell/order',
|
||
|
6 years ago
|
usePathKey: true,
|
||
|
6 years ago
|
commonModule: '@/view/sell/order/detail'
|
||
|
6 years ago
|
}
|
||
|
|
},
|
||
|
6 years ago
|
{
|
||
|
|
path: 'outbound',
|
||
|
|
name: 'sellOutbound',
|
||
|
6 years ago
|
component: 'sell/outbound/',
|
||
|
6 years ago
|
meta: {title: '销售出库'}
|
||
|
6 years ago
|
},
|
||
|
|
{
|
||
|
|
path: 'outbound/detail/:type(see|add|edit)/:id?',
|
||
|
|
props: true,
|
||
|
6 years ago
|
component: 'sell/outbound/detail',
|
||
|
6 years ago
|
meta: {
|
||
|
6 years ago
|
title: '销售出库详情页',
|
||
|
|
hidden: true,
|
||
|
6 years ago
|
dynamicTitle(to) {
|
||
|
|
const {type, id} = to.params
|
||
|
|
switch (type) {
|
||
|
|
case 'add':
|
||
|
|
return '添加销售出库单'
|
||
|
|
case 'edit':
|
||
|
|
return `编辑销售出库单${id}`
|
||
|
|
case 'see':
|
||
|
|
return `查看销售出库单${id}`
|
||
|
|
}
|
||
|
|
},
|
||
|
6 years ago
|
activeMenu: '/sell/outbound',
|
||
|
6 years ago
|
usePathKey: true,
|
||
|
|
commonModule: '@/view/sell/outbound/detail'
|
||
|
6 years ago
|
}
|
||
|
6 years ago
|
}
|
||
|
|
]
|
||
|
|
}
|
||
|
|
|
||
|
|
export default router
|