Commit b5bd54fc authored by 郭志伟's avatar 郭志伟

fix: 年收入问题整改;去掉从开启保障展示用户信息

parent 01499c5f
...@@ -355,20 +355,12 @@ export default { ...@@ -355,20 +355,12 @@ export default {
this.selfInfoReadonly = true; this.selfInfoReadonly = true;
} }
}); });
let userArray = this.familyList.filter( let userArray = this.familyList.filter(item => item.relation === +relation);
item => item.userInfoSecId === sessionStorage.getItem(this.detailType + "userInfoSecId")
);
if (!userArray.length) {
userArray = this.familyList.filter(item => item.relation === +relation);
} else {
this.formData.relation = sessionStorage.getItem(this.detailType + "relation");
}
let [name, idNo, userInfoSecId, socialSecurity] = ["", "", "", ""]; let [name, idNo, userInfoSecId, socialSecurity] = ["", "", "", ""];
if ( if (
relation === relation ===
(localStorage.get(this.autoSaveKey) && localStorage.get(this.autoSaveKey).relation) (localStorage.get(this.autoSaveKey) && localStorage.get(this.autoSaveKey).relation)
) { ) {
sessionStorage.removeItem(this.detailType + "userInfoSecId");
const { const {
name: cachename, name: cachename,
idNo: cacheidNo, idNo: cacheidNo,
...@@ -416,7 +408,6 @@ export default { ...@@ -416,7 +408,6 @@ export default {
// //
} }
} }
// sessionStorage.removeItem(this.detailType + "relation");
}, },
async getFamilyList() { async getFamilyList() {
this.mongoToken = localStorage.get("mongoToken"); this.mongoToken = localStorage.get("mongoToken");
...@@ -429,9 +420,6 @@ export default { ...@@ -429,9 +420,6 @@ export default {
this.getSaveInfoHandler(this.autoSaveKey, AUTO_SAVE_TARGET); this.getSaveInfoHandler(this.autoSaveKey, AUTO_SAVE_TARGET);
} else { } else {
let relation = this.formData.relation; let relation = this.formData.relation;
if (sessionStorage.getItem(this.detailType + "relation")) {
relation = sessionStorage.getItem(this.detailType + "relation");
}
(this.showAuthXyqb || this.mongoToken) && this.relationChange(relation); (this.showAuthXyqb || this.mongoToken) && this.relationChange(relation);
} }
} }
......
...@@ -800,9 +800,14 @@ export default { ...@@ -800,9 +800,14 @@ export default {
this.subFormData.insuredUserInfo.longTerm = longTerm === "2" ? true : false; this.subFormData.insuredUserInfo.longTerm = longTerm === "2" ? true : false;
this.subFormData.holderUserInfo.longTerm = longTerm === "2" ? true : false; this.subFormData.holderUserInfo.longTerm = longTerm === "2" ? true : false;
if (relation === "1") { if (relation === "1") {
const { weight, height, socialSecurity } = this.subFormData.insuredUserInfo;
this.subFormData.holderUserInfo = { this.subFormData.holderUserInfo = {
...this.subFormData.holderUserInfo, ...this.subFormData.holderUserInfo,
...this.subFormData.insuredUserInfo ...{
weight,
height,
socialSecurity
}
}; };
delete this.subFormData.insuredUserInfo; delete this.subFormData.insuredUserInfo;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment