fix: Solve product creation
This commit is contained in:
parent
467a862344
commit
ed5dc2d872
1 changed files with 11 additions and 9 deletions
|
|
@ -41,6 +41,7 @@ const props = defineProps<{
|
||||||
$t(isType ? 'productAndServiceTypeName' : 'productAndServiceGroupName')
|
$t(isType ? 'productAndServiceTypeName' : 'productAndServiceGroupName')
|
||||||
"
|
"
|
||||||
v-model="name"
|
v-model="name"
|
||||||
|
:rules="[(val: string) => !!val || $t('pleaseInformation')]"
|
||||||
/>
|
/>
|
||||||
<q-input
|
<q-input
|
||||||
:dense="dense"
|
:dense="dense"
|
||||||
|
|
@ -79,7 +80,6 @@ const props = defineProps<{
|
||||||
|
|
||||||
<q-select
|
<q-select
|
||||||
id="input-source-nationality"
|
id="input-source-nationality"
|
||||||
|
|
||||||
:dense="dense"
|
:dense="dense"
|
||||||
outlined
|
outlined
|
||||||
:readonly="readonly"
|
:readonly="readonly"
|
||||||
|
|
@ -97,9 +97,11 @@ const props = defineProps<{
|
||||||
:rules="[
|
:rules="[
|
||||||
(val) => {
|
(val) => {
|
||||||
const roles = getRole() || [];
|
const roles = getRole() || [];
|
||||||
const isSpecialRole = ['admin', 'system', 'head_of_admin'].some(role => roles.includes(role));
|
const isSpecialRole = ['admin', 'system', 'head_of_admin'].some(
|
||||||
|
(role) => roles.includes(role),
|
||||||
|
);
|
||||||
return isSpecialRole || !!val || 'กรุณากรอกข้อมูล';
|
return isSpecialRole || !!val || 'กรุณากรอกข้อมูล';
|
||||||
}
|
},
|
||||||
]"
|
]"
|
||||||
clearable
|
clearable
|
||||||
/>
|
/>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue