summaryrefslogtreecommitdiff
path: root/lib/tech-project-avl
diff options
context:
space:
mode:
authordujinkim <dujin.kim@dtsolution.co.kr>2025-08-11 09:00:38 +0000
committerdujinkim <dujin.kim@dtsolution.co.kr>2025-08-11 09:00:38 +0000
commiteb654f88214095f71be142b989e620fd28db3f69 (patch)
treeaaad3074de4a6422a880b35f9e577d489b0a6c91 /lib/tech-project-avl
parenta383fd2a30f60360ebc0c1b897b3d43cbae178fa (diff)
(최겸) 기술영업 변경사항 반영, PQ/실사 변경사항 반영
Diffstat (limited to 'lib/tech-project-avl')
-rw-r--r--lib/tech-project-avl/table/accepted-quotations-table-columns.tsx74
-rw-r--r--lib/tech-project-avl/table/accepted-quotations-table.tsx2
2 files changed, 56 insertions, 20 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",
diff --git a/lib/tech-project-avl/table/accepted-quotations-table.tsx b/lib/tech-project-avl/table/accepted-quotations-table.tsx
index da33d0d5..3b0ffdd9 100644
--- a/lib/tech-project-avl/table/accepted-quotations-table.tsx
+++ b/lib/tech-project-avl/table/accepted-quotations-table.tsx
@@ -100,7 +100,7 @@ export function AcceptedQuotationsTable({
sorting: [{ id: "acceptedAt", desc: true }],
columnPinning: { left: ["select"] },
},
- getRowId: (originalRow) => `${originalRow.id}`,
+ getRowId: (originalRow) => originalRow.uniqueKey,
})
return (