fix bug
This commit is contained in:
@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user