From c8cccaf1198ae48754ac036b579732018f5b448a Mon Sep 17 00:00:00 2001
From: dujinkim <dujin.kim@dtsolution.co.kr>
Date: Thu, 23 Oct 2025 03:30:01 +0000
Subject: (최겸) 기술영업 조선 rfq 수정(벤더, 담당자 임시삭제기능 추가)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 .../quotation-contacts-view-dialog.tsx             | 94 +++++++++++-----------
 1 file changed, 48 insertions(+), 46 deletions(-)

(limited to 'lib/techsales-rfq/table/detail-table/quotation-contacts-view-dialog.tsx')

diff --git a/lib/techsales-rfq/table/detail-table/quotation-contacts-view-dialog.tsx b/lib/techsales-rfq/table/detail-table/quotation-contacts-view-dialog.tsx
index 61c97b1b..608b5670 100644
--- a/lib/techsales-rfq/table/detail-table/quotation-contacts-view-dialog.tsx
+++ b/lib/techsales-rfq/table/detail-table/quotation-contacts-view-dialog.tsx
@@ -109,60 +109,62 @@ export function QuotationContactsViewDialog({
             </div>
           ) : (
             <div className="space-y-3">
-              {contacts.map((contact) => (
-                <div
-                  key={contact.id}
-                  className="flex items-center justify-between p-4 border rounded-lg bg-gray-50"
-                >
-                  <div className="flex items-center gap-3">
-                    <User className="size-4 text-muted-foreground" />
-                    <div>
-                      <div className="flex items-center gap-2">
-                        <span className="font-medium">{contact.contactName}</span>
-                        {contact.isPrimary && (
-                          <Badge variant="secondary" className="text-xs">
-                            주담당자
-                          </Badge>
+              {contacts
+                .filter((contact) => contact.contactTitle) // contactTitle이 있는 담당자만 필터링 (체크표시된 담당자)
+                .map((contact) => (
+                  <div
+                    key={contact.id}
+                    className="flex items-center justify-between p-4 border rounded-lg bg-gray-50"
+                  >
+                    <div className="flex items-center gap-3">
+                      <User className="size-4 text-muted-foreground" />
+                      <div>
+                        <div className="flex items-center gap-2">
+                          <span className="font-medium">{contact.contactName}</span>
+                          {contact.isPrimary && (
+                            <Badge variant="secondary" className="text-xs">
+                              주담당자
+                            </Badge>
+                          )}
+                        </div>
+                        {contact.contactPosition && (
+                          <p className="text-sm text-muted-foreground">
+                            {contact.contactPosition}
+                          </p>
+                        )}
+                        {contact.contactTitle && (
+                          <p className="text-sm text-muted-foreground">
+                            {contact.contactTitle}
+                          </p>
+                        )}
+                        {contact.contactCountry && (
+                          <p className="text-xs text-muted-foreground">
+                            {contact.contactCountry}
+                          </p>
                         )}
                       </div>
-                      {contact.contactPosition && (
-                        <p className="text-sm text-muted-foreground">
-                          {contact.contactPosition}
-                        </p>
-                      )}
-                      {contact.contactTitle && (
-                        <p className="text-sm text-muted-foreground">
-                          {contact.contactTitle}
-                        </p>
-                      )}
-                      {contact.contactCountry && (
-                        <p className="text-xs text-muted-foreground">
-                          {contact.contactCountry}
-                        </p>
-                      )}
-                    </div>
-                  </div>
-                  
-                  <div className="flex flex-col items-end gap-1 text-sm">
-                    <div className="flex items-center gap-1">
-                      <Mail className="size-4 text-muted-foreground" />
-                      <span>{contact.contactEmail}</span>
                     </div>
-                    {contact.contactPhone && (
+
+                    <div className="flex flex-col items-end gap-1 text-sm">
                       <div className="flex items-center gap-1">
-                        <Phone className="size-4 text-muted-foreground" />
-                        <span>{contact.contactPhone}</span>
+                        <Mail className="size-4 text-muted-foreground" />
+                        <span>{contact.contactEmail}</span>
+                      </div>
+                      {contact.contactPhone && (
+                        <div className="flex items-center gap-1">
+                          <Phone className="size-4 text-muted-foreground" />
+                          <span>{contact.contactPhone}</span>
+                        </div>
+                      )}
+                      <div className="text-xs text-muted-foreground">
+                        발송일: {new Date(contact.createdAt).toLocaleDateString('ko-KR')}
                       </div>
-                    )}
-                    <div className="text-xs text-muted-foreground">
-                      발송일: {new Date(contact.createdAt).toLocaleDateString('ko-KR')}
                     </div>
                   </div>
-                </div>
-              ))}
-              
+                ))}
+
               <div className="text-center pt-4 text-sm text-muted-foreground border-t">
-                총 {contacts.length}명의 담당자에게 발송됨
+                총 {contacts.filter((contact) => contact.contactTitle).length}명의 담당자에게 발송됨
               </div>
             </div>
           )}
-- 
cgit v1.2.3

