diff options
| author | dujinkim <dujin.kim@dtsolution.co.kr> | 2025-08-11 09:00:38 +0000 |
|---|---|---|
| committer | dujinkim <dujin.kim@dtsolution.co.kr> | 2025-08-11 09:00:38 +0000 |
| commit | eb654f88214095f71be142b989e620fd28db3f69 (patch) | |
| tree | aaad3074de4a6422a880b35f9e577d489b0a6c91 /lib/tech-project-avl/table/accepted-quotations-table-columns.tsx | |
| parent | a383fd2a30f60360ebc0c1b897b3d43cbae178fa (diff) | |
(최겸) 기술영업 변경사항 반영, PQ/실사 변경사항 반영
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.tsx | 74 |
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",
|
