From 4c2d4c235bd80368e31cae9c375e9a585f6a6844 Mon Sep 17 00:00:00 2001 From: dujinkim Date: Thu, 25 Sep 2025 03:28:27 +0000 Subject: (대표님) archiver 추가, 데이터룸구현 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../plant/document-stage-dialogs.tsx | 169 +++++++++++---------- 1 file changed, 90 insertions(+), 79 deletions(-) (limited to 'lib/vendor-document-list') diff --git a/lib/vendor-document-list/plant/document-stage-dialogs.tsx b/lib/vendor-document-list/plant/document-stage-dialogs.tsx index 4c1861b9..14035562 100644 --- a/lib/vendor-document-list/plant/document-stage-dialogs.tsx +++ b/lib/vendor-document-list/plant/document-stage-dialogs.tsx @@ -429,7 +429,7 @@ React.useEffect(() => { {/* Document Number Preview */}
{generatePreviewDocNumber()} @@ -525,85 +525,96 @@ React.useEffect(() => { ) } - return ( - - - - Add New Document - - Enter the basic information for the new document. - - + return ( + + + + Add New Document + + Enter the basic information for the new document. + + + + {!shiType && !cpyType ? ( +
+ + + + Required Document Number Type (SHI, CPY) is not configured. Please configure it first in the Number Types management. + + +
+ ) : ( + <> + handleTabChange(v as "SHI" | "CPY")} + className="flex-1 min-h-0 flex flex-col" + > + {/* 고정 영역 */} + + + SHI (Document No.) + {!shiType && } + + + CPY (Project Document No.) + {!cpyType && } + + + + {/* 스크롤 영역 */} +
+ + {shiType ? ( + + ) : ( + + + + SHI Document Number Type is not configured. + + + )} + - {!shiType && !cpyType ? ( -
- - - - 필수 Document Number Type (SHI, CPY)이 설정되지 않았습니다. - 먼저 Number Types 관리에서 설정해주세요. - - + + {cpyType ? ( + + ) : ( + + + + CPY Document Number Type is not configured. + + + )} +
- ) : ( - <> - handleTabChange(v as "SHI" | "CPY")} className="flex-1 flex flex-col"> - - - SHI (삼성중공업 도서번호) - {!shiType && } - - - CPY (프로젝트 문서번호) - {!cpyType && } - - - -
- - {shiType ? ( - - ) : ( - - - - SHI Document Number Type이 설정되지 않았습니다. - - - )} - - - - {cpyType ? ( - - ) : ( - - - - CPY Document Number Type이 설정되지 않았습니다. - - - )} - -
-
+ - - - - - - )} - -
+ + + + + + )} +
+
) } // ============================================================================= @@ -736,12 +747,12 @@ export function EditDocumentDialog({ {/* Vendor Document Number (Plant project only) */} {isPlantProject && (
- + setFormData({ ...formData, vendorDocNumber: e.target.value })} - placeholder="Vendor provided document number" + placeholder="Project provided document number" />
)} -- cgit v1.2.3