diff --git a/src/api/06_retirement/api.retirement.ts b/src/api/06_retirement/api.retirement.ts index 1a4623078..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}`, - getprofileRetire: (retireId: string) => `${retirement}/${retireId}`, - createnote: () => `${retirement}/reason/`, + listRetire: (retireId: string) => `${retirement}/${retireId}`, + 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/interface/request/main/main.ts b/src/interface/request/main/main.ts index af5588930..0e702d4c9 100644 --- a/src/interface/request/main/main.ts +++ b/src/interface/request/main/main.ts @@ -207,7 +207,7 @@ const menuList = readonly([ { key: 6.4, label: "รายการคำขอโอน" /* */, - path: "tranfer", + path: "transfer", role: "placement", }, { @@ -216,6 +216,12 @@ const menuList = readonly([ path: "receive", role: "placement", }, + { + key: 6.5, + label: "คำสั่งช่วยราชการ/ส่งตัวกลับ" /* */, + path: "order-repatriation", + role: "placement", + }, ], }, 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) diff --git a/src/modules/06_retirement/components/DismissOrder/DismissOrder.vue b/src/modules/06_retirement/components/DismissOrder/DismissOrder.vue index fb4f94ec3..c133c9f0b 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(`/retirement/dismiss-order/add`); + router.push(`/dismiss-order/add`); }; 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 2fe61b0ba..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) { - fecthProfile(); + retireld.value = props.retireld; + fecthlistRetire(retireld.value); } }); -const fecthProfile = async () => { - await http - .get(config.API.getprofileRetire("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({ @@ -136,7 +149,7 @@ const clickAdd = () => { messageError($q, e); }) .finally(() => { - fecthProfile(); + fecthlistRetire(); }); }) .onCancel(() => {}) @@ -223,7 +236,10 @@ const paginationLabel = (start: number, end: number, total: number) => {