diff --git a/src/pages/03_customer-management/components/employer/EmployerBranch.vue b/src/pages/03_customer-management/BranchPage.vue similarity index 64% rename from src/pages/03_customer-management/components/employer/EmployerBranch.vue rename to src/pages/03_customer-management/BranchPage.vue index 68b048b4..204d44bc 100644 --- a/src/pages/03_customer-management/components/employer/EmployerBranch.vue +++ b/src/pages/03_customer-management/BranchPage.vue @@ -8,15 +8,31 @@ import useOptionStore from 'stores/options'; import { Status } from 'stores/types'; import { CustomerBranch, CustomerType } from 'stores/customer/types'; +import SideMenu from 'components/SideMenu.vue'; +import { DialogFormContainer, DialogHeader } from 'components/dialog'; import BranchCardCustomer from 'components/03_customer-management/BranchCardCustomer.vue'; import PaginationComponent from 'components/PaginationComponent.vue'; import NoData from 'components/NoData.vue'; 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 { + EmployerFormAbout, + EmployerFormBusiness, + EmployerFormContact, +} from './components'; const flowStore = useFlowStore(); -const userCustomer = useCustomerStore(); -const { fetchListCustomeBranch } = userCustomer; +const customerStore = useCustomerStore(); +const { fetchListCustomeBranch } = customerStore; +const customerBranchFormStore = useCustomerBranchForm(); +const { + currentFormData: customerBranchFormData, + state: customerBranchFormState, +} = storeToRefs(customerBranchFormStore); const inputSearch = ref(''); @@ -136,19 +152,10 @@ watch([inputSearch, currentStatus], async () => {