fix: 加固批量出库导入流程

This commit is contained in:
Nixevol
2026-07-14 07:02:41 +08:00
parent 3c74f03e7e
commit 9644f5c128
54 changed files with 5292 additions and 516 deletions
+73 -2
View File
@@ -459,8 +459,77 @@
"rowNo": "Row",
"errorReason": "Error",
"previewReady": "Preview parsed",
"uploadFailed": "Upload failed",
"importDone": "Import completed",
"previewHasErrors": "Preview completed with {count} invalid row(s)",
"previewFailed": "Preview parsing failed. Check the error details.",
"emptyZipFile": "Select a non-empty ZIP file",
"zipFileOnly": "Only ZIP files are supported",
"zipFileTooLarge": "The ZIP file must not exceed {size}MB",
"backgroundProcessing": "Waiting timed out. The task is still running in the background; refresh this page later to continue.",
"progressUnavailable": "Task progress is temporarily unavailable. Processing may still be running; refresh this page later.",
"activeTaskPending": "The current import task has not finished. A new file cannot be uploaded yet.",
"importSuccess": "Import completed: {success} row(s) succeeded",
"importPartial": "Import partially completed: {success} succeeded, {fail} failed",
"importCompletedWithWarning": "All {success} row(s) were processed, but the task ended with a warning. Review the result details.",
"importFailed": "Import failed. Check the error details or result file.",
"jobStatus": {
"SUCCESS": "Import completed",
"PARTIAL": "Partially completed",
"FAILED": "Import failed",
"SUCCESS_WITH_WARNING": "Imported with a warning"
},
"backendError": {
"traceCodeEmpty": "Trace code is required",
"traceCodeFormat": "Trace code must contain exactly 12 digits",
"traceCodeMissing": "Trace code does not exist",
"alreadyOutbound": "This trace code has already been registered as outbound",
"batchNoTooLong": "Batch number cannot exceed 50 characters",
"remarkTooLong": "Remark cannot exceed 191 characters",
"outTimeEmpty": "Outbound time is required",
"outTimeFormat": "Outbound time must use the format YYYY-MM-DD HH:mm",
"sessionInvalid": "The import session is no longer valid",
"noPendingRows": "The import session has no rows awaiting processing",
"xlsxCount": "The ZIP must contain exactly one xlsx file",
"xlsxRoot": "The xlsx file must be in the root of the ZIP",
"xlsxTooLarge": "The xlsx file exceeds the 10MB limit",
"zipExpandedTooLarge": "The expanded ZIP exceeds the allowed size",
"worksheetMissing": "The xlsx file does not contain a worksheet",
"noRows": "The xlsx file does not contain any importable rows",
"previewExpired": "The import preview expired or its status changed",
"duplicateTraceCode": "This trace code is duplicated in the import (first used on row {row})",
"batchNoMismatch": "Batch number does not match; the actual value is {value}",
"tooManyImages": "Each row can contain at most {count} outbound images",
"duplicateZipImage": "The ZIP contains a duplicate image path: {path}",
"imageTooLarge": "Image exceeds the 10MB limit: {path}",
"tooManyRows": "The import exceeds the {count}-row limit",
"tooManyColumns": "The xlsx file exceeds the {count}-column limit",
"duplicateHeader": "The xlsx file contains a duplicate header: {value}",
"unknownHeaders": "The xlsx file contains unknown headers: {value}",
"missingHeaders": "The xlsx file is missing required headers: {value}",
"unsafeImagePath": "Image path is unsafe: {path}",
"imageOutsideDirectory": "Image must be inside the images directory: {path}",
"unsupportedImage": "Unsupported image format: {path}",
"duplicateImage": "The same image is referenced more than once in this row: {path}",
"imageMissing": "Image not found: {path}",
"imageFormat": "Image content does not match its file extension: {path}",
"imagePixels": "Image dimensions exceed the allowed limit: {path}",
"animatedImage": "Multi-frame images are not supported: {path}",
"resultFileFailed": "Result file generation failed: {detail}",
"taskAborted": "The import task stopped unexpectedly: {detail}",
"xlsxExpandedTooLarge": "The xlsx file expands beyond the allowed size",
"zipInvalidStructure": "The ZIP structure is invalid",
"xlsxInvalidStructure": "The xlsx structure is invalid",
"zipInvalidSize": "The ZIP contains an invalid file size",
"xlsxInvalidSize": "The xlsx file contains an invalid file size",
"zipEntryLimit": "The ZIP contains more than {count} entries",
"xlsxEntryLimit": "The xlsx file contains more than {count} entries",
"imageReferenceLimit": "The import contains more than {count} image references",
"storedImageSizeLimit": "Referenced images exceed the {count}MB stored-output limit",
"incompleteRows": "Import row states are incomplete: {success} succeeded, {fail} failed, {remaining} pending, {total} total",
"previewSessionMissing": "The import preview session no longer exists",
"previewJobMismatch": "The preview task does not match this import session",
"importSessionMissing": "The import session no longer exists",
"importJobMismatch": "The import task does not match this session"
},
"rowStatus": {
"VALID": "Valid",
"INVALID": "Invalid",
@@ -472,6 +541,7 @@
"READY": "Ready",
"IMPORTING": "Importing",
"IMPORTED": "Imported",
"PARTIAL": "Partially completed",
"FAILED": "Failed",
"EXPIRED": "Expired"
},
@@ -652,6 +722,7 @@
"paths": {
"outboundPreview": "Outbound import preview",
"outboundCommit": "Confirm outbound import",
"outboundResult": "Download outbound import result",
"outboundTemplate": "Download outbound import template",
"traceExport": "Export trace codes and QR images",
"traceBatchDelete": "Batch delete trace codes",