生產工單BOM以及批號完善
All checks were successful
Koori-ERP-Deploy-System / deploy-demo (push) Successful in 57s
Koori-ERP-Deploy-System / deploy-production (push) Has been skipped

This commit is contained in:
2026-01-22 15:39:35 +08:00
parent 1ae21febb5
commit 1d134c9ad8
31 changed files with 2684 additions and 694 deletions

View File

@@ -39,13 +39,25 @@ export interface WarehouseInventory {
unit: string;
quantity: number;
safetyStock: number | null;
status?: '正常' | '接近' | '低於'; // 後端可能回傳的狀態
status?: '正常' | '低於'; // 後端可能回傳的狀態
batchNumber: string; // 批號 (Mock for now)
expiryDate: string;
lastInboundDate: string | null;
lastOutboundDate: string | null;
}
// 依照商品分組的庫存項目 (用於庫存列表)
export interface GroupedInventory {
productId: string;
productName: string;
productCode: string;
baseUnit: string;
totalQuantity: number;
safetyStock: number | null; // 以商品層級顯示的安全庫存
status: '正常' | '低於';
batches: WarehouseInventory[]; // 該商品下的所有批號庫存
}
export type TransferOrderStatus = "待處理" | "處理中" | "已完成" | "已取消";
export interface TransferOrder {
@@ -151,7 +163,10 @@ export interface InboundItem {
largeUnit?: string;
conversionRate?: number;
selectedUnit?: 'base' | 'large';
batchMode?: 'existing' | 'new'; // 批號模式
inventoryId?: string; // 選擇現有批號時的 ID
batchNumber?: string;
originCountry?: string; // 新增產地
expiryDate?: string;
}