diff --git a/src/views/ebiz/common/CalculatePremium.vue b/src/views/ebiz/common/CalculatePremium.vue index 1fc0ec3db..2d3c95fbb 100644 --- a/src/views/ebiz/common/CalculatePremium.vue +++ b/src/views/ebiz/common/CalculatePremium.vue @@ -1443,7 +1443,7 @@ export default { if (risks[i].calFactorLst[j].code === 'insuYear') { if (((risks[i].calFactorLst[j].insuYearFlag == 'Y' && risks[i].calFactorLst[j].insuYear > 1) || risks[i].calFactorLst[j].insuYearFlag == 'A') - &&risks[i].productCode!='GFRS_A0009'&&risks[i].productCode!='GFRS_A0010') { + &&risks[i].productCode!='GFRS_A0010') { longRisks.push(risks[i].productCode); } } @@ -1451,7 +1451,7 @@ export default { } if((this.chooseProducts.length==2&&this.chooseProducts[1].productCode=='GFRS_A0010') ||(this.chooseProducts.length==3&&JSON.stringify(this.chooseProducts).includes("GFRS_A0010")&&JSON.stringify(this.chooseProducts).includes("GFRS_A0009")) - ||longRisks.length<=0){ + ||(longRisks.length<=0&&this.chooseProducts.length>1)){ Dialog.alert({ title: '提示', message: '当前未投保其他长险附加险,将删除该险种重新选择附加险!' @@ -1464,12 +1464,12 @@ export default { // this.nextStepFlag = true } if(this.chooseProducts.length==3&&JSON.stringify(this.chooseProducts).includes("GFRS_A0010")&&JSON.stringify(this.chooseProducts).includes("GFRS_A0009") - ||longRisks.length<=0){ + ||(longRisks.length<=0&&this.chooseProducts.length>1)){ this.$toast('当前未投保其他长险附加险,请删除该险种重新选择附加险!') this.nextStepFlag = true this.chooseProducts.splice(1, 2) - localStorage.chooseProducts = JSON.stringify(this.chooseProducts) - this.getTrial() + localStorage.chooseProducts = JSON.stringify(this.chooseProducts) + // this.getTrial() } } localStorage.chooseProducts = JSON.stringify(this.chooseProducts)