大更新
All checks were successful
Koori-ERP-Deploy-System / deploy-demo (push) Has been skipped
Koori-ERP-Deploy-System / deploy-production (push) Successful in 58s

This commit is contained in:
2026-01-08 16:32:10 +08:00
parent 7848976a06
commit 0b60dab208
25 changed files with 661 additions and 392 deletions

View File

@@ -14,4 +14,5 @@ export interface Product {
conversion_rate?: number;
purchase_unit?: string;
unit?: string; // 相容舊有程式碼
baseUnit?: { name: string };
}

View File

@@ -21,10 +21,14 @@ export interface PurchaseOrderItem {
productId: string;
productName: string;
quantity: number;
unit: string;
base_unit?: string; // 基本庫存單位
purchase_unit?: string; // 採購單位
conversion_rate?: number;// 換算率
unitId?: number; // 選擇的單位ID
base_unit_id?: number;
base_unit_name?: string;
large_unit_id?: number;
large_unit_name?: string;
purchase_unit_id?: number;
conversion_rate?: number;
selectedUnit?: 'base' | 'large'; // 前端狀態輔助
unitPrice: number;
previousPrice?: number;
subtotal: number;
@@ -79,9 +83,11 @@ export interface PurchaseOrder {
export interface CommonProduct {
productId: string;
productName: string;
unit: string;
base_unit?: string;
purchase_unit?: string;
base_unit_id?: number;
base_unit_name?: string;
large_unit_id?: number;
large_unit_name?: string;
purchase_unit_id?: number;
conversion_rate?: number;
lastPrice: number;
}

View File

@@ -8,6 +8,9 @@ export interface SupplyProduct {
productId: string;
productName: string;
unit: string;
baseUnit?: string;
largeUnit?: string;
conversionRate?: number;
lastPrice?: number;
}

View File

@@ -147,6 +147,10 @@ export interface InboundItem {
productName: string;
quantity: number;
unit: string;
baseUnit?: string;
largeUnit?: string;
conversionRate?: number;
selectedUnit?: 'base' | 'large';
}
/**