From 517a6a4a652dd6d0e10ecf251de2a3a2099afbad Mon Sep 17 00:00:00 2001
From: shuishen <1109946754@qq.com>
Date: Tue, 02 Jan 2024 15:17:27 +0800
Subject: [PATCH] 房屋管理中,住户新增的时候字段完善,整改
---
src/views/userHouse/components/householdManager.vue | 68 +++++++++++++++++++++++++++++++++-
1 files changed, 66 insertions(+), 2 deletions(-)
diff --git a/src/views/userHouse/components/householdManager.vue b/src/views/userHouse/components/householdManager.vue
index abc5947..445615b 100644
--- a/src/views/userHouse/components/householdManager.vue
+++ b/src/views/userHouse/components/householdManager.vue
@@ -289,17 +289,32 @@
prop: "currentAddress",
hide: true,
},
+
+ {
+ label: "居住地行政区划",
+ prop: "homeAdcode",
+ hide: true,
+ type: 'select',
+ props: {
+ label: 'name',
+ value: 'code'
+ },
+ dicUrl: `/api/blade-system/region/select?code=361102`,
+ },
+
{
label: "残疾证",
prop: "disabilityCert",
hide: true,
},
{
+ hide: true,
width: 160,
label: "宗教信仰",
prop: "religiousBelief",
},
{
+ hide: true,
label: "健康状况",
prop: "healthStatus",
type: "select",
@@ -311,10 +326,12 @@
},
},
{
+ hide: true,
width: 160,
label: "疾病名称",
prop: "diseaseName"
},
+
{
label: "户籍类型",
prop: "residentType",
@@ -326,42 +343,67 @@
value: "dictKey",
},
},
+
{
+ hide: true,
+ parent: false,
width: 160,
label: "户籍地行政区划",
- prop: "residentAdcode"
+ prop: "residentAdcode",
+ type: "tree",
+ props: {
+ label: 'name',
+ value: 'id'
+ },
+ dicUrl: `/api/blade-system/region/getBaseTree`,
},
+
{
+ hide: true,
+ parent: false,
width: 160,
label: "籍贯地行政区划",
- prop: "nativePlaceAdcode"
+ prop: "nativePlaceAdcode",
+ type: "tree",
+ props: {
+ label: 'name',
+ value: 'id'
+ },
+ dicUrl: `/api/blade-system/region/getBaseTree`,
},
+
{
+ hide: true,
width: 160,
label: "外出详址",
prop: "goOutAddr"
},
{
+ hide: true,
width: 160,
label: "外出去向",
prop: "goOutWhere"
},
{
+ hide: true,
width: 160,
label: "外出时间",
prop: "goOutTime"
},
{
+ hide: true,
width: 160,
label: "外出原因",
prop: "goOutReason"
},
{
+ hide: true,
width: 160,
label: "职业类别",
prop: "occupation"
},
{
+ hide: true,
width: 160,
label: "就职单位地址",
prop: "cmpyRegAddr"
@@ -421,6 +463,28 @@
}
},
watch: {
+ 'form.source': {
+ handler (newData) {
+ let currentAddressColumn = this.findObject(
+ this.option.column,
+ 'currentAddress'
+ )
+
+ let homeAdcodeColumn = this.findObject(
+ this.option.column,
+ 'homeAdcode'
+ )
+
+ if (newData == 1) {
+ currentAddressColumn.disabled = false
+ homeAdcodeColumn.disabled = false
+ } else {
+ currentAddressColumn.disabled = true
+ homeAdcodeColumn.disabled = true
+ }
+ },
+ immediate: true
+ }
},
computed: {
...mapGetters(["userInfo", "permission"]),
--
Gitblit v1.9.3