From 98c51e155dd453f7f679af8de645e980b9d960a6 Mon Sep 17 00:00:00 2001 From: dai <851733175@qq.com> Date: Mon, 9 May 2022 18:05:24 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../modules/base/huji/chusheng/cpts/edit.vue | 37 ++++++++++++++ .../modules/base/huji/chusheng/index.vue | 48 +++++++++---------- 2 files changed, 61 insertions(+), 24 deletions(-) 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" > Date: Tue, 10 May 2022 09:32:32 +0800 Subject: [PATCH 2/3] 33 --- .../modules/base/huji/chusheng/cpts/edit.vue | 51 ++++++++++++++++--- 1 file changed, 43 insertions(+), 8 deletions(-) diff --git a/src/views/modules/base/huji/chusheng/cpts/edit.vue b/src/views/modules/base/huji/chusheng/cpts/edit.vue index 85fe68b6..9471fecd 100644 --- a/src/views/modules/base/huji/chusheng/cpts/edit.vue +++ b/src/views/modules/base/huji/chusheng/cpts/edit.vue @@ -126,14 +126,22 @@ class="item_width_1" maxlength="50" show-word-limit - style="width: 200px;margin-right:20px;" + style="width: 200px; margin-right: 20px" placeholder="请输入姓名 " v-model="fmData.name" > - 享受福利 - 补充居民信息 + 享受福利 + 补充居民信息 Date: Tue, 10 May 2022 10:34:32 +0800 Subject: [PATCH 3/3] =?UTF-8?q?=E7=BB=A7=E7=BB=AD=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../modules/base/huji/chusheng/cpts/edit.vue | 63 +++++++++---------- .../modules/base/huji/chusheng/index.vue | 13 ++-- 2 files changed, 37 insertions(+), 39 deletions(-) diff --git a/src/views/modules/base/huji/chusheng/cpts/edit.vue b/src/views/modules/base/huji/chusheng/cpts/edit.vue index 9471fecd..96c2ecdc 100644 --- a/src/views/modules/base/huji/chusheng/cpts/edit.vue +++ b/src/views/modules/base/huji/chusheng/cpts/edit.vue @@ -136,7 +136,7 @@ >享受福利 @@ -302,19 +302,19 @@ show-word-limit placeholder="请输入户主姓名" :disabled="fmData.alreadyHaveMaster" - v-model="fmData.houseHolderName" + v-model="fmData.householderName" >