From 96f2ccee9524638205ae375d86b6e5d2d61ea4cb Mon Sep 17 00:00:00 2001 From: sky121113 Date: Thu, 12 Feb 2026 16:34:51 +0800 Subject: [PATCH] =?UTF-8?q?fix(production):=20=E7=A7=BB=E9=99=A4=20Create.?= =?UTF-8?q?tsx=20=E4=B8=AD=E6=9C=AA=E4=BD=BF=E7=94=A8=E7=9A=84=20units=20?= =?UTF-8?q?=E8=AE=8A=E6=95=B8=E8=88=87=E9=87=8D=E8=A4=87=E5=B1=AC=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>({});