From 687af254bd31fea15ba7690c75432418a717d4ee Mon Sep 17 00:00:00 2001 From: sky121113 Date: Thu, 5 Feb 2026 15:53:24 +0800 Subject: [PATCH] =?UTF-8?q?style(warehouse):=20=E5=84=AA=E5=8C=96=E7=91=95?= =?UTF-8?q?=E7=96=B5=E5=80=89=E9=A1=AF=E7=A4=BA=E9=82=8F=E8=BC=AF=E4=B8=A6?= =?UTF-8?q?=E7=B0=A1=E5=8C=96=E6=A8=99=E7=B1=A4=E7=82=BA=E3=80=8C=E9=81=8E?= =?UTF-8?q?=E6=9C=9F=E7=B5=B1=E8=A8=88=E3=80=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../js/Components/Warehouse/WarehouseCard.tsx | 24 ++++++++++--------- resources/js/Pages/Warehouse/Index.tsx | 2 +- 2 files changed, 14 insertions(+), 12 deletions(-) diff --git a/resources/js/Components/Warehouse/WarehouseCard.tsx b/resources/js/Components/Warehouse/WarehouseCard.tsx index f02a1c4..98c18b8 100644 --- a/resources/js/Components/Warehouse/WarehouseCard.tsx +++ b/resources/js/Components/Warehouse/WarehouseCard.tsx @@ -109,26 +109,28 @@ export default function WarehouseCard({ {/* 統計區塊 - 狀態標籤 */}
- {/* 帳面庫存總計 (金額) */} + {/* 帳面庫存總計 (金額) - 瑕疵倉隱藏此項以減少重複 */} -
-
- - 帳面庫存總計 + {warehouse.type !== 'quarantine' && ( +
+
+ + 帳面庫存總計 +
+
+ ${Number(stats.totalValue || 0).toLocaleString(undefined, { minimumFractionDigits: 2, maximumFractionDigits: 2 })} +
-
- ${Number(stats.totalValue || 0).toLocaleString(undefined, { minimumFractionDigits: 2, maximumFractionDigits: 2 })} -
-
+ )} - {/* 過期與瑕疵總計 (金額) */} + {/* 過期統計 (金額) */} {Number(stats.abnormalValue || 0) > 0 && (
- 過期與瑕疵總計 + 過期統計
${Number(stats.abnormalValue || 0).toLocaleString(undefined, { minimumFractionDigits: 2, maximumFractionDigits: 2 })} diff --git a/resources/js/Pages/Warehouse/Index.tsx b/resources/js/Pages/Warehouse/Index.tsx index 819fae6..348161a 100644 --- a/resources/js/Pages/Warehouse/Index.tsx +++ b/resources/js/Pages/Warehouse/Index.tsx @@ -201,7 +201,7 @@ export default function WarehouseIndex({ warehouses, totals, filters }: PageProp
- 過期與瑕疵總計 + 過期統計