From b807f0e8007d297ab282a4329bfbdeb3afcb63a7 Mon Sep 17 00:00:00 2001
From: dujinkim <dujin.kim@dtsolution.co.kr>
Date: Wed, 26 Nov 2025 10:13:54 +0000
Subject: (대표님) EDP 작업사항
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 .../form-data-report-batch-dialog.tsx               | 21 +++++++++++++--------
 1 file changed, 13 insertions(+), 8 deletions(-)

(limited to 'components/form-data-plant/form-data-report-batch-dialog.tsx')

diff --git a/components/form-data-plant/form-data-report-batch-dialog.tsx b/components/form-data-plant/form-data-report-batch-dialog.tsx
index 24b5827b..ba41a3c2 100644
--- a/components/form-data-plant/form-data-report-batch-dialog.tsx
+++ b/components/form-data-plant/form-data-report-batch-dialog.tsx
@@ -71,7 +71,8 @@ interface FormDataReportBatchDialogProps {
   setOpen: Dispatch<SetStateAction<boolean>>;
   columnsJSON: DataTableColumnJSON[];
   reportData: ReportData[];
-  packageId: number;
+  projectCode: string;
+  packageCode: string;
   formId: number;
   formCode: string;
 }
@@ -81,7 +82,8 @@ export const FormDataReportBatchDialog: FC<FormDataReportBatchDialogProps> = ({
   setOpen,
   columnsJSON,
   reportData,
-  packageId,
+  projectCode,
+  packageCode,
   formId,
   formCode,
 }) => {
@@ -100,8 +102,8 @@ export const FormDataReportBatchDialog: FC<FormDataReportBatchDialogProps> = ({
   const [generatedFileBlob, setGeneratedFileBlob] = useState<Blob | null>(null);
 
   useEffect(() => {
-    updateReportTempList(packageId, formId, setTempList);
-  }, [packageId, formId]);
+    updateReportTempList(projectCode, packageCode, formId, setTempList);
+  }, [projectCode, packageCode, formId]);
 
   const onClose = () => {
     if (isUploading) {
@@ -361,7 +363,8 @@ export const FormDataReportBatchDialog: FC<FormDataReportBatchDialogProps> = ({
       <PublishDialog
         open={publishDialogOpen}
         onOpenChange={setPublishDialogOpen}
-        packageId={packageId}
+        projectCode={projectCode}
+        packageCode={packageCode}
         formCode={formCode}
         fileBlob={generatedFileBlob || undefined}
       />
@@ -409,17 +412,19 @@ const UploadFileItem: FC<UploadFileItemProps> = ({
 };
 
 type UpdateReportTempList = (
-  packageId: number,
+  projectCode: string,
+  packageCode: string,
   formId: number,
   setPrevReportTemp: Dispatch<SetStateAction<tempFile[]>>
 ) => void;
 
 const updateReportTempList: UpdateReportTempList = async (
-  packageId,
+  projectCode,
+  packageCode,
   formId,
   setTempList
 ) => {
-  const tempList = await getReportTempList(packageId, formId);
+  const tempList = await getReportTempList(projectCode,packageCode, formId);
 
   setTempList(
     tempList.map((c) => {
-- 
cgit v1.2.3

