From 21a72eeddc74cf775e2a76e2c569de970bd62a7f Mon Sep 17 00:00:00 2001 From: dujinkim Date: Fri, 28 Mar 2025 06:12:57 +0000 Subject: 기만프로 포매팅 revert MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/documents/StageList.tsx | 2 +- components/documents/view-document-dialog.tsx | 34 +++++++++++++-------------- 2 files changed, 18 insertions(+), 18 deletions(-) (limited to 'components/documents') diff --git a/components/documents/StageList.tsx b/components/documents/StageList.tsx index 6df448df..81f8a5ca 100644 --- a/components/documents/StageList.tsx +++ b/components/documents/StageList.tsx @@ -55,7 +55,7 @@ interface Version { approvedDate: string | null DocumentSubmitDate: Date attachments: Attachment[] - selected?: boolean; + selected?: boolean } export default function StageList({ document }: StageListProps) { diff --git a/components/documents/view-document-dialog.tsx b/components/documents/view-document-dialog.tsx index bd802b77..e08bc4e2 100644 --- a/components/documents/view-document-dialog.tsx +++ b/components/documents/view-document-dialog.tsx @@ -18,27 +18,27 @@ interface Attachment { } interface Version { - id: number; - stage: string; - revision: string; - uploaderType: string; - uploaderName: string | null; - comment: string | null; - status: string | null; - planDate: string | null; - actualDate: string | null; - approvedDate: string | null; - DocumentSubmitDate: Date; - attachments: Attachment[]; - selected?: boolean; + id: number + stage: string + revision: string + uploaderType: string + uploaderName: string | null + comment: string | null + status: string | null + planDate: string | null + actualDate: string | null + approvedDate: string | null + DocumentSubmitDate: Date + attachments: Attachment[] + selected?: boolean } type ViewDocumentDialogProps = { - versions: Version[]; -}; + versions: Version[] +} export function ViewDocumentDialog({ versions }: ViewDocumentDialogProps) { - const [open, setOpen] = React.useState(false); + const [open, setOpen] = React.useState(false) return ( <> @@ -101,7 +101,7 @@ const DocumentViewer: React.FC<{ requestAnimationFrame(() => { if (viewer.current) { import("@pdftron/webviewer").then(({ default: WebViewer }) => { - console.log(isCancelled.current); + console.log(isCancelled.current) if (isCancelled.current) { console.log("📛 WebViewer 초기화 취소됨 (Dialog 닫힘)"); -- cgit v1.2.3 From 311ba2c57fe75ef378bf272c4ccf9fdee7843973 Mon Sep 17 00:00:00 2001 From: rlaks5757 Date: Fri, 28 Mar 2025 16:25:13 +0900 Subject: vendor-document-viewer select row 수정 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/documents/StageList.tsx | 5 ++--- components/documents/view-document-dialog.tsx | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) (limited to 'components/documents') diff --git a/components/documents/StageList.tsx b/components/documents/StageList.tsx index 81f8a5ca..97c8faad 100644 --- a/components/documents/StageList.tsx +++ b/components/documents/StageList.tsx @@ -130,7 +130,7 @@ console.log(versions) } } - const selectItems = useMemo(() => { + const selectItems = useMemo(() => { return versions.filter(c => c.selected && c.attachments && c.attachments.length > 0) }, [versions]) @@ -142,9 +142,8 @@ console.log(versions) Document: {document.docNumber} {document.title} -
- {selectItems.length > 0 && } + {selectItems.length > 0 && } 0) { await UI.TabManager.setActiveTab(tabIds[0]); - } + } setFileSetLoading(false); } -- cgit v1.2.3 From 3e47b8275454452324e3b6a7607f2db361110b0e Mon Sep 17 00:00:00 2001 From: rlaks5757 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 --- components/documents/StageList.tsx | 2 - .../form-data/form-data-report-batch-dialog.tsx | 33 +- components/form-data/form-data-report-dialog.tsx | 10 +- .../form-data-report-temp-upload-dialog.tsx | 453 ++++++++++++--------- components/form-data/form-data-table-columns.tsx | 2 +- components/form-data/form-data-table.tsx | 6 +- 6 files changed, 283 insertions(+), 223 deletions(-) (limited to 'components/documents') diff --git a/components/documents/StageList.tsx b/components/documents/StageList.tsx index 97c8faad..8d82b741 100644 --- a/components/documents/StageList.tsx +++ b/components/documents/StageList.tsx @@ -61,8 +61,6 @@ interface Version { export default function StageList({ document }: StageListProps) { const [versions, setVersions] = useState([]) -console.log(versions) - const [stageOptions, setStageOptions] = useState([]) const [isLoading, setIsLoading] = useState(false) 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 = ({ setIsUploading(true); try { - const origin = await getOrigin() + const origin = await getOrigin(); const targetFiles = selectedFiles[0]; @@ -162,13 +162,13 @@ export const FormDataReportBatchDialog: FC = ({ 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 = ({ }); } finally { setIsUploading(false); - setSelectedFiles([]) - setOpen(false) + setSelectedFiles([]); + setOpen(false); } }; @@ -188,13 +188,14 @@ export const FormDataReportBatchDialog: FC = ({ - Batch Report Download + Vendor Document Create - Report Template을 선택하신 후 갑지를 업로드하여 주시기 바랍니다. + Vendor Document Template을 선택하신 후 갑지를 업로드하여 주시기 + 바랍니다.
- +
- + = ({ diff --git a/components/form-data/form-data-report-dialog.tsx b/components/form-data/form-data-report-dialog.tsx index e28b4345..52262bf5 100644 --- a/components/form-data/form-data-report-dialog.tsx +++ b/components/form-data/form-data-report-dialog.tsx @@ -103,20 +103,20 @@ export const FormDataReportDialog: FC = ({ 0} onOpenChange={onClose}> - Report + Create Vendor Document - 사용하시고자 하는 Report Template를 선택하여 주시기 바랍니다. + 사용하시고자 하는 Vendor Document Template를 선택하여 주시기 바랍니다.
- +