From bedbcd1a9595805a495124ab8d0ee3e6042c2b48 Mon Sep 17 00:00:00 2001 From: Methapon Metanipat Date: Mon, 21 Oct 2024 15:06:14 +0700 Subject: [PATCH] refactor(form-quotation): layout --- src/pages/05_quotation/QuotationForm.vue | 213 +++--- src/pages/05_quotation/QuotationFormInfo.vue | 609 +++++++----------- .../05_quotation/QuotationFormMetadata.vue | 95 +++ src/pages/05_quotation/form.ts | 4 + 4 files changed, 446 insertions(+), 475 deletions(-) create mode 100644 src/pages/05_quotation/QuotationFormMetadata.vue diff --git a/src/pages/05_quotation/QuotationForm.vue b/src/pages/05_quotation/QuotationForm.vue index cc44ee05..daf94777 100644 --- a/src/pages/05_quotation/QuotationForm.vue +++ b/src/pages/05_quotation/QuotationForm.vue @@ -59,6 +59,7 @@ import { } from 'src/pages/03_customer-management/constant'; import { precisionRound } from 'src/utils/arithmetic'; import { useConfigStore } from 'src/stores/config'; +import QuotationFormMetadata from './QuotationFormMetadata.vue'; // defineProps<{ // readonly?: boolean; @@ -570,26 +571,6 @@ onMounted(async () => { sessionData.value = parsed; } - // get query string - // const urlParams = new URLSearchParams(window.location.search); - // - // const price = urlParams.get('agentPrice'); - // agentPrice.value = price === 'true' ? true : false; - // - // date.value = Date.now(); - // - // currentQuotationId.value = urlParams.get('quotationId') || undefined; - // - // quotationFormData.value.registeredBranchId = urlParams.get('branchId') || ''; - // - // quotationFormData.value.customerBranchId = - // urlParams.get('customerBranchId') || ''; - // - // quotationFormState.value.mode = urlParams.get('statusDialog') as - // | 'info' - // | 'edit' - // | 'create'; - // fetch option const resultOption = await fetch('/option/option.json'); const rawOption = await resultOption.json(); @@ -693,7 +674,7 @@ function storeDataLocal() {
-
+
@@ -710,31 +691,124 @@ function storeDataLocal() {
-
+ + + +
+ + + + + + {{ $t('general.remark') }} + +
+ +
+
- +
-
- -
- -