summaryrefslogtreecommitdiff
path: root/lib/welding
diff options
context:
space:
mode:
authordujinkim <dujin.kim@dtsolution.co.kr>2025-07-09 12:19:05 +0000
committerdujinkim <dujin.kim@dtsolution.co.kr>2025-07-09 12:19:05 +0000
commit6d654b1ba2c19e0bf1745b636908e3b00a0f02c7 (patch)
treef6d48c0d3a65b428a828acea5db65db8e7bf0db8 /lib/welding
parent44794a8628997c0d979adb5bd6711cd848b3e397 (diff)
(대표님) 20250709 변경사항 (약 18시 30분까지)
Diffstat (limited to 'lib/welding')
-rw-r--r--lib/welding/repository.ts2
-rw-r--r--lib/welding/table/ocr-table-columns.tsx40
2 files changed, 40 insertions, 2 deletions
diff --git a/lib/welding/repository.ts b/lib/welding/repository.ts
index 1e96867b..e3351358 100644
--- a/lib/welding/repository.ts
+++ b/lib/welding/repository.ts
@@ -36,6 +36,8 @@ export async function selectOcrRows(
// ocrRows의 모든 필드
id: ocrRows.id,
tableId: ocrRows.tableId,
+ fileName: ocrRows.fileName,
+ inspectionDate: ocrRows.inspectionDate,
sessionId: ocrRows.sessionId,
rowIndex: ocrRows.rowIndex,
reportNo: ocrRows.reportNo,
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",