chore: format
This commit is contained in:
parent
e7852eb8aa
commit
10e0d638f5
6 changed files with 23 additions and 26 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue