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

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

parent 01499c5f
......@@ -355,20 +355,12 @@ export default {
this.selfInfoReadonly = true;
}
});
let userArray = this.familyList.filter(
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 userArray = this.familyList.filter(item => item.relation === +relation);
let [name, idNo, userInfoSecId, socialSecurity] = ["", "", "", ""];
if (
relation ===
(localStorage.get(this.autoSaveKey) && localStorage.get(this.autoSaveKey).relation)
) {
sessionStorage.removeItem(this.detailType + "userInfoSecId");
const {
name: cachename,
idNo: cacheidNo,
......@@ -416,7 +408,6 @@ export default {
//
}
}
// sessionStorage.removeItem(this.detailType + "relation");
},
async getFamilyList() {
this.mongoToken = localStorage.get("mongoToken");
......@@ -429,9 +420,6 @@ export default {
this.getSaveInfoHandler(this.autoSaveKey, AUTO_SAVE_TARGET);
} else {
let relation = this.formData.relation;
if (sessionStorage.getItem(this.detailType + "relation")) {
relation = sessionStorage.getItem(this.detailType + "relation");
}
(this.showAuthXyqb || this.mongoToken) && this.relationChange(relation);
}
}
......
......@@ -800,9 +800,14 @@ export default {
this.subFormData.insuredUserInfo.longTerm = longTerm === "2" ? true : false;
this.subFormData.holderUserInfo.longTerm = longTerm === "2" ? true : false;
if (relation === "1") {
const { weight, height, socialSecurity } = this.subFormData.insuredUserInfo;
this.subFormData.holderUserInfo = {
...this.subFormData.holderUserInfo,
...this.subFormData.insuredUserInfo
...{
weight,
height,
socialSecurity
}
};
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