// +----------------------------------------------------------------------
// | 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 meta = {
    auth: true
};

const pre = 'home_';

export default {
    path: Setting.roterPre,
    name: 'home',
    header: 'home',
    redirect: {
        name: `${pre}index`
    },
    meta,
    component: BasicLayout,
    children: [
		{
		    path: 'cashier/reservation',
		    name: `${pre}reservation`,
		    meta: {
		        auth: ['cashier-cashier-reservation'],
		        title: '预约'
		    },
		    component: () => import('@/pages/cashier/reservation')
		},
		{
		    path: 'cashier/indexs',
		    name: `${pre}indexs`,
		    meta: {
		        auth: ['cashier-cashier-indexs'],
		        title: '下卡'
		    },
		    // component: () => import('@/pages/cashier/indexs')//原版下卡
		    component: () => import('@/pages/cashier/servecard')
		},
		
		
		
        {
            path: 'cashier/index',
            name: `${pre}index`,
            meta: {
                auth: ['cashier-cashier-index'],
                title: '收银'
            },
            component: () => import('@/pages/cashier/index')
        },
        {
            path: 'hang/index',
            name: `${pre}hang`,
            meta: {
                auth: ['cashier-hang-index'],
                title: '挂单'
            },
            component: () => import('@/pages/hang/index')
        },
        {
            path: 'order/index',
            name: `${pre}order`,
            meta: {
                auth: ['cashier-order-index'],
                title: '订单'
            },
            component: () => import('@/pages/order/index')
        },
        {
            path: 'verify/index',
            name: `${pre}verify`,
            meta: {
                auth: ['cashier-verify-index'],
                title: '核销'
            },
            component: () => import('@/pages/verify/index')
        },
        {
            path: 'refund/index',
            name: `${pre}refund`,
            meta: {
                auth: ['cashier-refund-index'],
                title: '退款'
            },
            component: () => import('@/pages/refund/index')
        },
        {
            path: 'recharge/index',
            name: `${pre}recharge`,
            meta: {
                auth: ['cashier-recharge-index'],
                title: '用户'
            },
            component: () => import('@/pages/recharge/index')
        },
        {
          path: 'table/index',
          name: `${pre}table`,
          meta: {
              auth: ['cashier-table-index'],
              title: '桌码'
          },
          component: () => import('@/pages/table/index')
        }
    ]
};
