fix:bug rules

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2025-11-07 11:17:24 +07:00
parent c87678bfae
commit e334fd0b74

View file

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