From de223a1f5afa82951548193c67448434e3050e7a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Cwuzhen=E2=80=9D?= Date: Tue, 20 Oct 2026 20:20:36 +0800 Subject: [PATCH] =?UTF-8?q?fix(mobile):=20=E4=BF=AE=E5=A4=8D=E5=BE=85?= =?UTF-8?q?=E5=8A=9E=E5=88=97=E8=A1=A8=E5=8A=9E=E7=90=86/=E5=AE=A1?= =?UTF-8?q?=E6=89=B9=E6=8C=89=E9=92=AE=E7=82=B9=E5=87=BB=E6=97=A0=E5=93=8D?= =?UTF-8?q?=E5=BA=94?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit u-button 的 click 不带事件对象,去掉 @click.stop,避免 stopPropagation 报错导致按钮失效。 Co-authored-by: Cursor --- .../src/components/Process/submitVerify.vue | 5 +++-- mobile/src/pages/task/taskWaiting.vue | 20 +++++++++++-------- 2 files changed, 15 insertions(+), 10 deletions(-) diff --git a/mobile/src/components/Process/submitVerify.vue b/mobile/src/components/Process/submitVerify.vue index d71a4f72..9910f17b 100644 --- a/mobile/src/components/Process/submitVerify.vue +++ b/mobile/src/components/Process/submitVerify.vue @@ -6,6 +6,7 @@ width="100%" height="90%" border-radius="12" + :z-index="20090" @close="cancel" :custom-style="{ width: '90vw', maxHeight: '90vh', overflow: 'auto' }" > @@ -517,9 +518,9 @@ export default { }); if (response.code === 200) { - this.task = response.data; + this.task = response.data || {}; this.buttonObj = {}; - this.task.buttonList.forEach((e) => { + (this.task.buttonList || []).forEach((e) => { this.buttonObj[e.code] = e.show; }); this.buttonDisabled = false; diff --git a/mobile/src/pages/task/taskWaiting.vue b/mobile/src/pages/task/taskWaiting.vue index e8b6faa9..2c007f23 100644 --- a/mobile/src/pages/task/taskWaiting.vue +++ b/mobile/src/pages/task/taskWaiting.vue @@ -126,10 +126,11 @@ + { + const verifyRef = this.$refs.submitVerifyRef; + if (!verifyRef || typeof verifyRef.openDialog !== 'function') { + uni.showToast({ title: '审批组件未就绪', icon: 'none' }); + return; + } + verifyRef.openDialog(taskId); + }); }, // 审批成功:刷新待办列表,停留在本页(不跳转请假列表等业务页)