From 198cbcf93b20d3849705dcdbba439326d82b0cae Mon Sep 17 00:00:00 2001 From: dujinkim 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 + onSendRfq: ( + selectedContacts: SelectedContact[], + options: { hideProjectInfoForVendors: boolean } + ) => Promise } export function VendorContactSelectionDialog({ @@ -63,6 +66,7 @@ export function VendorContactSelectionDialog({ const [selectedContacts, setSelectedContacts] = useState([]) 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({
-
- 총 {selectedContacts.length}명의 연락처가 선택됨 +
+
+ 총 {selectedContacts.length}명의 연락처가 선택됨 +
+