import {
    RouteView
} from '@/layouts'

export default [{
    path: '/stock',
    name: 'StockIndex',
    meta: {
        title: '库存管理',
        icon: 'bank'
    },
    component: RouteView,
    children: [
        {
            path: '/stock/ins',
            name: 'StockIns',
            meta: {
                title: '分公司库存管理',
                icon: 'unordered-list'
            },
            component: RouteView,
            redirect: '/stock/in',
            children: [
                {
                    path: '/stock/in',
                    name: 'StockIn',
                    component: () => import('@/views/stock/In'),
                    meta: {
                        title: '入库管理',
                        icon: 'unordered-list'
                    }
                },
                {
                    path: '/stock/out',
                    name: 'StockOut',
                    component: () => import('@/views/stock/Out'),
                    meta: {
                        title: '出库管理',
                        icon: 'unordered-list'
                    }
                }
            ]
        },
        {
            path: '/stock/dealer',
            name: 'StockDealer',
            meta: {
                title: '经销商库存管理',
                icon: 'unordered-list'
            },
            component: () => import('@/views/stock/DealerIndex')
        }
    ]
}]
