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