mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-09 18:06:44 +08:00
试算页面关于年龄取值问题修改
This commit is contained in:
@@ -559,7 +559,10 @@ export default {
|
|||||||
)
|
)
|
||||||
|
|
||||||
if (insuredDTO) {
|
if (insuredDTO) {
|
||||||
let insuredPersonAge = utilsAge.getAge(insuredDTO.birthday, new Date())
|
let insuredPersonAge = insuredDTO.insuredAge ? insuredDTO.insuredAge : insuredDTO.age
|
||||||
|
if(insuredDTO.birthday){
|
||||||
|
insuredPersonAge = utilsAge.getAge(insuredDTO.birthday, new Date())
|
||||||
|
}
|
||||||
CacheUtils.setLocItem('saleInsuredPersonInfo',
|
CacheUtils.setLocItem('saleInsuredPersonInfo',
|
||||||
JSON.stringify({
|
JSON.stringify({
|
||||||
birthday: insuredDTO.birthday,
|
birthday: insuredDTO.birthday,
|
||||||
|
|||||||
@@ -664,7 +664,10 @@ export default {
|
|||||||
//获取被保险人信息
|
//获取被保险人信息
|
||||||
if (this.$CacheUtils.getLocItem('saleInsuredPersonInfo')) {
|
if (this.$CacheUtils.getLocItem('saleInsuredPersonInfo')) {
|
||||||
this.saleInsuredPersonInfo = JSON.parse(this.$CacheUtils.getLocItem('saleInsuredPersonInfo'))
|
this.saleInsuredPersonInfo = JSON.parse(this.$CacheUtils.getLocItem('saleInsuredPersonInfo'))
|
||||||
this.saleInsuredPersonInfo.insuredAge = utilsAge.getAge(this.saleInsuredPersonInfo.birthday, new Date())
|
this.saleInsuredPersonInfo.insuredAge = this.saleInsuredPersonInfo.insuredAge ? this.saleInsuredPersonInfo.insuredAge : this.saleInsuredPersonInfo.age
|
||||||
|
if(this.saleInsuredPersonInfo.birthday){
|
||||||
|
this.saleInsuredPersonInfo.insuredAge = utilsAge.getAge(this.saleInsuredPersonInfo.birthday, new Date())
|
||||||
|
}
|
||||||
if (this.isFrom == 'proposal' && !this.saleInsuredPersonInfo.name) {
|
if (this.isFrom == 'proposal' && !this.saleInsuredPersonInfo.name) {
|
||||||
// 建议书投保人/被保人姓名不必填, 填写姓名时展示姓名(落库),不填写姓名时展示性别+年龄,如:男30岁(不落库)
|
// 建议书投保人/被保人姓名不必填, 填写姓名时展示姓名(落库),不填写姓名时展示性别+年龄,如:男30岁(不落库)
|
||||||
let sex = this.saleInsuredPersonInfo.sex == '0'?'男':'女'
|
let sex = this.saleInsuredPersonInfo.sex == '0'?'男':'女'
|
||||||
@@ -2348,7 +2351,7 @@ export default {
|
|||||||
this.saleInsuredInfo.sex,
|
this.saleInsuredInfo.sex,
|
||||||
this.saleInsuredInfo.occupationCode,
|
this.saleInsuredInfo.occupationCode,
|
||||||
this.saleInsuredInfo.occupationName,
|
this.saleInsuredInfo.occupationName,
|
||||||
utilsAge.getAge(this.saleInsuredPersonInfo.birthday, new Date())
|
this.saleInsuredPersonInfo.insuredAge
|
||||||
]
|
]
|
||||||
} else {
|
} else {
|
||||||
;[birthday, sex, occupationCode, occupationName, age] = [
|
;[birthday, sex, occupationCode, occupationName, age] = [
|
||||||
@@ -2356,7 +2359,7 @@ export default {
|
|||||||
this.saleInsuredPersonInfo.sex,
|
this.saleInsuredPersonInfo.sex,
|
||||||
this.saleInsuredPersonInfo.occupationCode,
|
this.saleInsuredPersonInfo.occupationCode,
|
||||||
this.saleInsuredPersonInfo.occupationName,
|
this.saleInsuredPersonInfo.occupationName,
|
||||||
utilsAge.getAge(this.saleInsuredPersonInfo.birthday, new Date())
|
this.saleInsuredPersonInfo.insuredAge
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
trialInfo = Object.assign(trialInfo, {
|
trialInfo = Object.assign(trialInfo, {
|
||||||
|
|||||||
Reference in New Issue
Block a user