From 6c11fccc84f4c84fa72ee01f9caad9f76f35cea2 Mon Sep 17 00:00:00 2001 From: dujinkim Date: Tue, 16 Sep 2025 09:20:58 +0000 Subject: (대표님, 최겸) 계약, 업로드 관련, 메뉴처리, 입찰, 프리쿼트, rfqLast관련, tbeLast관련 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/rfq-last/vendor/rfq-vendor-table.tsx | 29 ++++++++++------------------- 1 file changed, 10 insertions(+), 19 deletions(-) (limited to 'lib/rfq-last/vendor') diff --git a/lib/rfq-last/vendor/rfq-vendor-table.tsx b/lib/rfq-last/vendor/rfq-vendor-table.tsx index d451b2ba..88ae968a 100644 --- a/lib/rfq-last/vendor/rfq-vendor-table.tsx +++ b/lib/rfq-last/vendor/rfq-vendor-table.tsx @@ -349,10 +349,14 @@ export function RfqVendorTable({ setIsLoadingSendData(true); // 선택된 벤더 ID들 추출 - const selectedVendorIds = selectedRows + const selectedVendorIds = rfqCode?.startsWith("I")? selectedRows .filter(v=>v.shortList) .map(row => row.vendorId) - .filter(id => id != null); + .filter(id => id != null) : + selectedRows + .map(row => row.vendorId) + .filter(id => id != null) + if (selectedVendorIds.length === 0) { toast.error("유효한 벤더가 선택되지 않았습니다."); @@ -1029,7 +1033,7 @@ export function RfqVendorTable({ }, size: 80, }, - { + ...(rfqCode?.startsWith("I") ? [{ accessorKey: "shortList", header: ({ column }) => , cell: ({ row }) => ( @@ -1040,22 +1044,7 @@ export function RfqVendorTable({ ) ), size: 80, - }, - { - accessorKey: "updatedAt", - header: ({ column }) => , - cell: ({ row }) => { - const date = row.original.updatedAt; - return date ? ( - - {format(new Date(date), "MM-dd HH:mm")} - - ) : ( - - - ); - }, - size: 100, - }, + }] : []), { accessorKey: "updatedByUserName", header: ({ column }) => , @@ -1217,6 +1206,7 @@ export function RfqVendorTable({ {selectedRows.length > 0 && ( <> {/* Short List 확정 버튼 */} + {rfqCode?.startsWith("I")&& + } {/* 견적 비교 버튼 */}