diff options
Diffstat (limited to 'lib/bidding/detail/table/bidding-detail-vendor-columns.tsx')
| -rw-r--r-- | lib/bidding/detail/table/bidding-detail-vendor-columns.tsx | 11 |
1 files changed, 8 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 782c5f7a..1de7c768 100644 --- a/lib/bidding/detail/table/bidding-detail-vendor-columns.tsx +++ b/lib/bidding/detail/table/bidding-detail-vendor-columns.tsx @@ -24,13 +24,15 @@ interface GetVendorColumnsProps { onViewItemDetails?: (vendor: QuotationVendor) => void onSendBidding?: (vendor: QuotationVendor) => void onUpdateParticipation?: (vendor: QuotationVendor, participated: boolean) => void + biddingStatus?: string // 입찰 상태 정보 추가 } export function getBiddingDetailVendorColumns({ onEdit, onViewItemDetails, onSendBidding, - onUpdateParticipation + onUpdateParticipation, + biddingStatus }: GetVendorColumnsProps): ColumnDef<QuotationVendor>[] { return [ { @@ -168,14 +170,17 @@ export function getBiddingDetailVendorColumns({ </DropdownMenuTrigger> <DropdownMenuContent align="end"> <DropdownMenuLabel>작업</DropdownMenuLabel> - <DropdownMenuItem + <DropdownMenuItem onClick={() => onEdit(vendor)} - disabled={vendor.isBiddingParticipated !== true} + disabled={vendor.isBiddingParticipated !== true || biddingStatus === 'vendor_selected'} > 발주비율 산정 {vendor.isBiddingParticipated !== true && ( <span className="text-xs text-muted-foreground ml-2">(입찰참여 필요)</span> )} + {biddingStatus === 'vendor_selected' && ( + <span className="text-xs text-muted-foreground ml-2">(낙찰 완료)</span> + )} </DropdownMenuItem> {/* 입찰 참여여부 관리 */} |
