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 ; + } + +});