diff --git a/src/main/java/io/v/nutz/zgfw/model/condolence/CondolenceType.java b/src/main/java/io/v/nutz/zgfw/model/condolence/CondolenceType.java index 100b731..27704b8 100644 --- a/src/main/java/io/v/nutz/zgfw/model/condolence/CondolenceType.java +++ b/src/main/java/io/v/nutz/zgfw/model/condolence/CondolenceType.java @@ -52,6 +52,11 @@ public class CondolenceType extends BaseModel implements Serializable { @ColDefine(type = ColType.BOOLEAN) private Boolean need_files; + @Column + @Comment("附件说明,供申请人查看材料要求,最多200字") + @ColDefine(type = ColType.VARCHAR, width = 200) + private String files_desc; + @Column @Comment("排序字段") @Prev({ diff --git a/src/main/resources/views/mobile/condolence/apply.html b/src/main/resources/views/mobile/condolence/apply.html index e960513..32a091c 100644 --- a/src/main/resources/views/mobile/condolence/apply.html +++ b/src/main/resources/views/mobile/condolence/apply.html @@ -222,10 +222,10 @@ layout("/mobile/platform.html"){ :min-date="new Date('1999-01-01')" :color="themeColor"> - + :rules="[{ required:true, message: '请填写所在医院' }]"> --> + + + 取 消 @@ -130,6 +135,7 @@ layout("/layouts/platform.html"){ searchName: "name", }, formRules: { + files_desc: [{max: 200, message: '附件说明最多200字', trigger: ['blur', 'change']}], name: [{required: true, message: '必填', trigger: ['blur', 'change']}], money: [{required: true, message: '必填', trigger: ['blur', 'change']}], way: [{required: true, message: '必填', trigger: ['blur', 'change']}], @@ -177,7 +183,7 @@ layout("/layouts/platform.html"){ }); }, openAdd() { - this.formData = {need_files: false} + this.formData = {need_files: false, files_desc: ''} this.dialogVisible = true if (this.$refs['form']) { this.$refs['form'].resetFields() diff --git a/src/main/resources/views/platform/zgfw/condolence/apply.html b/src/main/resources/views/platform/zgfw/condolence/apply.html index 03a3040..5311107 100644 --- a/src/main/resources/views/platform/zgfw/condolence/apply.html +++ b/src/main/resources/views/platform/zgfw/condolence/apply.html @@ -348,6 +348,7 @@ layout("/layouts/platform.html"){ +
{{ attachmentDescription }}
@@ -443,6 +444,13 @@ layout("/layouts/platform.html"){ typeOptions: [], } }, + computed: { + // 按当前类型读取材料说明,无说明时返回空串,避免切换类型后残留旧提示。 + attachmentDescription() { + const selectedType = this.typeOptions.find(item => item.id === this.formData.type) + return selectedType ? (selectedType.files_desc || '') : '' + } + }, watch: { "formData.money"(val) { if (val > this.money) {