diff --git a/src/views/components/resiExpand/editExpand.vue b/src/views/components/resiExpand/editExpand.vue index a9e705273..16f4d5ab4 100644 --- a/src/views/components/resiExpand/editExpand.vue +++ b/src/views/components/resiExpand/editExpand.vue @@ -19,7 +19,7 @@ @@ -211,11 +211,56 @@ export default { }, methods: { handleFormChange(pid,id,type){ + console.log(pid,id,type,'拓展组件'); + console.log(this.formList); this.changPid = pid; this.changId = id; this.changType = type; nextTick(1000) this.$emit('submitExpand', this.form,{changId:this.changId,changPid:this.changPid,changType:this.changType}) + // let index = this.formList.findIndex(item=>item.formId === "oldPeopleDto") + if (pid === 'oldPeopleDto' && id === 'oldPeopleCategories') { + this.formList.forEach((item,index) => { + item.form[0].children.forEach(async (itemC,indexC) => { + if (itemC.formName === "oldPeopleCategories") { + await nextTick(500) + if (itemC.value.findIndex(itemK => itemK === "liveAloneFlag") != -1) { + itemC.opction.forEach(itemJ => { + if (itemJ.value === "emptyNesterFlag") { + itemJ.disabled = true; + this.form[pid].resideSituation = 'duju' + item.form[0].children[1].disabled = true; + this.$forceUpdate() + } else { + itemJ.disabled = false; + this.$forceUpdate() + } + }) + } else if (itemC.value.findIndex(itemK => itemK === "emptyNesterFlag") != -1) { + itemC.opction.forEach(itemJ => { + if (itemJ.value === "liveAloneFlag") { + itemJ.disabled = true; + this.form[pid].resideSituation = 'kongchao' + item.form[0].children[1].disabled = true; + this.$forceUpdate() + + } else { + itemJ.disabled = false; + this.$forceUpdate() + } + }) + } else { + this.form[pid].resideSituation = 'duju' + item.form[0].children[1].disabled = false; + itemC.opction.forEach(itemJ => { + itemJ.disabled = false; + }) + this.$forceUpdate() + } + } + }) + }) + } }, checkNumberInput(itemj, itemk) { if (this.form[itemj][itemk]) { diff --git a/src/views/components/resiExpand/index.vue b/src/views/components/resiExpand/index.vue index 0b401c6d7..4e0cb5b38 100644 --- a/src/views/components/resiExpand/index.vue +++ b/src/views/components/resiExpand/index.vue @@ -17,9 +17,9 @@ + class="list_item_width_1" @change="handelChangeSelsect(itemj.id,itemk.formName)" :disabled="itemk.disabled"> + :value="items.value" > @@ -43,10 +43,10 @@