import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { DistributionInspectionStatisticsComponent } from './distribution-inspection-statistics.component';


const routes: Routes = [
  {
    path: '',
    component: DistributionInspectionStatisticsComponent,
    children: [
      {
        // 综合统计
        path: 'distributionSynthesizeStatistics',
        loadChildren: () => import('./distribution-synthesize-statistics/distribution-synthesize-statistics.module').then(m => m.DistributionSynthesizeStatisticsModule),
        data: {
          reuse: true,
          title: '综合统计'
        }
      },
      {
        // 日期业务统计
        path: 'dateBusinessStatistics',
        loadChildren: () => import('./date-business-statistics/date-business-statistics.module').then(m => m.DateBusinessStatisticsModule),
        data: {
          reuse: true,
          title: '日期业务统计'
        }
      },
      {
        // 日期质控统计
        path: 'dateQualityControlStatistics',
        loadChildren: () => import('./date-quality-control-statistics/date-quality-control-statistics.module').then(m => m.DateQualityControlStatisticsModule),
        data: {
          reuse: true,
          title: '日期质控统计'
        }
      },
      {
        // 科室业务统计
        path: 'departmentBusinessStatistics',
        loadChildren: () => import('./department-business-statistics/department-business-statistics.module').then(m => m.DepartmentBusinessStatisticsModule),
        data: {
          reuse: true,
          title: '科室业务统计'
        }
      },
      {
        // 科室质控统计
        path: 'departmentQualityControlStatistics',
        loadChildren: () => import('./department-quality-control-statistics/department-quality-control-statistics.module').then(m => m.DepartmentQualityControlStatisticsModule),
        data: {
          reuse: true,
          title: '科室质控统计'
        }
      },
      {
        // 科室评价统计
        path: 'distributionDepartmentEvaluateStatistics',
        loadChildren: () => import('./distribution-department-evaluate-statistics/distribution-department-evaluate-statistics.module').then(m => m.DistributionDepartmentEvaluateStatisticsModule),
        data: {
          reuse: true,
          title: '科室评价统计'
        }
      },
      {
        // 科室来源统计
        path: 'distributionDepartmentSourceStatistics',
        loadChildren: () => import('./distribution-department-source-statistics/distribution-department-source-statistics.module').then(m => m.DistributionDepartmentSourceStatisticsModule),
        data: {
          reuse: true,
          title: '科室来源统计'
        }
      },
      {
        // 人员业务统计
        path: 'userBusinessStatistics',
        loadChildren: () => import('./user-business-statistics/user-business-statistics.module').then(m => m.UserBusinessStatisticsModule),
        data: {
          reuse: true,
          title: '人员业务统计'
        }
      },
      {
        // 人员质控统计
        path: 'userQualityControlStatistics',
        loadChildren: () => import('./user-quality-control-statistics/user-quality-control-statistics.module').then(m => m.UserQualityControlStatisticsModule),
        data: {
          reuse: true,
          title: '人员质控统计'
        }
      },
      {
        // 来源统计
        path: 'sourceStatistics',
        loadChildren: () => import('./source-statistics/source-statistics.module').then(m => m.SourceStatisticsModule),
        data: {
          reuse: true,
          title: '来源统计'
        }
      },
    ]
  }
];

@NgModule({
  imports: [RouterModule.forChild(routes)],
  exports: [RouterModule]
})
export class DistributionInspectionStatisticsRoutingModule { }
