修复(08-28-reimbursement-review-routing-copy): 规范财务兜底文案

这个提交包含在:
2026-08-28 20:30:04 +08:00
父节点 1bb066ddb7
当前提交 be057e665d
共修改 12 个文件,包含 291 行新增和 8 行删除
+4 -2
查看文件
@@ -57,6 +57,7 @@ const {
buildApprovalWorkflowSnapshot,
getWorkflowStepsSnapshot,
resolveActionableStep,
resolveWorkflowStepDisplayName,
toMoneyString,
} = require("../utils/workflow");
@@ -355,11 +356,12 @@ function isOrdinalApprovalLabel(value) {
}
function resolveApprovalStageLabel(task) {
const stepName = String(task?.step_name ?? "").trim();
const stepName = resolveWorkflowStepDisplayName(task);
const stepId = String(task?.step_id ?? "").trim();
const isTechnicalIdentifier = /^[a-z][a-z0-9]*(?:[_-][a-z0-9]+)+$/i.test(stepName);
const isGenericLabel = ["审批", "审核", "复核"].includes(stepName);
if (stepName && stepName !== stepId && !isOrdinalApprovalLabel(stepName) && !isTechnicalIdentifier && !isGenericLabel) {
if (stepName && stepName !== stepId && !isOrdinalApprovalLabel(stepName)
&& !isTechnicalIdentifier && !isGenericLabel) {
return stepName;
}