app-routing.module.ts 3.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. import { NgModule } from '@angular/core';
  2. import { PreloadAllModules, RouterModule, Routes } from '@angular/router';
  3. import { LoginGuardGuard } from '../guard/login-guard.guard';
  4. const routes: Routes = [
  5. { path: '', loadChildren: './login/login.page.module#LoginPageModule' },
  6. { path: '', loadChildren: './tabs/tabs.module#TabsPageModule', canActivate: [LoginGuardGuard] },
  7. // { path: '', loadChildren: './store-sample-tabs/store-sample-tabs.module#StoreSampleTabsPageModule', canActivate: [LoginGuardGuard] },
  8. { path: 'sample', loadChildren: './sample/sample.module#SamplePageModule' },
  9. { path: 'sample-detail', loadChildren: './sample-detail/sample-detail.module#SampleDetailPageModule' },
  10. { path: 'sample-table', loadChildren: './sample-table/sample-table.module#SampleTablePageModule' },
  11. { path: 'contract', loadChildren: './contract/contract.module#ContractPageModule' },
  12. { path: 'contract-table', loadChildren: './contract-table/contract-table.module#ContractTablePageModule' },
  13. { path: 'contract-detail', loadChildren: './contract-detail/contract-detail.module#ContractDetailPageModule' },
  14. { path: 'enter-store', loadChildren: './enter-store/enter-store.module#EnterStorePageModule' },
  15. { path: 'store-sample', loadChildren: './store-sample/store-sample.module#StoreSamplePageModule' },
  16. { path: 'store-sample-barcode', loadChildren: './store-sample-barcode/store-sample-barcode.module#StoreSampleBarcodePageModule' },
  17. // { path: 'bluetooth', loadChildren: './bluetooth/bluetooth.module#BluetoothPageModule' },
  18. { path: 'store-sample-binding', loadChildren: './store-sample-binding/store-sample-binding.module#StoreSampleBindingPageModule' },
  19. { path: 'store-pending', loadChildren: './store-pending/store-pending.module#StorePendingPageModule' },
  20. { path: 'store-qc', loadChildren: './store-qc/store-qc.module#StoreQCPageModule' },
  21. { path: 'store-qc-detail', loadChildren: './store-qc-detail/store-qc-detail.module#StoreQCDetailPageModule' },
  22. { path: 'store-qc-scanning/:sscId/:pId', loadChildren: './store-qc-scanning/store-qc-scanning.module#StoreQCScanningPageModule' },
  23. { path: 'store-qc-scanning', loadChildren: './store-qc-scanning/store-qc-scanning.module#StoreQCScanningPageModule' },
  24. { path: 'store-sample-pending', loadChildren: './store-sample-pending/store-sample-pending.module#StoreSamplePendingPageModule' },
  25. { path: 'warehouse-manage-pending', loadChildren: './warehouse-manage-pending/warehouse-manage-pending.module#WarehouseManagePendingPageModule' },
  26. { path: 'home', loadChildren: './home/home.module#HomePageModule' },
  27. { path: 'es-apply-scan', loadChildren: './es-apply-scan/es-apply-scan.module#EsApplyScanPageModule' },
  28. { path: 'enter-store-list', loadChildren: './enter-store-list/enter-store-list.module#EnterStoreListPageModule' },
  29. { path: 'enter-store-detail/:code/:entergoodsid', loadChildren: './enter-store-detail/enter-store-detail.module#EnterStoreDetailPageModule' },
  30. { path: 'store-qc-search', loadChildren: './store-qc-search/store-qc-search.module#StoreQcSearchPageModule' }
  31. // { path: 'scanning', loadChildren: './scanning/scanning.module#ScanningPageModule', canActivate: [LoginGuardGuard] }
  32. ];
  33. @NgModule({
  34. imports: [
  35. RouterModule.forRoot(routes, { preloadingStrategy: PreloadAllModules })
  36. ],
  37. exports: [RouterModule]
  38. })
  39. export class AppRoutingModule {}