From 53fce4bf4ac8310bd02d77e564f28d3c12228bd1 Mon Sep 17 00:00:00 2001 From: dujinkim Date: Thu, 18 Sep 2025 02:56:27 +0000 Subject: (최겸) 구매 입찰 히스토리 개발 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../(evcp)/vendors/[id]/info/bid-history/page.tsx | 56 ++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 app/[lng]/evcp/(evcp)/vendors/[id]/info/bid-history/page.tsx (limited to 'app') diff --git a/app/[lng]/evcp/(evcp)/vendors/[id]/info/bid-history/page.tsx b/app/[lng]/evcp/(evcp)/vendors/[id]/info/bid-history/page.tsx new file mode 100644 index 00000000..82fd5514 --- /dev/null +++ b/app/[lng]/evcp/(evcp)/vendors/[id]/info/bid-history/page.tsx @@ -0,0 +1,56 @@ +import { Separator } from "@/components/ui/separator"; +import { getBidHistory } from "@/lib/vendors/service"; +import { type SearchParams } from "@/types/table"; +import { getValidFilters } from "@/lib/data-table"; +import { searchParamsBidHistoryCache } from "@/lib/vendors/validations"; +import { VendorBidHistoryTable } from "@/lib/vendors/bid-history-table/bid-history-table"; + +interface BidHistoryPageProps { + params: { + lng: string; + id: string; + }; + searchParams: Promise; +} + +export default async function BidHistoryPage(props: BidHistoryPageProps) { + const resolvedParams = await props.params; + const lng = resolvedParams.lng; + const id = resolvedParams.id; + + const idAsNumber = Number(id); + + // SearchParams 파싱 (Zod) + const searchParams = await props.searchParams; + const search = searchParamsBidHistoryCache.parse(searchParams); + const validFilters = getValidFilters(search.filters); + + const promises = Promise.all([ + getBidHistory( + { + ...search, + filters: validFilters, + }, + idAsNumber + ), + ]); + + // 렌더링 + return ( +
+
+

입찰 히스토리

+

+ 협력업체의 입찰 참여 이력을 확인할 수 있습니다. +

+
+ +
+ +
+
+ ); +} -- cgit v1.2.3