Commit 69d9a742 authored by 郭志伟's avatar 郭志伟

fix: 本人信息回显后禁止修改

parent efda684e
......@@ -456,7 +456,7 @@ export default {
this.getSaveInfoHandler(this.autoSaveKey, AUTO_SAVE_TARGET);
const { idNo, userInfoSecId, relation, selfIdNo } = this.formData;
const selfUserInfo = this.familyList.find(item => item.relation === 1);
if (selfUserInfo.idNo && selfIdNo) {
if (selfUserInfo && selfUserInfo.idNo && selfIdNo) {
const { idNoMask, nameMask, socialSecurity, userInfoSecId } = selfUserInfo;
this.formData = {
...this.formData,
......@@ -472,6 +472,7 @@ export default {
: "0"
}
};
this.selfInfoReadonly = true;
}
if (relation) {
const userArray = this.familyList.filter(item => item.relation === +relation);
......
......@@ -1007,7 +1007,7 @@ export default {
this.getSaveInfoHandler(AUTO_SAVE_KEY, AUTO_SAVE_TARGET);
const { relation, idNo, userInfoSecId, selfIdNo } = this.formData.insuredUserInfo;
const selfUserInfo = this.familyList.find(item => item.relation === 1);
if (selfUserInfo.idNo && selfIdNo) {
if (selfUserInfo && selfUserInfo.idNo && selfIdNo) {
const { idNoMask, nameMask, socialSecurity, userInfoSecId } = selfUserInfo;
this.formData = {
...this.formData,
......@@ -1023,6 +1023,7 @@ export default {
: "0"
}
};
this.selfInfoReadonly = true;
}
if (relation) {
const userArray = this.familyList.filter(item => item.relation === +relation);
......
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