This commit is contained in:
wangshiming
2022-04-27 20:39:50 +08:00
parent 1045145773
commit 64dd8bf883

View File

@ -741,6 +741,13 @@ export class SupplyManagementOnecarPublishComponent implements OnInit {
fuelCardAmount: oilCardPay, fuelCardAmount: oilCardPay,
resourcetype: '1' resourcetype: '1'
}; };
if(!this?.sf1.value?.shipperAppUserId || !this?.sf1.value?.enterpriseInfoName) {
this.service.msgSrv.warning('请先选择货主和网络货运人!');
this.sf7.setValue('/prePay', 0);
this.sf7.setValue('/toPay', 0);
this.sf7.setValue('/receiptPay', 0);
return
}
this.service.request(this.service.$api_getCalculatedSurcharge, params).subscribe(res => { this.service.request(this.service.$api_getCalculatedSurcharge, params).subscribe(res => {
if (res) { if (res) {
this.sf7.setValue('/appendFee', res.surcharge); this.sf7.setValue('/appendFee', res.surcharge);