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: '配-来源统计'
        }
      },
			{
			  // 业务分类统计
			  path: 'businessClassifyStatistics',
			  loadChildren: () => import('./business-classify-statistics/business-classify-statistics.module').then(m => m.BusinessClassifyStatisticsModule),
			  data: {
			    reuse: true,
			    title: '配-业务分类统计'
			  }
			},
			{
			  // 任务类型质控统计
			  path: 'taskTypeQualityControlStatistics',
			  loadChildren: () => import('./taskType-quality-control-statistics/taskType-quality-control-statistics.module').then(m => m.TaskTypeQualityControlStatisticsModule),
			  data: {
			    reuse: true,
			    title: '配-任务类型质控统计'
			  }
			},
			{
			  // 人员评价统计
			  path: 'distributionUserEvaluateStatistics',
			  loadChildren: () => import('./distribution-user-evaluate-statistics/distribution-user-evaluate-statistics.module').then(m => m.DistributionUserEvaluateStatisticsModule),
			  data: {
			    reuse: true,
			    title: '配-人员评价统计'
			  }
			},
      {
			  // 24小时质控统计
			  path: 'hourQualityControlStatistics',
			  loadChildren: () => import('./hour-quality-control-statistics/hour-quality-control-statistics.module').then(m => m.HourQualityControlStatisticsModule),
			  data: {
			    reuse: true,
			    title: '配-24小时质控统计'
			  }
			},
			{
			  // 工单列表
			  path: 'incidentList',
			  loadChildren: () => import('./incident-list/incident-list.module').then(m => m.IncidentListModule),
			  data: {
			    reuse: true,
			    title: '配-工单列表'
			  }
			},
    ]
  }
];

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