/*
 * @Description  :
 * @Version      : 1.0
 * @Author       : Shiming
 * @Date         : 2021-12-03 11:10:14
 * @LastEditors  : Shiming
 * @LastEditTime : 2022-02-10 14:39:00
 * @FilePath     : \\tms-obc-web\\src\\app\\routes\\supply-management\\supply-management-routing.module.ts
 * Copyright (C) 2022 huzhenhong. All rights reserved.
 */

import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { SupplyManagementAddDriversComponent } from './components/add-drivers/add-drivers.component';
import { SupplyManagementBulkDetailComponent } from './components/bulk-detail/bulk-detail.component';
import { SupplyManagementBulkPublishComponent } from './components/bulk-publish/bulk-publish.component';
import { SupplyManagementBulkReleasePublishComponent } from './components/bulk-release-publish/bulk-release-publish.component';
import { SupplyManagementIndexComponent } from './components/index/index.component';
import { SupplyManagementOnecarPublishComponent } from './components/onecar-publish/onecar-publish.component';
import { SupplyManagementReleasePublishComponent } from './components/release-publish/release-publish.component';
import { SupplyManagementVehicleDetailComponent } from './components/vehicle-detail/vehicle-detail.component';

const routes: Routes = [
  { path: 'index', component: SupplyManagementIndexComponent },
  { path: 'index/bulk-detail/:id', component: SupplyManagementBulkDetailComponent },
  { path: 'index/vehicle-detail/:id', component: SupplyManagementVehicleDetailComponent },
  { path: 'add-drivers', component: SupplyManagementAddDriversComponent },
  { path: 'vehicle-amend/:id', component: SupplyManagementOnecarPublishComponent },
  { path: 'vehicle-release', component: SupplyManagementReleasePublishComponent },
  { path: 'bulk-release', component: SupplyManagementBulkReleasePublishComponent },
  { path: 'bulk-amend/:id', component: SupplyManagementBulkPublishComponent }
];

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