From 0174ad394032a8dad81107341f477d6d23a3c04c Mon Sep 17 00:00:00 2001
From: dujinkim <dujin.kim@dtsolution.co.kr>
Date: Fri, 24 Oct 2025 09:52:35 +0000
Subject: (최겸) 구매 피드백 수정(PQ, 실사 등)-1024
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 lib/vendor-investigation/table/investigation-table-columns.tsx | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

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

diff --git a/lib/vendor-investigation/table/investigation-table-columns.tsx b/lib/vendor-investigation/table/investigation-table-columns.tsx
index a6c1574d..b5344a1e 100644
--- a/lib/vendor-investigation/table/investigation-table-columns.tsx
+++ b/lib/vendor-investigation/table/investigation-table-columns.tsx
@@ -84,13 +84,18 @@ export function getColumns({
     id: "actions",
     enableHiding: false,
     cell: ({ row }) => {
+      const isCanceled = row.original.investigationStatus === "CANCELED"
+      const isCompleted = row.original.investigationStatus === "COMPLETED"
       return (
         <Button
           variant="ghost"
           className="flex size-8 p-0 data-[state=open]:bg-muted"
           aria-label="실사 정보 수정"
+          disabled={isCanceled}
           onClick={() => {
-            setRowAction?.({ type: "update", row })
+            if (!isCanceled || !isCompleted) {
+              setRowAction?.({ type: "update", row })
+            }
           }}
         >
           <Edit className="size-4" aria-hidden="true" />
-- 
cgit v1.2.3

