val:string

This commit is contained in:
STW_TTTY\stwtt 2024-09-20 15:23:06 +07:00
parent a147bd70ec
commit 4344ee4a44
42 changed files with 163 additions and 572 deletions

View file

@ -262,7 +262,7 @@ onMounted(async () => {
bg-color="white" bg-color="white"
dense dense
class="inputgreen" class="inputgreen"
:rules="[(val) => !!val || `${'กรุณากรอกชิ่อตัวชี้วัด'}`]" :rules="[(val:string) => !!val || `${'กรุณากรอกชิ่อตัวชี้วัด'}`]"
hide-bottom-space hide-bottom-space
/> />
</div> </div>
@ -331,7 +331,7 @@ onMounted(async () => {
bg-color="white" bg-color="white"
dense dense
class="inputgreen" class="inputgreen"
:rules="[(val) => !!val || `${'กรุณากรอกค่าเป้าหมาย'}`]" :rules="[(val:string) => !!val || `${'กรุณากรอกค่าเป้าหมาย'}`]"
hide-bottom-space hide-bottom-space
/> />
</div> </div>
@ -344,7 +344,7 @@ onMounted(async () => {
dense dense
lazy-rules lazy-rules
class="inputgreen" class="inputgreen"
:rules="[(val) => !!val || `${'กรุณากรอกหน่วยนับ'}`]" :rules="[(val:string) => !!val || `${'กรุณากรอกหน่วยนับ'}`]"
hide-bottom-space hide-bottom-space
/> />
</div> </div>
@ -357,7 +357,7 @@ onMounted(async () => {
bg-color="white" bg-color="white"
dense dense
class="inputgreen" class="inputgreen"
:rules="[(val) => !!val || `${'กรุณากรอกน้ำหนัก'}`]" :rules="[(val:string) => !!val || `${'กรุณากรอกน้ำหนัก'}`]"
hide-bottom-space hide-bottom-space
/> />
</div> </div>
@ -479,7 +479,7 @@ onMounted(async () => {
bg-color="white" bg-color="white"
dense dense
class="inputgreen" class="inputgreen"
:rules="[(val) => !!val || `${'กรุณากรอกนิยามหรือความหมาย'}`]" :rules="[(val:string) => !!val || `${'กรุณากรอกนิยามหรือความหมาย'}`]"
hide-bottom-space hide-bottom-space
/> />
</div> </div>
@ -492,7 +492,7 @@ onMounted(async () => {
type="textarea" type="textarea"
dense dense
class="inputgreen" class="inputgreen"
:rules="[(val) => !!val || `${'กรุณากรอกสูตรคำนวณ'}`]" :rules="[(val:string) => !!val || `${'กรุณากรอกสูตรคำนวณ'}`]"
hide-bottom-space hide-bottom-space
/> />
</div> </div>

View file

@ -514,46 +514,6 @@ onMounted(() => {
{{ fieldLabels[field as keyof typeof fieldLabels] }} {{ fieldLabels[field as keyof typeof fieldLabels] }}
</div> </div>
<div class="col-8 text-left"> <div class="col-8 text-left">
<!-- <q-field
class="q_field_p_none"
ref="fieldRef"
v-model="formScore[field]"
label-slot
borderless
:rules="[(val) => !!val || 'กรุณากรอกมาตรฐานพฤติกรรม']"
hide-bottom-space
>
<template #control>
<q-editor
class="full-width"
v-model="formScore[field]"
:dense="$q.screen.lt.md"
min-height="5rem"
:toolbar="[
[
'bold',
'italic',
'strike',
'underline',
'subscript',
'superscript',
],
['unordered', 'ordered'],
]"
:fonts="{
arial: 'Arial',
arial_black: 'Arial Black',
comic_sans: 'Comic Sans MS',
courier_new: 'Courier New',
impact: 'Impact',
lucida_grande: 'Lucida Grande',
times_new_roman: 'Times New Roman',
verdana: 'Verdana',
}"
/>
</template>
</q-field> -->
<q-input <q-input
v-model="formScore[field]" v-model="formScore[field]"
dense dense

View file

@ -74,7 +74,7 @@ onMounted(() => {
v-model="field.description" v-model="field.description"
label-slot label-slot
borderless borderless
:rules="[(val) => !!val || 'กรุณากรอกมาตรฐานพฤติกรรม']" :rules="[(val:string) => !!val || 'กรุณากรอกมาตรฐานพฤติกรรม']"
hide-bottom-space hide-bottom-space
> >
<template #control> <template #control>

View file

@ -120,7 +120,7 @@ function onSubmit() {
v-model="formData.levels[index].description" v-model="formData.levels[index].description"
label-slot label-slot
borderless borderless
:rules="[(val) => !!val || 'กรุณากรอกมาตรฐานพฤติกรรม']" :rules="[(val:string) => !!val || 'กรุณากรอกมาตรฐานพฤติกรรม']"
hide-bottom-space hide-bottom-space
> >
<template #control> <template #control>

View file

@ -117,7 +117,7 @@ function onSubmit() {
v-model="formScore[field]" v-model="formScore[field]"
label-slot label-slot
borderless borderless
:rules="[(val) => !!val || 'กรุณากรอกมาตรฐานพฤติกรรม']" :rules="[(val:string) => !!val || 'กรุณากรอกมาตรฐานพฤติกรรม']"
hide-bottom-space hide-bottom-space
> >
<template #control> <template #control>

View file

@ -200,7 +200,7 @@ onMounted(() => {
v-model="formData.form[index].description" v-model="formData.form[index].description"
label-slot label-slot
borderless borderless
:rules="[(val) => !!val || 'กรุณากรอกมาตรฐานพฤติกรรม']" :rules="[(val:string) => !!val || 'กรุณากรอกมาตรฐานพฤติกรรม']"
hide-bottom-space hide-bottom-space
> >
<template #control> <template #control>
@ -240,7 +240,7 @@ onMounted(() => {
v-model="formData.form[index].description2" v-model="formData.form[index].description2"
label-slot label-slot
borderless borderless
:rules="[(val) => !!val || 'กรุณากรอกมาตรฐานพฤติกรรม']" :rules="[(val:string) => !!val || 'กรุณากรอกมาตรฐานพฤติกรรม']"
hide-bottom-space hide-bottom-space
> >
<template #control> <template #control>

View file

@ -60,7 +60,7 @@ function onSubmit() {
dense dense
label="ชื่อสมรรถนะ" label="ชื่อสมรรถนะ"
hide-bottom-space hide-bottom-space
:rules="[(val) => !!val || `${'กรุณากรอกชื่อสมรรถนะ'}`]" :rules="[(val:string) => !!val || `${'กรุณากรอกชื่อสมรรถนะ'}`]"
/> />
</div> </div>
<q-card-section class="col-12 q-px-none"> <q-card-section class="col-12 q-px-none">
@ -71,7 +71,7 @@ function onSubmit() {
v-model="formData.definition" v-model="formData.definition"
label-slot label-slot
borderless borderless
:rules="[(val) => !!val || 'กรุณากรอกคำจำกัดความ']" :rules="[(val:string) => !!val || 'กรุณากรอกคำจำกัดความ']"
hide-bottom-space hide-bottom-space
> >
<template #control> <template #control>

View file

@ -55,7 +55,7 @@ function onSubmit() {
v-model="formData.competencyName" v-model="formData.competencyName"
dense dense
hide-bottom-space hide-bottom-space
:rules="[(val) => !!val || `${'กรุณากรอกชื่อสมรรถนะ'}`]" :rules="[(val:string) => !!val || `${'กรุณากรอกชื่อสมรรถนะ'}`]"
label="ชื่อสมรรถนะ" label="ชื่อสมรรถนะ"
/> />
</div> </div>
@ -67,7 +67,7 @@ function onSubmit() {
v-model="formData.definition" v-model="formData.definition"
label-slot label-slot
borderless borderless
:rules="[(val) => !!val || 'กรุณากรอกคำจำกัดความ']" :rules="[(val:string) => !!val || 'กรุณากรอกคำจำกัดความ']"
hide-bottom-space hide-bottom-space
> >
<template #control> <template #control>

View file

@ -136,7 +136,7 @@ onMounted(() => {
v-model="formData.definition" v-model="formData.definition"
label-slot label-slot
borderless borderless
:rules="[(val) => !!val || 'กรุณากรอกคำจำกัดความสมรรถนะ']" :rules="[(val:string) => !!val || 'กรุณากรอกคำจำกัดความสมรรถนะ']"
hide-bottom-space hide-bottom-space
> >
<template #control> <template #control>

View file

@ -126,7 +126,7 @@
hide-bottom-space hide-bottom-space
option-label="name" option-label="name"
option-value="id" option-value="id"
:rules="[(val) => val || 'กรุณาเลือกลำดับชั้นเครื่องราชฯ']" :rules="[(val:string) => val || 'กรุณาเลือกลำดับชั้นเครื่องราชฯ']"
/> />
</q-td> </q-td>
<q-td <q-td

View file

@ -205,7 +205,7 @@
class="full-width datepicker q-pb-none" class="full-width datepicker q-pb-none"
v-model="name" v-model="name"
type="textarea" type="textarea"
:rules="[(val) => (val && val.length > 0) || '']" :rules="[(val:string) => (val && val.length > 0) || '']"
/> />
<q-option-group <q-option-group
dense dense
@ -218,8 +218,6 @@
<q-separator /> <q-separator />
<q-card-actions align="right" class="text-primary"> <q-card-actions align="right" class="text-primary">
<q-btn unelevated label="บันทึก" color="public" type="submit"> <q-btn unelevated label="บันทึก" color="public" type="submit">
<!-- icon="mdi-content-save-outline"
<q-tooltip>นท</q-tooltip> -->
</q-btn> </q-btn>
</q-card-actions> </q-card-actions>
</q-form> </q-form>

View file

@ -211,7 +211,7 @@ const getClass = (val: boolean) => {
:readonly="!(status == 'checkRegister' || status == 'payment')" :readonly="!(status == 'checkRegister' || status == 'payment')"
:borderless="!(status == 'checkRegister' || status == 'payment')" :borderless="!(status == 'checkRegister' || status == 'payment')"
v-model="defaultAddress.address" v-model="defaultAddress.address"
:rules="[(val) => !!val || `${'กรุณากรอก ที่อยู่ตามทะเบียนบ้าน'}`]" :rules="[(val:string) => !!val || `${'กรุณากรอก ที่อยู่ตามทะเบียนบ้าน'}`]"
:label="`${'ที่อยู่ตามทะเบียนบ้าน'}`" :label="`${'ที่อยู่ตามทะเบียนบ้าน'}`"
/> />
</div> </div>
@ -220,7 +220,7 @@ const getClass = (val: boolean) => {
:class="getClass(status == 'checkRegister' || status == 'payment')" :class="getClass(status == 'checkRegister' || status == 'payment')"
:readonly="!(status == 'checkRegister' || status == 'payment')" :readonly="!(status == 'checkRegister' || status == 'payment')"
:borderless="!(status == 'checkRegister' || status == 'payment')" :borderless="!(status == 'checkRegister' || status == 'payment')"
:rules="[(val) => !!val || `${'กรุณาเลือก จังหวัด'}`]" :rules="[(val:string) => !!val || `${'กรุณาเลือก จังหวัด'}`]"
:outlined="status == 'checkRegister' || status == 'payment'" :outlined="status == 'checkRegister' || status == 'payment'"
dense dense
lazy-rules lazy-rules
@ -239,7 +239,7 @@ const getClass = (val: boolean) => {
:class="getClass(status == 'checkRegister' || status == 'payment')" :class="getClass(status == 'checkRegister' || status == 'payment')"
:readonly="!(status == 'checkRegister' || status == 'payment')" :readonly="!(status == 'checkRegister' || status == 'payment')"
:borderless="!(status == 'checkRegister' || status == 'payment')" :borderless="!(status == 'checkRegister' || status == 'payment')"
:rules="[(val) => !!val || `${'กรุณาเลือก เขต / อำเภอ'}`]" :rules="[(val:string) => !!val || `${'กรุณาเลือก เขต / อำเภอ'}`]"
:outlined="status == 'checkRegister' || status == 'payment'" :outlined="status == 'checkRegister' || status == 'payment'"
dense dense
lazy-rules lazy-rules
@ -258,7 +258,7 @@ const getClass = (val: boolean) => {
:class="getClass(status == 'checkRegister' || status == 'payment')" :class="getClass(status == 'checkRegister' || status == 'payment')"
:readonly="!(status == 'checkRegister' || status == 'payment')" :readonly="!(status == 'checkRegister' || status == 'payment')"
:borderless="!(status == 'checkRegister' || status == 'payment')" :borderless="!(status == 'checkRegister' || status == 'payment')"
:rules="[(val) => !!val || `${'กรุณาเลือก แขวง / ตำบล '}`]" :rules="[(val:string) => !!val || `${'กรุณาเลือก แขวง / ตำบล '}`]"
:outlined="status == 'checkRegister' || status == 'payment'" :outlined="status == 'checkRegister' || status == 'payment'"
dense dense
lazy-rules lazy-rules
@ -326,7 +326,7 @@ const getClass = (val: boolean) => {
:readonly="!(status == 'checkRegister' || status == 'payment')" :readonly="!(status == 'checkRegister' || status == 'payment')"
:borderless="!(status == 'checkRegister' || status == 'payment')" :borderless="!(status == 'checkRegister' || status == 'payment')"
v-model="defaultAddress.addressC" v-model="defaultAddress.addressC"
:rules="[(val) => !!val || `${'กรุณากรอก ที่อยู่ปัจจุบัน'}`]" :rules="[(val:string) => !!val || `${'กรุณากรอก ที่อยู่ปัจจุบัน'}`]"
:label="`${'ที่อยู่ปัจจุบัน'}`" :label="`${'ที่อยู่ปัจจุบัน'}`"
/> />
</div> </div>
@ -338,7 +338,7 @@ const getClass = (val: boolean) => {
:class="getClass(status == 'checkRegister' || status == 'payment')" :class="getClass(status == 'checkRegister' || status == 'payment')"
:readonly="!(status == 'checkRegister' || status == 'payment')" :readonly="!(status == 'checkRegister' || status == 'payment')"
:borderless="!(status == 'checkRegister' || status == 'payment')" :borderless="!(status == 'checkRegister' || status == 'payment')"
:rules="[(val) => !!val || `${'กรุณาเลือก จังหวัด'}`]" :rules="[(val:string) => !!val || `${'กรุณาเลือก จังหวัด'}`]"
:outlined="status == 'checkRegister' || status == 'payment'" :outlined="status == 'checkRegister' || status == 'payment'"
dense dense
lazy-rules lazy-rules
@ -360,7 +360,7 @@ const getClass = (val: boolean) => {
:class="getClass(status == 'checkRegister' || status == 'payment')" :class="getClass(status == 'checkRegister' || status == 'payment')"
:readonly="!(status == 'checkRegister' || status == 'payment')" :readonly="!(status == 'checkRegister' || status == 'payment')"
:borderless="!(status == 'checkRegister' || status == 'payment')" :borderless="!(status == 'checkRegister' || status == 'payment')"
:rules="[(val) => !!val || `${'กรุณาเลือก เขต / อำเภอ'}`]" :rules="[(val:string) => !!val || `${'กรุณาเลือก เขต / อำเภอ'}`]"
:outlined="status == 'checkRegister' || status == 'payment'" :outlined="status == 'checkRegister' || status == 'payment'"
dense dense
lazy-rules lazy-rules
@ -382,7 +382,7 @@ const getClass = (val: boolean) => {
:class="getClass(status == 'checkRegister' || status == 'payment')" :class="getClass(status == 'checkRegister' || status == 'payment')"
:readonly="!(status == 'checkRegister' || status == 'payment')" :readonly="!(status == 'checkRegister' || status == 'payment')"
:borderless="!(status == 'checkRegister' || status == 'payment')" :borderless="!(status == 'checkRegister' || status == 'payment')"
:rules="[(val) => !!val || `${'กรุณาเลือก แขวง / ตำบล '}`]" :rules="[(val:string) => !!val || `${'กรุณาเลือก แขวง / ตำบล '}`]"
:outlined="status == 'checkRegister' || status == 'payment'" :outlined="status == 'checkRegister' || status == 'payment'"
dense dense
lazy-rules lazy-rules

View file

@ -651,7 +651,7 @@ const getClass = (val: boolean) => {
:readonly="status !== 'checkRegister' && status == 'payment'" :readonly="status !== 'checkRegister' && status == 'payment'"
:borderless="status !== 'checkRegister' && status == 'payment'" :borderless="status !== 'checkRegister' && status == 'payment'"
v-model="position" v-model="position"
:rules="[(val) => !!val || `${'กรุณากรอกตำแหน่ง/ลักษณะงาน'}`]" :rules="[(val:string) => !!val || `${'กรุณากรอกตำแหน่ง/ลักษณะงาน'}`]"
:label="`${'ตำแหน่ง/ลักษณะงาน'}`" :label="`${'ตำแหน่ง/ลักษณะงาน'}`"
@update:modelValue="clickEditRowPosition" @update:modelValue="clickEditRowPosition"
hide-bottom-space hide-bottom-space
@ -669,7 +669,7 @@ const getClass = (val: boolean) => {
:borderless="status !== 'checkRegister' && status == 'payment'" :borderless="status !== 'checkRegister' && status == 'payment'"
v-model="type" v-model="type"
:options="opType" :options="opType"
:rules="[(val) => !!val || `${'กรุณาเลือกประเภท'}`]" :rules="[(val:string) => !!val || `${'กรุณาเลือกประเภท'}`]"
:label="`${'ประเภท'}`" :label="`${'ประเภท'}`"
@update:modelValue="clickEditRowPosition" @update:modelValue="clickEditRowPosition"
hide-bottom-space hide-bottom-space

View file

@ -96,7 +96,7 @@ const getClass = (val: boolean) => {
:class="getClass(status == 'checkRegister' || status == 'payment')" :class="getClass(status == 'checkRegister' || status == 'payment')"
:readonly="!(status == 'checkRegister' || status == 'payment')" :readonly="!(status == 'checkRegister' || status == 'payment')"
:borderless="!(status == 'checkRegister' || status == 'payment')" :borderless="!(status == 'checkRegister' || status == 'payment')"
:rules="[(val) => !!val || `${'กรุณาเลือก คำนำหน้า'}`]" :rules="[(val:string) => !!val || `${'กรุณาเลือก คำนำหน้า'}`]"
:outlined="status == 'checkRegister' || status == 'payment'" :outlined="status == 'checkRegister' || status == 'payment'"
dense dense
lazy-rules lazy-rules
@ -118,7 +118,7 @@ const getClass = (val: boolean) => {
:readonly="!(status == 'checkRegister' || status == 'payment')" :readonly="!(status == 'checkRegister' || status == 'payment')"
:borderless="!(status == 'checkRegister' || status == 'payment')" :borderless="!(status == 'checkRegister' || status == 'payment')"
v-model="defaultContact.contactFirstname" v-model="defaultContact.contactFirstname"
:rules="[(val) => !!val || `${'กรุณากรอก ชื่อ'}`]" :rules="[(val:string) => !!val || `${'กรุณากรอก ชื่อ'}`]"
:label="`${'ชื่อ'}`" :label="`${'ชื่อ'}`"
/> />
</div> </div>
@ -131,7 +131,7 @@ const getClass = (val: boolean) => {
:readonly="!(status == 'checkRegister' || status == 'payment')" :readonly="!(status == 'checkRegister' || status == 'payment')"
:borderless="!(status == 'checkRegister' || status == 'payment')" :borderless="!(status == 'checkRegister' || status == 'payment')"
v-model="defaultContact.contactLastname" v-model="defaultContact.contactLastname"
:rules="[(val) => !!val || `${'กรุณากรอก นามสกุล'}`]" :rules="[(val:string) => !!val || `${'กรุณากรอก นามสกุล'}`]"
:label="`${'นามสกุล'}`" :label="`${'นามสกุล'}`"
/> />
</div> </div>
@ -144,7 +144,7 @@ const getClass = (val: boolean) => {
:readonly="!(status == 'checkRegister' || status == 'payment')" :readonly="!(status == 'checkRegister' || status == 'payment')"
:borderless="!(status == 'checkRegister' || status == 'payment')" :borderless="!(status == 'checkRegister' || status == 'payment')"
v-model="defaultContact.contactRelations" v-model="defaultContact.contactRelations"
:rules="[(val) => !!val || `${'กรุณากรอกความสัมพันธ์'}`]" :rules="[(val:string) => !!val || `${'กรุณากรอกความสัมพันธ์'}`]"
:label="`${'เกี่ยวข้องเป็น'}`" :label="`${'เกี่ยวข้องเป็น'}`"
/> />
</div> </div>

View file

@ -126,7 +126,7 @@ onMounted(async () => {
:borderless="!edit" :borderless="!edit"
v-model="name" v-model="name"
hide-bottom-space hide-bottom-space
:rules="[(val) => !!val || `${'กรุณากรอกชื่อเอกสาร'}`]" :rules="[(val:string) => !!val || `${'กรุณากรอกชื่อเอกสาร'}`]"
:label="`${'ชื่อเอกสาร'}`" :label="`${'ชื่อเอกสาร'}`"
/> />
<q-uploader <q-uploader

View file

@ -139,7 +139,7 @@ const getClass = (val: boolean) => {
option-value="id" option-value="id"
:options="educationLevelOptions" :options="educationLevelOptions"
v-model="defaultEducation.educationLevelExamId" v-model="defaultEducation.educationLevelExamId"
:rules="[(val) => !!val || `${'กรุณาเลือก วุฒิที่ใช้สมัครสอบ'}`]" :rules="[(val:string) => !!val || `${'กรุณาเลือก วุฒิที่ใช้สมัครสอบ'}`]"
:label="`${'วุฒิที่ใช้สมัครสอบ'}`" :label="`${'วุฒิที่ใช้สมัครสอบ'}`"
@update:model-value="(value) => checkInputName()" @update:model-value="(value) => checkInputName()"
/> />
@ -154,7 +154,7 @@ const getClass = (val: boolean) => {
:readonly="!(status == 'checkRegister' || status == 'payment')" :readonly="!(status == 'checkRegister' || status == 'payment')"
:borderless="!(status == 'checkRegister' || status == 'payment')" :borderless="!(status == 'checkRegister' || status == 'payment')"
v-model="defaultEducation.educationName" v-model="defaultEducation.educationName"
:rules="[(val) => !!val || `${'กรุณากรอก ชื่อปริญญา'}`]" :rules="[(val:string) => !!val || `${'กรุณากรอก ชื่อปริญญา'}`]"
:label="`${'ชื่อปริญญา'}`" :label="`${'ชื่อปริญญา'}`"
/> />
</div> </div>
@ -168,7 +168,7 @@ const getClass = (val: boolean) => {
:readonly="!(status == 'checkRegister' || status == 'payment')" :readonly="!(status == 'checkRegister' || status == 'payment')"
:borderless="!(status == 'checkRegister' || status == 'payment')" :borderless="!(status == 'checkRegister' || status == 'payment')"
v-model="defaultEducation.educationMajor" v-model="defaultEducation.educationMajor"
:rules="[(val) => !!val || `${'กรุณากรอก สาขาวิชา/วิชาเอก'}`]" :rules="[(val:string) => !!val || `${'กรุณากรอก สาขาวิชา/วิชาเอก'}`]"
:label="`${'สาขาวิชา/วิชาเอก'}`" :label="`${'สาขาวิชา/วิชาเอก'}`"
/> />
</div> </div>
@ -182,7 +182,7 @@ const getClass = (val: boolean) => {
:readonly="!(status == 'checkRegister' || status == 'payment')" :readonly="!(status == 'checkRegister' || status == 'payment')"
:borderless="!(status == 'checkRegister' || status == 'payment')" :borderless="!(status == 'checkRegister' || status == 'payment')"
v-model="defaultEducation.educationLocation" v-model="defaultEducation.educationLocation"
:rules="[(val) => !!val || `${'กรุณากรอก ชื่อสถานศึกษา'}`]" :rules="[(val:string) => !!val || `${'กรุณากรอก ชื่อสถานศึกษา'}`]"
:label="`${'ชื่อสถานศึกษา'}`" :label="`${'ชื่อสถานศึกษา'}`"
/> />
</div> </div>
@ -200,7 +200,7 @@ const getClass = (val: boolean) => {
option-value="id" option-value="id"
:options="educationTypeOptions" :options="educationTypeOptions"
v-model="defaultEducation.educationType" v-model="defaultEducation.educationType"
:rules="[(val) => !!val || `${'กรุณาเลือก ประเภทสถานศึกษา'}`]" :rules="[(val:string) => !!val || `${'กรุณาเลือก ประเภทสถานศึกษา'}`]"
:label="`${'ประเภทสถานศึกษา'}`" :label="`${'ประเภทสถานศึกษา'}`"
/> />
</div> </div>
@ -264,7 +264,7 @@ const getClass = (val: boolean) => {
:readonly="!(status == 'checkRegister' || status == 'payment')" :readonly="!(status == 'checkRegister' || status == 'payment')"
:borderless="!(status == 'checkRegister' || status == 'payment')" :borderless="!(status == 'checkRegister' || status == 'payment')"
v-model="defaultEducation.educationScores" v-model="defaultEducation.educationScores"
:rules="[(val) => !!val || `${'กรุณากรอก คะแนนเฉลี่ยสะสม'}`]" :rules="[(val:string) => !!val || `${'กรุณากรอก คะแนนเฉลี่ยสะสม'}`]"
:label="`${'คะแนนเฉลี่ยสะสม'}`" :label="`${'คะแนนเฉลี่ยสะสม'}`"
/> />
</div> </div>
@ -282,7 +282,7 @@ const getClass = (val: boolean) => {
option-value="id" option-value="id"
:options="educationLevelOptions" :options="educationLevelOptions"
v-model="defaultEducation.educationLevelHighId" v-model="defaultEducation.educationLevelHighId"
:rules="[(val) => !!val || `${'กรุณาเลือก วุฒิการศึกษาสูงสุด'}`]" :rules="[(val:string) => !!val || `${'กรุณาเลือก วุฒิการศึกษาสูงสุด'}`]"
:label="`${'วุฒิการศึกษาสูงสุด'}`" :label="`${'วุฒิการศึกษาสูงสุด'}`"
/> />
</div> </div>

View file

@ -135,7 +135,7 @@ onMounted(async () => {
:class="getClass(status == 'checkRegister' || status == 'payment')" :class="getClass(status == 'checkRegister' || status == 'payment')"
:readonly="!(status == 'checkRegister' || status == 'payment')" :readonly="!(status == 'checkRegister' || status == 'payment')"
:borderless="!(status == 'checkRegister' || status == 'payment')" :borderless="!(status == 'checkRegister' || status == 'payment')"
:rules="[(val) => !!val || `${'กรุณาเลือก คำนำหน้าชื่อ'}`]" :rules="[(val:string) => !!val || `${'กรุณาเลือก คำนำหน้าชื่อ'}`]"
:outlined="status == 'checkRegister' || status == 'payment'" :outlined="status == 'checkRegister' || status == 'payment'"
dense dense
lazy-rules lazy-rules
@ -159,7 +159,7 @@ onMounted(async () => {
:readonly="!(status == 'checkRegister' || status == 'payment')" :readonly="!(status == 'checkRegister' || status == 'payment')"
:borderless="!(status == 'checkRegister' || status == 'payment')" :borderless="!(status == 'checkRegister' || status == 'payment')"
v-model="defaultFamily.firstnameC" v-model="defaultFamily.firstnameC"
:rules="[(val) => !!val || `${'กรุณากรอก ชื่อ'}`]" :rules="[(val:string) => !!val || `${'กรุณากรอก ชื่อ'}`]"
:label="`${'ชื่อ'}`" :label="`${'ชื่อ'}`"
/> />
</div> </div>
@ -173,7 +173,7 @@ onMounted(async () => {
:readonly="!(status == 'checkRegister' || status == 'payment')" :readonly="!(status == 'checkRegister' || status == 'payment')"
:borderless="!(status == 'checkRegister' || status == 'payment')" :borderless="!(status == 'checkRegister' || status == 'payment')"
v-model="defaultFamily.lastnameC" v-model="defaultFamily.lastnameC"
:rules="[(val) => !!val || `${'กรุณากรอก นามสกุล'}`]" :rules="[(val:string) => !!val || `${'กรุณากรอก นามสกุล'}`]"
:label="`${'นามสกุล'}`" :label="`${'นามสกุล'}`"
/> />
</div> </div>
@ -187,7 +187,7 @@ onMounted(async () => {
:readonly="!(status == 'checkRegister' || status == 'payment')" :readonly="!(status == 'checkRegister' || status == 'payment')"
:borderless="!(status == 'checkRegister' || status == 'payment')" :borderless="!(status == 'checkRegister' || status == 'payment')"
v-model="defaultFamily.occupationC" v-model="defaultFamily.occupationC"
:rules="[(val) => !!val || `${'กรุณากรอก อาชีพ'}`]" :rules="[(val:string) => !!val || `${'กรุณากรอก อาชีพ'}`]"
:label="`${'อาชีพ'}`" :label="`${'อาชีพ'}`"
/> />
</div> </div>
@ -201,7 +201,7 @@ onMounted(async () => {
:readonly="!(status == 'checkRegister' || status == 'payment')" :readonly="!(status == 'checkRegister' || status == 'payment')"
:borderless="!(status == 'checkRegister' || status == 'payment')" :borderless="!(status == 'checkRegister' || status == 'payment')"
v-model="defaultFamily.nationalityC" v-model="defaultFamily.nationalityC"
:rules="[(val) => !!val || `${'กรุณากรอก สัญชาติ'}`]" :rules="[(val:string) => !!val || `${'กรุณากรอก สัญชาติ'}`]"
:label="`${'สัญชาติ'}`" :label="`${'สัญชาติ'}`"
/> />
</div> </div>
@ -213,7 +213,7 @@ onMounted(async () => {
:class="getClass(status == 'checkRegister' || status == 'payment')" :class="getClass(status == 'checkRegister' || status == 'payment')"
:readonly="!(status == 'checkRegister' || status == 'payment')" :readonly="!(status == 'checkRegister' || status == 'payment')"
:borderless="!(status == 'checkRegister' || status == 'payment')" :borderless="!(status == 'checkRegister' || status == 'payment')"
:rules="[(val) => !!val || `${'กรุณาเลือก คำนำหน้าชื่อ'}`]" :rules="[(val:string) => !!val || `${'กรุณาเลือก คำนำหน้าชื่อ'}`]"
:outlined="status == 'checkRegister' || status == 'payment'" :outlined="status == 'checkRegister' || status == 'payment'"
dense dense
lazy-rules lazy-rules
@ -237,7 +237,7 @@ onMounted(async () => {
:readonly="!(status == 'checkRegister' || status == 'payment')" :readonly="!(status == 'checkRegister' || status == 'payment')"
:borderless="!(status == 'checkRegister' || status == 'payment')" :borderless="!(status == 'checkRegister' || status == 'payment')"
v-model="defaultFamily.firstnameM" v-model="defaultFamily.firstnameM"
:rules="[(val) => !!val || `${'กรุณากรอก ชื่อ'}`]" :rules="[(val:string) => !!val || `${'กรุณากรอก ชื่อ'}`]"
:label="`${'ชื่อ'}`" :label="`${'ชื่อ'}`"
/> />
</div> </div>
@ -251,7 +251,7 @@ onMounted(async () => {
:readonly="!(status == 'checkRegister' || status == 'payment')" :readonly="!(status == 'checkRegister' || status == 'payment')"
:borderless="!(status == 'checkRegister' || status == 'payment')" :borderless="!(status == 'checkRegister' || status == 'payment')"
v-model="defaultFamily.lastnameM" v-model="defaultFamily.lastnameM"
:rules="[(val) => !!val || `${'กรุณากรอก นามสกุล'}`]" :rules="[(val:string) => !!val || `${'กรุณากรอก นามสกุล'}`]"
:label="`${'นามสกุล'}`" :label="`${'นามสกุล'}`"
/> />
</div> </div>
@ -265,7 +265,7 @@ onMounted(async () => {
:readonly="!(status == 'checkRegister' || status == 'payment')" :readonly="!(status == 'checkRegister' || status == 'payment')"
:borderless="!(status == 'checkRegister' || status == 'payment')" :borderless="!(status == 'checkRegister' || status == 'payment')"
v-model="defaultFamily.occupationM" v-model="defaultFamily.occupationM"
:rules="[(val) => !!val || `${'กรุณากรอก อาชีพ'}`]" :rules="[(val:string) => !!val || `${'กรุณากรอก อาชีพ'}`]"
:label="`${'อาชีพ'}`" :label="`${'อาชีพ'}`"
/> />
</div> </div>
@ -279,7 +279,7 @@ onMounted(async () => {
:readonly="!(status == 'checkRegister' || status == 'payment')" :readonly="!(status == 'checkRegister' || status == 'payment')"
:borderless="!(status == 'checkRegister' || status == 'payment')" :borderless="!(status == 'checkRegister' || status == 'payment')"
v-model="defaultFamily.nationalityM" v-model="defaultFamily.nationalityM"
:rules="[(val) => !!val || `${'กรุณากรอก สัญชาติ'}`]" :rules="[(val:string) => !!val || `${'กรุณากรอก สัญชาติ'}`]"
:label="`${'สัญชาติ'}`" :label="`${'สัญชาติ'}`"
/> />
</div> </div>
@ -291,7 +291,7 @@ onMounted(async () => {
:class="getClass(status == 'checkRegister' || status == 'payment')" :class="getClass(status == 'checkRegister' || status == 'payment')"
:readonly="!(status == 'checkRegister' || status == 'payment')" :readonly="!(status == 'checkRegister' || status == 'payment')"
:borderless="!(status == 'checkRegister' || status == 'payment')" :borderless="!(status == 'checkRegister' || status == 'payment')"
:rules="[(val) => !!val || `${'กรุณาเลือก คำนำหน้าชื่อ'}`]" :rules="[(val:string) => !!val || `${'กรุณาเลือก คำนำหน้าชื่อ'}`]"
:outlined="status == 'checkRegister' || status == 'payment'" :outlined="status == 'checkRegister' || status == 'payment'"
dense dense
lazy-rules lazy-rules
@ -314,7 +314,7 @@ onMounted(async () => {
:readonly="!(status == 'checkRegister' || status == 'payment')" :readonly="!(status == 'checkRegister' || status == 'payment')"
:borderless="!(status == 'checkRegister' || status == 'payment')" :borderless="!(status == 'checkRegister' || status == 'payment')"
v-model="defaultFamily.firstnameF" v-model="defaultFamily.firstnameF"
:rules="[(val) => !!val || `${'กรุณากรอก ชื่อ'}`]" :rules="[(val:string) => !!val || `${'กรุณากรอก ชื่อ'}`]"
:label="`${'ชื่อ'}`" :label="`${'ชื่อ'}`"
/> />
</div> </div>
@ -328,7 +328,7 @@ onMounted(async () => {
:readonly="!(status == 'checkRegister' || status == 'payment')" :readonly="!(status == 'checkRegister' || status == 'payment')"
:borderless="!(status == 'checkRegister' || status == 'payment')" :borderless="!(status == 'checkRegister' || status == 'payment')"
v-model="defaultFamily.lastnameF" v-model="defaultFamily.lastnameF"
:rules="[(val) => !!val || `${'กรุณากรอก นามสกุล'}`]" :rules="[(val:string) => !!val || `${'กรุณากรอก นามสกุล'}`]"
:label="`${'นามสกุล'}`" :label="`${'นามสกุล'}`"
/> />
</div> </div>
@ -342,7 +342,7 @@ onMounted(async () => {
:readonly="!(status == 'checkRegister' || status == 'payment')" :readonly="!(status == 'checkRegister' || status == 'payment')"
:borderless="!(status == 'checkRegister' || status == 'payment')" :borderless="!(status == 'checkRegister' || status == 'payment')"
v-model="defaultFamily.occupationF" v-model="defaultFamily.occupationF"
:rules="[(val) => !!val || `${'กรุณากรอก อาชีพ'}`]" :rules="[(val:string) => !!val || `${'กรุณากรอก อาชีพ'}`]"
:label="`${'อาชีพ'}`" :label="`${'อาชีพ'}`"
/> />
</div> </div>
@ -356,7 +356,7 @@ onMounted(async () => {
:readonly="!(status == 'checkRegister' || status == 'payment')" :readonly="!(status == 'checkRegister' || status == 'payment')"
:borderless="!(status == 'checkRegister' || status == 'payment')" :borderless="!(status == 'checkRegister' || status == 'payment')"
v-model="defaultFamily.nationalityF" v-model="defaultFamily.nationalityF"
:rules="[(val) => !!val || `${'กรุณากรอก สัญชาติ'}`]" :rules="[(val:string) => !!val || `${'กรุณากรอก สัญชาติ'}`]"
:label="`${'สัญชาติ'}`" :label="`${'สัญชาติ'}`"
/> />
</div> </div>

View file

@ -226,7 +226,7 @@ onMounted(async () => {
:class="getClass(status == 'checkRegister' || status == 'payment')" :class="getClass(status == 'checkRegister' || status == 'payment')"
:readonly="!(status == 'checkRegister' || status == 'payment')" :readonly="!(status == 'checkRegister' || status == 'payment')"
:borderless="!(status == 'checkRegister' || status == 'payment')" :borderless="!(status == 'checkRegister' || status == 'payment')"
:rules="[(val) => !!val || `${'กรุณาเลือก คำนำหน้าชื่อ'}`]" :rules="[(val:string) => !!val || `${'กรุณาเลือก คำนำหน้าชื่อ'}`]"
:outlined="status == 'checkRegister' || status == 'payment'" :outlined="status == 'checkRegister' || status == 'payment'"
dense dense
lazy-rules lazy-rules
@ -248,7 +248,7 @@ onMounted(async () => {
:readonly="!(status == 'checkRegister' || status == 'payment')" :readonly="!(status == 'checkRegister' || status == 'payment')"
:borderless="!(status == 'checkRegister' || status == 'payment')" :borderless="!(status == 'checkRegister' || status == 'payment')"
v-model="defaultInformation.firstname" v-model="defaultInformation.firstname"
:rules="[(val) => !!val || `${'กรุณากรอก ชื่อ'}`]" :rules="[(val:string) => !!val || `${'กรุณากรอก ชื่อ'}`]"
:label="`${'ชื่อ (ภาษาไทย)'}`" :label="`${'ชื่อ (ภาษาไทย)'}`"
/> />
</div> </div>
@ -261,27 +261,16 @@ onMounted(async () => {
:readonly="!(status == 'checkRegister' || status == 'payment')" :readonly="!(status == 'checkRegister' || status == 'payment')"
:borderless="!(status == 'checkRegister' || status == 'payment')" :borderless="!(status == 'checkRegister' || status == 'payment')"
v-model="defaultInformation.lastname" v-model="defaultInformation.lastname"
:rules="[(val) => !!val || `${'กรุณากรอก นามสกุล'}`]" :rules="[(val:string) => !!val || `${'กรุณากรอก นามสกุล'}`]"
:label="`${'นามสกุล (ภาษาไทย)'}`" :label="`${'นามสกุล (ภาษาไทย)'}`"
/> />
</div> </div>
<div class="col-xs-12 col-sm-3 col-md-3"> <div class="col-xs-12 col-sm-3 col-md-3">
<!-- <q-input
:class="getClass(status == 'checkRegister' || status == 'payment')"
:outlined="status == 'checkRegister' || status == 'payment'"
dense
lazy-rules
:readonly="!status == 'checkRegister' || status == 'payment'"
:borderless="!status == 'checkRegister' || status == 'payment'"
v-model="defaultInformation.nationality"
:rules="[(val) => !!val || `${'กรุณากรอก สัญชาติ'}`]"
:label="`${'สัญชาติ'}`"
/> -->
<q-select <q-select
:class="getClass(status == 'checkRegister' || status == 'payment')" :class="getClass(status == 'checkRegister' || status == 'payment')"
:readonly="!(status == 'checkRegister' || status == 'payment')" :readonly="!(status == 'checkRegister' || status == 'payment')"
:borderless="!(status == 'checkRegister' || status == 'payment')" :borderless="!(status == 'checkRegister' || status == 'payment')"
:rules="[(val) => !!val || `${'กรุณากรอก สัญชาติ'}`]" :rules="[(val:string) => !!val || `${'กรุณากรอก สัญชาติ'}`]"
:outlined="status == 'checkRegister' || status == 'payment'" :outlined="status == 'checkRegister' || status == 'payment'"
dense dense
lazy-rules lazy-rules
@ -295,7 +284,7 @@ onMounted(async () => {
:class="getClass(status == 'checkRegister' || status == 'payment')" :class="getClass(status == 'checkRegister' || status == 'payment')"
:readonly="!(status == 'checkRegister' || status == 'payment')" :readonly="!(status == 'checkRegister' || status == 'payment')"
:borderless="!(status == 'checkRegister' || status == 'payment')" :borderless="!(status == 'checkRegister' || status == 'payment')"
:rules="[(val) => !!val || `${'กรุณาเลือก ศาสนา'}`]" :rules="[(val:string) => !!val || `${'กรุณาเลือก ศาสนา'}`]"
:outlined="status == 'checkRegister' || status == 'payment'" :outlined="status == 'checkRegister' || status == 'payment'"
dense dense
lazy-rules lazy-rules
@ -338,7 +327,7 @@ onMounted(async () => {
? null ? null
: date2Thai(defaultInformation.birthDate) : date2Thai(defaultInformation.birthDate)
" "
:rules="[(val) => !!val || `${'กรุณาเลือก วัน/เดือน/ปี เกิด'}`]" :rules="[(val:string) => !!val || `${'กรุณาเลือก วัน/เดือน/ปี เกิด'}`]"
:label="`${'วัน/เดือน/ปี เกิด'}`" :label="`${'วัน/เดือน/ปี เกิด'}`"
> >
<template v-slot:prepend> <template v-slot:prepend>

View file

@ -125,7 +125,7 @@ onMounted(async () => {
:readonly="!(status == 'checkRegister' || status == 'payment')" :readonly="!(status == 'checkRegister' || status == 'payment')"
:borderless="!(status == 'checkRegister' || status == 'payment')" :borderless="!(status == 'checkRegister' || status == 'payment')"
v-model="defaultOccupation.position" v-model="defaultOccupation.position"
:rules="[(val) => !!val || `${'กรุณากรอก ชื่อตำแหน่ง'}`]" :rules="[(val:string) => !!val || `${'กรุณากรอก ชื่อตำแหน่ง'}`]"
:label="`${'ชื่อตำแหน่ง'}`" :label="`${'ชื่อตำแหน่ง'}`"
/> />
</div> </div>
@ -154,7 +154,7 @@ onMounted(async () => {
:readonly="!(status == 'checkRegister' || status == 'payment')" :readonly="!(status == 'checkRegister' || status == 'payment')"
:borderless="!(status == 'checkRegister' || status == 'payment')" :borderless="!(status == 'checkRegister' || status == 'payment')"
v-model="defaultOccupation.group" v-model="defaultOccupation.group"
:rules="[(val) => !!val || `${'กรุณากรอก กลุ่ม/ฝ่าย'}`]" :rules="[(val:string) => !!val || `${'กรุณากรอก กลุ่ม/ฝ่าย'}`]"
:label="`${'กลุ่ม/ฝ่าย'}`" :label="`${'กลุ่ม/ฝ่าย'}`"
/> />
</div> </div>
@ -168,7 +168,7 @@ onMounted(async () => {
:readonly="!(status == 'checkRegister' || status == 'payment')" :readonly="!(status == 'checkRegister' || status == 'payment')"
:borderless="!(status == 'checkRegister' || status == 'payment')" :borderless="!(status == 'checkRegister' || status == 'payment')"
v-model="defaultOccupation.pile" v-model="defaultOccupation.pile"
:rules="[(val) => !!val || `${'กรุณากรอก กอง'}`]" :rules="[(val:string) => !!val || `${'กรุณากรอก กอง'}`]"
:label="`${'กอง'}`" :label="`${'กอง'}`"
/> />
</div> </div>
@ -182,7 +182,7 @@ onMounted(async () => {
:readonly="!(status == 'checkRegister' || status == 'payment')" :readonly="!(status == 'checkRegister' || status == 'payment')"
:borderless="!(status == 'checkRegister' || status == 'payment')" :borderless="!(status == 'checkRegister' || status == 'payment')"
v-model="defaultOccupation.org" v-model="defaultOccupation.org"
:rules="[(val) => !!val || `${'กรุณากรอก สังกัด'}`]" :rules="[(val:string) => !!val || `${'กรุณากรอก สังกัด'}`]"
:label="`${'สังกัด'}`" :label="`${'สังกัด'}`"
/> />
</div> </div>

View file

@ -382,7 +382,7 @@ onMounted(async () => {
dense dense
hide-bottom-space hide-bottom-space
lazy-rules lazy-rules
:rules="[(val) => !!val || `${'กรุณากรอกชื่อรอบสอบแข่งขัน'}`]" :rules="[(val:string) => !!val || `${'กรุณากรอกชื่อรอบสอบแข่งขัน'}`]"
></q-input> ></q-input>
</div> </div>
<div class="col-xs-12 col-sm-4 col-md-1" v-if="announcementExam"> <div class="col-xs-12 col-sm-4 col-md-1" v-if="announcementExam">
@ -394,7 +394,7 @@ onMounted(async () => {
dense dense
lazy-rules lazy-rules
hide-bottom-space hide-bottom-space
:rules="[(val) => val > 0 || `${'กรุณากรอกรอบการสอบให้ถูกต้อง'}`]" :rules="[(val:number) => val > 0 || `${'กรุณากรอกรอบการสอบให้ถูกต้อง'}`]"
></q-input> ></q-input>
</div> </div>
<div class="col-xs-12 col-sm-4 col-md-1" v-if="announcementExam"> <div class="col-xs-12 col-sm-4 col-md-1" v-if="announcementExam">
@ -416,7 +416,7 @@ onMounted(async () => {
dense dense
hide-bottom-space hide-bottom-space
outlined outlined
:rules="[(val) => !!val || `${'กรุณาเลือกปีงบประมาณ'}`]" :rules="[(val:string) => !!val || `${'กรุณาเลือกปีงบประมาณ'}`]"
:model-value="yearly + 543" :model-value="yearly + 543"
:label="`${'ปีงบประมาณ'}`" :label="`${'ปีงบประมาณ'}`"
> >
@ -512,7 +512,7 @@ onMounted(async () => {
: null : null
" "
:label="`${'วันที่ประกาศ'}`" :label="`${'วันที่ประกาศ'}`"
:rules="[(val) => !!val || `${'กรุณาเลือกวันที่ประกาศ'}`]" :rules="[(val:string) => !!val || `${'กรุณาเลือกวันที่ประกาศ'}`]"
> >
<template v-slot:prepend> <template v-slot:prepend>
<q-icon <q-icon

View file

@ -399,7 +399,7 @@ onMounted(async () => {
label="รอบการสอบ(ครั้ง)" label="รอบการสอบ(ครั้ง)"
dense dense
lazy-rules lazy-rules
:rules="[(val) => val > 0 || `${'กรุณากรอกรอบการสอบให้ถูกต้อง'}`]" :rules="[(val:number) => val > 0 || `${'กรุณากรอกรอบการสอบให้ถูกต้อง'}`]"
></q-input> ></q-input>
</div> </div>
<div class="col-xs-12 col-sm-4 col-md-1" v-if="announcementExam"> <div class="col-xs-12 col-sm-4 col-md-1" v-if="announcementExam">
@ -421,7 +421,7 @@ onMounted(async () => {
dense dense
outlined outlined
:model-value="yearly + 543" :model-value="yearly + 543"
:rules="[(val) => !!val || `${'กรุณาเลือกปีงบประมาณ'}`]" :rules="[(val:string) => !!val || `${'กรุณาเลือกปีงบประมาณ'}`]"
:label="`${'ปีงบประมาณ'}`" :label="`${'ปีงบประมาณ'}`"
> >
<template v-slot:prepend> <template v-slot:prepend>
@ -472,7 +472,7 @@ onMounted(async () => {
dense dense
:model-value="dateExam != null ? date2Thai(dateExam) : null" :model-value="dateExam != null ? date2Thai(dateExam) : null"
:label="`${'วันที่สอบ'}`" :label="`${'วันที่สอบ'}`"
:rules="[(val) => !!val || `${'กรุณาเลือกวันที่สอบ'}`]" :rules="[(val:string) => !!val || `${'กรุณาเลือกวันที่สอบ'}`]"
> >
<template v-slot:prepend> <template v-slot:prepend>
<q-icon <q-icon
@ -510,7 +510,7 @@ onMounted(async () => {
class="full-width datepicker q-mb-md" class="full-width datepicker q-mb-md"
:model-value="dateThaiRange(dateAnnouncement)" :model-value="dateThaiRange(dateAnnouncement)"
:label="`${'วันที่ประกาศ'}`" :label="`${'วันที่ประกาศ'}`"
:rules="[(val) => !!val || `${'กรุณาเลือกวันที่ประกาศ'}`]" :rules="[(val:string) => !!val || `${'กรุณาเลือกวันที่ประกาศ'}`]"
> >
<template v-slot:prepend> <template v-slot:prepend>
<q-icon <q-icon
@ -548,7 +548,7 @@ onMounted(async () => {
class="full-width datepicker q-mb-md" class="full-width datepicker q-mb-md"
:model-value="dateThaiRange(dateRegister)" :model-value="dateThaiRange(dateRegister)"
:label="`${'วันที่สมัคร'}`" :label="`${'วันที่สมัคร'}`"
:rules="[(val) => !!val || `${'กรุณาเลือกวันที่สมัคร'}`]" :rules="[(val:string) => !!val || `${'กรุณาเลือกวันที่สมัคร'}`]"
> >
<template v-slot:prepend> <template v-slot:prepend>
<q-icon <q-icon
@ -591,7 +591,7 @@ onMounted(async () => {
datePayment != null ? dateThaiRange(datePayment) : null datePayment != null ? dateThaiRange(datePayment) : null
" "
:label="`${'วันที่ชำระเงิน'}`" :label="`${'วันที่ชำระเงิน'}`"
:rules="[(val) => !!val || `${'กรุณาเลือกวันที่ชำระเงิน'}`]" :rules="[(val:string) => !!val || `${'กรุณาเลือกวันที่ชำระเงิน'}`]"
> >
<template v-slot:prepend> <template v-slot:prepend>
<q-icon <q-icon
@ -631,7 +631,7 @@ onMounted(async () => {
dateAnnounce != null ? date2Thai(dateAnnounce) : null dateAnnounce != null ? date2Thai(dateAnnounce) : null
" "
:label="`${'วันประกาศผลสอบ'}`" :label="`${'วันประกาศผลสอบ'}`"
:rules="[(val) => !!val || `${'กรุณาเลือกวันประกาศผลสอบ'}`]" :rules="[(val:string) => !!val || `${'กรุณาเลือกวันประกาศผลสอบ'}`]"
> >
<template v-slot:prepend> <template v-slot:prepend>
<q-icon <q-icon

View file

@ -777,7 +777,7 @@ onMounted(async () => {
label="รอบการสอบ(ครั้ง)" label="รอบการสอบ(ครั้ง)"
dense dense
lazy-rules lazy-rules
:rules="[(val) => val > 0 || `${'กรุณากรอกรอบการสอบให้ถูกต้อง'}`]" :rules="[(val:number) => val > 0 || `${'กรุณากรอกรอบการสอบให้ถูกต้อง'}`]"
></q-input> ></q-input>
</div> </div>
<div class="col-xs-12 col-sm-4 col-md-1" v-if="announcementExam"> <div class="col-xs-12 col-sm-4 col-md-1" v-if="announcementExam">
@ -790,7 +790,7 @@ onMounted(async () => {
lazy-rules lazy-rules
input-class="text-right" input-class="text-right"
:rules="[ :rules="[
(val) => val >= 0 || `${'กรุณากรอกค่าธรรมเนียมให้ถูกต้อง'}`, (val:number) => val >= 0 || `${'กรุณากรอกค่าธรรมเนียมให้ถูกต้อง'}`,
]" ]"
></q-input> ></q-input>
</div> </div>
@ -813,17 +813,9 @@ onMounted(async () => {
dense dense
outlined outlined
:model-value="yearly + 543" :model-value="yearly + 543"
:rules="[(val) => !!val || `${'กรุณาเลือกปีงบประมาณ'}`]" :rules="[(val:string) => !!val || `${'กรุณาเลือกปีงบประมาณ'}`]"
:label="`${'ปีงบประมาณ'}`" :label="`${'ปีงบประมาณ'}`"
> >
<!-- <template v-slot:prepend>
<q-icon
name="event"
class="cursor-pointer"
style="color: var(--q-primary)"
>
</q-icon>
</template> -->
</q-input> </q-input>
</template> </template>
</datepicker> </datepicker>
@ -890,7 +882,7 @@ onMounted(async () => {
class="full-width datepicker q-mb-md" class="full-width datepicker q-mb-md"
:model-value="dateThaiRange(dateAnnouncement)" :model-value="dateThaiRange(dateAnnouncement)"
:label="`${'วันที่ประกาศ'}`" :label="`${'วันที่ประกาศ'}`"
:rules="[(val) => !!val || `${'กรุณาเลือกวันที่ประกาศ'}`]" :rules="[(val:string) => !!val || `${'กรุณาเลือกวันที่ประกาศ'}`]"
> >
<template v-slot:prepend> <template v-slot:prepend>
<q-icon <q-icon

View file

@ -863,7 +863,7 @@ onMounted(async () => {
lazy-rules lazy-rules
:readonly="!enable.web" :readonly="!enable.web"
:borderless="!enable.web" :borderless="!enable.web"
:rules="[(val) => !!val || `${'กรุณากรอก ชื่อเว็บภาษาไทย'}`]" :rules="[(val:string) => !!val || `${'กรุณากรอก ชื่อเว็บภาษาไทย'}`]"
label="ชื่อเว็บภาษาไทย" label="ชื่อเว็บภาษาไทย"
/> />
<q-input <q-input
@ -875,7 +875,7 @@ onMounted(async () => {
lazy-rules lazy-rules
:readonly="!enable.web" :readonly="!enable.web"
:borderless="!enable.web" :borderless="!enable.web"
:rules="[(val) => !!val || `${'กรุณากรอก ชื่อเว็บภาษาอังกฤษ'}`]" :rules="[(val:string) => !!val || `${'กรุณากรอก ชื่อเว็บภาษาอังกฤษ'}`]"
label="ชื่อเว็บภาษาอังกฤษ" label="ชื่อเว็บภาษาอังกฤษ"
/> />
<q-input <q-input
@ -887,7 +887,7 @@ onMounted(async () => {
lazy-rules lazy-rules
:readonly="!enable.web" :readonly="!enable.web"
:borderless="!enable.web" :borderless="!enable.web"
:rules="[(val) => !!val || `${'กรุณากรอก ผู้จัดโดย'}`]" :rules="[(val:string) => !!val || `${'กรุณากรอก ผู้จัดโดย'}`]"
label="ผู้จัดโดย" label="ผู้จัดโดย"
/> />
<q-input <q-input
@ -900,7 +900,7 @@ onMounted(async () => {
lazy-rules lazy-rules
:readonly="!enable.web" :readonly="!enable.web"
:borderless="!enable.web" :borderless="!enable.web"
:rules="[(val) => !!val || `${'กรุณากรอก ข้อมูลเว็บโดยย่อ'}`]" :rules="[(val:string) => !!val || `${'กรุณากรอก ข้อมูลเว็บโดยย่อ'}`]"
label="ข้อมูลเว็บโดยย่อ" label="ข้อมูลเว็บโดยย่อ"
/> />
</q-form> </q-form>
@ -1000,7 +1000,7 @@ onMounted(async () => {
:readonly="!enable.about" :readonly="!enable.about"
:borderless="!enable.about" :borderless="!enable.about"
v-model="address.address" v-model="address.address"
:rules="[(val) => !!val || `${'กรุณากรอก ที่อยู่'}`]" :rules="[(val:string) => !!val || `${'กรุณากรอก ที่อยู่'}`]"
:label="`${'ที่อยู่'}`" :label="`${'ที่อยู่'}`"
/> />
</div> </div>
@ -1010,7 +1010,7 @@ onMounted(async () => {
:class="getClass(enable.about)" :class="getClass(enable.about)"
:readonly="!enable.about" :readonly="!enable.about"
:borderless="!enable.about" :borderless="!enable.about"
:rules="[(val) => !!val || `${'กรุณาเลือก จังหวัด'}`]" :rules="[(val:string) => !!val || `${'กรุณาเลือก จังหวัด'}`]"
:outlined="enable.about" :outlined="enable.about"
dense dense
lazy-rules lazy-rules
@ -1030,7 +1030,7 @@ onMounted(async () => {
:class="getClass(enable.about)" :class="getClass(enable.about)"
:readonly="!enable.about" :readonly="!enable.about"
:borderless="!enable.about" :borderless="!enable.about"
:rules="[(val) => !!val || `${'กรุณาเลือก เขต / อำเภอ'}`]" :rules="[(val:string) => !!val || `${'กรุณาเลือก เขต / อำเภอ'}`]"
:outlined="enable.about" :outlined="enable.about"
dense dense
lazy-rules lazy-rules
@ -1050,7 +1050,7 @@ onMounted(async () => {
:class="getClass(enable.about)" :class="getClass(enable.about)"
:readonly="!enable.about" :readonly="!enable.about"
:borderless="!enable.about" :borderless="!enable.about"
:rules="[(val) => !!val || `${'กรุณาเลือก แขวง / ตำบล '}`]" :rules="[(val:string) => !!val || `${'กรุณาเลือก แขวง / ตำบล '}`]"
:outlined="enable.about" :outlined="enable.about"
dense dense
lazy-rules lazy-rules
@ -1215,7 +1215,7 @@ onMounted(async () => {
lazy-rules lazy-rules
:readonly="!editvisible" :readonly="!editvisible"
:borderless="!editvisible" :borderless="!editvisible"
:rules="[(val) => !!val || `${'กรุณากรอก ชื่อ'}`]" :rules="[(val:string) => !!val || `${'กรุณากรอก ชื่อ'}`]"
label="ชื่อ" label="ชื่อ"
/> />
<q-input <q-input
@ -1227,7 +1227,7 @@ onMounted(async () => {
lazy-rules lazy-rules
:readonly="!editvisible" :readonly="!editvisible"
:borderless="!editvisible" :borderless="!editvisible"
:rules="[(val) => !!val || `${'กรุณากรอก ลิ้งก์'}`]" :rules="[(val:string) => !!val || `${'กรุณากรอก ลิ้งก์'}`]"
label="ลิ้งก์" label="ลิ้งก์"
/> />
</q-form> </q-form>

View file

@ -322,7 +322,7 @@ onMounted(async () => {
:readonly="!edit" :readonly="!edit"
:borderless="!edit" :borderless="!edit"
v-model="organizationPositionOld" v-model="organizationPositionOld"
:rules="[(val) => !!val || `${'กรุณากรอกตำแหน่ง/สังกัด'}`]" :rules="[(val:string) => !!val || `${'กรุณากรอกตำแหน่ง/สังกัด'}`]"
hide-bottom-space hide-bottom-space
:label="`${'ตำแหน่ง/สังกัด'}`" :label="`${'ตำแหน่ง/สังกัด'}`"
type="textarea" type="textarea"
@ -339,7 +339,7 @@ onMounted(async () => {
:readonly="!edit" :readonly="!edit"
:borderless="!edit" :borderless="!edit"
v-model="positionTypeOld" v-model="positionTypeOld"
:rules="[(val) => !!val || `${'กรุณากรอกประเภทตำแหน่ง'}`]" :rules="[(val:string) => !!val || `${'กรุณากรอกประเภทตำแหน่ง'}`]"
hide-bottom-space hide-bottom-space
:label="`${'ประเภทตำแหน่ง'}`" :label="`${'ประเภทตำแหน่ง'}`"
/> />
@ -355,7 +355,7 @@ onMounted(async () => {
:readonly="!edit" :readonly="!edit"
:borderless="!edit" :borderless="!edit"
v-model="positionLevelOld" v-model="positionLevelOld"
:rules="[(val) => !!val || `${'กรุณากรอกระดับ'}`]" :rules="[(val:string) => !!val || `${'กรุณากรอกระดับ'}`]"
hide-bottom-space hide-bottom-space
:label="`${'ระดับ'}`" :label="`${'ระดับ'}`"
/> />
@ -371,7 +371,7 @@ onMounted(async () => {
:readonly="!edit" :readonly="!edit"
:borderless="!edit" :borderless="!edit"
v-model="posNo" v-model="posNo"
:rules="[(val) => !!val || `${'กรุณากรอกเลขที่'}`]" :rules="[(val:string) => !!val || `${'กรุณากรอกเลขที่'}`]"
hide-bottom-space hide-bottom-space
:label="`${'เลขที่'}`" :label="`${'เลขที่'}`"
/> />
@ -400,7 +400,7 @@ onMounted(async () => {
:readonly="!edit" :readonly="!edit"
:borderless="!edit" :borderless="!edit"
v-model="organization" v-model="organization"
:rules="[(val) => !!val || `${'กรุณากรอกการปลดออก'}`]" :rules="[(val:string) => !!val || `${'กรุณากรอกการปลดออก'}`]"
hide-bottom-space hide-bottom-space
:label="`${'การปลดออก'}`" :label="`${'การปลดออก'}`"
/> />
@ -429,7 +429,7 @@ onMounted(async () => {
:readonly="!edit" :readonly="!edit"
:borderless="!edit" :borderless="!edit"
:model-value="date !== null ? date2Thai(date) : null" :model-value="date !== null ? date2Thai(date) : null"
:rules="[(val) => !!val || `${'กรุณาเลือกตั้งแต่วัน'}`]" :rules="[(val:string) => !!val || `${'กรุณาเลือกตั้งแต่วัน'}`]"
hide-bottom-space hide-bottom-space
:label="`${'ตั้งแต่วัน'}`" :label="`${'ตั้งแต่วัน'}`"
> >

View file

@ -240,7 +240,7 @@ onMounted(async () => {
:readonly="!edit" :readonly="!edit"
:borderless="!edit" :borderless="!edit"
v-model="organizationPositionOld" v-model="organizationPositionOld"
:rules="[(val) => !!val || `${'กรุณากรอกตำแหน่ง/สังกัด'}`]" :rules="[(val:string) => !!val || `${'กรุณากรอกตำแหน่ง/สังกัด'}`]"
hide-bottom-space hide-bottom-space
:label="`${'ตำแหน่ง/สังกัด'}`" :label="`${'ตำแหน่ง/สังกัด'}`"
type="textarea" type="textarea"
@ -257,7 +257,7 @@ onMounted(async () => {
:readonly="!edit" :readonly="!edit"
:borderless="!edit" :borderless="!edit"
v-model="positionTypeOld" v-model="positionTypeOld"
:rules="[(val) => !!val || `${'กรุณากรอกประเภทตำแหน่ง'}`]" :rules="[(val:string) => !!val || `${'กรุณากรอกประเภทตำแหน่ง'}`]"
hide-bottom-space hide-bottom-space
:label="`${'ประเภทตำแหน่ง'}`" :label="`${'ประเภทตำแหน่ง'}`"
/> />
@ -273,7 +273,7 @@ onMounted(async () => {
:readonly="!edit" :readonly="!edit"
:borderless="!edit" :borderless="!edit"
v-model="positionLevelOld" v-model="positionLevelOld"
:rules="[(val) => !!val || `${'กรุณากรอกระดับ'}`]" :rules="[(val:string) => !!val || `${'กรุณากรอกระดับ'}`]"
hide-bottom-space hide-bottom-space
:label="`${'ระดับ'}`" :label="`${'ระดับ'}`"
/> />
@ -289,7 +289,7 @@ onMounted(async () => {
:readonly="!edit" :readonly="!edit"
:borderless="!edit" :borderless="!edit"
v-model="posNo" v-model="posNo"
:rules="[(val) => !!val || `${'กรุณากรอกเลขที่'}`]" :rules="[(val:string) => !!val || `${'กรุณากรอกเลขที่'}`]"
hide-bottom-space hide-bottom-space
:label="`${'เลขที่'}`" :label="`${'เลขที่'}`"
/> />
@ -324,7 +324,7 @@ onMounted(async () => {
:readonly="!edit" :readonly="!edit"
:borderless="!edit" :borderless="!edit"
v-model="organization" v-model="organization"
:rules="[(val) => !!val || `${'กรุณากรอกการให้ออกสังกัด'}`]" :rules="[(val:string) => !!val || `${'กรุณากรอกการให้ออกสังกัด'}`]"
hide-bottom-space hide-bottom-space
:label="`${'การให้ออกสังกัด'}`" :label="`${'การให้ออกสังกัด'}`"
/> />
@ -353,7 +353,7 @@ onMounted(async () => {
:readonly="!edit" :readonly="!edit"
:borderless="!edit" :borderless="!edit"
:model-value="date !== null ? date2Thai(date) : null" :model-value="date !== null ? date2Thai(date) : null"
:rules="[(val) => !!val || `${'กรุณาเลือกตั้งแต่วัน'}`]" :rules="[(val:string) => !!val || `${'กรุณาเลือกตั้งแต่วัน'}`]"
hide-bottom-space hide-bottom-space
:label="`${'ตั้งแต่วัน'}`" :label="`${'ตั้งแต่วัน'}`"
> >

View file

@ -345,7 +345,7 @@ onMounted(async () => {
label="คะแนนข้อ 1" label="คะแนนข้อ 1"
type="number" type="number"
lazy-rules lazy-rules
:rules="[(val) => val !== '' || 'กรุณากรอกคะเเนน']" :rules="[(val:string) => val !== '' || 'กรุณากรอกคะเเนน']"
/> />
</div> </div>
</div> </div>
@ -390,7 +390,7 @@ onMounted(async () => {
label="คะแนนข้อ 2" label="คะแนนข้อ 2"
type="number" type="number"
lazy-rules lazy-rules
:rules="[(val) => val !== '' || 'กรุณากรอกคะเเนน']" :rules="[(val:string) => val !== '' || 'กรุณากรอกคะเเนน']"
/> />
</div> </div>
</div> </div>
@ -416,7 +416,7 @@ onMounted(async () => {
label="คะแนนข้อ 3" label="คะแนนข้อ 3"
type="number" type="number"
lazy-rules lazy-rules
:rules="[(val) => val !== '' || 'กรุณากรอกคะเเนน']" :rules="[(val:string) => val !== '' || 'กรุณากรอกคะเเนน']"
/> />
</div> </div>
</div> </div>
@ -461,7 +461,7 @@ onMounted(async () => {
label="คะแนนข้อ 4" label="คะแนนข้อ 4"
type="number" type="number"
lazy-rules lazy-rules
:rules="[(val) => val !== '' || 'กรุณากรอกคะเเนน']" :rules="[(val:string) => val !== '' || 'กรุณากรอกคะเเนน']"
/> />
</div> </div>
</div> </div>
@ -506,7 +506,7 @@ onMounted(async () => {
label="คะแนนข้อ 5" label="คะแนนข้อ 5"
type="number" type="number"
lazy-rules lazy-rules
:rules="[(val) => val !== '' || 'กรุณากรอกคะเเนน']" :rules="[(val:string) => val !== '' || 'กรุณากรอกคะเเนน']"
/> />
</div> </div>
</div> </div>
@ -535,7 +535,7 @@ onMounted(async () => {
label="คะแนนข้อ 6" label="คะแนนข้อ 6"
type="number" type="number"
lazy-rules lazy-rules
:rules="[(val) => val !== '' || 'กรุณากรอกคะเเนน']" :rules="[(val:string) => val !== '' || 'กรุณากรอกคะเเนน']"
/> />
</div> </div>
</div> </div>
@ -564,7 +564,7 @@ onMounted(async () => {
label="คะแนนข้อ 7" label="คะแนนข้อ 7"
type="number" type="number"
lazy-rules lazy-rules
:rules="[(val) => val !== '' || 'กรุณากรอกคะเเนน']" :rules="[(val:string) => val !== '' || 'กรุณากรอกคะเเนน']"
/> />
</div> </div>
</div> </div>
@ -610,7 +610,7 @@ onMounted(async () => {
label="คะแนนข้อ 8" label="คะแนนข้อ 8"
type="number" type="number"
lazy-rules lazy-rules
:rules="[(val) => val !== '' || 'กรุณากรอกคะเเนน']" :rules="[(val:string) => val !== '' || 'กรุณากรอกคะเเนน']"
/> />
</div> </div>
</div> </div>
@ -656,7 +656,7 @@ onMounted(async () => {
label="คะแนนข้อ 9" label="คะแนนข้อ 9"
type="number" type="number"
lazy-rules lazy-rules
:rules="[(val) => val !== '' || 'กรุณากรอกคะเเนน']" :rules="[(val:string) => val !== '' || 'กรุณากรอกคะเเนน']"
/> />
</div> </div>
</div> </div>
@ -701,7 +701,7 @@ onMounted(async () => {
label="คะแนนข้อ 10" label="คะแนนข้อ 10"
type="number" type="number"
lazy-rules lazy-rules
:rules="[(val) => val !== '' || 'กรุณากรอกคะเเนน']" :rules="[(val:string) => val !== '' || 'กรุณากรอกคะเเนน']"
/> />
</div> </div>
</div> </div>
@ -715,355 +715,6 @@ onMounted(async () => {
type="textarea" type="textarea"
/> />
</q-card-section> </q-card-section>
<!-- <div class="col-12 row q-pa-sm q-col-gutter-sm"> -->
<!-- <div class="col-10 text-top0 items-center row inline">
{{ questionDesc.question1Desc }}
</div> -->
<!-- <div class="col-2">
<q-input
dense
outlined
v-model="score[0].score"
label="คะแนนข้อ 1"
type="number"
lazy-rules
:rules="[(val) => val !== '' || 'กรุณากรอกคะเเนน']"
/>
</div> -->
<!-- <q-option-group
:options="question1Answer"
type="checkbox"
v-model="reasonWork"
disable
/> -->
<!-- <div class="col-12 text-top0 items-center">
<q-item-label>
<q-input
v-if="reasonWork.includes(question1Answer.length - 1)"
v-model="reasonWorkOther"
disable
label="กรอกข้อความ"
dense
lazy-rules
type="text"
autogrow
hide-bottom-space
outlined
class="bg-white"
:rules="[
(val) => (val && val.length > 0) || 'กรุณากรอกข้อความ',
]"
/>
</q-item-label>
</div> -->
<!-- <div class="col-10 text-top0 items-center row inline">
{{ questionDesc.question2Desc }}
</div> -->
<!-- <div class="col-2 text-top0 items-center">
<q-input
dense
outlined
v-model="score[1].score"
label="คะแนนข้อ 2"
type="number"
lazy-rules
:rules="[(val) => val !== '' || 'กรุณากรอกคะเเนน']"
/>
</div> -->
<!-- <div class="col-12">
<q-option-group
:options="question2Answer"
type="radio"
v-model="timeThink"
disable
/>
</div> -->
<!-- <div class="col-10 text-top0 items-center row inline">
{{ questionDesc.question3Desc }}
</div> -->
<!-- <div class="col-2 text-top0 items-center">
<q-input
dense
outlined
v-model="score[2].score"
label="คะแนนข้อ 3"
type="number"
lazy-rules
:rules="[(val) => val !== '' || 'กรุณากรอกคะเเนน']"
/>
</div> -->
<!-- <q-option-group
:options="question3Answer"
type="checkbox"
v-model="exitFactor"
disable
/> -->
<!-- <div class="col-12 text-top0 items-center">
<q-item-label>
<q-input
v-if="exitFactor.includes(question3Answer.length - 1)"
v-model="exitFactorOther"
label="กรอกข้อความ"
dense
disable
lazy-rules
type="text"
autogrow
hide-bottom-space
outlined
class="bg-white"
:rules="[
(val) => (val && val.length > 0) || 'กรุณากรอกข้อความ',
]"
/>
</q-item-label>
</div> -->
<!-- <div class="col-10 text-top0 items-center row inline">
{{ questionDesc.question4Desc }}
</div> -->
<!--
<div class="col-2 text-top0 items-center">
<q-input
dense
outlined
v-model="score[3].score"
label="คะแนนข้อ 4"
type="number"
lazy-rules
:rules="[(val) => val !== '' || 'กรุณากรอกคะเเนน']"
/>
</div> -->
<!-- <q-list>
<q-option-group
:options="question4Answer"
type="checkbox"
v-model="adjust"
disable
/>
</q-list> -->
<!-- <div class="col-12 text-top0 items-center">
<q-item-label>
<q-input
v-if="adjust.includes(question4Answer.length - 1)"
v-model="adjustOther"
label="กรอกอื่นๆ"
dense
disable
lazy-rules
type="text"
autogrow
hide-bottom-space
outlined
class="bg-white"
:rules="[
(val) => (val && val.length > 0) || 'กรุณากรอกข้อความ',
]"
/>
</q-item-label>
</div> -->
<!-- <div class="col-10 text-top0 items-center row inline">
{{ questionDesc.question5Desc }}
</div> -->
<!-- <div class="col-2 text-top0 items-center">
<q-input
dense
outlined
v-model="score[4].score"
label="คะแนนข้อ 5"
type="number"
lazy-rules
:rules="[(val) => val !== '' || 'กรุณากรอกคะเเนน']"
/>
</div> -->
<!-- <q-input
class="col-12"
dense
disable
outlined
v-model="realReason"
label=" "
type="textarea"
/> -->
<!-- <div class="col-10 text-top0 items-center row inline">
{{ questionDesc.question6Desc }}
</div> -->
<!-- <div class="col-2 text-top0 items-center">
<q-input
dense
outlined
v-model="score[5].score"
label="คะแนนข้อ 6"
type="number"
lazy-rules
:rules="[(val) => val !== '' || 'กรุณากรอกคะเเนน']"
/>
</div> -->
<!-- <q-input
class="col-12"
dense
outlined
disable
v-model="notExitFactor"
label=" "
type="textarea"
/> -->
<!-- <div class="col-10 text-top0 items-center row inline">
{{ questionDesc.question7Desc }}
</div> -->
<!-- <div class="col-2 text-top0 items-center">
<q-input
dense
outlined
v-model="score[6].score"
label="คะแนนข้อ 7"
type="number"
lazy-rules
:rules="[(val) => val !== '' || 'กรุณากรอกคะเเนน']"
/>
</div> -->
<!-- <q-option-group
:options="question7Answer"
type="radio"
v-model="haveJob"
disable
/> -->
<!-- <div class="col-12 text-top0 items-center">
<q-item-label>
<q-input
v-if="haveJob == 0"
v-model="haveJobReason"
label="กรอกอื่นๆ"
dense
disable
lazy-rules
type="text"
autogrow
hide-bottom-space
outlined
class="bg-white"
:rules="[
(val) => (val && val.length > 0) || 'กรุณากรอกข้อความ',
]"
/>
</q-item-label>
</div> -->
<!-- <div class="col-10 text-top0 items-center row inline">
{{ questionDesc.question8Desc }}
</div> -->
<!-- <div class="col-2 text-top0 items-center">
<q-input
dense
outlined
v-model="score[7].score"
label="คะแนนข้อ 8"
type="number"
lazy-rules
:rules="[(val) => val !== '' || 'กรุณากรอกคะเเนน']"
/>
</div> -->
<!-- <q-option-group
:options="question8Answer"
type="radio"
v-model="suggestFriends"
disable
/> -->
<!-- <div class="col-12 text-top0 items-center">
<q-item-label>
<q-input
v-if="suggestFriends === 1"
v-model="suggestFriendsReason"
label="กรอกข้อความ"
dense
lazy-rules
disable
type="text"
autogrow
hide-bottom-space
outlined
class="bg-white"
:rules="[
(val) => (val && val.length > 0) || 'กรุณากรอกข้อความ',
]"
/>
</q-item-label>
</div> -->
<!-- <div class="col-10 text-top0 items-center row inline">
{{ questionDesc.question9Desc }}
</div> -->
<!-- <div class="col-2 text-top0 items-center">
<q-input
dense
outlined
v-model="score[8].score"
label="คะแนนข้อ 9"
type="number"
lazy-rules
:rules="[(val) => val !== '' || 'กรุณากรอกคะเเนน']"
/>
</div> -->
<!-- <q-option-group
:options="question9Answer"
type="radio"
v-model="futureWork"
disable
/> -->
<!-- <div class="col-12 text-top0 items-center">
<q-item-label>
<q-input
v-if="futureWork === 1"
v-model="futureWorkReason"
label="กรอกข้อความ"
dense
lazy-rules
type="text"
autogrow
hide-bottom-space
outlined
disable
class="bg-white"
:rules="[
(val) => (val && val.length > 0) || 'กรุณากรอกข้อความ',
]"
/>
</q-item-label>
</div> -->
<!-- <div class="col-10 text-top0 items-center row inline">
{{ questionDesc.question10Desc }}
</div> -->
<!-- <div class="col-2 text-top0 items-center">
<q-input
dense
outlined
v-model="score[9].score"
label="คะแนนข้อ 10"
type="number"
lazy-rules
:rules="[(val) => val !== '' || 'กรุณากรอกคะเเนน']"
/>
</div> -->
<!-- <q-input
class="col-12"
dense
disable
outlined
v-model="suggestion"
label=" "
type="textarea"
/> -->
<!-- </div> -->
</q-card> </q-card>
<q-card bordered flat class="q-mt-md"> <q-card bordered flat class="q-mt-md">
@ -1085,7 +736,7 @@ onMounted(async () => {
v-model="comment" v-model="comment"
label="กรอกความคิดเห็น" label="กรอกความคิดเห็น"
type="textarea" type="textarea"
:rules="[(val) => !!val || 'กรุณากรอกความคิดเห็น']" :rules="[(val:string) => !!val || 'กรุณากรอกความคิดเห็น']"
/> />
</div> </div>
<div class="col-2 text-top0"> <div class="col-2 text-top0">

View file

@ -324,7 +324,7 @@ onMounted(async () => {
:readonly="!edit" :readonly="!edit"
:borderless="!edit" :borderless="!edit"
v-model="organizationPositionOld" v-model="organizationPositionOld"
:rules="[(val) => !!val || `${'กรุณากรอกตำแหน่ง/สังกัด'}`]" :rules="[(val:string) => !!val || `${'กรุณากรอกตำแหน่ง/สังกัด'}`]"
hide-bottom-space hide-bottom-space
:label="`${'ตำแหน่ง/สังกัด'}`" :label="`${'ตำแหน่ง/สังกัด'}`"
type="textarea" type="textarea"
@ -341,7 +341,7 @@ onMounted(async () => {
:readonly="!edit" :readonly="!edit"
:borderless="!edit" :borderless="!edit"
v-model="positionTypeOld" v-model="positionTypeOld"
:rules="[(val) => !!val || `${'กรุณากรอกประเภทตำแหน่ง'}`]" :rules="[(val:string) => !!val || `${'กรุณากรอกประเภทตำแหน่ง'}`]"
hide-bottom-space hide-bottom-space
:label="`${'ประเภทตำแหน่ง'}`" :label="`${'ประเภทตำแหน่ง'}`"
/> />
@ -357,7 +357,7 @@ onMounted(async () => {
:readonly="!edit" :readonly="!edit"
:borderless="!edit" :borderless="!edit"
v-model="positionLevelOld" v-model="positionLevelOld"
:rules="[(val) => !!val || `${'กรุณากรอกระดับ'}`]" :rules="[(val:string) => !!val || `${'กรุณากรอกระดับ'}`]"
hide-bottom-space hide-bottom-space
:label="`${'ระดับ'}`" :label="`${'ระดับ'}`"
/> />
@ -373,7 +373,7 @@ onMounted(async () => {
:readonly="!edit" :readonly="!edit"
:borderless="!edit" :borderless="!edit"
v-model="posNo" v-model="posNo"
:rules="[(val) => !!val || `${'กรุณากรอกเลขที่'}`]" :rules="[(val:string) => !!val || `${'กรุณากรอกเลขที่'}`]"
hide-bottom-space hide-bottom-space
:label="`${'เลขที่'}`" :label="`${'เลขที่'}`"
/> />
@ -402,7 +402,7 @@ onMounted(async () => {
:readonly="!edit" :readonly="!edit"
:borderless="!edit" :borderless="!edit"
v-model="organization" v-model="organization"
:rules="[(val) => !!val || `${'กรุณากรอกการไล่ออกจากสังกัด'}`]" :rules="[(val:string) => !!val || `${'กรุณากรอกการไล่ออกจากสังกัด'}`]"
hide-bottom-space hide-bottom-space
:label="`${'ไล่ออกจากสังกัด'}`" :label="`${'ไล่ออกจากสังกัด'}`"
/> />
@ -431,7 +431,7 @@ onMounted(async () => {
:borderless="!edit" :borderless="!edit"
:readonly="!edit" :readonly="!edit"
:model-value="date !== null ? date2Thai(date) : null" :model-value="date !== null ? date2Thai(date) : null"
:rules="[(val) => !!val || `${'กรุณาเลือกตั้งแต่วัน'}`]" :rules="[(val:string) => !!val || `${'กรุณาเลือกตั้งแต่วัน'}`]"
hide-bottom-space hide-bottom-space
:label="`${'ตั้งแต่วัน'}`" :label="`${'ตั้งแต่วัน'}`"
> >

View file

@ -704,7 +704,7 @@ onMounted(() => {
lazy-rules lazy-rules
hide-bottom-space hide-bottom-space
v-model="note" v-model="note"
:rules="[(val) => !!val || 'กรุณากรอกเหตุผล']" :rules="[(val:string) => !!val || 'กรุณากรอกเหตุผล']"
:label="`${'กรอกเหตุผล'}`" :label="`${'กรอกเหตุผล'}`"
type="textarea" type="textarea"
:readonly="statusUpload || checkRoutePermisson" :readonly="statusUpload || checkRoutePermisson"
@ -757,7 +757,7 @@ onMounted(() => {
v-model="fileUpload" v-model="fileUpload"
accept=".pdf" accept=".pdf"
label="อัปโหลดเอกสาร" label="อัปโหลดเอกสาร"
:rules="[(val) => !!val || `${'กรุณาเลือกเอกสารอัปโหลด'}`]" :rules="[(val:string) => !!val || `${'กรุณาเลือกเอกสารอัปโหลด'}`]"
lazy-rules lazy-rules
> >
<template v-slot:prepend> <template v-slot:prepend>
@ -783,7 +783,7 @@ onMounted(() => {
<q-input <q-input
dense dense
outlined outlined
:rules="[(val) => !!val || `${'กรุณาเลือกวันที่'}`]" :rules="[(val:string) => !!val || `${'กรุณาเลือกวันที่'}`]"
:model-value=" :model-value="
signDate !== null ? date2Thai(signDate) : null signDate !== null ? date2Thai(signDate) : null
" "

View file

@ -160,7 +160,7 @@ async function cerateRetirement(data: object) {
option-value="id" option-value="id"
emit-value emit-value
map-options map-options
:rules="[(val) => !!val || 'กรุณาเลือกรอบ']" :rules="[(val:string) => !!val || 'กรุณาเลือกรอบ']"
/> />
</q-item-label> </q-item-label>
</q-item-section> </q-item-section>
@ -187,7 +187,7 @@ async function cerateRetirement(data: object) {
option-value="id" option-value="id"
emit-value emit-value
map-options map-options
:rules="[(val) => !!val || 'กรุณาเลือกรอบ']" :rules="[(val:string) => !!val || 'กรุณาเลือกรอบ']"
/></q-item-label> /></q-item-label>
</q-item-section> </q-item-section>
</q-item> </q-item>

View file

@ -1098,7 +1098,7 @@ onMounted(async () => {
:readonly="!edit" :readonly="!edit"
:borderless="!edit" :borderless="!edit"
v-model="organizationPositionOld" v-model="organizationPositionOld"
:rules="[(val) => !!val || `${'กรุณากรอกตำแหน่ง/สังกัดเดิม'}`]" :rules="[(val:string) => !!val || `${'กรุณากรอกตำแหน่ง/สังกัดเดิม'}`]"
hide-bottom-space hide-bottom-space
:label="`${'ตำแหน่ง/สังกัดเดิม'}`" :label="`${'ตำแหน่ง/สังกัดเดิม'}`"
type="textarea" type="textarea"
@ -1115,7 +1115,7 @@ onMounted(async () => {
:readonly="!edit" :readonly="!edit"
:borderless="!edit" :borderless="!edit"
v-model="positionTypeOld" v-model="positionTypeOld"
:rules="[(val) => !!val || `${'กรุณากรอกตำแหน่งประเภท'}`]" :rules="[(val:string) => !!val || `${'กรุณากรอกตำแหน่งประเภท'}`]"
hide-bottom-space hide-bottom-space
:label="`${'ตำแหน่งประเภท'}`" :label="`${'ตำแหน่งประเภท'}`"
/> />
@ -1131,7 +1131,7 @@ onMounted(async () => {
:readonly="!edit" :readonly="!edit"
:borderless="!edit" :borderless="!edit"
v-model="positionLevelOld" v-model="positionLevelOld"
:rules="[(val) => !!val || `${'กรุณากรอกระดับตำแหน่ง'}`]" :rules="[(val:string) => !!val || `${'กรุณากรอกระดับตำแหน่ง'}`]"
hide-bottom-space hide-bottom-space
:label="`${'ระดับตำแหน่ง'}`" :label="`${'ระดับตำแหน่ง'}`"
/> />
@ -1147,7 +1147,7 @@ onMounted(async () => {
:readonly="!edit" :readonly="!edit"
:borderless="!edit" :borderless="!edit"
v-model="posNo" v-model="posNo"
:rules="[(val) => !!val || `${'กรุณากรอกเลขที่'}`]" :rules="[(val:string) => !!val || `${'กรุณากรอกเลขที่'}`]"
hide-bottom-space hide-bottom-space
:label="`${'เลขที่'}`" :label="`${'เลขที่'}`"
/> />
@ -1263,7 +1263,7 @@ onMounted(async () => {
:readonly="!edit" :readonly="!edit"
:borderless="!edit" :borderless="!edit"
v-model="remarkHorizontal" v-model="remarkHorizontal"
:rules="[(val) => !!val || `${'กรุณากรอกหมายเหตุแนวนอน '}`]" :rules="[(val:string) => !!val || `${'กรุณากรอกหมายเหตุแนวนอน '}`]"
hide-bottom-space hide-bottom-space
:label="`${'หมายเหตุแนวนอน '}`" :label="`${'หมายเหตุแนวนอน '}`"
type="textarea" type="textarea"
@ -1289,7 +1289,7 @@ onMounted(async () => {
dense dense
outlined outlined
lazy-rules lazy-rules
:rules="[(val) => !!val || 'กรุณากรอกความคิดเห็น/เหตุผล']" :rules="[(val:string) => !!val || 'กรุณากรอกความคิดเห็น/เหตุผล']"
v-model="reasonReign" v-model="reasonReign"
:label="`${'กรอกความคิดเห็น/เหตุผล'}`" :label="`${'กรอกความคิดเห็น/เหตุผล'}`"
type="textarea" type="textarea"
@ -1317,7 +1317,7 @@ onMounted(async () => {
" "
hide-bottom-space hide-bottom-space
:label="`${' วันสุดท้ายที่ยับยั้ง'}`" :label="`${' วันสุดท้ายที่ยับยั้ง'}`"
:rules="[(val) => !!val || 'กรุณาเลือกวันที่']" :rules="[(val:string) => !!val || 'กรุณาเลือกวันที่']"
> >
<template v-slot:prepend> <template v-slot:prepend>
<q-icon <q-icon

View file

@ -140,7 +140,7 @@ watch(
map-options map-options
option-label="name" option-label="name"
option-value="id" option-value="id"
:rules="[(val) => !!val || `${'กรุณาเลือกสถานะ'}`]" :rules="[(val:string) => !!val || `${'กรุณาเลือกสถานะ'}`]"
hide-bottom-space hide-bottom-space
use-input use-input
@filter="(inputValue: any,doneFn: Function) => filterFnOptions(inputValue, doneFn)" @filter="(inputValue: any,doneFn: Function) => filterFnOptions(inputValue, doneFn)"
@ -175,7 +175,7 @@ watch(
map-options map-options
option-label="name" option-label="name"
option-value="id" option-value="id"
:rules="[(val) => !!val || `${'กรุณาเลือกสถานะ'}`]" :rules="[(val:string) => !!val || `${'กรุณาเลือกสถานะ'}`]"
hide-bottom-space hide-bottom-space
use-input use-input
@filter="(inputValue: any,doneFn: Function) => filterFnOptions(inputValue, doneFn)" @filter="(inputValue: any,doneFn: Function) => filterFnOptions(inputValue, doneFn)"

View file

@ -320,7 +320,7 @@ watch(
label="เหตุผล" label="เหตุผล"
hide-bottom-space hide-bottom-space
type="textarea" type="textarea"
:rules="[(val) => !!val || `กรุณากรอกเหตุผล`]" :rules="[(val:string) => !!val || `กรุณากรอกเหตุผล`]"
></q-input> ></q-input>
</div> </div>
</div> </div>

View file

@ -257,7 +257,7 @@ watch(
ref="checkInStatusRef" ref="checkInStatusRef"
for="checkInStatus" for="checkInStatus"
emit-value emit-value
:rules="[(val) => !!val || 'กรุณาเลือกสถานะช่วงเช้า']" :rules="[(val:string) => !!val || 'กรุณาเลือกสถานะช่วงเช้า']"
hide-bottom-space hide-bottom-space
map-options map-options
outlined outlined
@ -298,7 +298,7 @@ watch(
map-options map-options
outlined outlined
dense dense
:rules="[(val) => !!val || 'กรุณาเลือกสถานะช่วงบ่าย']" :rules="[(val:string) => !!val || 'กรุณาเลือกสถานะช่วงบ่าย']"
hide-bottom-space hide-bottom-space
full-width full-width
v-model="formData.checkOutStatus" v-model="formData.checkOutStatus"
@ -317,7 +317,7 @@ watch(
class="col-12 bg-white q-ma-md" class="col-12 bg-white q-ma-md"
outlined outlined
stack-label stack-label
:rules="[(val) => !!val || 'กรุณาเหตุผล']" :rules="[(val:string) => !!val || 'กรุณาเหตุผล']"
v-model="formData.note" v-model="formData.note"
label="เหตุผล" label="เหตุผล"
hide-bottom-space hide-bottom-space

View file

@ -425,7 +425,7 @@ onMounted(() => {
map-options map-options
hide-bottom-space hide-bottom-space
:options="complainstStore.complainantoptions" :options="complainstStore.complainantoptions"
:rules="[(val) => !!val || `${'กรุณาเลือกผู้ร้องเรียน'}`]" :rules="[(val:string) => !!val || `${'กรุณาเลือกผู้ร้องเรียน'}`]"
@filter="(inputValue: any, @filter="(inputValue: any,
doneFn: Function) => filterSelector(inputValue, doneFn, 'filterrespondentType' doneFn: Function) => filterSelector(inputValue, doneFn, 'filterrespondentType'
)" )"
@ -493,7 +493,7 @@ onMounted(() => {
:readonly="isReadonly || checkRoutePermisson" :readonly="isReadonly || checkRoutePermisson"
hide-bottom-space hide-bottom-space
map-options map-options
:rules="[(val) => !!val || `${'กรุณาเลือกหน่วยงาน'}`]" :rules="[(val:string) => !!val || `${'กรุณาเลือกหน่วยงาน'}`]"
@update:model-value="changeFormData()" @update:model-value="changeFormData()"
use-input use-input
@filter="filterOptionFnAgency" @filter="filterOptionFnAgency"
@ -641,7 +641,7 @@ onMounted(() => {
:readonly="isReadonly || checkRoutePermisson" :readonly="isReadonly || checkRoutePermisson"
hide-bottom-space hide-bottom-space
v-model="formData.title" v-model="formData.title"
:rules="[(val) => !!val || 'กรุณากรอกเรื่องร้องเรียน']" :rules="[(val:string) => !!val || 'กรุณากรอกเรื่องร้องเรียน']"
label="เรื่องร้องเรียน" label="เรื่องร้องเรียน"
type="textarea" type="textarea"
rows="5" rows="5"

View file

@ -320,7 +320,7 @@ watch(
hide-bottom-space hide-bottom-space
dense dense
label="คำค้น" label="คำค้น"
:rules="[(val) => !!val || `กรุณากรอกคำค้น`]" :rules="[(val:string) => !!val || `กรุณากรอกคำค้น`]"
> >
<template v-slot:after> <template v-slot:after>
<q-btn <q-btn

View file

@ -321,7 +321,7 @@ onMounted(async () => {
:readonly="!edit" :readonly="!edit"
:borderless="!edit" :borderless="!edit"
v-model="data.positionType" v-model="data.positionType"
:rules="[(val) => !!val || `${'กรุณากรอกประเภทตำแหน่ง'}`]" :rules="[(val:string) => !!val || `${'กรุณากรอกประเภทตำแหน่ง'}`]"
hide-bottom-space hide-bottom-space
:label="`${'ประเภทตำแหน่ง'}`" :label="`${'ประเภทตำแหน่ง'}`"
/> />
@ -337,7 +337,7 @@ onMounted(async () => {
:readonly="!edit" :readonly="!edit"
:borderless="!edit" :borderless="!edit"
v-model="data.positionLevel" v-model="data.positionLevel"
:rules="[(val) => !!val || `${'กรุณากรอกระดับตำแหน่ง'}`]" :rules="[(val:string) => !!val || `${'กรุณากรอกระดับตำแหน่ง'}`]"
hide-bottom-space hide-bottom-space
:label="`${'ระดับตำแหน่ง'}`" :label="`${'ระดับตำแหน่ง'}`"
/> />
@ -353,7 +353,7 @@ onMounted(async () => {
:readonly="!edit" :readonly="!edit"
:borderless="!edit" :borderless="!edit"
v-model="data.posNo" v-model="data.posNo"
:rules="[(val) => !!val || `${'กรุณากรอกตำแหน่งเลขที่'}`]" :rules="[(val:string) => !!val || `${'กรุณากรอกตำแหน่งเลขที่'}`]"
hide-bottom-space hide-bottom-space
:label="`${'ตำแหน่งเลขที่'}`" :label="`${'ตำแหน่งเลขที่'}`"
/> />
@ -388,7 +388,7 @@ onMounted(async () => {
:readonly="!edit" :readonly="!edit"
:borderless="!edit" :borderless="!edit"
v-model="data.organization" v-model="data.organization"
:rules="[(val) => !!val || `${'กรุณากรอก'}`]" :rules="[(val:string) => !!val || `${'กรุณากรอก'}`]"
hide-bottom-space hide-bottom-space
:label="`${'สังกัด'}`" :label="`${'สังกัด'}`"
/> />
@ -422,7 +422,7 @@ onMounted(async () => {
? date2Thai(data.startDateSuspend) ? date2Thai(data.startDateSuspend)
: null : null
" "
:rules="[(val) => !!val || `${'กรุณาเลือกตั้งแต่วัน'}`]" :rules="[(val:string) => !!val || `${'กรุณาเลือกตั้งแต่วัน'}`]"
hide-bottom-space hide-bottom-space
:label="`${'ตั้งแต่วัน'}`" :label="`${'ตั้งแต่วัน'}`"
> >
@ -471,7 +471,7 @@ onMounted(async () => {
? date2Thai(data.endDateSuspend) ? date2Thai(data.endDateSuspend)
: null : null
" "
:rules="[(val) => !!val || `${'กรุณาเลือกถึงวันที่'}`]" :rules="[(val:string) => !!val || `${'กรุณาเลือกถึงวันที่'}`]"
hide-bottom-space hide-bottom-space
:label="`${'ถึงวันที่'}`" :label="`${'ถึงวันที่'}`"
> >

View file

@ -394,7 +394,7 @@ onMounted(() => {
option-label="name" option-label="name"
option-value="id" option-value="id"
:options="option" :options="option"
:rules="[(val) => !!val || `${'กรุณาเลือกประเภท'}`]" :rules="[(val:string) => !!val || `${'กรุณาเลือกประเภท'}`]"
hide-bottom-space hide-bottom-space
use-input use-input
@filter="filterOptionFn" @filter="filterOptionFn"
@ -419,7 +419,7 @@ onMounted(() => {
outlined outlined
emit-value emit-value
lazy-rules lazy-rules
:rules="[(val) => !!val || `${'กรุณาเลือกสถานะ'}`]" :rules="[(val:string) => !!val || `${'กรุณาเลือกสถานะ'}`]"
map-options map-options
hide-bottom-space hide-bottom-space
option-label="name" option-label="name"
@ -613,7 +613,7 @@ onMounted(() => {
dense dense
outlined outlined
lazy-rules lazy-rules
:rules="[(val) => !!val || 'กรุณากรอกประเภทคดี']" :rules="[(val:string) => !!val || 'กรุณากรอกประเภทคดี']"
hide-bottom-space hide-bottom-space
label="ประเภทคดี" label="ประเภทคดี"
/> />
@ -627,7 +627,7 @@ onMounted(() => {
dense dense
outlined outlined
lazy-rules lazy-rules
:rules="[(val) => !!val || 'กรุณากรอกเลขที่คดี']" :rules="[(val:string) => !!val || 'กรุณากรอกเลขที่คดี']"
label="เลขที่คดี" label="เลขที่คดี"
hide-bottom-space hide-bottom-space
/> />

View file

@ -73,7 +73,7 @@ watch(props, () => {
class="col-12 q-mb-sm" class="col-12 q-mb-sm"
debounce="300" debounce="300"
label="หน้าที่" label="หน้าที่"
:rules="[(val) => !!val || `กรุณากรอกหน้าที่`]" :rules="[(val:string) => !!val || `กรุณากรอกหน้าที่`]"
hide-bottom-space hide-bottom-space
/> />
<q-input <q-input
@ -83,7 +83,7 @@ watch(props, () => {
class="col-12 q-mb-sm" class="col-12 q-mb-sm"
debounce="300" debounce="300"
label="มติ/คำสั่ง" label="มติ/คำสั่ง"
:rules="[(val) => !!val || `กรุณากรอก มติ/คำสั่ง`]" :rules="[(val:string) => !!val || `กรุณากรอก มติ/คำสั่ง`]"
hide-bottom-space hide-bottom-space
/> />
</q-card-section> </q-card-section>

View file

@ -6,6 +6,7 @@ interface FormData {
position: string; position: string;
phone: string; phone: string;
email: string; email: string;
qualification?:string
} }
interface FormDataPost { interface FormDataPost {
personalId: string; personalId: string;

View file

@ -85,7 +85,7 @@ onMounted(async () => {
outlined outlined
label="ชื่อผลงาน" label="ชื่อผลงาน"
v-model="subject" v-model="subject"
:rules="[(val) => !!val || `${'กรุณากรอกชื่อผลงาน'}`]" :rules="[(val:string) => !!val || `${'กรุณากรอกชื่อผลงาน'}`]"
lazy-rules lazy-rules
hide-bottom-space hide-bottom-space
/> />
@ -96,7 +96,7 @@ onMounted(async () => {
outlined outlined
v-model="author" v-model="author"
label="เจ้าของผลงาน" label="เจ้าของผลงาน"
:rules="[(val) => !!val || `${'กรุณากรอกเจ้าของผลงาน'}`]" :rules="[(val:string) => !!val || `${'กรุณากรอกเจ้าของผลงาน'}`]"
lazy-rules lazy-rules
hide-bottom-space hide-bottom-space
/> />
@ -131,7 +131,7 @@ onMounted(async () => {
outlined outlined
label="ชื่อ-นามสกุล" label="ชื่อ-นามสกุล"
v-model="formCommand.elementaryFullName" v-model="formCommand.elementaryFullName"
:rules="[(val) => !!val || `${'กรุณากรอกชื่อ-นามสกุล'}`]" :rules="[(val:string) => !!val || `${'กรุณากรอกชื่อ-นามสกุล'}`]"
lazy-rules lazy-rules
hide-bottom-space hide-bottom-space
/> />
@ -143,7 +143,7 @@ onMounted(async () => {
outlined outlined
v-model="formCommand.elementaryPosition" v-model="formCommand.elementaryPosition"
label="ตำแหน่ง" label="ตำแหน่ง"
:rules="[(val) => !!val || `${'กรุณากรอกตำแหน่ง'}`]" :rules="[(val:string) => !!val || `${'กรุณากรอกตำแหน่ง'}`]"
lazy-rules lazy-rules
hide-bottom-space hide-bottom-space
/> />
@ -165,7 +165,7 @@ onMounted(async () => {
outlined outlined
v-model="formCommand.abovelevelFullname" v-model="formCommand.abovelevelFullname"
label="ชื่อ-นามสกุล" label="ชื่อ-นามสกุล"
:rules="[(val) => !!val || `${'กรุณากรอกชื่อ-นามสกุล'}`]" :rules="[(val:string) => !!val || `${'กรุณากรอกชื่อ-นามสกุล'}`]"
lazy-rules lazy-rules
hide-bottom-space hide-bottom-space
/> />
@ -177,7 +177,7 @@ onMounted(async () => {
outlined outlined
v-model="formCommand.abovelevelPosition" v-model="formCommand.abovelevelPosition"
label="ตำแหน่ง" label="ตำแหน่ง"
:rules="[(val) => !!val || `${'กรุณากรอกตำแหน่ง'}`]" :rules="[(val:string) => !!val || `${'กรุณากรอกตำแหน่ง'}`]"
lazy-rules lazy-rules
hide-bottom-space hide-bottom-space
/> />

View file

@ -144,7 +144,7 @@ watch(
bg-color="white" bg-color="white"
dense dense
class="inputgreen" class="inputgreen"
:rules="[(val) => !!val || `${'กรุณากรอกลำดับ/รหัสตัวชี้วัด'}`]" :rules="[(val:string) => !!val || `${'กรุณากรอกลำดับ/รหัสตัวชี้วัด'}`]"
hide-bottom-space hide-bottom-space
lazy-rules lazy-rules
/> />
@ -334,7 +334,7 @@ watch(
type="textarea" type="textarea"
dense dense
class="inputgreen" class="inputgreen"
:rules="[(val) => !!val || `${'กรุณากรอกสูตรคำนวณ'}`]" :rules="[(val:string) => !!val || `${'กรุณากรอกสูตรคำนวณ'}`]"
hide-bottom-space hide-bottom-space
lazy-rules lazy-rules
/> />

View file

@ -627,7 +627,7 @@ onMounted(() => {
lazy-rules lazy-rules
:rules=" :rules="
typeReport === 'KPI8' typeReport === 'KPI8'
? [(val) => !!val || 'กรุณาเลือกรอบการประเมิน'] ? [(val:string) => !!val || 'กรุณาเลือกรอบการประเมิน']
: [] : []
" "
/> />