+
-
{{item.ruleType | ruleTypeFilter}}
-
{{item.status | approvedFilter}}![]()
+
{{item.ruleType | ruleTypeFilter}}
+
{{item.status | approvedFilter}}![]()
@@ -688,70 +688,61 @@
}
this.cvalidateFlag = this.activeType && this.isFrom != 'proposal'
- //构建提交数据、渲染险种
- if(this.$route.query.insuanceId && this.isFrom == 'proposal'){
- // 获取试算记录详情
- let serialNo = ''
- if (this.$route.query.orderNo) {
- serialNo = this.$route.query.orderNo
- }
- if (this.$route.query.proposalOrderNo) {
- serialNo = this.$route.query.proposalOrderNo
- }
- await getTrialRecordInfo({
- serialNo:serialNo,
- mainRiskId:this.$route.query.insuanceId
- }).then(res => {
- if (res.result == '0') {
- this.chooseProducts = JSON.parse(res.content.trialJsonStr)
- } else {
- this.$toast(res.resultMessage)
- }
- })
- }else{
- this.chooseProducts = JSON.parse(localStorage.chooseProducts)
- }
- this.chooseProducts.forEach((item, index) => {
- if (item.isCrossChannel == '1') {
- this.isCrossChannel = item.isCrossChannel
- }
- if (item.mainRiskCode == 'GFRS_M0006') {
- item.isHidden = true
- }
- if (item.mainRiskCode != 'GFRS_M0008') {
- item.calFactorLst.map((i) => {
- // this.defalutAmt = i.displayAmount || 1
- if (i.code == 'inputPrem') {
- this.mult = Math.ceil(Number(i.displayAmount) / Number(i.defaultValue))
+ //构建提交数据、渲染险种
+ if(this.$route.query.insuanceId && this.isFrom == 'proposal'){
+ // 获取试算记录详情
+ await getTrialRecordInfo({
+ serialNo:this.$CacheUtils.getLocItem('proposalNo'),
+ mainRiskId:this.$route.query.insuanceId
+ }).then(res => {
+ if (res.result == '0') {
+ this.chooseProducts = JSON.parse(res.content.trialJsonStr)
}
})
+ }else{
+ this.chooseProducts = JSON.parse(localStorage.chooseProducts)
}
- if (item.mainRiskCode == 'GFRS_M0046') {
- if (this.saleInsuredPersonInfo.relationToAppnt == 1) {
- this.isEnterAddtionRiskListFunc()
+ this.chooseProducts.forEach((item, index) => {
+ if (item.isCrossChannel == '1') {
+ this.isCrossChannel = item.isCrossChannel
}
- }
- let payEndYearVal
- //初始化时交费期间为一次性交清时,在就是中介渠道, 附加险GFRS_A0007,GFRS_A0009,GFRS_A0010去掉后,附加险list就为空--隐藏’附‘icon
- item.calFactorLst.map((i) => {
- if (i.code == 'payEndYear') {
- if (i.payEndYear == '1000' && i.payEndYearFlag == 'Y') {
- this.isEnterAddtionRiskListFunc()
- }
- //初始化时取交费期间的值
- payEndYearVal = i.showContent
+ if (item.mainRiskCode == 'GFRS_M0006') {
+ item.isHidden = true
}
- })
- if (index == 0) {
- if (item.productTrialYearDTOS) {
- //初始化时取交费期间的值,值再去对应productTrialYearDTOS中的第几条规则
- item.productTrialYearDTOS.forEach((item, index) => {
- if (payEndYearVal == item.yearWay + '年交') {
- that.payEndYearColumnsIndex = index
+ if (item.mainRiskCode != 'GFRS_M0008') {
+ item.calFactorLst.map((i) => {
+ // this.defalutAmt = i.displayAmount || 1
+ if (i.code == 'inputPrem') {
+ this.mult = Math.ceil(Number(i.displayAmount) / Number(i.defaultValue))
}
})
}
- }
+ if (item.mainRiskCode == 'GFRS_M0046') {
+ if (this.saleInsuredPersonInfo.relationToAppnt == 1) {
+ this.isEnterAddtionRiskListFunc()
+ }
+ }
+ let payEndYearVal
+ //初始化时交费期间为一次性交清时,在就是中介渠道, 附加险GFRS_A0007,GFRS_A0009,GFRS_A0010去掉后,附加险list就为空--隐藏’附‘icon
+ item.calFactorLst.map((i) => {
+ if (i.code == 'payEndYear') {
+ if (i.payEndYear == '1000' && i.payEndYearFlag == 'Y') {
+ this.isEnterAddtionRiskListFunc()
+ }
+ //初始化时取交费期间的值
+ payEndYearVal = i.showContent
+ }
+ })
+ if (index == 0) {
+ if (item.productTrialYearDTOS) {
+ //初始化时取交费期间的值,值再去对应productTrialYearDTOS中的第几条规则
+ item.productTrialYearDTOS.forEach((item, index) => {
+ if (payEndYearVal == item.yearWay + '年交') {
+ that.payEndYearColumnsIndex = index
+ }
+ })
+ }
+ }
// if (item.productCode == 'GFRS_A0003') {
// //该附加险的责任保额=主险的保费
@@ -1939,6 +1930,7 @@
if (
this.chooseProducts[0].mainRiskCode == 'GFRS_M0051' ||
this.chooseProducts[0].mainRiskCode == 'GFRS_M0044' ||
+ this.chooseProducts[0].mainRiskCode == 'GFRS_M0060' ||
this.chooseProducts[0].mainRiskCode == 'GFRS_M0035' ||
this.chooseProducts[0].mainRiskCode == 'GFRS_M0038' ||
this.chooseProducts[0].mainRiskCode == 'GFRS_M0040'
@@ -2351,157 +2343,39 @@
return riskCode != 'DCRS_A0001'
})
- localStorage.addRiskCodes = JSON.stringify(addRiskCodes)
- this.$jump({
- flag: 'h5',
- extra: {
- url: location.origin + '/#/common/addRiskList'
- },
- routerInfo: {
- path: '/common/addRiskList'
- }
- })
- },
- //保额份数变化
- stepperChange(defalutValue, productIndex, calFactorIndex, min, max, riskFactor) {
- let currentEle =
- localStorage.isTrial !== '1' && this.chooseProducts[productIndex].isMainRisk == '0'
- ? this.chooseProducts[productIndex].productTrialYearDTOS[calFactorIndex]
- : this.chooseProducts[productIndex].calFactorLst[calFactorIndex]
- //改动原因:孝心保产品有对年龄的特殊要求
- //添加判断,是否是孝心保产品
- let showHint = this.chooseProducts[productIndex].hint
- let productCode = localStorage.trialList == '' ? '' : JSON.parse(localStorage.trialList)[0].productCode
- if (productCode == 'GFRS_M0014') {
- //被保险人年龄如果在50-65区间
- if (this.saleInsuredPersonInfo.age >= 50 && this.saleInsuredPersonInfo.age <= 65) {
- //使用rules规则里的第二条控制保额份数
- if (Number(defalutValue) < Number(riskFactor.rules[1].minPrem) || Number(defalutValue) > Number(riskFactor.rules[1].maxPrem)) {
- this.$toast(showHint)
- this.nextStepFlag = true
- } else {
- if ((Number(defalutValue) * 10000) % (Number(currentEle.limit) * 10000) != 0) {
- // this.defalutAmt = currentEle.rules[productIndex].displayAmount
- this.$toast(showHint)
- this.nextStepFlag = true
- } else {
- this.mainRiskInfluenceAddRisk()
- currentEle['amt'] = Number(defalutValue) * Number(currentEle.moneyUnit)
- this.getTrial()
- }
+ localStorage.addRiskCodes = JSON.stringify(addRiskCodes)
+ // this.$router.push({ path: '/common/addRiskList' })
+ this.$jump({
+ flag: 'h5',
+ extra: {
+ url: location.origin + '/#/common/addRiskList'
+ },
+ routerInfo: {
+ path: '/common/addRiskList'
}
- //被保险人年龄如果在66-75之间
- } else if (this.saleInsuredPersonInfo.age >= 66 && this.saleInsuredPersonInfo.age <= 75) {
- //使用rules规则里的第一条控制保额份数
- if (Number(defalutValue) < Number(riskFactor.rules[0].minPrem) || Number(defalutValue) > Number(riskFactor.rules[0].maxPrem)) {
- this.$toast(showHint)
- this.nextStepFlag = true
- } else {
- if ((Number(defalutValue) * 10000) % (Number(currentEle.limit) * 10000) != 0) {
- // this.defalutAmt = currentEle.rules[productIndex].displayAmount
- this.$toast(showHint)
- this.nextStepFlag = true
- } else {
- this.mainRiskInfluenceAddRisk()
- currentEle['amt'] = Number(defalutValue) * Number(currentEle.moneyUnit)
- this.getTrial()
- }
- }
- }
- //isTrial为0 ---暂时为富娃娃两全保险(万能型)专配 输入保费校验
- } else if (productCode == 'GFRS_M0035' || productCode == 'GFRS_M0044'
- || productCode == 'GFRS_M0056' || productCode == 'GFRS_M0057') {
- console.log('defalutValue==', defalutValue)
- console.log("currentEle['amt']==", currentEle['amt'])
- console.log('riskFactor.rules', riskFactor.rules)
- console.log('this.saleInsuredPersonInfo.age ', this.saleInsuredPersonInfo.age)
- //被保险人年龄如果在50-65区间
- if (this.saleInsuredPersonInfo.age >= 56 && this.saleInsuredPersonInfo.age <= 60) {
- //使用rules规则里的第二条控制保额份数
- // 年龄在56周岁及以上被保险人,投保本险种时,最低基本保险金额为10000元。超过最低基本保险金额为10000元整数倍。
- if (Number(defalutValue) < Number(riskFactor.rules[1].minPrem) || Number(defalutValue) > Number(riskFactor.rules[1].maxPrem)) {
- this.$toast('56周岁-60周岁最低基本保险金额为'+ (Number(riskFactor.rules[1].minPrem) * 10000) +'元。超过最低基本保险金额为10000元整数倍。')
- this.nextStepFlag = true
- } else {
- if ((Number(defalutValue) * 10000) % (Number(currentEle.limit) * 10000) != 0) {
- // this.defalutAmt = currentEle.rules[productIndex].displayAmount
- this.$toast('56周岁-60周岁最低基本保险金额为'+ (Number(riskFactor.rules[1].minPrem) * 10000) +'元。超过最低基本保险金额为10000元整数倍。')
- this.nextStepFlag = true
- } else {
- this.mainRiskInfluenceAddRisk()
- currentEle['amt'] = Number(defalutValue) * Number(currentEle.moneyUnit)
- this.getTrial()
- }
- }
- //年龄在0-55周岁被保险人,投保本险种时,最低基本保险金额为50000元,超过最低基本保险金额为10000元整数倍。
- } else if (this.saleInsuredPersonInfo.age >= 0 && this.saleInsuredPersonInfo.age <= 55) {
- //使用rules规则里的第一条控制保额份数
- if (Number(defalutValue) < Number(riskFactor.rules[0].minPrem) || Number(defalutValue) > Number(riskFactor.rules[0].maxPrem)) {
- this.$toast('0周岁-55周岁最低基本保险金额为'+ (Number(riskFactor.rules[0].minPrem) * 10000) +'元。超过最低基本保险金额为10000元整数倍。')
- this.nextStepFlag = true
- } else {
- if ((Number(defalutValue) * 10000) % (Number(currentEle.limit) * 10000) != 0) {
- // this.defalutAmt = currentEle.rules[productIndex].displayAmount
- this.$toast('0周岁-55周岁最低基本保险金额为'+ (Number(riskFactor.rules[0].minPrem) * 10000) +'元。超过最低基本保险金额为10000元整数倍。')
- this.nextStepFlag = true
- } else {
- this.mainRiskInfluenceAddRisk()
- currentEle['amt'] = Number(defalutValue) * Number(currentEle.moneyUnit)
- this.getTrial()
- }
- }
- }
- //isTrial为0 ---暂时为富娃娃两全保险(万能型)专配 输入保费校验
- } else if (productCode == 'GFRS_M0040') {
- // 惠企保保额限制
- //被保险人年龄如果在41-60区间
- if (this.saleInsuredPersonInfo.age >= 41) {
- //使用rules规则里的第二条控制保额份数
- if (Number(defalutValue) < Number(riskFactor.rules[1].minPrem) || Number(defalutValue) > Number(riskFactor.rules[1].maxPrem)) {
- this.$toast('年龄在41周岁至60周岁被保险人,投保本险种时,最低基本保险金额为50000元。超过最低基本保险金额为10000元整数倍。')
- this.nextStepFlag = true
- } else {
- if ((Number(defalutValue) * 10000) % (Number(currentEle.limit) * 10000) != 0) {
- // this.defalutAmt = currentEle.rules[productIndex].displayAmount
- this.$toast('年龄在41周岁至60周岁被保险人,投保本险种时,最低基本保险金额为50000元。超过最低基本保险金额为10000元整数倍。')
- this.nextStepFlag = true
- } else {
- this.mainRiskInfluenceAddRisk()
- currentEle['amt'] = Number(defalutValue) * Number(currentEle.moneyUnit)
- this.getTrial()
- }
- }
- } else if (this.saleInsuredPersonInfo.age >= 0 && this.saleInsuredPersonInfo.age <= 40) {
- //使用rules规则里的第一条控制保额份数
- if (Number(defalutValue) < Number(riskFactor.rules[0].minPrem) || Number(defalutValue) > Number(riskFactor.rules[0].maxPrem)) {
- this.$toast('年龄在0-40周岁被保险人,投保本险种时,最低基本保险金额为100000元,超过最低基本保险金额为10000元整数倍。')
- this.nextStepFlag = true
- } else {
- if ((Number(defalutValue) * 10000) % (Number(currentEle.limit) * 10000) != 0) {
- // this.defalutAmt = currentEle.rules[productIndex].displayAmount
- this.$toast('年龄在0-40周岁被保险人,投保本险种时,最低基本保险金额为100000元,超过最低基本保险金额为10000元整数倍。')
- this.nextStepFlag = true
- } else {
- this.mainRiskInfluenceAddRisk()
- currentEle['amt'] = Number(defalutValue) * Number(currentEle.moneyUnit)
- this.getTrial()
- }
- }
- }
- //isTrial为0 ---暂时为富娃娃两全保险(万能型)专配 输入保费校验
- } else if (productCode == 'GFRS_M0046') {
- //被保险人年龄如果在50-65区间
- if(this.branchTypeVal == 'Z'){ //中介渠道规则
- if (this.saleInsuredPersonInfo.age >= 51 && this.saleInsuredPersonInfo.age <= 60) {
+ })
+ },
+ //保额份数变化
+ stepperChange(defalutValue, productIndex, calFactorIndex, min, max, riskFactor) {
+ let currentEle =
+ localStorage.isTrial !== '1' && this.chooseProducts[productIndex].isMainRisk == '0'
+ ? this.chooseProducts[productIndex].productTrialYearDTOS[calFactorIndex]
+ : this.chooseProducts[productIndex].calFactorLst[calFactorIndex]
+ //改动原因:孝心保产品有对年龄的特殊要求
+ //添加判断,是否是孝心保产品
+ let showHint = this.chooseProducts[productIndex].hint
+ let productCode = localStorage.trialList == '' ? '' : JSON.parse(localStorage.trialList)[0].productCode
+ if (productCode == 'GFRS_M0014') {
+ //被保险人年龄如果在50-65区间
+ if (this.saleInsuredPersonInfo.insuredAge >= 50 && this.saleInsuredPersonInfo.insuredAge <= 65) {
//使用rules规则里的第二条控制保额份数
- // 年龄在51周岁及以上被保险人,投保本险种时,最低基本保险金额为10000元。超过最低基本保险金额为10000元整数倍。
if (Number(defalutValue) < Number(riskFactor.rules[1].minPrem) || Number(defalutValue) > Number(riskFactor.rules[1].maxPrem)) {
- this.$toast('51周岁-60周岁最低基本保险金额为'+ (Number(riskFactor.rules[1].minPrem) * 10000) +'元。超过最低基本保险金额为'+ (Number(riskFactor.rules[1].limit) * 10000) +'元整数倍。')
+ this.$toast(showHint)
this.nextStepFlag = true
} else {
if ((Number(defalutValue) * 10000) % (Number(currentEle.limit) * 10000) != 0) {
// this.defalutAmt = currentEle.rules[productIndex].displayAmount
- this.$toast('51周岁-60周岁最低基本保险金额为'+ (Number(riskFactor.rules[1].minPrem) * 10000) +'元。超过最低基本保险金额为'+ (Number(riskFactor.rules[1].limit) * 10000) +'元整数倍。')
+ this.$toast(showHint)
this.nextStepFlag = true
} else {
this.mainRiskInfluenceAddRisk()
@@ -2509,15 +2383,16 @@
this.getTrial()
}
}
- //年龄在0-50周岁被保险人,投保本险种时,最低基本保险金额为50000元,超过最低基本保险金额为10000元整数倍。
- } else if (this.saleInsuredPersonInfo.age >= 0 && this.saleInsuredPersonInfo.age <= 50) {
+ //被保险人年龄如果在66-75之间
+ } else if (this.saleInsuredPersonInfo.insuredAge >= 66 && this.saleInsuredPersonInfo.insuredAge <= 75) {
//使用rules规则里的第一条控制保额份数
if (Number(defalutValue) < Number(riskFactor.rules[0].minPrem) || Number(defalutValue) > Number(riskFactor.rules[0].maxPrem)) {
- this.$toast('0周岁-50周岁最低基本保险金额为'+ (Number(riskFactor.rules[0].minPrem) * 10000) +'元。超过最低基本保险金额为'+ (Number(riskFactor.rules[0].limit) * 10000) +'元整数倍。')
+ this.$toast(showHint)
this.nextStepFlag = true
} else {
if ((Number(defalutValue) * 10000) % (Number(currentEle.limit) * 10000) != 0) {
- this.$toast('0周岁-50周岁最低基本保险金额为'+ (Number(riskFactor.rules[0].minPrem) * 10000) +'元。超过最低基本保险金额为'+ (Number(riskFactor.rules[0].limit) * 10000) +'元整数倍。')
+ // this.defalutAmt = currentEle.rules[productIndex].displayAmount
+ this.$toast(showHint)
this.nextStepFlag = true
} else {
this.mainRiskInfluenceAddRisk()
@@ -2526,11 +2401,17 @@
}
}
}
- }else if(this.branchTypeVal == 'G' || this.branchTypeVal == 'T'|| this.branchTypeVal == 'Y' ){ //世纪无忧中介渠道规则(银销个,健销个投保规则同个险规则)
+ //isTrial为0 ---暂时为富娃娃两全保险(万能型)专配 输入保费校验
+ } else if (productCode == 'GFRS_M0035' || productCode == 'GFRS_M0044'
+ || productCode == 'GFRS_M0056' || productCode == 'GFRS_M0057' || productCode == 'GFRS_M0060') {
+ console.log('defalutValue==', defalutValue)
+ console.log("currentEle['amt']==", currentEle['amt'])
+ console.log('riskFactor.rules', riskFactor.rules)
+ console.log('this.saleInsuredPersonInfo.insuredAge ', this.saleInsuredPersonInfo.insuredAge)
//被保险人年龄如果在50-65区间
- if (this.saleInsuredPersonInfo.age >= 56 && this.saleInsuredPersonInfo.age <= 60) {
+ if (this.saleInsuredPersonInfo.insuredAge >= 56 && this.saleInsuredPersonInfo.insuredAge <= 60) {
//使用rules规则里的第二条控制保额份数
- // 年龄在51周岁及以上被保险人,投保本险种时,最低基本保险金额为10000元。超过最低基本保险金额为10000元整数倍。
+ // 年龄在56周岁及以上被保险人,投保本险种时,最低基本保险金额为10000元。超过最低基本保险金额为10000元整数倍。
if (Number(defalutValue) < Number(riskFactor.rules[1].minPrem) || Number(defalutValue) > Number(riskFactor.rules[1].maxPrem)) {
this.$toast('56周岁-60周岁最低基本保险金额为'+ (Number(riskFactor.rules[1].minPrem) * 10000) +'元。超过最低基本保险金额为'+ (Number(riskFactor.rules[1].limit) * 10000) +'元整数倍。')
this.nextStepFlag = true
@@ -2545,14 +2426,15 @@
this.getTrial()
}
}
- //年龄在0-50周岁被保险人,投保本险种时,最低基本保险金额为50000元,超过最低基本保险金额为10000元整数倍。
- } else if (this.saleInsuredPersonInfo.age >= 0 && this.saleInsuredPersonInfo.age <= 55) {
+ //年龄在0-55周岁被保险人,投保本险种时,最低基本保险金额为50000元,超过最低基本保险金额为10000元整数倍。
+ } else if (this.saleInsuredPersonInfo.insuredAge >= 0 && this.saleInsuredPersonInfo.insuredAge <= 55) {
//使用rules规则里的第一条控制保额份数
if (Number(defalutValue) < Number(riskFactor.rules[0].minPrem) || Number(defalutValue) > Number(riskFactor.rules[0].maxPrem)) {
this.$toast('0周岁-55周岁最低基本保险金额为'+ (Number(riskFactor.rules[0].minPrem) * 10000) +'元。超过最低基本保险金额为'+ (Number(riskFactor.rules[0].limit) * 10000) +'元整数倍。')
this.nextStepFlag = true
} else {
if ((Number(defalutValue) * 10000) % (Number(currentEle.limit) * 10000) != 0) {
+ // this.defalutAmt = currentEle.rules[productIndex].displayAmount
this.$toast('0周岁-55周岁最低基本保险金额为'+ (Number(riskFactor.rules[0].minPrem) * 10000) +'元。超过最低基本保险金额为'+ (Number(riskFactor.rules[0].limit) * 10000) +'元整数倍。')
this.nextStepFlag = true
} else {
@@ -2562,13 +2444,121 @@
}
}
}
- }
- // 国富人寿富桂金生养老年金保险(GFRS_M0053)中介渠道鑫享金生养老年金保险(GFRS_M0061)
- } else if (productCode == 'GFRS_M0053' || productCode == 'GFRS_M0061') {
- if (Number(defalutValue) < Number(min)) {
- if (riskFactor.yearWay == "一次性交清") {
- this.$toast(`交费期间为${riskFactor.yearWay}时,最低保费为${Number(min) * Number(riskFactor.moneyUnit)}元`)
- } else {
+ //isTrial为0 ---暂时为富娃娃两全保险(万能型)专配 输入保费校验
+ } else if (productCode == 'GFRS_M0040') {
+ // 惠企保保额限制
+ //被保险人年龄如果在41-60区间
+ if (this.saleInsuredPersonInfo.insuredAge >= 41) {
+ //使用rules规则里的第二条控制保额份数
+ if (Number(defalutValue) < Number(riskFactor.rules[1].minPrem) || Number(defalutValue) > Number(riskFactor.rules[1].maxPrem)) {
+ this.$toast('年龄在41周岁至60周岁被保险人,投保本险种时,最低基本保险金额为50000元。超过最低基本保险金额为10000元整数倍。')
+ this.nextStepFlag = true
+ } else {
+ if ((Number(defalutValue) * 10000) % (Number(currentEle.limit) * 10000) != 0) {
+ // this.defalutAmt = currentEle.rules[productIndex].displayAmount
+ this.$toast('年龄在41周岁至60周岁被保险人,投保本险种时,最低基本保险金额为50000元。超过最低基本保险金额为10000元整数倍。')
+ this.nextStepFlag = true
+ } else {
+ this.mainRiskInfluenceAddRisk()
+ currentEle['amt'] = Number(defalutValue) * Number(currentEle.moneyUnit)
+ this.getTrial()
+ }
+ }
+ } else if (this.saleInsuredPersonInfo.insuredAge >= 0 && this.saleInsuredPersonInfo.insuredAge <= 40) {
+ //使用rules规则里的第一条控制保额份数
+ if (Number(defalutValue) < Number(riskFactor.rules[0].minPrem) || Number(defalutValue) > Number(riskFactor.rules[0].maxPrem)) {
+ this.$toast('年龄在0-40周岁被保险人,投保本险种时,最低基本保险金额为100000元,超过最低基本保险金额为10000元整数倍。')
+ this.nextStepFlag = true
+ } else {
+ if ((Number(defalutValue) * 10000) % (Number(currentEle.limit) * 10000) != 0) {
+ // this.defalutAmt = currentEle.rules[productIndex].displayAmount
+ this.$toast('年龄在0-40周岁被保险人,投保本险种时,最低基本保险金额为100000元,超过最低基本保险金额为10000元整数倍。')
+ this.nextStepFlag = true
+ } else {
+ this.mainRiskInfluenceAddRisk()
+ currentEle['amt'] = Number(defalutValue) * Number(currentEle.moneyUnit)
+ this.getTrial()
+ }
+ }
+ }
+ //isTrial为0 ---暂时为富娃娃两全保险(万能型)专配 输入保费校验
+ } else if (productCode == 'GFRS_M0046') {
+ //被保险人年龄如果在50-65区间
+ if(this.branchTypeVal == 'Z'){ //中介渠道规则
+ if (this.saleInsuredPersonInfo.insuredAge >= 51 && this.saleInsuredPersonInfo.insuredAge <= 60) {
+ //使用rules规则里的第二条控制保额份数
+ // 年龄在51周岁及以上被保险人,投保本险种时,最低基本保险金额为10000元。超过最低基本保险金额为10000元整数倍。
+ if (Number(defalutValue) < Number(riskFactor.rules[1].minPrem) || Number(defalutValue) > Number(riskFactor.rules[1].maxPrem)) {
+ this.$toast('51周岁-60周岁最低基本保险金额为'+ (Number(riskFactor.rules[1].minPrem) * 10000) +'元。超过最低基本保险金额为'+ (Number(riskFactor.rules[1].limit) * 10000) +'元整数倍。')
+ this.nextStepFlag = true
+ } else {
+ if ((Number(defalutValue) * 10000) % (Number(currentEle.limit) * 10000) != 0) {
+ // this.defalutAmt = currentEle.rules[productIndex].displayAmount
+ this.$toast('51周岁-60周岁最低基本保险金额为'+ (Number(riskFactor.rules[1].minPrem) * 10000) +'元。超过最低基本保险金额为'+ (Number(riskFactor.rules[1].limit) * 10000) +'元整数倍。')
+ this.nextStepFlag = true
+ } else {
+ this.mainRiskInfluenceAddRisk()
+ currentEle['amt'] = Number(defalutValue) * Number(currentEle.moneyUnit)
+ this.getTrial()
+ }
+ }
+ //年龄在0-50周岁被保险人,投保本险种时,最低基本保险金额为50000元,超过最低基本保险金额为10000元整数倍。
+ } else if (this.saleInsuredPersonInfo.insuredAge >= 0 && this.saleInsuredPersonInfo.insuredAge <= 50) {
+ //使用rules规则里的第一条控制保额份数
+ if (Number(defalutValue) < Number(riskFactor.rules[0].minPrem) || Number(defalutValue) > Number(riskFactor.rules[0].maxPrem)) {
+ this.$toast('0周岁-50周岁最低基本保险金额为'+ (Number(riskFactor.rules[0].minPrem) * 10000) +'元。超过最低基本保险金额为'+ (Number(riskFactor.rules[0].limit) * 10000) +'元整数倍。')
+ this.nextStepFlag = true
+ } else {
+ if ((Number(defalutValue) * 10000) % (Number(currentEle.limit) * 10000) != 0) {
+ this.$toast('0周岁-50周岁最低基本保险金额为'+ (Number(riskFactor.rules[0].minPrem) * 10000) +'元。超过最低基本保险金额为'+ (Number(riskFactor.rules[0].limit) * 10000) +'元整数倍。')
+ this.nextStepFlag = true
+ } else {
+ this.mainRiskInfluenceAddRisk()
+ currentEle['amt'] = Number(defalutValue) * Number(currentEle.moneyUnit)
+ this.getTrial()
+ }
+ }
+ }
+ }else if(this.branchTypeVal == 'G' || this.branchTypeVal == 'T'|| this.branchTypeVal == 'Y' ){ //世纪无忧中介渠道规则(银销个,健销个投保规则同个险规则)
+ //被保险人年龄如果在50-65区间
+ if (this.saleInsuredPersonInfo.insuredAge >= 56 && this.saleInsuredPersonInfo.insuredAge <= 60) {
+ //使用rules规则里的第二条控制保额份数
+ // 年龄在51周岁及以上被保险人,投保本险种时,最低基本保险金额为10000元。超过最低基本保险金额为10000元整数倍。
+ if (Number(defalutValue) < Number(riskFactor.rules[1].minPrem) || Number(defalutValue) > Number(riskFactor.rules[1].maxPrem)) {
+ this.$toast('56周岁-60周岁最低基本保险金额为'+ (Number(riskFactor.rules[1].minPrem) * 10000) +'元。超过最低基本保险金额为'+ (Number(riskFactor.rules[1].limit) * 10000) +'元整数倍。')
+ this.nextStepFlag = true
+ } else {
+ if ((Number(defalutValue) * 10000) % (Number(currentEle.limit) * 10000) != 0) {
+ // this.defalutAmt = currentEle.rules[productIndex].displayAmount
+ this.$toast('56周岁-60周岁最低基本保险金额为'+ (Number(riskFactor.rules[1].minPrem) * 10000) +'元。超过最低基本保险金额为'+ (Number(riskFactor.rules[1].limit) * 10000) +'元整数倍。')
+ this.nextStepFlag = true
+ } else {
+ this.mainRiskInfluenceAddRisk()
+ currentEle['amt'] = Number(defalutValue) * Number(currentEle.moneyUnit)
+ this.getTrial()
+ }
+ }
+ //年龄在0-50周岁被保险人,投保本险种时,最低基本保险金额为50000元,超过最低基本保险金额为10000元整数倍。
+ } else if (this.saleInsuredPersonInfo.insuredAge >= 0 && this.saleInsuredPersonInfo.insuredAge <= 55) {
+ //使用rules规则里的第一条控制保额份数
+ if (Number(defalutValue) < Number(riskFactor.rules[0].minPrem) || Number(defalutValue) > Number(riskFactor.rules[0].maxPrem)) {
+ this.$toast('0周岁-55周岁最低基本保险金额为'+ (Number(riskFactor.rules[0].minPrem) * 10000) +'元。超过最低基本保险金额为'+ (Number(riskFactor.rules[0].limit) * 10000) +'元整数倍。')
+ this.nextStepFlag = true
+ } else {
+ if ((Number(defalutValue) * 10000) % (Number(currentEle.limit) * 10000) != 0) {
+ this.$toast('0周岁-55周岁最低基本保险金额为'+ (Number(riskFactor.rules[0].minPrem) * 10000) +'元。超过最低基本保险金额为'+ (Number(riskFactor.rules[0].limit) * 10000) +'元整数倍。')
+ this.nextStepFlag = true
+ } else {
+ this.mainRiskInfluenceAddRisk()
+ currentEle['amt'] = Number(defalutValue) * Number(currentEle.moneyUnit)
+ this.getTrial()
+ }
+ }
+ }
+ }
+ // 国富人寿富桂金生养老年金保险(GFRS_M0053)中介渠道鑫享金生养老年金保险(GFRS_M0061)
+ } else if (productCode == 'GFRS_M0053' || productCode == 'GFRS_M0061') {
+ if (Number(defalutValue) < Number(min)) {
this.$toast(`交费期间为${riskFactor.yearWay}年交时,最低保费为${Number(min) * Number(riskFactor.moneyUnit)}元`)
}
this.nextStepFlag = true
@@ -2889,6 +2879,35 @@
this.saleInsuredPersonInfo.insuredId = resultData.content.id;
this.$CacheUtils.setLocItem('saleInsuredPersonInfo', JSON.stringify(this.saleInsuredPersonInfo))
}
+ //试算记录保存更新--编辑
+ this.saveOrUpdateTrialRecordInfoFunc(resultData.content.riskDTO)
+ }else if (isFrom == 'orderTrial' && localStorage.isFrom == 'sale') {
+ this.$toast.clear()
+ this.trialResultsShow = true
+ this.verifyResultList = resultData.content.data.verifyResultList
+ }
+ } else {
+ this.$toast(resultData.resultMessage)
+ }
+ },
+ //建议书试算记录保存更新--编辑功能
+ saveOrUpdateTrialRecordInfoFunc(riskDTO){
+ let insuanceId
+ riskDTO.forEach(item => {
+ if (item.isMainRisk == '0') {
+ insuanceId = item.insuanceId
+ }
+ })
+ let data ={
+ serialNo:this.$CacheUtils.getLocItem('proposalNo'),
+ mainRiskId:insuanceId+'',
+ trialJsonStr:localStorage.chooseProducts
+ }
+ saveOrUpdateTrialRecordInfo(data).then(res => {
+ if (res.result == '0') {
+ //被保人产品列表界面 点击编辑按钮进入产品试算界面 点击完成 页面跳转不正确
+ let proposalOrderNo = this.$route.query.orderNo || ''
+ let url = `/common/selectedProduct?proposalOrderNo=${proposalOrderNo}`
this.$jump({
flag: 'goBack',
extra: {