|
|
|
@ -61,7 +61,7 @@ |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="6"> |
|
|
|
<el-form-item label="民族"> |
|
|
|
<el-form-item label="民族" prop="baseInfoDto.nation"> |
|
|
|
<el-select v-model="form.baseInfoDto.nation" placeholder="请选择" size="small" |
|
|
|
class="list_item_width_1" clearable> |
|
|
|
<el-option v-for="(item, index) in dicts.nationList" :key="index" |
|
|
|
@ -72,7 +72,7 @@ |
|
|
|
</el-row> |
|
|
|
<el-row type="flex" justify="space-between"> |
|
|
|
<el-col :span="6"> |
|
|
|
<el-form-item label="文化程度"> |
|
|
|
<el-form-item label="文化程度" prop="eduInfoDto.cultureLevel"> |
|
|
|
<el-select v-model="form.eduInfoDto.cultureLevel" placeholder="请选择" size="small" |
|
|
|
class="list_item_width_1" clearable> |
|
|
|
<el-option v-for="(item, index) in dicts.educationList" :key="index" |
|
|
|
@ -81,7 +81,7 @@ |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="6"> |
|
|
|
<el-form-item label="婚姻状况"> |
|
|
|
<el-form-item label="婚姻状况" prop="familyInfoDto.marriage"> |
|
|
|
<el-select v-model="form.familyInfoDto.marriage" placeholder="请选择" size="small" |
|
|
|
class="list_item_width_1" clearable> |
|
|
|
<el-option v-for="(item, index) in dicts.marriageList" :key="index" |
|
|
|
@ -92,7 +92,7 @@ |
|
|
|
</el-col> |
|
|
|
<el-col :span="6" |
|
|
|
v-if="form.familyInfoDto && form.familyInfoDto.marriage == 'chuhun' || form.familyInfoDto.marriage == 'zaihun' || form.familyInfoDto.marriage == 'fuhun'"> |
|
|
|
<el-form-item label="配偶情况"> |
|
|
|
<el-form-item label="配偶情况" prop="familyInfoDto.spouseSituation"> |
|
|
|
<el-select v-model="form.familyInfoDto.spouseSituation" placeholder="请选择" size="small" |
|
|
|
class="list_item_width_1" clearable> |
|
|
|
<el-option v-for="(item, index) in dicts.spouseSituationList" :key="index" |
|
|
|
@ -101,7 +101,7 @@ |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="6"> |
|
|
|
<el-form-item label="籍贯"> |
|
|
|
<el-form-item label="籍贯" prop="baseInfoDto.nativePlace"> |
|
|
|
<el-input v-model="form.baseInfoDto.nativePlace" placeholder="请输入内容" clearable |
|
|
|
size="small" class="list_item_width_1"></el-input> |
|
|
|
<el-radio v-model="form.baseInfoDto.localResidenceFlag" style="margin-left: 10px;" |
|
|
|
@ -109,7 +109,7 @@ |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
<el-form-item label="备注"> |
|
|
|
<el-form-item label="备注" prop="baseInfoDto.remark"> |
|
|
|
<el-input type="textarea" class="item_width_1" :rows="3" placeholder="请输入内容" |
|
|
|
v-model="form.baseInfoDto.remark" clearable> |
|
|
|
</el-input> |
|
|
|
@ -248,13 +248,13 @@ |
|
|
|
<div class="expand"> |
|
|
|
<el-row type="flex" justify="space-between"> |
|
|
|
<el-col :span="6"> |
|
|
|
<el-form-item label="宗教信仰"> |
|
|
|
<el-form-item label="宗教信仰" prop="religionDto.religion"> |
|
|
|
<el-input class="list_item_width_1" v-model="form.religionDto.religion" |
|
|
|
placeholder="请输入内容" size="small" clearable></el-input> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="6"> |
|
|
|
<el-form-item label="就业状态" class="font-color-blue"> |
|
|
|
<el-form-item label="就业状态" class="font-color-blue" prop="workInfoDto.careerStatus"> |
|
|
|
<el-select v-model="form.workInfoDto.careerStatus" placeholder="请选择" size="small" |
|
|
|
class="list_item_width_1" clearable> |
|
|
|
<el-option v-for="(item, index) in dicts.careerStatusList" :key="index" |
|
|
|
@ -265,21 +265,21 @@ |
|
|
|
</el-col> |
|
|
|
<el-col :span="6" |
|
|
|
v-if="form.workInfoDto.careerStatus >= 1 && form.workInfoDto.careerStatus <= 5"> |
|
|
|
<el-form-item label="工作单位"> |
|
|
|
<el-form-item label="工作单位" prop="workInfoDto.workUnit"> |
|
|
|
<el-input class="list_item_width_1" v-model="form.workInfoDto.workUnit" |
|
|
|
placeholder="请输入内容" size="small" clearable></el-input> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="6" |
|
|
|
v-if="form.workInfoDto.careerStatus >= 1 && form.workInfoDto.careerStatus <= 5"> |
|
|
|
<el-form-item label="职业"> |
|
|
|
<el-form-item label="职业" prop="workInfoDto.occupation"> |
|
|
|
<el-input class="list_item_width_1" v-model="form.workInfoDto.occupation" |
|
|
|
placeholder="请输入内容" size="small" clearable></el-input> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="6" |
|
|
|
v-if="(form.workInfoDto.careerStatus == 0 || form.workInfoDto.careerStatus == 6) && form.workInfoDto.careerStatus"> |
|
|
|
<el-form-item label="原工作单位"> |
|
|
|
<el-form-item label="原工作单位" prop="unemployedDto.originWorkUnit"> |
|
|
|
<el-input class="list_item_width_1" v-model="form.unemployedDto.originWorkUnit" |
|
|
|
placeholder="请输入内容" size="small" clearable></el-input> |
|
|
|
</el-form-item> |
|
|
|
@ -287,7 +287,7 @@ |
|
|
|
|
|
|
|
<el-col :span="6" |
|
|
|
v-if="(form.workInfoDto.careerStatus == 0 || form.workInfoDto.careerStatus == 6) && form.workInfoDto.careerStatus"> |
|
|
|
<el-form-item label="失业时间"> |
|
|
|
<el-form-item label="失业时间" prop="unemployedDto.unemploymentTime"> |
|
|
|
<el-date-picker v-model.trim="form.unemployedDto.unemploymentTime" |
|
|
|
class="list_item_width_1" type="date" size="small" clearable placeholder="选择日期" |
|
|
|
format="yyyy 年 MM 月 dd 日" value-format="yyyy-MM-dd"> |
|
|
|
@ -299,7 +299,7 @@ |
|
|
|
<el-row v-if="form.workInfoDto.careerStatus >= 1 && form.workInfoDto.careerStatus <= 5"> |
|
|
|
<el-col :span="6" |
|
|
|
v-if="form.workInfoDto.careerStatus >= 1 && form.workInfoDto.careerStatus <= 5"> |
|
|
|
<el-form-item label="月收入"> |
|
|
|
<el-form-item label="月收入" prop="economyDto.monthIncome"> |
|
|
|
<el-input class="list_item_width_1" v-model="form.economyDto.monthIncome" |
|
|
|
placeholder="请输入内容" size="small" clearable></el-input> |
|
|
|
</el-form-item> |
|
|
|
@ -311,13 +311,13 @@ |
|
|
|
<el-row type="flex" justify="" |
|
|
|
v-if="(form.workInfoDto.careerStatus == 0 || form.workInfoDto.careerStatus == 6) && form.workInfoDto.careerStatus"> |
|
|
|
<el-col :span="6"> |
|
|
|
<el-form-item label="失业证号"> |
|
|
|
<el-form-item label="失业证号" prop="unemployedDto.unemploymentNum"> |
|
|
|
<el-input class="list_item_width_1" v-model="form.unemployedDto.unemploymentNum" |
|
|
|
placeholder="请输入内容" size="small" clearable></el-input> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="6"> |
|
|
|
<el-form-item label="失业原因"> |
|
|
|
<el-form-item label="失业原因" prop="unemployedDto.unemploymentReason"> |
|
|
|
<el-select v-model="form.unemployedDto.unemploymentReason" placeholder="请选择" |
|
|
|
size="small" class="list_item_width_1" clearable> |
|
|
|
<el-option v-for="(item, index) in dicts.unemploymentReasonList" :key="index" |
|
|
|
@ -326,13 +326,13 @@ |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="6"> |
|
|
|
<el-form-item label="再就业优惠证号" label-width="120px"> |
|
|
|
<el-form-item label="再就业优惠证号" label-width="120px" prop="unemployedDto.employmentNum"> |
|
|
|
<el-input class="list_item_width_1" v-model="form.unemployedDto.employmentNum" |
|
|
|
placeholder="请输入内容" size="small" clearable></el-input> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="6"> |
|
|
|
<el-form-item label="技术特长"> |
|
|
|
<el-form-item label="技术特长" prop="unemployedDto.specialSkill"> |
|
|
|
<el-input class="list_item_width_1" v-model="form.unemployedDto.specialSkill" |
|
|
|
placeholder="请输入内容" size="small" clearable></el-input> |
|
|
|
</el-form-item> |
|
|
|
@ -341,7 +341,7 @@ |
|
|
|
<el-row type="flex" |
|
|
|
v-if="(form.workInfoDto.careerStatus == 0 || form.workInfoDto.careerStatus == 6) && form.workInfoDto.careerStatus"> |
|
|
|
<el-col :span="6"> |
|
|
|
<el-form-item label="是否领取失业金" label-width="120px"> |
|
|
|
<el-form-item label="是否领取失业金" label-width="120px" prop="unemployedDto.unempCompensationFlag"> |
|
|
|
<el-radio-group v-model="form.unemployedDto.unempCompensationFlag"> |
|
|
|
<el-radio :label="item.value" v-for="item in disabilityFlagList" :key="item.value">{{ |
|
|
|
item.label |
|
|
|
@ -350,7 +350,7 @@ |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="6"> |
|
|
|
<el-form-item label="是否就业困难对象" label-width="150px"> |
|
|
|
<el-form-item label="是否就业困难对象" label-width="150px" prop="unemployedDto.employmentHardFlag"> |
|
|
|
<el-radio-group v-model="form.unemployedDto.employmentHardFlag"> |
|
|
|
<el-radio :label="item.value" v-for="item in disabilityFlagList" :key="item.value">{{ |
|
|
|
item.label |
|
|
|
@ -359,7 +359,7 @@ |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="6"> |
|
|
|
<el-form-item label="劳动就业愿望" label-width="105px"> |
|
|
|
<el-form-item label="劳动就业愿望" label-width="105px" prop="workInfoDto.employmentWish"> |
|
|
|
<el-select v-model="form.workInfoDto.employmentWish" placeholder="请选择" size="small" |
|
|
|
class="list_item_width_1" clearable> |
|
|
|
<el-option v-for="(item, index) in dicts.employmentWishList" :key="index" |
|
|
|
@ -370,7 +370,7 @@ |
|
|
|
</el-row> |
|
|
|
<el-row type="flex" justify=""> |
|
|
|
<el-col :span="6"> |
|
|
|
<el-form-item label="有无赡养人"> |
|
|
|
<el-form-item label="有无赡养人" prop="familyInfoDto.elderlyFlag"> |
|
|
|
<el-radio-group v-model="form.familyInfoDto.elderlyFlag"> |
|
|
|
<el-radio :label="item.value" v-for="item in hasOptions" :key="item.value" |
|
|
|
@click.native="handelClickelderly">{{ item.label |
|
|
|
@ -379,7 +379,7 @@ |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="6" v-if="form.familyInfoDto.elderlyFlag == 1"> |
|
|
|
<el-form-item label="与赡养人关系" label-width="105px"> |
|
|
|
<el-form-item label="与赡养人关系" label-width="105px" prop="familyInfoDto.elderlyRelation"> |
|
|
|
<el-select v-model="form.familyInfoDto.elderlyRelation" placeholder="请选择" size="small" |
|
|
|
class="list_item_width_1" clearable> |
|
|
|
<el-option v-for="(item, index) in dicts.houseHolderRelList" :key="index" |
|
|
|
@ -388,7 +388,7 @@ |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col :span="6" v-if="form.familyInfoDto.elderlyFlag == 1"> |
|
|
|
<el-form-item label="赡养人联系电话" label-width="150px"> |
|
|
|
<el-form-item label="赡养人联系电话" label-width="150px" prop="familyInfoDto.dependantMobile"> |
|
|
|
<el-input class="list_item_width_1" v-model="form.familyInfoDto.dependantMobile" |
|
|
|
placeholder="请输入内容" size="small" clearable></el-input> |
|
|
|
</el-form-item> |
|
|
|
@ -404,9 +404,9 @@ |
|
|
|
<el-row style="margin:24px"> |
|
|
|
<el-col :span="24" align="center"> |
|
|
|
<el-button size="small" class="diy-button--white" @click="handlerCancle" plain>取消</el-button> |
|
|
|
<el-button type="primary" size="small" @click="handleClickSubmit">保存</el-button> |
|
|
|
<el-button type="primary" size="small" @click="handleClickSubmit" :loading="btnLoading">保存</el-button> |
|
|
|
<el-button type="primary" size="small" |
|
|
|
@click="handleClickSubmit('house')">提交并补充家庭人员信息</el-button> |
|
|
|
@click="handleClickSubmit('house')" :loading="btnLoading">提交并补充家庭人员信息</el-button> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
</el-form> |
|
|
|
@ -426,7 +426,7 @@ import resiExpand from './resiExpand/editExpand.vue'; |
|
|
|
export default { |
|
|
|
data() { |
|
|
|
return { |
|
|
|
loading: true, |
|
|
|
loading: false, |
|
|
|
|
|
|
|
houseType: true, |
|
|
|
formList: [], |
|
|
|
@ -1056,6 +1056,7 @@ export default { |
|
|
|
}, |
|
|
|
async activated() { |
|
|
|
this.resiId = this.$route.query.id; |
|
|
|
this.loading = true; |
|
|
|
await this.getDicts() |
|
|
|
await this.getOrgTreeList() |
|
|
|
await this.getResiDetail() |
|
|
|
@ -1146,9 +1147,11 @@ export default { |
|
|
|
} |
|
|
|
} |
|
|
|
this.workInfoDtoId=this.form.workInfoDto.id; |
|
|
|
this.loading = false; |
|
|
|
return Promise.all(promises); |
|
|
|
} else if (res.data.code >= 8000) { |
|
|
|
this.$message.error(res.data.msg); |
|
|
|
this.loading = false; |
|
|
|
} |
|
|
|
}) |
|
|
|
.then(() => { |
|
|
|
@ -1156,7 +1159,6 @@ export default { |
|
|
|
.catch((err) => { |
|
|
|
console.log(err); |
|
|
|
}); |
|
|
|
this.loading = false; |
|
|
|
|
|
|
|
}, |
|
|
|
async getDicts() { |
|
|
|
@ -1442,47 +1444,62 @@ export default { |
|
|
|
}); |
|
|
|
}, |
|
|
|
handleClickSubmit(house) { |
|
|
|
this.$refs['editForm'].validate((valid) => { |
|
|
|
if (valid) { |
|
|
|
this.form.resideInfoDtos.forEach(item => { |
|
|
|
delete item.optionsV; |
|
|
|
delete item.optionsB; |
|
|
|
delete item.optionsH; |
|
|
|
delete item.optionsD; |
|
|
|
}); |
|
|
|
delete this.form.integrityData; |
|
|
|
this.submitForm(house); |
|
|
|
} |
|
|
|
}) |
|
|
|
// this.$refs['editForm'].validate((valid) => { |
|
|
|
// if (valid) { |
|
|
|
// this.form.resideInfoDtos.forEach(item => { |
|
|
|
// delete item.optionsV; |
|
|
|
// delete item.optionsB; |
|
|
|
// delete item.optionsH; |
|
|
|
// delete item.optionsD; |
|
|
|
// }); |
|
|
|
// delete this.form.integrityData; |
|
|
|
// this.submitForm(house); |
|
|
|
// } |
|
|
|
// }) |
|
|
|
this.submitForm(house); |
|
|
|
}, |
|
|
|
async submitForm(house) { |
|
|
|
try { |
|
|
|
let url = this.houseType ? '/actual/base/residentBaseInfo/update' : '/actual/base/residentBaseInfo/save'; |
|
|
|
let parm = { |
|
|
|
...this.form |
|
|
|
} |
|
|
|
let { code, data, msg } = await requestPost(url, parm) |
|
|
|
if (code == 0) { |
|
|
|
if (house != 'house') { |
|
|
|
this.$message.success('保存成功'); |
|
|
|
this.$refs['editForm'].resetFields(); |
|
|
|
this.handlerCancle(); |
|
|
|
} else { |
|
|
|
this.$message.success('保存成功'); |
|
|
|
let homeArr = JSON.parse(JSON.stringify(this.form.resideInfoDtos)); |
|
|
|
this.$refs['editForm'].resetFields(); |
|
|
|
this.form.resideInfoDtos = homeArr; |
|
|
|
this.removeIdKey(this.form) |
|
|
|
this.houseType = false |
|
|
|
} |
|
|
|
for (let key in this.form.baseInfoDto.categoryInfo) { |
|
|
|
if (this.form.baseInfoDto.categoryInfo[key] === 1) { |
|
|
|
this.form.baseInfoDto.categoryInfo[key] = 0; |
|
|
|
} |
|
|
|
} |
|
|
|
this.removeIdKey(this.form); |
|
|
|
this.houseType = false; |
|
|
|
this.btnLoading = true; |
|
|
|
|
|
|
|
// try { |
|
|
|
// let url = this.houseType ? '/actual/base/residentBaseInfo/update' : '/actual/base/residentBaseInfo/save'; |
|
|
|
// let parm = { |
|
|
|
// ...this.form |
|
|
|
// } |
|
|
|
// let { code, data, msg } = await requestPost(url, parm) |
|
|
|
// if (code == 0) { |
|
|
|
// if (house != 'house') { |
|
|
|
// this.$message.success('保存成功'); |
|
|
|
// this.$refs['editForm'].resetFields(); |
|
|
|
// this.handlerCancle(); |
|
|
|
// } else { |
|
|
|
// this.$message.success('保存成功'); |
|
|
|
// let homeArr = JSON.parse(JSON.stringify(this.form.resideInfoDtos)); |
|
|
|
// this.$refs['editForm'].resetFields(); |
|
|
|
// this.form.resideInfoDtos = homeArr; |
|
|
|
// this.removeIdKey(this.form) |
|
|
|
// this.houseType = false |
|
|
|
// } |
|
|
|
|
|
|
|
// } else if (code >= 8000) { |
|
|
|
// this.$message.error(msg); |
|
|
|
// } |
|
|
|
// } |
|
|
|
// catch (error) { |
|
|
|
// this.$message.error(msg); |
|
|
|
// } |
|
|
|
this.btnLoading = false; |
|
|
|
|
|
|
|
} else if (code >= 8000) { |
|
|
|
this.$message.error(msg); |
|
|
|
} |
|
|
|
} |
|
|
|
catch (error) { |
|
|
|
this.$message.error(msg); |
|
|
|
} |
|
|
|
}, |
|
|
|
removeIdKey(obj) { |
|
|
|
if (!obj || typeof obj !== 'object') { |
|
|
|
@ -1501,7 +1518,6 @@ export default { |
|
|
|
}, |
|
|
|
|
|
|
|
showDialog({ index, value }, event) { |
|
|
|
console.log(value); |
|
|
|
// 设置 partyFlag |
|
|
|
if (value === 1 || value === 0 || value === 2) { |
|
|
|
this.form.baseInfoDto.categoryInfo.partyFlag = value; |
|
|
|
@ -1545,6 +1561,7 @@ export default { |
|
|
|
}); |
|
|
|
this.$refs['resiExpand'].formType = this.incidence[value].formType; |
|
|
|
this.$refs['resiExpand'].showForm(); |
|
|
|
console.log(this.form,'tianjiawanzujian'); |
|
|
|
}); |
|
|
|
} else { |
|
|
|
this.$refs['resiExpand'].formList = this.$refs['resiExpand'].formList.filter(item => item.formId !== this.incidence[value].formId); |
|
|
|
|