{{
parseInt(value + 543)
@@ -732,9 +2060,7 @@ onMounted(() => {
outlined
class="inputgreen"
:model-value="
- formData.trainingDateStart
- ? date2Thai(formData.trainingDateStart)
- : null
+ formBody.startDate ? date2Thai(formBody.startDate) : null
"
:label="`${'วันเริ่มต้นการฝึกอบรม'}`"
hide-bottom-space
@@ -758,12 +2084,12 @@ onMounted(() => {
{{ year + 543 }}
{{
@@ -775,9 +2101,7 @@ onMounted(() => {
outlined
class="inputgreen"
:model-value="
- formData.trainingDateEnd
- ? date2Thai(formData.trainingDateEnd)
- : null
+ formBody.endDate ? date2Thai(formBody.endDate) : null
"
:label="`${'วันสิ้นสุดการฝึกอบรม'}`"
hide-bottom-space
@@ -805,9 +2129,9 @@ onMounted(() => {
outlined
lazy-rules
hide-bottom-space
- class="inputgreen"
label="สถานที่ไปศึกษาดูงาน"
- v-model="formData.studyPlace"
+ class="inputgreen"
+ v-model="formBody.studyPlace"
:rules="[
(val:string) =>
!!val || `${'กรุณากรอกสถานที่ไปศึกษาดูงาน'}`,
@@ -820,12 +2144,242 @@ onMounted(() => {
outlined
lazy-rules
hide-bottom-space
- label="หัวข้อไปศึกษาดูงาน"
+ label="หัวข้อการไปศึกษาดูงาน"
class="inputgreen"
- v-model="formData.studyTopic"
+ v-model="formBody.studyTopic"
:rules="[
(val:string) =>
- !!val || `${'กรุณากรอกหัวข้อไปศึกษาดูงาน'}`,
+ !!val || `${'กรุณากรอกหัวข้อการไปศึกษาดูงาน'}`,
+ ]"
+ />
+
+
+
+ {{ year + 543 }}
+ {{
+ parseInt(value + 543)
+ }}
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ year + 543 }}
+ {{
+ parseInt(value + 543)
+ }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ year + 543 }}
+ {{
+ parseInt(value + 543)
+ }}
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ year + 543 }}
+ {{
+ parseInt(value + 543)
+ }}
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/modules/15_development/interface/index/Main.ts b/src/modules/15_development/interface/index/Main.ts
index 3cb5a2a85..836c9a170 100644
--- a/src/modules/15_development/interface/index/Main.ts
+++ b/src/modules/15_development/interface/index/Main.ts
@@ -55,6 +55,13 @@ interface DataPerson {
[key: string]: any;
}
+interface ItemsDownload {
+ label: string;
+ value: string;
+ icon: string;
+ color: string;
+}
+
export type {
DataOption,
DataOptionCheckBox,
@@ -62,4 +69,5 @@ export type {
NewPagination,
FormFilter,
DataPerson,
+ ItemsDownload
};
diff --git a/src/modules/15_development/interface/request/Main.ts b/src/modules/15_development/interface/request/Main.ts
index 0af7c18a5..ba505dbd0 100644
--- a/src/modules/15_development/interface/request/Main.ts
+++ b/src/modules/15_development/interface/request/Main.ts
@@ -63,7 +63,7 @@ interface FormFollowOther {
interface FormAddHistory {
id: string;
- name: string|null;
+ name: string | null;
prefix: string;
rank: string;
firstName: string;
@@ -82,7 +82,7 @@ interface FormAddHistory {
interface FormAddHistoryEmployee {
id: string;
- name: string|null;
+ name: string | null;
prefix: string;
rank: string;
firstName: string;
diff --git a/src/modules/15_development/interface/request/Scholarship.ts b/src/modules/15_development/interface/request/Scholarship.ts
new file mode 100644
index 000000000..4c02f519d
--- /dev/null
+++ b/src/modules/15_development/interface/request/Scholarship.ts
@@ -0,0 +1,53 @@
+interface FormsSholarship {
+ rank: string; //ยศ
+ prefix: string; //คำนำหน้าชื่อ
+ firstName: string; //ชื่อ
+ lastName: string; //นามสกุล
+ citizenId: string; //เลขประจำตัวประชาชน
+ position: string; //ตำแหน่ง
+ posExecutive: string; //ชื่อตำแหน่งทางการบริหาร
+ posLevelId: string | null; //ไอดีระดับตำแหน่ง
+ posTypeId: string | null; //ไอดีประเภทตำแหน่ง
+ guarantorRank: string; //ยศ(ผู้ค้ำ)
+ guarantorPrefix: string; //คำนำหน้าชื่อ(ผู้ค้ำ)
+ guarantorFirstName: string; //ชื่อ(ผู้ค้ำ)
+ guarantorLastName: string; //นามสกุล(ผู้ค้ำ)
+ guarantorCitizenId: string; //เลขประจำตัวประชาชน(ผู้ค้ำ)
+ guarantorPosition: string; //ตำแหน่ง(ผู้ค้ำ)
+ guarantorPosExecutive: string; //ชื่อตำแหน่งทางการบริหาร(ผู้ค้ำ)
+ posLevelguarantorId: string | null; //ไอดีระดับตำแหน่ง(ผู้ค้ำ)
+ posTypeguarantorId: string | null; //ไอดีประเภทตำแหน่ง(ผู้ค้ำ)
+ scholarshipYear: number | null; //ปีงบประมาณที่ได้รับทุน
+ budgetSource: string; //แหล่งงบประมาณ
+ budgetApprove: number | string | null; //งบประมาณที่ได้รับอนุมัติตลอดหลักสูตร
+ bookNo: string; //เลขที่หนังสืออนุมัติ
+ bookNoDate: Date | null; //ลงวันที่(หนังสือ)
+ bookApproveDate: Date | null; //หนังสืออนุมัติเมื่อวันที่
+ useOfficialTime: boolean; //ใช้เวลาราชการ
+ changeDetail: string; //เปลี่ยนแปลงรายละเอียด
+ scholarshipType: string; //เลือกประเภททุน
+ fundType: string; //ประเภททุน
+ contractNo: string; //เลขที่สัญญา
+ contractDate: Date | null; //ลงวันที่(เลขที่สัญญา)
+ reportBackNo: string; //เลขที่หนังสือรายงานตัวกลับ
+ reportBackNoDate: Date | null; //ลงวันที่(เลขที่หนังสือรายงานตัวกลับ)
+ reportBackDate: Date | null; //รายงานตัวกลับวันที่
+ degreeLevel: string; //ระดับปริญญา
+ course: string; //หลักสูตรการศึกษา/หลักสูตรการฝึกอบรม
+ field: string; //สาขาวิชา/สาขา
+ faculty: string; //คณะ
+ educationalInstitution: string; //สถาบันการศึกษา/สถาบันการศึกษา_หน่วยงานผู้จัดการฝึกอบรม/สถานที่ไปศึกษาดูงานในประเทศ
+ startDate: Date | null; //วันเริ่มต้นการศึกษา/วันเริ่มต้นการฝึกอบรม/วันเริ่มต้นการศึกษาดูงานในประเทศ
+ endDate: Date | null; //วันสิ้นสุดการศึกษา/วันสิ้นสุดการฝึกอบรม/วันสิ้นสุดการศึกษาดูงานในประเทศ
+ studyPlace: string; //สถานที่ไปศึกษาดูงาน
+ studyTopic: string; //หัวข้อการไปศึกษาดูงาน/หัวข้อการไปศึกษาดูงานในประเทศ
+ studyStartDate: Date | null; //วันเริ่มต้นการศึกษาดูงาน
+ studyEndDate: Date | null; //วันสิ้นสุดการศึกษาดูงาน
+ studyCountry: string; //ประเทศที่เดินทางไปศึกษาดูงาน
+ studyAbroadTopic: string; //หัวข้อการไปศึกษาดูงานต่างประเทศ
+ studyAbroadStartDate: Date | null; //วันเริ่มต้นการศึกษาดูงานต่างประเทศ
+ studyAbroadEndDate: Date | null; //วันสิ้นสุดการศึกษาดูงานต่างประเทศ
+ totalPeriod: string; //รวมระยะเวลาในการศึกษา/รวมระยะเวลาในการฝึกอบรม
+}
+
+export type { FormsSholarship };
diff --git a/src/modules/15_development/interface/response/Scholarship.ts b/src/modules/15_development/interface/response/Scholarship.ts
new file mode 100644
index 000000000..95d7edd2c
--- /dev/null
+++ b/src/modules/15_development/interface/response/Scholarship.ts
@@ -0,0 +1,67 @@
+interface ListSholarship {
+ citizenId: string;
+ fullName: string;
+ id: string;
+ posExecutive: string;
+ posLevel: string;
+ posType: string;
+ position: string;
+}
+
+interface DataSholarship {
+ rank: string; //ยศ
+ prefix: string; //คำนำหน้าชื่อ
+ firstName: string; //ชื่อ
+ lastName: string; //นามสกุล
+ citizenId: string; //เลขประจำตัวประชาชน
+ position: string; //ตำแหน่ง
+ posExecutive: string; //ชื่อตำแหน่งทางการบริหาร
+ posLevelId: string; //ไอดีระดับตำแหน่ง
+ posTypeId: string; //ไอดีประเภทตำแหน่ง
+ posTypeName: string; //ไอดีระดับตำแหน่ง
+ posLevelName: string; //ไอดีประเภทตำแหน่ง
+ guarantorRank: string; //ยศ(ผู้ค้ำ)
+ guarantorPrefix: string; //คำนำหน้าชื่อ(ผู้ค้ำ)
+ guarantorFirstName: string; //ชื่อ(ผู้ค้ำ)
+ guarantorLastName: string; //นามสกุล(ผู้ค้ำ)
+ guarantorCitizenId: string; //เลขประจำตัวประชาชน(ผู้ค้ำ)
+ guarantorPosition: string; //ตำแหน่ง(ผู้ค้ำ)
+ guarantorPosExecutive: string; //ชื่อตำแหน่งทางการบริหาร(ผู้ค้ำ)
+ posLevelguarantorId: string; //ไอดีระดับตำแหน่ง(ผู้ค้ำ)
+ posTypeguarantorId: string; //ไอดีประเภทตำแหน่ง(ผู้ค้ำ)
+ posTypeguarantorName: string; //ไอดีระดับตำแหน่ง(ผู้ค้ำ)
+ posLevelguarantorName: string; //ไอดีประเภทตำแหน่ง(ผู้ค้ำ)
+ scholarshipYear: number | null; //ปีงบประมาณที่ได้รับทุน
+ budgetSource: string; //แหล่งงบประมาณ
+ budgetApprove: number | null; //งบประมาณที่ได้รับอนุมัติตลอดหลักสูตร
+ bookNo: string; //เลขที่หนังสืออนุมัติ
+ bookNoDate: Date | null; //ลงวันที่(หนังสือ)
+ bookApproveDate: Date | null; //หนังสืออนุมัติเมื่อวันที่
+ useOfficialTime: boolean; //ใช้เวลาราชการ
+ changeDetail: string; //เปลี่ยนแปลงรายละเอียด
+ scholarshipType: string; //เลือกประเภททุน
+ fundType: string; //ประเภททุน
+ contractNo: string; //เลขที่สัญญา
+ contractDate: Date | null; //ลงวันที่(เลขที่สัญญา)
+ reportBackNo: string; //เลขที่หนังสือรายงานตัวกลับ
+ reportBackNoDate: Date | null; //ลงวันที่(เลขที่หนังสือรายงานตัวกลับ)
+ reportBackDate: Date | null; //รายงานตัวกลับวันที่
+ degreeLevel: string; //ระดับปริญญา
+ course: string; //หลักสูตรการศึกษา/หลักสูตรการฝึกอบรม
+ field: string; //สาขาวิชา/สาขา
+ faculty: string; //คณะ
+ educationalInstitution: string; //สถาบันการศึกษา/สถาบันการศึกษา_หน่วยงานผู้จัดการฝึกอบรม/สถานที่ไปศึกษาดูงานในประเทศ
+ startDate: Date | null; //วันเริ่มต้นการศึกษา/วันเริ่มต้นการฝึกอบรม/วันเริ่มต้นการศึกษาดูงานในประเทศ
+ endDate: Date | null; //วันสิ้นสุดการศึกษา/วันสิ้นสุดการฝึกอบรม/วันสิ้นสุดการศึกษาดูงานในประเทศ
+ studyPlace: string; //สถานที่ไปศึกษาดูงาน
+ studyTopic: string; //หัวข้อการไปศึกษาดูงาน/หัวข้อการไปศึกษาดูงานในประเทศ
+ studyStartDate: Date | null; //วันเริ่มต้นการศึกษาดูงาน
+ studyEndDate: Date | null; //วันสิ้นสุดการศึกษาดูงาน
+ studyCountry: string; //ประเทศที่เดินทางไปศึกษาดูงาน
+ studyAbroadTopic: string; //หัวข้อการไปศึกษาดูงานต่างประเทศ
+ studyAbroadStartDate: Date | null; //วันเริ่มต้นการศึกษาดูงานต่างประเทศ
+ studyAbroadEndDate: Date | null; //วันสิ้นสุดการศึกษาดูงานต่างประเทศ
+ totalPeriod: string; //รวมระยะเวลาในการศึกษา/รวมระยะเวลาในการฝึกอบรม
+}
+
+export type { DataSholarship, ListSholarship };
diff --git a/src/modules/15_development/views/MainPage.vue b/src/modules/15_development/views/MainPage.vue
index 8b3fafceb..3d454207d 100644
--- a/src/modules/15_development/views/MainPage.vue
+++ b/src/modules/15_development/views/MainPage.vue
@@ -230,7 +230,11 @@ onMounted(() => {
v-if="formQuery.keyword !== ''"
name="clear"
class="cursor-pointer"
- @click="(formQuery.keyword = ''), fetchListProject()"
+ @click="
+ (formQuery.keyword = ''),
+ fetchListProject(),
+ (formQuery.page = 1)
+ "
/>
@@ -253,19 +257,6 @@ onMounted(() => {