import layoutHeaderAside from '@/layout/header-aside'

const meta = { requiresAuth: true }

export default {
  path: '/cost',
  name: 'cost',
  meta,
  redirect: { name: 'cost-subsidy' },
  component: layoutHeaderAside,
  children: (pre => [
    { path: 'enterprise', name: `${pre}enterprise`, component: () => import('@/views/cost/enterprise'), meta: { meta, title: '企业组登记',cache:true } },
    { path: 'subsidy', name: `${pre}subsidy`, component: () => import('@/views/cost/subsidy'), meta: { meta, title: '补贴发放管理',cache:true} },
		{ path: 'meal', name: `${pre}meal`, component: () => import('@/views/cost/meal'), meta: { meta, title: '餐别管理',cache:true } },
		{ path: 'giveSubsidyCount', name: `${pre}giveSubsidyCount`, component: () => import('@/views/cost/giveSubsidyCount'), meta: { meta, title: '补贴发放统计',cache:true} },
		{ path: 'merchant', name: `${pre}merchant`, component: () => import('@/views/cost/merchant'), meta: { meta, title: '商户管理',cache:true} },
		{ path: 'costCount', name: `${pre}costCount`, component: () => import('@/views/cost/costCount'), meta: { meta, title: '个人消费统计',cache:true} },
		{ path: 'insertCount', name: `${pre}insertCount`, component: () => import('@/views/cost/insertCount'), meta: { meta, title: '充值统计',cache:true} },
		{ path: 'accountCount', name: `${pre}accountCount`, component: () => import('@/views/cost/accountCount'), meta: { meta, title: '个人账户余额',cache:true} },
	  { path: 'mtCostCount', name: `${pre}mtCostCount`, component: () => import('@/views/cost/mtCostCount'), meta: { meta, title: '商户消费统计',cache:true} },
		{ path: 'costRecord', name: `${pre}costRecord`, component: () => import('@/views/cost/costRecord'), meta: { meta, title: '消费记录',cache:true} },
		{ path: 'insert', name: `${pre}insert`, component: () => import('@/views/cost/insert'), meta: { meta, title: '充值记录',cache:true} },
	//{ path: 'subsidiesCount', name: `${pre}subsidiesCount`, component: () => import('@/pages/cost/subsidiesCount'), meta: { meta, title: '补贴余额报表',cache:true} },
		//{ path: 'detailCount', name: `${pre}detailCount`, component: () => import('@/pages/cost/detailCount'), meta: { meta, title: '领取补贴明细报表',cache:true} }
  ])('cost-')
}