diff --git a/src/modules/09_leave/components/1_Work/DialogDetail.vue b/src/modules/09_leave/components/1_Work/DialogDetail.vue
index bb668e52e..a02604db2 100644
--- a/src/modules/09_leave/components/1_Work/DialogDetail.vue
+++ b/src/modules/09_leave/components/1_Work/DialogDetail.vue
@@ -92,7 +92,7 @@ function colsePopup() {
-
+
diff --git a/src/modules/09_leave/components/1_Work/ToolBar.vue b/src/modules/09_leave/components/1_Work/ToolBar.vue
index cf91a2bca..f00acfb44 100644
--- a/src/modules/09_leave/components/1_Work/ToolBar.vue
+++ b/src/modules/09_leave/components/1_Work/ToolBar.vue
@@ -11,8 +11,8 @@ const { filterFn, searchDataFn } = workStore;
-
-
+
+
-
+
-
+
+ debounce="300"
+ >
+
+
+
+
-
diff --git a/src/modules/09_leave/components/2_Leave/ToolBar.vue b/src/modules/09_leave/components/2_Leave/ToolBar.vue
index 3cdb35df5..31d4aca07 100644
--- a/src/modules/09_leave/components/2_Leave/ToolBar.vue
+++ b/src/modules/09_leave/components/2_Leave/ToolBar.vue
@@ -7,8 +7,8 @@ const { searchDataFn, filterOption } = leaveStore;
-
-
+
+
-
+
-
+
-
+
-
diff --git a/src/modules/09_leave/interface/response/work.ts b/src/modules/09_leave/interface/response/work.ts
index 5c16cf207..50bfc3b4d 100644
--- a/src/modules/09_leave/interface/response/work.ts
+++ b/src/modules/09_leave/interface/response/work.ts
@@ -8,8 +8,9 @@ interface TableRows {
coordinatesOut: string
latOut: string
longOut: string
- status: string
- date: String | null
+ status: string | undefined
+ date: string | null
+
}
interface DataRes {
fullName: string
diff --git a/src/modules/09_leave/stores/WorkStore.ts b/src/modules/09_leave/stores/WorkStore.ts
index bb1dae063..d91efe185 100644
--- a/src/modules/09_leave/stores/WorkStore.ts
+++ b/src/modules/09_leave/stores/WorkStore.ts
@@ -13,7 +13,7 @@ export const useWorklistDataStore = defineStore("work", () => {
const visibleColumns = ref
([]);
const dataMain = ref([])
function fetchList(data: DataRes[]) {
- let datalist = data.map((e: DataRes) => ({
+ let datalist: TableRows[] = data.map((e: DataRes) => ({
fullName: e.fullName,
timeIn: e.timeIn,
coordinatesIn: e.coordinatesIn,
@@ -33,11 +33,17 @@ export const useWorklistDataStore = defineStore("work", () => {
//ค้นหาข้อมูล
const filterTable = ref('')
- const selectDate = ref(null);
+ const selectDate = ref(new Date());
const selectStatus = ref('all')
const optionStatusMain = ref([])
const optionStatus = ref([])
function searchDataFn(searchDate: any, searchStatus: any) {
+ let a = new Date(searchDate);// วันที่เลือก
+ let b = new Date(); // วันที่ปัจจุบัน
+ if (a > b) {
+ selectDate.value = new Date()
+ searchDate = new Date()
+ }
searchStatus = searchStatus || "all";
if (searchDate == null && searchStatus == "all") {
rows.value = dataMain.value
@@ -84,12 +90,12 @@ export const useWorklistDataStore = defineStore("work", () => {
// convertSatatus
function convertSatatus(val: string) {
switch (val) {
- case "1":
- return "ลงเวลาเรียบร้อย"
- case "2":
- return "สายทำงานครบ"
- default:
- return "ยังไม่ได้ลงเวลา"
+ case "normal":
+ return "ปกติ"
+ case "late":
+ return "สาย"
+ case "absent":
+ return "ขาดราชการ"
}
}
return {
diff --git a/src/modules/09_leave/views/WorkingMain.vue b/src/modules/09_leave/views/WorkingMain.vue
index 23941c4ec..6580dc807 100644
--- a/src/modules/09_leave/views/WorkingMain.vue
+++ b/src/modules/09_leave/views/WorkingMain.vue
@@ -33,8 +33,8 @@ function fecthWorkList() {
coordinatesOut: "สำนักงาน",
latOut: "18.7903",
longOut: "99.0029",
- status: "1",
- date: new Date("2023-10-27"),
+ status: "normal",
+ date: new Date(new Date()),
},
{
fullName: "นายนครชัย วันดี",
@@ -46,8 +46,8 @@ function fecthWorkList() {
coordinatesOut: "สำนักงาน",
latOut: "18.7903",
longOut: "99.0029",
- status: "2",
- date: new Date("2023-10-28"),
+ status: "late",
+ date: new Date(new Date()),
},
{
fullName: "นายปิยรมย์ ศิริธาราฟ",
@@ -59,7 +59,7 @@ function fecthWorkList() {
coordinatesOut: "สำนักงาน",
latOut: "18.7903",
longOut: "99.0029",
- status: "3",
+ status: "absent",
date: new Date("2023-10-27"),
},
{
@@ -72,7 +72,7 @@ function fecthWorkList() {
coordinatesOut: "สำนักงาน",
latOut: "18.7903",
longOut: "99.0029",
- status: "1",
+ status: "normal",
date: new Date("2023-10-27"),
},
];
diff --git a/src/modules/10_order/store.ts b/src/modules/10_order/store.ts
index c158e7af8..35f29bae4 100644
--- a/src/modules/10_order/store.ts
+++ b/src/modules/10_order/store.ts
@@ -142,9 +142,11 @@ export const useOrderPlacementDataStore = defineStore("placementOrder", () => {
case "C-PM-21":
return "จ้างและแต่งตั้งลูกจ้างประจำ";
case "C-PM-22":
- return "จ้างและแต่งตั้งลูกจ้างประจำ";
+ return "แต่งตั้งลูกจ้างประจำ";
case "C-PM-23":
return "อนุญาตให้ลูกจ้างประจำลาออกจากราชการ";
+ case "C-PM-24":
+ return "แต่งตั้งลูกจ้างประจำ";
default:
return "";
}
diff --git a/src/modules/11_discipline/components/1_Complaint/MainPage.vue b/src/modules/11_discipline/components/1_Complaint/MainPage.vue
index 32560b97d..a66d1273b 100644
--- a/src/modules/11_discipline/components/1_Complaint/MainPage.vue
+++ b/src/modules/11_discipline/components/1_Complaint/MainPage.vue
@@ -86,6 +86,7 @@ function redirectToPageadd() {
outlined
v-model="filterTable"
label="ค้นหา"
+ debounce="300"
>