summaryrefslogtreecommitdiff
path: root/lib/tech-project-avl/table/accepted-quotations-table-columns.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'lib/tech-project-avl/table/accepted-quotations-table-columns.tsx')
-rw-r--r--lib/tech-project-avl/table/accepted-quotations-table-columns.tsx74
1 files changed, 55 insertions, 19 deletions
diff --git a/lib/tech-project-avl/table/accepted-quotations-table-columns.tsx b/lib/tech-project-avl/table/accepted-quotations-table-columns.tsx
index e73c2163..5dd1b58f 100644
--- a/lib/tech-project-avl/table/accepted-quotations-table-columns.tsx
+++ b/lib/tech-project-avl/table/accepted-quotations-table-columns.tsx
@@ -21,6 +21,7 @@ export interface RfqItemInfo {
// Accepted Quotation 타입 정의
export interface AcceptedQuotationItem {
id: number
+ uniqueKey: string // 확장된 데이터의 유니크 키
rfqId: number
vendorId: number
quotationVersion: number | null
@@ -162,6 +163,59 @@ export function getColumns(): ColumnDef<AcceptedQuotationItem>[] {
excelHeader: "프로젝트명",
},
},
+ // 선주명
+ {
+ accessorKey: "kunnrNm",
+ header: ({ column }) => (
+ <DataTableColumnHeaderSimple column={column} title="선주명" />
+ ),
+ cell: ({ row }) => (
+ <div className="max-w-32 truncate">
+ {row.original.kunnrNm || "-"}
+ </div>
+ ),
+ enableSorting: true,
+ enableHiding: true,
+ meta: {
+ excelHeader: "선주명",
+ },
+ },
+ // 선종코드
+ {
+ accessorKey: "ptype",
+ header: ({ column }) => (
+ <DataTableColumnHeaderSimple column={column} title="선종코드" />
+ ),
+ cell: ({ row }) => (
+ <div className="font-medium">
+ {row.original.ptype || "-"}
+ </div>
+ ),
+ enableSorting: true,
+ enableHiding: true,
+ meta: {
+ excelHeader: "선종코드",
+ },
+ },
+ // 공종
+ {
+ accessorKey: "workType",
+ header: ({ column }) => (
+ <DataTableColumnHeaderSimple column={column} title="공종" />
+ ),
+ cell: ({ row }) => {
+ return (
+ <div className="max-w-32 truncate">
+ {row.original.workType || "-"}
+ </div>
+ );
+ },
+ enableSorting: false,
+ enableHiding: true,
+ meta: {
+ excelHeader: "공종",
+ },
+ },
// RFQ 코드
{
accessorKey: "rfqCode",
@@ -215,25 +269,7 @@ export function getColumns(): ColumnDef<AcceptedQuotationItem>[] {
excelHeader: "자재그룹",
},
},
- // 공종
- {
- accessorKey: "workType",
- header: ({ column }) => (
- <DataTableColumnHeaderSimple column={column} title="공종" />
- ),
- cell: ({ row }) => {
- return (
- <div className="max-w-32 truncate">
- {row.original.workType || "-"}
- </div>
- );
- },
- enableSorting: false,
- enableHiding: true,
- meta: {
- excelHeader: "공종",
- },
- },
+
// 선종
{
accessorKey: "shipType",