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); + }); }, // 审批成功:刷新待办列表,停留在本页(不跳转请假列表等业务页)