From 3e42ecbcb6521f5a2e26a648afc4e0d023bc7c2c Mon Sep 17 00:00:00 2001 From: "DESKTOP-1R2VSQH\\Lenovo ThinkPad E490" Date: Wed, 27 Sep 2023 16:58:49 +0700 Subject: [PATCH 1/9] =?UTF-8?q?=E0=B8=81=E0=B8=B2=E0=B8=A3=E0=B9=81?= =?UTF-8?q?=E0=B8=88=E0=B9=89=E0=B8=87=E0=B9=80=E0=B8=95=E0=B8=B7=E0=B9=88?= =?UTF-8?q?=E0=B8=AD=E0=B8=99=20=E0=B9=80=E0=B8=84=E0=B8=A3=E0=B8=B7?= =?UTF-8?q?=E0=B9=88=E0=B8=AD=E0=B8=87=E0=B8=A3=E0=B8=B2=E0=B8=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../07_insignia/components/2_Manage/Tab1.vue | 47 +++++++++++-------- src/modules/07_insignia/store.ts | 9 +++- 2 files changed, 35 insertions(+), 21 deletions(-) diff --git a/src/modules/07_insignia/components/2_Manage/Tab1.vue b/src/modules/07_insignia/components/2_Manage/Tab1.vue index eb88cffc5..267a74fb4 100644 --- a/src/modules/07_insignia/components/2_Manage/Tab1.vue +++ b/src/modules/07_insignia/components/2_Manage/Tab1.vue @@ -42,19 +42,7 @@ const dialogDesc = ref(""); // แจ้งเตือน const dialogWarn = ref(false); -const checkboxData = ref([ - { id: 1, name: "มีโทษทางวินัย", val: true }, - { - id: 2, - name: "ไม่ได้เลื่อนเงินเดือน/ไม่ได้เลื่อนขั้น เนื่องจากลาเกิน", - val: false, - }, - { - id: 3, - name: "ผลการประเมินการปฏิบัติราชการในรอบ 5 ปี ต่ำกว่าระดับดี (น้อยกว่าร้อยละ 70)", - val: false, - }, -]); +const checkboxData = ref([]); const organizationOptions = ref([{ id: "1", name: "ทั้งหมด" }]); const visibleColumns = ref([ @@ -641,7 +629,24 @@ const clickShowreson = (name: string, requestNote: string) => { const clickCloseReson = () => { dialogNote.value = false; }; -const clickShowWarn = () => { +const clickShowWarn = ( + markDiscipline: boolean, + markLeave: boolean, + markRate: boolean +) => { + checkboxData.value = [ + { id: 1, name: "มีโทษทางวินัย", val: markDiscipline }, + { + id: 2, + name: "ไม่ได้เลื่อนเงินเดือน/ไม่ได้เลื่อนขั้น เนื่องจากลาเกิน", + val: markLeave, + }, + { + id: 3, + name: "ผลการประเมินการปฏิบัติราชการในรอบ 5 ปี ต่ำกว่าระดับดี (น้อยกว่าร้อยละ 70)", + val: markRate, + }, + ]; dialogWarn.value = true; }; @@ -805,7 +810,6 @@ const clickShowWarn = () => { {{ col.label }} - + แจ้งเตือน + { - diff --git a/src/modules/07_insignia/store.ts b/src/modules/07_insignia/store.ts index da03624e6..19cb607f8 100644 --- a/src/modules/07_insignia/store.ts +++ b/src/modules/07_insignia/store.ts @@ -55,8 +55,12 @@ export const useInsigniaDataStore = defineStore("insignia", () => { dateSend: date2Thai(e.requestDate), requestNote: e.requestNote, employeeType: profileType(e.profileType), - reason: e.reason - + reason: e.reason, + markDiscipline: e.markDiscipline, + markLeave: e.markLeave, + markRate: e.markRate, + isApprove: e.isApprove, + statusMark: e.markDiscipline === true || e.markLeave === true || e.markRate === true ? true : false })); rows.value = await datalist; listinsignia.value = await datalist; @@ -146,6 +150,7 @@ export const useInsigniaDataStore = defineStore("insignia", () => { } } + return { roundId, optionRound, From e8e4b001f56f1f47bda5e6e09019e72d1584e52a Mon Sep 17 00:00:00 2001 From: Tanyalak Date: Thu, 28 Sep 2023 09:29:44 +0700 Subject: [PATCH 2/9] =?UTF-8?q?=E0=B8=AA=E0=B8=A3=E0=B8=A3=E0=B8=AB?= =?UTF-8?q?=E0=B8=B2=20=E0=B8=A3=E0=B8=AD=E0=B8=9A=E0=B8=84=E0=B8=B1?= =?UTF-8?q?=E0=B8=94=E0=B9=80=E0=B8=A5=E0=B8=B7=E0=B8=AD=E0=B8=81=20?= =?UTF-8?q?=E0=B8=81=E0=B8=A3=E0=B8=93=E0=B8=B5=E0=B8=84=E0=B9=88=E0=B8=B2?= =?UTF-8?q?=E0=B8=98=E0=B8=A3=E0=B8=A3=E0=B8=A1=E0=B9=80=E0=B8=99=E0=B8=B5?= =?UTF-8?q?=E0=B8=A2=E0=B8=A1=200=20=E0=B8=A7=E0=B8=B1=E0=B8=99=E0=B8=97?= =?UTF-8?q?=E0=B8=B5=E0=B9=88=E0=B8=8A=E0=B8=B3=E0=B8=A3=E0=B8=B0,=20?= =?UTF-8?q?=E0=B8=A7=E0=B8=B4=E0=B8=98=E0=B8=B5=E0=B8=81=E0=B8=B2=E0=B8=A3?= =?UTF-8?q?=E0=B8=8A=E0=B8=B3=E0=B8=A3=E0=B8=B0=20=E0=B9=84=E0=B8=A1?= =?UTF-8?q?=E0=B9=88=E0=B8=95=E0=B9=89=E0=B8=AD=E0=B8=87=E0=B9=81=E0=B8=AA?= =?UTF-8?q?=E0=B8=94=E0=B8=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../03_recruiting/views/02_qualify/PeriodAdd.vue | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/modules/03_recruiting/views/02_qualify/PeriodAdd.vue b/src/modules/03_recruiting/views/02_qualify/PeriodAdd.vue index 715925b76..855df240e 100644 --- a/src/modules/03_recruiting/views/02_qualify/PeriodAdd.vue +++ b/src/modules/03_recruiting/views/02_qualify/PeriodAdd.vue @@ -11,10 +11,10 @@ class="q-mr-sm" @click="clickBack" /> - {{ edit ? `แก้ไขรอบคัดเลือก` : "เพิ่มรอบคัดเลือก" }} + {{ edit ? `แก้ไขรอบ` : "เพิ่มรอบคัดเลือก" }} {{ edit && announcementExam - ? `ครั้งที่ ${roundRaw}/${yearlyRaw == null ? "" : yearlyRaw + 543}` + ? `${name} ครั้งที่ ${roundRaw}/${yearlyRaw == null ? "" : yearlyRaw + 543}` : "" }} @@ -92,14 +92,14 @@ :rules="[(val) => !!val || `${'กรุณาเลือกปีงบประมาณ'}`]" :label="`${'ปีงบประมาณ'}`" > - @@ -220,7 +220,7 @@ -
+
-
+
-
+
เลือกวิธีการชำระเงิน
From 2175c11ad4d39d6707c2f3a4ba9b0e3dc99ccbbd Mon Sep 17 00:00:00 2001 From: AnandaTon Date: Thu, 28 Sep 2023 14:16:57 +0700 Subject: [PATCH 3/9] =?UTF-8?q?=E0=B9=80=E0=B8=9E=E0=B8=B4=E0=B9=88?= =?UTF-8?q?=E0=B8=A1=20filter=20=E0=B8=84=E0=B9=89=E0=B8=99=E0=B8=AB?= =?UTF-8?q?=E0=B8=B2=E0=B9=81=E0=B8=A5=E0=B8=B0=E0=B8=84=E0=B8=AD=E0=B8=A5?= =?UTF-8?q?=E0=B8=B1=E0=B8=A1=E0=B8=99=E0=B9=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../08_registryEmployee/views/Main.vue | 361 ++++++++++++++---- 1 file changed, 291 insertions(+), 70 deletions(-) diff --git a/src/modules/08_registryEmployee/views/Main.vue b/src/modules/08_registryEmployee/views/Main.vue index 2f44fd188..f80d1d0e3 100644 --- a/src/modules/08_registryEmployee/views/Main.vue +++ b/src/modules/08_registryEmployee/views/Main.vue @@ -35,7 +35,7 @@ const { } = mixin; //ฟังก์ชันกลางที่ใช้ในหน้านี้ const router = useRouter(); -const filterRef = ref(); +const filterRef = ref(null); const filter = ref(""); const id = ref(""); @@ -241,8 +241,8 @@ const checkNull = (text: string) => text == null ? "" : text == "00000000-0000-0000-0000-000000000000" - ? "" - : text; + ? "" + : text; // คลิก icon ส่งไปออกคำสั่ง (เปิด dialog) const modaladdOrder = ref(false); // dialog ส่งไปออกคำสั่ง @@ -255,10 +255,22 @@ const clickCloseSendModal = () => { modaladdOrder.value = false; }; +const emit = defineEmits(["update:filterKeyword2", "update:selected"]); + +//รีเซ็ตค่าในช่องค้นหา +const Reset = () => { + emit("update:filterKeyword2", ""); +}; + +const updateInput = (value: any) => { + emit("update:filterKeyword2", value); +}; + const resetFilter = () => { // reset ค่าที่ค้นหาเมื่อกดปุ่ม X ในกล่องค้นหา filter.value = ""; filterRef.value!.focus(); + filterKeyword2.value = ""; }; // เพิ่มข้อมูลลูกจ้าง @@ -298,6 +310,7 @@ const deleteData = async (id: string) => { // **** เริ่มในส่วนของการเลือกตำแหน่ง ***// const rowsPosition = ref([]); // รายการข้อมูลในตารางกำหนดตำแหน่ง const filters = ref([]); +const filterKeyword2 = ref(""); const modal = ref(false); // เปิด-ปิด dialod กำหนดตำแหน่ง const selectedPosition = ref([]); // เก็บตำแหน่งที่เลือก @@ -425,10 +438,7 @@ const checkSave = () => { // เช็คข้อมูลก่อนบันทึกการกำหนดตำแหน่ง const saveData = async () => { if (selectedPosition.value.length == 0) { - dialogMessageNotify( - $q, - "ไม่สามารถบันทึกข้อมูลได้ กรุณาเลือกตำแหน่ง" - ); + dialogMessageNotify($q, "ไม่สามารถบันทึกข้อมูลได้ กรุณาเลือกตำแหน่ง"); return; } else { await savePosition(); @@ -550,7 +560,7 @@ const getPosition = async (id: string) => { }); }; -// ดึงข้อมูลตำแหน่ง (root tree) +// ดึงข้อมูลตำแหน่ง (root tree) const selected = ref([]); const nodeTree = async () => { showLoader(); @@ -577,14 +587,16 @@ const rows = ref([]); const showEmployeeTemp = async () => { showLoader(); - let cirteria = [{ - criteriaType: "employee_class", - criteriaValue: "temp", - }, - { - criteriaType: "is_retire", - criteriaValue: "false", - }]; + let cirteria = [ + { + criteriaType: "employee_class", + criteriaValue: "temp", + }, + { + criteriaType: "is_retire", + criteriaValue: "false", + }, + ]; if (selected.value == null) return; await http @@ -652,28 +664,64 @@ const showEmployeeTemp = async () => { เพิ่มข้อมูล - + ส่งรายชื่อไปออกคำสั่ง
- + - +
- + \ No newline at end of file + + From 2b99a1459e3aee9b39fa9c5bee466469c130f69d Mon Sep 17 00:00:00 2001 From: "DESKTOP-1R2VSQH\\Lenovo ThinkPad E490" Date: Thu, 28 Sep 2023 14:22:25 +0700 Subject: [PATCH 4/9] =?UTF-8?q?=E0=B8=9B=E0=B8=A3=E0=B8=B1=E0=B8=9A=20drop?= =?UTF-8?q?down=20=E0=B8=9A=E0=B8=A3=E0=B8=A3=E0=B8=88=E0=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/modules/05_placement/components/Main.vue | 70 +- .../components/Receive/receiveDetail2.vue | 10 +- .../components/Repatriate/RepatriatebyId.vue | 271 ++- .../components/probation/FormAssign.vue | 1508 ++++++++++++++--- .../probation/FormEvaluation/FormReport.vue | 394 ++++- .../components/probation/MainProbation.vue | 241 ++- .../interface/response/officer.ts | 7 +- src/modules/05_placement/store.ts | 3 +- 8 files changed, 2048 insertions(+), 456 deletions(-) diff --git a/src/modules/05_placement/components/Main.vue b/src/modules/05_placement/components/Main.vue index 6fbca2201..27332bb0d 100644 --- a/src/modules/05_placement/components/Main.vue +++ b/src/modules/05_placement/components/Main.vue @@ -150,8 +150,8 @@ const fetchPlacementData = async (val: number) => { }) .finally(() => { filterKeyword.value = ""; - examTime.value = "all"; - examType.value = "all"; + examTime.value = "ทั้งหมด"; + examType.value = "ทั้งหมด"; expiredAccount.value = false; hideLoader(); }); @@ -233,11 +233,10 @@ const searchFilterTable = async () => { rows.value = []; if (examType.value !== undefined && examType.value !== null) { await DataStore.DataUpdateMain( - examTime.value, - examType.value, + examTime.value == "ทั้งหมด" ? "all" : examTime.value, + examType.value == "ทั้งหมด" ? "all" : examType.value, expiredAccount.value ); - const dataArr: any = []; await DataStore.DataMainUpdate.map((e: any) => { dataArr.push({ @@ -278,6 +277,37 @@ const paginationLabel = (start: number, end: number, total: number) => { if (paging.value == true) return " " + start + "-" + end + " ใน " + total; else return start + "-" + end + " ใน " + total; }; +// filter ใน dropdown ครั้งที่ +const examTimeOP2 = ref([]); +function filterFnexamTime(val: string, update: any) { + if (val === "") { + update(() => { + examTimeOP2.value = examTimeOP; + examTime.value = ""; + }); + } else { + update(() => { + examTimeOP2.value = examTimeOP.filter( + (e: any) => e.name.search(val) !== -1 + ); + }); + } +} +const examTypeOP2 = ref([]); +function filterFnExamtype(val: string, update: any) { + if (val === "") { + update(() => { + examTypeOP2.value = examTypeOP.value; + examType.value = ""; + }); + } else { + update(() => { + examTypeOP2.value = examTypeOP.value.filter( + (e: any) => e.name.search(val) !== -1 + ); + }); + } +} @@ -832,22 +1072,86 @@ onMounted(async () => { ผู้ดูแลการทดลองปฏิบัติหน้าที่ราชการ (อาจมีได้มากกว่า 1 คน)
- - + + + + +
- - + +
@@ -862,29 +1166,71 @@ onMounted(async () => {
3.1 ชื่องาน / ภารกิจงานที่มอบหมาย (ควรมีมากกว่า 1 ภารกิจงาน) - +
- +
- +
- +
-
- +
+
@@ -901,22 +1247,59 @@ onMounted(async () => {
ความรู้ความสามารถในการปฏิบัติงาน - +
-
+
- +
-
- +
+
@@ -924,13 +1307,28 @@ onMounted(async () => {
ความรู้เรื่องกฎหมายและกฎระเบียบ (ไม่เกิน 20 หัวข้อ)
- +
-
+
- +
{{ item.description }} @@ -938,7 +1336,10 @@ onMounted(async () => {
-
+
{{ item.description }} @@ -946,16 +1347,27 @@ onMounted(async () => {
-
+
{{ item.description }}
-
+
- +
@@ -964,16 +1376,27 @@ onMounted(async () => {
-
+
{{ item.description }}
-
+
- +
{{ item.description }} @@ -981,16 +1404,27 @@ onMounted(async () => {
-
+
{{ item.description }}
-
+
- +
{{ item.description }} @@ -998,16 +1432,27 @@ onMounted(async () => {
-
+
{{ item.description }}
-
+
- +
{{ item.description }} @@ -1023,8 +1468,15 @@ onMounted(async () => {
- +
@@ -1032,60 +1484,121 @@ onMounted(async () => {
ทักษะ
- + +
- + +
- + +
- + +
@@ -1104,69 +1617,145 @@ onMounted(async () => {
สมรรถนะหลัก
- + +
- + +
- + +
- + +
- + +
@@ -1174,46 +1763,88 @@ onMounted(async () => {
สมรรถนะประจํากลุ่มงาน
- + +
- + +
- + +
@@ -1224,9 +1855,12 @@ onMounted(async () => {
- 3.4 พฤติกรรมที่จําเป็นสําหรับการปฏิบัติงาน + 3.4 พฤติกรรมที่จําเป็นสําหรับการปฏิบัติงาน ( ได้แก่ ความประพฤติ ความมีคุณธรรมจริยธรรม การรักษาวินัย - ) + )
@@ -1300,7 +1934,13 @@ onMounted(async () => {
- +
@@ -1308,28 +1948,70 @@ onMounted(async () => {
3.6 ผลผลิตของงานที่คาดหวังและตัวชี้วัดความสําเร็จของงาน - +
- +
- +
- +
-
- +
+
@@ -1398,8 +2080,14 @@ onMounted(async () => {
  • ความสำเร็จของงานที่ได้รับมอบหมาย
  • อื่นๆ (ถ้ามี) - +
  • @@ -1482,16 +2170,36 @@ onMounted(async () => {
    - +
    - +
    - + @@ -1499,12 +2207,23 @@ onMounted(async () => { {{ parseInt(value + 543) }}
    - - + + + + +
    - + @@ -1563,13 +2394,30 @@ onMounted(async () => { {{ parseInt(value + 543) }}