From e484964b1d78cedabbe182c789a8e4c9b53e29d3 Mon Sep 17 00:00:00 2001
From: joonhoekim <26rote@gmail.com>
Date: Thu, 29 May 2025 05:12:36 +0000
Subject: (김준회) 기술영업 조선 RFQ 파일첨부 및 채팅 기능 구현 / menuConfig
 수정 (벤더 기술영업)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 .../table/detail-table/rfq-detail-column.tsx            | 17 ++++++++++++++---
 1 file changed, 14 insertions(+), 3 deletions(-)

(limited to 'lib/techsales-rfq/table/detail-table/rfq-detail-column.tsx')

diff --git a/lib/techsales-rfq/table/detail-table/rfq-detail-column.tsx b/lib/techsales-rfq/table/detail-table/rfq-detail-column.tsx
index c4a7edde..cfae0bd7 100644
--- a/lib/techsales-rfq/table/detail-table/rfq-detail-column.tsx
+++ b/lib/techsales-rfq/table/detail-table/rfq-detail-column.tsx
@@ -14,10 +14,11 @@ import { Checkbox } from "@/components/ui/checkbox";
 import { Ellipsis, MessageCircle } from "lucide-react";
 import { Button } from "@/components/ui/button";
 import { Badge } from "@/components/ui/badge";
+import { useRouter } from "next/navigation";
 
 export interface DataTableRowAction<TData> {
   row: Row<TData>;
-  type: "delete" | "update" | "communicate"; 
+  type: "delete" | "communicate"; 
 }
 
 // 벤더 견적 데이터 타입 정의
@@ -232,6 +233,13 @@ export function getRfqDetailColumns({
       cell: function Cell({ row }) {
         const vendorId = row.original.vendorId;
         const unreadCount = vendorId ? unreadMessages[vendorId] || 0 : 0;
+        const router = useRouter();
+        
+        const handleViewDetails = () => {
+          if (vendorId) {
+            router.push(`/ko/evcp/vendors/${vendorId}/info`);
+          }
+        };
         
         return (
           <div className="text-right flex items-center justify-end gap-1">
@@ -269,9 +277,12 @@ export function getRfqDetailColumns({
               </DropdownMenuTrigger>
               <DropdownMenuContent align="end" className="w-[160px]">
                 <DropdownMenuItem
-                  onClick={() => setRowAction({ row, type: "update" })}
+                  onClick={handleViewDetails}
+                  disabled={!vendorId}
+                  className="gap-2"
                 >
-                  벤더 수정
+                  {/* <Eye className="h-4 w-4" /> */}
+                  벤더 상세정보
                 </DropdownMenuItem>
                 <DropdownMenuItem
                   onClick={() => setRowAction({ row, type: "delete" })}
-- 
cgit v1.2.3

