/*
 * @Description  :
 * @Version      : 1.0
 * @Author       : Shiming
 * @Date         : 2022-01-06 09:24:00
 * @LastEditors  : Shiming
 * @LastEditTime : 2022-04-29 10:41:21
 * @FilePath     : \\tms-obc-web\\src\\app\\routes\\order-management\\order-management-routing.module.ts
 * Copyright (C) 2022 huzhenhong. All rights reserved.
 */
import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { OrderManagementAbnormalWarningComponent } from './components/abnormal-warning/abnormal-warning.component';
import { OrderManagementBulkDetailChangeComponent } from './components/bulk-detail-change/bulk-detail-change.component';
import { OrderManagementBulkeDetailComponent } from './components/bulk-detail/bulk-detail.component';
import { OrderManagementBulkComponent } from './components/bulk/bulk.component';
import { OrderManagementComplaintDetailComponent } from './components/complaint-detail/complaint-detail.component';
import { OrderManagementComplaintComponent } from './components/complaint/complaint.component';
import { OrderManagementComplianceAuditComponent } from './components/compliance-audit/compliance-audit.component';
import { OrderManagementReceiptsAuditComponent } from './components/receipts-audit/receipts-audit.component';
import { OrderManagementRiskDetailComponent } from './components/risk-detail/risk-detail.component';
import { OrderManagementRiskComponent } from './components/risk/risk.component';
import { OrderManagementVehicleDetailChangeComponent } from './components/vehicle-detail-change/vehicle-detail-change.component';
import { OrderManagementVehicleDetailComponent } from './components/vehicle-detail/vehicle-detail.component';
import { OrderManagementVehicleComponent } from './components/vehicle/vehicle.component';

const routes: Routes = [
  { path: 'vehicle', component: OrderManagementVehicleComponent, data: { guard: { ability: ['ORDER-VEHICLE-search'] } } },
  {
    path: 'vehicle/vehicle-detail/:id',
    component: OrderManagementVehicleDetailComponent,
    data: { guard: { ability: ['ORDER-VEHICLE-DETAIL-search'] } }
  },
  { path: 'vehicle-detailChange/:id', component: OrderManagementVehicleDetailChangeComponent },
  { path: 'bulk', component: OrderManagementBulkComponent, data: { guard: { ability: ['ORDER-BULK-search'] } } },
  {
    path: 'bulk/bulk-detail/:id',
    component: OrderManagementBulkeDetailComponent,
    data: { guard: { ability: ['ORDER-BULK-DETAIL-search'] } }
  },
  { path: 'bulk-detailChange/:id', component: OrderManagementBulkDetailChangeComponent },
  { path: 'risk', component: OrderManagementRiskComponent, data: { guard: { ability: ['ORDER-RISK-search'] } } },
  { path: 'risk-detail/:id', component: OrderManagementRiskDetailComponent },
  { path: 'complaint', component: OrderManagementComplaintComponent, data: { guard: { ability: ['ORDER-COMPLAINT-search'] } } },
  { path: 'complaint-detail/:id', component: OrderManagementComplaintDetailComponent },
  { path: 'receipts-audit', component: OrderManagementReceiptsAuditComponent, data: { guard: { ability: ['ORDER-RECEIPTS-search'] } } },
  {
    path: 'compliance-audit',
    component: OrderManagementComplianceAuditComponent,
    data: { guard: { ability: ['ORDER-COMPLIANCE-AUDIT-search'] } }
  },
  { path: 'abnormal-warning', component: OrderManagementAbnormalWarningComponent, data: { guard: { ability: ['ORDER-ABNORMAL-search'] } } }
];
@NgModule({
  imports: [RouterModule.forChild(routes)],
  exports: [RouterModule]
})
export class OrderManagementRoutingModule {}
