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);

View File

@ -162,7 +162,7 @@ export class SupplyManagementReleasePublishComponent implements OnInit {
if (str) {
this.getRegionCode(str);
this.shipperName = qs?.label;
this.payChange();
this.payChange(1);
}
}
} as SFSelectWidgetSchema
@ -192,7 +192,7 @@ export class SupplyManagementReleasePublishComponent implements OnInit {
change: (q: any, qs: any) => {
console.log(qs.label);
this.sf1.setValue('/enterpriseInfoNamer', qs.label);
this.payChange()
this.payChange(1)
}
}
},
@ -748,7 +748,7 @@ export class SupplyManagementReleasePublishComponent implements OnInit {
this.sf1.getProperty('/enterpriseProjectId')!.widget.reset(res);
});
}
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;
@ -761,7 +761,7 @@ export class SupplyManagementReleasePublishComponent 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);