From 1bf6c71d2e164a4ed427d363f65aff5149172b27 Mon Sep 17 00:00:00 2001
From: "li.jieyu@ebiz-digits.com"
Date: Thu, 23 Sep 2021 15:31:36 +0800
Subject: [PATCH] =?UTF-8?q?=E3=80=90=E9=99=84=E5=8A=A0=E4=B8=A4=E5=85=A8?=
=?UTF-8?q?=E3=80=91--=E9=99=84=E5=8A=A0=E4=B8=A4=E5=85=A8=E5=B9=B4?=
=?UTF-8?q?=E9=BE=84=E9=99=90=E5=88=B6=20=20--=E6=9D=8E=E5=A9=95=E7=85=9C?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/ebiz/common/CalculatePremium.vue | 46 ++++++++++++++++++----
1 file changed, 38 insertions(+), 8 deletions(-)
diff --git a/src/views/ebiz/common/CalculatePremium.vue b/src/views/ebiz/common/CalculatePremium.vue
index 99fe7fbf0..6ff7a9b17 100644
--- a/src/views/ebiz/common/CalculatePremium.vue
+++ b/src/views/ebiz/common/CalculatePremium.vue
@@ -847,14 +847,14 @@ export default {
this.popupShow = false
return false
}
- if (currentEle.code == 'payEndYear' && this.ageInfluencePayEndYear(value.value, currentEle)) {
- this.popupShow = false
- return false
- }
- if (currentEle.code == 'insuYear' && this.ageInfluenceInsuYear(value.value, currentEle)) {
- this.popupShow = false
- return false
- }
+ if (currentEle.code == 'payEndYear' && this.ageInfluencePayEndYear(value.value, currentEle)) {
+ this.popupShow = false
+ return false
+ }
+ if (currentEle.code == 'insuYear' && this.ageInfluenceInsuYear(value.value, currentEle)) {
+ this.popupShow = false
+ return false
+ }
// if(this.ruleExpression[productCode]){
// this.errorMsg = []
@@ -1471,6 +1471,36 @@ export default {
product.cvaliDate = that.cvalidateStr
}
}
+
+ let age = this.saleInsuredPersonInfo.age
+ let trialFlag = true
+ params.trialInfos.forEach(item => {
+ if(item.productCode == 'GFRS_A0011'){
+ if(item.insuYear == '60' && item.payEndYear =='30' && age > 30){
+ this.nextStepFlag = true
+ this.$toast('被保险人年龄不适合该交费期间或保险期间!')
+ trialFlag = false
+ }
+ else if(item.insuYear == '70' && item.payEndYear =='30' && age > 40){
+ this.nextStepFlag = true
+ this.$toast('被保险人年龄不适合该交费期间或保险期间!')
+ trialFlag = false
+ }
+ else if((item.insuYear == '80' && item.payEndYear =='15' && age > 55)
+ || (item.insuYear == '80' && item.payEndYear =='19' && age > 50)
+ || (item.insuYear == '80' && item.payEndYear =='20' && age > 50)
+ || (item.insuYear == '80' && item.payEndYear =='30' && age > 40)){
+ this.nextStepFlag = true
+ this.$toast('被保险人年龄不适合该交费期间或保险期间!')
+ trialFlag = false
+ }
+ }
+ })
+
+ if(!trialFlag){
+ return
+ }
+
let resultData = await trial(params)
//试算成功,信息返显