国富人寿附加住院医疗保险(B款): 产品上线代码调整 --提交人:阳华祥

This commit is contained in:
yang.huaxiang
2020-12-22 15:50:17 +08:00
parent ea3864a97a
commit 70caa4fa4f

View File

@@ -340,17 +340,17 @@ const dutyGFRS_A0004Rules = {
} }
} }
const dutyGFRS_A0008Rules = { const dutyGFRS_A0008Rules = {
320205: { 320404: {
mainRisk: 'GFRS_M0005', mainRisk: 'GFRS_M0005',
otmainRisk: 'GFRS_M0031', otmainRisk: 'GFRS_M0031',
msg: '住院医疗提示金额只能是0.5、1、1.5、2', msg: '住院医疗提示金额只能是0.5、1、1.5、2',
msg_1: '附加到国富人寿国富民惠医疗保险2020版最高基本保额不超过1万元。', msg_1: '附加到国富人寿国富民惠医疗保险2020版最高基本保额不超过1万元。',
msg_2: '住院医疗提示金额只能是0.5、1' msg_2: '住院医疗提示金额只能是0.5、1'
}, },
320206: { 320405: {
msg: '住院津贴提示:投保可选责任时,可选责任最低投保 50 元,且应为 10 元的整数倍' msg: '住院津贴提示:投保可选责任时,可选责任最低投保 50 元,且应为 10 元的整数倍'
}, },
320207: { 320406: {
msg: '恶性肿瘤提示:投保可选责任时,可选责任最低投保 50 元,且应为 10 元的整数倍' msg: '恶性肿瘤提示:投保可选责任时,可选责任最低投保 50 元,且应为 10 元的整数倍'
} }
} }
@@ -471,7 +471,7 @@ export default {
}) })
if (this.mainRiskCode == 'GFRS_M0005') { if (this.mainRiskCode == 'GFRS_M0005') {
this.chooseProducts.map(item => { this.chooseProducts.map(item => {
if (item.productCode == 'GFRS_A0004' || item.productCode == 'GFRS_A0008') { if (item.productCode == 'GFRS_A0004') {
item.calFactorLst.map(item2 => { item.calFactorLst.map(item2 => {
if (item2.code == 'dutyGroup') { if (item2.code == 'dutyGroup') {
item2.rules.map(item3 => { item2.rules.map(item3 => {
@@ -484,13 +484,13 @@ export default {
} }
}) })
} }
if (this.mainRiskCode == 'GFRS_M0031') { if (this.mainRiskCode == 'GFRS_M0031' || this.mainRiskCode == 'GFRS_M0005') {
this.chooseProducts.map(item => { this.chooseProducts.map(item => {
if ( item.productCode == 'GFRS_A0008') { if ( item.productCode == 'GFRS_A0008') {
item.calFactorLst.map(item2 => { item.calFactorLst.map(item2 => {
if (item2.code == 'dutyGroup') { if (item2.code == 'dutyGroup') {
item2.rules.map(item3 => { item2.rules.map(item3 => {
if (item3.duty == '320205') { if (item3.duty == '320404') {
item3.maxDutyAmt = '1' item3.maxDutyAmt = '1'
} }
}) })
@@ -847,7 +847,7 @@ export default {
//验证不通过 险种为GFRS_A0004 责任编码为320205 //验证不通过 险种为GFRS_A0004 责任编码为320205
return return
} else if (validateRiskCode === 'GFRS_A0008' && !this.valiA0008Duty(inputValue, showHint, dutyItem)) { } else if (validateRiskCode === 'GFRS_A0008' && !this.valiA0008Duty(inputValue, showHint, dutyItem)) {
//验证不通过 险种为GFRS_A0008 责任编码为320205 //验证不通过 险种为GFRS_A0008 责任编码为320404
return return
} else { } else {
this.mainRiskInfluenceAddRisk() this.mainRiskInfluenceAddRisk()
@@ -933,7 +933,7 @@ export default {
return true return true
}*/ }*/
// 验证其他 最小50 其他为50 10 倍数 // 验证其他 最小50 其他为50 10 倍数
if (currentEle.duty == '320206' || currentEle.duty == '320207') { if (currentEle.duty == '320405' || currentEle.duty == '320406') {
let numberValue = Number(value) * 10000 let numberValue = Number(value) * 10000
if (numberValue % 10 != 0 || numberValue < 50) { if (numberValue % 10 != 0 || numberValue < 50) {
this.$toast(dutyGFRS_A0008Rules[currentEle.duty].msg) this.$toast(dutyGFRS_A0008Rules[currentEle.duty].msg)
@@ -943,7 +943,7 @@ export default {
} }
// 保额只能为5000 10000 15000 200000 // 保额只能为5000 10000 15000 200000
if (currentEle.duty == '320205') { if (currentEle.duty == '320404') {
if (this.mainRiskCode === dutyGFRS_A0008Rules[currentEle.duty]['mainRisk'] if (this.mainRiskCode === dutyGFRS_A0008Rules[currentEle.duty]['mainRisk']
|| this.mainRiskCode === dutyGFRS_A0008Rules[currentEle.duty]['otmainRisk']) { || this.mainRiskCode === dutyGFRS_A0008Rules[currentEle.duty]['otmainRisk']) {
if (!(value == '0.5' || value == '1')) { if (!(value == '0.5' || value == '1')) {