fix:rulse

This commit is contained in:
setthawutttty 2025-08-20 12:43:36 +07:00
parent 5c7f21c454
commit ff9bdf6683

View file

@ -1440,7 +1440,7 @@ onMounted(async () => {
bg-color="white"
:readonly="checkRoutePermisson"
v-model="companyCode"
:rules="[(val:string) => !!val || `${'กรุณากรอก Company Code'}`]"
:rules="pay !== 'payment2'?[(val:string) => !!val || `${'กรุณากรอก Company Code'}`]:[]"
hide-bottom-space
>
</q-input>
@ -1453,7 +1453,7 @@ onMounted(async () => {
bg-color="white"
:readonly="checkRoutePermisson"
v-model="refNo1"
:rules="[(val:string) => !!val || `${'กรุณากรอก refNo1.'}`]"
:rules="pay !== 'payment2' ? [(val:string) => !!val || `${'กรุณากรอก refNo1.'}`]:[]"
hide-bottom-space
>
</q-input>