diff options
| author | dujinkim <dujin.kim@dtsolution.co.kr> | 2025-12-04 12:42:23 +0000 |
|---|---|---|
| committer | dujinkim <dujin.kim@dtsolution.co.kr> | 2025-12-04 12:42:23 +0000 |
| commit | d1f1768611a73541f5d63b6735f64d194466825b (patch) | |
| tree | 44717ee4a692070fd4a9b3dd0922df34358e0598 /lib/bidding/selection/bidding-info-card.tsx | |
| parent | e5b36fa6a1b12446883f51fc5e7cd56d8df8d8f5 (diff) | |
(최겸) 구매 입찰 견적 히스토리, 응찰품목조회 table 개발
Diffstat (limited to 'lib/bidding/selection/bidding-info-card.tsx')
| -rw-r--r-- | lib/bidding/selection/bidding-info-card.tsx | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/lib/bidding/selection/bidding-info-card.tsx b/lib/bidding/selection/bidding-info-card.tsx index b363f538..5904bf65 100644 --- a/lib/bidding/selection/bidding-info-card.tsx +++ b/lib/bidding/selection/bidding-info-card.tsx @@ -5,6 +5,18 @@ import { Badge } from '@/components/ui/badge' // import { formatDate } from '@/lib/utils' import { biddingStatusLabels, contractTypeLabels } from '@/db/schema' +// 입찰유형 라벨 맵 추가 +const biddingTypeLabels: Record<string, string> = { + equipment: '기자재', + construction: '공사', + service: '용역', + lease: '임차', + transport: '운송', + waste: '폐기물', + sale: '매각', + other: '기타(직접입력)', +} + interface BiddingInfoCardProps { bidding: Bidding } @@ -56,7 +68,7 @@ export function BiddingInfoCard({ bidding }: BiddingInfoCardProps) { 입찰유형 </label> <div className="text-sm font-medium"> - {bidding.biddingType} + {biddingTypeLabels[bidding.biddingType as keyof typeof biddingTypeLabels] || bidding.biddingType || '-'} </div> </div> |
