
import BasicLayout from '@/layouts/basic-layout';
import Setting from '@/setting';

const pre = 'order_';

export default {
	path: `${Setting.roterPre}/order/`,
	name: 'order',
	header: 'order',
	meta: {
	    // 授权标识
	    auth: ['supplier-order']
	},
	redirect: {
		name: `${pre}list`
	},
	component: BasicLayout,
	children: [
		{
			path: 'list',
			name: `${pre}list`,
			meta: {
				auth: ['supplier-order-list'],
				title: '订单列表'
			},
			component: () => import('@/pages/order/orderList/index')
		},
		{
			path: 'refund',
			name: `${pre}refund`,
			meta: {
				auth: ['supplier-order-refund'],
				title: '售后退款'
			},
			component: () => import('@/pages/order/refund/index')
		},
		{
			path: 'stock',
			name: `${pre}stock`,
			meta: {
				auth: ['supplier-order-stock'],
				title: '进货订单'
			},
			component: () => import('@/pages/order/stock/index')
		}
	]
};
