From e84cf02a1cb4959a9d3bb5bbf37885c13a447f78 Mon Sep 17 00:00:00 2001
From: joonhoekim <26rote@gmail.com>
Date: Mon, 13 Oct 2025 17:29:33 +0900
Subject: (김준회) SHI/벤더 PO 구현
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 lib/po/vendor-table/vendor-po-toolbar-actions.tsx | 61 ++++++++++-------------
 1 file changed, 26 insertions(+), 35 deletions(-)

(limited to 'lib/po/vendor-table/vendor-po-toolbar-actions.tsx')

diff --git a/lib/po/vendor-table/vendor-po-toolbar-actions.tsx b/lib/po/vendor-table/vendor-po-toolbar-actions.tsx
index 800a9e40..86e4379f 100644
--- a/lib/po/vendor-table/vendor-po-toolbar-actions.tsx
+++ b/lib/po/vendor-table/vendor-po-toolbar-actions.tsx
@@ -34,15 +34,15 @@ interface VendorPOToolbarActionsProps {
   onViewItems?: (po: VendorPO) => void
 }
 
-export function VendorPOToolbarActions({ 
-  table, 
-  selectedRows, 
+export function VendorPOToolbarActions({
+  table,
+  selectedRows,
   onAction,
   onViewItems
 }: VendorPOToolbarActionsProps) {
   const hasSelectedRow = selectedRows.length === 1
-  const selectedPO = hasSelectedRow ? 
-    table.getRowModel().rows.find(row => selectedRows.includes(row.original.id))?.original 
+  const selectedPO = hasSelectedRow ?
+    table.getRowModel().rows.find(row => selectedRows.includes(row.original.id))?.original
     : null
 
   const handleToolbarAction = async (action: string) => {
@@ -65,18 +65,18 @@ export function VendorPOToolbarActions({
   return (
     <div className="flex items-center gap-2">
       {/* 주요 액션 버튼들 */}
-      <TooltipProvider>
+      {/* <TooltipProvider>
         <Tooltip>
           <TooltipTrigger asChild>
-                          <Button
-                variant="default"
-                size="sm"
-                onClick={() => handleToolbarAction("pcr-create")}
-                disabled={!hasSelectedRow}
-                className="h-8"
-              >
-                PCR생성
-              </Button>
+            <Button
+              variant="default"
+              size="sm"
+              onClick={() => handleToolbarAction("pcr-create")}
+              disabled={!hasSelectedRow}
+              className="h-8"
+            >
+              PCR생성
+            </Button>
           </TooltipTrigger>
           <TooltipContent>선택된 PO에 대한 PCR을 생성합니다</TooltipContent>
         </Tooltip>
@@ -97,10 +97,10 @@ export function VendorPOToolbarActions({
           </TooltipTrigger>
           <TooltipContent>상세품목 현황을 확인합니다</TooltipContent>
         </Tooltip>
-      </TooltipProvider>
+      </TooltipProvider> */}
 
       {/* 승인 관련 액션 */}
-      {selectedPO?.contractStatus !== "승인완료" && (
+      {/* {selectedPO?.contractStatus !== "승인완료" && (
         <TooltipProvider>
           <Tooltip>
             <TooltipTrigger asChild>
@@ -136,10 +136,10 @@ export function VendorPOToolbarActions({
             <TooltipContent>승인을 취소합니다</TooltipContent>
           </Tooltip>
         </TooltipProvider>
-      )}
+      )} */}
 
       {/* 더 많은 액션 드롭다운 */}
-      <DropdownMenu>
+      {/* <DropdownMenu>
         <DropdownMenuTrigger asChild>
           <Button
             variant="outline"
@@ -153,7 +153,7 @@ export function VendorPOToolbarActions({
         <DropdownMenuContent align="end" className="w-[200px]">
           <DropdownMenuLabel>계약 관련</DropdownMenuLabel>
           <DropdownMenuSeparator />
-          
+
           <DropdownMenuItem
             onClick={() => handleToolbarAction("contract-detail")}
             disabled={!hasSelectedRow}
@@ -161,7 +161,7 @@ export function VendorPOToolbarActions({
             <EyeIcon className="mr-2 h-4 w-4" />
             계약상세
           </DropdownMenuItem>
-          
+
           <DropdownMenuItem
             onClick={() => handleToolbarAction("po-note")}
             disabled={!hasSelectedRow}
@@ -169,7 +169,7 @@ export function VendorPOToolbarActions({
             <EditIcon className="mr-2 h-4 w-4" />
             PO Note
           </DropdownMenuItem>
-          
+
           <DropdownMenuItem
             onClick={() => handleToolbarAction("price-index")}
             disabled={!hasSelectedRow}
@@ -179,7 +179,7 @@ export function VendorPOToolbarActions({
           </DropdownMenuItem>
 
           <DropdownMenuSeparator />
-          
+
           <DropdownMenuItem
             onClick={() => handleToolbarAction("reject-contract")}
             disabled={!hasSelectedRow}
@@ -188,9 +188,9 @@ export function VendorPOToolbarActions({
             <FileXIcon className="mr-2 h-4 w-4" />
             계약거절
           </DropdownMenuItem>
-          
+
           <DropdownMenuSeparator />
-          
+
           <DropdownMenuItem
             onClick={() => handleToolbarAction("print-contract")}
             disabled={!hasSelectedRow}
@@ -199,16 +199,7 @@ export function VendorPOToolbarActions({
             계약서출력
           </DropdownMenuItem>
         </DropdownMenuContent>
-      </DropdownMenu>
-
-      {/* 선택된 행 정보 표시
-      {hasSelectedRow && selectedPO && (
-        <div className="flex items-center gap-2 ml-4 text-sm text-muted-foreground">
-          <span>선택됨:</span>
-          <span className="font-medium">{selectedPO.contractNo}</span>
-          <span>({selectedPO.contractName})</span>
-        </div>
-      )} */}
+      </DropdownMenu> */}
     </div>
   )
 }
-- 
cgit v1.2.3

