feat: 統一度量衡,確保儀表板統計與庫存查詢清單數據精確一致

This commit is contained in:
2026-02-10 11:09:22 +08:00
parent a6393e03d8
commit 38642cc58b
2 changed files with 55 additions and 22 deletions

View File

@@ -40,6 +40,8 @@ interface InventoryItem {
last_inbound: string | null;
last_outbound: string | null;
statuses: string[];
is_grouped?: boolean;
location: string | null;
}
interface PaginationLink {
@@ -491,18 +493,13 @@ export default function StockQueryIndex({
<TableCell>
{item.warehouse_name}
</TableCell>
<TableCell className="text-gray-500 text-sm">
<TableCell className="text-gray-500 text-sm italic">
{item.batch_number || "—"}
</TableCell>
<TableCell className="text-sm text-gray-500">
<TableCell className="text-sm text-gray-500 italic">
{item.location || "—"}
</TableCell>
<TableCell
className={`text-right font-medium ${item.quantity < 0
? "text-red-600"
: ""
}`}
>
<TableCell className={`text-right font-medium ${item.quantity < 0 ? "text-red-600" : ""}`}>
{item.quantity}
</TableCell>
<TableCell className="text-right text-gray-500">