|
@ -1584,12 +1584,14 @@ export default { |
|
|
title: "志愿者", |
|
|
title: "志愿者", |
|
|
}, |
|
|
}, |
|
|
}, |
|
|
}, |
|
|
|
|
|
formCopy:null |
|
|
}; |
|
|
}; |
|
|
}, |
|
|
}, |
|
|
async created() { |
|
|
async created() { |
|
|
// await this.getDicts() |
|
|
// await this.getDicts() |
|
|
// await this.getOrgTreeList() |
|
|
// await this.getOrgTreeList() |
|
|
// await this.getResiDetail() |
|
|
// await this.getResiDetail() |
|
|
|
|
|
this.formCopy = JSON.parse(JSON.stringify(this.form)); |
|
|
}, |
|
|
}, |
|
|
async activated() { |
|
|
async activated() { |
|
|
this.resiId = this.$route.query.id; |
|
|
this.resiId = this.$route.query.id; |
|
@ -2043,7 +2045,7 @@ export default { |
|
|
}); |
|
|
}); |
|
|
}, |
|
|
}, |
|
|
async submitForm(house) { |
|
|
async submitForm(house) { |
|
|
this.btnLoading = false; |
|
|
this.btnLoading = true |
|
|
try { |
|
|
try { |
|
|
let url = this.houseType |
|
|
let url = this.houseType |
|
|
? "/actual/base/residentBaseInfo/update" |
|
|
? "/actual/base/residentBaseInfo/update" |
|
@ -2061,8 +2063,19 @@ export default { |
|
|
this.$message.success("保存成功"); |
|
|
this.$message.success("保存成功"); |
|
|
let homeArr = JSON.parse(JSON.stringify(this.form.resideInfoDtos)); |
|
|
let homeArr = JSON.parse(JSON.stringify(this.form.resideInfoDtos)); |
|
|
this.$refs["editForm"].resetFields(); |
|
|
this.$refs["editForm"].resetFields(); |
|
|
|
|
|
this.form = this.formCopy; |
|
|
this.form.resideInfoDtos = homeArr; |
|
|
this.form.resideInfoDtos = homeArr; |
|
|
this.removeIdKey(this.form); |
|
|
for (let key in this.form.baseInfoDto.categoryInfo) { |
|
|
|
|
|
if (this.form.baseInfoDto.categoryInfo[key] === 1) { |
|
|
|
|
|
this.form.baseInfoDto.categoryInfo[key] = 0; |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
this.$refs["resiExpand"].formList = []; |
|
|
|
|
|
this.footerInputList.forEach((item) => { |
|
|
|
|
|
item.children.forEach((child) => { |
|
|
|
|
|
child.value = child.itemType === "checkbox" ? [] : null; |
|
|
|
|
|
}); |
|
|
|
|
|
}); |
|
|
this.houseType = false; |
|
|
this.houseType = false; |
|
|
} |
|
|
} |
|
|
} else if (code >= 8000) { |
|
|
} else if (code >= 8000) { |
|
@ -2074,26 +2087,6 @@ export default { |
|
|
this.btnLoading = false; |
|
|
this.btnLoading = false; |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
removeIdKey(obj) { |
|
|
|
|
|
if (!obj || typeof obj !== "object") { |
|
|
|
|
|
return; |
|
|
|
|
|
} |
|
|
|
|
|
for (const key in obj) { |
|
|
|
|
|
if (obj.hasOwnProperty(key)) { |
|
|
|
|
|
if (typeof obj[key] === "object") { |
|
|
|
|
|
this.removeIdKey(obj[key]); |
|
|
|
|
|
} |
|
|
|
|
|
if ( |
|
|
|
|
|
key === "id" || |
|
|
|
|
|
key === "resiId" || |
|
|
|
|
|
key === "createdTime" || |
|
|
|
|
|
key === "updatedTime" |
|
|
|
|
|
) { |
|
|
|
|
|
delete obj[key]; |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
showDialog({ index, value }, event) { |
|
|
showDialog({ index, value }, event) { |
|
|
// 设置 partyFlag |
|
|
// 设置 partyFlag |
|
@ -2148,7 +2141,6 @@ export default { |
|
|
}); |
|
|
}); |
|
|
this.$refs["resiExpand"].formType = this.incidence[value].formType; |
|
|
this.$refs["resiExpand"].formType = this.incidence[value].formType; |
|
|
this.$refs["resiExpand"].showForm(); |
|
|
this.$refs["resiExpand"].showForm(); |
|
|
console.log(this.form, "tianjiawanzujian"); |
|
|
|
|
|
}); |
|
|
}); |
|
|
} else { |
|
|
} else { |
|
|
this.$refs["resiExpand"].formList = this.$refs[ |
|
|
this.$refs["resiExpand"].formList = this.$refs[ |
|
@ -2172,6 +2164,7 @@ export default { |
|
|
// 提交扩展信息 |
|
|
// 提交扩展信息 |
|
|
submitExpand(_form, { changId, changPid, changType }) { |
|
|
submitExpand(_form, { changId, changPid, changType }) { |
|
|
if (changType == "checkbox") { |
|
|
if (changType == "checkbox") { |
|
|
|
|
|
this.form[changPid] = {}; |
|
|
this.form[changPid][changId] = []; |
|
|
this.form[changPid][changId] = []; |
|
|
this.form[changPid][changId].push(..._form[changPid][changId]); |
|
|
this.form[changPid][changId].push(..._form[changPid][changId]); |
|
|
} else { |
|
|
} else { |
|
|