feat(inventory): 實作盤點、盤調與調撥操作紀錄,並支援前端本地化顯示

This commit is contained in:
2026-02-04 13:24:33 +08:00
parent 95fdec8a06
commit a8b88b3375
4 changed files with 122 additions and 12 deletions

View File

@@ -131,6 +131,18 @@ const fieldLabels: Record<string, string> = {
recipe_id: '生產配方',
recipe_name: '配方名稱',
yield_quantity: '預期產量',
// 庫存單據通用欄位
doc_no: '單據編號',
snapshot_date: '快照日期',
completed_at: '完成日期',
posted_at: '過帳日期',
from_warehouse_id: '來源倉庫',
from_warehouse_name: '來源倉庫名稱',
to_warehouse_id: '目的地倉庫',
to_warehouse_name: '目的地倉庫名稱',
reason: '原因',
count_doc_id: '盤點單 ID',
count_doc_no: '盤點單號',
};
// 狀態翻譯對照表
@@ -145,6 +157,9 @@ const statusMap: Record<string, string> = {
completed: '已完成',
closed: '已結案',
partial: '部分收貨',
// 庫存單據狀態
counting: '盤點中',
posted: '已過帳',
// 生產工單狀態
planned: '已計畫',
in_progress: '生產中',