【建议书优化需求】修改年龄 职业的话不会有任何提示 也不会删除险种

This commit is contained in:
lyt
2023-05-05 16:33:10 +08:00
parent 0b54ab84e8
commit 54e875438e

View File

@@ -76,6 +76,7 @@ import getAge from '@/assets/js/utils/age.js'
import beforeDate from '@/assets/js/utils/getBeforeDate.js' import beforeDate from '@/assets/js/utils/getBeforeDate.js'
import { checkSex, checkRelation } from './rule' import { checkSex, checkRelation } from './rule'
import utils from '@/assets/js/utils/date-utils' import utils from '@/assets/js/utils/date-utils'
import CacheUtils from '@/assets/js/utils/cacheUtils'
export default { export default {
data() { data() {
@@ -196,6 +197,11 @@ export default {
let sex = this.insured.sex == '0'?'男':'女' let sex = this.insured.sex == '0'?'男':'女'
this.insured.name = sex+this.insured.insuredAge+'岁' this.insured.name = sex+this.insured.insuredAge+'岁'
} }
let chooseProductCodes = []
this.insured.riskDTOLst.forEach(item => {
chooseProductCodes.push(item.mainRiskCode)
})
CacheUtils.setLocItem('chooseProductCodes',JSON.stringify(chooseProductCodes))
} }
}, },
// //设置被保险人年龄显示 如果this.insured.age为 -1时显示为空不为1时显示为正常输入值 // //设置被保险人年龄显示 如果this.insured.age为 -1时显示为空不为1时显示为正常输入值