From 8da223a416ec7d2be5743f312ed1d8c6d64949e2 Mon Sep 17 00:00:00 2001
From: joonhoekim <26rote@gmail.com>
Date: Tue, 2 Sep 2025 08:44:17 +0000
Subject: (김준회) 협력업체 관리 메뉴에서, 공급품목(패키지) 제거, MDG
 자재마스터 기반 벤더별 공급품목 메뉴 구현 (정의서+강미경프로 요구대로 구현)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 .../vendor-input-materials-table.tsx               | 64 ++++++++++++++++++++++
 1 file changed, 64 insertions(+)
 create mode 100644 lib/material/vendor-material/vendor-input-materials-table.tsx

(limited to 'lib/material/vendor-material/vendor-input-materials-table.tsx')

diff --git a/lib/material/vendor-material/vendor-input-materials-table.tsx b/lib/material/vendor-material/vendor-input-materials-table.tsx
new file mode 100644
index 00000000..8d774bee
--- /dev/null
+++ b/lib/material/vendor-material/vendor-input-materials-table.tsx
@@ -0,0 +1,64 @@
+"use client";
+
+import * as React from "react";
+import { DataTable } from "@/components/data-table/data-table";
+import { DataTableToolbar } from "@/components/data-table/data-table-toolbar";
+import { vendorInputMaterialsColumns } from "./columns";
+import { useDataTable } from "@/hooks/use-data-table";
+import { VendorPossibleMaterial } from "../vendor-possible-material-service";
+
+interface VendorInputMaterialsTableProps {
+  vendorId: number;
+  data: VendorPossibleMaterial[];
+  pageCount: number;
+}
+
+export function VendorInputMaterialsTable({
+  vendorId,
+  data,
+  pageCount,
+}: VendorInputMaterialsTableProps) {
+  const { table } = useDataTable({
+    data,
+    columns: vendorInputMaterialsColumns,
+    pageCount,
+    filterFields: [
+      {
+        id: "itemCode",
+        label: "자재그룹",
+        placeholder: "자재그룹 검색...",
+      },
+      {
+        id: "itemName", 
+        label: "자재그룹명",
+        placeholder: "자재그룹명 검색...",
+      },
+    ],
+  });
+
+  return (
+    <div className="space-y-4">
+      <h3 className="text-lg font-semibold">업체입력정보</h3>
+      
+      <DataTable table={table}>
+        <DataTableToolbar 
+          table={table} 
+          filterFields={[
+            {
+              id: "itemCode",
+              label: "자재그룹",
+              placeholder: "자재그룹 검색...",
+            },
+            {
+              id: "itemName", 
+              label: "자재그룹명",
+              placeholder: "자재그룹명 검색...",
+            },
+          ]}
+        >
+          {/* 컬럼 선택 기능 제거 - DataTableViewOptions 없음 */}
+        </DataTableToolbar>
+      </DataTable>
+    </div>
+  );
+}
-- 
cgit v1.2.3

