Browse Source

postDto,居民信息新增民族与联系电话必填

feature
mk 3 years ago
parent
commit
af6591b5c4
  1. 100
      src/views/components/resiForm.vue
  2. 49
      src/views/components/resiInfo.vue
  3. 9
      src/views/modules/base/resi.vue
  4. 2
      src/views/modules/communityService/commonDemand/index.vue
  5. 20
      src/views/modules/communityService/fuwuzhaoren/addForm.vue

100
src/views/components/resiForm.vue

@ -262,7 +262,6 @@
size="small" size="small"
:label="itemk.opction.label" :label="itemk.opction.label"
:value="itemk.opction.value" :value="itemk.opction.value"
@change="handleCateSlect"
></el-cascader> ></el-cascader>
</template> </template>
<template v-else-if="itemk.itemType == 'number'"> <template v-else-if="itemk.itemType == 'number'">
@ -326,6 +325,7 @@ export default {
label:"联系电话", label:"联系电话",
itemType:"input", itemType:"input",
formName:"mobile", formName:"mobile",
rules:[{required:true,message:'联系电话不能为空',trigger:'change' | blur },],
opction:[], opction:[],
}, },
{ {
@ -356,6 +356,7 @@ export default {
label:"民族", label:"民族",
itemType:"select", itemType:"select",
formName:"nation", formName:"nation",
rules:[{required:true,message:'民族不能为空',trigger:'change' | blur },],
opction:[], opction:[],
}, },
{ {
@ -392,7 +393,8 @@ export default {
{label:'失智老人',value:'0', formName:"dementedFlag"}, {label:'失智老人',value:'0', formName:"dementedFlag"},
{label:'残疾',value:'0', formName:"disabilityFlag"}, {label:'残疾',value:'0', formName:"disabilityFlag"},
{label:'大病',value:'0', formName:"seriousIllnessFlag"}, {label:'大病',value:'0', formName:"seriousIllnessFlag"},
{label:'慢病',value:'0', formName:"chronicDiseaseFlag"} {label:'慢病',value:'0', formName:"chronicDiseaseFlag"},
{label:'公益岗人员',value:'0', formName:"publicWelfareFlag"}
] ]
} }
], ],
@ -1017,7 +1019,21 @@ export default {
itemType:"datepicker1", itemType:"datepicker1",
formName:"reportDate", formName:"reportDate",
}] }]
} },{
id:'postDto',
children:[ {
label:'入职时间',
itemType:"datepicker1",
formName:"hiredate",
opction:[]
},{
label:'岗位类型',
itemType:"select1",
formName:"jobPost",
opction:[]
},
]
},
], ],
newForm: {}, newForm: {},
form:{ form:{
@ -1056,6 +1072,7 @@ export default {
oldPeopleFlag:'0', // oldPeopleFlag:'0', //
emptyNesterFlag:'0', // emptyNesterFlag:'0', //
liveAloneFlag:'0', // liveAloneFlag:'0', //
publicWelfareFlag:'0',
disabledFlag:'0', // disabledFlag:'0', //
dementedFlag:'0', // dementedFlag:'0', //
disabilityFlag:'0',// disabilityFlag:'0',//
@ -1175,10 +1192,16 @@ export default {
oldPeopleDto:{ oldPeopleDto:{
oldSubsidy:''// oldSubsidy:''//
}, },
specialDto:{// specialDto:{//
id:'',//, id:'',//,
specialCategoryCode:[] specialCategoryCode:[]
}, },
postDto:{
hiredate:'',//
jobPost:'',//
userId:''
},
birthRecordDTO:{ birthRecordDTO:{
birthplace: '', birthplace: '',
father: '', father: '',
@ -1205,7 +1228,7 @@ export default {
{groupId:'economyDto',label:'经济情况'}, {groupId:'economyDto',label:'经济情况'},
{groupId:'resideInfoDto',label:'居住'}, {groupId:'resideInfoDto',label:'居住'},
{groupId:'familyInfoDto',label:'家庭'}, {groupId:'familyInfoDto',label:'家庭'},
{groupId:'birthRecordDTO',label:'出生人员'} {groupId:'birthRecordDTO',label:'出生人员'},
] ]
} }
}, },
@ -1275,6 +1298,7 @@ export default {
this.getHousing() this.getHousing()
this.getVolunteerNation() this.getVolunteerNation()
this.gethobbyNation() this.gethobbyNation()
this.getWelfareNation()
}, },
getGridList () { getGridList () {
const { user } = this.$store.state const { user } = this.$store.state
@ -1401,6 +1425,21 @@ export default {
console.log(error,'获取所患慢病字典'); console.log(error,'获取所患慢病字典');
} }
}, },
async getWelfareNation(){
try {
const { data } = await this.$http.post('sys/dict/data/dictlist', {'dictType':'welfare_post'})
this.footerInputList.forEach(c => {
for(let i of c.children){
if(i.formName == 'jobPost'){
i.opction = data.data
}
}
})
} catch (error) {
console.log(error,'获取公益岗位字典');
}
},
async getHouseholdNation(){ async getHouseholdNation(){
try { try {
const { data } = await this.$http.post('sys/dict/data/dictlist', {'dictType':'household_situation'}) const { data } = await this.$http.post('sys/dict/data/dictlist', {'dictType':'household_situation'})
@ -1548,6 +1587,8 @@ export default {
this.tabsList.push({label:'老年人',id:'6',groupId:'oldPeopleDto'}) this.tabsList.push({label:'老年人',id:'6',groupId:'oldPeopleDto'})
}else if(val.formName == 'specialCrowdFlag') { }else if(val.formName == 'specialCrowdFlag') {
this.tabsList.push({label:'特殊人群',id:'7',groupId:'specialDto'}) this.tabsList.push({label:'特殊人群',id:'7',groupId:'specialDto'})
}else if(val.formName == 'publicWelfareFlag') {
this.tabsList.push({label:'公益岗人员',id:'7',groupId:'postDto'})
} }
} else { } else {
let i = val.formName == 'partyFlag'?'0': let i = val.formName == 'partyFlag'?'0':
@ -1557,7 +1598,8 @@ export default {
val.formName == 'unitedFrontFlag'?'4': val.formName == 'unitedFrontFlag'?'4':
val.formName == 'volunteerFlag'?'5': val.formName == 'volunteerFlag'?'5':
val.formName == 'oldPeopleFlag'?'6': val.formName == 'oldPeopleFlag'?'6':
val.formName == 'specialCrowdFlag'?'7':'' val.formName == 'specialCrowdFlag'?'7':
val.formName == 'publicWelfareFlag'?'8':''
if(i != ''){ if(i != ''){
this.tabsList.forEach(item =>{ this.tabsList.forEach(item =>{
if(i != item.id){ if(i != item.id){
@ -1653,12 +1695,10 @@ export default {
this.getHouseList() this.getHouseList()
}, },
async handleClick (tab, event) { async handleClick (tab, event) {
// console.log(tab); console.log(tab);
// console.log(event); console.log(event);
// console.log(tab._props.label ); console.log(this.form.resiId );
if (tab._props.label == '教育') { if (tab._props.label == '教育') {
if (!this.form.resiId) { if (!this.form.resiId) {
this.newForm.eduInfoDto = this.form.eduInfoDto this.newForm.eduInfoDto = this.form.eduInfoDto
@ -1761,6 +1801,13 @@ export default {
} else { } else {
await this.getOldPeopleDetailById(this.form.resiId) await this.getOldPeopleDetailById(this.form.resiId)
} }
} else if (tab._props.label == '公益岗人员') {
if (!this.form.resiId) {
this.newForm.postDto = this.form.postDto
} else {
//
await this.getWelfareDetailById(this.form.resiId)
}
} }
}, },
handleForm () { handleForm () {
@ -1944,7 +1991,7 @@ export default {
this.form.tenantFlag = data.categoryInfo.tenantFlag.toString() this.form.tenantFlag = data.categoryInfo.tenantFlag.toString()
this.form.floatingFlag = data.categoryInfo.floatingFlag.toString() this.form.floatingFlag = data.categoryInfo.floatingFlag.toString()
this.form.liveAloneFlag = data.categoryInfo.liveAloneFlag.toString() this.form.liveAloneFlag = data.categoryInfo.liveAloneFlag.toString()
this.form.publicWelfareFlag = data.categoryInfo.publicWelfareFlag.toString()
if(this.form.partyFlag == '1') this.tabsList.push({label:'党员',id:'0',groupId:'parymemberInfoDto'}) if(this.form.partyFlag == '1') this.tabsList.push({label:'党员',id:'0',groupId:'parymemberInfoDto'})
if(this.form.ensureHouseFlag == '1') this.tabsList.push({label:'保障房信息',id:'1',groupId:'ensureHouseDto'}) if(this.form.ensureHouseFlag == '1') this.tabsList.push({label:'保障房信息',id:'1',groupId:'ensureHouseDto'})
if(this.form.unemployedFlag == '1') this.tabsList.push({label:'失业',id:'2',groupId:'unemployedDto'}) if(this.form.unemployedFlag == '1') this.tabsList.push({label:'失业',id:'2',groupId:'unemployedDto'})
@ -1953,12 +2000,13 @@ export default {
if(this.form.volunteerFlag == '1') this.tabsList.push({label:'志愿者信息',id:'5',groupId:'volunteerDto'}) if(this.form.volunteerFlag == '1') this.tabsList.push({label:'志愿者信息',id:'5',groupId:'volunteerDto'})
if(this.form.oldPeopleFlag == '1') this.tabsList.push({label:'老年人',id:'6',groupId:'oldPeopleDto'}) if(this.form.oldPeopleFlag == '1') this.tabsList.push({label:'老年人',id:'6',groupId:'oldPeopleDto'})
if(this.form.specialCrowdFlag == '1') this.tabsList.push({label:'特殊人群',id:'7',groupId:'specialDto'}) if(this.form.specialCrowdFlag == '1') this.tabsList.push({label:'特殊人群',id:'7',groupId:'specialDto'})
if(this.form.publicWelfareFlag == '1') this.tabsList.push({label:'公益岗人员',id:'8',groupId:'postDto'})
} }
let {categoryId, resiId, buildId, gridId, gridName, homeId, homeName,houseMergeId,unitId, let {categoryId, resiId, buildId, gridId, gridName, homeId, homeName,houseMergeId,unitId,
villageId,birthday,gender,idNum,localResidenceFlag,mobile,name,nation,remark, villageId,birthday,gender,idNum,localResidenceFlag,mobile,name,nation,remark,
partyFlag,subsistenceAllowanceFlag,ensureHouseFlag,unemployedFlag,fertileWomanFlag,veteranFlag,unitedFrontFlag, partyFlag,subsistenceAllowanceFlag,ensureHouseFlag,unemployedFlag,fertileWomanFlag,veteranFlag,unitedFrontFlag,
petitionOfficerFlag,volunteerFlag,oldPeopleFlag,emptyNesterFlag,bereavedPersonFlag,disabledFlag, petitionOfficerFlag,volunteerFlag,oldPeopleFlag,emptyNesterFlag,bereavedPersonFlag,disabledFlag,
dementedFlag,disabilityFlag,seriousIllnessFlag,chronicDiseaseFlag,specialCrowdFlag,tenantFlag,floatingFlag,liveAloneFlag} = this.form dementedFlag,disabilityFlag,seriousIllnessFlag,chronicDiseaseFlag,specialCrowdFlag,tenantFlag,floatingFlag,liveAloneFlag,publicWelfareFlag} = this.form
this.newForm = { this.newForm = {
categoryId, categoryId,
resiId, resiId,
@ -1999,7 +2047,9 @@ export default {
tenantFlag, tenantFlag,
floatingFlag, floatingFlag,
liveAloneFlag, liveAloneFlag,
publicWelfareFlag
} }
// this.newForm = {...this.form}
}, },
// //
residentEduInfo(id) { residentEduInfo(id) {
@ -2307,6 +2357,23 @@ export default {
this.newForm.oldPeopleDto = this.form.oldPeopleDto this.newForm.oldPeopleDto = this.form.oldPeopleDto
} }
}) })
},
//
getWelfareDetailById(id) {
if(this.newForm.postDto) return
this.$http.post(`/actual/base/publicWelfarePost/detail`,{id:id}).then(({ data: res }) => {
if (res.code !== 0) {
return this.$message.error(res.msg);
} else {
this.form.postDto = res.data ? res.data : {
hiredate:'',//
jobPost:'', //
userId:id
}
this.newForm.postDto = this.form.postDto
}
})
}, },
// //
residentSpecial(id) { residentSpecial(id) {
@ -2368,6 +2435,7 @@ export default {
disabilityFlag:'0',// disabilityFlag:'0',//
seriousIllnessFlag:'0', // seriousIllnessFlag:'0', //
chronicDiseaseFlag:'0', // chronicDiseaseFlag:'0', //
publicWelfareFlag:'0',//
} }
this.newForm.eduInfoDto = this.form.eduInfoDto this.newForm.eduInfoDto = this.form.eduInfoDto
@ -2413,7 +2481,8 @@ export default {
this.newForm.dementedFlag = this.form.dementedFlag, this.newForm.dementedFlag = this.form.dementedFlag,
this.newForm.disabilityFlag = this.form.disabilityFlag, this.newForm.disabilityFlag = this.form.disabilityFlag,
this.newForm.seriousIllnessFlag = this.form.seriousIllnessFlag, this.newForm.seriousIllnessFlag = this.form.seriousIllnessFlag,
this.newForm.chronicDiseaseFlag = this.form.chronicDiseaseFlag this.newForm.chronicDiseaseFlag = this.form.chronicDiseaseFlag,
this.newForm.publicWelfareFlag = this.form.publicWelfareFlag
if(this.newForm.eduInfoDto) { if(this.newForm.eduInfoDto) {
this.newForm.eduInfoDto = this.form.eduInfoDto this.newForm.eduInfoDto = this.form.eduInfoDto
} }
@ -2472,6 +2541,9 @@ export default {
if(this.newForm.specialDto){ if(this.newForm.specialDto){
this.newForm.specialDto = this.form.specialDto this.newForm.specialDto = this.form.specialDto
} }
if(this.newForm.postDto){
this.newForm.postDto = this.form.postDto
}
} }
} }
} }

49
src/views/components/resiInfo.vue

@ -91,6 +91,7 @@
<span class="f-right30 f-w70 f-font-color f-bto16" v-show="resiDetailObj.categoryInfo.unemployedFlag==1">失业人员</span> <span class="f-right30 f-w70 f-font-color f-bto16" v-show="resiDetailObj.categoryInfo.unemployedFlag==1">失业人员</span>
<span class="f-right30 f-w70 f-font-color f-bto16" v-show="resiDetailObj.categoryInfo.veteranFlag==1">退役军人</span> <span class="f-right30 f-w70 f-font-color f-bto16" v-show="resiDetailObj.categoryInfo.veteranFlag==1">退役军人</span>
<span class="f-right30 f-w70 f-font-color f-bto16" v-show="resiDetailObj.categoryInfo.volunteerFlag==1">志愿者</span> <span class="f-right30 f-w70 f-font-color f-bto16" v-show="resiDetailObj.categoryInfo.volunteerFlag==1">志愿者</span>
<span class="f-right30 f-w70 f-font-color f-bto16" v-show="resiDetailObj.categoryInfo.publicWelfareFlag==1">公益岗人员</span>
</section> </section>
<section v-else>--</section> <section v-else>--</section>
@ -860,6 +861,22 @@
</el-col> </el-col>
</el-row> </el-row>
</el-tab-pane> </el-tab-pane>
<el-tab-pane label="公益岗人员" v-if="gygShowStatus">
<el-row>
<el-col :span="8">
<div class="f-flex f-bto16 f-top24">
<div class="f-labels">入职时间:</div>
<span class="f-left8 f-font-color">{{postDto.hiredate?postDto.hiredate:'--'}}</span>
</div>
</el-col>
<el-col :span="8">
<div class="f-flex f-bto16 f-top24">
<div class="f-labels">岗位类型:</div>
<span class="f-left8 f-font-color">{{postDto.jobPost?postDto.jobPost:'--'}}</span>
</div>
</el-col>
</el-row>
</el-tab-pane>
</el-tabs> </el-tabs>
</div> </div>
@ -908,6 +925,7 @@ export default {
residentResideInfoObj:{},// residentResideInfoObj:{},//
residentFamilyInfoObj:{},// residentFamilyInfoObj:{},//
residentDeathRecordObj:{},// residentDeathRecordObj:{},//
postDto:{},//
resiEconomyObj:{}, resiEconomyObj:{},
residentMoveOutRecordObj:{},// residentMoveOutRecordObj:{},//
// 线 // 线
@ -992,7 +1010,7 @@ export default {
for (let key in this.resiDetailObj.categoryInfo) { for (let key in this.resiDetailObj.categoryInfo) {
if(this.resiDetailObj.categoryInfo[key] == 0){ if(this.resiDetailObj.categoryInfo[key] == 0){
num++ num++
if(num >= 21){ if(num >= 22){
flag = false flag = false
}else { }else {
flag = true flag = true
@ -1268,6 +1286,19 @@ export default {
} }
return flag return flag
}, },
gygShowStatus(){
let flag = false
if(this.resiDetailObj.categoryInfo){
if(this.resiDetailObj.categoryInfo.publicWelfareFlag==1){
flag = true
}else{
flag = false
}
}else{
flag = false
}
return flag
},
}, },
watch: { watch: {
@ -1362,6 +1393,8 @@ export default {
this.getResidentMoveOutRecord() this.getResidentMoveOutRecord()
}else if (tab._props.label == "更新记录"){ }else if (tab._props.label == "更新记录"){
this.getChangeRecordDetailById() this.getChangeRecordDetailById()
}else if (tab._props.label == "公益岗人员"){
this.getChangepostDtoById()
} }
}, },
async getEduInfoDtoObj(){ async getEduInfoDtoObj(){
@ -1380,7 +1413,7 @@ export default {
try { try {
const {data} = await this.$http.post(`/actual/base/residentChangeRecord/getChangeRecordDetailById/${this.resiId}`) const {data} = await this.$http.post(`/actual/base/residentChangeRecord/getChangeRecordDetailById/${this.resiId}`)
if(data.data == null){ if(data.data == null){
this.eduInfoDto = [] this.eduInfoDto = {}
}else{ }else{
this.tableData = data.data this.tableData = data.data
} }
@ -1388,6 +1421,18 @@ export default {
console.log(error); console.log(error);
} }
}, },
async getChangepostDtoById(){
try {
const {data} = await this.$http.post(`/actual/base/publicWelfarePost/detail`,{id:this.resiId})
if(data.data == null){
this.postDto = {}
}else{
this.postDto = data.data
}
} catch (error) {
console.log(error);
}
},
// //
async getResidentHobbyInfoObj(){ async getResidentHobbyInfoObj(){
try { try {

9
src/views/modules/base/resi.vue

@ -1400,9 +1400,12 @@ export default {
(_baseForm.fertileWomanFlag = parseInt(_baseForm.fertileWomanFlag)), // (_baseForm.fertileWomanFlag = parseInt(_baseForm.fertileWomanFlag)), //
(_baseForm.veteranFlag = parseInt(_baseForm.veteranFlag)); //退 (_baseForm.veteranFlag = parseInt(_baseForm.veteranFlag)); //退
_baseForm.unitedFrontFlag = parseInt(_baseForm.unitedFrontFlag); // _baseForm.unitedFrontFlag = parseInt(_baseForm.unitedFrontFlag); //
_baseForm.petitionOfficerFlag = parseInt( //
_baseForm.petitionOfficerFlag _baseForm.publicWelfareFlag = parseInt(
); //访 _baseForm.publicWelfareFlag
);
//访
_baseForm.unemployedFlag = parseInt(_baseForm.unemployedFlag); //
_baseForm.volunteerFlag = parseInt(_baseForm.volunteerFlag); // _baseForm.volunteerFlag = parseInt(_baseForm.volunteerFlag); //
_baseForm.bereavedPersonFlag = parseInt( _baseForm.bereavedPersonFlag = parseInt(
_baseForm.bereavedPersonFlag _baseForm.bereavedPersonFlag

2
src/views/modules/communityService/commonDemand/index.vue

@ -213,7 +213,7 @@
</el-table-column> </el-table-column>
<el-table-column prop="serviceTimeCreate" <el-table-column prop="createdTime"
align="center" align="center"
min-width="150" min-width="150"
label="服务发起时间" label="服务发起时间"

20
src/views/modules/communityService/fuwuzhaoren/addForm.vue

@ -400,26 +400,6 @@ export default {
}, },
data() { data() {
// let endDisabledDate = (time) => {
// //datareturn
// let nowData = Date.now();
// if (this.formData.serviceTimeStart) {
// let serviceTimeStart = new Date(this.formData.serviceTimeStart);
// return (
// time.getTime() > nowData ||
// time.getTime() < serviceTimeStart ||
// time.getTime() === serviceTimeStart
// );
// } else {
// return time.getTime() > nowData;
// }
// };
// let startDisabledDate = (time) => {
// //datareturn
// let nowData = Date.now();
// return time.getTime() > nowData;
// };
let endDisabledDate = (time) => { let endDisabledDate = (time) => {
//datareturn //datareturn
let nowData = Date.now(); let nowData = Date.now();

Loading…
Cancel
Save