fix bug
This commit is contained in:
		| @ -25,5 +25,5 @@ | ||||
|  | ||||
| <div class="modal-footer"> | ||||
|   <button nz-button type="button" (click)="close()">关闭</button> | ||||
|   <button nz-button type="submit" nzType="primary" (click)="save(sf.value)" [disabled]="!aggreechecked">确定</button> | ||||
|   <button nz-button type="submit" nzType="primary" (click)="save(sf.value)" [disabled]="!aggreechecked && payIng">确定</button> | ||||
| </div> | ||||
|  | ||||
| @ -4,7 +4,7 @@ | ||||
|  * @Author       : Shiming | ||||
|  * @Date         : 2021-12-15 13:17:42 | ||||
|  * @LastEditors  : Shiming | ||||
|  * @LastEditTime : 2022-02-14 09:34:18 | ||||
|  * @LastEditTime : 2022-02-21 14:16:50 | ||||
|  * @FilePath     : \\tms-obc-web\\src\\app\\routes\\order-management\\modal\\vehicle\\update-freight\\update-freight.component.ts | ||||
|  * Copyright (C) 2022 huzhenhong. All rights reserved. | ||||
|  */ | ||||
| @ -26,6 +26,7 @@ export class VehicleUpdateFreightComponent implements OnInit { | ||||
|   ui: SFUISchema = {}; | ||||
|  | ||||
|   aggreechecked = false; | ||||
|   payIng = true; | ||||
|  | ||||
|   @Input() | ||||
|   data: any; | ||||
| @ -37,6 +38,11 @@ export class VehicleUpdateFreightComponent implements OnInit { | ||||
|   ngOnInit(): void { | ||||
|     console.log(this.data) | ||||
|     this.initSF(this.data); | ||||
|     if(this.data.isFreightChangeApplication) { | ||||
|       this.payIng = false; | ||||
|     } else { | ||||
|       this.payIng = true; | ||||
|     } | ||||
|   } | ||||
|   initSF(data: any) { | ||||
|     const info = { | ||||
|  | ||||
		Reference in New Issue
	
	Block a user