inspection.page.ts 604 B

12345678910111213141516171819202122232425262728
  1. import { Component, OnInit } from '@angular/core';
  2. import { Router } from '@angular/router';
  3. @Component({
  4. selector: 'app-inspection',
  5. templateUrl: './inspection.page.html',
  6. styleUrls: ['./inspection.page.scss'],
  7. })
  8. export class InspectionPage implements OnInit {
  9. public scCode: string
  10. public poCode: string
  11. constructor(private router: Router) { }
  12. ngOnInit() {
  13. }
  14. search() {
  15. if(this.poCode==='') {
  16. this.poCode=undefined
  17. }
  18. if(this.scCode==='') {
  19. this.scCode=undefined
  20. }
  21. this.router.navigateByUrl(`/inspection-list/${this.poCode}/${this.scCode}`)
  22. }
  23. }