diff --git a/src/modules/05_placement/components/AppointMent/Detail.vue b/src/modules/05_placement/components/AppointMent/Detail.vue index e95135d42..7e184c97d 100644 --- a/src/modules/05_placement/components/AppointMent/Detail.vue +++ b/src/modules/05_placement/components/AppointMent/Detail.vue @@ -42,7 +42,7 @@ const salary = ref(""); const educationOld = ref(""); const reason = ref(""); const date = ref(null); - +const status = ref(""); onMounted(async () => { await fecthappointmentByid(); }); @@ -61,7 +61,8 @@ const fecthappointmentByid = async () => { title.value.organizationPositionOld = data.organizationPositionOld ?? "-"; title.value.positionLevelOld = data.positionLevelOld ?? "-"; title.value.positionTypeOld = data.positionTypeOld ?? "-"; - + status.value = data.status, + console.log("🚀 ~ file: Detail.vue:65 ~ .then ~ status:", status.value) educationOld.value = data.educationOld; organizationPositionOld.value = data.organizationPositionOld; positionTypeOld.value = data.positionTypeOld; @@ -71,6 +72,7 @@ const fecthappointmentByid = async () => { // organization.value = data.organization; //ไม่มี reason.value = data.reason; date.value = data.positionDate; + }) .catch((e) => { messageError($q, e); @@ -189,7 +191,8 @@ const getClass = (val: boolean) => { แก้ไขข้อมูลเพื่อลงบัญชีแนบท้าย -
+
+
@@ -198,6 +201,10 @@ const getClass = (val: boolean) => {
+ + + +
diff --git a/src/modules/05_placement/components/AppointMent/Main.vue b/src/modules/05_placement/components/AppointMent/Main.vue index 3f0854ee7..9165fa683 100644 --- a/src/modules/05_placement/components/AppointMent/Main.vue +++ b/src/modules/05_placement/components/AppointMent/Main.vue @@ -8,6 +8,7 @@ import DialogOrgTree from "@/modules/05_placement/components/AppointMent/Appoint import { useCounterMixin } from "@/stores/mixin"; import http from "@/plugins/http"; import config from "@/app.config"; +import { WeekNumberContainer } from "@fullcalendar/core/internal"; const mixin = useCounterMixin(); //เรียกฟังก์ชันกลาง const { showLoader, @@ -53,6 +54,7 @@ const visibleColumns = ref([ "fullname", "organizationName", "birthday", + "createdAt", "status", ]); const visibleColumns2 = ref([ @@ -105,6 +107,8 @@ const fecthlistappointment = async () => { positionNumber: e.positionNumber, positionPath: e.positionPath, status: status(e.status), + createdAt:date2Thai(e.createdAt), + birthday: e.dateOfBirth == null ? "-" : date2Thai(e.dateOfBirth), })); // console.log(rows.value); @@ -169,8 +173,7 @@ const columns = ref([ field: "organizationName", headerStyle: "font-size: 14px", style: "font-size: 14px", - sort: (a: string, b: string) => - a.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }), + }, { name: "birthday", @@ -181,6 +184,17 @@ const columns = ref([ headerStyle: "font-size: 14px", style: "font-size: 14px", }, + { + name: "createdAt", + align: "left", + label: "วันที่ดำเนินการ", + sortable: true, + field: "createdAt", + headerStyle: "font-size: 14px", + style: "font-size: 14px", + sort: (a, b) => (b.createdAt) - (a.createdAt) + + }, { name: "status", align: "left", @@ -191,6 +205,7 @@ const columns = ref([ style: "font-size: 14px", }, ]); + const columns2 = ref([ { name: "no", @@ -239,6 +254,7 @@ const columns2 = ref([ headerStyle: "font-size: 14px", style: "font-size: 14px", }, + ]); const openModalTree = (id: string) => { @@ -390,7 +406,7 @@ const status = (val: string) => { :columns="columns" :rows="rows" :filter="filterKeyword" - row-key="fullname" + row-key="citizenId" :visible-columns="visibleColumns" >