feat: 拆分上链与出库管理界面

This commit is contained in:
Nixevol
2026-07-16 11:50:24 +08:00
parent ebc2603815
commit fee1efc490
22 changed files with 2844 additions and 250 deletions
+117 -15
View File
@@ -55,11 +55,15 @@
"UNBOUND": "Unbound",
"INACTIVE": "Inactive",
"PENDING": "Pending",
"SUBMITTING": "Submitting",
"CONFIRMING": "Confirming",
"PROCESSING": "Processing",
"SUCCESS": "Success",
"PARTIAL": "Partial",
"FAILED": "Failed",
"UNKNOWN": "Unknown",
"SKIPPED": "Skipped",
"CANCELLED": "Cancelled",
"ONCHAIN": "On-chain",
"GENERATING": "Generating",
"DONE": "Done"
@@ -165,7 +169,8 @@
"templates": "Templates",
"artworks": "Artwork Files",
"traceCodes": "Trace Code Management",
"outbound": "Outbound & Chain",
"onchain": "On-chain Management",
"outbound": "Outbound Management",
"audit": "Content Audit",
"queryLogs": "Query Logs",
"operationLogs": "Operation Logs",
@@ -324,6 +329,7 @@
"nodes": "Timeline",
"certificates": "Certificates",
"saveDraft": "Save Draft",
"saveChanges": "Save Changes",
"submitReview": "Submit for Audit",
"submittedReview": "Submitted for audit. Changes take effect only after approval.",
"noChangeTip": "No artwork content changes to submit.",
@@ -425,8 +431,6 @@
"reconfirmOnchain": "Reconfirm",
"confirmSubmitted": "Reconfirm task submitted",
"tableFilter": "Filter",
"registerOutbound": "Outbound & On-chain",
"triggerOnchainOnly": "On-chain",
"onchainInfo": "On-chain Info",
"enableOne": "Enable",
"disableOne": "Disable",
@@ -434,15 +438,22 @@
"assignGroup": "Assign group"
},
"outbound": {
"recordsTab": "Outbound Records",
"zipTab": "ZIP Batch Import",
"batchImportTitle": "Outbound Batch Import",
"import": "Batch Import",
"outTime": "Outbound Time",
"outImage": "Outbound Photo",
"onchainSection": "On-chain Info",
"txHashTip": "Written automatically from the blockchain API response",
"moreOnchainInfo": "More On-chain Info",
"saveRecord": "Save Record",
"saveAndTriggerOnchain": "Save & Trigger On-chain",
"registerRecord": "Register Outbound",
"editRecord": "Edit Outbound Record",
"addImage": "Add Outbound Photo",
"imageCount": "{n} photo(s)",
"moveImageUp": "Move earlier",
"moveImageDown": "Move later",
"imageFormatTip": "Only JPG, JPEG, PNG, and WebP images are supported",
"imageSizeTip": "Each image must not exceed 100MB",
"deleteImageConfirm": "Delete this outbound photo?",
"selectFile": "Select File",
"importing": "Importing…",
"importResult": "Import Result",
@@ -495,7 +506,6 @@
"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 100MB limit: {path}",
"tooManyRows": "The import exceeds the {count}-row limit",
@@ -505,9 +515,9 @@
"missingHeaders": "The xlsx file is missing required headers: {value}",
"unsafeImagePath": "Image path is unsafe: {path}",
"imageOutsideDirectory": "Image must be inside the images directory: {path}",
"imageCodeDirectory": "Image must be stored under images/<12-digit trace code>/: {path}",
"orphanImageDirectory": "The image directory's trace code is not present in the xlsx file: {code}",
"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}",
@@ -519,8 +529,8 @@
"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",
"tempDiskSpace": "Insufficient temporary disk space for outbound import; at least {mb}MB is required",
"xlsxEntryLimit": "The xlsx file contains more than {count} entries",
"imageReferenceLimit": "The import contains more than {count} image references",
"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",
@@ -542,21 +552,105 @@
"FAILED": "Failed",
"EXPIRED": "Expired"
},
"onchainAutoTip": "On-chain hash, attestation link, and on-chain time are written automatically from the configured blockchain API response.",
"outTimeRequired": "Outbound time is required"
},
"operations": {
"filterArtwork": "Filter artwork",
"traceStatus": "Trace Code Status",
"activationFilter": "Activation",
"activated": "Activated",
"notActivated": "Not Activated",
"matchCodes": "Match Trace Codes",
"matchPlaceholder": "Enter one 12-digit trace code per line",
"startMatch": "Match",
"matchedCount": "{n} matched",
"missingCount": "{n} missing",
"duplicateCount": "{n} duplicate",
"invalidCodeCount": "{n} invalid",
"matchLimit": "Up to {n} trace codes can be matched at once",
"addSelected": "Add Selected ({n})",
"available": "Available",
"unavailable": "Unavailable",
"onchainUnavailable": "On-chain Unavailable",
"selectAllFiltered": "Select All Filtered",
"selectEligibleFilterTip": "Select all is available only for eligible status filters",
"replaceFilterSelectionTitle": "Replace Filter Selection",
"replaceFilterSelectionConfirm": "Matching trace codes will clear the current select-all-filtered selection. Continue?",
"clearSelection": "Clear Selection",
"filterSelectionSummary": "Selected all {n} eligible filtered records; {excluded} excluded",
"idSelectionSummary": "{n} selected across pages",
"batchOnchain": "On-chain ({n})",
"batchOutbound": "Batch Outbound",
"batchOutboundWithCount": "Outbound ({n})",
"batchOnchainTitle": "Batch On-chain",
"batchOnchainConfirm": "Submit {n} trace codes for on-chain processing?",
"singleOnchainConfirm": "Submit trace code {code} for on-chain processing?",
"confirmBatch": "Confirm ({n})",
"jobSubmitted": "Task submitted",
"recentJob": "The latest batch task is available",
"viewProgress": "View Progress",
"onchainProgress": "Batch On-chain Progress",
"outboundProgress": "Batch Outbound Progress",
"total": "Total",
"success": "Success",
"failed": "Failed",
"skipped": "Skipped",
"allResults": "All Results",
"processedAt": "Processed At",
"resultReason": "Result",
"proofStatus": {
"ELIGIBLE": "Eligible",
"NONE": "Not On-chain",
"PENDING": "Queued",
"SUBMITTING": "Submitting",
"CONFIRMING": "Confirming",
"ONCHAIN": "On-chain",
"FAILED": "Failed",
"UNKNOWN": "Unknown"
},
"itemStatus": {
"PENDING": "Pending",
"PROCESSING": "Processing",
"SUCCESS": "Success",
"FAILED": "Failed",
"SKIPPED": "Skipped",
"UNKNOWN": "Unknown"
},
"jobStatus": {
"PENDING": "Pending",
"PROCESSING": "Processing",
"SUCCESS": "Completed",
"PARTIAL": "Partially Completed",
"FAILED": "Failed",
"CANCELLED": "Cancelled"
},
"reason": {
"alreadyOutbound": "This trace code is already outbound",
"traceCodeUnavailable": "Disabled or abnormal trace codes cannot be submitted on-chain",
"artworkUnavailable": "The artwork is inactive or has not been approved",
"missingPrimaryImage": "The artwork does not have a valid primary image",
"alreadyOnchain": "This trace code is already on-chain",
"onchainProcessing": "This trace code is being processed on-chain"
}
},
"blockchain": {
"title": "Blockchain Attestation",
"status": "On-chain Status",
"dataHash": "Data Hash",
"txHash": "Tx Hash",
"chainName": "Chain",
"blockHeight": "Block Height",
"tokenId": "Token ID",
"contract": "Contract Address",
"onchainAt": "On-chain Time",
"explorer": "Explorer",
"openExplorer": "Open Explorer",
"trigger": "Trigger On-chain",
"triggered": "On-chain task submitted"
"triggered": "On-chain task submitted",
"retry": "Retry On-chain",
"unknownTip": "The transaction result cannot be confirmed yet. Resync it or correct the status manually.",
"resync": "Resync",
"recordTransaction": "Record Transaction Hash",
"markFailed": "Mark Failed",
"markFailedConfirm": "Mark this unknown attestation as failed? Use this only after manual verification."
},
"queryLog": {
"result": "Result",
@@ -723,7 +817,12 @@
"outboundTemplate": "Download outbound import template",
"traceExport": "Export trace codes and QR images",
"traceBatchDelete": "Batch delete trace codes",
"traceMatch": "Match trace codes",
"traceOnchain": "Trace code on-chain attestation",
"batchOnchain": "Submit batch on-chain task",
"batchOutbound": "Submit batch outbound task",
"outboundRecord": "Create or update outbound record",
"outboundImages": "Manage outbound photos",
"backupCreate": "Create backup",
"backupDelete": "Delete backup",
"backupDownload": "Download backup package",
@@ -735,6 +834,9 @@
"storageConfirm": "Switch storage config",
"blockchainRetry": "Retry blockchain proof",
"blockchainConfirm": "Query blockchain confirmation",
"blockchainResync": "Resync blockchain proof",
"blockchainRecordTransaction": "Record transaction hash manually",
"blockchainMarkFailed": "Mark on-chain task as failed",
"changePassword": "Change password",
"login": "Sign in to admin",
"upload": "Upload file"
+117 -15
View File
@@ -55,11 +55,15 @@
"UNBOUND": "未绑定",
"INACTIVE": "未激活",
"PENDING": "等待中",
"SUBMITTING": "提交中",
"CONFIRMING": "确认中",
"PROCESSING": "处理中",
"SUCCESS": "成功",
"PARTIAL": "部分成功",
"FAILED": "失败",
"UNKNOWN": "状态未知",
"SKIPPED": "已跳过",
"CANCELLED": "已取消",
"ONCHAIN": "已上链",
"GENERATING": "生成中",
"DONE": "已完成"
@@ -165,7 +169,8 @@
"templates": "溯源模板",
"artworks": "艺术品档案",
"traceCodes": "追溯码管理",
"outbound": "出库与上链",
"onchain": "上链管理",
"outbound": "出库管理",
"audit": "内容审核",
"queryLogs": "查询日志",
"operationLogs": "操作日志",
@@ -324,6 +329,7 @@
"nodes": "溯源时间轴",
"certificates": "认证文件",
"saveDraft": "保存草稿",
"saveChanges": "保存修改",
"submitReview": "提交审核",
"submittedReview": "已提交审核,审核通过后修改才会生效",
"noChangeTip": "作品内容未发生变化,无需提交审核",
@@ -425,8 +431,6 @@
"reconfirmOnchain": "重新确认",
"confirmSubmitted": "已提交重新确认任务",
"tableFilter": "筛选",
"registerOutbound": "出库上链",
"triggerOnchainOnly": "上链",
"onchainInfo": "上链信息",
"enableOne": "启用",
"disableOne": "禁用",
@@ -434,15 +438,22 @@
"assignGroup": "设为分组"
},
"outbound": {
"recordsTab": "出库登记",
"zipTab": "ZIP 批量导入",
"batchImportTitle": "出库批量导入",
"import": "批量导入",
"outTime": "出库时间",
"outImage": "出库实况图",
"onchainSection": "上链信息",
"txHashTip": "由区块链接口返回后自动写入",
"moreOnchainInfo": "更多上链信息",
"saveRecord": "保存登记",
"saveAndTriggerOnchain": "保存并触发上链",
"registerRecord": "登记出库",
"editRecord": "编辑出库记录",
"addImage": "补录实况图",
"imageCount": "共 {n} 张",
"moveImageUp": "前移",
"moveImageDown": "后移",
"imageFormatTip": "仅支持 JPG、JPEG、PNG、WebP 图片",
"imageSizeTip": "单张图片不能超过 100MB",
"deleteImageConfirm": "确认删除该出库实况图?",
"selectFile": "选择文件",
"importing": "导入中…",
"importResult": "导入结果",
@@ -495,7 +506,6 @@
"previewExpired": "导入预览会话已过期或状态已变化",
"duplicateTraceCode": "追溯码在本次导入中重复(首次出现于第 {row} 行)",
"batchNoMismatch": "批次编号不匹配,实际为 {value}",
"tooManyImages": "每行最多填写 {count} 张出库图",
"duplicateZipImage": "ZIP 中存在重复图片路径:{path}",
"imageTooLarge": "图片超过 100MB:{path}",
"tooManyRows": "导入数据超过 {count} 行限制",
@@ -505,9 +515,9 @@
"missingHeaders": "xlsx 缺少必填表头:{value}",
"unsafeImagePath": "图片路径不安全:{path}",
"imageOutsideDirectory": "图片必须位于 images 目录:{path}",
"imageCodeDirectory": "图片必须位于 images/<12位追溯码>/ 目录:{path}",
"orphanImageDirectory": "图片目录对应的追溯码未出现在 xlsx 中:{code}",
"unsupportedImage": "不支持的图片格式:{path}",
"duplicateImage": "同一行重复引用图片:{path}",
"imageMissing": "图片不存在:{path}",
"imageFormat": "图片实际格式与扩展名不一致:{path}",
"imagePixels": "图片像素尺寸超过限制:{path}",
"animatedImage": "不支持多帧图片:{path}",
@@ -519,8 +529,8 @@
"zipInvalidSize": "ZIP 包含无效文件大小",
"xlsxInvalidSize": "xlsx 包含无效文件大小",
"zipEntryLimit": "ZIP 文件数量超过限制(最多 {count} 个)",
"tempDiskSpace": "出库导入临时磁盘空间不足,至少需要 {mb}MB 可用空间",
"xlsxEntryLimit": "xlsx 文件数量超过限制(最多 {count} 个)",
"imageReferenceLimit": "出库图片引用总数超过限制(最多 {count} 张)",
"incompleteRows": "导入行状态不完整:成功 {success},失败 {fail},待处理 {remaining},总数 {total}",
"previewSessionMissing": "导入预览会话不存在",
"previewJobMismatch": "导入预览任务与会话不匹配",
@@ -542,21 +552,105 @@
"FAILED": "失败",
"EXPIRED": "已过期"
},
"onchainAutoTip": "链上哈希、存证链接、上链时间由当前配置的区块链接口返回后自动写入。",
"outTimeRequired": "出库时间不能为空"
},
"operations": {
"filterArtwork": "筛选艺术品",
"traceStatus": "追溯码状态",
"activationFilter": "激活状态",
"activated": "已激活",
"notActivated": "未激活",
"matchCodes": "按追溯码匹配",
"matchPlaceholder": "每行输入一个 12 位追溯码",
"startMatch": "开始匹配",
"matchedCount": "匹配 {n} 个",
"missingCount": "不存在 {n} 个",
"duplicateCount": "重复 {n} 个",
"invalidCodeCount": "格式错误 {n} 个",
"matchLimit": "一次最多匹配 {n} 个追溯码",
"addSelected": "加入所选({n})",
"available": "可操作",
"unavailable": "不可操作",
"onchainUnavailable": "不可上链",
"selectAllFiltered": "选择全部筛选结果",
"selectEligibleFilterTip": "仅在筛选为可操作状态时支持全部选择",
"replaceFilterSelectionTitle": "替换当前筛选选择",
"replaceFilterSelectionConfirm": "按追溯码匹配将清空当前“全部筛选结果”选择,是否继续?",
"clearSelection": "清空选择",
"filterSelectionSummary": "已选择全部可操作筛选结果,共 {n} 项,已排除 {excluded} 项",
"idSelectionSummary": "已跨页选择 {n} 项",
"batchOnchain": "批量上链({n})",
"batchOutbound": "批量出库",
"batchOutboundWithCount": "批量出库({n})",
"batchOnchainTitle": "批量上链",
"batchOnchainConfirm": "确认提交 {n} 个追溯码进行上链?",
"singleOnchainConfirm": "确认提交追溯码 {code} 进行上链?",
"confirmBatch": "确认处理({n})",
"jobSubmitted": "任务已提交",
"recentJob": "最近提交的批量任务仍可查看",
"viewProgress": "查看任务进度",
"onchainProgress": "批量上链进度",
"outboundProgress": "批量出库进度",
"total": "总数",
"success": "成功",
"failed": "失败",
"skipped": "跳过",
"allResults": "全部结果",
"processedAt": "处理时间",
"resultReason": "结果说明",
"proofStatus": {
"ELIGIBLE": "可上链",
"NONE": "未上链",
"PENDING": "排队中",
"SUBMITTING": "提交中",
"CONFIRMING": "确认中",
"ONCHAIN": "已上链",
"FAILED": "上链失败",
"UNKNOWN": "状态未知"
},
"itemStatus": {
"PENDING": "待处理",
"PROCESSING": "处理中",
"SUCCESS": "成功",
"FAILED": "失败",
"SKIPPED": "已跳过",
"UNKNOWN": "结果未知"
},
"jobStatus": {
"PENDING": "等待中",
"PROCESSING": "处理中",
"SUCCESS": "已完成",
"PARTIAL": "部分完成",
"FAILED": "失败",
"CANCELLED": "已取消"
},
"reason": {
"alreadyOutbound": "该追溯码已登记出库",
"traceCodeUnavailable": "停用或异常追溯码不可上链",
"artworkUnavailable": "作品未生效或未审核通过",
"missingPrimaryImage": "作品缺少有效主图",
"alreadyOnchain": "该追溯码已上链",
"onchainProcessing": "该追溯码正在上链处理中"
}
},
"blockchain": {
"title": "区块链存证",
"status": "上链状态",
"dataHash": "数据哈希",
"txHash": "交易哈希",
"chainName": "链名称",
"blockHeight": "区块高度",
"tokenId": "数字商品ID",
"contract": "合约地址",
"onchainAt": "上链时间",
"explorer": "存证查询",
"openExplorer": "打开存证查询",
"trigger": "触发上链",
"triggered": "已提交上链任务"
"triggered": "已提交上链任务",
"retry": "重新上链",
"unknownTip": "链上交易结果暂时无法确认,可重新同步或由管理员修正状态。",
"resync": "重新同步",
"recordTransaction": "登记交易哈希",
"markFailed": "标记失败",
"markFailedConfirm": "确认将该未知状态存证标记为失败?此操作仅用于人工核验后的异常恢复。"
},
"queryLog": {
"result": "查询结果",
@@ -723,7 +817,12 @@
"outboundTemplate": "下载出库导入模板",
"traceExport": "导出追溯码与二维码",
"traceBatchDelete": "批量删除追溯码",
"traceMatch": "按追溯码批量匹配",
"traceOnchain": "追溯码上链存证",
"batchOnchain": "提交批量上链任务",
"batchOutbound": "提交批量出库任务",
"outboundRecord": "登记或修改出库记录",
"outboundImages": "维护出库实况图",
"backupCreate": "创建备份",
"backupDelete": "删除备份",
"backupDownload": "下载备份包",
@@ -735,6 +834,9 @@
"storageConfirm": "切换存储配置",
"blockchainRetry": "重试区块链存证",
"blockchainConfirm": "查询区块链确认结果",
"blockchainResync": "重新同步区块链存证",
"blockchainRecordTransaction": "人工登记交易哈希",
"blockchainMarkFailed": "人工标记上链失败",
"changePassword": "修改密码",
"login": "登录后台",
"upload": "上传文件"