From 642dec8de964d843d8ca6e6e53f055bc65043f97 Mon Sep 17 00:00:00 2001 From: puriphatt Date: Tue, 15 Jul 2025 13:57:26 +0700 Subject: [PATCH] refactor: debit note pay type --- src/pages/05_quotation/QuotationFormInfo.vue | 2 +- src/pages/05_quotation/QuotationFormWorkerSelect.vue | 4 ++++ src/pages/12_debit-note/FormPage.vue | 2 +- src/pages/12_debit-note/expansion/WorkerItemExpansion.vue | 1 + 4 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/pages/05_quotation/QuotationFormInfo.vue b/src/pages/05_quotation/QuotationFormInfo.vue index cc7731e5..5f9f45b3 100644 --- a/src/pages/05_quotation/QuotationFormInfo.vue +++ b/src/pages/05_quotation/QuotationFormInfo.vue @@ -240,7 +240,7 @@ watch( ? payTypeOption.filter((v) => v.value === 'Full') : payTypeOption " - :readonly + :readonly="readonly || debitNote" id="pay-type" :model-value="payType" @update:model-value=" diff --git a/src/pages/05_quotation/QuotationFormWorkerSelect.vue b/src/pages/05_quotation/QuotationFormWorkerSelect.vue index 31c19401..e6adcbd3 100644 --- a/src/pages/05_quotation/QuotationFormWorkerSelect.vue +++ b/src/pages/05_quotation/QuotationFormWorkerSelect.vue @@ -21,6 +21,7 @@ import useOcrStore from 'stores/ocr'; // NOTE: Import Components import { + AddButton, SaveButton, EditButton, UndoButton, @@ -53,6 +54,9 @@ import { SideMenu } from 'src/components'; import BasicInformation from 'components/03_customer-management/employee/BasicInformation.vue'; import { AddressForm } from 'src/components/form'; import ExpirationDate from 'src/components/03_customer-management/ExpirationDate.vue'; +import FormEmployeeHealthCheck from 'src/components/03_customer-management/FormEmployeeHealthCheck.vue'; +import FormEmployeeWorkHistory from 'src/components/03_customer-management/FormEmployeeWorkHistory.vue'; +import FormEmployeeOther from 'src/components/03_customer-management/FormEmployeeOther.vue'; const API_BASE_URL = import.meta.env.VITE_API_BASE_URL; diff --git a/src/pages/12_debit-note/FormPage.vue b/src/pages/12_debit-note/FormPage.vue index 8806d04f..6f026377 100644 --- a/src/pages/12_debit-note/FormPage.vue +++ b/src/pages/12_debit-note/FormPage.vue @@ -1134,10 +1134,10 @@ async function submitAccepted() { view === QuotationStatus.Accepted " :total-price="summaryPrice.finalPrice" + :pay-split="[]" class="q-mb-md" v-model:pay-type="currentFormData.payCondition" v-model:pay-split-count="currentFormData.paySplitCount" - v-model:pay-split="currentFormData.paySplit" v-model:final-discount="currentFormData.discount" v-model:pay-bill-date="currentFormData.payBillDate" v-model:summary-price="summaryPrice" diff --git a/src/pages/12_debit-note/expansion/WorkerItemExpansion.vue b/src/pages/12_debit-note/expansion/WorkerItemExpansion.vue index 51751014..16cd4c07 100644 --- a/src/pages/12_debit-note/expansion/WorkerItemExpansion.vue +++ b/src/pages/12_debit-note/expansion/WorkerItemExpansion.vue @@ -1,5 +1,6 @@