fix bug
This commit is contained in:
@ -175,7 +175,7 @@ export class SupplyManagementOnecarPublishComponent implements OnInit {
|
|||||||
if (str) {
|
if (str) {
|
||||||
this.getRegionCode(str);
|
this.getRegionCode(str);
|
||||||
this.shipperName = qs?.label;
|
this.shipperName = qs?.label;
|
||||||
this.payChange();
|
this.payChange(1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} as SFSelectWidgetSchema
|
} as SFSelectWidgetSchema
|
||||||
@ -728,7 +728,7 @@ export class SupplyManagementOnecarPublishComponent implements OnInit {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
payChange() {
|
payChange(value?:number) {
|
||||||
const prePay = this.sf7.value.prePay || 0;
|
const prePay = this.sf7.value.prePay || 0;
|
||||||
const toPay = this.sf7.value.toPay || 0;
|
const toPay = this.sf7.value.toPay || 0;
|
||||||
const receiptPay = this.sf7.value.receiptPay || 0;
|
const receiptPay = this.sf7.value.receiptPay || 0;
|
||||||
@ -741,7 +741,7 @@ export class SupplyManagementOnecarPublishComponent implements OnInit {
|
|||||||
fuelCardAmount: oilCardPay,
|
fuelCardAmount: oilCardPay,
|
||||||
resourcetype: '1'
|
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.service.msgSrv.warning('请先选择货主和网络货运人!');
|
||||||
this.sf7.setValue('/prePay', 0);
|
this.sf7.setValue('/prePay', 0);
|
||||||
this.sf7.setValue('/toPay', 0);
|
this.sf7.setValue('/toPay', 0);
|
||||||
|
|||||||
@ -162,7 +162,7 @@ export class SupplyManagementReleasePublishComponent implements OnInit {
|
|||||||
if (str) {
|
if (str) {
|
||||||
this.getRegionCode(str);
|
this.getRegionCode(str);
|
||||||
this.shipperName = qs?.label;
|
this.shipperName = qs?.label;
|
||||||
this.payChange();
|
this.payChange(1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} as SFSelectWidgetSchema
|
} as SFSelectWidgetSchema
|
||||||
@ -192,7 +192,7 @@ export class SupplyManagementReleasePublishComponent implements OnInit {
|
|||||||
change: (q: any, qs: any) => {
|
change: (q: any, qs: any) => {
|
||||||
console.log(qs.label);
|
console.log(qs.label);
|
||||||
this.sf1.setValue('/enterpriseInfoNamer', 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);
|
this.sf1.getProperty('/enterpriseProjectId')!.widget.reset(res);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
payChange() {
|
payChange(value?:number) {
|
||||||
const prePay = this.sf7.value.prePay || 0;
|
const prePay = this.sf7.value.prePay || 0;
|
||||||
const toPay = this.sf7.value.toPay || 0;
|
const toPay = this.sf7.value.toPay || 0;
|
||||||
const receiptPay = this.sf7.value.receiptPay || 0;
|
const receiptPay = this.sf7.value.receiptPay || 0;
|
||||||
@ -761,7 +761,7 @@ export class SupplyManagementReleasePublishComponent implements OnInit {
|
|||||||
fuelCardAmount: oilCardPay,
|
fuelCardAmount: oilCardPay,
|
||||||
resourcetype: '1'
|
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.service.msgSrv.warning('请先选择货主和网络货运人!');
|
||||||
this.sf7.setValue('/prePay', 0);
|
this.sf7.setValue('/prePay', 0);
|
||||||
this.sf7.setValue('/toPay', 0);
|
this.sf7.setValue('/toPay', 0);
|
||||||
|
|||||||
Reference in New Issue
Block a user