From 7b78c95292e8225267cec5d07ad2a899f40a70cb Mon Sep 17 00:00:00 2001 From: Methapon2001 <61303214+Methapon2001@users.noreply.github.com> Date: Thu, 26 Dec 2024 11:55:25 +0700 Subject: [PATCH] feat: canceled tab quotation --- src/pages/05_quotation/MainPage.vue | 8 ++++++++ src/pages/05_quotation/constants.ts | 1 + 2 files changed, 9 insertions(+) diff --git a/src/pages/05_quotation/MainPage.vue b/src/pages/05_quotation/MainPage.vue index 77d45140..c2a5f660 100644 --- a/src/pages/05_quotation/MainPage.vue +++ b/src/pages/05_quotation/MainPage.vue @@ -287,6 +287,7 @@ async function fetchQuotationList() { Invoice: 'PaymentInProcess', PaymentSuccess: 'PaymentSuccess', ProcessComplete: 'ProcessComplete', + Canceled: 'Canceled', } as const )[pageState.currentTab] : 'Issued', @@ -454,6 +455,13 @@ async function storeDataLocal(id: string) { color: 'blue', hidden: pageState.currentTab !== 'ProcessComplete', }, + { + icon: 'mdi-cancel', + count: quotationStats.canceled, + label: 'general.cancel', + color: 'red', + hidden: pageState.currentTab !== 'Canceled', + }, ]" :dark="$q.dark.isActive" /> diff --git a/src/pages/05_quotation/constants.ts b/src/pages/05_quotation/constants.ts index 691fd179..12d5b702 100644 --- a/src/pages/05_quotation/constants.ts +++ b/src/pages/05_quotation/constants.ts @@ -28,6 +28,7 @@ export const pageTabs = [ 'Invoice', 'PaymentSuccess', 'ProcessComplete', + 'Canceled', ]; export const columnPaySplit = [