From 4a077640becddf65ac2dc98451c5c83aa70108f8 Mon Sep 17 00:00:00 2001
From: dujinkim <dujin.kim@dtsolution.co.kr>
Date: Mon, 17 Nov 2025 08:09:08 +0000
Subject: (임수민) 협력업체 정기평가 수정
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 lib/evaluation/table/evaluation-details-dialog.tsx | 74 ++++++++++++++++++++++
 1 file changed, 74 insertions(+)

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

diff --git a/lib/evaluation/table/evaluation-details-dialog.tsx b/lib/evaluation/table/evaluation-details-dialog.tsx
index 2f682402..fe7c204a 100644
--- a/lib/evaluation/table/evaluation-details-dialog.tsx
+++ b/lib/evaluation/table/evaluation-details-dialog.tsx
@@ -228,6 +228,80 @@ export function EvaluationDetailsDialog({
                   </div>
                 </div>
 
+                {/* 🔄 조선/해양 취합 정보 (동시 평가인 경우) */}
+                {evaluationDetails?.consolidatedInfo && (
+                  <div className="mt-4 p-4 bg-blue-50 border border-blue-200 rounded-md">
+                    <div className="flex items-center gap-2 mb-3">
+                      <BarChart3 className="h-5 w-5 text-blue-600" />
+                      <span className="font-semibold text-blue-900">조선/해양 취합 결과</span>
+                    </div>
+                    <div className="grid grid-cols-1 md:grid-cols-3 gap-4 text-sm">
+                      {/* 조선 점수 */}
+                      <div className="space-y-1">
+                        <div className="text-muted-foreground">조선 확정점수/등급</div>
+                        <div className="flex items-center gap-1">
+                          {evaluationDetails.consolidatedInfo.shipbuildingScore !== null ? (
+                            <>
+                              <span className="font-bold text-blue-700">
+                                {evaluationDetails.consolidatedInfo.shipbuildingScore.toFixed(1)}점
+                              </span>
+                              {evaluationDetails.consolidatedInfo.shipbuildingGrade && (
+                                <Badge variant="outline" className="text-xs h-5">
+                                  {evaluationDetails.consolidatedInfo.shipbuildingGrade}
+                                </Badge>
+                              )}
+                            </>
+                          ) : (
+                            <span className="text-muted-foreground">-</span>
+                          )}
+                        </div>
+                      </div>
+
+                      {/* 해양 점수 */}
+                      <div className="space-y-1">
+                        <div className="text-muted-foreground">해양 확정점수/등급</div>
+                        <div className="flex items-center gap-1">
+                          {evaluationDetails.consolidatedInfo.offshoreScore !== null ? (
+                            <>
+                              <span className="font-bold text-blue-700">
+                                {evaluationDetails.consolidatedInfo.offshoreScore.toFixed(1)}점
+                              </span>
+                              {evaluationDetails.consolidatedInfo.offshoreGrade && (
+                                <Badge variant="outline" className="text-xs h-5">
+                                  {evaluationDetails.consolidatedInfo.offshoreGrade}
+                                </Badge>
+                              )}
+                            </>
+                          ) : (
+                            <span className="text-muted-foreground">-</span>
+                          )}
+                        </div>
+                      </div>
+
+                      {/* 취합 점수 (50% 반영) */}
+                      <div className="space-y-1">
+                        <div className="text-muted-foreground">취합 점수/등급 (50% 반영)</div>
+                        <div className="flex items-center gap-1">
+                          {evaluationDetails.consolidatedInfo.consolidatedScore !== null ? (
+                            <>
+                              <span className="font-bold text-purple-700 text-base">
+                                {evaluationDetails.consolidatedInfo.consolidatedScore.toFixed(1)}점
+                              </span>
+                              {evaluationDetails.consolidatedInfo.consolidatedGrade && (
+                                <Badge variant="default" className="bg-purple-600 text-xs h-5">
+                                  {evaluationDetails.consolidatedInfo.consolidatedGrade}
+                                </Badge>
+                              )}
+                            </>
+                          ) : (
+                            <span className="text-muted-foreground">-</span>
+                          )}
+                        </div>
+                      </div>
+                    </div>
+                  </div>
+                )}
+
                 </CardContent>
             </Card>
           </DialogHeader>
-- 
cgit v1.2.3

