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.

68 lines
2.2 KiB

6 years ago
/*路由表:销售管理*/
import Layout from '@/layout'
import {lazyLoadView} from "@/router/util"
6 years ago
const router = {
path: '/doc/sell',
6 years ago
component: Layout,
meta: {title: '销售管理', icon: 'sell', alwaysShow: true},
6 years ago
children: [
{
path: 'order',
name: 'sellOrder',
component: lazyLoadView(import('@/view/sell/order')),
6 years ago
meta: {title: '销售订单'}
},
{
path: 'order/detail/:type(see|add|edit)/:id?',
props: true,
component: lazyLoadView(import('@/view/sell/order/detail')),
meta: {
dynamicTitle(to) {
const {type, id} = to.params
switch (type) {
case 'add':
return '添加销售订单'
case 'edit':
return `编辑销售订单${id}`
case 'see':
return `查看销售订单${id}`
}
},
activeMenu: '/doc/sell/order',
usePathKey: true,
commonModule: '@/view/sell/order/detail'
}
},
6 years ago
{
path: 'outbound',
name: 'sellOutbound',
component: lazyLoadView(import('@/view/sell/outbound')),
6 years ago
meta: {title: '销售出库'}
},
{
path: 'outbound/detail/:type(see|add|edit)/:id?',
props: true,
component: lazyLoadView(import('@/view/sell/outbound/detail')),
meta: {
dynamicTitle(to) {
const {type, id} = to.params
switch (type) {
case 'add':
return '添加销售出库单'
case 'edit':
return `编辑销售出库单${id}`
case 'see':
return `查看销售出库单${id}`
}
},
activeMenu: '/doc/sell/outbound',
usePathKey: true,
commonModule: '@/view/sell/outbound/detail'
}
6 years ago
}
]
}
export default router