refactor: เพิ่ม พื้นฐานให้กับ สาขาที่ลงทะเบียน

This commit is contained in:
Net 2024-07-10 11:02:26 +07:00
parent 99e26e4ad2
commit fc0abea637
3 changed files with 33 additions and 5 deletions

View file

@ -23,7 +23,7 @@ const customerBranch = defineModel<{
const employeeId = defineModel<string>('employeeId');
const nrcNo = defineModel<string>('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 ;
}
});
</script>
<template>
<div class="col-3 app-text-muted">
{{ $t(`formDialogTitleInformation`) }}
</div>
<div v-if="!employee" class="col-9 row q-col-gutter-md">
<q-select
id="input-source-nationality"
:dense="dense"