diff --git a/src/app/routes/supply-management/components/onecar-publish/onecar-publish.component.ts b/src/app/routes/supply-management/components/onecar-publish/onecar-publish.component.ts index fafa498b..88f391e1 100644 --- a/src/app/routes/supply-management/components/onecar-publish/onecar-publish.component.ts +++ b/src/app/routes/supply-management/components/onecar-publish/onecar-publish.component.ts @@ -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, diff --git a/src/app/routes/supply-management/components/release-publish/release-publish.component.ts b/src/app/routes/supply-management/components/release-publish/release-publish.component.ts index f79fdb26..9b8a45db 100644 --- a/src/app/routes/supply-management/components/release-publish/release-publish.component.ts +++ b/src/app/routes/supply-management/components/release-publish/release-publish.component.ts @@ -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,