shuishen
2024-01-05 580c397390e50dcc10622af6f6ab9dab615397f2
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"]),