From b5c174429548a53e5c86a13bdbfc61516e5ee345 Mon Sep 17 00:00:00 2001
From: dujinkim <dujin.kim@dtsolution.co.kr>
Date: Tue, 9 Dec 2025 03:04:05 +0000
Subject: (최겸) 구매 구매자서명 내 삼성중공업 정보 입력 추가
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 lib/pq/pq-review-table-new/vendors-table-toolbar-actions.tsx | 3 +++
 1 file changed, 3 insertions(+)

(limited to 'lib/pq/pq-review-table-new/vendors-table-toolbar-actions.tsx')

diff --git a/lib/pq/pq-review-table-new/vendors-table-toolbar-actions.tsx b/lib/pq/pq-review-table-new/vendors-table-toolbar-actions.tsx
index 4584e772..a9d37a4b 100644
--- a/lib/pq/pq-review-table-new/vendors-table-toolbar-actions.tsx
+++ b/lib/pq/pq-review-table-new/vendors-table-toolbar-actions.tsx
@@ -38,6 +38,7 @@ interface InvestigationInitialData {
   createdAt?: Date;
   investigationAddress?: string;
   investigationNotes?: string;
+  vendorCountry?: string | null;
 }
 
 export function VendorsTableToolbarActions({ table }: VendorsTableToolbarActionsProps) {
@@ -87,6 +88,7 @@ const handleOpenRequestDialog = async () => {
     // 선택된 행이 정확히 1개인 경우에만 초기값 설정
     if (selectedRows.length === 1) {
       const row = selectedRows[0].original;
+        initialData.vendorCountry = row.vendorCountry ?? null;
       
       // 승인된 PQ이고 아직 실사가 없는 경우
       if (row.status === "APPROVED" && !row.investigation) {
@@ -784,6 +786,7 @@ const handleOpenRequestDialog = async () => {
         onSubmit={handleRequestInvestigation}
         selectedCount={approvedPQsCount}
         initialData={dialogInitialData} // 초기 데이터 전달
+        vendorCountry={dialogInitialData?.vendorCountry}
       />
 
 
-- 
cgit v1.2.3

