summaryrefslogtreecommitdiff
path: root/lib/bidding/selection/bidding-selection-detail-content.tsx
diff options
context:
space:
mode:
authordujinkim <dujin.kim@dtsolution.co.kr>2025-11-12 10:42:36 +0000
committerdujinkim <dujin.kim@dtsolution.co.kr>2025-11-12 10:42:36 +0000
commit8642ee064ddf96f1db2b948b4cc8bbbd6cfee820 (patch)
tree36bd57d147ba929f1d72918d1fb91ad2c4778624 /lib/bidding/selection/bidding-selection-detail-content.tsx
parent57ea2f740abf1c7933671561cfe0e421fb5ef3fc (diff)
(최겸) 구매 일반계약, 입찰 수정
Diffstat (limited to 'lib/bidding/selection/bidding-selection-detail-content.tsx')
-rw-r--r--lib/bidding/selection/bidding-selection-detail-content.tsx41
1 files changed, 41 insertions, 0 deletions
diff --git a/lib/bidding/selection/bidding-selection-detail-content.tsx b/lib/bidding/selection/bidding-selection-detail-content.tsx
new file mode 100644
index 00000000..45d5d402
--- /dev/null
+++ b/lib/bidding/selection/bidding-selection-detail-content.tsx
@@ -0,0 +1,41 @@
+'use client'
+
+import * as React from 'react'
+import { Bidding } from '@/db/schema'
+import { BiddingInfoCard } from './bidding-info-card'
+import { SelectionResultForm } from './selection-result-form'
+import { VendorSelectionTable } from './vendor-selection-table'
+
+interface BiddingSelectionDetailContentProps {
+ biddingId: number
+ bidding: Bidding
+}
+
+export function BiddingSelectionDetailContent({
+ biddingId,
+ bidding
+}: BiddingSelectionDetailContentProps) {
+ const [refreshKey, setRefreshKey] = React.useState(0)
+
+ const handleRefresh = React.useCallback(() => {
+ setRefreshKey(prev => prev + 1)
+ }, [])
+
+ return (
+ <div className="space-y-6">
+ {/* 입찰정보 카드 */}
+ <BiddingInfoCard bidding={bidding} />
+
+ {/* 선정결과 폼 */}
+ <SelectionResultForm biddingId={biddingId} onSuccess={handleRefresh} />
+
+ {/* 업체선정 테이블 */}
+ <VendorSelectionTable
+ key={refreshKey}
+ biddingId={biddingId}
+ bidding={bidding}
+ onRefresh={handleRefresh}
+ />
+ </div>
+ )
+}