mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-08 09:26:44 +08:00
【建议书优化需求】修改年龄 职业的话不会有任何提示 也不会删除险种
This commit is contained in:
committed by
liu.xiaofeng@ebiz-digits.com
parent
eb036d9bd9
commit
05456b9aaa
@@ -311,7 +311,7 @@ export default {
|
||||
this.appntDTO.name = ''
|
||||
}
|
||||
let ageRule = /^[a-zA-Z\.\s\u4e00-\u9fa5]{2,120}$/
|
||||
if (this.appntDTO.name && ageRule.test(this.appntDTO.name)) {
|
||||
if (this.appntDTO.name && !ageRule.test(this.appntDTO.name)) {
|
||||
return Toast.fail('姓名长度为2-120个字符之内,只能输入汉字或者英文')
|
||||
}
|
||||
this.appntDTO.age = String(this.appntDTO.age)
|
||||
|
||||
@@ -75,6 +75,7 @@ import getAge from '@/assets/js/utils/age.js'
|
||||
import beforeDate from '@/assets/js/utils/getBeforeDate.js'
|
||||
import { checkSex, checkRelation } from './rule'
|
||||
import utils from '@/assets/js/utils/date-utils'
|
||||
import CacheUtils from '@/assets/js/utils/cacheUtils'
|
||||
|
||||
export default {
|
||||
data() {
|
||||
@@ -195,6 +196,11 @@ export default {
|
||||
let sex = this.insured.sex == '0'?'男':'女'
|
||||
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时显示为正常输入值
|
||||
|
||||
Reference in New Issue
Block a user