This commit is contained in:
wangshiming
2022-04-19 15:45:48 +08:00
parent 3601efccc0
commit ec7374a5fd
3 changed files with 38 additions and 2 deletions

View File

@ -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;
}
}