feat: validate product code

This commit is contained in:
Methapon2001 2024-06-28 14:14:42 +07:00
parent 99a8822cb8
commit 0900a05a94

View file

@ -30,6 +30,7 @@ defineProps<{
class="col-3"
:label="$t('productCode')"
v-model="code"
:rules="[(val: string) => (!!val && val === 'AC') || val === 'DO']"
/>
<q-input