import { FreightAccountComponent } from './components/freight-account/freight-account.component';
import { DriverAccountComponent } from './components/driver-account/driver-account.component';
import { RechargeRecordComponent } from './components/recharge-record/recharge-record.component';
import { WithdrawalsRecordComponent } from './components/withdrawals-record/withdrawals-record.component';
import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { FreightAccountDetailComponent } from './components/freight-account/freight-account-detail/freight-account-detail.component';
import { DriverAccountDetailComponent } from './components/driver-account/driver-account-detail/driver-account-detail.component';
import { WithdrawalsDetailComponent } from './components/withdrawals-record/withdrawals-detail/withdrawals-detail.component';
import { CostManagementComponent } from './components/cost-management/cost-management.component';
import { AbnormalGoldComponent } from './components/abnormal-gold/abnormal-gold.component';
import { PaymentRecordComponent } from './components/payment-record/payment-record.component';
import { TransactionFlowComponent } from './components/transaction-flow/transaction-flow.component';
import { CostManagementDetailComponent } from './components/cost-management/cost-management-detail/cost-management-detail.component';
import { ExpensesReceivableComponent } from './components/cost-management/expenses-receivable/expenses-receivable.component';
import { ExpensesPayableComponent } from './components/cost-management/expenses-payable/expenses-payable.component';
import { PaymentOrderComponent } from './components/payment-order/payment-order.component';
import { ReceiptOrderComponent } from './components/receipt-order/receipt-order.component';
import { VoucherManagementComponent } from './components/voucher-management/voucher-management.component';
import { VoucherSummaryComponent } from './components/voucher-summary/voucher-summary.component';

const routes: Routes = [
  { path: 'freight-account', component: FreightAccountComponent },
  { path: 'freight-account/detail/:id', component: FreightAccountDetailComponent },
  { path: 'driver-account', component: DriverAccountComponent },
  { path: 'driver-account/detail/:id', component: DriverAccountDetailComponent },
  { path: 'recharge-record', component: RechargeRecordComponent },
  { path: 'withdrawals-record', component: WithdrawalsRecordComponent },
  { path: 'withdrawals-record/detail/:id', component: WithdrawalsDetailComponent },
  { path: 'voucher-management', component: VoucherManagementComponent },
  { path: 'voucher-summary', component: VoucherSummaryComponent },
  { path: 'cost-management', component: CostManagementComponent },
  { path: 'cost-management/detail/:id', component: CostManagementDetailComponent },
  { path: 'cost-management/expenses-receivable/:id', component: ExpensesReceivableComponent },
  { path: 'cost-management/expenses-payable/:id', component: ExpensesPayableComponent },
  { path: 'abnormal-gold', component: AbnormalGoldComponent },
  { path: 'payment-record', component: PaymentRecordComponent },
  { path: 'transaction-flow', component: TransactionFlowComponent },
  { path: 'payment-order', component: PaymentOrderComponent },
  { path: 'receipt-order', component: ReceiptOrderComponent }
];

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