shuishen
2024-01-05 580c397390e50dcc10622af6f6ab9dab615397f2
人口相关字段显示调整
2 files modified
127 ■■■■■ changed files
src/views/userHouse/components/householdManager.vue 65 ●●●●● patch | view | raw | blame | history
src/views/userHouse/houseHoldList.vue 62 ●●●●● patch | view | raw | blame | history
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,9 +629,23 @@
                    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"]),
        permissionList () {
src/views/userHouse/houseHoldList.vue
@@ -312,6 +312,16 @@
                    },
                    {
                        label: "出生日期",
                        prop: "birthday",
                        type: "date",
                        format: "yyyy-MM-dd",
                        valueFormat: "yyyy-MM-dd",
                        hide: true,
                    },
                    {
                        label: "性别",
                        prop: "gender",
                        type: "select",
@@ -351,6 +361,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,
@@ -369,19 +392,6 @@
                        dicUrl: "/api/blade-system/dict-biz/dictionary?code=primaryContactType",
                        dataType: "number",
                        hide: true,
                        props: {
                            label: "dictValue",
                            value: "dictKey",
                        },
                    },
                    {
                        label: "居住情况",
                        prop: "residentialStatus",
                        type: "select",
                        hide: true,
                        dicUrl: "/api/blade-system/dict-biz/dictionary?code=residentialStatusType",
                        dataType: "number",
                        props: {
                            label: "dictValue",
                            value: "dictKey",
@@ -447,14 +457,6 @@
                        display: false
                    },
                    {
                        label: "生日",
                        prop: "birthday",
                        type: "date",
                        format: "yyyy-MM-dd",
                        valueFormat: "yyyy-MM-dd",
                        hide: true,
                    },
                    {
                        hide: true,
@@ -635,6 +637,7 @@
                    },
                    {
                        disabled: true,
                        hide: true,
                        width: 160,
                        label: "疾病名称",
@@ -790,7 +793,6 @@
                    homeAdcodeColumn.disabled = false
                }
            },
            immediate: true
        },
        'form.cardType': {
@@ -813,9 +815,23 @@
                    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"]),
        permissionList () {