chore: format

This commit is contained in:
Methapon2001 2024-07-26 10:57:31 +07:00
parent e7852eb8aa
commit 10e0d638f5
6 changed files with 23 additions and 26 deletions

View file

@ -33,14 +33,9 @@ onMounted(async () => {
codeOption.value = option.tha.typeProduct;
}
if(!!props.optionsBranch) {
registeredBranchId.value = props.optionsBranch[0].id ;
if (!!props.optionsBranch) {
registeredBranchId.value = props.optionsBranch[0].id;
}
});
</script>
@ -81,19 +76,21 @@ onMounted(async () => {
map-options
options-dense
:label="$t('registeredBranch')"
class="col-3 "
class="col-3"
option-label="name"
option-value="id"
v-model="registeredBranchId"
:options="optionsBranch"
:rules="[
(val) => {
const roles = getRole() || [];
const isSpecialRole = ['admin', 'system', 'head_of_admin'].some(role => roles.includes(role));
return isSpecialRole || !!val || 'กรุณากรอกข้อมูล';
}
]"
clearable
(val) => {
const roles = getRole() || [];
const isSpecialRole = ['admin', 'system', 'head_of_admin'].some(
(role) => roles.includes(role),
);
return isSpecialRole || !!val || 'กรุณากรอกข้อมูล';
},
]"
clearable
/>
<q-input