From 9ecdfb23fe3df6a5df86782385002c562dfc1198 Mon Sep 17 00:00:00 2001
From: dujinkim <dujin.kim@dtsolution.co.kr>
Date: Fri, 19 Sep 2025 07:51:27 +0000
Subject: (대표님) rfq 히스토리, swp 등
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 components/form-data-stat/form-data-stat-table.tsx | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

(limited to 'components/form-data-stat/form-data-stat-table.tsx')

diff --git a/components/form-data-stat/form-data-stat-table.tsx b/components/form-data-stat/form-data-stat-table.tsx
index a56a4e88..1f313a2f 100644
--- a/components/form-data-stat/form-data-stat-table.tsx
+++ b/components/form-data-stat/form-data-stat-table.tsx
@@ -16,6 +16,7 @@ import { Progress } from "@/components/ui/progress";
 import { getVendorFormStatus, getProjectsWithContracts } from "@/lib/forms/stat";
 import { Popover, PopoverTrigger, PopoverContent } from "@/components/ui/popover";
 import { Command, CommandInput, CommandList, CommandEmpty, CommandGroup, CommandItem } from "@/components/ui/command";
+import { createFilterFn } from "@/components/client-data-table/table-filters";
 
 // 타입 정의
 interface VendorFormStatus {
@@ -216,6 +217,8 @@ export function VendorFormStatusTable({
     {
       accessorKey: "vendorName",
       header: ({ column }) => <ClientDataTableColumnHeaderSimple column={column} title="벤더명" />,
+      filterFn: createFilterFn("text"),
+
       cell: ({ row }) => (
         <div className="font-medium">{row.original.vendorName}</div>
       ),
@@ -226,6 +229,8 @@ export function VendorFormStatusTable({
     {
       accessorKey: "formCount",
       header: ({ column }) => <ClientDataTableColumnHeaderSimple column={column} title="Form 개수" />,
+      filterFn: createFilterFn("number"),
+
       cell: ({ row }) => (
         <div className="text-center">
           <Badge variant="outline">{row.original.formCount}</Badge>
@@ -237,6 +242,8 @@ export function VendorFormStatusTable({
     {
       accessorKey: "tagCount",
       header: ({ column }) => <ClientDataTableColumnHeaderSimple column={column} title="Tag 개수" />,
+      filterFn: createFilterFn("number"),
+
       cell: ({ row }) => (
         <div className="text-center">
           <Badge variant="outline">{row.original.tagCount}</Badge>
@@ -248,6 +255,8 @@ export function VendorFormStatusTable({
     {
       accessorKey: "totalFields",
       header: ({ column }) => <ClientDataTableColumnHeaderSimple column={column} title="전체 필드" />,
+      filterFn: createFilterFn("number"),
+      
       cell: ({ row }) => (
         <div className="text-center font-mono">
           {row.original.totalFields.toLocaleString()}
@@ -259,6 +268,8 @@ export function VendorFormStatusTable({
     {
       accessorKey: "completedFields",
       header: ({ column }) => <ClientDataTableColumnHeaderSimple column={column} title="완료 필드" />,
+      filterFn: createFilterFn("number"),
+
       cell: ({ row }) => (
         <div className="text-center font-mono">
           {row.original.completedFields.toLocaleString()}
@@ -270,6 +281,8 @@ export function VendorFormStatusTable({
     {
       accessorKey: "completionRate",
       header: ({ column }) => <ClientDataTableColumnHeaderSimple column={column} title="완료율" />,
+      filterFn: createFilterFn("number"),
+
       cell: ({ row }) => {
         const rate = row.original.completionRate;
         return (
@@ -293,6 +306,8 @@ export function VendorFormStatusTable({
     {
       id: "progress",
       header: "진행 상태",
+      filterFn: createFilterFn("number"),
+
       cell: ({ row }) => {
         const { completedFields, totalFields } = row.original;
         return (
-- 
cgit v1.2.3

