summaryrefslogtreecommitdiff
path: root/lib/pq/pq-review-table-new/vendors-table-toolbar-actions.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'lib/pq/pq-review-table-new/vendors-table-toolbar-actions.tsx')
-rw-r--r--lib/pq/pq-review-table-new/vendors-table-toolbar-actions.tsx3
1 files changed, 3 insertions, 0 deletions
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}
/>