Browse Source

居民编辑单选框回填问题,低保信息字段核对

dlt_manageScope_0428
mk 2 years ago
parent
commit
cbdb1c1909
  1. 15
      src/views/components/editResi.vue
  2. 11
      src/views/components/resiExpand/editExpand.vue
  3. 2
      src/views/modules/portrayal/jumin/index.vue

15
src/views/components/editResi.vue

@ -1043,10 +1043,6 @@ export default {
economyDto: { economyDto: {
monthIncome: null, // monthIncome: null, //
}, },
subsistenceAllowanceDto: {
reasons: null,
category: [],
},
}, },
orgOption:[], orgOption:[],
footerInputList: [ footerInputList: [
@ -1469,7 +1465,7 @@ export default {
{ {
label: "子女死亡日期", label: "子女死亡日期",
itemType: "datepicker1", itemType: "datepicker1",
formName: "certificateDate", formName: "childDeathDate",
pformName: "specialSupportDto", pformName: "specialSupportDto",
opction: [], opction: [],
}, },
@ -1630,7 +1626,6 @@ export default {
this.getOrgTreeList(this.form.resideInfoDtos[i].agencyId,i); this.getOrgTreeList(this.form.resideInfoDtos[i].agencyId,i);
} }
this.form = { ...res.data.data }; this.form = { ...res.data.data };
this.form.baseInfoDto.idNum = this.$route.params.idNum; this.form.baseInfoDto.idNum = this.$route.params.idNum;
this.form.baseInfoDto.mobile = this.$route.params.mobile; this.form.baseInfoDto.mobile = this.$route.params.mobile;
if (!res.data.data.familyInfoDto) { if (!res.data.data.familyInfoDto) {
@ -1664,6 +1659,12 @@ export default {
specialCategoryCodes: [], specialCategoryCodes: [],
}; };
} }
if (!res.data.data.subsistenceAllowanceDto) {
this.form.subsistenceAllowanceDto = {
reasons: [],
category:null ,
};
}
if (!res.data.data.unemployedDto) { if (!res.data.data.unemployedDto) {
this.form.unemployedDto = { this.form.unemployedDto = {
originWorkUnit: null, // originWorkUnit: null, //
@ -1703,7 +1704,7 @@ export default {
formData.partyOrgIdPath || null; formData.partyOrgIdPath || null;
} }
this.footerInputList[i].children[index].value = this.footerInputList[i].children[index].value =
formData[formName] || null; formData[formName] != null?formData[formName]:null
this.footerInputList[i].children[index].id = this.footerInputList[i].children[index].id =
formData.id; formData.id;
} }

11
src/views/components/resiExpand/editExpand.vue

@ -119,6 +119,7 @@ export default {
disabilityDesc: null, disabilityDesc: null,
guardianFlag: null, guardianFlag: null,
guardianName: null, guardianName: null,
guardianMobile:null,
specialSkillFlag: null, specialSkillFlag: null,
workCapacityFlag: null workCapacityFlag: null
}, },
@ -142,8 +143,8 @@ export default {
}, },
// //
subsistenceAllowanceDto: { subsistenceAllowanceDto: {
reasons: null, reasons: [],
category: [] category:null ,
}, },
// 退 // 退
veteranDto: { veteranDto: {
@ -179,7 +180,6 @@ export default {
volunteerDto: { volunteerDto: {
volunteerCategory: [] volunteerCategory: []
}, },
}, },
casProps: { casProps: {
value: 'id', value: 'id',
@ -234,7 +234,6 @@ export default {
}, },
showForm() { showForm() {
this.$nextTick(() => { this.$nextTick(() => {
// console.log(this.formList,'formList');
// console.log(this.form,'form'); // console.log(this.form,'form');
const promises = this.formList.forEach((item) => { const promises = this.formList.forEach((item) => {
item.form.map(async (group) => { item.form.map(async (group) => {
@ -248,8 +247,8 @@ export default {
this.partyOrgIdPath = item.orgPath.split(':')[0] this.partyOrgIdPath = item.orgPath.split(':')[0]
await this.getOrgTree() await this.getOrgTree()
this.form[item.pformName][item.formName] = item.value || null this.form[item.pformName][item.formName] = item.value || null
} else { } else{
this.form[item.pformName][item.formName] = item.value || null this.form[item.pformName][item.formName] = item.value != null?item.value:null;
} }
if (item.opctionUrl) { if (item.opctionUrl) {
try { try {

2
src/views/modules/portrayal/jumin/index.vue

@ -1077,7 +1077,7 @@ export default {
{ {
label: "子女死亡日期", label: "子女死亡日期",
itemType: "datepicker1", itemType: "datepicker1",
formName: "certificateDate", formName: "childDeathDate",
opction: [], opction: [],
}, },
{ {

Loading…
Cancel
Save