feat: 統一進貨單 UI、修復庫存異動紀錄與廠商詳情顯示報錯
All checks were successful
Koori-ERP-Deploy-System / deploy-demo (push) Successful in 51s
Koori-ERP-Deploy-System / deploy-production (push) Has been skipped

This commit is contained in:
2026-01-27 17:23:31 +08:00
parent a7c445bd3f
commit 95d8dc2e84
24 changed files with 1613 additions and 466 deletions

View File

@@ -0,0 +1,27 @@
export interface GoodsReceipt {
id: number;
code: string;
warehouse_id: number;
warehouse?: {
id: number;
name: string;
};
vendor_id?: number;
vendor?: {
id: number;
name: string;
};
purchase_order_id?: number;
purchase_order?: {
code: string; // If loaded
};
received_date: string;
status: 'completed' | 'processing' | 'cancelled';
remarks?: string;
items_sum_total_amount?: number; // Calculated field
created_at: string;
updated_at: string;
user?: {
name: string;
};
}

View File

@@ -4,14 +4,12 @@
export type PurchaseOrderStatus =
| "draft" // 草稿
| "pending" // 待審核
| "processing" // 處理中
| "shipping" // 運送中
| "confirming" // 待確認
| "completed" // 已完成
| "completed" // 已完成
| "cancelled" // 已取消
| "partial"; // 部分進貨
| "pending" // 簽核中
| "approved" // 已核准
| "partial" // 部分收貨
| "completed" // 全數收貨
| "closed" // 已結案
| "cancelled"; // 已作廢