【fix】 修复 在不选择 用户时, 有无社保项为 “undefined” 的错误,修改默认为“有”社保

This commit is contained in:
tgy
2020-03-28 19:09:09 +08:00
parent ae177c250d
commit d60df2c08e

View File

@@ -155,7 +155,8 @@ export default {
this.disabled = true
this.insured = Object.assign(this.insured, JSON.parse(localStorage.proposalAppnt))
this.insured.age = getAge.getAge(this.insured.birthday, new Date())
this.insured.medical = localStorage.orderNoSocialSecurity !== undefined ? localStorage.orderNoSocialSecurity : '0'
this.insured.medical =
localStorage.orderNoSocialSecurity && localStorage.orderNoSocialSecurity != 'undefined' ? localStorage.orderNoSocialSecurity : '0'
}
this.ageShow = this.insured.age == '-1' ? '0' : this.insured.age
},