This commit is contained in:
2026-10-09 17:36:40 +08:00
parent 95078f750e
commit e251a1c570
3 changed files with 29 additions and 1 deletions
+3 -1
View File
@@ -7,7 +7,9 @@ export function toDispatchError(error, fallback = '排车作业失败') {
const originalMessage = String(error?.message || '').trim()
let message = originalMessage || fallback
if (FORBIDDEN_CODES.has(code)) {
if (error?.network) {
message = '网络连接失败,请检查网络后重试,当前作业已保留'
} else if (FORBIDDEN_CODES.has(code)) {
message = '当前账号没有海外仓 PDA 作业权限,请联系管理员授权'
} else if (CONFLICT_CODES.has(code) && originalMessage === VEHICLE_PLATE_REQUIRED) {
message = '请先在平台维护车牌信息后再拣货'