summaryrefslogtreecommitdiff
path: root/lib/rfq-last/vendor-response/editor/quotation-items-table.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rfq-last/vendor-response/editor/quotation-items-table.tsx')
-rw-r--r--lib/rfq-last/vendor-response/editor/quotation-items-table.tsx32
1 files changed, 0 insertions, 32 deletions
diff --git a/lib/rfq-last/vendor-response/editor/quotation-items-table.tsx b/lib/rfq-last/vendor-response/editor/quotation-items-table.tsx
index 23ddc924..b0c1488a 100644
--- a/lib/rfq-last/vendor-response/editor/quotation-items-table.tsx
+++ b/lib/rfq-last/vendor-response/editor/quotation-items-table.tsx
@@ -64,15 +64,6 @@ export default function QuotationItemsTable({ prItems }: QuotationItemsTableProp
console.log(prItems,"prItems")
- // 통계 정보 계산
- const statistics = {
- total: prItems.length,
- regular: prItems.filter(item => !item.majorYn).length,
- major: prItems.filter(item => item.majorYn).length,
- totalQuantity: prItems.reduce((sum, item) => sum + (item.quantity || 0), 0),
- totalWeight: prItems.reduce((sum, item) => sum + (item.grossWeight || 0), 0),
- }
-
// PR 아이템 정보를 quotationItems에 초기화
useEffect(() => {
if (prItems && prItems.length > 0) {
@@ -474,29 +465,6 @@ export default function QuotationItemsTable({ prItems }: QuotationItemsTableProp
</div>
</div>
</div>
-
- {/* 통계 정보 */}
- <div className="mt-4">
- <div className="grid grid-cols-2 sm:grid-cols-4 gap-3">
- <div className="text-center p-3 border rounded-lg bg-muted/50">
- <div className="text-2xl font-bold text-primary">{statistics.total}</div>
- <div className="text-xs text-muted-foreground">전체 품목</div>
- </div>
- <div className="text-center p-3 border rounded-lg bg-muted/50">
- <div className="text-2xl font-bold text-gray-600">{statistics.regular}</div>
- <div className="text-xs text-muted-foreground">일반 품목</div>
- </div>
- <div className="text-center p-3 border rounded-lg bg-muted/50">
- <div className="text-2xl font-bold text-green-600">{statistics.totalQuantity.toLocaleString()}</div>
- <div className="text-xs text-muted-foreground">총 수량</div>
- </div>
- <div className="text-center p-3 border rounded-lg bg-muted/50">
- <div className="text-2xl font-bold text-orange-600">{statistics.totalWeight.toLocaleString()}</div>
- <div className="text-xs text-muted-foreground">총 중량 (KG)</div>
- </div>
- </div>
- <Separator className="mt-4" />
- </div>
</CardHeader>
<CardContent>
<ScrollArea className="h-[600px]">