This commit is contained in:
wangshiming
2022-04-27 20:44:42 +08:00
parent 5f3b814afe
commit a9ad891224
2 changed files with 7 additions and 7 deletions

View File

@ -175,7 +175,7 @@ export class SupplyManagementOnecarPublishComponent implements OnInit {
if (str) {
this.getRegionCode(str);
this.shipperName = qs?.label;
this.payChange();
this.payChange(1);
}
}
} as SFSelectWidgetSchema
@ -728,7 +728,7 @@ export class SupplyManagementOnecarPublishComponent implements OnInit {
}
});
}
payChange() {
payChange(value?:number) {
const prePay = this.sf7.value.prePay || 0;
const toPay = this.sf7.value.toPay || 0;
const receiptPay = this.sf7.value.receiptPay || 0;
@ -741,7 +741,7 @@ export class SupplyManagementOnecarPublishComponent implements OnInit {
fuelCardAmount: oilCardPay,
resourcetype: '1'
};
if(!this?.sf1.value?.shipperAppUserId || !this?.sf1.value?.enterpriseInfoName) {
if((!this?.sf1.value?.shipperAppUserId || !this?.sf1.value?.enterpriseInfoName) && value) {
this.service.msgSrv.warning('请先选择货主和网络货运人!');
this.sf7.setValue('/prePay', 0);
this.sf7.setValue('/toPay', 0);