From cdc76c326b48151c31fe2d67dec86205c2f5de9c Mon Sep 17 00:00:00 2001 From: Thanaphon Frappet Date: Fri, 25 Oct 2024 11:39:38 +0700 Subject: [PATCH] refactor: add tab status quotation --- src/pages/05_quotation/QuotationForm.vue | 79 +++++++++++++++++++++--- 1 file changed, 70 insertions(+), 9 deletions(-) diff --git a/src/pages/05_quotation/QuotationForm.vue b/src/pages/05_quotation/QuotationForm.vue index 1da68cb8..92a230b7 100644 --- a/src/pages/05_quotation/QuotationForm.vue +++ b/src/pages/05_quotation/QuotationForm.vue @@ -665,6 +665,35 @@ function storeDataLocal() { window.open('/quotation/document-view', '_blank'); } + +const statusQuotationForm = ref< + { title: string; status: 'done' | 'doing' | 'waiting' }[] +>([ + { + title: 'ใบเสนอราคา', + status: 'done', + }, + { + title: 'ลูกค้าตอบรับ', + status: 'done', + }, + { + title: 'ใบแจ้งหนี้', + status: 'done', + }, + { + title: 'ชำระเงิน', + status: 'doing', + }, + { + title: 'ใบเสร็จรับเงิน', + status: 'waiting', + }, + { + title: 'เสร็จสิ้น', + status: 'waiting', + }, +]);
- - {{ - productGroup.find((g) => g.id === selectedProductGroup) - ?.name || '-' - }} -