summaryrefslogtreecommitdiff
path: root/lib/rfq-last/vendor-response/vendor-quotations-table-columns.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rfq-last/vendor-response/vendor-quotations-table-columns.tsx')
-rw-r--r--lib/rfq-last/vendor-response/vendor-quotations-table-columns.tsx56
1 files changed, 30 insertions, 26 deletions
diff --git a/lib/rfq-last/vendor-response/vendor-quotations-table-columns.tsx b/lib/rfq-last/vendor-response/vendor-quotations-table-columns.tsx
index a7135ea5..11b6bdaf 100644
--- a/lib/rfq-last/vendor-response/vendor-quotations-table-columns.tsx
+++ b/lib/rfq-last/vendor-response/vendor-quotations-table-columns.tsx
@@ -254,11 +254,16 @@ export function getColumns({
const rfqCode = row.original.rfqCode
const value = row.getValue("rfqType")
- // F로 시작하지 않으면 빈 값 반환
- if (!rfqCode?.startsWith('F')) {
- return null
+ // RFQ 코드의 앞자리에 따라 유형 결정
+ if (rfqCode?.startsWith('I')) {
+ return "ITB"
+ } else if (rfqCode?.startsWith('R')) {
+ return "RFQ"
+ } else if (rfqCode?.startsWith('F')) {
+ return "일반견적"
}
+ // 기존 rfqType 값이 있는 경우 (백업)
const typeMap: Record<string, string> = {
"ITB": "ITB",
"RFQ": "RFQ",
@@ -270,30 +275,29 @@ export function getColumns({
minSize: 80,
maxSize: 120,
enableResizing: true,
- // F로 시작하지 않을 때 컬럼 숨기기
enableHiding: true,
},
- {
- accessorKey: "rfqTitle",
- header: ({ column }) => (
- <DataTableColumnHeaderSimple column={column} title="RFQ 제목" />
- ),
- cell: ({ row }) => {
- const rfqCode = row.original.rfqCode
- const value = row.getValue("rfqTitle")
+ // {
+ // accessorKey: "rfqTitle",
+ // header: ({ column }) => (
+ // <DataTableColumnHeaderSimple column={column} title="RFQ 제목" />
+ // ),
+ // cell: ({ row }) => {
+ // const rfqCode = row.original.rfqCode
+ // const value = row.getValue("rfqTitle")
- // F로 시작하지 않으면 빈 값 반환
- if (!rfqCode?.startsWith('F')) {
- return null
- }
+ // // F로 시작하지 않으면 빈 값 반환
+ // if (!rfqCode?.startsWith('F')) {
+ // return null
+ // }
- return value || "-"
- },
- minSize: 200,
- maxSize: 400,
- enableResizing: true,
- enableHiding: true,
- },
+ // return value || "-"
+ // },
+ // minSize: 200,
+ // maxSize: 400,
+ // enableResizing: true,
+ // enableHiding: true,
+ // },
{
accessorKey: "projectName",
header: ({ column }) => (
@@ -301,10 +305,10 @@ export function getColumns({
),
cell: ({ row }) => (
<div className="flex flex-col">
- <span className="font-mono text-xs text-muted-foreground">
+ <span className="text-md font-medium`">
{row.original.projectCode}
</span>
- <span className="max-w-[200px] truncate" title={row.original.projectName || ""}>
+ <span className="max-w-[200px] truncate text-sm text-muted-foreground" title={row.original.projectName || ""}>
{row.original.projectName || "-"}
</span>
</div>
@@ -453,7 +457,7 @@ export function getColumns({
{
accessorKey: "rfqSendDate",
header: ({ column }) => (
- <DataTableColumnHeaderSimple column={column} title="발송일" />
+ <DataTableColumnHeaderSimple column={column} title="RFQ 접수일" />
),
cell: ({ row }) => {
const value = row.getValue("rfqSendDate")