From 7b8a30272bb0cf74ff0dc48cad28a1b4d5cc6b4d Mon Sep 17 00:00:00 2001 From: Methapon2001 <61303214+Methapon2001@users.noreply.github.com> Date: Fri, 26 Jul 2024 10:55:30 +0700 Subject: [PATCH] feat(quotation): form update --- src/pages/05_quotation/MainPage.vue | 13 +--- src/pages/05_quotation/QuatationForm.vue | 95 +++++++++++++++--------- 2 files changed, 60 insertions(+), 48 deletions(-) diff --git a/src/pages/05_quotation/MainPage.vue b/src/pages/05_quotation/MainPage.vue index 86b9f3ba..e19c223d 100644 --- a/src/pages/05_quotation/MainPage.vue +++ b/src/pages/05_quotation/MainPage.vue @@ -2,20 +2,11 @@ import { ref } from 'vue'; import QuatationForm from './QuatationForm.vue'; -import FormDialog from 'components/FormDialog.vue'; -import HistoryEditComponent from 'components/03_customer-management/HistoryEditComponent.vue'; - -const test = ref(true); +const isOpen = ref(true); diff --git a/src/pages/05_quotation/QuatationForm.vue b/src/pages/05_quotation/QuatationForm.vue index cd0b3ff3..aac01f86 100644 --- a/src/pages/05_quotation/QuatationForm.vue +++ b/src/pages/05_quotation/QuatationForm.vue @@ -6,7 +6,7 @@ import MainDialog from 'components/05_quotation/MainDialog.vue'; import WorkerItem from 'components/05_quotation/WorkerItem.vue'; import AppBox from 'components/app/AppBox.vue'; -const dialogState = ref(true); +const dialogState = defineModel({ default: true }); const selectedBranchIssuer = ref(''); const selectedCustomer = ref(''); @@ -15,14 +15,18 @@ const toggleWorker = ref(true);