From 10ef3db0df710638688508d7cc2628073c3c8a0d Mon Sep 17 00:00:00 2001 From: Methapon2001 <61303214+Methapon2001@users.noreply.github.com> Date: Fri, 9 Aug 2024 17:58:51 +0700 Subject: [PATCH] fixup! feat: add button --- .../03_customer-management/BranchPage.vue | 94 ++++++++++++++++--- 1 file changed, 80 insertions(+), 14 deletions(-) diff --git a/src/pages/03_customer-management/BranchPage.vue b/src/pages/03_customer-management/BranchPage.vue index 204d44bc..6725c1c1 100644 --- a/src/pages/03_customer-management/BranchPage.vue +++ b/src/pages/03_customer-management/BranchPage.vue @@ -8,6 +8,7 @@ import useOptionStore from 'stores/options'; import { Status } from 'stores/types'; import { CustomerBranch, CustomerType } from 'stores/customer/types'; +import ButtonAddComponent from 'components/ButtonAddCompoent.vue'; import SideMenu from 'components/SideMenu.vue'; import { DialogFormContainer, DialogHeader } from 'components/dialog'; import BranchCardCustomer from 'components/03_customer-management/BranchCardCustomer.vue'; @@ -17,7 +18,13 @@ import { QTableProps } from 'quasar'; import { AddressForm } from 'components/form'; import { useCustomerBranchForm } from './form'; import { storeToRefs } from 'pinia'; -import { SaveButton, CancelButton, UndoButton } from 'components/button'; +import { + SaveButton, + CancelButton, + UndoButton, + EditButton, + DeleteButton, +} from 'components/button'; import { EmployerFormAbout, EmployerFormBusiness, @@ -145,12 +152,38 @@ async function fetchList() { } } +function openEmployerBranchForm(formType: 'create' | 'edit' | 'info') { + customerBranchFormState.value.dialogType = formType; + customerBranchFormState.value.dialogModal = true; +} + watch([inputSearch, currentStatus], async () => { await fetchList(); });
{ { background: 'hsla(var(--blue-6-hsl) / .2)', foreground: 'var(--blue-6)', }" - scroll-element="#customer-form-content" + scroll-element="#employer-branch-content" />
-
+
{ customerBranchFormData.authorizedCapital " /> -
+
{ :addressTitle="$t('form.address')" :addressTitleEN="$t('form.address', { suffix: '(EN)' })" /> -
+
{
{ v-model:pay-date="customerBranchFormData.payDate" v-model:wage-rate="customerBranchFormData.wageRate" /> -
+
{