From e84cf02a1cb4959a9d3bb5bbf37885c13a447f78 Mon Sep 17 00:00:00 2001 From: joonhoekim <26rote@gmail.com> Date: Mon, 13 Oct 2025 17:29:33 +0900 Subject: (김준회) SHI/벤더 PO 구현 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/po/vendor-table/vendor-po-columns.tsx | 158 +++--------------------------- 1 file changed, 16 insertions(+), 142 deletions(-) (limited to 'lib/po/vendor-table/vendor-po-columns.tsx') diff --git a/lib/po/vendor-table/vendor-po-columns.tsx b/lib/po/vendor-table/vendor-po-columns.tsx index 0910eaf8..c954b872 100644 --- a/lib/po/vendor-table/vendor-po-columns.tsx +++ b/lib/po/vendor-table/vendor-po-columns.tsx @@ -2,43 +2,16 @@ import * as React from "react" import { type ColumnDef } from "@tanstack/react-table" -import { - FileTextIcon, - MoreHorizontalIcon, - EyeIcon, - PrinterIcon, - FileXIcon, - PlusIcon, - EditIcon -} from "lucide-react" +import { FileTextIcon } from "lucide-react" import { Button } from "@/components/ui/button" import { Badge } from "@/components/ui/badge" import { Checkbox } from "@/components/ui/checkbox" -import { - Tooltip, - TooltipContent, - TooltipProvider, - TooltipTrigger, -} from "@/components/ui/tooltip" -import { - DropdownMenu, - DropdownMenuContent, - DropdownMenuItem, - DropdownMenuLabel, - DropdownMenuSeparator, - DropdownMenuTrigger, -} from "@/components/ui/dropdown-menu" import { DataTableColumnHeaderSimple } from "@/components/data-table/data-table-column-simple-header" import { VendorPO, VendorPOActionType } from "./types" - -// 벤더 PO용 행 액션 타입 -type VendorPORowAction = { - row: { original: VendorPO } - type: VendorPOActionType -} +import { VendorPOActions } from "./vendor-po-actions" interface GetVendorColumnsProps { - setRowAction: React.Dispatch> + setRowAction: React.Dispatch> selectedRows?: number[] onRowSelect?: (id: number, selected: boolean) => void } @@ -333,18 +306,19 @@ export function getVendorColumns({ setRowAction, selectedRows = [], onRowSelect size: 120, }, + // 데이터 및 룰이 없어 구현불가한 컬럼 주석 처리 --> 안내됨 // L/C No. - { - accessorKey: "lcNo", - header: ({ column }) => ( - - ), - cell: ({ row }) => { - const lcNo = row.getValue("lcNo") as string - return
{lcNo || '-'}
- }, - size: 120, - }, + // { + // accessorKey: "lcNo", + // header: ({ column }) => ( + // + // ), + // cell: ({ row }) => { + // const lcNo = row.getValue("lcNo") as string + // return
{lcNo || '-'}
+ // }, + // size: 120, + // }, // 납품대금 연동제 대상 { @@ -403,107 +377,7 @@ export function getVendorColumns({ setRowAction, selectedRows = [], onRowSelect id: "actions", enableHiding: false, header: () =>
액션
, - cell: function Cell({ row }) { - return ( -
- {/* 상세품목 버튼 */} - - - - - - - 상세품목 보기 - - - - - {/* 드롭다운 메뉴 - - - - - - 액션 - setRowAction({ row, type: "view-items" })} - > - - 상세품목 보기 - - - setRowAction({ row, type: "pcr-create" })} - > - - PCR생성 - - - - - setRowAction({ row, type: "approve" })} - > - 승인 - - - setRowAction({ row, type: "cancel-approve" })} - > - 승인취소 - - - setRowAction({ row, type: "reject-contract" })} - className="text-red-600" - > - - 계약거절 - - - - - setRowAction({ row, type: "print-contract" })} - > - - 계약서출력 - - - setRowAction({ row, type: "contract-detail" })} - > - - 계약상세 - - - setRowAction({ row, type: "po-note" })} - > - - PO Note - - - setRowAction({ row, type: "price-index" })} - > - 연동표입력 - - - */} -
- ); - }, + cell: ({ row }) => , size: 120, minSize: 100, }, -- cgit v1.2.3