This commit is contained in:
wangshiming
2022-03-08 19:24:33 +08:00
parent 334a8bf58c
commit ce4f1e1ed1
2 changed files with 5 additions and 4 deletions

View File

@ -1383,7 +1383,7 @@ export class SupplyManagementOnecarPublishComponent implements OnInit {
}
// 计算保价费金额
getInsurersPrice(insuranceType = this.sf5.value.insuranceType) {
if ( this.sf5.value?.insuranceType !=='3' && this.sf4.value?.goodsValue >= 50000 && this.totalDistance > 0 ) {
if ( insuranceType !=='3' && this.sf4.value?.goodsValue >= 50000 && this.totalDistance > 0 ) {
const params = {
insuranceType,
goodsValue: this.sf4.value.goodsValue,

View File

@ -443,6 +443,7 @@ export class SupplyManagementReleasePublishComponent implements OnInit {
this.sf5.setValue('/insurancePremium', null);
this.sf5.setValue('/insuranceRate', null);
}else {
console.log(tag)
this.getInsurersPrice(tag);
}
}
@ -1170,9 +1171,9 @@ export class SupplyManagementReleasePublishComponent implements OnInit {
}
}
// 计算保价费金额
getInsurersPrice(insuranceType = this.sf5.value.insuranceType) {
console.log(this.sf5.value?.insuranceType)
if ( this.sf5.value?.insuranceType !=='3' && this.sf4.value?.goodsValue >= 50000 && this.totalDistance > 0 ) {
getInsurersPrice(insuranceType = this.sf5.value?.insuranceType) {
console.log(insuranceType)
if ( insuranceType !=='3' && this.sf4.value?.goodsValue >= 50000 && this.totalDistance > 0 ) {
const params = {
insuranceType,
goodsValue: this.sf4.value.goodsValue,