diff options
| author | dujinkim <dujin.kim@dtsolution.co.kr> | 2025-10-14 08:35:00 +0000 |
|---|---|---|
| committer | dujinkim <dujin.kim@dtsolution.co.kr> | 2025-10-14 08:35:00 +0000 |
| commit | 5fe800c27ff8caabbb0ac64c5dab8062aac43684 (patch) | |
| tree | c2326545a2c10144b2b8334c6cafae07c6328049 /lib/bidding/detail/table/bidding-detail-vendor-columns.tsx | |
| parent | 80ab33adc277904e71dcf8c08e59390600226075 (diff) | |
(최겸) 구매 입찰 status 별 중복 응답 제한 및 기타 요구사항 반영
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> {/* 입찰 참여여부 관리 */} |
