summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-rw-r--r--app/[lng]/evcp/(evcp)/vendors/[id]/info/contract-history/page.tsx35
1 files changed, 35 insertions, 0 deletions
diff --git a/app/[lng]/evcp/(evcp)/vendors/[id]/info/contract-history/page.tsx b/app/[lng]/evcp/(evcp)/vendors/[id]/info/contract-history/page.tsx
new file mode 100644
index 00000000..fc1f3148
--- /dev/null
+++ b/app/[lng]/evcp/(evcp)/vendors/[id]/info/contract-history/page.tsx
@@ -0,0 +1,35 @@
+'use server'
+
+import { Separator } from "@/components/ui/separator"
+import { ContractHistoryTable } from "@/lib/vendors/contract-history/contract-history-table"
+
+interface IndexPageProps {
+ // Next.js 13 App Router에서 기본으로 주어지는 객체들
+ params: {
+ lng: string
+ id: string
+ }
+}
+
+export default async function VendorMaterialsPage(props: IndexPageProps) {
+ const resolvedParams = await props.params
+ const id = resolvedParams.id
+ const idAsNumber = Number(id)
+
+ return (
+ <div className="space-y-6">
+ <div>
+ <h3 className="text-lg font-medium">
+ 계약/PO 히스토리
+ </h3>
+ <p className="text-sm text-muted-foreground">
+ 업체의 계약/PO 이력을 확인할 수 있습니다.
+ </p>
+ </div>
+ <Separator />
+
+ {/* 계약히스토리 테이블 */}
+ <ContractHistoryTable vendorId={idAsNumber} />
+ </div>
+ )
+} \ No newline at end of file