feat: 統一進貨單 UI、修復庫存異動紀錄與廠商詳情顯示報錯
This commit is contained in:
27
resources/js/types/goods-receipt.ts
Normal file
27
resources/js/types/goods-receipt.ts
Normal 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;
|
||||
};
|
||||
}
|
||||
@@ -4,14 +4,12 @@
|
||||
|
||||
export type PurchaseOrderStatus =
|
||||
| "draft" // 草稿
|
||||
| "pending" // 待審核
|
||||
| "processing" // 處理中
|
||||
| "shipping" // 運送中
|
||||
| "confirming" // 待確認
|
||||
| "completed" // 已完成
|
||||
| "completed" // 已完成
|
||||
| "cancelled" // 已取消
|
||||
| "partial"; // 部分進貨
|
||||
| "pending" // 簽核中
|
||||
| "approved" // 已核准
|
||||
| "partial" // 部分收貨
|
||||
| "completed" // 全數收貨
|
||||
| "closed" // 已結案
|
||||
| "cancelled"; // 已作廢
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user