From a78f26bc52a2ff032a8103f36a2a660cefa9fb64 Mon Sep 17 00:00:00 2001
From: joonhoekim <26rote@gmail.com>
Date: Fri, 7 Nov 2025 15:29:36 +0900
Subject: (김준회) 정규벤더 등록요청 결재 연결, 공통컴포넌트(미리보기) 연결,
 MDG 송신 공통함수 사용처리
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 .../table/vendor-regular-registrations-table-toolbar-actions.tsx     | 5 +++++
 1 file changed, 5 insertions(+)

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

diff --git a/lib/vendor-regular-registrations/table/vendor-regular-registrations-table-toolbar-actions.tsx b/lib/vendor-regular-registrations/table/vendor-regular-registrations-table-toolbar-actions.tsx
index f879f065..20cd3427 100644
--- a/lib/vendor-regular-registrations/table/vendor-regular-registrations-table-toolbar-actions.tsx
+++ b/lib/vendor-regular-registrations/table/vendor-regular-registrations-table-toolbar-actions.tsx
@@ -218,6 +218,8 @@ export function VendorRegularRegistrationsTableToolbarActions({
           email: session.user.email || undefined,
         },
         approvers: approvers,
+        attachments: attachments, // 첨부파일 전달
+        title: title, // 미리보기에서 수정한 제목 전달
       });
 
       if (result.status === 'pending_approval') {
@@ -322,6 +324,9 @@ export function VendorRegularRegistrationsTableToolbarActions({
             email: session.user.email || undefined,
           }}
           onConfirm={handleApprovalSubmit}
+          enableAttachments={true}
+          maxAttachments={10}
+          maxFileSize={100 * 1024 * 1024} // 100MB
         />
       )}
     </div>
-- 
cgit v1.2.3

