mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-11 13:16:43 +08:00
建议书功能与生产代码冲突解决
This commit is contained in:
@@ -559,16 +559,14 @@ export default {
|
||||
)
|
||||
|
||||
if (insuredDTO) {
|
||||
let insuredPersonAge1 = utilsAge.getAge(insuredDTO.birthday, new Date())
|
||||
let insuredPersonAge2 = insuredDTO.birthday?utilsAge.getAge(insuredDTO.birthday, new Date()):insuredDTO.insuredAge
|
||||
let insuredPersonAge = insuredDTO.birthday?utilsAge.getAge(insuredDTO.birthday, new Date()):insuredDTO.insuredAge
|
||||
CacheUtils.setLocItem('saleInsuredPersonInfo',
|
||||
JSON.stringify({
|
||||
birthday: insuredDTO.birthday,
|
||||
name: insuredDTO.name,
|
||||
sex: insuredDTO.sex,
|
||||
idType: insuredDTO.idType,
|
||||
age: insuredPersonAge1,
|
||||
insuredAge: insuredPersonAge2,
|
||||
insuredAge: insuredPersonAge,
|
||||
// marriage: insuredDTO.marriage,
|
||||
relationToAppnt: insuredDTO.relationToAppnt,
|
||||
medical: insuredDTO.medical,
|
||||
|
||||
@@ -310,9 +310,9 @@ export default {
|
||||
if(this.appntDTO.name == name){
|
||||
this.appntDTO.name = ''
|
||||
}
|
||||
let ageRule = /^[a-zA-Z\.\s\u4e00-\u9fa5]{2,120}$/
|
||||
let ageRule = /^[a-zA-Z0-9\.\s\u4e00-\u9fa5]{2,120}$/
|
||||
if (this.appntDTO.name && !ageRule.test(this.appntDTO.name)) {
|
||||
return Toast.fail('姓名长度为2-120个字符之内,只能输入汉字或者英文')
|
||||
return Toast.fail('姓名长度为2-120个字符之内,只能输入汉字、数字或者英文')
|
||||
}
|
||||
this.appntDTO.age = String(this.appntDTO.age)
|
||||
this.$validator.validate().then(valid => {
|
||||
|
||||
@@ -177,15 +177,13 @@ export default {
|
||||
s.addtion = []
|
||||
}
|
||||
})
|
||||
let thisTempData = []
|
||||
v.riskDTOLst.forEach(s => {
|
||||
if(s.isMainRisk == '1'){
|
||||
thisTempData.push(s)
|
||||
v.riskDTOLst.forEach(x => {
|
||||
if(x.riskCode == s.mainRiskCode){
|
||||
x.addtion.push(s)
|
||||
}
|
||||
})
|
||||
v.riskDTOLst.forEach(s => {
|
||||
if(s.isMainRisk == '0'){
|
||||
s.addtion = JSON.parse(JSON.stringify(thisTempData))
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
@@ -339,9 +339,9 @@ export default {
|
||||
let localSex = this.insured.sex
|
||||
let relation = this.localInfo.relationToAppnt
|
||||
let resultSex = checkSex(cacheSex, localSex, relation)
|
||||
let ageRule = /^[a-zA-Z\.\s\u4e00-\u9fa5]{2,120}$/
|
||||
let ageRule = /^[a-zA-Z0-9\.\s\u4e00-\u9fa5]{2,120}$/
|
||||
if (this.insured.name && !ageRule.test(this.insured.name)) {
|
||||
return Toast.fail('姓名长度为2-120个字符之内,只能输入汉字或者英文')
|
||||
return Toast.fail('姓名长度为2-120个字符之内,只能输入汉字、数字或者英文')
|
||||
}
|
||||
if (!resultSex) {
|
||||
return Toast.fail('被保险人性别有误')
|
||||
|
||||
Reference in New Issue
Block a user