From 198cbcf93b20d3849705dcdbba439326d82b0cae Mon Sep 17 00:00:00 2001
From: dujinkim <dujin.kim@dtsolution.co.kr>
Date: Mon, 8 Dec 2025 03:24:15 +0000
Subject: (최겸) 기술영업 rfq 프로젝트 숨기기 기능 추가
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 .../vendor-contact-selection-dialog.tsx            | 22 ++++++++++++++++++----
 1 file changed, 18 insertions(+), 4 deletions(-)

(limited to 'lib/techsales-rfq/table/detail-table/vendor-contact-selection-dialog.tsx')

diff --git a/lib/techsales-rfq/table/detail-table/vendor-contact-selection-dialog.tsx b/lib/techsales-rfq/table/detail-table/vendor-contact-selection-dialog.tsx
index d83394bb..8daa9be7 100644
--- a/lib/techsales-rfq/table/detail-table/vendor-contact-selection-dialog.tsx
+++ b/lib/techsales-rfq/table/detail-table/vendor-contact-selection-dialog.tsx
@@ -49,7 +49,10 @@ interface VendorContactSelectionDialogProps {
   onOpenChange: (open: boolean) => void
   vendorIds: number[]
   rfqId?: number // RFQ ID 추가
-  onSendRfq: (selectedContacts: SelectedContact[]) => Promise<void>
+  onSendRfq: (
+    selectedContacts: SelectedContact[],
+    options: { hideProjectInfoForVendors: boolean }
+  ) => Promise<void>
 }
 
 export function VendorContactSelectionDialog({
@@ -63,6 +66,7 @@ export function VendorContactSelectionDialog({
   const [selectedContacts, setSelectedContacts] = useState<SelectedContact[]>([])
   const [isLoading, setIsLoading] = useState(false)
   const [isSending, setIsSending] = useState(false)
+  const [hideProjectInfoForVendors, setHideProjectInfoForVendors] = useState(false)
 
   // 벤더 contact 정보 조회
   useEffect(() => {
@@ -77,6 +81,7 @@ export function VendorContactSelectionDialog({
       setVendorsWithContacts({})
       setSelectedContacts([])
       setIsLoading(false)
+      setHideProjectInfoForVendors(false)
     }
   }, [open])
 
@@ -177,7 +182,7 @@ export function VendorContactSelectionDialog({
 
     try {
       setIsSending(true)
-      await onSendRfq(selectedContacts)
+      await onSendRfq(selectedContacts, { hideProjectInfoForVendors })
       onOpenChange(false)
     } catch (error) {
       console.error("RFQ 발송 오류:", error)
@@ -328,8 +333,17 @@ export function VendorContactSelectionDialog({
 
         <DialogFooter>
           <div className="flex items-center justify-between w-full">
-            <div className="text-sm text-muted-foreground">
-              총 {selectedContacts.length}명의 연락처가 선택됨
+            <div className="flex flex-col gap-2">
+              <div className="text-sm text-muted-foreground">
+                총 {selectedContacts.length}명의 연락처가 선택됨
+              </div>
+              <label className="flex items-center gap-2 text-sm">
+                <Checkbox
+                  checked={hideProjectInfoForVendors}
+                  onCheckedChange={(checked) => setHideProjectInfoForVendors(!!checked)}
+                />
+                벤더 화면에서 프로젝트명/선주명을 숨기기
+              </label>
             </div>
             <div className="flex gap-2">
               <Button variant="outline" onClick={() => onOpenChange(false)}>
-- 
cgit v1.2.3

