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 });