import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { MaintenanceStatisticsComponent } from './maintenance-statistics.component';


const routes: Routes = [
  {
    path: '',
    component: MaintenanceStatisticsComponent,
    children: [
			{
			  // 综合统计
			  path: 'synthesizeStatistics',
			  loadChildren: () => import('./synthesize-statistics/synthesize-statistics.module').then(m => m.SynthesizeStatisticsModule),
			  data: {
			    reuse: true,
			    title: '修-综合统计'
			  }
			},
      {
        // 故障工单统计
        path: 'incidentStatistics',
        loadChildren: () => import('./incident-statistics/incident-statistics.module').then(m => m.IncidentStatisticsModule),
        data: {
          reuse: true,
          title: '修-故障工单统计'
        }
      },
      {
        // 一级故障现象
        path: 'categoryOneStatistics',
        loadChildren: () => import('./category-one-statistics/category-one-statistics.module').then(m => m.CategoryOneStatisticsModule),
        data: {
          reuse: true,
          title: '修-一级故障现象'
        }
      },
      {
        // 二级故障现象
        path: 'categoryTwoStatistics',
        loadChildren: () => import('./category-two-statistics/category-two-statistics.module').then(m => m.CategoryTwoStatisticsModule),
        data: {
          reuse: true,
          title: '修-二级故障现象'
        }
      },
      {
        // 三级故障现象
        path: 'categoryThreeStatistics',
        loadChildren: () => import('./category-three-statistics/category-three-statistics.module').then(m => m.CategoryThreeStatisticsModule),
        data: {
          reuse: true,
          title: '修-三级故障现象'
        }
      },
      {
        // 维修组统计
        path: 'groupStatistics',
        loadChildren: () => import('./group-statistics/group-statistics.module').then(m => m.GroupStatisticsModule),
        data: {
          reuse: true,
          title: '修-维修组统计'
        }
      },
      {
        // 维修人统计
        path: 'userStatistics',
        loadChildren: () => import('./user-statistics/user-statistics.module').then(m => m.UserStatisticsModule),
        data: {
          reuse: true,
          title: '修-维修人统计'
        }
      },
      {
        // 三方公司统计
        path: 'tripartiteCompanyStatistics',
        loadChildren: () => import('./tripartite-company-statistics/tripartite-company-statistics.module').then(m => m.TripartiteCompanyStatisticsModule),
        data: {
          reuse: true,
          title: '修-三方公司统计'
        }
      },
      {
        // 楼栋统计
        path: 'buildingStatistics',
        loadChildren: () => import('./building-statistics/building-statistics.module').then(m => m.BuildingStatisticsModule),
        data: {
          reuse: true,
          title: '修-楼栋统计'
        }
      },
      {
        // 楼层统计
        path: 'floorStatistics',
        loadChildren: () => import('./floor-statistics/floor-statistics.module').then(m => m.FloorStatisticsModule),
        data: {
          reuse: true,
          title: '修-楼层统计'
        }
      },
      {
        // 科室工单统计
        path: 'departmentIncidentStatistics',
        loadChildren: () => import('./department-incident-statistics/department-incident-statistics.module').then(m => m.DepartmentIncidentStatisticsModule),
        data: {
          reuse: true,
          title: '修-科室工单统计'
        }
      },
      {
        // 科室评价统计
        path: 'departmentEvaluateStatistics',
        loadChildren: () => import('./department-evaluate-statistics/department-evaluate-statistics.module').then(m => m.DepartmentEvaluateStatisticsModule),
        data: {
          reuse: true,
          title: '修-科室评价统计'
        }
      },
      {
        // 科室来源统计
        path: 'departmentSourceStatistics',
        loadChildren: () => import('./department-source-statistics/department-source-statistics.module').then(m => m.DepartmentSourceStatisticsModule),
        data: {
          reuse: true,
          title: '修-科室来源统计'
        }
      },
      {
        // 故障来源统计
        path: 'categorySourceStatistics',
        loadChildren: () => import('./category-source-statistics/category-source-statistics.module').then(m => m.CategorySourceStatisticsModule),
        data: {
          reuse: true,
          title: '修-故障来源统计'
        }
      },
      {
        // 耗材统计
        path: 'consumableStatistics',
        loadChildren: () => import('./consumable-statistics/consumable-statistics.module').then(m => m.ConsumableStatisticsModule),
        data: {
          reuse: true,
          title: '修-耗材统计'
        }
      },
      {
        // 工时小类统计
        path: 'workHourSmallStatistics',
        loadChildren: () => import('./work-hour-small-statistics/work-hour-small-statistics.module').then(m => m.WorkHourSmallStatisticsModule),
        data: {
          reuse: true,
          title: '修-工时小类统计'
        }
      },
      {
        // 工时大类统计
        path: 'workHourBigStatistics',
        loadChildren: () => import('./work-hour-big-statistics/work-hour-big-statistics.module').then(m => m.WorkHourBigStatisticsModule),
        data: {
          reuse: true,
          title: '修-工时大类统计'
        }
      },
      {
        // 人员评价统计
        path: 'userEvaluateStatistics',
        loadChildren: () => import('./user-evaluate-statistics/user-evaluate-statistics.module').then(m => m.UserEvaluateStatisticsModule),
        data: {
          reuse: true,
          title: '修-人员评价统计'
        }
      },
			{
			  // 故障工单列表
			  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 MaintenanceStatisticsRoutingModule { }
