From 058b32e0e5ab5bc6fd02fe57b3dde6e934f91040 Mon Sep 17 00:00:00 2001
From: dujinkim <dujin.kim@dtsolution.co.kr>
Date: Sun, 14 Sep 2025 06:43:13 +0000
Subject: (최겸) 입찰 긴급여부 추가, 입찰첨부문서 추가
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 .../bidding-detail-vendor-toolbar-actions.tsx      | 24 +++++++++++++++++++++-
 1 file changed, 23 insertions(+), 1 deletion(-)

(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 654d9941..4e9fc58d 100644
--- a/lib/bidding/detail/table/bidding-detail-vendor-toolbar-actions.tsx
+++ b/lib/bidding/detail/table/bidding-detail-vendor-toolbar-actions.tsx
@@ -5,9 +5,10 @@ import { type Table } from "@tanstack/react-table"
 import { useRouter } from "next/navigation"
 import { useTransition } from "react"
 import { Button } from "@/components/ui/button"
-import { Plus, Send, RotateCcw, XCircle, Trophy } from "lucide-react"
+import { Plus, Send, RotateCcw, XCircle, Trophy, FileText } from "lucide-react"
 import { QuotationVendor, registerBidding, markAsDisposal, createRebidding, awardBidding } from "@/lib/bidding/detail/service"
 import { BiddingDetailVendorCreateDialog } from "./bidding-detail-vendor-create-dialog"
+import { BiddingDocumentUploadDialog } from "./bidding-document-upload-dialog"
 import { Bidding } from "@/db/schema"
 import { useToast } from "@/hooks/use-toast"
 
@@ -36,11 +37,16 @@ export function BiddingDetailVendorToolbarActions({
   const { toast } = useToast()
   const [isPending, startTransition] = useTransition()
   const [isCreateDialogOpen, setIsCreateDialogOpen] = React.useState(false)
+  const [isDocumentDialogOpen, setIsDocumentDialogOpen] = React.useState(false)
 
   const handleCreateVendor = () => {
     setIsCreateDialogOpen(true)
   }
 
+  const handleDocumentUpload = () => {
+    setIsDocumentDialogOpen(true)
+  }
+
   const handleRegister = () => {
     startTransition(async () => {
       const result = await registerBidding(bidding.id, userId)
@@ -177,6 +183,14 @@ export function BiddingDetailVendorToolbarActions({
           <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>
       </div>
 
       <BiddingDetailVendorCreateDialog
@@ -188,6 +202,14 @@ export function BiddingDetailVendorToolbarActions({
           setIsCreateDialogOpen(false)
         }}
       />
+
+      <BiddingDocumentUploadDialog
+        open={isDocumentDialogOpen}
+        onOpenChange={setIsDocumentDialogOpen}
+        biddingId={biddingId}
+        userId={userId}
+        onSuccess={onSuccess}
+      />
     </>
   )
 }
-- 
cgit v1.2.3

