summaryrefslogtreecommitdiff
path: root/lib/welding/table/ocr-table.tsx
diff options
context:
space:
mode:
authordujinkim <dujin.kim@dtsolution.co.kr>2025-06-11 12:18:38 +0000
committerdujinkim <dujin.kim@dtsolution.co.kr>2025-06-11 12:18:38 +0000
commitff902243a658067fae858a615c0629aa2e0a4837 (patch)
tree42d30e986d1cbfb282c644c01730cd053b816b7a /lib/welding/table/ocr-table.tsx
parent42e38f41cb4c0b4bf9c08b71ed087cd7f0c7fc18 (diff)
(대표님) 20250611 21시 15분 OCR 등
Diffstat (limited to 'lib/welding/table/ocr-table.tsx')
-rw-r--r--lib/welding/table/ocr-table.tsx16
1 files changed, 11 insertions, 5 deletions
diff --git a/lib/welding/table/ocr-table.tsx b/lib/welding/table/ocr-table.tsx
index 91af1c67..e14c53d1 100644
--- a/lib/welding/table/ocr-table.tsx
+++ b/lib/welding/table/ocr-table.tsx
@@ -15,6 +15,7 @@ import { OcrTableToolbarActions } from "./ocr-table-toolbar-actions"
import { getColumns } from "./ocr-table-columns"
import { OcrRow } from "@/db/schema"
import { getOcrRows } from "../service"
+import { UpdateOcrRowSheet } from "./update-ocr-row-sheet"
interface ItemsTableProps {
promises: Promise<
@@ -74,8 +75,8 @@ export function OcrTable({ promises }: ItemsTableProps) {
type: "text",
// group: "Basic Info",
},
-
-
+
+
{
id: "identificationNo",
label: "Identification No",
@@ -88,19 +89,19 @@ export function OcrTable({ promises }: ItemsTableProps) {
type: "text",
// group: "Metadata",
},
- {
+ {
id: "jointNo",
label: "Joint No",
type: "text",
// group: "Metadata",
},
- {
+ {
id: "weldingDate",
label: "Welding Date",
type: "date",
// group: "Metadata",
},
- {
+ {
id: "createdAt",
label: "생성일",
type: "date",
@@ -138,6 +139,11 @@ export function OcrTable({ promises }: ItemsTableProps) {
<OcrTableToolbarActions table={table} />
</DataTableAdvancedToolbar>
</DataTable>
+ <UpdateOcrRowSheet
+ open={rowAction?.type === "update"}
+ onOpenChange={() => setRowAction(null)}
+ ocrRow={rowAction?.type === "update" ? rowAction.row.original : null}
+ />
</>
)
}