// +----------------------------------------------------------------------
// | CRMEB [ CRMEB赋能开发者，助力企业发展 ]
// +----------------------------------------------------------------------
// | Copyright (c) 2016~2021 https://www.crmeb.com All rights reserved.
// +----------------------------------------------------------------------
// | Licensed CRMEB并不是自由软件，未经许可不能去掉CRMEB相关版权
// +----------------------------------------------------------------------
// | Author: CRMEB Team <admin@crmeb.com>
// +----------------------------------------------------------------------
import BasicLayout from '@/layouts/basic-layout';
import Setting from "@/setting";
const pre = 'erp_';

export default {
  path: `${Setting.roterPre}/erp`,
	name: 'erp',
	header: 'erp',
	// redirect: {
	// 	name: `${pre}statistics`
	// },
	component: BasicLayout,
	children: [
		{
			path:'inventory',
			name: `${pre}inventory`,
			meta: {
				auth: ['admin-erp-inventory'],
				title: '库存管理'
			},
			component: () => import('@/pages/erp/inventory/index')
		},
		{
			path: 'purchase',
			name: `${pre}purchase`,
			meta: {
				auth: ['admin-erp-purchase'],
				title: '采购'
			},
			component: () => import('@/pages/store/storeCategory/index')
		},
		{
			path: 'goods',
			name: `${pre}goods`,
			meta: {
				auth: ['admin-erp-goods'],
				title: '要货'
			},
			component: () => import('@/pages/store/storeMenus/index')
		},
		{
			path: 'product',
			name: `${pre}product`,
			meta: {
				auth: ['admin-erp-product'],
				title: '商品档案'
			},
			component: () => import('@/pages/store/cashierMenus/index')
		},
		{
			path: 'batch',
			name: `${pre}batch`,
			meta: {
				auth: ['admin-erp-batch'],
				title: '商品批次'
			},
			component: () => import('@/pages/store/statistics/index')
		},
		{
			path: 'warehouse',
			name: `${pre}warehouse`,
			meta: {
				auth: ['admin-erp-warehouse'],
				title: '仓库管理'
			},
			component: () => import('@/pages/store/storeList/index')
		},
		{
			path: 'menus',
			name: `${pre}menus`,
			meta: {
				auth: ['admin-erp-menus'],
				title: '仓库菜单'
			},
			component: () => import('@/pages/store/order/index')
		},
		{
			path: 'locator',
			name: `${pre}locator`,
			meta: {
				auth: ['admin-erp-locator'],
				title: '库位管理'
			},
			component: () => import('@/pages/store/capital/index')
		}
	]
};
