diff --git a/src/views/modules/base/huji/chusheng/cpts/edit.vue b/src/views/modules/base/huji/chusheng/cpts/edit.vue index b48889af..85fe68b6 100644 --- a/src/views/modules/base/huji/chusheng/cpts/edit.vue +++ b/src/views/modules/base/huji/chusheng/cpts/edit.vue @@ -102,6 +102,7 @@ placeholder="房号" size="small" clearable + @change="handleChangeH" style="width: 120px" class="resi-cell-select" > @@ -125,10 +126,14 @@ class="item_width_1" maxlength="50" show-word-limit + style="width: 200px;margin-right:20px;" placeholder="请输入姓名 " v-model="fmData.name" > + + 享受福利 + 补充居民信息 @@ -375,6 +381,7 @@ function iniFmData() { mobile: "", idCard: "", welfare: "", //福利0否,1是 + isResiUser: "", gender: "", birthplace: "", father: "", @@ -383,6 +390,7 @@ function iniFmData() { reportDate: "", houseHolderName: "", houseHolderRelation: "", + alreadyHaveMaster: false, }; } @@ -511,6 +519,10 @@ export default { this.fmData.homeId = ""; this.getHouseList(); }, + handleChangeH(val) { + console.log("val", val); + this.getHouseMaster(); + }, getRelationList() { const { user } = this.$store.state; @@ -620,6 +632,31 @@ export default { }); }, + getHouseMaster() { + const { homeId } = this.fmData; + if (!homeId) return (this.alreadyHaveMaster = false); + + this.$http + .post("/epmetuser/icresiuser/queryhousehold/" + homeId, {}) + .then(({ data: res }) => { + if (res.code !== 0) { + return this.$message.error(res.msg); + } else { + console.log("获取户主信息成功", res.data); + const { name } = res.data; + if (name) { + this.fmData.houseHolderName = name; + this.alreadyHaveMaster = true; + } else { + this.alreadyHaveMaster = false; + } + } + }) + .catch(() => { + return this.$message.error("网络错误"); + }); + }, + handleAddStaff() { this.fmData.organizationPersonnel = [ ...this.fmData.organizationPersonnel, diff --git a/src/views/modules/base/huji/chusheng/index.vue b/src/views/modules/base/huji/chusheng/index.vue index 4055aefc..aa54ff43 100644 --- a/src/views/modules/base/huji/chusheng/index.vue +++ b/src/views/modules/base/huji/chusheng/index.vue @@ -9,15 +9,15 @@ > -
-
所属网格
-
+
+
所属网格
+
-
-
所属房屋
-
+
+
所属房屋
+
@@ -58,7 +58,7 @@ size="small" clearable style="width: 120px" - class="resi-cell-select" + class="resi-cell2-select" :disabled="changeVDisabled" @clear="handleClearBuild" @change="handleChangeB" @@ -78,7 +78,7 @@ size="small" clearable style="width: 120px" - class="resi-cell-select" + class="resi-cell2-select" @click="handleClearDan" @change="handleChangeD" > @@ -97,7 +97,7 @@ size="small" clearable style="width: 120px" - class="resi-cell-select" + class="resi-cell2-select" >