From e1aa452b3c7be2fdb66d9e82745460a775e2f328 Mon Sep 17 00:00:00 2001 From: sky121113 Date: Thu, 5 Feb 2026 16:19:13 +0800 Subject: [PATCH] =?UTF-8?q?fix(product):=20=E8=A3=9C=E5=9B=9E=E6=B8=85?= =?UTF-8?q?=E5=96=AE=E9=A0=81=E9=9D=A2=E7=9A=84=20is=5Factive=20=E8=B3=87?= =?UTF-8?q?=E6=96=99=E5=9B=9E=E5=82=B3=E4=B8=A6=E4=BF=AE=E6=AD=A3=E8=A1=A8?= =?UTF-8?q?=E6=A0=BC=20colSpan?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Modules/Inventory/Controllers/ProductController.php | 1 + resources/js/Components/Product/ProductTable.tsx | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app/Modules/Inventory/Controllers/ProductController.php b/app/Modules/Inventory/Controllers/ProductController.php index a9a0b8d..22a7319 100644 --- a/app/Modules/Inventory/Controllers/ProductController.php +++ b/app/Modules/Inventory/Controllers/ProductController.php @@ -100,6 +100,7 @@ class ProductController extends Controller 'price' => (float) $product->price, 'member_price' => (float) $product->member_price, 'wholesale_price' => (float) $product->wholesale_price, + 'is_active' => (bool) $product->is_active, ]; }); diff --git a/resources/js/Components/Product/ProductTable.tsx b/resources/js/Components/Product/ProductTable.tsx index d7d855b..013ad0c 100644 --- a/resources/js/Components/Product/ProductTable.tsx +++ b/resources/js/Components/Product/ProductTable.tsx @@ -105,7 +105,7 @@ export default function ProductTable({ {products.length === 0 ? ( - + 無符合條件的商品資料