feat: 完成P6-P8前端能力闭环(V3,D2,D3,B3)
这个提交包含在:
@@ -114,6 +114,35 @@ export function mapApiErrorMessage(
|
||||
if (details?.ocr === "disabled") {
|
||||
return "当前环境未开启 OCR,请联系管理员或切换到 mock/tencent。";
|
||||
}
|
||||
|
||||
|
||||
if (details?.verification === "disabled") {
|
||||
return "当前环境未开启发票验真。";
|
||||
}
|
||||
|
||||
if (details?.verification === "already_pending") {
|
||||
return "已有验真任务正在处理中,请稍后查看结果。";
|
||||
}
|
||||
|
||||
if (details?.verification === "too_frequent") {
|
||||
return "验真触发过于频繁,请稍后重试。";
|
||||
}
|
||||
|
||||
if (details?.verification === "attempts_exceeded") {
|
||||
return "验真重试次数已达上限,请联系财务人工核验。";
|
||||
}
|
||||
|
||||
if (details?.budget === "exceeded_block_mode") {
|
||||
return "当前报销金额超出预算,系统已阻断提交。";
|
||||
}
|
||||
|
||||
if (details?.integration === "erp_sync_disabled") {
|
||||
return "ERP 同步功能未开启。";
|
||||
}
|
||||
|
||||
if (details?.integration === "travel_sync_disabled") {
|
||||
return "差旅同步功能未开启。";
|
||||
}
|
||||
}
|
||||
|
||||
return fallbackMessage || "请求失败,请稍后重试。";
|
||||
|
||||
在新工单中引用
屏蔽一个用户