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 8d5785e2a..58c9e3acc 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 da30a2dea..eeb1d2e31 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 (
Boolean(task.reason || task.attachments?.length > 0) &&
[BpmNodeTypeEnum.START_USER_NODE, BpmNodeTypeEnum.USER_TASK_NODE].includes(
@@ -429,7 +437,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 22c492802..c4bc05e2e 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 });