From 4775b8a49b5e4b5d1666af7b327f63fce75ca3f5 Mon Sep 17 00:00:00 2001 From: "yang.huaxiang" Date: Tue, 27 Oct 2020 11:43:23 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=89=E5=85=A8=E6=80=A7=E9=97=AE=E9=A2=98?= =?UTF-8?q?=E5=A4=84=E7=90=86=EF=BC=9A'proposalAppnt'=20=E5=8A=A0=E5=AF=86?= =?UTF-8?q?=E5=A4=84=E7=90=86=20--=E6=8F=90=E4=BA=A4=E4=BA=BA=EF=BC=9A?= =?UTF-8?q?=E9=98=B3=E5=8D=8E=E7=A5=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/ebiz/proposal/ChooseInsuredPerson.vue | 2 +- src/views/ebiz/proposal/InsuredPerson.vue | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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)