summaryrefslogtreecommitdiff
path: root/lib/bidding/detail/table/bidding-detail-vendor-columns.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'lib/bidding/detail/table/bidding-detail-vendor-columns.tsx')
-rw-r--r--lib/bidding/detail/table/bidding-detail-vendor-columns.tsx18
1 files changed, 15 insertions, 3 deletions
diff --git a/lib/bidding/detail/table/bidding-detail-vendor-columns.tsx b/lib/bidding/detail/table/bidding-detail-vendor-columns.tsx
index 10085e55..af7d70e1 100644
--- a/lib/bidding/detail/table/bidding-detail-vendor-columns.tsx
+++ b/lib/bidding/detail/table/bidding-detail-vendor-columns.tsx
@@ -24,6 +24,7 @@ interface GetVendorColumnsProps {
onViewItemDetails?: (vendor: QuotationVendor) => void
onSendBidding?: (vendor: QuotationVendor) => void
onUpdateParticipation?: (vendor: QuotationVendor, participated: boolean) => void
+ onViewQuotationHistory?: (vendor: QuotationVendor) => void
biddingStatus?: string // 입찰 상태 정보 추가
}
@@ -32,6 +33,7 @@ export function getBiddingDetailVendorColumns({
onViewItemDetails,
onSendBidding,
onUpdateParticipation,
+ onViewQuotationHistory,
biddingStatus
}: GetVendorColumnsProps): ColumnDef<QuotationVendor>[] {
return [
@@ -124,7 +126,7 @@ export function getBiddingDetailVendorColumns({
}
return (
<Badge variant={participated ? 'default' : 'destructive'}>
- {participated ? '응찰' : '미응찰'}
+ {participated ? '응찰' : '응찰포기'}
</Badge>
)
},
@@ -198,7 +200,7 @@ export function getBiddingDetailVendorColumns({
응찰 설정
</DropdownMenuItem>
<DropdownMenuItem onClick={() => onUpdateParticipation(vendor, false)}>
- 미응찰 설정
+ 응찰포기 설정
</DropdownMenuItem>
</>
)}
@@ -212,7 +214,17 @@ export function getBiddingDetailVendorColumns({
</DropdownMenuItem>
</>
)}
-
+
+ {/* 견적 히스토리 (응찰한 업체만) */}
+ {vendor.isBiddingParticipated === true && onViewQuotationHistory && (
+ <>
+ <DropdownMenuSeparator />
+ <DropdownMenuItem onClick={() => onViewQuotationHistory(vendor)}>
+ 견적 히스토리
+ </DropdownMenuItem>
+ </>
+ )}
+
</DropdownMenuContent>
</DropdownMenu>
)