12345678910111213141516171819202122232425262728293031323334353637383940 |
- import { NgModule } from '@angular/core';
- import { PreloadAllModules, RouterModule, Routes } from '@angular/router';
- import { LoginGuardGuard } from '../guard/login-guard.guard';
- const routes: Routes = [
- { path: '', loadChildren: './login/login.page.module#LoginPageModule' },
- { path: '', loadChildren: './tabs/tabs.module#TabsPageModule', canActivate: [LoginGuardGuard] },
- // { path: '', loadChildren: './store-sample-tabs/store-sample-tabs.module#StoreSampleTabsPageModule', canActivate: [LoginGuardGuard] },
- { path: 'sample', loadChildren: './sample/sample.module#SamplePageModule' },
- { path: 'sample-detail', loadChildren: './sample-detail/sample-detail.module#SampleDetailPageModule' },
- { path: 'sample-table', loadChildren: './sample-table/sample-table.module#SampleTablePageModule' },
- { path: 'contract', loadChildren: './contract/contract.module#ContractPageModule' },
- { path: 'contract-table', loadChildren: './contract-table/contract-table.module#ContractTablePageModule' },
- { path: 'contract-detail', loadChildren: './contract-detail/contract-detail.module#ContractDetailPageModule' },
- { path: 'enter-store', loadChildren: './enter-store/enter-store.module#EnterStorePageModule' },
- { path: 'store-sample', loadChildren: './store-sample/store-sample.module#StoreSamplePageModule' },
- { path: 'store-sample-barcode', loadChildren: './store-sample-barcode/store-sample-barcode.module#StoreSampleBarcodePageModule' },
- { path: 'store-sample-binding', loadChildren: './store-sample-binding/store-sample-binding.module#StoreSampleBindingPageModule' },
- { path: 'store-pending', loadChildren: './store-pending/store-pending.module#StorePendingPageModule' },
- { path: 'store-qc', loadChildren: './store-qc/store-qc.module#StoreQCPageModule' },
- { path: 'store-qc-detail/:firstcheckrpid', loadChildren: './store-qc-detail/store-qc-detail.module#StoreQCDetailPageModule' },
- { path: 'store-qc-scanning/:sscId/:pId', loadChildren: './store-qc-scanning/store-qc-scanning.module#StoreQCScanningPageModule' },
- { path: 'store-qc-scanning', loadChildren: './store-qc-scanning/store-qc-scanning.module#StoreQCScanningPageModule' },
- { path: 'store-sample-pending', loadChildren: './store-sample-pending/store-sample-pending.module#StoreSamplePendingPageModule' },
- { path: 'warehouse-manage-pending', loadChildren: './warehouse-manage-pending/warehouse-manage-pending.module#WarehouseManagePendingPageModule' },
- { path: 'home', loadChildren: './home/home.module#HomePageModule' },
- { path: 'es-apply-scan', loadChildren: './es-apply-scan/es-apply-scan.module#EsApplyScanPageModule' },
- { path: 'enter-store-list', loadChildren: './enter-store-list/enter-store-list.module#EnterStoreListPageModule' },
- { path: 'enter-store-detail/:code/:entergoodsid', loadChildren: './enter-store-detail/enter-store-detail.module#EnterStoreDetailPageModule' },
- { path: 'store-qc-search', loadChildren: './store-qc-search/store-qc-search.module#StoreQcSearchPageModule' },
- { path: 'sample-count-zero', loadChildren: './sample-count-zero/sample-count-zero.module#SampleCountZeroPageModule' }
- // { path: 'scanning', loadChildren: './scanning/scanning.module#ScanningPageModule', canActivate: [LoginGuardGuard] }
- ];
- @NgModule({
- imports: [
- RouterModule.forRoot(routes, { preloadingStrategy: PreloadAllModules })
- ],
- exports: [RouterModule]
- })
- export class AppRoutingModule {}
|