diff --git a/src/modules/06_retirement/components/ExitInterview/exitMain.vue b/src/modules/06_retirement/components/ExitInterview/exitMain.vue index bb2a74ce4..a5f1c42aa 100644 --- a/src/modules/06_retirement/components/ExitInterview/exitMain.vue +++ b/src/modules/06_retirement/components/ExitInterview/exitMain.vue @@ -278,7 +278,7 @@ const openModalCalendar = (rows: any) => {
- แก้ไขคำถาม + แก้ไขคำถาม
- - + รายละเอียดการลงเวลาของ {{ titlename }} @@ -57,22 +56,19 @@ function colsePopup() { @click="colsePopup" /> - - +
-
- ชื่อ-นามสกุล {{ titlename }} @@ -83,7 +79,7 @@ function colsePopup() {
- + วันที่เข้างาน 05 ต.ค. 56 @@ -93,12 +89,12 @@ function colsePopup() {
- สถานะ + สถานะ {{ status }}
-
+
แก้ไข @@ -119,8 +114,7 @@ function colsePopup() { round color="red" icon="mdi-undo" - size="sm" - class="q-mt-lg" + size="12px" @click="statusEdit = false" > ยกเลิก @@ -131,30 +125,29 @@ function colsePopup() { round color="secondary" icon="save" - size="sm" - class="q-mt-lg" + size="12px" + class="q-ml-sm" > บันทึกข้อมูล
- -
+ +
-
-
เวลาเข้างาน
+
เวลาเข้างาน
{{ timeIn }}
-
พิกัด
+
พิกัด
{{ coordinatesIn }}
-
รูปภาพ
+
รูปภาพ
-
หมายเหตุ
+
หมายเหตุ
-
-
-
-
เวลาออกงาน
+
เวลาออกงาน
{{ timeOut }}
-
พิกัด
+
พิกัด
{{ coordinatesOut }}
-
รูปภาพ
+
รูปภาพ
-
หมายเหตุ
+
หมายเหตุ
-
-
diff --git a/src/modules/09_leave/views/LeaveListMain.vue b/src/modules/09_leave/views/LeaveListMain.vue index c184af5e1..17dda82c2 100644 --- a/src/modules/09_leave/views/LeaveListMain.vue +++ b/src/modules/09_leave/views/LeaveListMain.vue @@ -51,28 +51,28 @@ function changTab() {
รายการลา
-
+ + @@ -113,8 +110,8 @@ function changTab() { -
+
diff --git a/src/modules/11_discipline/components/1_Complaint/AddComplaintPage.vue b/src/modules/11_discipline/components/1_Complaint/AddComplaintPage.vue index 4dd3cf3dd..7feb47c8d 100644 --- a/src/modules/11_discipline/components/1_Complaint/AddComplaintPage.vue +++ b/src/modules/11_discipline/components/1_Complaint/AddComplaintPage.vue @@ -1,23 +1,27 @@ - +
- diff --git a/src/modules/11_discipline/components/3_InvestigateDisciplinary/addInvestigate.vue b/src/modules/11_discipline/components/3_InvestigateDisciplinary/AddPage.vue similarity index 84% rename from src/modules/11_discipline/components/3_InvestigateDisciplinary/addInvestigate.vue rename to src/modules/11_discipline/components/3_InvestigateDisciplinary/AddPage.vue index 8a3fa7802..ff10f259d 100644 --- a/src/modules/11_discipline/components/3_InvestigateDisciplinary/addInvestigate.vue +++ b/src/modules/11_discipline/components/3_InvestigateDisciplinary/AddPage.vue @@ -7,15 +7,20 @@ import type { QTableProps } from "quasar"; import http from "@/plugins/http"; import config from "@/app.config"; import Dialogbody from "@/modules/11_discipline/components/3_InvestigateDisciplinary/Dialogbody.vue"; -import Table from "@/modules/11_discipline/components/3_InvestigateDisciplinary/director.vue"; +import Table from "@/modules/11_discipline/components/3_InvestigateDisciplinary/DirectorTable.vue"; +import { useInvestigateDisStore } from "@/modules/11_discipline/stroes/InvestigateDisStore"; +import type { directorType } from "@/modules/11_discipline/interface/index/Main"; + +const investigateDis = useInvestigateDisStore(); +const { fecthDirector } = investigateDis; const visibleColumns = ref([ "no", - "subject", - "beingInvestigated", - "fault", - "penaltyLevel", - "caseFault", + "name", + "position", + "duty", + "email", + "telephone", ]); const columns = ref([ { @@ -28,52 +33,58 @@ const columns = ref([ style: "font-size: 14px", }, { - name: "subject", + name: "name", align: "left", label: "ชื่อ - นามสกุล", sortable: true, - field: "subject", + field: "name", headerStyle: "font-size: 14px", style: "font-size: 14px", }, { - name: "beingInvestigated", + name: "position", align: "left", label: "ตำแหน่ง", sortable: true, - field: "beingInvestigated", + field: "position", headerStyle: "font-size: 14px", style: "font-size: 14px", }, { - name: "fault", + name: "duty", align: "left", label: "หน้าที่", sortable: true, - field: "fault", + field: "duty", headerStyle: "font-size: 14px", style: "font-size: 14px", }, { - name: "penaltyLevel", + name: "email", align: "left", label: "อีเมล", sortable: true, - field: "penaltyLevel", + field: "email", headerStyle: "font-size: 14px", style: "font-size: 14px", }, { - name: "caseFault", + name: "telephone", align: "left", label: "เบอร์โทรศัพท์", sortable: true, - field: "caseFault", + field: "telephone", headerStyle: "font-size: 14px", style: "font-size: 14px", }, ]); +onMounted(async () => { + await fecthInvestigateDisDirector(); + await hideLoader(); +}); +const selected = ref([]); + const clickAdd = () => { console.log("clickadd"); }; @@ -81,6 +92,7 @@ const clickAdd = () => { const popup = () => { modal.value = true; filterKeyword2.value = ""; + fecthInvestigateDisDirector(); }; const mixin = useCounterMixin(); @@ -98,9 +110,10 @@ const { const initialPagination = ref({ rowsPerPage: 0, }); + const router = useRouter(); const route = useRoute(); -const rows = ref([]); +const rows = ref([]); const modal = ref(false); const $q = useQuasar(); const id = ref(route.params.id as string); @@ -120,29 +133,15 @@ const evidence = ref(""); const recordAccuser = ref(""); const witnesses = ref(""); const InvestResults = ref(""); -const files = ref(); -const filesEvidence = ref(); -const filesRecordAccuser = ref(); -const filesWitnesses = ref(); -const filesEtc = ref(); +const files = ref(); +const filesEvidence = ref(); +const filesRecordAccuser = ref(); +const filesWitnesses = ref(); +const filesEtc = ref(); const fileDocDataUpload = ref([]); const refRaw = ref(""); const casefault = ref(""); const whereInvestigate = ref(""); -const optionsTypefault = ref([ - { label: "ไม่ระบุ", value: 1 }, - { label: "ร้ายแรง ", value: 2 }, - { label: "ไม่ร้ายแรง", value: 3 }, -]); -const optionsfaultLevel = ref([ - { label: "ไม่ร้ายแรง", value: 1 }, - { label: "ภาคทัณฑ์ ", value: 2 }, - { label: "ตัดเงินเดือน", value: 3 }, - { label: "ลดขั้นเงินเดือน", value: 4 }, - { label: "ร้ายแรง", value: 5 }, - { label: "ปลดออก", value: 6 }, - { label: "ไล่ออก", value: 7 }, -]); const routeName = router.currentRoute.value.name; @@ -150,54 +149,27 @@ const clickClose = () => { modal.value = false; }; -onMounted(async () => { - // if (route.params.id) { - // // มี params id ให้ เรียกข้อมูลของรอบการเสนอขอ - // await fetchData(); - // } -}); +onMounted(async () => {}); +function fecthInvestigateDisDirector() { + const data = [ + { + nameDirector: "นาง เกสินี เจียรสุมัย", + position: "ครู", + duty: "ประธาน", + email: "e@email.com", + telephone: "0800808080", + }, + { + nameDirector: "นาย สรวิชญ์ พลสิทธิ์", + position: "ทดลองงาน", + duty: "เลขานุการ", + email: "g@gmail.com", + telephone: "0614565145", + }, + ]; + fecthDirector(data); // ส่งข้อมูลไป stores +} // เรียกข้อมูลของรอบการเสนอขอ -const fetchData = async () => { - // edit.value = true; - // showLoader(); - // await http - // .get(config.API.getRoundInsignia(id.value)) - // .then((res) => { - // const data = res.data.result; - // id.value = data.period_id; - // roundInsig.value = - // options.value.filter((r: any) => r.value == data.period_round).length > - // 0 - // ? options.value.filter((r: any) => r.value == data.period_round)[0] - // : null; - // yearly.value = data.period_year; - // datelast.value = data.period_amount; - // dateInvestigate.value = new Date(data.period_start); - // dateAllegation.value = new Date(data.period_end); - // files.value = data.period_doc; - // }) - // .catch((e) => { - // messageError($q, e); - // }) - // .finally(() => { - // hideLoader(); - // }); -}; - -const deleteData = async (id: string) => { - // showLoader(); - // await http - // .delete(config.API.periodExamId(id)) - // .then((res) => { - // success($q, "ลบข้อมูลสำเร็จ"); - // }) - // .catch((e) => { - // messageError($q, e); - // }) - // .finally(async () => { - // hideLoader(); - // }); -}; const filter = ref(""); //search data table @@ -221,6 +193,10 @@ const checkSave = () => { // }); // } }; + +const deleteData = async (id: string) => { + console.log("delete"); +}; // บันทึกข้อมูล const SaveData = async () => { // if (edit.value) { @@ -260,37 +236,6 @@ const addData = async () => { // hideLoader(); // }); }; -// แก้ไขข้อมูล -const editData = async (id: string) => { - // const formData = new FormData(); - // const name = `รอบการเสนอขอพระราชทานเครื่องราชรอบที่ ${ - // roundInsig.value.value - // } ปี ${yearly.value + 543}`; - // formData.append("name", name); - // formData.append("year", yearly.value.toString()); - // formData.append("amount", datelast.value.toString()); - // formData.append("round", roundInsig.value.value); - // if (dateInvestigate.value !== null) { - // formData.append("startDate", dateToISO(dateInvestigate.value)); - // } - // if (dateAllegation.value !== null) { - // formData.append("endDate", dateToISO(dateAllegation.value)); - // } - // formData.append("file", files.value); - // showLoader(); - // await http - // .put(config.API.editRoundInsignia(id), formData) - // .then(() => { - // success($q, "แก้ไขข้อมูลสำเร็จ"); - // }) - // .catch((e) => { - // messageError($q, e); - // }) - // .finally(async () => { - // hideLoader(); - // clickBack(); - // }); -}; const clickBack = () => { router.push(`/discipline/disciplinary`); @@ -533,7 +478,9 @@ const clickBack = () => { class="col-xs-12 col-sm-3" outlined v-model="typefault" - :options="optionsTypefault" + option-label="name" + option-value="id" + :options="investigateDis.optionsTypefault" label="ลักษณะความผิด" /> { class="col-xs-12 col-sm-3" outlined v-model="faultLevel" - :options="optionsfaultLevel" + option-label="name" + option-value="id" + :options="investigateDis.optionsfaultLevel" label="ระดับโทษความผิด" /> { diff --git a/src/modules/11_discipline/components/3_InvestigateDisciplinary/Dialogbody.vue b/src/modules/11_discipline/components/3_InvestigateDisciplinary/Dialogbody.vue index 20b02789c..69dac2586 100644 --- a/src/modules/11_discipline/components/3_InvestigateDisciplinary/Dialogbody.vue +++ b/src/modules/11_discipline/components/3_InvestigateDisciplinary/Dialogbody.vue @@ -3,21 +3,21 @@ import { ref, computed, watchEffect } from "vue"; import { useQuasar } from "quasar"; import { useCounterMixin } from "@/stores/mixin"; import type { QTableProps } from "quasar"; -import type { ResponseData } from "@/modules/05_placement/interface/response/Transfer"; +import type { directorType } from "@/modules/11_discipline/interface/index/Main"; import DialogHeader from "@/modules/05_placement/components/PersonalList/DialogHeader.vue"; import http from "@/plugins/http"; import config from "@/app.config"; const $q = useQuasar(); -const selected = ref([]); +const selected = ref([]); const mixin = useCounterMixin(); const { showLoader, success, messageError, dialogConfirm, hideLoader } = mixin; //ค้นหา คอลัมน์ คอลัมน์ที่แสดง const visibleColumns2 = ref([ "no", - "fullname", + "nameDirector", "position", "duty", "email", @@ -36,11 +36,11 @@ const columns2 = ref([ a.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }), }, { - name: "fullname", + name: "nameDirector", align: "left", label: "ชื่อ-นามสกุล", sortable: true, - field: "fullname", + field: "nameDirector", headerStyle: "font-size: 14px", style: "font-size: 14px", sort: (a: string, b: string) => @@ -104,6 +104,7 @@ const checkSelected = computed(() => { if (selected.value.length === 0) { return true; } + console.log(checkSelected.value); }); //popup ยืนยันส่งัว @@ -206,7 +207,7 @@ watchEffect(() => { :filter="filterKeyword2" row-key="id" :visible-columns="visibleColumns2" - selection="multiple" + selection="single" v-model:selected="selected" >