修复(08-28-reimbursement-review-routing-copy): 规范财务兜底文案
这个提交包含在:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
在新工单中引用
屏蔽一个用户