diff options
Diffstat (limited to 'lib/rfq-last/vendor/rfq-vendor-table.tsx')
| -rw-r--r-- | lib/rfq-last/vendor/rfq-vendor-table.tsx | 29 |
1 files changed, 10 insertions, 19 deletions
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 }) => <ClientDataTableColumnHeaderSimple column={column} title="Short List" />, cell: ({ row }) => ( @@ -1040,22 +1044,7 @@ export function RfqVendorTable({ ) ), size: 80, - }, - { - accessorKey: "updatedAt", - header: ({ column }) => <ClientDataTableColumnHeaderSimple column={column} title="최신수정일" />, - cell: ({ row }) => { - const date = row.original.updatedAt; - return date ? ( - <span className="text-xs text-muted-foreground"> - {format(new Date(date), "MM-dd HH:mm")} - </span> - ) : ( - <span className="text-muted-foreground">-</span> - ); - }, - size: 100, - }, + }] : []), { accessorKey: "updatedByUserName", header: ({ column }) => <ClientDataTableColumnHeaderSimple column={column} title="최신수정자" />, @@ -1217,6 +1206,7 @@ export function RfqVendorTable({ {selectedRows.length > 0 && ( <> {/* Short List 확정 버튼 */} + {rfqCode?.startsWith("I")&& <Button variant="outline" size="sm" @@ -1237,6 +1227,7 @@ export function RfqVendorTable({ </> )} </Button> + } {/* 견적 비교 버튼 */} <Button |
