+
+ ชื่อ - นามสกุล
+
-
-
-
+
+ {{ formMain.name ?? "-" }}
+
-
-
-
- {{ year + 543 }}
-
-
- {{ parseInt(value + 543) }}
-
-
-
-
-
-
-
-
-
-
+
+
+ ตําแหน่งทางการบริหาร
+
+
+
+ {{ formMain.positionSide ?? "-" }}
+
+
+
+
+ ตําแหน่ง
+
+
+
+ {{ formMain.position ?? "-" }}
+
+
+
+
+ หน่วยงานที่สังกัด
+
+
+
+ {{ formMain.oc ?? "-" }}
+
+
+
+
+ ประเภทตําแหน่ง
+
+
+
+ {{ formMain.type ?? "-" }}
+
-
-
-
-
-
+
-
-
+
+
+
+ ข้อมูลโครงการ
+
+
+
+
+
+ ชื่อโครงการ/หลักสูตรการฝึกอบรม
+
+
+
+ {{ formMainProject.project ?? "-" }}
+
+
+
+
+ วันเริ่มต้นการฝึกอบรม/ศึกษาดูงาน
+
+
+
+ {{
+ formMainProject.trainingStart
+ ? date2Thai(formMainProject.trainingStart)
+ : "-"
+ }}
+
+
+
+
+ ปีงบประมาณที่เข้ารับการฝึกอบรม/ศึกษาดูงาน
+
+
+
+ {{ formMainProject.year ?? "-" }}
+
+
+
+
+ วันสิ้นสุดการฝึกอบรม/ศึกษาดูงาน
+
+
+
+ {{
+ formMainProject.trainingEnd
+ ? date2Thai(formMainProject?.trainingEnd)
+ : "-"
+ }}
+
+
+
+
+ หัวข้อการไปฝึกอบรม/ศึกษาดูงาน
+
+
+
+ {{ formMainProject.topic ?? "-" }}
+
+
+
+
+ รวมระยะเวลาในการฝึกอบรม/ศึกษาดูงาน
+
+
+
+ {{ formMainProject.totalTraining ?? "-" }}
+
+
+
+
+ สถานที่ไปฝึกอบรม/ศึกษาดูงาน
+
+
+
+ {{ formMainProject.location ?? "-" }}
+
+
+
+
+ หน่วยงานที่รับผิดชอบ
+
+
+
+ {{ formMainProject.organizingTraining ?? "-" }}
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ year + 543 }}
+
+
+ {{ parseInt(value + 543) }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/modules/15_development/components/historyEmployee/AddPage.vue b/src/modules/15_development/components/historyEmployee/AddPage.vue
index 90a7776df..bdc937a19 100644
--- a/src/modules/15_development/components/historyEmployee/AddPage.vue
+++ b/src/modules/15_development/components/historyEmployee/AddPage.vue
@@ -94,7 +94,7 @@ function getClass() {
/** save */
function onSubmit() {
const url = id.value
- ? config.API.developmentHistoryList("employee") + `${id.value}`
+ ? config.API.developmentHistoryListByid("employee", id.value)
: config.API.developmentHistoryAdd("employee");
const body = {
@@ -115,7 +115,7 @@ function onSubmit() {
dialogConfirm($q, () => {
showLoader();
http[id.value ? "put" : "post"](url, body)
- .then((res) => {
+ .then(() => {
router.push(`/development/employee-history`);
})
.catch((e) => {
@@ -150,7 +150,7 @@ function upDateProject(data: any) {
function getDataEdit() {
showLoader();
http
- .get(config.API.developmentHistoryList("employee") + `${id.value}`)
+ .get(config.API.developmentHistoryListByid("employee", id.value))
.then((res) => {
const data = res.data.result;
formMain.id = id.value;
diff --git a/src/modules/15_development/components/scholarship/DetailView.vue b/src/modules/15_development/components/scholarship/DetailView.vue
index c7c17ac50..c90fcdb8e 100644
--- a/src/modules/15_development/components/scholarship/DetailView.vue
+++ b/src/modules/15_development/components/scholarship/DetailView.vue
@@ -2330,11 +2330,11 @@ onMounted(() => {
? date2Thai(formBody.startDate)
: null
"
- :label="`${'วันเริ่มต้นการฝึกอบรม'}`"
+ :label="`${'วันเริ่มต้น'}`"
hide-bottom-space
:rules="[
(val: string) =>
- !!val || `${'กรุณาเลือกวันเริ่มต้นการฝึกอบรม'}`,
+ !!val || `${'กรุณาเลือกวันเริ่มต้น'}`,
]"
>
@@ -2371,11 +2371,11 @@ onMounted(() => {
:model-value="
formBody.endDate ? date2Thai(formBody.endDate) : null
"
- :label="`${'วันสิ้นสุดการฝึกอบรม'}`"
+ :label="`${'วันสิ้นสุด'}`"
hide-bottom-space
:rules="[
(val: string) =>
- !!val || `${'กรุณาเลือกวันที่วันสิ้นสุดการฝึกอบรม'}`,
+ !!val || `${'กรุณาเลือกวันที่วันสิ้นสุด'}`,
]"
>
diff --git a/src/modules/15_development/interface/request/Main.ts b/src/modules/15_development/interface/request/Main.ts
index ddb7eade0..ca9d103e4 100644
--- a/src/modules/15_development/interface/request/Main.ts
+++ b/src/modules/15_development/interface/request/Main.ts
@@ -133,8 +133,8 @@ interface FormAddHistoryProject {
id: string;
project: string;
year: string;
- trainingStart: string;
- trainingEnd: string;
+ trainingStart: null | Date;
+ trainingEnd: null | Date;
totalTraining: string;
location: string;
topic: string;
diff --git a/src/modules/15_development/views/EmployeeHistory.vue b/src/modules/15_development/views/EmployeeHistory.vue
index a18007bd0..9e1305eac 100644
--- a/src/modules/15_development/views/EmployeeHistory.vue
+++ b/src/modules/15_development/views/EmployeeHistory.vue
@@ -1,40 +1,19 @@
@@ -217,7 +208,7 @@ onMounted(() => {
autoApply
year-picker
:enableTimePicker="false"
- @update:model-value="getData()"
+ @update:model-value="fetchListOrg()"
>
{{ year + 543 }}
{{
@@ -229,14 +220,16 @@ onMounted(() => {
lazy-rules
outlined
:model-value="
- formFilter.year === 0 ? null : Number(formFilter.year) + 543
+ formFilter.year === 0
+ ? 'ทั้งหมด'
+ : Number(formFilter.year) + 543
"
:label="`${'ปีงบประมาณ'}`"
>
@@ -258,10 +251,11 @@ onMounted(() => {
dense
outlined
label="หน่วยงาน"
- v-model="agency"
+ v-model="formFilter.root"
:options="agencyOp"
option-value="id"
option-label="name"
+ @update:model-value="(formFilter.page = 1), getData()"
/>
diff --git a/src/modules/15_development/views/History.vue b/src/modules/15_development/views/History.vue
index 46d9b8064..63d321182 100644
--- a/src/modules/15_development/views/History.vue
+++ b/src/modules/15_development/views/History.vue
@@ -16,7 +16,7 @@ const pagination = ref({
});
const formFilter = reactive({
- root: "",
+ root: null,
page: 1,
pageSize: 20,
keyword: "",
@@ -115,8 +115,9 @@ function fetchListOrg() {
http
.get(config.API.developmentHistoryListOrg("officer", formFilter.year))
.then((res) => {
- formFilter.root = "";
+ formFilter.root = null;
agencyOp.value = res.data.result;
+ getData();
})
.catch((err) => {
messageError($q, err);