From e31b55595b6d0768011989a4bee3bbec93ea9983 Mon Sep 17 00:00:00 2001 From: waruneeta Date: Mon, 24 Jul 2023 14:54:58 +0700 Subject: [PATCH 01/31] update probation detail --- .../components/probation/FormEvaluation.vue | 621 ++++++------------ .../components/probation/MainDetail.vue | 4 +- 2 files changed, 220 insertions(+), 405 deletions(-) diff --git a/src/modules/05_placement/components/probation/FormEvaluation.vue b/src/modules/05_placement/components/probation/FormEvaluation.vue index 0939b34ba..1ac78ef04 100644 --- a/src/modules/05_placement/components/probation/FormEvaluation.vue +++ b/src/modules/05_placement/components/probation/FormEvaluation.vue @@ -21,24 +21,24 @@
วันเริ่มทดลองปฎิบัติหน้าที่ราชการ ตั้งแต่วันที่ - {{date2Thai(dateToday)}} - ถึงวันที - {{date2Thai(dateEnd)}} + {{ date2Thai(dateToday) }} + ถึงวันที + {{ date2Thai(dateEnd) }}
การทดลองปฏิบัติหน้าที่ราชการมีผล ดังนี้ {{ "ครั้งที่" + period }} ระหว่างวันที่ - {{ date2Thai(dateToday)}} + {{ date2Thai(dateToday) }} ถึงวันที่ - {{date2Thai(dateEnd)}} + {{ date2Thai(dateEnd) }}
- +
1 @@ -52,40 +52,33 @@ 1.ผลผลิตของงานที่คาดหวัง
- + {{ list.label }} - - + + - +
@@ -98,40 +91,36 @@ 1.ผลผลิตของงานที่เกิดขึ้น - + - {{ list.label }} + + - - + + - + @@ -146,29 +135,23 @@ ความรู้ความสามารถ - - + + @@ -187,29 +170,23 @@ ทักษะ - - + + @@ -228,29 +205,23 @@ สมรรถนะ - - + + @@ -269,29 +240,23 @@ ความสามารถในการเรียนรู้งาน - - + + @@ -310,29 +275,23 @@ ความสามารถในการปรับใช้ความรู้กับงานในหน้าที่ - - + + @@ -343,50 +302,37 @@
- 1.7 อื่นๆ + 1.7 อื่นๆ
- + - + - - + + @@ -399,36 +345,18 @@ จุดเด่น (ไม่เกิน 5 บรรทัด)
- +
สิ่งที่ควรปรับปรุง (ไม่เกิน 5 บรรทัด)
- +
@@ -446,40 +374,33 @@ 2.1 ความประพฤติ
- + {{ list.label }} - - + + - + @@ -489,40 +410,33 @@ 2.2 ความมีคุณธรรมจริยธรรม - + {{ list.label }} - - + + - + @@ -532,90 +446,70 @@ 2.3 การรักษาวินัย - + {{ list.label }} - - + + - +
- 2.4 อื่นๆ + 2.4 อื่นๆ
- + - + - - + + @@ -628,36 +522,18 @@ จุดเด่น (ไม่เกิน 5 บรรทัด)
- +
สิ่งที่ควรปรับปรุง (ไม่เกิน 5 บรรทัด)
- +
@@ -676,94 +552,54 @@ 1. การปฐมนิเทศ - +
- - + +
- + 2. การเรียนรู้ด้วยตนเอง - +
- - + +
- + 3. การอบรมสัมนาร่วมกัน - +
- - + +
- + 4. การอบรมอื่น ๆ ตามที่หน่วยงานกำหนด (ถ้ามี) - +
- - + +
@@ -780,49 +616,25 @@ ผู้บังคับบัญชาผู้มอบหมายงาน
-
- +
@@ -832,7 +644,7 @@
- +
@@ -845,40 +657,40 @@ import { useQuasar } from "quasar"; import router from "@/router"; const $q = useQuasar(); -const ratingColors = [ 'light-blue-3', 'light-blue-6', 'blue', 'blue-9', 'blue-10' ]; +const ratingColors = ['light-blue-3', 'light-blue-6', 'blue', 'blue-9', 'blue-10']; const list1_1 = [ - {id: '1', label: 'ผลผลิตของงานที่คาดหวัง 1'}, - {id: '2', label: 'ผลผลิตของงานที่คาดหวัง 2'}, - {id: '3', label: 'ผลผลิตของงานที่คาดหวัง 3'}, - {id: '4', label: 'ผลผลิตของงานที่คาดหวัง 4'}, - {id: '5', label: 'ผลผลิตของงานที่คาดหวัง 5'} + { id: '1', label: 'ผลผลิตของงานที่คาดหวัง 1' }, + { id: '2', label: 'ผลผลิตของงานที่คาดหวัง 2' }, + { id: '3', label: 'ผลผลิตของงานที่คาดหวัง 3' }, + { id: '4', label: 'ผลผลิตของงานที่คาดหวัง 4' }, + { id: '5', label: 'ผลผลิตของงานที่คาดหวัง 5' } ]; const list1_2 = [ - {id: '1', label: 'ผลผลิตของงานที่เกิดขึ้น 1'}, - {id: '2', label: 'ผลผลิตของงานที่เกิดขึ้น 2'}, - {id: '3', label: 'ผลผลิตของงานที่เกิดขึ้น 3'}, - {id: '4', label: 'ผลผลิตของงานที่เกิดขึ้น 4'}, - {id: '5', label: 'ผลผลิตของงานที่เกิดขึ้น 5'} + { id: '1', label: 'ผลผลิตของงานที่เกิดขึ้น 1' }, + { id: '2', label: 'ผลผลิตของงานที่เกิดขึ้น 2' }, + { id: '3', label: 'ผลผลิตของงานที่เกิดขึ้น 3' }, + { id: '4', label: 'ผลผลิตของงานที่เกิดขึ้น 4' }, + { id: '5', label: 'ผลผลิตของงานที่เกิดขึ้น 5' } ]; const list2_1 = [ - {id: '1', label: 'ให้บริการประชาชนหรือผู้รับบริการด้วยอัธยาศัยดี'}, - {id: '2', label: 'มีความรับผิดชอบในการปฏิบัติบัติงาน'}, - {id: '3', label: 'ให้บริการประชาชนหรือผู้รับบริการด้วยความรวดเร็ว เอาใจใส่เป็นมาตรฐานเดียวกัน'}, - {id: '4', label: 'ตั้งใจปฏิบัติบัติหน้าที่ราชการด้วยความอุตสาหะ ขยันหมั่นเพียร'}, + { id: '1', label: 'ให้บริการประชาชนหรือผู้รับบริการด้วยอัธยาศัยดี' }, + { id: '2', label: 'มีความรับผิดชอบในการปฏิบัติบัติงาน' }, + { id: '3', label: 'ให้บริการประชาชนหรือผู้รับบริการด้วยความรวดเร็ว เอาใจใส่เป็นมาตรฐานเดียวกัน' }, + { id: '4', label: 'ตั้งใจปฏิบัติบัติหน้าที่ราชการด้วยความอุตสาหะ ขยันหมั่นเพียร' }, ]; const list2_2 = [ - {id: '1', label: 'อุทิศตนและเสียสละเวลาในการปฏิบัติบัติงานอย่างเต็มกำลังความสามารถ'}, - {id: '2', label: 'มีจิตสำนึกที่ดี ปฏิบัติบัติงานด้วยความซื่อสัตย์ สุจริต'}, - {id: '3', label: 'ยึดมั่นในสถาบันบัพระมหากษัตริย์ และไม่กระทำการใด ๆ อันจะก่อให้เกิดความเสียหายต่อประเทศชาติ'}, + { id: '1', label: 'อุทิศตนและเสียสละเวลาในการปฏิบัติบัติงานอย่างเต็มกำลังความสามารถ' }, + { id: '2', label: 'มีจิตสำนึกที่ดี ปฏิบัติบัติงานด้วยความซื่อสัตย์ สุจริต' }, + { id: '3', label: 'ยึดมั่นในสถาบันบัพระมหากษัตริย์ และไม่กระทำการใด ๆ อันจะก่อให้เกิดความเสียหายต่อประเทศชาติ' }, ]; const list2_3 = [ - {id: '1', label: 'มีความรับรัผิดชอบในการรักษาเวลาทำงาน'}, - {id: '2', label: 'แต่งกายในการปฏิบัติบัติงานได้อย่างเหมาะสมกับการเป็นข้าราชการ'}, - {id: '3', label: 'ไม่กระทำการใด ๆ อันอาจก่อให้เกิดความเสียหายแก่ชื่อเสียงของหน่วยงาน'}, - {id: '4', label: 'ไม่กระทำการใด ๆ อันเป็นการเสื่อมเกียรติและศักดิ์ศรีของความเป็นข้าราชการ'}, - {id: '5', label: 'ปฏิบัติบัติหน้าที่อย่างตรงไปตรงมาโดยยึกหลักจรรยาบรรณวิชาชีพ'} + { id: '1', label: 'มีความรับรัผิดชอบในการรักษาเวลาทำงาน' }, + { id: '2', label: 'แต่งกายในการปฏิบัติบัติงานได้อย่างเหมาะสมกับการเป็นข้าราชการ' }, + { id: '3', label: 'ไม่กระทำการใด ๆ อันอาจก่อให้เกิดความเสียหายแก่ชื่อเสียงของหน่วยงาน' }, + { id: '4', label: 'ไม่กระทำการใด ๆ อันเป็นการเสื่อมเกียรติและศักดิ์ศรีของความเป็นข้าราชการ' }, + { id: '5', label: 'ปฏิบัติบัติหน้าที่อย่างตรงไปตรงมาโดยยึกหลักจรรยาบรรณวิชาชีพ' } ]; const etc_text = ref(null); @@ -914,37 +726,40 @@ const text2_1 = ref(''); const text2_2 = ref(''); const onSubmit = () => { - $q.notify({ - color: "green-4", - textColor: "white", - icon: "cloud_done", - message: "ส่งแบบประเมินเเล้ว", - }); + $q.notify({ + color: "green-4", + textColor: "white", + icon: "cloud_done", + message: "ส่งแบบประเมินเเล้ว", + }); }; const onReset = () => { - router.push({ name: "probation" }); + router.push({ name: "probation" }); }; \ No newline at end of file diff --git a/src/modules/05_placement/components/probation/MainDetail.vue b/src/modules/05_placement/components/probation/MainDetail.vue index 3151f15ee..551575019 100644 --- a/src/modules/05_placement/components/probation/MainDetail.vue +++ b/src/modules/05_placement/components/probation/MainDetail.vue @@ -33,7 +33,7 @@
- บันทึกผลการทดลองปฏิบัติหน้าที่ราชการ + บันทึกผลการทดลองปฏิบัติหน้าที่ราชการ (2) @@ -44,7 +44,7 @@
- ประเมินผลการทดลองปฏิบัติหน้าที่ราชการ + ประเมินผลการทดลองปฏิบัติหน้าที่ราชการ (1) From b40bd12492b853474e0b615f5657897173971c46 Mon Sep 17 00:00:00 2001 From: setthawutttty Date: Tue, 25 Jul 2023 09:23:39 +0700 Subject: [PATCH 02/31] =?UTF-8?q?=E0=B8=AB=E0=B8=99=E0=B9=89=E0=B8=B2?= =?UTF-8?q?=E0=B9=80=E0=B9=80=E0=B8=A3=E0=B8=81=E0=B8=9B=E0=B8=A3=E0=B8=B0?= =?UTF-8?q?=E0=B8=81=E0=B8=B2=E0=B8=A8=E0=B9=80=E0=B8=81=E0=B8=A9=E0=B8=B5?= =?UTF-8?q?=E0=B8=A2=E0=B8=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/06_retirement/api.retirement.ts | 2 +- src/modules/06_retirement/views/Main.vue | 38 +++++++++++++++++++----- 2 files changed, 31 insertions(+), 9 deletions(-) diff --git a/src/api/06_retirement/api.retirement.ts b/src/api/06_retirement/api.retirement.ts index 22c78de12..8d49eee59 100644 --- a/src/api/06_retirement/api.retirement.ts +++ b/src/api/06_retirement/api.retirement.ts @@ -2,5 +2,5 @@ import env from "../index"; const retirement = `${env.API_RETIREMENT_URI}/retirement` export default { - retirement:(type:string) => `${retirement}/${type}/2023` + retirement:(type:string,year:number) => `${retirement}/${type}/${year}` }; diff --git a/src/modules/06_retirement/views/Main.vue b/src/modules/06_retirement/views/Main.vue index f2411c8da..f01362c32 100644 --- a/src/modules/06_retirement/views/Main.vue +++ b/src/modules/06_retirement/views/Main.vue @@ -13,8 +13,8 @@ indicator-color="primary" align="left" > - - + + @@ -27,7 +27,7 @@ dense emit-value map-options - :options="fiscalyearOP" + :options="yearOptions" option-value="id" option-label="name" lazy-rules @@ -175,7 +175,7 @@ diff --git a/src/modules/05_placement/components/RepatriationOrder/List.vue b/src/modules/05_placement/components/RepatriationOrder/List.vue new file mode 100644 index 000000000..6aa4fe9e8 --- /dev/null +++ b/src/modules/05_placement/components/RepatriationOrder/List.vue @@ -0,0 +1,740 @@ + + + + + diff --git a/src/modules/05_placement/components/RepatriationOrder/step01.vue b/src/modules/05_placement/components/RepatriationOrder/step01.vue new file mode 100644 index 000000000..da4912ce6 --- /dev/null +++ b/src/modules/05_placement/components/RepatriationOrder/step01.vue @@ -0,0 +1,353 @@ + + + diff --git a/src/modules/05_placement/components/RepatriationOrder/step02.vue b/src/modules/05_placement/components/RepatriationOrder/step02.vue new file mode 100644 index 000000000..8d58d929e --- /dev/null +++ b/src/modules/05_placement/components/RepatriationOrder/step02.vue @@ -0,0 +1,684 @@ + + + diff --git a/src/modules/05_placement/components/RepatriationOrder/step03.vue b/src/modules/05_placement/components/RepatriationOrder/step03.vue new file mode 100644 index 000000000..d7521a80d --- /dev/null +++ b/src/modules/05_placement/components/RepatriationOrder/step03.vue @@ -0,0 +1,580 @@ + + + diff --git a/src/modules/05_placement/router.ts b/src/modules/05_placement/router.ts index 7ea16af98..4e3dde7e3 100644 --- a/src/modules/05_placement/router.ts +++ b/src/modules/05_placement/router.ts @@ -35,6 +35,14 @@ const probationWorkAdd = () => import("@/modules/05_placement/components/probation/MainDetail.vue"); const probationFormAssign = () => import("@/modules/05_placement/components/probation/FormAssign.vue"); + + + // คำสั่งช่วยราชการ/ส่งตัวกลับ + const RepatriationOrder = () => + import("@/modules/05_placement/components/RepatriationOrder/List.vue"); + const RepatriationOrderAdd = () => + import("@/modules/05_placement/components/RepatriationOrder/AddOrder.vue"); + export default [ { path: "/placement", @@ -156,4 +164,24 @@ const probationWorkAdd = () => Role: "placement", }, }, + { + path: "/repatriation-order", + name: "repatriation-order", + component: RepatriationOrder, + meta: { + Auth: true, + Key: [6.6], + Role: "placement", + }, + }, + { + path: "/repatriation-order/add", + name: "repatriation-order-add", + component: RepatriationOrderAdd, + meta: { + Auth: true, + Key: [6.6], + Role: "placement", + }, + }, ]; From 00f81dba347a994c17adb8195dc36357b24d649e Mon Sep 17 00:00:00 2001 From: "DESKTOP-1R2VSQH\\Lenovo ThinkPad E490" Date: Tue, 25 Jul 2023 14:11:16 +0700 Subject: [PATCH 10/31] no message --- src/api/06_retirement/api.retirement.ts | 6 +- .../components/DismissOrder/DismissOrder.vue | 2 +- .../components/ListRetirement/AddList.vue | 134 +++++---- .../components/ListRetirement/TableList.vue | 264 +++++++++++------- src/modules/06_retirement/router.ts | 10 +- src/modules/06_retirement/views/Main.vue | 64 ++--- 6 files changed, 274 insertions(+), 206 deletions(-) diff --git a/src/api/06_retirement/api.retirement.ts b/src/api/06_retirement/api.retirement.ts index c3ead5078..bca70474b 100644 --- a/src/api/06_retirement/api.retirement.ts +++ b/src/api/06_retirement/api.retirement.ts @@ -3,12 +3,12 @@ const retirement = `${env.API_URI}/retirement` export default { - profile: (type: string, year: number) => `${retirement}/profile/${type}/${year}`, + profile: (type: string, year: string) => `${retirement}/profile/${type}/${year}`, profileRetire: (retireId: string) => `${retirement}/profile/${retireId}`, listRetire: (retireId: string) => `${retirement}/${retireId}`, - createnote: () => `${retirement}/reason/`, + createnote: () => `${retirement}/reason`, reasonId: (retireId:string) => `${retirement}/reason/${retireId}`, - retirement:(type:string,year:number) => `${retirement}/${type}/${year}` + retirement:(type:string,year:string) => `${retirement}/${type}/${year}` diff --git a/src/modules/06_retirement/components/DismissOrder/DismissOrder.vue b/src/modules/06_retirement/components/DismissOrder/DismissOrder.vue index 6838580bc..bddbf76e5 100644 --- a/src/modules/06_retirement/components/DismissOrder/DismissOrder.vue +++ b/src/modules/06_retirement/components/DismissOrder/DismissOrder.vue @@ -485,7 +485,7 @@ const OriginalDataFetch = async () => { // ดูรายการหน้าต่อไป const redirectToPage = (id?: number) => { - router.push(`/dismiss-order/addorder`); + router.push(`/dismiss-order/add-order`); }; const clickDelete = (id: string) => { diff --git a/src/modules/06_retirement/components/ListRetirement/AddList.vue b/src/modules/06_retirement/components/ListRetirement/AddList.vue index cac2f8b35..01c06f54c 100644 --- a/src/modules/06_retirement/components/ListRetirement/AddList.vue +++ b/src/modules/06_retirement/components/ListRetirement/AddList.vue @@ -9,14 +9,19 @@ const $q = useQuasar(); //ใช้ noti quasar const mixin = useCounterMixin(); const { messageError, success } = mixin; +const props = defineProps({ + retireld: String, +}); + const modal = ref(false); +const retireld = ref(); const columns = ref([ { - name: "index", + name: "order", required: true, label: "ลำดับ", - field: "index", + field: "order", align: "left", }, { @@ -41,10 +46,10 @@ const columns = ref([ align: "left", }, { - name: "affiliation", + name: "organizationOrganization", required: true, label: "สังกัด", - field: "affiliation", + field: "organizationOrganization", align: "left", }, { @@ -56,64 +61,72 @@ const columns = ref([ }, ]); const rows = ref([ - { - fullname: "นายใจดี ยอดใจ", - position: "นักวิชาการพัสดุ", - level: "ปฎิบัติการ", - affiliation: "กลุ่มงานโครงสร้างและอัตรากำลัง ๒", - }, - { - fullname: "นายจักกริน บัณฑิต", - position: "นักวิชาการพัสดุ", - level: "ปฎิบัติการ", - affiliation: "กลุ่มงานโครงสร้างและอัตรากำลัง ๒", - }, - { - fullname: "นายจักกริน บัณฑิต", - position: "นักวิชาการพัสดุ", - level: "ปฎิบัติการ", - affiliation: "กลุ่มงานโครงสร้างและอัตรากำลัง ๒", - }, - { - fullname: "นายจักกริน บัณฑิต", - position: "นักวิชาการพัสดุ", - level: "ปฎิบัติการ", - affiliation: "กลุ่มงานโครงสร้างและอัตรากำลัง ๒", - }, - { - fullname: "นายจักกริน บัณฑิต", - position: "นักวิชาการพัสดุ", - level: "ปฎิบัติการ", - affiliation: "กลุ่มงานโครงสร้างและอัตรากำลัง ๒", - }, - { - fullname: "นายจักกริน บัณฑิต", - position: "นักวิชาการพัสดุ", - level: "ปฎิบัติการ", - affiliation: "กลุ่มงานโครงสร้างและอัตรากำลัง ๒", - }, - { - fullname: "นายจักกริน บัณฑิต", - position: "นักวิชาการพัสดุ", - level: "ปฎิบัติการ", - affiliation: "กลุ่มงานโครงสร้างและอัตรากำลัง ๒", - }, + // { + // fullname: "นายใจดี ยอดใจ", + // position: "นักวิชาการพัสดุ", + // level: "ปฎิบัติการ", + // affiliation: "กลุ่มงานโครงสร้างและอัตรากำลัง ๒", + // }, + // { + // fullname: "นายจักกริน บัณฑิต", + // position: "นักวิชาการพัสดุ", + // level: "ปฎิบัติการ", + // affiliation: "กลุ่มงานโครงสร้างและอัตรากำลัง ๒", + // }, + // { + // fullname: "นายจักกริน บัณฑิต", + // position: "นักวิชาการพัสดุ", + // level: "ปฎิบัติการ", + // affiliation: "กลุ่มงานโครงสร้างและอัตรากำลัง ๒", + // }, + // { + // fullname: "นายจักกริน บัณฑิต", + // position: "นักวิชาการพัสดุ", + // level: "ปฎิบัติการ", + // affiliation: "กลุ่มงานโครงสร้างและอัตรากำลัง ๒", + // }, + // { + // fullname: "นายจักกริน บัณฑิต", + // position: "นักวิชาการพัสดุ", + // level: "ปฎิบัติการ", + // affiliation: "กลุ่มงานโครงสร้างและอัตรากำลัง ๒", + // }, + // { + // fullname: "นายจักกริน บัณฑิต", + // position: "นักวิชาการพัสดุ", + // level: "ปฎิบัติการ", + // affiliation: "กลุ่มงานโครงสร้างและอัตรากำลัง ๒", + // }, + // { + // fullname: "นายจักกริน บัณฑิต", + // position: "นักวิชาการพัสดุ", + // level: "ปฎิบัติการ", + // affiliation: "กลุ่มงานโครงสร้างและอัตรากำลัง ๒", + // }, ]); const filter = ref(""); watch(modal, () => { if (modal.value === true) { - fecthlistRetire(); + retireld.value = props.retireld; + fecthlistRetire(retireld.value); } }); -const fecthlistRetire= async () => { - await http - .get(config.API.listRetire("1234")) - .then((res) => { - console.log(res); - }) - .catch((e) => { - messageError($q, e); - }); +const fecthlistRetire = async (retireld: any) => { + // await http + // .get(config.API.listRetire(retireld)) + // .then((res) => { + // console.log(res); + // rows.value = res.data.result.map((e: any) => ({ + // order: e.order, + // fullname: e.fullName, + // position: e.position, + // level: e.positionEmployeeLevel, + // organizationOrganization: e.organizationOrganization, + // })); + // }) + // .catch((e) => { + // messageError($q, e); + // }); }; const clickAdd = () => { $q.dialog({ @@ -223,7 +236,10 @@ const paginationLabel = (start: number, end: number, total: number) => { + \ No newline at end of file diff --git a/src/modules/05_placement/components/probation/FormEvaluation/FormEvaluate.vue b/src/modules/05_placement/components/probation/FormEvaluation/FormEvaluate.vue new file mode 100644 index 000000000..15c6ee09e --- /dev/null +++ b/src/modules/05_placement/components/probation/FormEvaluation/FormEvaluate.vue @@ -0,0 +1,369 @@ + + + + + diff --git a/src/modules/05_placement/components/probation/FormEvaluation/FormReport.vue b/src/modules/05_placement/components/probation/FormEvaluation/FormReport.vue new file mode 100644 index 000000000..15c6ee09e --- /dev/null +++ b/src/modules/05_placement/components/probation/FormEvaluation/FormReport.vue @@ -0,0 +1,369 @@ + + + + + diff --git a/src/modules/05_placement/components/probation/FormEvaluation/FormSaveResult.vue b/src/modules/05_placement/components/probation/FormEvaluation/FormSaveResult.vue new file mode 100644 index 000000000..c5aa2bc4f --- /dev/null +++ b/src/modules/05_placement/components/probation/FormEvaluation/FormSaveResult.vue @@ -0,0 +1,469 @@ + + + + + diff --git a/src/modules/05_placement/components/probation/FormEvaluation/Header.vue b/src/modules/05_placement/components/probation/FormEvaluation/Header.vue new file mode 100644 index 000000000..579b4e5c6 --- /dev/null +++ b/src/modules/05_placement/components/probation/FormEvaluation/Header.vue @@ -0,0 +1,115 @@ + + + \ No newline at end of file diff --git a/src/modules/05_placement/components/probation/FormEvaluation/SubForm/Part1.vue b/src/modules/05_placement/components/probation/FormEvaluation/SubForm/Part1.vue new file mode 100644 index 000000000..d33baba54 --- /dev/null +++ b/src/modules/05_placement/components/probation/FormEvaluation/SubForm/Part1.vue @@ -0,0 +1,432 @@ + + + + + diff --git a/src/modules/05_placement/components/probation/FormEvaluation/SubForm/Part1Template2.vue b/src/modules/05_placement/components/probation/FormEvaluation/SubForm/Part1Template2.vue new file mode 100644 index 000000000..2f4120f67 --- /dev/null +++ b/src/modules/05_placement/components/probation/FormEvaluation/SubForm/Part1Template2.vue @@ -0,0 +1,312 @@ + + + + diff --git a/src/modules/05_placement/components/probation/FormEvaluation/SubForm/Part2.vue b/src/modules/05_placement/components/probation/FormEvaluation/SubForm/Part2.vue new file mode 100644 index 000000000..0b4771475 --- /dev/null +++ b/src/modules/05_placement/components/probation/FormEvaluation/SubForm/Part2.vue @@ -0,0 +1,289 @@ + + + diff --git a/src/modules/05_placement/components/probation/FormEvaluation/SubForm/Part3.vue b/src/modules/05_placement/components/probation/FormEvaluation/SubForm/Part3.vue new file mode 100644 index 000000000..d4b0b14d5 --- /dev/null +++ b/src/modules/05_placement/components/probation/FormEvaluation/SubForm/Part3.vue @@ -0,0 +1,131 @@ + + + + + diff --git a/src/modules/05_placement/components/probation/FormEvaluation/SubForm/PartHighlightImprove.vue b/src/modules/05_placement/components/probation/FormEvaluation/SubForm/PartHighlightImprove.vue new file mode 100644 index 000000000..5dc58496c --- /dev/null +++ b/src/modules/05_placement/components/probation/FormEvaluation/SubForm/PartHighlightImprove.vue @@ -0,0 +1,45 @@ + + diff --git a/src/modules/05_placement/components/probation/FormEvaluation/Template1.vue b/src/modules/05_placement/components/probation/FormEvaluation/Template1.vue new file mode 100644 index 000000000..251df64ee --- /dev/null +++ b/src/modules/05_placement/components/probation/FormEvaluation/Template1.vue @@ -0,0 +1,31 @@ + + + \ No newline at end of file diff --git a/src/modules/05_placement/components/probation/FormEvaluation/Template2.vue b/src/modules/05_placement/components/probation/FormEvaluation/Template2.vue new file mode 100644 index 000000000..72f5cc6db --- /dev/null +++ b/src/modules/05_placement/components/probation/FormEvaluation/Template2.vue @@ -0,0 +1,29 @@ + + + \ No newline at end of file diff --git a/src/modules/05_placement/components/probation/FormEvaluation/Template3.vue b/src/modules/05_placement/components/probation/FormEvaluation/Template3.vue new file mode 100644 index 000000000..e0adc68a6 --- /dev/null +++ b/src/modules/05_placement/components/probation/FormEvaluation/Template3.vue @@ -0,0 +1,30 @@ + + + \ No newline at end of file diff --git a/src/modules/05_placement/components/probation/MainDetail.vue b/src/modules/05_placement/components/probation/MainDetail.vue index f1a22fc3e..1a58e429e 100644 --- a/src/modules/05_placement/components/probation/MainDetail.vue +++ b/src/modules/05_placement/components/probation/MainDetail.vue @@ -1,3 +1,34 @@ + + - diff --git a/src/modules/03_recruiting/views/02_qualify/DisableDetail.vue b/src/modules/03_recruiting/views/02_qualify/DisableDetail.vue index 1b31b8a2d..91b22c7ed 100644 --- a/src/modules/03_recruiting/views/02_qualify/DisableDetail.vue +++ b/src/modules/03_recruiting/views/02_qualify/DisableDetail.vue @@ -13,6 +13,17 @@ /> รายชื่อผู้สมัครสอบรอบ {{ name }} ครั้งที่ {{ round }}/{{ year }} + + บรรจุผู้ผ่านการคัดเลือกผู้พิการ + ดาวน์โหลดไฟล์ @@ -129,7 +140,7 @@ const pass = ref(0); const notpass = ref(0); const importId = ref(route.params.id as string); // Period Import Id const mixin = useCounterMixin(); -const { messageError } = mixin; +const { messageError, success } = mixin; const filter = ref(""); //search data table const visibleColumns = ref([ "examID", @@ -419,6 +430,35 @@ const fetchData = async () => { loaderPage(false); }); }; + +const candidateToPlacement = async () => { + $q.dialog({ + title: "ยืนยันการนำผู้ผ่านคัดเลือกคนพิการเข้าสู่ระบบบรรจุ", + message: "ต้องการนำผู้ผ่านคัดเลือกคนพิการเข้าสู่ระบบบรรจุใช่หรือไม่?", + cancel: { + flat: true, + color: "negative", + }, + persistent: true, + }) + .onOk(async () => { + loaderPage(true); + await http + .get(config.API.periodDisableToPlacement(importId.value)) + .then((res) => { + success($q, "นำผู้ผ่านคัดเลือกคนพิการเข้าสู่ระบบบรรจุ"); + }) + .catch((e) => { + messageError($q, e); + }) + .finally(async () => { + loaderPage(false); + router.go(-1); + }); + }) + .onCancel(() => {}) + .onDismiss(() => {}); +}; diff --git a/src/modules/03_recruiting/views/02_qualify/manageDetail.vue b/src/modules/03_recruiting/views/02_qualify/manageDetail.vue index 74b8776c2..4a91aa660 100644 --- a/src/modules/03_recruiting/views/02_qualify/manageDetail.vue +++ b/src/modules/03_recruiting/views/02_qualify/manageDetail.vue @@ -455,7 +455,7 @@ const columns = ref([ { name: "registerDate", align: "left", - label: "วันเและเวลาที่สมัคร", + label: "วันและเวลาที่สมัคร", sortable: true, field: "registerDate", headerStyle: "font-size: 14px; min-width: 200px", @@ -514,7 +514,7 @@ const fetchData = async () => { avatar: r.profileImg != null ? r.profileImg.detail : "", citizenId: r.citizenId, number: r.number, - registerDate: r.registerDate, + registerDate: date2Thai(r.registerDate), examIdenNumber: r.examIdenNumber, seatNumber: r.seatNumber, resultC: r.resultC, diff --git a/src/modules/05_placement/components/PersonalList/Detail.vue b/src/modules/05_placement/components/PersonalList/Detail.vue index d72880f1c..16c76ae88 100644 --- a/src/modules/05_placement/components/PersonalList/Detail.vue +++ b/src/modules/05_placement/components/PersonalList/Detail.vue @@ -6,15 +6,15 @@ import cardTop from "@/modules/05_placement/components/PersonalList/StatCard.vue import keycloak from "@/plugins/keycloak"; import http from "@/plugins/http"; import config from "@/app.config"; -import { useCounterMixin } from "@/stores/mixin" -import { useQuasar } from "quasar" +import { useCounterMixin } from "@/stores/mixin"; +import { useQuasar } from "quasar"; import { usePlacementDataStore } from "@/modules/05_placement/store"; const DataStore = usePlacementDataStore(); -const $q = useQuasar -const mixin = useCounterMixin() -const { messageError, showLoader, hideLoader } = mixin +const $q = useQuasar; +const mixin = useCounterMixin(); +const { messageError, showLoader, hideLoader } = mixin; let roleAdmin = ref(false); const router = useRouter(); const route = useRoute(); @@ -53,7 +53,7 @@ const getStat = async () => { }) .catch((e) => { messageError($q, e); - }) + }); }; onMounted(async () => { @@ -65,14 +65,15 @@ onMounted(async () => { roleAdmin.value = await keycloak.tokenParsed.role.includes("placement1"); } - await getStat() + await getStat(); - examData.value = await DataStore.DataMainOrig.find((x: any) => x.id == examId); - - title.value = examData.value.examRound; - round.value = examData.value.examOrder; - year.value = examData.value.fiscalYear; + examData.value = await DataStore.DataMainOrig.find( + (x: any) => x.id == examId + ); + title.value = examData.value == null ? null : examData.value.examRound; + round.value = examData.value == null ? null : examData.value.examOrder; + year.value = examData.value == null ? null : examData.value.fiscalYear; }); const fetchPlacementData = async () => { @@ -93,18 +94,48 @@ const fetchPlacementData = async () => { diff --git a/src/modules/05_placement/components/PersonalList/Table.vue b/src/modules/05_placement/components/PersonalList/Table.vue index cec7c0c36..aff05ffc6 100644 --- a/src/modules/05_placement/components/PersonalList/Table.vue +++ b/src/modules/05_placement/components/PersonalList/Table.vue @@ -232,7 +232,10 @@ const getTable = async () => { organizationShortName: data.organizationShortName, positionNumber: data.positionNumber, positionPath: data.positionPath, - reportingDate: dateText(new Date(data.reportingDate)), + reportingDate: + data.reportingDate == null + ? null + : dateText(new Date(data.reportingDate)), examNumber: data.examNumber, bmaOfficer: convertBmaOfficer(data.bmaOfficer), statusId: data.statusId, From 99f56a89f2ebb9e26b6f2640f980087bb3bbfd92 Mon Sep 17 00:00:00 2001 From: Kittapath Date: Wed, 26 Jul 2023 19:50:56 +0700 Subject: [PATCH 31/31] =?UTF-8?q?=E0=B9=81=E0=B8=82=E0=B9=88=E0=B8=87?= =?UTF-8?q?=E0=B8=82=E0=B8=B1=E0=B8=99=E0=B8=94=E0=B8=B9=E0=B8=8A=E0=B8=B7?= =?UTF-8?q?=E0=B9=88=E0=B8=AD=E0=B8=A3=E0=B8=AD=E0=B8=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../03_recruiting/views/01_compete/Detail.vue | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/modules/03_recruiting/views/01_compete/Detail.vue b/src/modules/03_recruiting/views/01_compete/Detail.vue index e9361bd30..ff4b32fcb 100644 --- a/src/modules/03_recruiting/views/01_compete/Detail.vue +++ b/src/modules/03_recruiting/views/01_compete/Detail.vue @@ -133,7 +133,7 @@ const router = useRouter(); const route = useRoute(); const { loaderPage } = dataStore; const mixin = useCounterMixin(); -const { messageError } = mixin; +const { messageError, success } = mixin; const year = ref(""); const round = ref(""); const name = ref(""); @@ -451,10 +451,12 @@ const fetchData = async () => { notpass.value = header.notpass; // period information - name.value = period.name; - round.value = period.order as string; - year.value = - period.year >= 2500 ? period.year : ((period.year + 543) as string); + if (period != null) { + name.value = period.name; + round.value = period.order; + year.value = + period.year >= 2500 ? period.year : ((period.year + 543) as string); + } const data = res.data.result.data; if (data.length > 0) {