diff --git a/src/views/ebiz/proposal/ChooseInsuredPerson.vue b/src/views/ebiz/proposal/ChooseInsuredPerson.vue index c34ef7c3c..bf6797789 100644 --- a/src/views/ebiz/proposal/ChooseInsuredPerson.vue +++ b/src/views/ebiz/proposal/ChooseInsuredPerson.vue @@ -116,7 +116,7 @@ export default { if (res.result == '0') { this.chooseList = res.content[0].insuredDTOs console.log(res.content[0].appntDTO, 'zzz') - localStorage.proposalAppnt = JSON.stringify(res.content[0].appntDTO) + this.$CacheUtils.setLocItem("proposalAppnt",JSON.stringify(res.content[0].appntDTO)) this.proposalInfo = res.content[0] if (this.chooseList != null) { this.chooseList.forEach(v => { diff --git a/src/views/ebiz/proposal/InsuredPerson.vue b/src/views/ebiz/proposal/InsuredPerson.vue index 19d06cb30..c8320a94f 100644 --- a/src/views/ebiz/proposal/InsuredPerson.vue +++ b/src/views/ebiz/proposal/InsuredPerson.vue @@ -153,7 +153,7 @@ export default { if (this.insured.relationToAppnt == '1') { //如果是投被同人 就将投保人信息存入被保险人信息 this.disabled = true - this.insured = Object.assign(this.insured, JSON.parse(localStorage.proposalAppnt)) + this.insured = Object.assign(this.insured, JSON.parse(this.$CacheUtils.getLocItem('proposalAppnt'))) this.insured.age = getAge.getAge(this.insured.birthday, new Date()) this.insured.medical = localStorage.orderNoSocialSecurity === '1' ? '1' : '0' } @@ -237,7 +237,7 @@ export default { //localStorage.setItem('proposalMedical', this.insured.medical == '0' ? '1' : '0') localStorage.proposalMedical = this.insured.medical == '0' ? '1' : '0' this.insured.age = String(this.insured.age) - let cacheSex = JSON.parse(localStorage.proposalAppnt).sex + let cacheSex = JSON.parse(this.$CacheUtils.getLocItem('proposalAppnt')).sex let localSex = this.insured.sex let relation = this.localInfo.relationToAppnt let resultSex = checkSex(cacheSex, localSex, relation)