fix(pc-detail-responsive-approval-polish): 协调详情断点并收敛审批展示
这个提交包含在:
@@ -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", " ") : "-";
|
||||
}
|
||||
|
||||
在新工单中引用
屏蔽一个用户