diff --git a/src/interface/request/main/main.ts b/src/interface/request/main/main.ts index 22e97ac67..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: "รายการย้าย", 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 @@