fix bug
This commit is contained in:
		| @ -4,7 +4,7 @@ | ||||
|  * @Author       : Shiming | ||||
|  * @Date         : 2021-12-24 16:58:02 | ||||
|  * @LastEditors  : Shiming | ||||
|  * @LastEditTime : 2022-03-07 17:41:48 | ||||
|  * @LastEditTime : 2022-03-07 17:51:46 | ||||
|  * @FilePath     : \\tms-obc-web\\src\\app\\routes\\order-management\\components\\bulk-detail-change\\bulk-detail-change.component.ts | ||||
|  * Copyright (C) 2022 huzhenhong. All rights reserved. | ||||
|  */ | ||||
| @ -90,6 +90,7 @@ loadTime: any; // 货源单设置回显 | ||||
|     public shipperservice: ShipperBaseService, | ||||
|     fb: FormBuilder,  | ||||
|     private envSrv: EAEnvironmentService, | ||||
|     private ar: ActivatedRoute, | ||||
|   ) { | ||||
|     this.validateForm1 = fb.group({ | ||||
|     loadTime: [null, []], | ||||
| @ -495,6 +496,7 @@ loadTime: any; // 货源单设置回显 | ||||
|     this.service.request(this.service.$api_set_modifyBulkOrder, params).subscribe((res: any) => { | ||||
|       if(res) { | ||||
|         this.service.msgSrv.success('修改成功!'); | ||||
|         this.router.navigate(['./bulk-detail', this.id], { relativeTo: this.ar }); | ||||
|       } else { | ||||
|         this.service.msgSrv.error(res?.msg); | ||||
|       } | ||||
|  | ||||
| @ -4,7 +4,7 @@ | ||||
|  * @Author       : Shiming | ||||
|  * @Date         : 2021-12-23 13:39:58 | ||||
|  * @LastEditors  : Shiming | ||||
|  * @LastEditTime : 2022-03-07 17:30:05 | ||||
|  * @LastEditTime : 2022-03-07 17:52:59 | ||||
|  * @FilePath     : \\tms-obc-web\\src\\app\\routes\\order-management\\components\\vehicle-detail-change\\vehicle-detail-change.component.ts | ||||
|  * Copyright (C) 2022 huzhenhong. All rights reserved. | ||||
|  */ | ||||
| @ -98,6 +98,7 @@ export class OrderManagementVehicleDetailChangeComponent implements OnInit { | ||||
|     private modalService: NzModalService, | ||||
|     private amapService: AmapService, | ||||
|     public shipperservice: ShipperBaseService, | ||||
|     private ar: ActivatedRoute, | ||||
|     fb: FormBuilder, | ||||
|     private envSrv: EAEnvironmentService | ||||
|   ) { | ||||
| @ -545,6 +546,7 @@ export class OrderManagementVehicleDetailChangeComponent implements OnInit { | ||||
|       console.log(res); | ||||
|       if (res) { | ||||
|         this.service.msgSrv.success('修改成功!'); | ||||
|         this.router.navigate(['./vehicle-detail', this.id], { relativeTo: this.ar }); | ||||
|       } else { | ||||
|         this.service.msgSrv.error(res?.msg); | ||||
|       } | ||||
|  | ||||
		Reference in New Issue
	
	Block a user