From cd0ce0cbe8af8719a6f542098ec78f2a5c1222ce Mon Sep 17 00:00:00 2001
From: dujinkim <dujin.kim@dtsolution.co.kr>
Date: Mon, 1 Dec 2025 10:28:05 +0000
Subject: (최겸) 구매 입찰 사전견적 개발(rfq-last)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 lib/rfq-last/table/rfq-table.tsx | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

(limited to 'lib/rfq-last/table/rfq-table.tsx')

diff --git a/lib/rfq-last/table/rfq-table.tsx b/lib/rfq-last/table/rfq-table.tsx
index 80f1422e..e8dd299d 100644
--- a/lib/rfq-last/table/rfq-table.tsx
+++ b/lib/rfq-last/table/rfq-table.tsx
@@ -29,7 +29,7 @@ import { RfqItemsDialog } from "../shared/rfq-items-dialog";
 
 interface RfqTableProps {
     data: Awaited<ReturnType<typeof getRfqs>>;
-    rfqCategory?:  "general" | "itb" | "rfq";
+    rfqCategory?:  "general" | "itb" | "rfq" | "pre_bidding";
   className?: string;
 }
 
@@ -274,7 +274,7 @@ export function RfqTable({
     { id: "vendorCount", label: "업체수", type: "number" },
     { id: "dueDate", label: "마감일", type: "date" },
     { id: "rfqSendDate", label: "발송일", type: "date" },
-    ...(rfqCategory === "general"  ? [
+    ...(rfqCategory === "general" || rfqCategory === "pre_bidding"  ? [
       {
         id: "rfqType",
         label: "견적 유형",
@@ -283,10 +283,14 @@ export function RfqTable({
           { label: "단가계약", value: "단가계약" },
           { label: "매각계약", value: "매각계약" },
           { label: "일반계약", value: "일반계약" },
+          ...(rfqCategory === "pre_bidding" ? [{ label: "사전견적(입찰)", value: "사전견적(입찰)" }] : [])
         ]
       },
       { id: "rfqTitle", label: "견적 제목", type: "text" },
     ] as DataTableAdvancedFilterField<RfqsLastView>[] : []),
+    ...(rfqCategory === "pre_bidding" ? [
+      { id: "biddingNumber", label: "입찰 No.", type: "text" },
+    ] as DataTableAdvancedFilterField<RfqsLastView>[] : []),
     ...(rfqCategory === "itb" ? [
       { id: "smCode", label: "SM 코드", type: "text" },
     ] as DataTableAdvancedFilterField<RfqsLastView>[] : []),
@@ -414,6 +418,7 @@ export function RfqTable({
               
                   <Badge variant="outline" className="text-sm">
                     {rfqCategory === "general" ? "일반견적" : 
+                     rfqCategory === "pre_bidding" ? "사전견적(입찰)" :
                      rfqCategory === "itb" ? "ITB" : "RFQ"}
                   </Badge>
            
-- 
cgit v1.2.3

