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" /> -
+
{