Browse Source

出生人员

feature
zhaoyongnian 3 years ago
parent
commit
ed58ef08dc
  1. 65
      src/views/components/resiForm.vue

65
src/views/components/resiForm.vue

@ -993,6 +993,34 @@ export default {
formName:"specialCategoryCode", formName:"specialCategoryCode",
opction:[] 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: {}, newForm: {},
@ -1153,6 +1181,13 @@ export default {
}, },
specialDto:{// specialDto:{//
specialCategoryCode:[]//, specialCategoryCode:[]//,
},
birthRecordDTO:{
birthplace: '',
father: '',
mother: '',
count: 0,
reportDate: ''
} }
}, },
rulesForm: { rulesForm: {
@ -1172,7 +1207,8 @@ export default {
{groupId:'workInfoDto',label:'工作'}, {groupId:'workInfoDto',label:'工作'},
{groupId:'economyDto',label:'经济情况'}, {groupId:'economyDto',label:'经济情况'},
{groupId:'resideInfoDto',label:'居住'}, {groupId:'resideInfoDto',label:'居住'},
{groupId:'familyInfoDto',label:'家庭'} {groupId:'familyInfoDto',label:'家庭'},
{groupId:'birthRecordDTO',label:'出生人员'}
] ]
} }
}, },
@ -1626,6 +1662,12 @@ export default {
} else { } else {
await this.getFamilyInfoDetailById(this.form.resiId) 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 == '党员信息') { } else if (event.toElement.innerText == '党员信息') {
if (!this.form.resiId) { if (!this.form.resiId) {
this.newForm.parymemberInfoDto = this.form.parymemberInfoDto 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) { residentPartyMemberInfo(id) {
this.$http.get(`/actual/base/residentPartyMemberInfo/detail/${id}`).then(({ data: res }) => { this.$http.get(`/actual/base/residentPartyMemberInfo/detail/${id}`).then(({ data: res }) => {
@ -2307,6 +2366,10 @@ export default {
if(this.newForm.familyInfoDto) { if(this.newForm.familyInfoDto) {
this.newForm.familyInfoDto = this.form.familyInfoDto this.newForm.familyInfoDto = this.form.familyInfoDto
} }
if(this.newForm.birthRecordDTO) {
this.newForm.birthRecordDTO = this.form.birthRecordDTO
}
if(this.newForm.parymemberInfoDto) { if(this.newForm.parymemberInfoDto) {
this.newForm.parymemberInfoDto = this.form.parymemberInfoDto this.newForm.parymemberInfoDto = this.form.parymemberInfoDto
} }

Loading…
Cancel
Save