fix: แก้ สาขาที่ลงทะเบียนไม่มา

This commit is contained in:
Net 2024-07-10 11:49:27 +07:00
parent 48527a2f09
commit 56f880c4e3
2 changed files with 15 additions and 4 deletions

View file

@ -24,10 +24,19 @@ const props = defineProps<{
optionsBranch?: { id: string; name: string }[]; optionsBranch?: { id: string; name: string }[];
}>(); }>();
onMounted(async () => { onMounted( async() => {
if(!!props.optionsBranch) {
registeredBranchId.value = props.optionsBranch[0].id ;
}
setTimeout(() => {
if(!!props.optionsBranch ){
registeredBranchId.value = props.optionsBranch[0].id ;
}
}, 100);
}); });

View file

@ -3094,6 +3094,8 @@ watch(inputSearchProductAndService, async () => {
class="col-md-10 col-sm-12" class="col-md-10 col-sm-12"
> >
<div class="surface-1 rounded bordered q-pa-lg full-width row"> <div class="surface-1 rounded bordered q-pa-lg full-width row">
<BasicInformation <BasicInformation
dense dense
service service