fix(pc-detail-responsive-approval-polish): 协调详情断点并收敛审批展示
ci-e2e / e2e (push) Canceled after 0s
ci-minimal / check-minimal (push) Canceled after 0s

这个提交包含在:
2026-08-03 21:31:44 +08:00
父节点 a5b7e18507
当前提交 c018ea4eb8
共修改 14 个文件,包含 642 行新增和 71 行删除
+16
查看文件
@@ -52,6 +52,22 @@ export function workflowActionLabel(action: string | null | undefined) {
return action ? labels[action] ?? action : "-";
}
export function approvalRoleLabel(role: string | null | undefined) {
if (!role?.trim()) {
return "-";
}
const labels: Record<string, string> = {
manager: "主管",
ceo: "负责人",
finance: "财务",
finance_mgr: "财务经理",
hr: "人事",
};
return labels[role.trim().toLowerCase()] ?? "审批人";
}
export function formatApprovalHistoryTime(value: string | null | undefined) {
return value ? value.slice(0, 19).replace("T", " ") : "-";
}