From 76ee17b50caa7733d2066ea57775bd4d601370b9 Mon Sep 17 00:00:00 2001 From: = <=> Date: Mon, 30 Mar 2026 10:58:05 +0800 Subject: [PATCH] commit --- .../member/apply/submit/index.html | 26 ++++++++++++++++--- 1 file changed, 23 insertions(+), 3 deletions(-) diff --git a/src/main/resources/views/platform/zhghh5/staffmanage/member/apply/submit/index.html b/src/main/resources/views/platform/zhghh5/staffmanage/member/apply/submit/index.html index d439a1f..e1a083b 100644 --- a/src/main/resources/views/platform/zhghh5/staffmanage/member/apply/submit/index.html +++ b/src/main/resources/views/platform/zhghh5/staffmanage/member/apply/submit/index.html @@ -316,9 +316,9 @@ layout("/layouts/platform_h5.html"){
- 保存 - 提交 - 提交 + 保存 + 提交 + 提交
@@ -331,6 +331,8 @@ layout("/layouts/platform_h5.html"){ return { id: GetQueryString("bizId"), taskId: GetQueryString("taskId"), + canApply: true, + applyDisableMsg: '', formData: { families: [] }, @@ -353,7 +355,23 @@ layout("/layouts/platform_h5.html"){ }, methods: { historyBack, + checkApplyPermission() { + if (this.id || this.taskId) { + this.canApply = true; + this.applyDisableMsg = ''; + return; + } + this.$axios.post("/platform/member/apply/submit/findOne", { id: this.formData.userId }).then(res => { + if (res.code === 0 && res.data) { + this.canApply = res.data.canApply; + this.applyDisableMsg = res.data.msg || ''; + if (!this.canApply) { + this.$message.warning(this.applyDisableMsg); + } + } + }); + }, onSave() { this.$dialog.confirm({ title: "提示", @@ -548,6 +566,8 @@ layout("/layouts/platform_h5.html"){ this.$set(this.formData, "personalData", personalData) this.$set(this.formData, "arrivalAtSchoolDate", this.$moment(arrivalAtSchoolDate).format("YYYY-MM-DD")) + this.checkApplyPermission(); + // 处理校区信息 if (campus) { this.$set(this.formData, "campus", campus) // 保存校区代码值