From 96f2ccee9524638205ae375d86b6e5d2d61ea4cb Mon Sep 17 00:00:00 2001 From: sky121113 Date: Thu, 12 Feb 2026 16:34:51 +0800 Subject: [PATCH 1/2] =?UTF-8?q?fix(production):=20=E7=A7=BB=E9=99=A4=20Cre?= =?UTF-8?q?ate.tsx=20=E4=B8=AD=E6=9C=AA=E4=BD=BF=E7=94=A8=E7=9A=84=20units?= =?UTF-8?q?=20=E8=AE=8A=E6=95=B8=E8=88=87=E9=87=8D=E8=A4=87=E5=B1=AC?= =?UTF-8?q?=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- resources/js/Pages/Production/Create.tsx | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/resources/js/Pages/Production/Create.tsx b/resources/js/Pages/Production/Create.tsx index 38a0f8f..cd8f936 100644 --- a/resources/js/Pages/Production/Create.tsx +++ b/resources/js/Pages/Production/Create.tsx @@ -29,10 +29,7 @@ interface Warehouse { name: string; } -interface Unit { - id: number; - name: string; -} + interface InventoryOption { id: number; @@ -81,10 +78,9 @@ interface BomItem { interface Props { products: Product[]; warehouses: Warehouse[]; - units: Unit[]; } -export default function Create({ products, warehouses, units }: Props) { +export default function Create({ products, warehouses }: Props) { const [selectedWarehouse, setSelectedWarehouse] = useState(""); // 產出倉庫 // 快取對照表:product_id -> inventories across warehouses const [productInventoryMap, setProductInventoryMap] = useState>({}); From 299602d3b1d023d23f7f7024e382038f7c018e4c Mon Sep 17 00:00:00 2001 From: sky121113 Date: Thu, 12 Feb 2026 16:36:51 +0800 Subject: [PATCH 2/2] =?UTF-8?q?docs:=20=E5=BE=AE=E8=AA=BF=20README=20?= =?UTF-8?q?=E6=A0=BC=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 737ade5..92d04ce 100644 --- a/README.md +++ b/README.md @@ -180,4 +180,4 @@ docker compose down - **樣式**: 全面使用 Tailwind CSS,避免手寫 CSS。 - **多租戶**: - 中央邏輯 (Landlord) 與租戶邏輯 (Tenant) 分離。 - - 租戶路由定義於 `routes/tenant.php` (但在本專案架構中,大部分路由在 `web.php` 並透過 Middleware 判斷環境)。 + - 租戶路由定義於 `routes/tenant.php` (但在本專案架構中,大部分路由在 `web.php` 並透過 Middleware 判斷環境)。 \ No newline at end of file