From 758b00576809f6bca835bbc4256dd3b7b1b3d6cd Mon Sep 17 00:00:00 2001 From: Thanaphon Frappet Date: Tue, 18 Feb 2025 17:13:36 +0700 Subject: [PATCH] refactor: add id --- src/components/05_quotation/TableQuotation.vue | 6 +++--- src/components/shared/select/SelectCustomer.vue | 3 +++ src/components/shared/table/TableWorker.vue | 7 ++++++- src/pages/05_quotation/MainPage.vue | 1 + src/pages/05_quotation/PaymentForm.vue | 4 ++++ src/pages/05_quotation/QuotationForm.vue | 9 +++++++++ src/pages/05_quotation/QuotationFormProductSelect.vue | 2 ++ src/pages/05_quotation/QuotationFormWorkerSelect.vue | 6 +++++- src/pages/05_quotation/TableRequest.vue | 1 + src/pages/08_request-list/TableRequestList.vue | 3 ++- src/pages/11_credit-note/TableCreditNote.vue | 1 + src/pages/12_debit-note/TableDebitNote.vue | 1 + 12 files changed, 38 insertions(+), 6 deletions(-) diff --git a/src/components/05_quotation/TableQuotation.vue b/src/components/05_quotation/TableQuotation.vue index e51b9979..e3d46c56 100644 --- a/src/components/05_quotation/TableQuotation.vue +++ b/src/components/05_quotation/TableQuotation.vue @@ -127,7 +127,7 @@ defineEmits<{ { v-model="value" option-value="id" incremental + for="select-customer" :label :placeholder :readonly @@ -129,6 +130,8 @@ onMounted(async () => { clickable v-close-popup @click.stop="$emit('create')" + for="select-customer-add-new" + id="select-customer-add-new" > diff --git a/src/components/shared/table/TableWorker.vue b/src/components/shared/table/TableWorker.vue index 73d446ac..4ec870bc 100644 --- a/src/components/shared/table/TableWorker.vue +++ b/src/components/shared/table/TableWorker.vue @@ -142,6 +142,7 @@ function selectedIndex(item: Employee) { diff --git a/src/pages/05_quotation/MainPage.vue b/src/pages/05_quotation/MainPage.vue index 12fae417..410a6bbf 100644 --- a/src/pages/05_quotation/MainPage.vue +++ b/src/pages/05_quotation/MainPage.vue @@ -894,6 +894,7 @@ async function storeDataLocal(id: string) { :text="value.text" :icon-color="value.iconColor" :bg-color="value.color" + :id="`btn-add-new-${value.text}`" @trigger=" () => { triggerCreateCustomerd({ diff --git a/src/pages/05_quotation/PaymentForm.vue b/src/pages/05_quotation/PaymentForm.vue index 89ae4fd1..06566ead 100644 --- a/src/pages/05_quotation/PaymentForm.vue +++ b/src/pages/05_quotation/PaymentForm.vue @@ -514,6 +514,7 @@ onMounted(async () => {
{ :key="opts.status" >