mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-23 01:46:44 +08:00
Merge branch 'feature/GFRS-729【0326】国富人寿国富民安重大疾病保险(2020版)_1' into dev
This commit is contained in:
@@ -307,6 +307,19 @@ const dutyRules = {
|
|||||||
msg: '意外住院津贴日额最低基本保险金额为10元/天,超过最低基本保险金额为10元/天整数倍,最高不得超过200元/天'
|
msg: '意外住院津贴日额最低基本保险金额为10元/天,超过最低基本保险金额为10元/天整数倍,最高不得超过200元/天'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
const dutyGFRS_A0004Rules = {
|
||||||
|
320205: {
|
||||||
|
mainRisk: 'GFRS_M0005',
|
||||||
|
msg: '住院医疗提示:金额只能是0.5、1、1.5、2',
|
||||||
|
msg_1: '附加到国富人寿国富民惠医疗保险(2020版)最高基本保额不超过1万元。'
|
||||||
|
},
|
||||||
|
320206: {
|
||||||
|
msg: '住院津贴提示:投保可选责任时,可选责任最低投保 50 元,且应为 10 元的整数倍'
|
||||||
|
},
|
||||||
|
320207: {
|
||||||
|
msg: '恶性肿瘤提示:投保可选责任时,可选责任最低投保 50 元,且应为 10 元的整数倍'
|
||||||
|
}
|
||||||
|
}
|
||||||
const DUTY_DEFAULT_MUTIPLE = 1000
|
const DUTY_DEFAULT_MUTIPLE = 1000
|
||||||
const DUTY_DEFAULT_MIN = 10000
|
const DUTY_DEFAULT_MIN = 10000
|
||||||
|
|
||||||
@@ -480,16 +493,15 @@ export default {
|
|||||||
}
|
}
|
||||||
} else if (item.productCode === 'GFRS_A0004') {
|
} else if (item.productCode === 'GFRS_A0004') {
|
||||||
if (i.code === 'getLimit') {
|
if (i.code === 'getLimit') {
|
||||||
const text2 = isMedical ? '0元(住院医疗)' : '100元(住院医疗)'
|
const text = isMedical ? '0元(住院医疗)' : '100元(住院医疗)'
|
||||||
const value2 = isMedical ? '0' : '100'
|
const value = isMedical ? '0' : '100'
|
||||||
|
|
||||||
//保存数据
|
//保存数据
|
||||||
this.medicalInfo = this.medicalInfo || {}
|
this.medicalInfo = this.medicalInfo || {}
|
||||||
this.medicalInfo.getLimit = text2
|
this.medicalInfo.getLimit = text
|
||||||
|
|
||||||
i.showContent = text2
|
i.showContent = text
|
||||||
i.getLimit = value2
|
i.getLimit = value
|
||||||
i.columns = [{ text2, value2 }]
|
i.columns = [{ text, value }]
|
||||||
}
|
}
|
||||||
//赔付比例
|
//赔付比例
|
||||||
if (i.code === 'getRate') {
|
if (i.code === 'getRate') {
|
||||||
@@ -640,7 +652,7 @@ export default {
|
|||||||
if (validateRiskCode === 'GFRS_M0016' && !this.valiDuty(inputValue, duty)) {
|
if (validateRiskCode === 'GFRS_M0016' && !this.valiDuty(inputValue, duty)) {
|
||||||
//验证不通过
|
//验证不通过
|
||||||
return
|
return
|
||||||
} else if (validateRiskCode === 'GFRS_A0004' && duty == '320205' && !this.valiA0004Duty(inputValue, showHint, dutyItem)) {
|
} else if (validateRiskCode === 'GFRS_A0004' && !this.valiA0004Duty(inputValue, showHint, dutyItem)) {
|
||||||
//验证不通过 险种为GFRS_A0004 责任编码为320205
|
//验证不通过 险种为GFRS_A0004 责任编码为320205
|
||||||
return
|
return
|
||||||
} else {
|
} else {
|
||||||
@@ -680,16 +692,26 @@ export default {
|
|||||||
},
|
},
|
||||||
//险种 GFRS_A0004 险种验证规则
|
//险种 GFRS_A0004 险种验证规则
|
||||||
valiA0004Duty(value, showHint, currentEle) {
|
valiA0004Duty(value, showHint, currentEle) {
|
||||||
// 保额只能为5000 10000 15000 200000
|
// 验证其他 最小50 其他为50 10 倍数
|
||||||
if (currentEle.duty == '320205') {
|
if (currentEle.duty == '320206' || currentEle.duty == '320207') {
|
||||||
if (!(value == '0.5' || value == '1' || value == '1.5' || value == '2')) {
|
let numberValue = Number(value)
|
||||||
this.$toast(showHint)
|
if ((numberValue * 10000) % 10 != 0 || numberValue < 50) {
|
||||||
|
this.$toast(dutyGFRS_A0004Rules[currentEle.duty].msg)
|
||||||
this.nextStepFlag = true
|
this.nextStepFlag = true
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
if (this.mainRiskCode === 'GFRS_M0005') {
|
}
|
||||||
|
|
||||||
|
// 保额只能为5000 10000 15000 200000
|
||||||
|
if (currentEle.duty == '320205') {
|
||||||
|
if (!(value == '0.5' || value == '1' || value == '1.5' || value == '2')) {
|
||||||
|
this.$toast(dutyGFRS_A0004Rules[currentEle.duty].msg)
|
||||||
|
this.nextStepFlag = true
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
if (this.mainRiskCode === dutyGFRS_A0004Rules[currentEle.duty]['mainRisk']) {
|
||||||
if (!(value == '0.5' || value == '1')) {
|
if (!(value == '0.5' || value == '1')) {
|
||||||
this.$toast(showHint)
|
this.$toast(dutyGFRS_A0004Rules[currentEle.duty].msg_1)
|
||||||
this.nextStepFlag = true
|
this.nextStepFlag = true
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user