From 3e47b8275454452324e3b6a7607f2db361110b0e Mon Sep 17 00:00:00 2001
From: rlaks5757 <rlaks5757@gmail.com>
Date: Mon, 31 Mar 2025 17:23:48 +0900
Subject: Report -> Vendor Document 문구 수정, Upload Dialog Design Layout 변경
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 .../form-data/form-data-report-batch-dialog.tsx    | 33 +++++++++++++---------
 1 file changed, 19 insertions(+), 14 deletions(-)

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

diff --git a/components/form-data/form-data-report-batch-dialog.tsx b/components/form-data/form-data-report-batch-dialog.tsx
index f4efde64..6a76784c 100644
--- a/components/form-data/form-data-report-batch-dialog.tsx
+++ b/components/form-data/form-data-report-batch-dialog.tsx
@@ -8,10 +8,10 @@ import React, {
   useEffect,
 } from "react";
 import { useToast } from "@/hooks/use-toast";
-import { toast as toastMessage} from "sonner";
+import { toast as toastMessage } from "sonner";
 import prettyBytes from "pretty-bytes";
 import { X, Loader2 } from "lucide-react";
-import { saveAs } from 'file-saver';
+import { saveAs } from "file-saver";
 import { Badge } from "@/components/ui/badge";
 import {
   Dialog,
@@ -129,7 +129,7 @@ export const FormDataReportBatchDialog: FC<FormDataReportBatchDialogProps> = ({
     setIsUploading(true);
 
     try {
-      const origin = await getOrigin()
+      const origin = await getOrigin();
 
       const targetFiles = selectedFiles[0];
 
@@ -162,13 +162,13 @@ export const FormDataReportBatchDialog: FC<FormDataReportBatchDialogProps> = ({
       if (reqeustCreateReport.ok) {
         const blob = await reqeustCreateReport.blob();
 
-        saveAs(blob, `${formCode}.pdf`);        
+        saveAs(blob, `${formCode}.pdf`);
 
-        toastMessage.success("Report 다운로드 완료!")
+        toastMessage.success("Report 다운로드 완료!");
       } else {
         const err = await reqeustCreateReport.json();
         console.error("에러:", err);
-        throw new Error(err.message)
+        throw new Error(err.message);
       }
     } catch (err) {
       console.error(err);
@@ -179,8 +179,8 @@ export const FormDataReportBatchDialog: FC<FormDataReportBatchDialogProps> = ({
       });
     } finally {
       setIsUploading(false);
-      setSelectedFiles([])
-      setOpen(false)
+      setSelectedFiles([]);
+      setOpen(false);
     }
   };
 
@@ -188,13 +188,14 @@ export const FormDataReportBatchDialog: FC<FormDataReportBatchDialogProps> = ({
     <Dialog open={open} onOpenChange={onClose}>
       <DialogContent className="w-[600px]" style={{ maxWidth: "none" }}>
         <DialogHeader>
-          <DialogTitle>Batch Report Download</DialogTitle>
+          <DialogTitle>Vendor Document Create</DialogTitle>
           <DialogDescription>
-            Report Template을 선택하신 후 갑지를 업로드하여 주시기 바랍니다.
+            Vendor Document Template을 선택하신 후 갑지를 업로드하여 주시기
+            바랍니다.
           </DialogDescription>
         </DialogHeader>
         <div className="h-[60px]">
-          <Label>Report Template Select</Label>
+          <Label>Vendor Document Template Select</Label>
           <Select value={selectTemp} onValueChange={setSelectTemp}>
             <SelectTrigger className="w-[100%]">
               <SelectValue placeholder="사용하시고자하는 Report Template를 선택하여 주시기 바랍니다." />
@@ -213,7 +214,7 @@ export const FormDataReportBatchDialog: FC<FormDataReportBatchDialogProps> = ({
           </Select>
         </div>
         <div>
-          <Label>Report Cover Page Upload(.docx)</Label>
+          <Label>Vendor Document Cover Page Upload(.docx)</Label>
           <Dropzone
             maxSize={MAX_FILE_SIZE}
             multiple={false}
@@ -265,10 +266,14 @@ export const FormDataReportBatchDialog: FC<FormDataReportBatchDialogProps> = ({
 
         <DialogFooter>
           <Button
-            disabled={selectedFiles.length === 0 || selectTemp.length === 0 || isUploading}
+            disabled={
+              selectedFiles.length === 0 ||
+              selectTemp.length === 0 ||
+              isUploading
+            }
             onClick={submitData}
           >
-            {isUploading && <Loader2 />}다운로드
+            {isUploading && <Loader2 />}Vendor Document Create
           </Button>
         </DialogFooter>
       </DialogContent>
-- 
cgit v1.2.3

