Browse Source

修改bug

V1.0
zhaoyongnian 3 years ago
parent
commit
3661f4e384
  1. 32
      src/views/components/resiForm.vue
  2. 3
      src/views/modules/base/resi.vue

32
src/views/components/resiForm.vue

@ -1817,7 +1817,7 @@ export default {
}
},
getFormData(data) {
this.form.categoryId = '111222333',//
this.form.categoryId = data.categoryInfo.id,//
this.form.resiId = data.resiId
this.form.buildId = data.houseInfo.buildId
this.form.gridId = data.houseInfo.gridId
@ -1915,6 +1915,7 @@ export default {
cultureLevel:'',
eduRemark:''
}
this.newForm.eduInfoDto = this.form.eduInfoDto
}
})
},
@ -1924,11 +1925,15 @@ export default {
if (res.code !== 0) {
return this.$message.error(res.msg);
} else {
if (res.data) {
res.data.hobbyCode = res.data.hobbyCode.split(',')
}
this.form.hobbyInfoDto = res.data ? res.data : { //
hobbyCode:[],//
interestDesc:'',//
hobbyRemark:''//
}
this.newForm.hobbyInfoDto = this.form.hobbyInfoDto
}
})
},
@ -1942,6 +1947,8 @@ export default {
religion:'',
religionRemark:''
}
this.newForm.religionDto = this.form.religionDto
}
})
},
@ -1971,6 +1978,7 @@ export default {
deliveranceNum:'',//
healthRemark:''//
}
this.newForm.healthDto = this.form.healthDto
}
})
},
@ -1986,6 +1994,8 @@ export default {
retireTime:'',//退
workRemark:'',//
}
this.newForm.workInfoDto = this.form.workInfoDto
}
})
},
@ -1999,6 +2009,7 @@ export default {
retirementAmount:'',//退
monthIncome:'',//
}
this.newForm.economyDto = this.form.economyDto
}
})
},
@ -2015,6 +2026,7 @@ export default {
householdSituation:'',//code
resiRemark:'',//
}
this.newForm.resideInfoDto = this.form.resideInfoDto
}
})
},
@ -2034,6 +2046,7 @@ export default {
dependantMobile:'',//
familyInfoRemark:'',//
}
this.newForm.familyInfoDto = this.form.familyInfoDto
}
})
},
@ -2056,6 +2069,7 @@ export default {
joinCommunityTime:'',//yyyy-MM-dd
longHolidayFlag:null,//10
}
this.newForm.parymemberInfoDto = this.form.parymemberInfoDto
}
})
},
@ -2072,6 +2086,7 @@ export default {
subsidyNum:'',//
subsidyAmount:'',//
}
this.newForm.ensureHouseDto = this.form.ensureHouseDto
}
})
},
@ -2091,6 +2106,7 @@ export default {
employmentHardFlag:null,//10
employmentWish:'',//
}
this.newForm.unemployedDto = this.form.unemployedDto
}
})
},
@ -2112,6 +2128,7 @@ export default {
joinWarEndTime:'',//yyyy-MM-dd
pubWelfareJobFlag:null,//;10
}
this.newForm.veteranDto = this.form.veteranDto
}
})
},
@ -2125,6 +2142,7 @@ export default {
duty:'',//
visitation:'',//
}
this.newForm.unitedFrontDto = this.form.unitedFrontDto
}
})
},
@ -2134,10 +2152,15 @@ export default {
if (res.code !== 0) {
return this.$message.error(res.msg);
} else {
if (res.data) {
res.data.volunteerCategory = res.data.volunteerCategory.split(',')
}
this.form.volunteerDto = res.data ? res.data : {//
volunteerCategory:[],//
volunteerRemark:''//
}
this.newForm.volunteerDto = this.form.volunteerDto
}
})
},
@ -2150,6 +2173,8 @@ export default {
this.form.oldPeopleDto = res.data ? res.data : {
oldSubsidy:''//
}
this.newForm.oldPeopleDto = this.form.oldPeopleDto
}
})
},
@ -2159,9 +2184,14 @@ export default {
if (res.code !== 0) {
return this.$message.error(res.msg);
} else {
if (res.data) {
res.data.specialCategoryCode = res.data.specialCategoryCode.split(',')
}
this.form.specialDto = res.data ? res.data : {//
specialCategoryCode:[]//,
}
this.newForm.specialDto = this.form.specialDto
}
})
},

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

@ -1190,6 +1190,7 @@ export default {
if (_baseForm.hobbyInfoDto) {
if (_baseForm.hobbyInfoDto.hobbyCode.length === 0) {
hobbyCode = "";
_baseForm.hobbyInfoDto.hobbyCode = hobbyCode
} else {
_baseForm.hobbyInfoDto.hobbyCode.forEach((element,index) => {
hobbyCode = index === 0 ? element : hobbyCode + "," + element
@ -1202,6 +1203,7 @@ export default {
if (_baseForm.volunteerDto) {
if (_baseForm.volunteerDto.volunteerCategory.length === 0) {
volunteerCategory = "";
_baseForm.volunteerDto.volunteerCategory = volunteerCategory
} else {
_baseForm.volunteerDto.volunteerCategory.forEach((element,index) => {
volunteerCategory = index === 0 ? element : volunteerCategory + "," + element
@ -1214,6 +1216,7 @@ export default {
if (_baseForm.specialDto) {
if (_baseForm.specialDto.specialCategoryCode.length === 0) {
specialCategoryCode = "";
_baseForm.specialDto.specialCategoryCode = specialCategoryCode
} else {
_baseForm.specialDto.specialCategoryCode.forEach((element,index) => {
specialCategoryCode = index === 0 ? element : specialCategoryCode + "," + element

Loading…
Cancel
Save