From 1dc24d48e52f2e490f5603ceb02842586ecae533 Mon Sep 17 00:00:00 2001 From: dujinkim Date: Thu, 24 Jul 2025 11:06:32 +0000 Subject: (대표님) 정기평가 피드백 반영, 설계 피드백 반영, (최겸) 기술영업 피드백 반영 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/items-tech/table/top/import-item-handler.tsx | 4 ++-- lib/items-tech/table/top/offshore-top-table-columns.tsx | 2 +- lib/items-tech/table/top/offshore-top-table-toolbar-actions.tsx | 2 +- lib/items-tech/table/top/offshore-top-table.tsx | 3 ++- 4 files changed, 6 insertions(+), 5 deletions(-) (limited to 'lib/items-tech/table/top') diff --git a/lib/items-tech/table/top/import-item-handler.tsx b/lib/items-tech/table/top/import-item-handler.tsx index 4f34cff2..0197d826 100644 --- a/lib/items-tech/table/top/import-item-handler.tsx +++ b/lib/items-tech/table/top/import-item-handler.tsx @@ -4,7 +4,7 @@ import { z } from "zod" import { createOffshoreTopItem } from "../../service" // 해양 TOP 기능(공종) 유형 enum -const TOP_WORK_TYPES = ["TM", "TS", "TE", "TP"] as const; +const TOP_WORK_TYPES = ["TM", "TS", "TE", "TP", "TA"] as const; // 아이템 데이터 검증을 위한 Zod 스키마 const itemSchema = z.object({ @@ -92,7 +92,7 @@ export async function processTopFileImport( // 해양 TOP 아이템 생성 const result = await createOffshoreTopItem({ itemCode: cleanedRow.itemCode, - workType: cleanedRow.workType as "TM" | "TS" | "TE" | "TP", + workType: cleanedRow.workType as "TM" | "TS" | "TE" | "TP" | "TA", itemList: cleanedRow.itemList, subItemList: cleanedRow.subItemList, }); diff --git a/lib/items-tech/table/top/offshore-top-table-columns.tsx b/lib/items-tech/table/top/offshore-top-table-columns.tsx index 93f27492..e1572e0c 100644 --- a/lib/items-tech/table/top/offshore-top-table-columns.tsx +++ b/lib/items-tech/table/top/offshore-top-table-columns.tsx @@ -22,7 +22,7 @@ import { DataTableColumnHeaderSimple } from "@/components/data-table/data-table- interface OffshoreTopTableItem { id: number; itemId: number; - workType: "TM" | "TS" | "TE" | "TP"; + workType: "TM" | "TS" | "TE" | "TP" | "TA"; itemList: string | null; subItemList: string | null; itemCode: string; diff --git a/lib/items-tech/table/top/offshore-top-table-toolbar-actions.tsx b/lib/items-tech/table/top/offshore-top-table-toolbar-actions.tsx index bf10560f..c81feda0 100644 --- a/lib/items-tech/table/top/offshore-top-table-toolbar-actions.tsx +++ b/lib/items-tech/table/top/offshore-top-table-toolbar-actions.tsx @@ -23,7 +23,7 @@ import { ImportItemButton } from "../import-excel-button" interface OffshoreTopItem { id: number; itemId: number; - workType: "TM" | "TS" | "TE" | "TP"; + workType: "TM" | "TS" | "TE" | "TP" | "TA"; itemList: string | null; subItemList: string | null; itemCode: string; diff --git a/lib/items-tech/table/top/offshore-top-table.tsx b/lib/items-tech/table/top/offshore-top-table.tsx index c038de13..dc76a06a 100644 --- a/lib/items-tech/table/top/offshore-top-table.tsx +++ b/lib/items-tech/table/top/offshore-top-table.tsx @@ -20,7 +20,7 @@ import { UpdateItemSheet } from "../update-items-sheet" type OffshoreTopItem = { id: number; itemId: number; - workType: "TM" | "TS" | "TE" | "TP"; + workType: "TM" | "TS" | "TE" | "TP" | "TA"; itemList: string | null; subItemList: string | null; itemCode: string; @@ -74,6 +74,7 @@ export function OffshoreTopTable({ promises }: OffshoreTopTableProps) { { label: "TS", value: "TS" }, { label: "TE", value: "TE" }, { label: "TP", value: "TP" }, + { label: "TA", value: "TA" }, ], }, { -- cgit v1.2.3