refactor(in-transit-transfer): 行归属解耦、按行执行三层门禁并重构术语为匹配

- 行不迁移:匹配记录降级为评估留痕(scope/counts/hash 留痕不拦执行),
  匹配/重查原地刷新行并续行级新鲜度(updated_at)
- 执行改按行:POST /items/execute 三层门禁(行级新鲜度 TTL/文件版本对账/写前复查),
  Run 留痕不绑匹配记录;消失行 blocked_file_removed fail-closed 入异常池
- 恢复处理收敛为行级重查(batch-resume 删除);待处理池补齐匹配窗口字段,
  排序改业务稳定键(收料日期→Invoice→created_at,操作不再引起跳位)
- 首页待办看板四队列:可调拨明细/待恢复异常/已人工关闭/结果未知;「最近预检」移除;
  收料日期默认 T-1 并加输入期限制;「重新查询 ERP」更名「重查」
- 术语重构 precheck→match:表 transfer_matchings、列 matching_id/matching_no/matching_hash、
  API /matchings、单号前缀 MTG、状态值 prechecking→matching(迁移 rn1a2b3c4d5e6,模块未上线无兼容层)
- 修复 integration_connector mapping 扇出嵌套丢行缺陷;对账结论:0 vs 30/40/36
  系收料仓库映射曾指向错误账套 TGHX(已改 TGHX1),探针留档 backend/tmp
- 测试:后端 in_transit_transfer+api+connector 393 passed;前端 chat 713 passed;build ✓
This commit is contained in:
hugo committed 2026-09-24 00:24:03 +08:00
1 parent f9f5053f0b
commit 0cf3c24119
108 files changed
+3660 -2356

No files matched your search

+23 -16
View File
@@ -3703,7 +3703,7 @@
"stageFileReady": "File ready",
"stageWaitingRpa": "RPA fetching",
"stageFailed": "Failed",
"precheckTitle": "Transfer precheck",
"matchTitle": "Transferable stock list",
"businessDate": "Business date",
"executableCount": "Executable",
"notMaturedCount": "Same-day receipt",
@@ -3724,6 +3724,7 @@
"colReceiptDate": "Receipt Date",
"colFromWarehouse": "From warehouse",
"colFromQty": "Stock qty",
"stockCheckedAtTitle": "Stock checked at {time}",
"colToWarehouse": "To warehouse",
"colFromBatch": "Outbound Batch",
"filterPlaceholder": "Filter by material / name / Invoice / batch",
@@ -3731,7 +3732,7 @@
"requerySelected": "Requery selected",
"receiptDateLabel": "Receipt date",
"receiptDateTo": "Receipt date end",
"receiptDateHint": "Defaults to the D+1 rule date (day before business date, the precheck cutoff); end cannot exceed it and start cannot be after end",
"receiptDateHint": "Defaults to the D+1 rule date (day before business date, the matching cutoff); end cannot exceed it and start cannot be after end",
"requeryRow": "Requery",
"colToQty": "To qty",
"colResult": "Result",
@@ -3739,6 +3740,9 @@
"resultNotMatured": "Same-day receipt",
"resultBlocked": "Blocked",
"resultUnknown": "Result unknown",
"resultFileRemoved": "Removed from file",
"staleRow": "Stale — requery",
"fileChangedRow": "File updated — re-match",
"runProgress": "Transfer run progress",
"runExecuting": "Executing",
"runSuccess": "Completed",
@@ -3753,7 +3757,7 @@
"exceptionsTitle": "No ERP document generated",
"exceptionBusinessFailed": "Business failed",
"exceptionTechnicalFailed": "Technical failed",
"exceptionPrecheckExpired": "Precheck expired",
"exceptionMatchExpired": "Matching expired",
"downloadReceiptFiles": "Download receipt files",
"downloadErpInventory": "Download ERP inventory",
"downloadExceptions": "Download exceptions Excel",
@@ -3764,14 +3768,10 @@
"selectedRows": "{count} selected",
"clearSelection": "Clear selection",
"receiptDateInvalid": "Start date cannot be after end date",
"homeRecentTitle": "Recent prechecks",
"recentRemaining": "{min} min left",
"recentPrechecking": "Prechecking…",
"toastRequeryDone": "Requery done: {ok} rows updated, {failed} failed",
"toastResumeOpened": "{count} prechecks created; the first is opened, continue the rest under Recent prechecks",
"toastResumeRefetching": "Receipt file unavailable for {sources}; a refetch has been triggered, resume again once ready",
"toastResumeSkipped": "{count} rows could not be resumed",
"toastResumeStillBlocked": "Resume finished: {count} rows still blocked (ERP stock not matched); resume again after stock is corrected",
"toastRequeryRecovered": "Resume done: {recovered} executable · {blocked} still blocked",
"toastExecuteStale": "{count} stale rows — requery before generating",
"toastExecuteFileChanged": "{count} rows with file updated — re-match",
"toastCloseDone": "Closed: {ok} succeeded, {failed} failed",
"batchCloseTitle": "Mark as no further action ({count} items)",
"manualClose": "Mark as no further action",
@@ -3796,20 +3796,20 @@
"hub_to_hub": "HUB to HUB"
},
"transferTypeComingSoon": "Coming soon",
"precheckParams": "Precheck parameters",
"matchParams": "Matching parameters",
"selectAll": "Select all in group",
"selectEnabledAll": "Select all enabled",
"clearSources": "Clear selection",
"selectedSourceCount": "Selected {count} source instances",
"needSelectSource": "Select at least one enabled source instance",
"confirmScopeAndPrecheck": "Confirm scope & precheck",
"confirmScopeAndMatch": "Confirm scope & match",
"homeWelcome": "Hello, you are in",
"homeTodayLabel": "Today's tasks",
"homeTodayAction": "Start today's transfer precheck",
"homeTodayAction": "Match transferable stock",
"homeTodayHint": "After selecting source instances, the system uses yesterday as the business date by default.",
"homeHistoryLabel": "Pending tasks",
"homeRecoverable": "Recoverable exceptions",
"homeRecoverableHint": "Requery stock or resume processing in one click",
"homeRecoverable": "Pending recovery",
"homeRecoverableHint": "Requery stock or resume in one click",
"homeClosed": "Manually closed",
"homeClosedHint": "View reason and restore processing",
"homeUnknown": "Unknown result",
@@ -3829,6 +3829,13 @@
"batchRetry": "Batch retry RPA",
"downloadFiles": "Download receipt files",
"selectedRetryableCount": "{count} retryable",
"noRetryable": "No selected source needs retry (already ready or fetching)"
"noRetryable": "No selected source needs retry (already ready or fetching)",
"homeMatchLabel": "Stock matching",
"homeBoardLabel": "To-do board",
"homeExecutable": "Executable items",
"homeExecutableHint": "Select rows and generate transfer orders",
"executableTitle": "Executable items",
"executableEmpty": "No executable items",
"executableSelectedCount": "{count} executable rows selected"
}
}