diff --git a/src/modules/01_masterdata/components/Indicators/indicatorByPlan/IndicatorByPlan.vue b/src/modules/01_masterdata/components/Indicators/indicatorByPlan/IndicatorByPlan.vue
index 00a38a12d..8b2139a37 100644
--- a/src/modules/01_masterdata/components/Indicators/indicatorByPlan/IndicatorByPlan.vue
+++ b/src/modules/01_masterdata/components/Indicators/indicatorByPlan/IndicatorByPlan.vue
@@ -262,7 +262,7 @@ onMounted(async () => {
bg-color="white"
dense
class="inputgreen"
- :rules="[(val) => !!val || `${'กรุณากรอกชิ่อตัวชี้วัด'}`]"
+ :rules="[(val:string) => !!val || `${'กรุณากรอกชิ่อตัวชี้วัด'}`]"
hide-bottom-space
/>
@@ -331,7 +331,7 @@ onMounted(async () => {
bg-color="white"
dense
class="inputgreen"
- :rules="[(val) => !!val || `${'กรุณากรอกค่าเป้าหมาย'}`]"
+ :rules="[(val:string) => !!val || `${'กรุณากรอกค่าเป้าหมาย'}`]"
hide-bottom-space
/>
@@ -344,7 +344,7 @@ onMounted(async () => {
dense
lazy-rules
class="inputgreen"
- :rules="[(val) => !!val || `${'กรุณากรอกหน่วยนับ'}`]"
+ :rules="[(val:string) => !!val || `${'กรุณากรอกหน่วยนับ'}`]"
hide-bottom-space
/>
@@ -357,7 +357,7 @@ onMounted(async () => {
bg-color="white"
dense
class="inputgreen"
- :rules="[(val) => !!val || `${'กรุณากรอกน้ำหนัก'}`]"
+ :rules="[(val:string) => !!val || `${'กรุณากรอกน้ำหนัก'}`]"
hide-bottom-space
/>
@@ -479,7 +479,7 @@ onMounted(async () => {
bg-color="white"
dense
class="inputgreen"
- :rules="[(val) => !!val || `${'กรุณากรอกนิยามหรือความหมาย'}`]"
+ :rules="[(val:string) => !!val || `${'กรุณากรอกนิยามหรือความหมาย'}`]"
hide-bottom-space
/>
@@ -492,7 +492,7 @@ onMounted(async () => {
type="textarea"
dense
class="inputgreen"
- :rules="[(val) => !!val || `${'กรุณากรอกสูตรคำนวณ'}`]"
+ :rules="[(val:string) => !!val || `${'กรุณากรอกสูตรคำนวณ'}`]"
hide-bottom-space
/>
diff --git a/src/modules/01_masterdata/components/Indicators/indicatorByRole/DetailView.vue b/src/modules/01_masterdata/components/Indicators/indicatorByRole/DetailView.vue
index 4c724aff6..6b52779cf 100644
--- a/src/modules/01_masterdata/components/Indicators/indicatorByRole/DetailView.vue
+++ b/src/modules/01_masterdata/components/Indicators/indicatorByRole/DetailView.vue
@@ -514,46 +514,6 @@ onMounted(() => {
{{ fieldLabels[field as keyof typeof fieldLabels] }}
-
{
v-model="field.description"
label-slot
borderless
- :rules="[(val) => !!val || 'กรุณากรอกมาตรฐานพฤติกรรม']"
+ :rules="[(val:string) => !!val || 'กรุณากรอกมาตรฐานพฤติกรรม']"
hide-bottom-space
>
diff --git a/src/modules/01_masterdata/components/competency/Forms/01_FormMain.vue b/src/modules/01_masterdata/components/competency/Forms/01_FormMain.vue
index 934ef3dfa..048004178 100644
--- a/src/modules/01_masterdata/components/competency/Forms/01_FormMain.vue
+++ b/src/modules/01_masterdata/components/competency/Forms/01_FormMain.vue
@@ -120,7 +120,7 @@ function onSubmit() {
v-model="formData.levels[index].description"
label-slot
borderless
- :rules="[(val) => !!val || 'กรุณากรอกมาตรฐานพฤติกรรม']"
+ :rules="[(val:string) => !!val || 'กรุณากรอกมาตรฐานพฤติกรรม']"
hide-bottom-space
>
diff --git a/src/modules/01_masterdata/components/competency/Forms/02_FormGroup.vue b/src/modules/01_masterdata/components/competency/Forms/02_FormGroup.vue
index f7ec77b4e..0b1490346 100644
--- a/src/modules/01_masterdata/components/competency/Forms/02_FormGroup.vue
+++ b/src/modules/01_masterdata/components/competency/Forms/02_FormGroup.vue
@@ -117,7 +117,7 @@ function onSubmit() {
v-model="formScore[field]"
label-slot
borderless
- :rules="[(val) => !!val || 'กรุณากรอกมาตรฐานพฤติกรรม']"
+ :rules="[(val:string) => !!val || 'กรุณากรอกมาตรฐานพฤติกรรม']"
hide-bottom-space
>
diff --git a/src/modules/01_masterdata/components/competency/Forms/03_FormExecutive.vue b/src/modules/01_masterdata/components/competency/Forms/03_FormExecutive.vue
index ccf01fd1d..f7954c359 100644
--- a/src/modules/01_masterdata/components/competency/Forms/03_FormExecutive.vue
+++ b/src/modules/01_masterdata/components/competency/Forms/03_FormExecutive.vue
@@ -200,7 +200,7 @@ onMounted(() => {
v-model="formData.form[index].description"
label-slot
borderless
- :rules="[(val) => !!val || 'กรุณากรอกมาตรฐานพฤติกรรม']"
+ :rules="[(val:string) => !!val || 'กรุณากรอกมาตรฐานพฤติกรรม']"
hide-bottom-space
>
@@ -240,7 +240,7 @@ onMounted(() => {
v-model="formData.form[index].description2"
label-slot
borderless
- :rules="[(val) => !!val || 'กรุณากรอกมาตรฐานพฤติกรรม']"
+ :rules="[(val:string) => !!val || 'กรุณากรอกมาตรฐานพฤติกรรม']"
hide-bottom-space
>
diff --git a/src/modules/01_masterdata/components/competency/Forms/04_FormExecutivePosition.vue b/src/modules/01_masterdata/components/competency/Forms/04_FormExecutivePosition.vue
index 6ccd5afd1..38507cbc7 100644
--- a/src/modules/01_masterdata/components/competency/Forms/04_FormExecutivePosition.vue
+++ b/src/modules/01_masterdata/components/competency/Forms/04_FormExecutivePosition.vue
@@ -60,7 +60,7 @@ function onSubmit() {
dense
label="ชื่อสมรรถนะ"
hide-bottom-space
- :rules="[(val) => !!val || `${'กรุณากรอกชื่อสมรรถนะ'}`]"
+ :rules="[(val:string) => !!val || `${'กรุณากรอกชื่อสมรรถนะ'}`]"
/>
@@ -71,7 +71,7 @@ function onSubmit() {
v-model="formData.definition"
label-slot
borderless
- :rules="[(val) => !!val || 'กรุณากรอกคำจำกัดความ']"
+ :rules="[(val:string) => !!val || 'กรุณากรอกคำจำกัดความ']"
hide-bottom-space
>
diff --git a/src/modules/01_masterdata/components/competency/Forms/05_FormExecutiveLevel.vue b/src/modules/01_masterdata/components/competency/Forms/05_FormExecutiveLevel.vue
index dc11f143e..a680efb65 100644
--- a/src/modules/01_masterdata/components/competency/Forms/05_FormExecutiveLevel.vue
+++ b/src/modules/01_masterdata/components/competency/Forms/05_FormExecutiveLevel.vue
@@ -55,7 +55,7 @@ function onSubmit() {
v-model="formData.competencyName"
dense
hide-bottom-space
- :rules="[(val) => !!val || `${'กรุณากรอกชื่อสมรรถนะ'}`]"
+ :rules="[(val:string) => !!val || `${'กรุณากรอกชื่อสมรรถนะ'}`]"
label="ชื่อสมรรถนะ"
/>
@@ -67,7 +67,7 @@ function onSubmit() {
v-model="formData.definition"
label-slot
borderless
- :rules="[(val) => !!val || 'กรุณากรอกคำจำกัดความ']"
+ :rules="[(val:string) => !!val || 'กรุณากรอกคำจำกัดความ']"
hide-bottom-space
>
diff --git a/src/modules/01_masterdata/components/competency/Forms/Main.vue b/src/modules/01_masterdata/components/competency/Forms/Main.vue
index c751046e1..670ad3c64 100644
--- a/src/modules/01_masterdata/components/competency/Forms/Main.vue
+++ b/src/modules/01_masterdata/components/competency/Forms/Main.vue
@@ -136,7 +136,7 @@ onMounted(() => {
v-model="formData.definition"
label-slot
borderless
- :rules="[(val) => !!val || 'กรุณากรอกคำจำกัดความสมรรถนะ']"
+ :rules="[(val:string) => !!val || 'กรุณากรอกคำจำกัดความสมรรถนะ']"
hide-bottom-space
>
diff --git a/src/modules/01_metadata/components/insignia/Insignia.vue b/src/modules/01_metadata/components/insignia/Insignia.vue
index a6f3ac6eb..5e4e074ae 100644
--- a/src/modules/01_metadata/components/insignia/Insignia.vue
+++ b/src/modules/01_metadata/components/insignia/Insignia.vue
@@ -126,7 +126,7 @@
hide-bottom-space
option-label="name"
option-value="id"
- :rules="[(val) => val || 'กรุณาเลือกลำดับชั้นเครื่องราชฯ']"
+ :rules="[(val:string) => val || 'กรุณาเลือกลำดับชั้นเครื่องราชฯ']"
/>
-
diff --git a/src/modules/03_recruiting/components/Address.vue b/src/modules/03_recruiting/components/Address.vue
index 7f8cee61f..e0410cc50 100644
--- a/src/modules/03_recruiting/components/Address.vue
+++ b/src/modules/03_recruiting/components/Address.vue
@@ -211,7 +211,7 @@ const getClass = (val: boolean) => {
:readonly="!(status == 'checkRegister' || status == 'payment')"
:borderless="!(status == 'checkRegister' || status == 'payment')"
v-model="defaultAddress.address"
- :rules="[(val) => !!val || `${'กรุณากรอก ที่อยู่ตามทะเบียนบ้าน'}`]"
+ :rules="[(val:string) => !!val || `${'กรุณากรอก ที่อยู่ตามทะเบียนบ้าน'}`]"
:label="`${'ที่อยู่ตามทะเบียนบ้าน'}`"
/>
@@ -220,7 +220,7 @@ const getClass = (val: boolean) => {
:class="getClass(status == 'checkRegister' || status == 'payment')"
:readonly="!(status == 'checkRegister' || status == 'payment')"
:borderless="!(status == 'checkRegister' || status == 'payment')"
- :rules="[(val) => !!val || `${'กรุณาเลือก จังหวัด'}`]"
+ :rules="[(val:string) => !!val || `${'กรุณาเลือก จังหวัด'}`]"
:outlined="status == 'checkRegister' || status == 'payment'"
dense
lazy-rules
@@ -239,7 +239,7 @@ const getClass = (val: boolean) => {
:class="getClass(status == 'checkRegister' || status == 'payment')"
:readonly="!(status == 'checkRegister' || status == 'payment')"
:borderless="!(status == 'checkRegister' || status == 'payment')"
- :rules="[(val) => !!val || `${'กรุณาเลือก เขต / อำเภอ'}`]"
+ :rules="[(val:string) => !!val || `${'กรุณาเลือก เขต / อำเภอ'}`]"
:outlined="status == 'checkRegister' || status == 'payment'"
dense
lazy-rules
@@ -258,7 +258,7 @@ const getClass = (val: boolean) => {
:class="getClass(status == 'checkRegister' || status == 'payment')"
:readonly="!(status == 'checkRegister' || status == 'payment')"
:borderless="!(status == 'checkRegister' || status == 'payment')"
- :rules="[(val) => !!val || `${'กรุณาเลือก แขวง / ตำบล '}`]"
+ :rules="[(val:string) => !!val || `${'กรุณาเลือก แขวง / ตำบล '}`]"
:outlined="status == 'checkRegister' || status == 'payment'"
dense
lazy-rules
@@ -326,7 +326,7 @@ const getClass = (val: boolean) => {
:readonly="!(status == 'checkRegister' || status == 'payment')"
:borderless="!(status == 'checkRegister' || status == 'payment')"
v-model="defaultAddress.addressC"
- :rules="[(val) => !!val || `${'กรุณากรอก ที่อยู่ปัจจุบัน'}`]"
+ :rules="[(val:string) => !!val || `${'กรุณากรอก ที่อยู่ปัจจุบัน'}`]"
:label="`${'ที่อยู่ปัจจุบัน'}`"
/>
@@ -338,7 +338,7 @@ const getClass = (val: boolean) => {
:class="getClass(status == 'checkRegister' || status == 'payment')"
:readonly="!(status == 'checkRegister' || status == 'payment')"
:borderless="!(status == 'checkRegister' || status == 'payment')"
- :rules="[(val) => !!val || `${'กรุณาเลือก จังหวัด'}`]"
+ :rules="[(val:string) => !!val || `${'กรุณาเลือก จังหวัด'}`]"
:outlined="status == 'checkRegister' || status == 'payment'"
dense
lazy-rules
@@ -360,7 +360,7 @@ const getClass = (val: boolean) => {
:class="getClass(status == 'checkRegister' || status == 'payment')"
:readonly="!(status == 'checkRegister' || status == 'payment')"
:borderless="!(status == 'checkRegister' || status == 'payment')"
- :rules="[(val) => !!val || `${'กรุณาเลือก เขต / อำเภอ'}`]"
+ :rules="[(val:string) => !!val || `${'กรุณาเลือก เขต / อำเภอ'}`]"
:outlined="status == 'checkRegister' || status == 'payment'"
dense
lazy-rules
@@ -382,7 +382,7 @@ const getClass = (val: boolean) => {
:class="getClass(status == 'checkRegister' || status == 'payment')"
:readonly="!(status == 'checkRegister' || status == 'payment')"
:borderless="!(status == 'checkRegister' || status == 'payment')"
- :rules="[(val) => !!val || `${'กรุณาเลือก แขวง / ตำบล '}`]"
+ :rules="[(val:string) => !!val || `${'กรุณาเลือก แขวง / ตำบล '}`]"
:outlined="status == 'checkRegister' || status == 'payment'"
dense
lazy-rules
diff --git a/src/modules/03_recruiting/components/Career.vue b/src/modules/03_recruiting/components/Career.vue
index 5629ca198..554a1e246 100644
--- a/src/modules/03_recruiting/components/Career.vue
+++ b/src/modules/03_recruiting/components/Career.vue
@@ -651,7 +651,7 @@ const getClass = (val: boolean) => {
:readonly="status !== 'checkRegister' && status == 'payment'"
:borderless="status !== 'checkRegister' && status == 'payment'"
v-model="position"
- :rules="[(val) => !!val || `${'กรุณากรอกตำแหน่ง/ลักษณะงาน'}`]"
+ :rules="[(val:string) => !!val || `${'กรุณากรอกตำแหน่ง/ลักษณะงาน'}`]"
:label="`${'ตำแหน่ง/ลักษณะงาน'}`"
@update:modelValue="clickEditRowPosition"
hide-bottom-space
@@ -669,7 +669,7 @@ const getClass = (val: boolean) => {
:borderless="status !== 'checkRegister' && status == 'payment'"
v-model="type"
:options="opType"
- :rules="[(val) => !!val || `${'กรุณาเลือกประเภท'}`]"
+ :rules="[(val:string) => !!val || `${'กรุณาเลือกประเภท'}`]"
:label="`${'ประเภท'}`"
@update:modelValue="clickEditRowPosition"
hide-bottom-space
diff --git a/src/modules/03_recruiting/components/Contact.vue b/src/modules/03_recruiting/components/Contact.vue
index 92283145f..105c495d3 100644
--- a/src/modules/03_recruiting/components/Contact.vue
+++ b/src/modules/03_recruiting/components/Contact.vue
@@ -96,7 +96,7 @@ const getClass = (val: boolean) => {
:class="getClass(status == 'checkRegister' || status == 'payment')"
:readonly="!(status == 'checkRegister' || status == 'payment')"
:borderless="!(status == 'checkRegister' || status == 'payment')"
- :rules="[(val) => !!val || `${'กรุณาเลือก คำนำหน้า'}`]"
+ :rules="[(val:string) => !!val || `${'กรุณาเลือก คำนำหน้า'}`]"
:outlined="status == 'checkRegister' || status == 'payment'"
dense
lazy-rules
@@ -118,7 +118,7 @@ const getClass = (val: boolean) => {
:readonly="!(status == 'checkRegister' || status == 'payment')"
:borderless="!(status == 'checkRegister' || status == 'payment')"
v-model="defaultContact.contactFirstname"
- :rules="[(val) => !!val || `${'กรุณากรอก ชื่อ'}`]"
+ :rules="[(val:string) => !!val || `${'กรุณากรอก ชื่อ'}`]"
:label="`${'ชื่อ'}`"
/>
@@ -131,7 +131,7 @@ const getClass = (val: boolean) => {
:readonly="!(status == 'checkRegister' || status == 'payment')"
:borderless="!(status == 'checkRegister' || status == 'payment')"
v-model="defaultContact.contactLastname"
- :rules="[(val) => !!val || `${'กรุณากรอก นามสกุล'}`]"
+ :rules="[(val:string) => !!val || `${'กรุณากรอก นามสกุล'}`]"
:label="`${'นามสกุล'}`"
/>
@@ -144,7 +144,7 @@ const getClass = (val: boolean) => {
:readonly="!(status == 'checkRegister' || status == 'payment')"
:borderless="!(status == 'checkRegister' || status == 'payment')"
v-model="defaultContact.contactRelations"
- :rules="[(val) => !!val || `${'กรุณากรอกความสัมพันธ์'}`]"
+ :rules="[(val:string) => !!val || `${'กรุณากรอกความสัมพันธ์'}`]"
:label="`${'เกี่ยวข้องเป็น'}`"
/>
diff --git a/src/modules/03_recruiting/components/Document.vue b/src/modules/03_recruiting/components/Document.vue
index c756b5063..75c1b5478 100644
--- a/src/modules/03_recruiting/components/Document.vue
+++ b/src/modules/03_recruiting/components/Document.vue
@@ -126,7 +126,7 @@ onMounted(async () => {
:borderless="!edit"
v-model="name"
hide-bottom-space
- :rules="[(val) => !!val || `${'กรุณากรอกชื่อเอกสาร'}`]"
+ :rules="[(val:string) => !!val || `${'กรุณากรอกชื่อเอกสาร'}`]"
:label="`${'ชื่อเอกสาร'}`"
/>
{
option-value="id"
:options="educationLevelOptions"
v-model="defaultEducation.educationLevelExamId"
- :rules="[(val) => !!val || `${'กรุณาเลือก วุฒิที่ใช้สมัครสอบ'}`]"
+ :rules="[(val:string) => !!val || `${'กรุณาเลือก วุฒิที่ใช้สมัครสอบ'}`]"
:label="`${'วุฒิที่ใช้สมัครสอบ'}`"
@update:model-value="(value) => checkInputName()"
/>
@@ -154,7 +154,7 @@ const getClass = (val: boolean) => {
:readonly="!(status == 'checkRegister' || status == 'payment')"
:borderless="!(status == 'checkRegister' || status == 'payment')"
v-model="defaultEducation.educationName"
- :rules="[(val) => !!val || `${'กรุณากรอก ชื่อปริญญา'}`]"
+ :rules="[(val:string) => !!val || `${'กรุณากรอก ชื่อปริญญา'}`]"
:label="`${'ชื่อปริญญา'}`"
/>
@@ -168,7 +168,7 @@ const getClass = (val: boolean) => {
:readonly="!(status == 'checkRegister' || status == 'payment')"
:borderless="!(status == 'checkRegister' || status == 'payment')"
v-model="defaultEducation.educationMajor"
- :rules="[(val) => !!val || `${'กรุณากรอก สาขาวิชา/วิชาเอก'}`]"
+ :rules="[(val:string) => !!val || `${'กรุณากรอก สาขาวิชา/วิชาเอก'}`]"
:label="`${'สาขาวิชา/วิชาเอก'}`"
/>
@@ -182,7 +182,7 @@ const getClass = (val: boolean) => {
:readonly="!(status == 'checkRegister' || status == 'payment')"
:borderless="!(status == 'checkRegister' || status == 'payment')"
v-model="defaultEducation.educationLocation"
- :rules="[(val) => !!val || `${'กรุณากรอก ชื่อสถานศึกษา'}`]"
+ :rules="[(val:string) => !!val || `${'กรุณากรอก ชื่อสถานศึกษา'}`]"
:label="`${'ชื่อสถานศึกษา'}`"
/>
@@ -200,7 +200,7 @@ const getClass = (val: boolean) => {
option-value="id"
:options="educationTypeOptions"
v-model="defaultEducation.educationType"
- :rules="[(val) => !!val || `${'กรุณาเลือก ประเภทสถานศึกษา'}`]"
+ :rules="[(val:string) => !!val || `${'กรุณาเลือก ประเภทสถานศึกษา'}`]"
:label="`${'ประเภทสถานศึกษา'}`"
/>
@@ -264,7 +264,7 @@ const getClass = (val: boolean) => {
:readonly="!(status == 'checkRegister' || status == 'payment')"
:borderless="!(status == 'checkRegister' || status == 'payment')"
v-model="defaultEducation.educationScores"
- :rules="[(val) => !!val || `${'กรุณากรอก คะแนนเฉลี่ยสะสม'}`]"
+ :rules="[(val:string) => !!val || `${'กรุณากรอก คะแนนเฉลี่ยสะสม'}`]"
:label="`${'คะแนนเฉลี่ยสะสม'}`"
/>
@@ -282,7 +282,7 @@ const getClass = (val: boolean) => {
option-value="id"
:options="educationLevelOptions"
v-model="defaultEducation.educationLevelHighId"
- :rules="[(val) => !!val || `${'กรุณาเลือก วุฒิการศึกษาสูงสุด'}`]"
+ :rules="[(val:string) => !!val || `${'กรุณาเลือก วุฒิการศึกษาสูงสุด'}`]"
:label="`${'วุฒิการศึกษาสูงสุด'}`"
/>
diff --git a/src/modules/03_recruiting/components/Family.vue b/src/modules/03_recruiting/components/Family.vue
index 6983283ce..34be19843 100644
--- a/src/modules/03_recruiting/components/Family.vue
+++ b/src/modules/03_recruiting/components/Family.vue
@@ -135,7 +135,7 @@ onMounted(async () => {
:class="getClass(status == 'checkRegister' || status == 'payment')"
:readonly="!(status == 'checkRegister' || status == 'payment')"
:borderless="!(status == 'checkRegister' || status == 'payment')"
- :rules="[(val) => !!val || `${'กรุณาเลือก คำนำหน้าชื่อ'}`]"
+ :rules="[(val:string) => !!val || `${'กรุณาเลือก คำนำหน้าชื่อ'}`]"
:outlined="status == 'checkRegister' || status == 'payment'"
dense
lazy-rules
@@ -159,7 +159,7 @@ onMounted(async () => {
:readonly="!(status == 'checkRegister' || status == 'payment')"
:borderless="!(status == 'checkRegister' || status == 'payment')"
v-model="defaultFamily.firstnameC"
- :rules="[(val) => !!val || `${'กรุณากรอก ชื่อ'}`]"
+ :rules="[(val:string) => !!val || `${'กรุณากรอก ชื่อ'}`]"
:label="`${'ชื่อ'}`"
/>
@@ -173,7 +173,7 @@ onMounted(async () => {
:readonly="!(status == 'checkRegister' || status == 'payment')"
:borderless="!(status == 'checkRegister' || status == 'payment')"
v-model="defaultFamily.lastnameC"
- :rules="[(val) => !!val || `${'กรุณากรอก นามสกุล'}`]"
+ :rules="[(val:string) => !!val || `${'กรุณากรอก นามสกุล'}`]"
:label="`${'นามสกุล'}`"
/>
@@ -187,7 +187,7 @@ onMounted(async () => {
:readonly="!(status == 'checkRegister' || status == 'payment')"
:borderless="!(status == 'checkRegister' || status == 'payment')"
v-model="defaultFamily.occupationC"
- :rules="[(val) => !!val || `${'กรุณากรอก อาชีพ'}`]"
+ :rules="[(val:string) => !!val || `${'กรุณากรอก อาชีพ'}`]"
:label="`${'อาชีพ'}`"
/>
@@ -201,7 +201,7 @@ onMounted(async () => {
:readonly="!(status == 'checkRegister' || status == 'payment')"
:borderless="!(status == 'checkRegister' || status == 'payment')"
v-model="defaultFamily.nationalityC"
- :rules="[(val) => !!val || `${'กรุณากรอก สัญชาติ'}`]"
+ :rules="[(val:string) => !!val || `${'กรุณากรอก สัญชาติ'}`]"
:label="`${'สัญชาติ'}`"
/>
@@ -213,7 +213,7 @@ onMounted(async () => {
:class="getClass(status == 'checkRegister' || status == 'payment')"
:readonly="!(status == 'checkRegister' || status == 'payment')"
:borderless="!(status == 'checkRegister' || status == 'payment')"
- :rules="[(val) => !!val || `${'กรุณาเลือก คำนำหน้าชื่อ'}`]"
+ :rules="[(val:string) => !!val || `${'กรุณาเลือก คำนำหน้าชื่อ'}`]"
:outlined="status == 'checkRegister' || status == 'payment'"
dense
lazy-rules
@@ -237,7 +237,7 @@ onMounted(async () => {
:readonly="!(status == 'checkRegister' || status == 'payment')"
:borderless="!(status == 'checkRegister' || status == 'payment')"
v-model="defaultFamily.firstnameM"
- :rules="[(val) => !!val || `${'กรุณากรอก ชื่อ'}`]"
+ :rules="[(val:string) => !!val || `${'กรุณากรอก ชื่อ'}`]"
:label="`${'ชื่อ'}`"
/>
@@ -251,7 +251,7 @@ onMounted(async () => {
:readonly="!(status == 'checkRegister' || status == 'payment')"
:borderless="!(status == 'checkRegister' || status == 'payment')"
v-model="defaultFamily.lastnameM"
- :rules="[(val) => !!val || `${'กรุณากรอก นามสกุล'}`]"
+ :rules="[(val:string) => !!val || `${'กรุณากรอก นามสกุล'}`]"
:label="`${'นามสกุล'}`"
/>
@@ -265,7 +265,7 @@ onMounted(async () => {
:readonly="!(status == 'checkRegister' || status == 'payment')"
:borderless="!(status == 'checkRegister' || status == 'payment')"
v-model="defaultFamily.occupationM"
- :rules="[(val) => !!val || `${'กรุณากรอก อาชีพ'}`]"
+ :rules="[(val:string) => !!val || `${'กรุณากรอก อาชีพ'}`]"
:label="`${'อาชีพ'}`"
/>
@@ -279,7 +279,7 @@ onMounted(async () => {
:readonly="!(status == 'checkRegister' || status == 'payment')"
:borderless="!(status == 'checkRegister' || status == 'payment')"
v-model="defaultFamily.nationalityM"
- :rules="[(val) => !!val || `${'กรุณากรอก สัญชาติ'}`]"
+ :rules="[(val:string) => !!val || `${'กรุณากรอก สัญชาติ'}`]"
:label="`${'สัญชาติ'}`"
/>
@@ -291,7 +291,7 @@ onMounted(async () => {
:class="getClass(status == 'checkRegister' || status == 'payment')"
:readonly="!(status == 'checkRegister' || status == 'payment')"
:borderless="!(status == 'checkRegister' || status == 'payment')"
- :rules="[(val) => !!val || `${'กรุณาเลือก คำนำหน้าชื่อ'}`]"
+ :rules="[(val:string) => !!val || `${'กรุณาเลือก คำนำหน้าชื่อ'}`]"
:outlined="status == 'checkRegister' || status == 'payment'"
dense
lazy-rules
@@ -314,7 +314,7 @@ onMounted(async () => {
:readonly="!(status == 'checkRegister' || status == 'payment')"
:borderless="!(status == 'checkRegister' || status == 'payment')"
v-model="defaultFamily.firstnameF"
- :rules="[(val) => !!val || `${'กรุณากรอก ชื่อ'}`]"
+ :rules="[(val:string) => !!val || `${'กรุณากรอก ชื่อ'}`]"
:label="`${'ชื่อ'}`"
/>
@@ -328,7 +328,7 @@ onMounted(async () => {
:readonly="!(status == 'checkRegister' || status == 'payment')"
:borderless="!(status == 'checkRegister' || status == 'payment')"
v-model="defaultFamily.lastnameF"
- :rules="[(val) => !!val || `${'กรุณากรอก นามสกุล'}`]"
+ :rules="[(val:string) => !!val || `${'กรุณากรอก นามสกุล'}`]"
:label="`${'นามสกุล'}`"
/>
@@ -342,7 +342,7 @@ onMounted(async () => {
:readonly="!(status == 'checkRegister' || status == 'payment')"
:borderless="!(status == 'checkRegister' || status == 'payment')"
v-model="defaultFamily.occupationF"
- :rules="[(val) => !!val || `${'กรุณากรอก อาชีพ'}`]"
+ :rules="[(val:string) => !!val || `${'กรุณากรอก อาชีพ'}`]"
:label="`${'อาชีพ'}`"
/>
@@ -356,7 +356,7 @@ onMounted(async () => {
:readonly="!(status == 'checkRegister' || status == 'payment')"
:borderless="!(status == 'checkRegister' || status == 'payment')"
v-model="defaultFamily.nationalityF"
- :rules="[(val) => !!val || `${'กรุณากรอก สัญชาติ'}`]"
+ :rules="[(val:string) => !!val || `${'กรุณากรอก สัญชาติ'}`]"
:label="`${'สัญชาติ'}`"
/>
diff --git a/src/modules/03_recruiting/components/Information.vue b/src/modules/03_recruiting/components/Information.vue
index 67cd95b2f..bbe96b925 100644
--- a/src/modules/03_recruiting/components/Information.vue
+++ b/src/modules/03_recruiting/components/Information.vue
@@ -226,7 +226,7 @@ onMounted(async () => {
:class="getClass(status == 'checkRegister' || status == 'payment')"
:readonly="!(status == 'checkRegister' || status == 'payment')"
:borderless="!(status == 'checkRegister' || status == 'payment')"
- :rules="[(val) => !!val || `${'กรุณาเลือก คำนำหน้าชื่อ'}`]"
+ :rules="[(val:string) => !!val || `${'กรุณาเลือก คำนำหน้าชื่อ'}`]"
:outlined="status == 'checkRegister' || status == 'payment'"
dense
lazy-rules
@@ -248,7 +248,7 @@ onMounted(async () => {
:readonly="!(status == 'checkRegister' || status == 'payment')"
:borderless="!(status == 'checkRegister' || status == 'payment')"
v-model="defaultInformation.firstname"
- :rules="[(val) => !!val || `${'กรุณากรอก ชื่อ'}`]"
+ :rules="[(val:string) => !!val || `${'กรุณากรอก ชื่อ'}`]"
:label="`${'ชื่อ (ภาษาไทย)'}`"
/>
@@ -261,27 +261,16 @@ onMounted(async () => {
:readonly="!(status == 'checkRegister' || status == 'payment')"
:borderless="!(status == 'checkRegister' || status == 'payment')"
v-model="defaultInformation.lastname"
- :rules="[(val) => !!val || `${'กรุณากรอก นามสกุล'}`]"
+ :rules="[(val:string) => !!val || `${'กรุณากรอก นามสกุล'}`]"
:label="`${'นามสกุล (ภาษาไทย)'}`"
/>
-
{
:class="getClass(status == 'checkRegister' || status == 'payment')"
:readonly="!(status == 'checkRegister' || status == 'payment')"
:borderless="!(status == 'checkRegister' || status == 'payment')"
- :rules="[(val) => !!val || `${'กรุณาเลือก ศาสนา'}`]"
+ :rules="[(val:string) => !!val || `${'กรุณาเลือก ศาสนา'}`]"
:outlined="status == 'checkRegister' || status == 'payment'"
dense
lazy-rules
@@ -338,7 +327,7 @@ onMounted(async () => {
? null
: date2Thai(defaultInformation.birthDate)
"
- :rules="[(val) => !!val || `${'กรุณาเลือก วัน/เดือน/ปี เกิด'}`]"
+ :rules="[(val:string) => !!val || `${'กรุณาเลือก วัน/เดือน/ปี เกิด'}`]"
:label="`${'วัน/เดือน/ปี เกิด'}`"
>
diff --git a/src/modules/03_recruiting/components/Occupation.vue b/src/modules/03_recruiting/components/Occupation.vue
index d76977a5c..014f6b129 100644
--- a/src/modules/03_recruiting/components/Occupation.vue
+++ b/src/modules/03_recruiting/components/Occupation.vue
@@ -125,7 +125,7 @@ onMounted(async () => {
:readonly="!(status == 'checkRegister' || status == 'payment')"
:borderless="!(status == 'checkRegister' || status == 'payment')"
v-model="defaultOccupation.position"
- :rules="[(val) => !!val || `${'กรุณากรอก ชื่อตำแหน่ง'}`]"
+ :rules="[(val:string) => !!val || `${'กรุณากรอก ชื่อตำแหน่ง'}`]"
:label="`${'ชื่อตำแหน่ง'}`"
/>
@@ -154,7 +154,7 @@ onMounted(async () => {
:readonly="!(status == 'checkRegister' || status == 'payment')"
:borderless="!(status == 'checkRegister' || status == 'payment')"
v-model="defaultOccupation.group"
- :rules="[(val) => !!val || `${'กรุณากรอก กลุ่ม/ฝ่าย'}`]"
+ :rules="[(val:string) => !!val || `${'กรุณากรอก กลุ่ม/ฝ่าย'}`]"
:label="`${'กลุ่ม/ฝ่าย'}`"
/>
@@ -168,7 +168,7 @@ onMounted(async () => {
:readonly="!(status == 'checkRegister' || status == 'payment')"
:borderless="!(status == 'checkRegister' || status == 'payment')"
v-model="defaultOccupation.pile"
- :rules="[(val) => !!val || `${'กรุณากรอก กอง'}`]"
+ :rules="[(val:string) => !!val || `${'กรุณากรอก กอง'}`]"
:label="`${'กอง'}`"
/>
@@ -182,7 +182,7 @@ onMounted(async () => {
:readonly="!(status == 'checkRegister' || status == 'payment')"
:borderless="!(status == 'checkRegister' || status == 'payment')"
v-model="defaultOccupation.org"
- :rules="[(val) => !!val || `${'กรุณากรอก สังกัด'}`]"
+ :rules="[(val:string) => !!val || `${'กรุณากรอก สังกัด'}`]"
:label="`${'สังกัด'}`"
/>
diff --git a/src/modules/03_recruiting/views/01_compete/PeriodAdd.vue b/src/modules/03_recruiting/views/01_compete/PeriodAdd.vue
index 42e52c69f..df3ac4c68 100644
--- a/src/modules/03_recruiting/views/01_compete/PeriodAdd.vue
+++ b/src/modules/03_recruiting/views/01_compete/PeriodAdd.vue
@@ -382,7 +382,7 @@ onMounted(async () => {
dense
hide-bottom-space
lazy-rules
- :rules="[(val) => !!val || `${'กรุณากรอกชื่อรอบสอบแข่งขัน'}`]"
+ :rules="[(val:string) => !!val || `${'กรุณากรอกชื่อรอบสอบแข่งขัน'}`]"
>
@@ -394,7 +394,7 @@ onMounted(async () => {
dense
lazy-rules
hide-bottom-space
- :rules="[(val) => val > 0 || `${'กรุณากรอกรอบการสอบให้ถูกต้อง'}`]"
+ :rules="[(val:number) => val > 0 || `${'กรุณากรอกรอบการสอบให้ถูกต้อง'}`]"
>
@@ -416,7 +416,7 @@ onMounted(async () => {
dense
hide-bottom-space
outlined
- :rules="[(val) => !!val || `${'กรุณาเลือกปีงบประมาณ'}`]"
+ :rules="[(val:string) => !!val || `${'กรุณาเลือกปีงบประมาณ'}`]"
:model-value="yearly + 543"
:label="`${'ปีงบประมาณ'}`"
>
@@ -512,7 +512,7 @@ onMounted(async () => {
: null
"
:label="`${'วันที่ประกาศ'}`"
- :rules="[(val) => !!val || `${'กรุณาเลือกวันที่ประกาศ'}`]"
+ :rules="[(val:string) => !!val || `${'กรุณาเลือกวันที่ประกาศ'}`]"
>
{
label="รอบการสอบ(ครั้ง)"
dense
lazy-rules
- :rules="[(val) => val > 0 || `${'กรุณากรอกรอบการสอบให้ถูกต้อง'}`]"
+ :rules="[(val:number) => val > 0 || `${'กรุณากรอกรอบการสอบให้ถูกต้อง'}`]"
>
@@ -421,7 +421,7 @@ onMounted(async () => {
dense
outlined
:model-value="yearly + 543"
- :rules="[(val) => !!val || `${'กรุณาเลือกปีงบประมาณ'}`]"
+ :rules="[(val:string) => !!val || `${'กรุณาเลือกปีงบประมาณ'}`]"
:label="`${'ปีงบประมาณ'}`"
>
@@ -472,7 +472,7 @@ onMounted(async () => {
dense
:model-value="dateExam != null ? date2Thai(dateExam) : null"
:label="`${'วันที่สอบ'}`"
- :rules="[(val) => !!val || `${'กรุณาเลือกวันที่สอบ'}`]"
+ :rules="[(val:string) => !!val || `${'กรุณาเลือกวันที่สอบ'}`]"
>
{
class="full-width datepicker q-mb-md"
:model-value="dateThaiRange(dateAnnouncement)"
:label="`${'วันที่ประกาศ'}`"
- :rules="[(val) => !!val || `${'กรุณาเลือกวันที่ประกาศ'}`]"
+ :rules="[(val:string) => !!val || `${'กรุณาเลือกวันที่ประกาศ'}`]"
>
{
class="full-width datepicker q-mb-md"
:model-value="dateThaiRange(dateRegister)"
:label="`${'วันที่สมัคร'}`"
- :rules="[(val) => !!val || `${'กรุณาเลือกวันที่สมัคร'}`]"
+ :rules="[(val:string) => !!val || `${'กรุณาเลือกวันที่สมัคร'}`]"
>
{
datePayment != null ? dateThaiRange(datePayment) : null
"
:label="`${'วันที่ชำระเงิน'}`"
- :rules="[(val) => !!val || `${'กรุณาเลือกวันที่ชำระเงิน'}`]"
+ :rules="[(val:string) => !!val || `${'กรุณาเลือกวันที่ชำระเงิน'}`]"
>
{
dateAnnounce != null ? date2Thai(dateAnnounce) : null
"
:label="`${'วันประกาศผลสอบ'}`"
- :rules="[(val) => !!val || `${'กรุณาเลือกวันประกาศผลสอบ'}`]"
+ :rules="[(val:string) => !!val || `${'กรุณาเลือกวันประกาศผลสอบ'}`]"
>
{
label="รอบการสอบ(ครั้ง)"
dense
lazy-rules
- :rules="[(val) => val > 0 || `${'กรุณากรอกรอบการสอบให้ถูกต้อง'}`]"
+ :rules="[(val:number) => val > 0 || `${'กรุณากรอกรอบการสอบให้ถูกต้อง'}`]"
>
@@ -790,7 +790,7 @@ onMounted(async () => {
lazy-rules
input-class="text-right"
:rules="[
- (val) => val >= 0 || `${'กรุณากรอกค่าธรรมเนียมให้ถูกต้อง'}`,
+ (val:number) => val >= 0 || `${'กรุณากรอกค่าธรรมเนียมให้ถูกต้อง'}`,
]"
>
@@ -813,17 +813,9 @@ onMounted(async () => {
dense
outlined
:model-value="yearly + 543"
- :rules="[(val) => !!val || `${'กรุณาเลือกปีงบประมาณ'}`]"
+ :rules="[(val:string) => !!val || `${'กรุณาเลือกปีงบประมาณ'}`]"
:label="`${'ปีงบประมาณ'}`"
>
-
@@ -890,7 +882,7 @@ onMounted(async () => {
class="full-width datepicker q-mb-md"
:model-value="dateThaiRange(dateAnnouncement)"
:label="`${'วันที่ประกาศ'}`"
- :rules="[(val) => !!val || `${'กรุณาเลือกวันที่ประกาศ'}`]"
+ :rules="[(val:string) => !!val || `${'กรุณาเลือกวันที่ประกาศ'}`]"
>
{
lazy-rules
:readonly="!enable.web"
:borderless="!enable.web"
- :rules="[(val) => !!val || `${'กรุณากรอก ชื่อเว็บภาษาไทย'}`]"
+ :rules="[(val:string) => !!val || `${'กรุณากรอก ชื่อเว็บภาษาไทย'}`]"
label="ชื่อเว็บภาษาไทย"
/>
{
lazy-rules
:readonly="!enable.web"
:borderless="!enable.web"
- :rules="[(val) => !!val || `${'กรุณากรอก ชื่อเว็บภาษาอังกฤษ'}`]"
+ :rules="[(val:string) => !!val || `${'กรุณากรอก ชื่อเว็บภาษาอังกฤษ'}`]"
label="ชื่อเว็บภาษาอังกฤษ"
/>
{
lazy-rules
:readonly="!enable.web"
:borderless="!enable.web"
- :rules="[(val) => !!val || `${'กรุณากรอก ผู้จัดโดย'}`]"
+ :rules="[(val:string) => !!val || `${'กรุณากรอก ผู้จัดโดย'}`]"
label="ผู้จัดโดย"
/>
{
lazy-rules
:readonly="!enable.web"
:borderless="!enable.web"
- :rules="[(val) => !!val || `${'กรุณากรอก ข้อมูลเว็บโดยย่อ'}`]"
+ :rules="[(val:string) => !!val || `${'กรุณากรอก ข้อมูลเว็บโดยย่อ'}`]"
label="ข้อมูลเว็บโดยย่อ"
/>
@@ -1000,7 +1000,7 @@ onMounted(async () => {
:readonly="!enable.about"
:borderless="!enable.about"
v-model="address.address"
- :rules="[(val) => !!val || `${'กรุณากรอก ที่อยู่'}`]"
+ :rules="[(val:string) => !!val || `${'กรุณากรอก ที่อยู่'}`]"
:label="`${'ที่อยู่'}`"
/>
@@ -1010,7 +1010,7 @@ onMounted(async () => {
:class="getClass(enable.about)"
:readonly="!enable.about"
:borderless="!enable.about"
- :rules="[(val) => !!val || `${'กรุณาเลือก จังหวัด'}`]"
+ :rules="[(val:string) => !!val || `${'กรุณาเลือก จังหวัด'}`]"
:outlined="enable.about"
dense
lazy-rules
@@ -1030,7 +1030,7 @@ onMounted(async () => {
:class="getClass(enable.about)"
:readonly="!enable.about"
:borderless="!enable.about"
- :rules="[(val) => !!val || `${'กรุณาเลือก เขต / อำเภอ'}`]"
+ :rules="[(val:string) => !!val || `${'กรุณาเลือก เขต / อำเภอ'}`]"
:outlined="enable.about"
dense
lazy-rules
@@ -1050,7 +1050,7 @@ onMounted(async () => {
:class="getClass(enable.about)"
:readonly="!enable.about"
:borderless="!enable.about"
- :rules="[(val) => !!val || `${'กรุณาเลือก แขวง / ตำบล '}`]"
+ :rules="[(val:string) => !!val || `${'กรุณาเลือก แขวง / ตำบล '}`]"
:outlined="enable.about"
dense
lazy-rules
@@ -1215,7 +1215,7 @@ onMounted(async () => {
lazy-rules
:readonly="!editvisible"
:borderless="!editvisible"
- :rules="[(val) => !!val || `${'กรุณากรอก ชื่อ'}`]"
+ :rules="[(val:string) => !!val || `${'กรุณากรอก ชื่อ'}`]"
label="ชื่อ"
/>
{
lazy-rules
:readonly="!editvisible"
:borderless="!editvisible"
- :rules="[(val) => !!val || `${'กรุณากรอก ลิ้งก์'}`]"
+ :rules="[(val:string) => !!val || `${'กรุณากรอก ลิ้งก์'}`]"
label="ลิ้งก์"
/>
diff --git a/src/modules/06_retirement/components/Discharged/dischargedRegistry.vue b/src/modules/06_retirement/components/Discharged/dischargedRegistry.vue
index cbc8daef1..381e74c69 100644
--- a/src/modules/06_retirement/components/Discharged/dischargedRegistry.vue
+++ b/src/modules/06_retirement/components/Discharged/dischargedRegistry.vue
@@ -322,7 +322,7 @@ onMounted(async () => {
:readonly="!edit"
:borderless="!edit"
v-model="organizationPositionOld"
- :rules="[(val) => !!val || `${'กรุณากรอกตำแหน่ง/สังกัด'}`]"
+ :rules="[(val:string) => !!val || `${'กรุณากรอกตำแหน่ง/สังกัด'}`]"
hide-bottom-space
:label="`${'ตำแหน่ง/สังกัด'}`"
type="textarea"
@@ -339,7 +339,7 @@ onMounted(async () => {
:readonly="!edit"
:borderless="!edit"
v-model="positionTypeOld"
- :rules="[(val) => !!val || `${'กรุณากรอกประเภทตำแหน่ง'}`]"
+ :rules="[(val:string) => !!val || `${'กรุณากรอกประเภทตำแหน่ง'}`]"
hide-bottom-space
:label="`${'ประเภทตำแหน่ง'}`"
/>
@@ -355,7 +355,7 @@ onMounted(async () => {
:readonly="!edit"
:borderless="!edit"
v-model="positionLevelOld"
- :rules="[(val) => !!val || `${'กรุณากรอกระดับ'}`]"
+ :rules="[(val:string) => !!val || `${'กรุณากรอกระดับ'}`]"
hide-bottom-space
:label="`${'ระดับ'}`"
/>
@@ -371,7 +371,7 @@ onMounted(async () => {
:readonly="!edit"
:borderless="!edit"
v-model="posNo"
- :rules="[(val) => !!val || `${'กรุณากรอกเลขที่'}`]"
+ :rules="[(val:string) => !!val || `${'กรุณากรอกเลขที่'}`]"
hide-bottom-space
:label="`${'เลขที่'}`"
/>
@@ -400,7 +400,7 @@ onMounted(async () => {
:readonly="!edit"
:borderless="!edit"
v-model="organization"
- :rules="[(val) => !!val || `${'กรุณากรอกการปลดออก'}`]"
+ :rules="[(val:string) => !!val || `${'กรุณากรอกการปลดออก'}`]"
hide-bottom-space
:label="`${'การปลดออก'}`"
/>
@@ -429,7 +429,7 @@ onMounted(async () => {
:readonly="!edit"
:borderless="!edit"
:model-value="date !== null ? date2Thai(date) : null"
- :rules="[(val) => !!val || `${'กรุณาเลือกตั้งแต่วัน'}`]"
+ :rules="[(val:string) => !!val || `${'กรุณาเลือกตั้งแต่วัน'}`]"
hide-bottom-space
:label="`${'ตั้งแต่วัน'}`"
>
diff --git a/src/modules/06_retirement/components/DismissOrder/outRegistry.vue b/src/modules/06_retirement/components/DismissOrder/outRegistry.vue
index 3f1733d87..f7def8bef 100644
--- a/src/modules/06_retirement/components/DismissOrder/outRegistry.vue
+++ b/src/modules/06_retirement/components/DismissOrder/outRegistry.vue
@@ -240,7 +240,7 @@ onMounted(async () => {
:readonly="!edit"
:borderless="!edit"
v-model="organizationPositionOld"
- :rules="[(val) => !!val || `${'กรุณากรอกตำแหน่ง/สังกัด'}`]"
+ :rules="[(val:string) => !!val || `${'กรุณากรอกตำแหน่ง/สังกัด'}`]"
hide-bottom-space
:label="`${'ตำแหน่ง/สังกัด'}`"
type="textarea"
@@ -257,7 +257,7 @@ onMounted(async () => {
:readonly="!edit"
:borderless="!edit"
v-model="positionTypeOld"
- :rules="[(val) => !!val || `${'กรุณากรอกประเภทตำแหน่ง'}`]"
+ :rules="[(val:string) => !!val || `${'กรุณากรอกประเภทตำแหน่ง'}`]"
hide-bottom-space
:label="`${'ประเภทตำแหน่ง'}`"
/>
@@ -273,7 +273,7 @@ onMounted(async () => {
:readonly="!edit"
:borderless="!edit"
v-model="positionLevelOld"
- :rules="[(val) => !!val || `${'กรุณากรอกระดับ'}`]"
+ :rules="[(val:string) => !!val || `${'กรุณากรอกระดับ'}`]"
hide-bottom-space
:label="`${'ระดับ'}`"
/>
@@ -289,7 +289,7 @@ onMounted(async () => {
:readonly="!edit"
:borderless="!edit"
v-model="posNo"
- :rules="[(val) => !!val || `${'กรุณากรอกเลขที่'}`]"
+ :rules="[(val:string) => !!val || `${'กรุณากรอกเลขที่'}`]"
hide-bottom-space
:label="`${'เลขที่'}`"
/>
@@ -324,7 +324,7 @@ onMounted(async () => {
:readonly="!edit"
:borderless="!edit"
v-model="organization"
- :rules="[(val) => !!val || `${'กรุณากรอกการให้ออกสังกัด'}`]"
+ :rules="[(val:string) => !!val || `${'กรุณากรอกการให้ออกสังกัด'}`]"
hide-bottom-space
:label="`${'การให้ออกสังกัด'}`"
/>
@@ -353,7 +353,7 @@ onMounted(async () => {
:readonly="!edit"
:borderless="!edit"
:model-value="date !== null ? date2Thai(date) : null"
- :rules="[(val) => !!val || `${'กรุณาเลือกตั้งแต่วัน'}`]"
+ :rules="[(val:string) => !!val || `${'กรุณาเลือกตั้งแต่วัน'}`]"
hide-bottom-space
:label="`${'ตั้งแต่วัน'}`"
>
diff --git a/src/modules/06_retirement/components/ExitInterview/exitRegistry.vue b/src/modules/06_retirement/components/ExitInterview/exitRegistry.vue
index f1310c278..ed41c139e 100644
--- a/src/modules/06_retirement/components/ExitInterview/exitRegistry.vue
+++ b/src/modules/06_retirement/components/ExitInterview/exitRegistry.vue
@@ -345,7 +345,7 @@ onMounted(async () => {
label="คะแนนข้อ 1"
type="number"
lazy-rules
- :rules="[(val) => val !== '' || 'กรุณากรอกคะเเนน']"
+ :rules="[(val:string) => val !== '' || 'กรุณากรอกคะเเนน']"
/>
@@ -390,7 +390,7 @@ onMounted(async () => {
label="คะแนนข้อ 2"
type="number"
lazy-rules
- :rules="[(val) => val !== '' || 'กรุณากรอกคะเเนน']"
+ :rules="[(val:string) => val !== '' || 'กรุณากรอกคะเเนน']"
/>
@@ -416,7 +416,7 @@ onMounted(async () => {
label="คะแนนข้อ 3"
type="number"
lazy-rules
- :rules="[(val) => val !== '' || 'กรุณากรอกคะเเนน']"
+ :rules="[(val:string) => val !== '' || 'กรุณากรอกคะเเนน']"
/>
@@ -461,7 +461,7 @@ onMounted(async () => {
label="คะแนนข้อ 4"
type="number"
lazy-rules
- :rules="[(val) => val !== '' || 'กรุณากรอกคะเเนน']"
+ :rules="[(val:string) => val !== '' || 'กรุณากรอกคะเเนน']"
/>
@@ -506,7 +506,7 @@ onMounted(async () => {
label="คะแนนข้อ 5"
type="number"
lazy-rules
- :rules="[(val) => val !== '' || 'กรุณากรอกคะเเนน']"
+ :rules="[(val:string) => val !== '' || 'กรุณากรอกคะเเนน']"
/>
@@ -535,7 +535,7 @@ onMounted(async () => {
label="คะแนนข้อ 6"
type="number"
lazy-rules
- :rules="[(val) => val !== '' || 'กรุณากรอกคะเเนน']"
+ :rules="[(val:string) => val !== '' || 'กรุณากรอกคะเเนน']"
/>
@@ -564,7 +564,7 @@ onMounted(async () => {
label="คะแนนข้อ 7"
type="number"
lazy-rules
- :rules="[(val) => val !== '' || 'กรุณากรอกคะเเนน']"
+ :rules="[(val:string) => val !== '' || 'กรุณากรอกคะเเนน']"
/>
@@ -610,7 +610,7 @@ onMounted(async () => {
label="คะแนนข้อ 8"
type="number"
lazy-rules
- :rules="[(val) => val !== '' || 'กรุณากรอกคะเเนน']"
+ :rules="[(val:string) => val !== '' || 'กรุณากรอกคะเเนน']"
/>
@@ -656,7 +656,7 @@ onMounted(async () => {
label="คะแนนข้อ 9"
type="number"
lazy-rules
- :rules="[(val) => val !== '' || 'กรุณากรอกคะเเนน']"
+ :rules="[(val:string) => val !== '' || 'กรุณากรอกคะเเนน']"
/>
@@ -701,7 +701,7 @@ onMounted(async () => {
label="คะแนนข้อ 10"
type="number"
lazy-rules
- :rules="[(val) => val !== '' || 'กรุณากรอกคะเเนน']"
+ :rules="[(val:string) => val !== '' || 'กรุณากรอกคะเเนน']"
/>
@@ -715,355 +715,6 @@ onMounted(async () => {
type="textarea"
/>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -1085,7 +736,7 @@ onMounted(async () => {
v-model="comment"
label="กรอกความคิดเห็น"
type="textarea"
- :rules="[(val) => !!val || 'กรุณากรอกความคิดเห็น']"
+ :rules="[(val:string) => !!val || 'กรุณากรอกความคิดเห็น']"
/>
diff --git a/src/modules/06_retirement/components/Expulsion/expulsionRegistry.vue b/src/modules/06_retirement/components/Expulsion/expulsionRegistry.vue
index 574170e0d..dc9fe0cf1 100644
--- a/src/modules/06_retirement/components/Expulsion/expulsionRegistry.vue
+++ b/src/modules/06_retirement/components/Expulsion/expulsionRegistry.vue
@@ -324,7 +324,7 @@ onMounted(async () => {
:readonly="!edit"
:borderless="!edit"
v-model="organizationPositionOld"
- :rules="[(val) => !!val || `${'กรุณากรอกตำแหน่ง/สังกัด'}`]"
+ :rules="[(val:string) => !!val || `${'กรุณากรอกตำแหน่ง/สังกัด'}`]"
hide-bottom-space
:label="`${'ตำแหน่ง/สังกัด'}`"
type="textarea"
@@ -341,7 +341,7 @@ onMounted(async () => {
:readonly="!edit"
:borderless="!edit"
v-model="positionTypeOld"
- :rules="[(val) => !!val || `${'กรุณากรอกประเภทตำแหน่ง'}`]"
+ :rules="[(val:string) => !!val || `${'กรุณากรอกประเภทตำแหน่ง'}`]"
hide-bottom-space
:label="`${'ประเภทตำแหน่ง'}`"
/>
@@ -357,7 +357,7 @@ onMounted(async () => {
:readonly="!edit"
:borderless="!edit"
v-model="positionLevelOld"
- :rules="[(val) => !!val || `${'กรุณากรอกระดับ'}`]"
+ :rules="[(val:string) => !!val || `${'กรุณากรอกระดับ'}`]"
hide-bottom-space
:label="`${'ระดับ'}`"
/>
@@ -373,7 +373,7 @@ onMounted(async () => {
:readonly="!edit"
:borderless="!edit"
v-model="posNo"
- :rules="[(val) => !!val || `${'กรุณากรอกเลขที่'}`]"
+ :rules="[(val:string) => !!val || `${'กรุณากรอกเลขที่'}`]"
hide-bottom-space
:label="`${'เลขที่'}`"
/>
@@ -402,7 +402,7 @@ onMounted(async () => {
:readonly="!edit"
:borderless="!edit"
v-model="organization"
- :rules="[(val) => !!val || `${'กรุณากรอกการไล่ออกจากสังกัด'}`]"
+ :rules="[(val:string) => !!val || `${'กรุณากรอกการไล่ออกจากสังกัด'}`]"
hide-bottom-space
:label="`${'ไล่ออกจากสังกัด'}`"
/>
@@ -431,7 +431,7 @@ onMounted(async () => {
:borderless="!edit"
:readonly="!edit"
:model-value="date !== null ? date2Thai(date) : null"
- :rules="[(val) => !!val || `${'กรุณาเลือกตั้งแต่วัน'}`]"
+ :rules="[(val:string) => !!val || `${'กรุณาเลือกตั้งแต่วัน'}`]"
hide-bottom-space
:label="`${'ตั้งแต่วัน'}`"
>
diff --git a/src/modules/06_retirement/components/ListRetirement/TableList.vue b/src/modules/06_retirement/components/ListRetirement/TableList.vue
index 8bd8075be..7c7942427 100644
--- a/src/modules/06_retirement/components/ListRetirement/TableList.vue
+++ b/src/modules/06_retirement/components/ListRetirement/TableList.vue
@@ -704,7 +704,7 @@ onMounted(() => {
lazy-rules
hide-bottom-space
v-model="note"
- :rules="[(val) => !!val || 'กรุณากรอกเหตุผล']"
+ :rules="[(val:string) => !!val || 'กรุณากรอกเหตุผล']"
:label="`${'กรอกเหตุผล'}`"
type="textarea"
:readonly="statusUpload || checkRoutePermisson"
@@ -757,7 +757,7 @@ onMounted(() => {
v-model="fileUpload"
accept=".pdf"
label="อัปโหลดเอกสาร"
- :rules="[(val) => !!val || `${'กรุณาเลือกเอกสารอัปโหลด'}`]"
+ :rules="[(val:string) => !!val || `${'กรุณาเลือกเอกสารอัปโหลด'}`]"
lazy-rules
>
@@ -783,7 +783,7 @@ onMounted(() => {
@@ -187,7 +187,7 @@ async function cerateRetirement(data: object) {
option-value="id"
emit-value
map-options
- :rules="[(val) => !!val || 'กรุณาเลือกรอบ']"
+ :rules="[(val:string) => !!val || 'กรุณาเลือกรอบ']"
/>
diff --git a/src/modules/06_retirement/components/resign/ResignByid.vue b/src/modules/06_retirement/components/resign/ResignByid.vue
index 829a7c020..a91f210ba 100644
--- a/src/modules/06_retirement/components/resign/ResignByid.vue
+++ b/src/modules/06_retirement/components/resign/ResignByid.vue
@@ -1098,7 +1098,7 @@ onMounted(async () => {
:readonly="!edit"
:borderless="!edit"
v-model="organizationPositionOld"
- :rules="[(val) => !!val || `${'กรุณากรอกตำแหน่ง/สังกัดเดิม'}`]"
+ :rules="[(val:string) => !!val || `${'กรุณากรอกตำแหน่ง/สังกัดเดิม'}`]"
hide-bottom-space
:label="`${'ตำแหน่ง/สังกัดเดิม'}`"
type="textarea"
@@ -1115,7 +1115,7 @@ onMounted(async () => {
:readonly="!edit"
:borderless="!edit"
v-model="positionTypeOld"
- :rules="[(val) => !!val || `${'กรุณากรอกตำแหน่งประเภท'}`]"
+ :rules="[(val:string) => !!val || `${'กรุณากรอกตำแหน่งประเภท'}`]"
hide-bottom-space
:label="`${'ตำแหน่งประเภท'}`"
/>
@@ -1131,7 +1131,7 @@ onMounted(async () => {
:readonly="!edit"
:borderless="!edit"
v-model="positionLevelOld"
- :rules="[(val) => !!val || `${'กรุณากรอกระดับตำแหน่ง'}`]"
+ :rules="[(val:string) => !!val || `${'กรุณากรอกระดับตำแหน่ง'}`]"
hide-bottom-space
:label="`${'ระดับตำแหน่ง'}`"
/>
@@ -1147,7 +1147,7 @@ onMounted(async () => {
:readonly="!edit"
:borderless="!edit"
v-model="posNo"
- :rules="[(val) => !!val || `${'กรุณากรอกเลขที่'}`]"
+ :rules="[(val:string) => !!val || `${'กรุณากรอกเลขที่'}`]"
hide-bottom-space
:label="`${'เลขที่'}`"
/>
@@ -1263,7 +1263,7 @@ onMounted(async () => {
:readonly="!edit"
:borderless="!edit"
v-model="remarkHorizontal"
- :rules="[(val) => !!val || `${'กรุณากรอกหมายเหตุแนวนอน '}`]"
+ :rules="[(val:string) => !!val || `${'กรุณากรอกหมายเหตุแนวนอน '}`]"
hide-bottom-space
:label="`${'หมายเหตุแนวนอน '}`"
type="textarea"
@@ -1289,7 +1289,7 @@ onMounted(async () => {
dense
outlined
lazy-rules
- :rules="[(val) => !!val || 'กรุณากรอกความคิดเห็น/เหตุผล']"
+ :rules="[(val:string) => !!val || 'กรุณากรอกความคิดเห็น/เหตุผล']"
v-model="reasonReign"
:label="`${'กรอกความคิดเห็น/เหตุผล'}`"
type="textarea"
@@ -1317,7 +1317,7 @@ onMounted(async () => {
"
hide-bottom-space
:label="`${' วันสุดท้ายที่ยับยั้ง'}`"
- :rules="[(val) => !!val || 'กรุณาเลือกวันที่']"
+ :rules="[(val:string) => !!val || 'กรุณาเลือกวันที่']"
>
filterFnOptions(inputValue, doneFn)"
@@ -175,7 +175,7 @@ watch(
map-options
option-label="name"
option-value="id"
- :rules="[(val) => !!val || `${'กรุณาเลือกสถานะ'}`]"
+ :rules="[(val:string) => !!val || `${'กรุณาเลือกสถานะ'}`]"
hide-bottom-space
use-input
@filter="(inputValue: any,doneFn: Function) => filterFnOptions(inputValue, doneFn)"
diff --git a/src/modules/09_leave/components/4_ChangeRound/DialogForm.vue b/src/modules/09_leave/components/4_ChangeRound/DialogForm.vue
index 383736966..675e003be 100644
--- a/src/modules/09_leave/components/4_ChangeRound/DialogForm.vue
+++ b/src/modules/09_leave/components/4_ChangeRound/DialogForm.vue
@@ -320,7 +320,7 @@ watch(
label="เหตุผล"
hide-bottom-space
type="textarea"
- :rules="[(val) => !!val || `กรุณากรอกเหตุผล`]"
+ :rules="[(val:string) => !!val || `กรุณากรอกเหตุผล`]"
>
diff --git a/src/modules/09_leave/components/4_specialTime/DialogApprove.vue b/src/modules/09_leave/components/4_specialTime/DialogApprove.vue
index df8a04ffe..09b6e6e79 100644
--- a/src/modules/09_leave/components/4_specialTime/DialogApprove.vue
+++ b/src/modules/09_leave/components/4_specialTime/DialogApprove.vue
@@ -257,7 +257,7 @@ watch(
ref="checkInStatusRef"
for="checkInStatus"
emit-value
- :rules="[(val) => !!val || 'กรุณาเลือกสถานะช่วงเช้า']"
+ :rules="[(val:string) => !!val || 'กรุณาเลือกสถานะช่วงเช้า']"
hide-bottom-space
map-options
outlined
@@ -298,7 +298,7 @@ watch(
map-options
outlined
dense
- :rules="[(val) => !!val || 'กรุณาเลือกสถานะช่วงบ่าย']"
+ :rules="[(val:string) => !!val || 'กรุณาเลือกสถานะช่วงบ่าย']"
hide-bottom-space
full-width
v-model="formData.checkOutStatus"
@@ -317,7 +317,7 @@ watch(
class="col-12 bg-white q-ma-md"
outlined
stack-label
- :rules="[(val) => !!val || 'กรุณาเหตุผล']"
+ :rules="[(val:string) => !!val || 'กรุณาเหตุผล']"
v-model="formData.note"
label="เหตุผล"
hide-bottom-space
diff --git a/src/modules/11_discipline/components/1_Complaint/Form.vue b/src/modules/11_discipline/components/1_Complaint/Form.vue
index 79aecd900..fa207fba5 100644
--- a/src/modules/11_discipline/components/1_Complaint/Form.vue
+++ b/src/modules/11_discipline/components/1_Complaint/Form.vue
@@ -425,7 +425,7 @@ onMounted(() => {
map-options
hide-bottom-space
:options="complainstStore.complainantoptions"
- :rules="[(val) => !!val || `${'กรุณาเลือกผู้ร้องเรียน'}`]"
+ :rules="[(val:string) => !!val || `${'กรุณาเลือกผู้ร้องเรียน'}`]"
@filter="(inputValue: any,
doneFn: Function) => filterSelector(inputValue, doneFn, 'filterrespondentType'
)"
@@ -493,7 +493,7 @@ onMounted(() => {
:readonly="isReadonly || checkRoutePermisson"
hide-bottom-space
map-options
- :rules="[(val) => !!val || `${'กรุณาเลือกหน่วยงาน'}`]"
+ :rules="[(val:string) => !!val || `${'กรุณาเลือกหน่วยงาน'}`]"
@update:model-value="changeFormData()"
use-input
@filter="filterOptionFnAgency"
@@ -641,7 +641,7 @@ onMounted(() => {
:readonly="isReadonly || checkRoutePermisson"
hide-bottom-space
v-model="formData.title"
- :rules="[(val) => !!val || 'กรุณากรอกเรื่องร้องเรียน']"
+ :rules="[(val:string) => !!val || 'กรุณากรอกเรื่องร้องเรียน']"
label="เรื่องร้องเรียน"
type="textarea"
rows="5"
diff --git a/src/modules/11_discipline/components/6_BasicInformation/Director/Form.vue b/src/modules/11_discipline/components/6_BasicInformation/Director/Form.vue
index 4a9577f85..ae06935ba 100644
--- a/src/modules/11_discipline/components/6_BasicInformation/Director/Form.vue
+++ b/src/modules/11_discipline/components/6_BasicInformation/Director/Form.vue
@@ -320,7 +320,7 @@ watch(
hide-bottom-space
dense
label="คำค้น"
- :rules="[(val) => !!val || `กรุณากรอกคำค้น`]"
+ :rules="[(val:string) => !!val || `กรุณากรอกคำค้น`]"
>
{
:readonly="!edit"
:borderless="!edit"
v-model="data.positionType"
- :rules="[(val) => !!val || `${'กรุณากรอกประเภทตำแหน่ง'}`]"
+ :rules="[(val:string) => !!val || `${'กรุณากรอกประเภทตำแหน่ง'}`]"
hide-bottom-space
:label="`${'ประเภทตำแหน่ง'}`"
/>
@@ -337,7 +337,7 @@ onMounted(async () => {
:readonly="!edit"
:borderless="!edit"
v-model="data.positionLevel"
- :rules="[(val) => !!val || `${'กรุณากรอกระดับตำแหน่ง'}`]"
+ :rules="[(val:string) => !!val || `${'กรุณากรอกระดับตำแหน่ง'}`]"
hide-bottom-space
:label="`${'ระดับตำแหน่ง'}`"
/>
@@ -353,7 +353,7 @@ onMounted(async () => {
:readonly="!edit"
:borderless="!edit"
v-model="data.posNo"
- :rules="[(val) => !!val || `${'กรุณากรอกตำแหน่งเลขที่'}`]"
+ :rules="[(val:string) => !!val || `${'กรุณากรอกตำแหน่งเลขที่'}`]"
hide-bottom-space
:label="`${'ตำแหน่งเลขที่'}`"
/>
@@ -388,7 +388,7 @@ onMounted(async () => {
:readonly="!edit"
:borderless="!edit"
v-model="data.organization"
- :rules="[(val) => !!val || `${'กรุณากรอก'}`]"
+ :rules="[(val:string) => !!val || `${'กรุณากรอก'}`]"
hide-bottom-space
:label="`${'สังกัด'}`"
/>
@@ -422,7 +422,7 @@ onMounted(async () => {
? date2Thai(data.startDateSuspend)
: null
"
- :rules="[(val) => !!val || `${'กรุณาเลือกตั้งแต่วัน'}`]"
+ :rules="[(val:string) => !!val || `${'กรุณาเลือกตั้งแต่วัน'}`]"
hide-bottom-space
:label="`${'ตั้งแต่วัน'}`"
>
@@ -471,7 +471,7 @@ onMounted(async () => {
? date2Thai(data.endDateSuspend)
: null
"
- :rules="[(val) => !!val || `${'กรุณาเลือกถึงวันที่'}`]"
+ :rules="[(val:string) => !!val || `${'กรุณาเลือกถึงวันที่'}`]"
hide-bottom-space
:label="`${'ถึงวันที่'}`"
>
diff --git a/src/modules/11_discipline/components/8_AppealComplain/Form.vue b/src/modules/11_discipline/components/8_AppealComplain/Form.vue
index c0e349769..ddebf720c 100644
--- a/src/modules/11_discipline/components/8_AppealComplain/Form.vue
+++ b/src/modules/11_discipline/components/8_AppealComplain/Form.vue
@@ -394,7 +394,7 @@ onMounted(() => {
option-label="name"
option-value="id"
:options="option"
- :rules="[(val) => !!val || `${'กรุณาเลือกประเภท'}`]"
+ :rules="[(val:string) => !!val || `${'กรุณาเลือกประเภท'}`]"
hide-bottom-space
use-input
@filter="filterOptionFn"
@@ -419,7 +419,7 @@ onMounted(() => {
outlined
emit-value
lazy-rules
- :rules="[(val) => !!val || `${'กรุณาเลือกสถานะ'}`]"
+ :rules="[(val:string) => !!val || `${'กรุณาเลือกสถานะ'}`]"
map-options
hide-bottom-space
option-label="name"
@@ -613,7 +613,7 @@ onMounted(() => {
dense
outlined
lazy-rules
- :rules="[(val) => !!val || 'กรุณากรอกประเภทคดี']"
+ :rules="[(val:string) => !!val || 'กรุณากรอกประเภทคดี']"
hide-bottom-space
label="ประเภทคดี"
/>
@@ -627,7 +627,7 @@ onMounted(() => {
dense
outlined
lazy-rules
- :rules="[(val) => !!val || 'กรุณากรอกเลขที่คดี']"
+ :rules="[(val:string) => !!val || 'กรุณากรอกเลขที่คดี']"
label="เลขที่คดี"
hide-bottom-space
/>
diff --git a/src/modules/11_discipline/components/DialogDuty.vue b/src/modules/11_discipline/components/DialogDuty.vue
index c72d8c4ba..3e9b093d7 100644
--- a/src/modules/11_discipline/components/DialogDuty.vue
+++ b/src/modules/11_discipline/components/DialogDuty.vue
@@ -73,7 +73,7 @@ watch(props, () => {
class="col-12 q-mb-sm"
debounce="300"
label="หน้าที่"
- :rules="[(val) => !!val || `กรุณากรอกหน้าที่`]"
+ :rules="[(val:string) => !!val || `กรุณากรอกหน้าที่`]"
hide-bottom-space
/>
{
class="col-12 q-mb-sm"
debounce="300"
label="มติ/คำสั่ง"
- :rules="[(val) => !!val || `กรุณากรอก มติ/คำสั่ง`]"
+ :rules="[(val:string) => !!val || `กรุณากรอก มติ/คำสั่ง`]"
hide-bottom-space
/>
diff --git a/src/modules/11_discipline/interface/request/director.ts b/src/modules/11_discipline/interface/request/director.ts
index 96e765bc4..644a8cb2f 100644
--- a/src/modules/11_discipline/interface/request/director.ts
+++ b/src/modules/11_discipline/interface/request/director.ts
@@ -6,6 +6,7 @@ interface FormData {
position: string;
phone: string;
email: string;
+ qualification?:string
}
interface FormDataPost {
personalId: string;
diff --git a/src/modules/12_evaluatePersonal/components/Detail/step/step2.vue b/src/modules/12_evaluatePersonal/components/Detail/step/step2.vue
index 8bc1e1eaa..fd6648df1 100644
--- a/src/modules/12_evaluatePersonal/components/Detail/step/step2.vue
+++ b/src/modules/12_evaluatePersonal/components/Detail/step/step2.vue
@@ -85,7 +85,7 @@ onMounted(async () => {
outlined
label="ชื่อผลงาน"
v-model="subject"
- :rules="[(val) => !!val || `${'กรุณากรอกชื่อผลงาน'}`]"
+ :rules="[(val:string) => !!val || `${'กรุณากรอกชื่อผลงาน'}`]"
lazy-rules
hide-bottom-space
/>
@@ -96,7 +96,7 @@ onMounted(async () => {
outlined
v-model="author"
label="เจ้าของผลงาน"
- :rules="[(val) => !!val || `${'กรุณากรอกเจ้าของผลงาน'}`]"
+ :rules="[(val:string) => !!val || `${'กรุณากรอกเจ้าของผลงาน'}`]"
lazy-rules
hide-bottom-space
/>
@@ -131,7 +131,7 @@ onMounted(async () => {
outlined
label="ชื่อ-นามสกุล"
v-model="formCommand.elementaryFullName"
- :rules="[(val) => !!val || `${'กรุณากรอกชื่อ-นามสกุล'}`]"
+ :rules="[(val:string) => !!val || `${'กรุณากรอกชื่อ-นามสกุล'}`]"
lazy-rules
hide-bottom-space
/>
@@ -143,7 +143,7 @@ onMounted(async () => {
outlined
v-model="formCommand.elementaryPosition"
label="ตำแหน่ง"
- :rules="[(val) => !!val || `${'กรุณากรอกตำแหน่ง'}`]"
+ :rules="[(val:string) => !!val || `${'กรุณากรอกตำแหน่ง'}`]"
lazy-rules
hide-bottom-space
/>
@@ -165,7 +165,7 @@ onMounted(async () => {
outlined
v-model="formCommand.abovelevelFullname"
label="ชื่อ-นามสกุล"
- :rules="[(val) => !!val || `${'กรุณากรอกชื่อ-นามสกุล'}`]"
+ :rules="[(val:string) => !!val || `${'กรุณากรอกชื่อ-นามสกุล'}`]"
lazy-rules
hide-bottom-space
/>
@@ -177,7 +177,7 @@ onMounted(async () => {
outlined
v-model="formCommand.abovelevelPosition"
label="ตำแหน่ง"
- :rules="[(val) => !!val || `${'กรุณากรอกตำแหน่ง'}`]"
+ :rules="[(val:string) => !!val || `${'กรุณากรอกตำแหน่ง'}`]"
lazy-rules
hide-bottom-space
/>
diff --git a/src/modules/14_KPI/components/Tab/Dialog/03_FormIndicatorSpecial.vue b/src/modules/14_KPI/components/Tab/Dialog/03_FormIndicatorSpecial.vue
index 0c2dae4a7..578fdae35 100644
--- a/src/modules/14_KPI/components/Tab/Dialog/03_FormIndicatorSpecial.vue
+++ b/src/modules/14_KPI/components/Tab/Dialog/03_FormIndicatorSpecial.vue
@@ -144,7 +144,7 @@ watch(
bg-color="white"
dense
class="inputgreen"
- :rules="[(val) => !!val || `${'กรุณากรอกลำดับ/รหัสตัวชี้วัด'}`]"
+ :rules="[(val:string) => !!val || `${'กรุณากรอกลำดับ/รหัสตัวชี้วัด'}`]"
hide-bottom-space
lazy-rules
/>
@@ -334,7 +334,7 @@ watch(
type="textarea"
dense
class="inputgreen"
- :rules="[(val) => !!val || `${'กรุณากรอกสูตรคำนวณ'}`]"
+ :rules="[(val:string) => !!val || `${'กรุณากรอกสูตรคำนวณ'}`]"
hide-bottom-space
lazy-rules
/>
diff --git a/src/modules/14_KPI/views/report.vue b/src/modules/14_KPI/views/report.vue
index 62bec1e6f..01d6d57d1 100644
--- a/src/modules/14_KPI/views/report.vue
+++ b/src/modules/14_KPI/views/report.vue
@@ -627,7 +627,7 @@ onMounted(() => {
lazy-rules
:rules="
typeReport === 'KPI8'
- ? [(val) => !!val || 'กรุณาเลือกรอบการประเมิน']
+ ? [(val:string) => !!val || 'กรุณาเลือกรอบการประเมิน']
: []
"
/>