From a1ab43c9d869aa23a9240c1b7a4557631b48ece0 Mon Sep 17 00:00:00 2001 From: jason <2667446@qq.com> Date: Sun, 28 Jun 2026 08:48:25 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20[bpm]=20=E7=AC=AC=E4=B8=80=E4=B8=AA?= =?UTF-8?q?=E5=8F=91=E8=B5=B7=E4=BA=BA=E8=8A=82=E7=82=B9=E4=B8=8D=E6=98=BE?= =?UTF-8?q?=E7=A4=BA=E5=AE=A1=E6=89=B9=E6=84=8F=E8=A7=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../bpm/processInstance/detail/modules/time-line.vue | 12 ++++++++++-- .../bpm/processInstance/detail/modules/time-line.vue | 12 ++++++++++-- .../bpm/processInstance/detail/modules/time-line.vue | 12 ++++++++++-- 3 files changed, 30 insertions(+), 6 deletions(-) diff --git a/apps/web-antd/src/views/bpm/processInstance/detail/modules/time-line.vue b/apps/web-antd/src/views/bpm/processInstance/detail/modules/time-line.vue index 79af5d178..672525ef5 100644 --- a/apps/web-antd/src/views/bpm/processInstance/detail/modules/time-line.vue +++ b/apps/web-antd/src/views/bpm/processInstance/detail/modules/time-line.vue @@ -197,7 +197,15 @@ function shouldShowCustomUserSelect( } /** 判断是否需要显示审批意见和附件 */ -function shouldShowReasonAndAttachment(task: any, nodeType: BpmNodeTypeEnum) { +function shouldShowReasonAndAttachment( + task: any, + nodeType: BpmNodeTypeEnum, + nodeIndex: number, +) { + // 第一个发起人节点是系统自动通过的,不展示审批意见; + if (nodeType === BpmNodeTypeEnum.START_USER_NODE && nodeIndex === 0) { + return false; + } return ( Boolean(task.reason || task.attachments?.length > 0) && [BpmNodeTypeEnum.START_USER_NODE, BpmNodeTypeEnum.USER_TASK_NODE].includes( @@ -422,7 +430,7 @@ defineExpose({ setCustomApproveUsers, batchSetCustomApproveUsers });
审批意见:{{ task.reason }}
diff --git a/apps/web-antdv-next/src/views/bpm/processInstance/detail/modules/time-line.vue b/apps/web-antdv-next/src/views/bpm/processInstance/detail/modules/time-line.vue index e33f24f54..3496971ee 100644 --- a/apps/web-antdv-next/src/views/bpm/processInstance/detail/modules/time-line.vue +++ b/apps/web-antdv-next/src/views/bpm/processInstance/detail/modules/time-line.vue @@ -204,7 +204,15 @@ function shouldShowCustomUserSelect( } /** 判断是否需要显示审批意见和附件 */ -function shouldShowReasonAndAttachment(task: any, nodeType: BpmNodeTypeEnum) { +function shouldShowReasonAndAttachment( + task: any, + nodeType: BpmNodeTypeEnum, + nodeIndex: number, +) { + // 第一个发起人节点是系统自动通过的,不展示审批意见; + if (nodeType === BpmNodeTypeEnum.START_USER_NODE && nodeIndex === 0) { + return false; + } return ( (task.reason || task.attachments?.length > 0) && [BpmNodeTypeEnum.START_USER_NODE, BpmNodeTypeEnum.USER_TASK_NODE].includes( @@ -423,7 +431,7 @@ defineExpose({ setCustomApproveUsers, batchSetCustomApproveUsers });
审批意见:{{ task.reason }}
diff --git a/apps/web-ele/src/views/bpm/processInstance/detail/modules/time-line.vue b/apps/web-ele/src/views/bpm/processInstance/detail/modules/time-line.vue index e53c62629..da0ee6d81 100644 --- a/apps/web-ele/src/views/bpm/processInstance/detail/modules/time-line.vue +++ b/apps/web-ele/src/views/bpm/processInstance/detail/modules/time-line.vue @@ -204,7 +204,15 @@ function shouldShowCustomUserSelect( } /** 判断是否需要显示审批意见和附件 */ -function shouldShowReasonAndAttachment(task: any, nodeType: BpmNodeTypeEnum) { +function shouldShowReasonAndAttachment( + task: any, + nodeType: BpmNodeTypeEnum, + nodeIndex: number, +) { + // 第一个发起人节点是系统自动通过的,不展示审批意见; + if (nodeType === BpmNodeTypeEnum.START_USER_NODE && nodeIndex === 0) { + return false; + } return ( Boolean(task.reason || task.attachments?.length > 0) && [BpmNodeTypeEnum.START_USER_NODE, BpmNodeTypeEnum.USER_TASK_NODE].includes( @@ -427,7 +435,7 @@ defineExpose({ setCustomApproveUsers, batchSetCustomApproveUsers });
审批意见:{{ task.reason }}