feat(shipping-notice): 新增货代客户管理功能,支持客户导入、识别证据管理与客户确认

This commit is contained in:
hugo committed 2026-07-16 08:16:19 +08:00
1 parent b595e157e9
commit 4fbaed2b4c
176 files changed
+14011 -994

No files matched your search

+7 -1
View File
@@ -43,7 +43,13 @@ export class BusinessError extends Error {
}
}
function resolveLocalizedErrorMessage(code?: string, fallbackMessage?: string): string {
/**
* 按错误码解析当前语言文案,供 requestJson 与认证二进制下载共用。
* @param code - 后端 AppError 机器码
* @param fallbackMessage - 未配置错误码时的后端说明
* @returns 当前语言的用户可见错误信息
*/
export function resolveLocalizedErrorMessage(code?: string, fallbackMessage?: string): string {
const normalizedCode = code ? code.replace(/\./g, '_') : '';
const key = normalizedCode ? `errors.codes.${normalizedCode}` : '';
const fallback = String(fallbackMessage || '').trim();