From aedd7f919be958d1dec4e8621804e603d2de0dea Mon Sep 17 00:00:00 2001
From: dujinkim <dujin.kim@dtsolution.co.kr>
Date: Tue, 9 Dec 2025 04:27:42 +0000
Subject: (최겸) 구매 정규업체등록관리 수정(안전적격성 평가 기능 삭제)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 .../vendor-regular-registrations-table-columns.tsx | 25 +---------------------
 1 file changed, 1 insertion(+), 24 deletions(-)

(limited to 'lib/vendor-regular-registrations/table/vendor-regular-registrations-table-columns.tsx')

diff --git a/lib/vendor-regular-registrations/table/vendor-regular-registrations-table-columns.tsx b/lib/vendor-regular-registrations/table/vendor-regular-registrations-table-columns.tsx
index 075724a2..2e3920af 100644
--- a/lib/vendor-regular-registrations/table/vendor-regular-registrations-table-columns.tsx
+++ b/lib/vendor-regular-registrations/table/vendor-regular-registrations-table-columns.tsx
@@ -10,9 +10,8 @@ import { VendorRegularRegistration, statusLabels, statusColors } from "@/config/
 import { DocumentStatusDialog } from "@/components/vendor-regular-registrations/document-status-dialog"
 import { Button } from "@/components/ui/button"
 import { DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuTrigger } from "@/components/ui/dropdown-menu"
-import { Ellipsis, Shield, Package } from "lucide-react"
+import { Ellipsis, Package } from "lucide-react"
 import { useState } from "react"
-import { SafetyQualificationUpdateDialog } from "./safety-qualification-update-dialog"
 import { MajorItemsUpdateDialog } from "./major-items-update-dialog"
 
 export function getColumns(): ColumnDef<VendorRegularRegistration>[] {
@@ -177,9 +176,6 @@ export function getColumns(): ColumnDef<VendorRegularRegistration>[] {
           const completedContracts = registration.basicContracts?.filter(c => c.status === "VENDOR_SIGNED" || c.status === "COMPLETED").length || 0
           const incompleteContracts = totalContracts - completedContracts
           
-          // 안전적격성 평가 현황
-          const safetyCompleted = !!registration.safetyQualificationContent
-          
           // 추가정보 현황
           const additionalInfoCompleted = registration.additionalInfo
           
@@ -187,7 +183,6 @@ export function getColumns(): ColumnDef<VendorRegularRegistration>[] {
           const totalIncomplete = 
             (incompleteDocs > 0 ? 1 : 0) +
             incompleteContracts +
-            (!safetyCompleted ? 1 : 0) +
             (!additionalInfoCompleted ? 1 : 0)
           
           const isAllComplete = totalIncomplete === 0
@@ -260,7 +255,6 @@ export function getColumns(): ColumnDef<VendorRegularRegistration>[] {
       id: "actions",
       cell: ({ row }) => {
         const ActionsDropdownCell = () => {
-          const [safetyQualificationSheetOpen, setSafetyQualificationSheetOpen] = useState(false)
           const [majorItemsSheetOpen, setMajorItemsSheetOpen] = useState(false)
           const registration = row.original
 
@@ -277,12 +271,6 @@ export function getColumns(): ColumnDef<VendorRegularRegistration>[] {
                   </Button>
                 </DropdownMenuTrigger>
                 <DropdownMenuContent align="end" className="w-[160px]">
-                  <DropdownMenuItem
-                    onClick={() => setSafetyQualificationSheetOpen(true)}
-                  >
-                    <Shield className="mr-2 h-4 w-4" />
-                    안전적격성 평가
-                  </DropdownMenuItem>
                   <DropdownMenuItem
                     onClick={() => setMajorItemsSheetOpen(true)}
                   >
@@ -292,17 +280,6 @@ export function getColumns(): ColumnDef<VendorRegularRegistration>[] {
 
                 </DropdownMenuContent>
               </DropdownMenu>
-              <SafetyQualificationUpdateDialog
-                open={safetyQualificationSheetOpen}
-                onOpenChange={setSafetyQualificationSheetOpen}
-                registrationId={registration.id}
-                vendorName={registration.companyName}
-                currentContent={registration.safetyQualificationContent}
-                onSuccess={() => {
-                  // 페이지 새로고침 또는 데이터 리페치
-                  window.location.reload()
-                }}
-              />
               <MajorItemsUpdateDialog
                 open={majorItemsSheetOpen}
                 onOpenChange={setMajorItemsSheetOpen}
-- 
cgit v1.2.3

