fix(product): 補回清單頁面的 is_active 資料回傳並修正表格 colSpan
All checks were successful
Koori-ERP-Deploy-System / deploy-demo (push) Has been skipped
Koori-ERP-Deploy-System / deploy-production (push) Successful in 50s

This commit is contained in:
2026-02-05 16:19:13 +08:00
parent 397a8a6484
commit e1aa452b3c
2 changed files with 2 additions and 1 deletions

View File

@@ -100,6 +100,7 @@ class ProductController extends Controller
'price' => (float) $product->price, 'price' => (float) $product->price,
'member_price' => (float) $product->member_price, 'member_price' => (float) $product->member_price,
'wholesale_price' => (float) $product->wholesale_price, 'wholesale_price' => (float) $product->wholesale_price,
'is_active' => (bool) $product->is_active,
]; ];
}); });

View File

@@ -105,7 +105,7 @@ export default function ProductTable({
<TableBody> <TableBody>
{products.length === 0 ? ( {products.length === 0 ? (
<TableRow> <TableRow>
<TableCell colSpan={7} className="text-center py-8 text-gray-500"> <TableCell colSpan={9} className="text-center py-8 text-gray-500">
</TableCell> </TableCell>
</TableRow> </TableRow>