diff options
| author | dujinkim <dujin.kim@dtsolution.co.kr> | 2025-07-09 12:19:05 +0000 |
|---|---|---|
| committer | dujinkim <dujin.kim@dtsolution.co.kr> | 2025-07-09 12:19:05 +0000 |
| commit | 6d654b1ba2c19e0bf1745b636908e3b00a0f02c7 (patch) | |
| tree | f6d48c0d3a65b428a828acea5db65db8e7bf0db8 /lib/welding/table/ocr-table-columns.tsx | |
| parent | 44794a8628997c0d979adb5bd6711cd848b3e397 (diff) | |
(대표님) 20250709 변경사항 (약 18시 30분까지)
Diffstat (limited to 'lib/welding/table/ocr-table-columns.tsx')
| -rw-r--r-- | lib/welding/table/ocr-table-columns.tsx | 40 |
1 files changed, 38 insertions, 2 deletions
diff --git a/lib/welding/table/ocr-table-columns.tsx b/lib/welding/table/ocr-table-columns.tsx index 93ee1004..d4ca9f5f 100644 --- a/lib/welding/table/ocr-table-columns.tsx +++ b/lib/welding/table/ocr-table-columns.tsx @@ -51,7 +51,25 @@ export function getColumns({ setRowAction }: GetColumnsProps): ColumnDef<OcrRow> enableSorting: false, enableHiding: false, }, - + { + accessorKey: "fileName", + header: ({ column }) => ( + <DataTableColumnHeaderSimple column={column} title="file Name" /> + ), + cell: ({ getValue }) => { + const fileName = getValue() as string + return ( + <div className="text-sm"> + {/* <Badge variant="outline" className="font-mono text-xs"> */} + {fileName || "N/A"} + {/* </Badge> */} + + </div> + ) + }, + enableSorting: true, + enableHiding: false, + }, // Report No 컬럼 { accessorKey: "reportNo", @@ -233,7 +251,25 @@ export function getColumns({ setRowAction }: GetColumnsProps): ColumnDef<OcrRow> // }, // enableSorting: true, // }, - + { + accessorKey: "inspectionDate", + header: ({ column }) => ( + <DataTableColumnHeaderSimple column={column} title="Inspection(Confirmed) Date" /> + ), + cell: ({ getValue }) => { + const inspectionDate = getValue() as string + return ( + <div className="text-sm"> + {/* <Badge variant="outline" className="font-mono text-xs"> */} + {inspectionDate || "N/A"} + {/* </Badge> */} + + </div> + ) + }, + enableSorting: true, + enableHiding: false, + }, { accessorKey: "userName", |
