import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { HushijiandanComponent } from './hushijiandan.component';
import { DetailSampleComponent } from '../../share/detail-sample/detail-sample.component';
import { DetailPatientsComponent } from '../../share/detail-patients/detail-patients.component';
import { DetailDrugComponent } from '../../share/detail-drug/detail-drug.component';
import { DetailOthersComponent } from '../../share/detail-others/detail-others.component';
import { AllocationWorkerComponent } from '../../share/allocation-worker/allocation-worker.component';
import { DetailBxComponent } from 'src/app/share/detail-bx/detail-bx.component';
import { DetailOrdinaryComponent } from 'src/app/share/detail-ordinary/detail-ordinary.component';


const routes: Routes = [
  {
    path: '',
    component: HushijiandanComponent,
    children: [
      {
        // 工单详情-标本
        path: 'detailSample/:id',
        component: DetailSampleComponent
      },
      {
        // 工单详情-万能交接服务
        path: 'detailOrdinary/:id',
        component: DetailOrdinaryComponent
      },
      {
        // 工单详情-送患者
        path: 'detailPatients/:id',
        component: DetailPatientsComponent
      },
      {
        // 工单详情-送患者
        path: 'detailDrug/:id',
        component: DetailDrugComponent
      },
      {
        // 工单详情-其他
        path: 'detailOthers/:id',
        component: DetailOthersComponent
      },
      {
        // 报修详情
        path: 'detailBx/:id',
        component: DetailBxComponent
      },
      {
        // 指派
        path: 'allotWorker/:id/:stateId/:flag/:hosId',
        component: AllocationWorkerComponent
      }
    ]
  }
];

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