From 6c11fccc84f4c84fa72ee01f9caad9f76f35cea2 Mon Sep 17 00:00:00 2001
From: dujinkim <dujin.kim@dtsolution.co.kr>
Date: Tue, 16 Sep 2025 09:20:58 +0000
Subject: (대표님, 최겸) 계약, 업로드 관련, 메뉴처리, 입찰, 프리쿼트,
 rfqLast관련, tbeLast관련
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 .../bidding-detail-vendor-toolbar-actions.tsx      | 68 ++++++++++++----------
 1 file changed, 36 insertions(+), 32 deletions(-)

(limited to 'lib/bidding/detail/table/bidding-detail-vendor-toolbar-actions.tsx')

diff --git a/lib/bidding/detail/table/bidding-detail-vendor-toolbar-actions.tsx b/lib/bidding/detail/table/bidding-detail-vendor-toolbar-actions.tsx
index 0b707944..893fb185 100644
--- a/lib/bidding/detail/table/bidding-detail-vendor-toolbar-actions.tsx
+++ b/lib/bidding/detail/table/bidding-detail-vendor-toolbar-actions.tsx
@@ -180,6 +180,8 @@ export function BiddingDetailVendorToolbarActions({
     <>
       <div className="flex items-center gap-2">
         {/* 상태별 액션 버튼 */}
+        {bidding.status !== 'bidding_closed' && bidding.status !== 'vendor_selected' && (
+          <>
           <Button
             variant="default"
             size="sm"
@@ -223,7 +225,6 @@ export function BiddingDetailVendorToolbarActions({
 
         {/* 구분선 */}
         {(bidding.status === 'bidding_generated' || 
-          bidding.status === 'bidding_closed' || 
           bidding.status === 'bidding_disposal') && (
           <div className="h-4 w-px bg-border mx-1" />
         )}
@@ -236,37 +237,40 @@ export function BiddingDetailVendorToolbarActions({
         >
           품목 정보
         </Button> */}
-        <Button
-          variant="outline"
-          size="sm"
-          onClick={onOpenTargetPriceDialog}
-        >
-          내정가 산정
-        </Button>
-        <Button
-          variant="outline"
-          size="sm"
-          onClick={handleCreateVendor}
-        >
-          <Plus className="mr-2 h-4 w-4" />
-          업체 추가
-        </Button>
-        <Button
-          variant="outline"
-          size="sm"
-          onClick={handleDocumentUpload}
-        >
-          <FileText className="mr-2 h-4 w-4" />
-          입찰문서 등록
-        </Button>
-        <Button
-          variant="outline"
-          size="sm"
-          onClick={handleViewVendorPrices}
-        >
-          <DollarSign className="mr-2 h-4 w-4" />
-          입찰가 비교
-        </Button>
+
+            <Button
+              variant="outline"
+              size="sm"
+              onClick={onOpenTargetPriceDialog}
+            >
+              내정가 산정
+            </Button>
+            <Button
+              variant="outline"
+              size="sm"
+              onClick={handleCreateVendor}
+            >
+              <Plus className="mr-2 h-4 w-4" />
+              업체 추가
+            </Button>
+            <Button
+              variant="outline"
+              size="sm"
+              onClick={handleDocumentUpload}
+            >
+              <FileText className="mr-2 h-4 w-4" />
+              입찰문서 등록
+            </Button>
+            <Button
+              variant="outline"
+              size="sm"
+              onClick={handleViewVendorPrices}
+            >
+              <DollarSign className="mr-2 h-4 w-4" />
+              입찰가 비교
+            </Button>
+          </>
+        )}
       </div>
 
       <BiddingDetailVendorCreateDialog
-- 
cgit v1.2.3

