fix bug
This commit is contained in:
@ -24,6 +24,8 @@ export class VehicleUpdateFreightComponent implements OnInit {
|
||||
@ViewChild('sf', { static: false }) sf!: SFComponent;
|
||||
schema: SFSchema = {};
|
||||
ui: SFUISchema = {};
|
||||
isVisible = false;
|
||||
modalcontent = '';
|
||||
|
||||
aggreechecked = false;
|
||||
|
||||
@ -192,4 +194,30 @@ export class VehicleUpdateFreightComponent implements OnInit {
|
||||
};
|
||||
return params;
|
||||
}
|
||||
agreement() {
|
||||
|
||||
const param = {
|
||||
billId: this.data.id,
|
||||
pre: this.sf.value.prePay,
|
||||
rece: this.sf.value.toPay,
|
||||
back: this.sf.value.receiptPay,
|
||||
total: this.data.totalFreight,
|
||||
freightAmount: this.data.totalAmount,
|
||||
}
|
||||
this.service.request(this.service.$api_getSupplementaryAgreement, param).subscribe(res => {
|
||||
if (res) {
|
||||
this.modalcontent = res.contractContent;
|
||||
this.isVisible = true;
|
||||
}
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
|
||||
handleCancel() {
|
||||
this.isVisible = false;
|
||||
}
|
||||
handleOK() {
|
||||
this.isVisible = false;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user