From 59fd83ba249c9a739ca784ba268c204130d7a97b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B0=8C=E5=85=88=E8=88=9C?= <2499071264@qq.com> Date: Thu, 29 Oct 2026 17:20:58 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E8=81=8C=E5=B7=A5=E6=85=B0=E9=97=AE=20?= =?UTF-8?q?=E6=95=B4=E6=94=B9=203?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/plugins/sysUpload/h5Index.vue | 12 ++++++++-- .../staffbenefit/condolence/apply/index.html | 23 +++++++++++-------- .../staffbenefit/condolence/type/basicForm.js | 12 +++++----- .../staffbenefit/condolence/apply/index.html | 18 ++++++++++----- .../condolence/branchUnionApproval/index.html | 2 +- .../condolence/fourthApproval/index.html | 19 ++++++++++++++- .../schoolPrincipalApproval/index.html | 2 +- .../condolence/schoolUnionApproval/index.html | 2 +- .../views/platform/zhghh5/sys/home/todo.js | 6 +++-- 9 files changed, 67 insertions(+), 29 deletions(-) diff --git a/src/main/resources/static/components/plugins/sysUpload/h5Index.vue b/src/main/resources/static/components/plugins/sysUpload/h5Index.vue index 6eb5dff..35bd0f8 100644 --- a/src/main/resources/static/components/plugins/sysUpload/h5Index.vue +++ b/src/main/resources/static/components/plugins/sysUpload/h5Index.vue @@ -9,6 +9,7 @@ progress :accept="accept" :max-count="upload_number" + :upload-text="upload_text" title="" description="" tip="" @@ -50,6 +51,11 @@ module.exports = { default: 1, required: false }, + upload_text: { + type: String, + default: "", + required: false + }, // 上传返回id或url upload_result_type: { type: String, @@ -101,6 +107,7 @@ module.exports = { this.fileList = val.map((v) => { return { ...v, + file: v.file || { name: v.name }, status: null, isImage: ["jpg", "jpeg", "png", "gif", "bmp", "webp"].includes(v.name.split(".").pop().toLowerCase()) } @@ -118,6 +125,7 @@ module.exports = { this.fileList = val.map((v) => { return { ...v, + file: v.file || { name: v.name }, url: v.url ? v.url : v.response?.data, isImage: ["jpg", "jpeg", "png", "gif", "bmp", "webp"].includes(v.name.split(".").pop().toLowerCase()), status: null @@ -171,8 +179,8 @@ module.exports = { f.url = resp.data f.response = resp f.percentage = 100 - f.isImage = true - delete f.file + f.isImage = ["jpg", "jpeg", "png", "gif", "bmp", "webp"].includes(f.name.split(".").pop().toLowerCase()) + f.file = { name: f.name } delete f.content } else { f.status = "fail" diff --git a/src/main/resources/views/platform/zhgh/staffbenefit/condolence/apply/index.html b/src/main/resources/views/platform/zhgh/staffbenefit/condolence/apply/index.html index 581a025..eb16e54 100644 --- a/src/main/resources/views/platform/zhgh/staffbenefit/condolence/apply/index.html +++ b/src/main/resources/views/platform/zhgh/staffbenefit/condolence/apply/index.html @@ -55,7 +55,7 @@ layout("/layouts/platform.html"){ --> - + - + - - + - + + + + type="textarea" :rows="3" resize="none"> @@ -250,8 +252,11 @@ layout("/layouts/platform.html"){ files: [{ required: true, message: "必填", trigger: ["change", "blur"] }], signature: [{ required: true, message: "必填", trigger: ["change", "blur"] }], handlerUserId: [{ required: true, message: "必填", trigger: ["change", "blur"] }], - certifierUserId: [{ required: true, message: "必填", trigger: ["change", "blur"] }], - bankCardNumber: [{ required: true, message: "必填", trigger: ["change", "blur"] }], + // certifierUserId: [{ required: true, message: "必填", trigger: ["change", "blur"] }], + bankCardNumber: [ + { required: true, message: "请填写银行卡号或对公账户号", trigger: ["change", "blur"] }, + { pattern: /^[0-9]{6,30}$/, message: "收款账户须为6至30位数字(银行卡号或对公账户号)", trigger: ["change", "blur"] } + ], bankUserName: [{ required: true, message: "必填", trigger: ["change", "blur"] }], bankOfDeposit: [{ required: true, message: "必填", trigger: ["change", "blur"] }], thisYearHospitalizationNum: [{ required: true, message: "必填", trigger: ["change", "blur"] }], diff --git a/src/main/resources/views/platform/zhgh/staffbenefit/condolence/type/basicForm.js b/src/main/resources/views/platform/zhgh/staffbenefit/condolence/type/basicForm.js index ae1fe12..dad3941 100644 --- a/src/main/resources/views/platform/zhgh/staffbenefit/condolence/type/basicForm.js +++ b/src/main/resources/views/platform/zhgh/staffbenefit/condolence/type/basicForm.js @@ -37,12 +37,12 @@ const basicForm = { 不上传 --> - - - - - - + + + 是 + 否 + + diff --git a/src/main/resources/views/platform/zhghh5/staffbenefit/condolence/apply/index.html b/src/main/resources/views/platform/zhghh5/staffbenefit/condolence/apply/index.html index 0ff1bb7..3f5bc89 100644 --- a/src/main/resources/views/platform/zhghh5/staffbenefit/condolence/apply/index.html +++ b/src/main/resources/views/platform/zhghh5/staffbenefit/condolence/apply/index.html @@ -255,7 +255,7 @@ layout("/layouts/platform_h5.html"){ --> - - + --> - + diff --git a/src/main/resources/views/platform/zhghh5/staffbenefit/condolence/branchUnionApproval/index.html b/src/main/resources/views/platform/zhghh5/staffbenefit/condolence/branchUnionApproval/index.html index a67bfe1..9738198 100644 --- a/src/main/resources/views/platform/zhghh5/staffbenefit/condolence/branchUnionApproval/index.html +++ b/src/main/resources/views/platform/zhghh5/staffbenefit/condolence/branchUnionApproval/index.html @@ -151,7 +151,7 @@ layout("/layouts/platform_h5.html"){

审批签字*

- + diff --git a/src/main/resources/views/platform/zhghh5/staffbenefit/condolence/fourthApproval/index.html b/src/main/resources/views/platform/zhghh5/staffbenefit/condolence/fourthApproval/index.html index ff8936f..67d527e 100644 --- a/src/main/resources/views/platform/zhghh5/staffbenefit/condolence/fourthApproval/index.html +++ b/src/main/resources/views/platform/zhghh5/staffbenefit/condolence/fourthApproval/index.html @@ -151,7 +151,7 @@ layout("/layouts/platform_h5.html"){

审批签字*

- + @@ -223,6 +223,23 @@ layout("/layouts/platform_h5.html"){ }, onReady() { this.queryCondolenceType() + this.openTodoTask() + }, + openTodoTask() { + const taskId = GetQueryString("taskId") + const bizId = GetQueryString("bizId") + if (!taskId || !bizId) return + this.$axios.post("/flow/common/taskInfo", {taskId}).then((res) => { + if (res.code !== 0 || !res.data) return + const task = res.data + if (task.taskName !== "cbd41337-3c87-4959-9027-809df5c7ef5e") return + const row = {id: bizId, taskId: task.id, curTaskName: task.displayName} + if (task.taskState === 10 && task.executable && GetQueryString("tab") === "todo") { + this.onApproval(row) + } else { + this.onView(row) + } + }) }, onView(row) { this.$set(this, "showApprovalForm", false) diff --git a/src/main/resources/views/platform/zhghh5/staffbenefit/condolence/schoolPrincipalApproval/index.html b/src/main/resources/views/platform/zhghh5/staffbenefit/condolence/schoolPrincipalApproval/index.html index f3c69b7..f6b95d5 100644 --- a/src/main/resources/views/platform/zhghh5/staffbenefit/condolence/schoolPrincipalApproval/index.html +++ b/src/main/resources/views/platform/zhghh5/staffbenefit/condolence/schoolPrincipalApproval/index.html @@ -151,7 +151,7 @@ layout("/layouts/platform_h5.html"){

审批签字*

- + diff --git a/src/main/resources/views/platform/zhghh5/staffbenefit/condolence/schoolUnionApproval/index.html b/src/main/resources/views/platform/zhghh5/staffbenefit/condolence/schoolUnionApproval/index.html index 3a9b9e6..4995cdb 100644 --- a/src/main/resources/views/platform/zhghh5/staffbenefit/condolence/schoolUnionApproval/index.html +++ b/src/main/resources/views/platform/zhghh5/staffbenefit/condolence/schoolUnionApproval/index.html @@ -151,7 +151,7 @@ layout("/layouts/platform_h5.html"){

审批签字*

- + diff --git a/src/main/resources/views/platform/zhghh5/sys/home/todo.js b/src/main/resources/views/platform/zhghh5/sys/home/todo.js index 8a67734..3fa5aae 100644 --- a/src/main/resources/views/platform/zhghh5/sys/home/todo.js +++ b/src/main/resources/views/platform/zhghh5/sys/home/todo.js @@ -281,11 +281,13 @@ const todo = { // 处理任务 onView(task) { const {taskId, taskKey, instanceId, businessNo, formKey, h5FormKey} = task; - if (!h5FormKey) { + const mobileFormKey = h5FormKey || (taskKey === "cbd41337-3c87-4959-9027-809df5c7ef5e" + ? "/platform/condolence/fourthApproval/h5" : ""); + if (!mobileFormKey) { this.$toast("当前流程暂不支持手机端审核,请前往PC端页面审核!"); return; } - this.$pjaxReplace(h5FormKey + "?taskId=" + taskId + "&bizId=" + businessNo + "&taskKey=" + taskKey + "&tab=" + this.activeTab) + this.$pjaxReplace(mobileFormKey + "?taskId=" + taskId + "&bizId=" + businessNo + "&taskKey=" + taskKey + "&tab=" + this.activeTab) }, // 根据当前列表类型统一展示流程状态,发起列表保留流程实例的实际状态。