fix:label q-input year

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2025-10-09 17:02:11 +07:00
parent 7ecf76701a
commit f3bd67c93f
12 changed files with 20 additions and 20 deletions

View file

@ -1154,7 +1154,7 @@ onMounted(async () => {
</div>
<label class="col-1 flex justify-center items-center">/</label>
<div class="col-5">
<!-- :rules="[(val:string) => !!val || `${'กรุณากรอก พ.ศ.'}`]" -->
<!-- :rules="[(val:string) => !!val || 'กรุณากรอกปี พ.ศ.']" -->
<datepicker
menu-class-name="modalfix"
v-model="formData.commandYear"
@ -1178,7 +1178,7 @@ onMounted(async () => {
? null
: formData.commandYear + 543
"
:label="`${'พ.ศ.'}`"
label="ปี พ.ศ."
>
<template v-slot:prepend>
<q-icon

View file

@ -1118,7 +1118,7 @@ onMounted(async () => {
</div>
<label class="col-1 flex justify-center items-center">/</label>
<div class="col-5">
<!-- :rules="[(val:string) => !!val || `${'กรุณากรอก พ.ศ.'}`]" -->
<!-- :rules="[(val:string) => !!val || 'กรุณากรอกปี พ.ศ.']" -->
<datepicker
menu-class-name="modalfix"
v-model="formData.commandYear"
@ -1142,7 +1142,7 @@ onMounted(async () => {
? null
: formData.commandYear + 543
"
:label="`${'พ.ศ.'}`"
label="ปี พ.ศ."
>
<template v-slot:prepend>
<q-icon

View file

@ -253,8 +253,8 @@ function classInput(val: boolean) {
? null
: formData.commandYear + 543
"
:label="`${'พ.ศ.'}`"
:rules="isAddPosition ? [(val:string) => !!val || `${'กรุณากรอก พ.ศ.'}`] : []"
label="ปี พ.ศ."
:rules="isAddPosition ? [(val:string) => !!val || 'กรุณากรอกปี พ.ศ.'] : []"
clearable
@clear="formData.commandYear = null"
>

View file

@ -1112,7 +1112,7 @@ onMounted(async () => {
? null
: formData.commandYear + 543
"
:label="`${'พ.ศ.'}`"
label="ปี พ.ศ."
clearable
@clear="formData.commandYear = null"
@update:model-value="onUpdateData"

View file

@ -156,7 +156,7 @@ onMounted(async () => {
outlined
hide-bottom-space
:model-value="year === null ? 'ทั้งหมด' : Number(year) + 543"
:label="`${'ปีพ.ศ.'}`"
:label="`${'ปี พ.ศ.'}`"
>
</q-input>
</template>

View file

@ -248,7 +248,7 @@ onMounted(async () => {
:model-value="
fiscalyear === null ? 'ทั้งหมด' : Number(fiscalyear) + 543
"
:label="`${'ปีพ.ศ.'}`"
:label="`${'ปี พ.ศ.'}`"
>
</q-input>
</template>

View file

@ -508,7 +508,7 @@ onMounted(async () => {
dense
borderless
:model-value="Number(year) + 543"
:label="`${'ปีพ.ศ.'}`"
:label="`${'ปี พ.ศ.'}`"
>
<template v-slot:prepend>
<q-icon

View file

@ -438,8 +438,8 @@ watch(
:model-value="
commandYear == null ? null : commandYear + 543
"
:label="`${'พ.ศ.'}`"
:rules="[(val:string) => !!val || `${'กรุณากรอก พ.ศ.'}`]"
label="ปี พ.ศ."
:rules="[(val:string) => !!val || 'กรุณากรอกปี พ.ศ.']"
>
<template v-slot:prepend>
<q-icon
@ -478,8 +478,8 @@ watch(
outlined
hide-bottom-space
:model-value="commandYear == null ? null : commandYear + 543"
:label="`${'พ.ศ.'}`"
:rules="[(val:string) => !!val || `${'กรุณากรอก พ.ศ.'}`]"
label="ปี พ.ศ."
:rules="[(val:string) => !!val || 'กรุณากรอกปี พ.ศ.']"
>
<template v-slot:prepend>
<q-icon

View file

@ -431,8 +431,8 @@ watch(modal, async () => {
:model-value="
commandYear == null ? null : commandYear + 543
"
:label="`${'พ.ศ.'}`"
:rules="[(val:string) => !!val || `${'กรุณากรอก พ.ศ.'}`]"
label="ปี พ.ศ."
:rules="[(val:string) => !!val || 'กรุณากรอกปี พ.ศ.']"
>
<template v-slot:prepend>
<q-icon

View file

@ -182,8 +182,8 @@ watch(modal, () => {
:model-value="
commandYear == null ? null : commandYear + 543
"
:label="`${'พ.ศ.'}`"
:rules="[(val:string) => !!val || `${'กรุณากรอก พ.ศ.'}`]"
label="ปี พ.ศ."
:rules="[(val:string) => !!val || 'กรุณากรอกปี พ.ศ.']"
>
<template v-slot:prepend>
<q-icon

View file

@ -210,7 +210,7 @@ onMounted(async () => {
? null
: formData.commandYear + 543
"
:label="`${'พ.ศ.'}`"
label="ปี พ.ศ."
>
<template v-slot:prepend>
<q-icon

View file

@ -125,7 +125,7 @@ onMounted(async () => {
:model-value="
queryParams.year == null ? null : queryParams.year + 543
"
:label="`${'พ.ศ.'}`"
label="ปี พ.ศ."
>
<template v-slot:prepend>
<q-icon