From 8440ac29c7dcbef992039678ecc0fabff2fd04ec Mon Sep 17 00:00:00 2001
From: dujinkim <dujin.kim@dtsolution.co.kr>
Date: Mon, 1 Dec 2025 00:58:23 +0000
Subject: (대표님) S-EDP 관련 대표님 작업사항
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 .../form-data-report-temp-uploaded-list-tab.tsx       | 19 +++++++++++--------
 1 file changed, 11 insertions(+), 8 deletions(-)

(limited to 'components/form-data-plant/form-data-report-temp-uploaded-list-tab.tsx')

diff --git a/components/form-data-plant/form-data-report-temp-uploaded-list-tab.tsx b/components/form-data-plant/form-data-report-temp-uploaded-list-tab.tsx
index 4cfbad69..1b6cefaf 100644
--- a/components/form-data-plant/form-data-report-temp-uploaded-list-tab.tsx
+++ b/components/form-data-plant/form-data-report-temp-uploaded-list-tab.tsx
@@ -39,13 +39,14 @@ import { getReportTempList, deleteReportTempFile } from "@/lib/forms-plant/servi
 import { VendorDataReportTemps } from "@/db/schema/vendorData";
 
 interface FormDataReportTempUploadedListTabProps {
-  packageId: number;
+  projectCode: string;
+  packageCode: string;
   formId: number;
 }
 
 export const FormDataReportTempUploadedListTab: FC<
   FormDataReportTempUploadedListTabProps
-> = ({ packageId, formId }) => {
+> = ({ projectCode,packageCode , formId }) => {
   const params = useParams();
   const lng = (params?.lng as string) || "ko";
   const { t } = useTranslation(lng, "engineering");
@@ -57,12 +58,12 @@ export const FormDataReportTempUploadedListTab: FC<
 
   useEffect(() => {
     const getTempFiles = async () => {
-      await updateReportTempList(packageId, formId, setPrevReportTemp);
+      await updateReportTempList(projectCode,packageCode, formId, setPrevReportTemp);
       setIsLoading(false);
     };
 
     getTempFiles();
-  }, [packageId, formId]);
+  }, [projectCode,packageCode, formId]);
 
   return (
     <div>
@@ -70,7 +71,7 @@ export const FormDataReportTempUploadedListTab: FC<
       <UploadedTempFiles
         prevReportTemp={prevReportTemp}
         updateReportTempList={() =>
-          updateReportTempList(packageId, formId, setPrevReportTemp)
+          updateReportTempList(projectCode,packageCode, formId, setPrevReportTemp)
         }
         isLoading={isLoading}
         t={t}
@@ -80,17 +81,19 @@ export const FormDataReportTempUploadedListTab: FC<
 };
 
 type UpdateReportTempList = (
-  packageId: number,
+  projectCode: string,
+  packageCode: string,
   formId: number,
   setPrevReportTemp: Dispatch<SetStateAction<VendorDataReportTemps[]>>
 ) => Promise<void>;
 
 const updateReportTempList: UpdateReportTempList = async (
-  packageId,
+  projectCode,
+  packageCode,
   formId,
   setPrevReportTemp
 ) => {
-  const tempList = await getReportTempList(packageId, formId);
+  const tempList = await getReportTempList(projectCode, packageCode, formId);
   setPrevReportTemp(tempList);
 };
 
-- 
cgit v1.2.3

