大更新
This commit is contained in:
@@ -14,4 +14,5 @@ export interface Product {
|
||||
conversion_rate?: number;
|
||||
purchase_unit?: string;
|
||||
unit?: string; // 相容舊有程式碼
|
||||
baseUnit?: { name: string };
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -8,6 +8,9 @@ export interface SupplyProduct {
|
||||
productId: string;
|
||||
productName: string;
|
||||
unit: string;
|
||||
baseUnit?: string;
|
||||
largeUnit?: string;
|
||||
conversionRate?: number;
|
||||
lastPrice?: number;
|
||||
}
|
||||
|
||||
|
||||
@@ -147,6 +147,10 @@ export interface InboundItem {
|
||||
productName: string;
|
||||
quantity: number;
|
||||
unit: string;
|
||||
baseUnit?: string;
|
||||
largeUnit?: string;
|
||||
conversionRate?: number;
|
||||
selectedUnit?: 'base' | 'large';
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user