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

Loading…
Cancel
Save