diff --git a/frontend/src/components/TaskTree/TaskFlowView.tsx b/frontend/src/components/TaskTree/TaskFlowView.tsx index 2c69ad8..5bf2639 100644 --- a/frontend/src/components/TaskTree/TaskFlowView.tsx +++ b/frontend/src/components/TaskTree/TaskFlowView.tsx @@ -146,6 +146,13 @@ const SlimCard = memo(function SlimCard({ ⏰ {fmtTime(task.created_at)} {task.completed_at ? ` → ${fmtTime(task.completed_at)}` : " → 至今"}
+ {/* 驳回/返工原因:原 REJECTED 取 reject_reason;返工节点取含“驳回/返工”的备注 */} + {(() => { + const rj = task.reject_reason; + const rm = task.remark; + const txt = rj ? `❌ 驳回: ${rj}` : (rm && /驳回|返工/.test(rm) ? rm : null); + return txt ?{txt}
: null; + })()} {legacy &&源自: {assigneeName || (findParent(task)?.assignee_id) || "历史任务"}
} {isNestedSpawn &&协助: {findParent(task)?.assignee_id || "—"}
} {/* 操作按钮 */} diff --git a/track-uniapp/src/pages/scan/components/FlowCard.vue b/track-uniapp/src/pages/scan/components/FlowCard.vue index 96e6d6f..709eb77 100644 --- a/track-uniapp/src/pages/scan/components/FlowCard.vue +++ b/track-uniapp/src/pages/scan/components/FlowCard.vue @@ -16,6 +16,8 @@