feat(management-navigation-single-company-ux): 收敛管理导航与单公司配置体验

这个提交包含在:
2026-08-03 12:43:00 +08:00
父节点 f4ddc18f12
当前提交 4b0184c64b
共修改 36 个文件,包含 1249 行新增和 178 行删除
+5 -5
查看文件
@@ -261,11 +261,11 @@ export function mapApiErrorMessage(
}
if (details?.legalEntityId === "not_found") {
return "所选法体不存在。";
return "所选公司不存在。";
}
if (details?.legalEntityId === "archived") {
return "所选法体已归档,无法继续使用。";
return "所选公司已归档,无法继续使用。";
}
if (details?.ownerEmployeeId === "not_found") {
@@ -289,11 +289,11 @@ export function mapApiErrorMessage(
}
if (details?.parentId === "cross_legal_entity_not_allowed") {
return "上级成本中心必须与当前法体一致。";
return "上级成本中心必须与当前公司一致。";
}
if (details?.legalEntity === "has_cost_centers") {
return "当前法体下仍存在未归档的成本中心,无法归档。";
return "当前公司下仍存在未归档的成本中心,无法归档。";
}
if (details?.costCenter === "has_children") {
@@ -301,7 +301,7 @@ export function mapApiErrorMessage(
}
if (details?.holidayCalendar === "bound_as_default") {
return `当前日历仍被法体 ${details?.legalEntityCode ?? ""} 作为默认日历引用,无法归档。`;
return `当前日历仍被公司 ${details?.legalEntityCode ?? ""} 作为默认日历引用,无法归档。`;
}
if (details?.date === "duplicate") {