From fc0abea637c23484b5cf5d6d73ed499950cc73fe Mon Sep 17 00:00:00 2001 From: Net <93821485+somnetsak123@users.noreply.github.com> Date: Wed, 10 Jul 2024 11:02:26 +0700 Subject: [PATCH] =?UTF-8?q?refactor:=20=E0=B9=80=E0=B8=9E=E0=B8=B4?= =?UTF-8?q?=E0=B9=88=E0=B8=A1=20=E0=B8=9E=E0=B8=B7=E0=B9=89=E0=B8=99?= =?UTF-8?q?=E0=B8=90=E0=B8=B2=E0=B8=99=E0=B9=83=E0=B8=AB=E0=B9=89=E0=B8=81?= =?UTF-8?q?=E0=B8=B1=E0=B8=9A=20=E0=B8=AA=E0=B8=B2=E0=B8=82=E0=B8=B2?= =?UTF-8?q?=E0=B8=97=E0=B8=B5=E0=B9=88=E0=B8=A5=E0=B8=87=E0=B8=97=E0=B8=B0?= =?UTF-8?q?=E0=B9=80=E0=B8=9A=E0=B8=B5=E0=B8=A2=E0=B8=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../03_customer-management/BasicInformation.vue | 14 ++++++++++++-- .../04_product-service/BasicInfoProduct.vue | 13 +++++++++++-- .../04_product-service/BasicInformation.vue | 11 ++++++++++- 3 files changed, 33 insertions(+), 5 deletions(-) diff --git a/src/components/03_customer-management/BasicInformation.vue b/src/components/03_customer-management/BasicInformation.vue index 91ac3f8f..2b16f199 100644 --- a/src/components/03_customer-management/BasicInformation.vue +++ b/src/components/03_customer-management/BasicInformation.vue @@ -23,7 +23,7 @@ const customerBranch = defineModel<{ const employeeId = defineModel('employeeId'); const nrcNo = defineModel('nrcNo'); -defineProps<{ +const props = defineProps<{ dense?: boolean; outlined?: boolean; readonly?: boolean; @@ -39,14 +39,24 @@ defineEmits<{ (e: 'filterOwnerBranch', val: string, update: void): void; }>(); -onMounted(async () => {}); +onMounted(async () => { + + if(!!props.optionsBranch) { + + registeredBranchId.value = props.optionsBranch[0].id ; + } + +});