diff --git a/src/interface/request/main/main.ts b/src/interface/request/main/main.ts index 579656e94..bc50f7dd1 100644 --- a/src/interface/request/main/main.ts +++ b/src/interface/request/main/main.ts @@ -250,12 +250,12 @@ const menuList = readonly([ path: "appoint-promote", role: "placement", }, - { - key: 6.8, - label: "รายการแต่งตั้งลูกจ้างประจำ", - path: "appoint-employee", - role: "placement", - }, + // { + // key: 6.8, + // label: "รายการแต่งตั้งลูกจ้างประจำ", + // path: "appoint-employee", + // role: "placement", + // }, // { // key: 6.9, // label: "รายการย้าย", @@ -374,132 +374,34 @@ const menuList = readonly([ }, ], }, - // { - // key: 9, - // icon: "mdi-calendar", - // activeIcon: "mdi-calendar", - // label: "การลา", - // path: "leave", - // role: "coin", - // children: [ - // { - // key: 9.1, - // label: "รายการลงเวลาปฏิบัติงาน", - // path: "/work-list", - // role: "coin", - // }, - // { - // key: 9.2, - // label: "รายการลา", - // path: "/leave-list", - // role: "coin", - // }, - // { - // key: 9.3, - // label: "รายงานสถิติ", - // path: "/statistics-report", - // role: "coin", - // }, - // ], - // }, - // { - // key: 8, - // icon: "mdi-medal-outline", - // activeIcon: "mdi-medal", - // label: "เครื่องราชฯ", - // path: "insignia", - // role: "insignia", - // children: [ - // { - // key: 8.1, - // label: "เครื่องราชฯ", - // path: "", - // role: "insignia", - // children: [ - // { - // label: "รอบการเสนอขอ", - // path: "insigniaProposals", - // role: "insignia", - // }, - // { - // label: "จัดการคำขอ", - // path: "insigniaManage", - // role: "insignia", - // }, - // { - // label: "บันทึกผลการได้รับพระราช...", - // path: "insigniaRecord", - // role: "insignia", - // }, - // { - // label: "บันทึกผลการจ่ายใบกำกับ", - // path: "VatInsignia", - // role: "insignia", - // }, - - // { - // label: "จัดสรรเครื่องราชฯ", - // path: "insigniaAllocate", - // role: "insignia", - // }, - // { - // label: "รายงาน", - // path: "insigniaReport", - // role: "insignia", - // }, - // ], - // }, - // { - // key: 8.2, - // label: "เหรียญจักรพรรดิมาลา", - // path: "", - // role: "coin", - // children: [ - // { - // label: "รอบการเสนอขอ", - // path: "coinProposals", - // role: "coin", - // }, - // { - // label: "จัดการคำขอ", - // path: "coinManage", - // role: "coin", - // }, - // { - // label: "บันทึกผลการได้รับพระราชทานเหรียญจักรพรรดิมาลา", - // path: "coinReceive", - // role: "coin", - // }, - // { - // label: "บันทึกผลการจ่ายใบกำกับ", - // path: "coinPayment", - // role: "coin", - // }, - // { - // label: - // "รายชื่อที่ยื่นคำร้องขอแก้ไขข้อมูลการขอพระราชทานเหรียญจักรพรรดิมาลา", - // path: "coinRequest", - // role: "coin", - // }, - // // { - // // label: "ประวัติการยื่นขอ", - // // path: "coinHistory", - // // role: "coin", - // // }, - // { - // label: "จัดสรรเหรียญตรา", - // path: "coinAllocate", - // role: "coin", - // }, - // { - // label: "รายงาน", - // path: "coinReport", - // role: "coin", - // }, - // ], - // }, - // ], - // }, + { + key: 9, + icon: "mdi-calendar", + activeIcon: "mdi-calendar", + label: "การลา", + path: "leave", + role: "coin", + children: [ + { + key: 9.1, + label: "รายการลงเวลาปฏิบัติงาน", + path: "/work-list", + role: "coin", + }, + { + key: 9.2, + label: "รายการลา", + path: "/leave-list", + role: "coin", + }, + { + key: 9.3, + label: "รายงานสถิติ", + path: "/statistics-report", + role: "coin", + }, + ], + }, ]); const tabList = readonly([ diff --git a/src/modules/03_recruiting/components/Career.vue b/src/modules/03_recruiting/components/Career.vue index 5b0cc515f..206b83811 100644 --- a/src/modules/03_recruiting/components/Career.vue +++ b/src/modules/03_recruiting/components/Career.vue @@ -79,6 +79,22 @@ />
+ +
+
(""); + +const type = ref(); +const opType = ref([ + "ลูกจ้างประจำ", + "ลูกจ้างชั่วคราว", + "ผู้ปฏิบัติงานอื่นในกรุงเทพมหานคร", +]); + const position = ref(); const group = ref(); const pile = ref(); @@ -302,9 +326,10 @@ const visibleColumns = ref([]); examData.career.columns.length == 0 ? (visibleColumns.value = [ "position", - "group", - "pile", - "org", + // "group", + // "pile", + // "org", + "type", "startDate", "endDate", "rangeDate", @@ -324,38 +349,49 @@ const columns = ref([ a.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }), }, { - name: "group", + name: "type", align: "left", - label: "กลุ่ม/ฝ่าย", + label: "ประเภท", sortable: true, - field: "group", - headerStyle: "font-size: 14px", - style: "font-size: 14px", - sort: (a: string, b: string) => - a.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }), - }, - { - name: "pile", - align: "left", - label: "กอง", - sortable: true, - field: "pile", - headerStyle: "font-size: 14px", - style: "font-size: 14px", - sort: (a: string, b: string) => - a.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }), - }, - { - name: "org", - align: "left", - label: "สังกัด", - sortable: true, - field: "org", + field: "type", headerStyle: "font-size: 14px", style: "font-size: 14px", sort: (a: string, b: string) => a.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }), }, + // { + // name: "group", + // align: "left", + // label: "กลุ่ม/ฝ่าย", + // sortable: true, + // field: "group", + // headerStyle: "font-size: 14px", + // style: "font-size: 14px", + // sort: (a: string, b: string) => + // a.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }), + // }, + // { + // name: "pile", + // align: "left", + // label: "กอง", + // sortable: true, + // field: "pile", + // headerStyle: "font-size: 14px", + // style: "font-size: 14px", + // sort: (a: string, b: string) => + // a.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }), + // }, + // { + // name: "org", + // align: "left", + // label: "สังกัด", + // sortable: true, + // field: "org", + // headerStyle: "font-size: 14px", + // style: "font-size: 14px", + // sort: (a: string, b: string) => + // a.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }), + // }, { name: "startDate", align: "left", @@ -410,6 +446,7 @@ onMounted(async () => { const calDate = async () => { let _startDate = new Date(startDate.value.toISOString().substr(0, 10)); let _endDate = new Date(endDate.value.toISOString().substr(0, 10)); + _endDate.setDate(_endDate.getDate() + 1); if (_startDate > _endDate) { const swap = _startDate; _startDate = _endDate; @@ -479,6 +516,7 @@ const clickPrevious = async () => { startDate.value = row.startDate; endDate.value = row.endDate; rangeDate.value = row.rangeDate; + type.value = row.type; id.value = row.id; await checkRowPage(); }; @@ -496,6 +534,7 @@ const clickNext = () => { startDate.value = row.startDate; endDate.value = row.endDate; rangeDate.value = row.rangeDate; + type.value = row.type; id.value = row.id; checkRowPage(); }; @@ -591,6 +630,7 @@ const saveData = async () => { durationStart: dateToISO(new Date(startDate.value)), durationEnd: dateToISO(new Date(endDate.value)), rangeDate: rangeDate.value, + type: type.value, }) .then(() => { success($q, "บันทึกข้อมูลสำเร็จ"); @@ -618,6 +658,7 @@ const editData = async () => { durationStart: dateToISO(new Date(startDate.value)), durationEnd: dateToISO(new Date(endDate.value)), rangeDate: rangeDate.value, + type: type.value, }) .then(() => { success($q, "บันทึกข้อมูลสำเร็จ"); @@ -672,6 +713,7 @@ const selectData = (props: any) => { startDate.value = props.row.startDate; endDate.value = props.row.endDate; rangeDate.value = props.row.rangeDate; + type.value = props.row.type; id.value = props.row.id; next.value = false; previous.value = false; @@ -690,6 +732,7 @@ const addRow = () => { startDate.value = new Date(); endDate.value = new Date(); rangeDate.value = null; + type.value = null; }; /** diff --git a/src/modules/03_recruiting/components/Document.vue b/src/modules/03_recruiting/components/Document.vue index 636118fe7..16cb85c3e 100644 --- a/src/modules/03_recruiting/components/Document.vue +++ b/src/modules/03_recruiting/components/Document.vue @@ -2,11 +2,7 @@