From 3bdd648ad4cb863043db181291ddaebbc025965b Mon Sep 17 00:00:00 2001 From: dujinkim Date: Thu, 29 May 2025 10:25:22 +0000 Subject: (김준회) 기술영업 조선 RFQ 변경 (셀 클릭 상세보기 및 Unread Message, Action Column 관련 변경사항 적용) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/techsales-rfq/table/rfq-table-column.tsx | 54 ++++++++-------------------- 1 file changed, 14 insertions(+), 40 deletions(-) (limited to 'lib/techsales-rfq/table/rfq-table-column.tsx') diff --git a/lib/techsales-rfq/table/rfq-table-column.tsx b/lib/techsales-rfq/table/rfq-table-column.tsx index e1047fd1..4f7bd499 100644 --- a/lib/techsales-rfq/table/rfq-table-column.tsx +++ b/lib/techsales-rfq/table/rfq-table-column.tsx @@ -6,7 +6,7 @@ import { formatDate, formatDateTime } from "@/lib/utils" import { Checkbox } from "@/components/ui/checkbox" import { DataTableColumnHeaderSimple } from "@/components/data-table/data-table-column-simple-header" import { DataTableRowAction } from "@/types/table" -import { Info, Paperclip } from "lucide-react" +import { Paperclip } from "lucide-react" import { Button } from "@/components/ui/button" // 기본적인 RFQ 타입 정의 (rfq-table.tsx 파일과 일치해야 함) @@ -135,7 +135,7 @@ export function getColumns({ ), cell: ({ row }) => { - const itemName = row.getValue("itemName"); + const itemName = row.getValue("itemName") as string | null; return
{itemName || "자재명 없음"}
; }, meta: { @@ -144,24 +144,23 @@ export function getColumns({ enableResizing: true, size: 180, }, - { - accessorKey: "pspid", - header: ({ column }) => ( - - ), - cell: ({ row }) =>
{row.getValue("pspid")}
, - meta: { - excelHeader: "프로젝트 번호" - }, - enableResizing: true, - size: 120, - }, { accessorKey: "projNm", header: ({ column }) => ( ), - cell: ({ row }) =>
{row.getValue("projNm")}
, + cell: ({ row }) => { + const projNm = row.getValue("projNm") as string; + return ( + + ); + }, meta: { excelHeader: "프로젝트명" }, @@ -320,30 +319,5 @@ export function getColumns({ enableResizing: true, size: 160, }, - { - id: "actions", - header: ({ column }) => ( - - ), - cell: ({ row }) => { - return ( - - ); - }, - enableSorting: false, - enableHiding: false, - enableResizing: false, - size: 120, - minSize: 120, - maxSize: 120, - }, ] } \ No newline at end of file -- cgit v1.2.3