From 35e373fe29a4145d0692ee35ff9e6b0c887df0eb Mon Sep 17 00:00:00 2001
From: dujinkim <dujin.kim@dtsolution.co.kr>
Date: Wed, 5 Nov 2025 09:38:31 +0000
Subject: (임수민) 정기평가 요청사항 수정 (김태석프로)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 .../table/evaluation-submit-dialog.tsx                    | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

(limited to 'lib/vendor-evaluation-submit/table/evaluation-submit-dialog.tsx')

diff --git a/lib/vendor-evaluation-submit/table/evaluation-submit-dialog.tsx b/lib/vendor-evaluation-submit/table/evaluation-submit-dialog.tsx
index 20ed5f30..a6f62f82 100644
--- a/lib/vendor-evaluation-submit/table/evaluation-submit-dialog.tsx
+++ b/lib/vendor-evaluation-submit/table/evaluation-submit-dialog.tsx
@@ -133,6 +133,11 @@ export function EvaluationSubmissionDialog({
 
   const isKorean = submission?.vendor.countryCode === 'KR'
 
+  // 조선/해양 동시 제출 안내 표시 조건: linkedEvaluations에 서로 다른 division이 2개 이상 존재할 때
+  const hasBothDivisions =
+    Array.isArray(submission?.linkedEvaluations) &&
+    new Set((submission?.linkedEvaluations || []).map((e: any) => e.division)).size > 1
+
   if (isLoading) {
     return (
       <Dialog open={open} onOpenChange={onOpenChange}>
@@ -161,6 +166,16 @@ export function EvaluationSubmissionDialog({
           </DialogDescription>
         </DialogHeader>
 
+        {/* 안내 알림: 조선/해양 동시 제출 (조건부 표시) */}
+        {hasBothDivisions && (
+          <Alert className="mb-4 border-red-300 bg-red-50 text-red-800">
+            <AlertTitle className="text-red-800">안내</AlertTitle>
+            <AlertDescription className="text-red-700">
+              제출 버튼을 누르면 동일 연도/라운드의 조선·해양 평가가 함께 제출 처리됩니다.
+            </AlertDescription>
+          </Alert>
+        )}
+
         {completeness && (
           <div className="space-y-6">
             {/* 전체 완성도 카드 */}
-- 
cgit v1.2.3

