summaryrefslogtreecommitdiff
path: root/lib/material/vendor-material/vendor-materials-client.tsx
diff options
context:
space:
mode:
authorjoonhoekim <26rote@gmail.com>2025-09-02 08:44:17 +0000
committerjoonhoekim <26rote@gmail.com>2025-09-02 08:44:17 +0000
commit8da223a416ec7d2be5743f312ed1d8c6d64949e2 (patch)
tree6333679b326e3508913774f3d5afaabca1f4f198 /lib/material/vendor-material/vendor-materials-client.tsx
parent6eb06a925811cfefb34b6c286f6bdfe2f214ac2b (diff)
(김준회) 협력업체 관리 메뉴에서, 공급품목(패키지) 제거, MDG 자재마스터 기반 벤더별 공급품목 메뉴 구현 (정의서+강미경프로 요구대로 구현)
Diffstat (limited to 'lib/material/vendor-material/vendor-materials-client.tsx')
-rw-r--r--lib/material/vendor-material/vendor-materials-client.tsx39
1 files changed, 39 insertions, 0 deletions
diff --git a/lib/material/vendor-material/vendor-materials-client.tsx b/lib/material/vendor-material/vendor-materials-client.tsx
new file mode 100644
index 00000000..412dc4b9
--- /dev/null
+++ b/lib/material/vendor-material/vendor-materials-client.tsx
@@ -0,0 +1,39 @@
+"use client";
+
+import * as React from "react";
+import { Separator } from "@/components/ui/separator";
+import { ConfirmedMaterialsTable } from "./confirmed-materials-table";
+import { VendorInputMaterialsTable } from "./vendor-input-materials-table";
+import { VendorMaterialsResult } from "../vendor-possible-material-service";
+
+interface VendorMaterialsClientProps {
+ vendorId: number;
+ confirmedMaterials: VendorMaterialsResult;
+ vendorInputMaterials: VendorMaterialsResult;
+}
+
+export function VendorMaterialsClient({
+ vendorId,
+ confirmedMaterials,
+ vendorInputMaterials,
+}: VendorMaterialsClientProps) {
+ return (
+ <div className="space-y-8">
+ {/* 확정정보 테이블 */}
+ <ConfirmedMaterialsTable
+ vendorId={vendorId}
+ data={confirmedMaterials.data}
+ pageCount={confirmedMaterials.pageCount}
+ />
+
+ <Separator />
+
+ {/* 업체입력정보 테이블 */}
+ <VendorInputMaterialsTable
+ vendorId={vendorId}
+ data={vendorInputMaterials.data}
+ pageCount={vendorInputMaterials.pageCount}
+ />
+ </div>
+ );
+}