import type { RouteRecordRaw } from 'vue-router';

const routes: RouteRecordRaw[] = [
  {
    meta: {
      icon: 'mdi:chart-areaspline',
      keepAlive: true,
      order: 1000,
      title: '统计分析',
    },
    name: 'Statistics',
    path: '/statistics',
    children: [
      {
        meta: {
          title: '天医币报表',
          keepAlive: true,
        },
        name: 'TianyibiReport',
        path: '/statistics/tianyibi-report',
        component: () => import('#/views/statistics/tianyibi/report.vue'),
      },
      {
        meta: {
          title: '实物报表',
          keepAlive: true,
        },
        name: 'PhysicalReport',
        path: '/statistics/physical-report',
        component: () => import('#/views/statistics/physical/report.vue'),
      },
      {
        meta: {
          title: '培训班报表',
          keepAlive: true,
        },
        name: 'TrainingClassReport',
        path: '/statistics/training-class-report',
        component: () => import('#/views/statistics/trainingClass/report.vue'),
      },
      {
        meta: {
          title: 'VIP报表',
          keepAlive: true,
        },
        name: 'VipReport',
        path: '/statistics/vip-report',
        component: () => import('#/views/statistics/vip/report.vue'),
      },
      {
        meta: {
          title: '课程报表',
          keepAlive: true,
        },
        name: 'CourseReport',
        path: '/statistics/course-report',
        component: () => import('#/views/statistics/course/report.vue'),
      },
      {
        meta: {
          title: '月度财务报表',
          keepAlive: true,
        },
        name: 'FinanceMonthReport',
        path: '/statistics/finance-month-report',
        component: () => import('#/views/statistics/summary-month/report.vue'),
      },
      {
        meta: {
          title: '下载全部报表',
          keepAlive: true,
        },
        name: 'DownloadReports',
        path: '/statistics/download-reports',
        component: () => import('#/views/statistics/download/index.vue'),
      },
    ],
  },
];

export default routes;
