fix bug
This commit is contained in:
@ -4,7 +4,7 @@
|
||||
* @Author : Shiming
|
||||
* @Date : 2021-12-15 13:17:42
|
||||
* @LastEditors : Shiming
|
||||
* @LastEditTime : 2022-02-11 11:08:42
|
||||
* @LastEditTime : 2022-02-21 14:27:51
|
||||
* @FilePath : \\tms-obc-web\\src\\app\\routes\\order-management\\modal\\vehicle\\update-freight\\update-freight.component.html
|
||||
* Copyright (C) 2022 huzhenhong. All rights reserved.
|
||||
-->
|
||||
@ -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 && payIng">确定</button>
|
||||
<button nz-button type="submit" nzType="primary" (click)="save(sf.value)" [disabled]="!aggreechecked">确定</button>
|
||||
</div>
|
||||
|
||||
@ -4,7 +4,7 @@
|
||||
* @Author : Shiming
|
||||
* @Date : 2021-12-15 13:17:42
|
||||
* @LastEditors : Shiming
|
||||
* @LastEditTime : 2022-02-21 14:16:50
|
||||
* @LastEditTime : 2022-02-21 14:27: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,7 +26,6 @@ export class VehicleUpdateFreightComponent implements OnInit {
|
||||
ui: SFUISchema = {};
|
||||
|
||||
aggreechecked = false;
|
||||
payIng = true;
|
||||
|
||||
@Input()
|
||||
data: any;
|
||||
@ -38,11 +37,6 @@ 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 = {
|
||||
@ -128,7 +122,11 @@ export class VehicleUpdateFreightComponent implements OnInit {
|
||||
}
|
||||
|
||||
save(value: any): void {
|
||||
if (!this.sf.valid) {
|
||||
if (this.data.isFreightChangeApplication) {
|
||||
this.service.msgSrv.error('变更申请未处理,请勿重复申请!');
|
||||
return;
|
||||
}
|
||||
if (!this.save) {
|
||||
this.service.msgSrv.error('请填写必填项!');
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user