From 580c397390e50dcc10622af6f6ab9dab615397f2 Mon Sep 17 00:00:00 2001
From: shuishen <1109946754@qq.com>
Date: Fri, 05 Jan 2024 15:42:25 +0800
Subject: [PATCH] 人口相关字段显示调整
---
src/views/userHouse/components/householdManager.vue | 67 ++++++++++++++++++++-------------
1 files changed, 41 insertions(+), 26 deletions(-)
diff --git a/src/views/userHouse/components/householdManager.vue b/src/views/userHouse/components/householdManager.vue
index c10ad49..d2e1978 100644
--- a/src/views/userHouse/components/householdManager.vue
+++ b/src/views/userHouse/components/householdManager.vue
@@ -215,6 +215,17 @@
prop: "cardNo",
},
+
+ {
+ label: "出生日期",
+ prop: "birthday",
+ type: "date",
+ format: "yyyy-MM-dd",
+ valueFormat: "yyyy-MM-dd",
+ hide: true,
+ },
+
+
{
label: "性别",
prop: "gender",
@@ -256,6 +267,19 @@
},
{
+ label: "居住情况",
+ prop: "residentialStatus",
+ type: "select",
+ hide: true,
+ dicUrl: "/api/blade-system/dict-biz/dictionary?code=residentialStatusType",
+ dataType: "number",
+ props: {
+ label: "dictValue",
+ value: "dictKey",
+ },
+ },
+
+ {
label: "其他联系方式",
prop: "otherContact",
hide: true,
@@ -280,20 +304,6 @@
},
},
-
- {
- label: "居住情况",
- prop: "residentialStatus",
- type: "select",
- hide: true,
- dicUrl: "/api/blade-system/dict-biz/dictionary?code=residentialStatusType",
- dataType: "number",
- props: {
- label: "dictValue",
- value: "dictKey",
- },
- },
-
{
width: 142,
label: "小区",
@@ -305,15 +315,6 @@
label: "地址",
prop: "address",
display: false
- },
-
- {
- label: "生日",
- prop: "birthday",
- type: "date",
- format: "yyyy-MM-dd",
- valueFormat: "yyyy-MM-dd",
- hide: true,
},
{
@@ -488,6 +489,7 @@
},
{
+ disabled: true,
hide: true,
width: 160,
label: "疾病名称",
@@ -605,7 +607,6 @@
homeAdcodeColumn.disabled = false
}
},
- immediate: true
},
'form.cardType': {
@@ -628,8 +629,22 @@
cardNoColumn.display = true
}
},
- immediate: true
- }
+ },
+
+ 'form.healthStatus': {
+ handler (newData) {
+ let diseaseNameColumn = this.findObject(
+ this.option.column,
+ 'diseaseName'
+ )
+
+ if (newData == 3) {
+ diseaseNameColumn.disabled = false
+ } else {
+ diseaseNameColumn.disabled = true
+ }
+ },
+ },
},
computed: {
...mapGetters(["userInfo", "permission"]),
--
Gitblit v1.9.3