From 406e76ac73af4fa7a3e78518ab59447225531bce Mon Sep 17 00:00:00 2001 From: Net <93821485+somnetsak123@users.noreply.github.com> Date: Tue, 9 Apr 2024 15:55:15 +0700 Subject: [PATCH] =?UTF-8?q?feat:=20=E0=B8=88=E0=B8=B1=E0=B8=94=20=20layout?= =?UTF-8?q?=20inputform?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/01_branch-management/MainPage.vue | 203 +++++++++++++++++++- 1 file changed, 200 insertions(+), 3 deletions(-) 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 () => { + + + + + + + + + + + +