diff --git a/src/pages/01_branch-management/MainPage.vue b/src/pages/01_branch-management/MainPage.vue index 2810eec2..881c87a3 100644 --- a/src/pages/01_branch-management/MainPage.vue +++ b/src/pages/01_branch-management/MainPage.vue @@ -9,6 +9,7 @@ import TooltipComponent from 'components/TooltipComponent.vue'; import StatCardComponent from 'components/StatCardComponent.vue'; import CardDetailsComponent from 'src/components/01_branch-management/CardDetailsComponent.vue'; import DeatailsBranchDrawerComponent from 'src/components/01_branch-management/DeatailsBranchDrawerComponent.vue'; +import FormDialog from 'src/components/FormDialog.vue'; import { BranchWithChildren, Branch } from 'src/stores/branch/types'; @@ -20,6 +21,7 @@ const modal = ref(false); const showCurrentBaranch = ref(); const shape = ref(false); +const openBranchDrawer = ref(true); const inputSelectBranch = ref('ทั้งหมด'); const inputFilter = ref('คอลัมน์'); @@ -34,6 +36,39 @@ const optionsFilter: string[] = [ 'สถานะ', ]; +const formData = ref({ + hqId: '', + branchId: '', + tel: '', + gender: '', + email: '', + addressL: { + address: '', + province: '', + district: '', + subDistrict: '', + zip: '', + }, + addressEng: { + address: '', + province: '', + district: '', + subDistrict: '', + zip: '', + }, +}); + +const selected = ref(''); + +const headOfficeCode = ref(''); +const headOfficeName = ref(''); +const taxIDNumber = ref(''); +const nameHeadOfficeEN = ref(''); +const inputPhone = ref(''); +const inputIdLine = ref(''); +const inputPhonHeadOffice = ref(''); +const inputEmailHeadOffice = ref(''); + const expanded = ref([]); const rows: { @@ -106,9 +141,11 @@ const branchStat = ref< const treeData = ref([]); -onMounted(() => { - BranchStore.fetchById('9ff3521b-0669-4812-bb25-7f1961956c8e'); - console.log(BranchStore.data); +function openDialog() { + console.log('openDialog'); + + modal.value = true; +} async function getTree() { const result = await branchStore.fetchList({ @@ -378,9 +415,169 @@ onMounted(async () => { + + + + + + + + + + + +