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-response/detail/project-info-tab.tsx | 13 ++++++++++--- .../table/vendor-quotations-table-columns.tsx | 7 +++++-- 2 files changed, 15 insertions(+), 5 deletions(-) (limited to 'lib/techsales-rfq/vendor-response') diff --git a/lib/techsales-rfq/vendor-response/detail/project-info-tab.tsx b/lib/techsales-rfq/vendor-response/detail/project-info-tab.tsx index 8a45f529..31e87330 100644 --- a/lib/techsales-rfq/vendor-response/detail/project-info-tab.tsx +++ b/lib/techsales-rfq/vendor-response/detail/project-info-tab.tsx @@ -16,6 +16,7 @@ interface ProjectInfoTabProps { dueDate: Date | null status: string | null remark: string | null + hideProjectInfoForVendors?: boolean biddingProject?: { id: number pspid: string | null @@ -110,7 +111,9 @@ export function ProjectInfoTab({ quotation }: ProjectInfoTabProps) { 프로젝트 기본 정보 - {rfq.biddingProject.pspid || "N/A"} + + {rfq.hideProjectInfoForVendors ? "비공개" : (rfq.biddingProject.pspid || "N/A")} + 연결된 프로젝트의 기본 정보 @@ -120,11 +123,15 @@ export function ProjectInfoTab({ quotation }: ProjectInfoTabProps) {
프로젝트 ID
-
{rfq.biddingProject.pspid || "N/A"}
+
+ {rfq.hideProjectInfoForVendors ? "비공개" : (rfq.biddingProject.pspid || "N/A")} +
프로젝트명
-
{rfq.biddingProject.projNm || "N/A"}
+
+ {rfq.hideProjectInfoForVendors ? "비공개" : (rfq.biddingProject.projNm || "N/A")} +
프로젝트 섹터
diff --git a/lib/techsales-rfq/vendor-response/table/vendor-quotations-table-columns.tsx b/lib/techsales-rfq/vendor-response/table/vendor-quotations-table-columns.tsx index aabe7a64..97f21be2 100644 --- a/lib/techsales-rfq/vendor-response/table/vendor-quotations-table-columns.tsx +++ b/lib/techsales-rfq/vendor-response/table/vendor-quotations-table-columns.tsx @@ -27,6 +27,7 @@ interface QuotationWithRfqCode extends TechSalesVendorQuotations { materialCode?: string; dueDate?: Date; rfqStatus?: string; + hideProjectInfoForVendors?: boolean; // 아이템 정보 itemName?: string; @@ -258,17 +259,19 @@ export function getColumns({ router, openAttachmentsSheet, openItemsDialog, open ), cell: ({ row }) => { const projNm = row.getValue("projNm") as string; + const hideProjectInfo = row.original.hideProjectInfoForVendors === true; + const displayValue = hideProjectInfo ? "비공개" : projNm || "N/A"; return (
- {projNm || "N/A"} + {displayValue} -

{projNm || "N/A"}

+

{displayValue}

-- cgit v1.2.3