import {
    RouteView
} from '@/layouts'

export default [{
    path: '/stock',
    name: 'StockIndex',
    meta: {
        title: '库存管理',
        icon: 'shop'
    },
    component: RouteView,
    children: [
        {
            path: '/stock/ins',
            name: 'StockIns',
            meta: {
                title: '分公司库存管理',
                icon: 'control'
            },
            component: RouteView,
            redirect: '/stock/in',
            children: [
                {
                    path: '/stock/in',
                    name: 'StockIn',
                    component: () => import('@/views/stock/In'),
                    meta: {
                        title: '入库管理',
                        icon: 'import'
                    }
                },
                {
                    path: '/sales/offline',
                    name: 'SalesOffline',
                    meta: {
                        title: '线下出货列表',
                        icon: 'unordered-list'
                    },
                    component: () => import('@/views/sales/Offline')
                }
                // {
                //     path: '/stock/out',
                //     name: 'StockOut',
                //     component: () => import('@/views/stock/Out'),
                //     meta: {
                //         title: '出库管理',
                //         icon: 'export'
                //     }
                // }
            ]
        },
        {
            path: '/stock/dealer',
            name: 'StockDealer',
            meta: {
                title: '经销商库存管理',
                icon: 'usergroup-add'
            },
            component: RouteView,
            redirect: '/stock/dealer/in',
            children: [
                {
                    path: '/stock/dealer/in',
                    name: 'DealerIn',
                    component: () => import('@/views/stock/DealerIn'),
                    meta: {
                        title: '入库管理',
                        icon: 'import'
                    }
                },
                {
                    path: '/stock/dealer/out',
                    name: 'DealerOut',
                    component: () => import('@/views/stock/DealerOut'),
                    meta: {
                        title: '出库管理',
                        icon: 'export'
                    }
                }
            ]
        }
    ]
}]
