From 3608f8d0fe9f685d932488bf1b6222812b90e988 Mon Sep 17 00:00:00 2001 From: Thanaphon Frappet Date: Thu, 7 Nov 2024 17:53:12 +0700 Subject: [PATCH] refactor: set colum quotation --- src/pages/05_quotation/constants.ts | 79 +++++++++++++++++++++++++++++ 1 file changed, 79 insertions(+) diff --git a/src/pages/05_quotation/constants.ts b/src/pages/05_quotation/constants.ts index 1e093d1a..129a1b00 100644 --- a/src/pages/05_quotation/constants.ts +++ b/src/pages/05_quotation/constants.ts @@ -53,4 +53,83 @@ export const columnPaySplit = [ }, ] satisfies QTableProps['columns']; +export const columnQuotation = [ + { + name: 'order', + align: 'center', + label: 'general.order', + field: 'no', + }, + + { + name: 'workName', + align: 'left', + label: 'quotation.title', + field: 'workName', + }, + + { + name: 'createdAt', + align: 'left', + label: 'quotation.processOn', + field: 'createdAt', + }, + + { + name: 'dueDate', + align: 'left', + label: 'quotation.validUntil', + field: 'dueDate', + }, + + { + name: 'contactName', + align: 'left', + label: 'quotation.contactName', + field: 'contactName', + }, + + { + name: 'actor', + align: 'left', + label: 'quotation.actor', + field: 'actor', + }, + + { + name: 'summaryPrice', + align: 'left', + label: 'quotation.totalPrice', + field: 'summaryPrice', + }, + + { + name: 'payCondition', + align: 'left', + label: 'quotation.payType', + field: 'payCondition', + }, + + { + name: 'status', + align: 'left', + label: 'general.status', + field: 'status', + }, + + { + name: 'example', + align: 'left', + label: 'general.example', + field: 'example', + }, + + { + name: 'action', + align: 'left', + label: '', + field: '', + }, +] satisfies QTableProps['columns']; + export const fieldSelectedOption = [{ label: 'general.type', value: 'value' }];