diff --git a/src/views/components/resiForm.vue b/src/views/components/resiForm.vue index 5b15dc1f8..784cf718e 100644 --- a/src/views/components/resiForm.vue +++ b/src/views/components/resiForm.vue @@ -993,6 +993,34 @@ export default { formName:"specialCategoryCode", opction:[] },] + }, + { + id:'birthRecordDTO', + children:[{ + label:'出生地', + itemType:"input1", + formName:"birthplace", + }, + { + label:'父亲姓名', + itemType:"input1", + formName:"father", + }, + { + label:'母亲姓名', + itemType:"input1", + formName:"mother", + }, + { + label:'胎次', + itemType:"number", + formName:"count", + }, + { + label:'申报日期', + itemType:"datepicker1", + formName:"reportDate", + }] } ], newForm: {}, @@ -1153,6 +1181,13 @@ export default { }, specialDto:{//特殊人群 specialCategoryCode:[]//人群类别【字典表】,可多选,以英文逗号隔开; + }, + birthRecordDTO:{ + birthplace: '', + father: '', + mother: '', + count: 0, + reportDate: '' } }, rulesForm: { @@ -1172,7 +1207,8 @@ export default { {groupId:'workInfoDto',label:'工作'}, {groupId:'economyDto',label:'经济情况'}, {groupId:'resideInfoDto',label:'居住'}, - {groupId:'familyInfoDto',label:'家庭'} + {groupId:'familyInfoDto',label:'家庭'}, + {groupId:'birthRecordDTO',label:'出生人员'} ] } }, @@ -1626,6 +1662,12 @@ export default { } else { await this.getFamilyInfoDetailById(this.form.resiId) } + } else if (event.toElement.innerText == '出生人员') { + if (!this.form.resiId) { + this.newForm.birthRecordDTO = this.form.birthRecordDTO + } else { + await this.residentBirthRecord(this.form.resiId) + } } else if (event.toElement.innerText == '党员信息') { if (!this.form.resiId) { this.newForm.parymemberInfoDto = this.form.parymemberInfoDto @@ -2050,6 +2092,23 @@ export default { } }) }, + // 出生人员 + residentBirthRecord(id) { + this.$http.post(`/actual/base/residentBirthRecord/detail/${id}`).then(({ data: res }) => { + if (res.code !== 0) { + return this.$message.error(res.msg); + } else { + this.form.birthRecordDTO = res.data ? res.data : { //出生 + birthplace: '', + father: '', + mother: '', + count: 0, + reportDate: '' + } + this.newForm.birthRecordDTO = this.form.birthRecordDTO + } + }) + }, // 党员信息详情 residentPartyMemberInfo(id) { this.$http.get(`/actual/base/residentPartyMemberInfo/detail/${id}`).then(({ data: res }) => { @@ -2307,6 +2366,10 @@ export default { if(this.newForm.familyInfoDto) { this.newForm.familyInfoDto = this.form.familyInfoDto } + if(this.newForm.birthRecordDTO) { + this.newForm.birthRecordDTO = this.form.birthRecordDTO + } + if(this.newForm.parymemberInfoDto) { this.newForm.parymemberInfoDto = this.form.parymemberInfoDto }