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 45e14fa33..7b618f006 100644 --- a/src/interface/request/main/main.ts +++ b/src/interface/request/main/main.ts @@ -216,6 +216,12 @@ const menuList = readonly([ path: "receive", role: "placement", }, + { + key: 6.6, + label: "คำสั่งช่วยราชการ/ส่งตัวกลับ" /* */, + path: "repatriation-order", + role: "placement", + }, ], }, diff --git a/src/modules/04_registry/components/Profile.vue b/src/modules/04_registry/components/Profile.vue index 5fa28e74f..c56a812f0 100644 --- a/src/modules/04_registry/components/Profile.vue +++ b/src/modules/04_registry/components/Profile.vue @@ -154,10 +154,10 @@ - - {{ + + @@ -896,7 +896,7 @@ const closeKp7Short = () => { }; const clickaddOrder = () => { - router.push({ name: "addOrder" }); + router.push("/dismiss-order/add"); }; const downloadKP7 = () => {}; diff --git a/src/modules/04_registry/components/TableProfile.vue b/src/modules/04_registry/components/TableProfile.vue index 0b7cb8a80..0e722ed28 100644 --- a/src/modules/04_registry/components/TableProfile.vue +++ b/src/modules/04_registry/components/TableProfile.vue @@ -304,6 +304,77 @@ class="col-3" /> +
+ + + + + + + +
{ @@ -508,6 +585,15 @@ const updateEmployeeLevel = (value: string | number | null) => { const updatePosNo = (value: string | number | null) => { emit("update:posNo", value); }; +const updateReportYear = (value: string | number | null) => { + emit("update:reportYear", value); +}; +const updateReportNo = (value: string | number | null) => { + emit("update:reportNo", value); +}; +const updateReportType = (value: string | number | null) => { + emit("update:reportType", value); +}; // const updateProfileType = (value: string | number | null) => { // emit("update:profileType", value); // }; @@ -515,6 +601,9 @@ const updatePosNo = (value: string | number | null) => { const clearDate = () => { emit("update:retireYear", null); }; +const clearReportDate = () => { + emit("update:reportYear", null); +}; const clickSearchPanel = () => { emit("update:retireYear", null); diff --git a/src/modules/04_registry/router.ts b/src/modules/04_registry/router.ts index 18571351a..51f652691 100644 --- a/src/modules/04_registry/router.ts +++ b/src/modules/04_registry/router.ts @@ -4,10 +4,10 @@ const Main = () => import("@/modules/04_registry/views/Main.vue"); const Detail = () => import("@/modules/04_registry/components/Profile.vue"); -const addOrder = () => - import( - "@/modules/05_placement/components/OrderPlacement/addOrderPlacement.vue" - ); +// const addOrder = () => +// import( +// "@/modules/05_placement/components/OrderPlacement/addOrderPlacement.vue" +// ); export default [ { @@ -30,14 +30,14 @@ export default [ Role: "registry", }, }, - { - path: "/dismiss-order/add", - name: "addOrder", - component: addOrder, - meta: { - Auth: true, - Key: [7], - Role: "registry", - }, - }, + // { + // path: "/dismiss-order/add", + // name: "addOrder", + // component: addOrder, + // meta: { + // Auth: true, + // Key: [7], + // Role: "registry", + // }, + // }, ]; diff --git a/src/modules/05_placement/components/RepatriationOrder/AddOrder.vue b/src/modules/05_placement/components/RepatriationOrder/AddOrder.vue new file mode 100644 index 000000000..f537b6227 --- /dev/null +++ b/src/modules/05_placement/components/RepatriationOrder/AddOrder.vue @@ -0,0 +1,91 @@ + + + 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/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/05_placement/router.ts b/src/modules/05_placement/router.ts index b4b8b93eb..f8f597612 100644 --- a/src/modules/05_placement/router.ts +++ b/src/modules/05_placement/router.ts @@ -37,6 +37,14 @@ const probationWorkAdd = () => import("@/modules/05_placement/components/probation/FormAssign.vue"); const transfer = () => import("@/modules/05_placement/components/Transfer/transferMain.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", @@ -166,6 +174,26 @@ const probationWorkAdd = () => Auth: true, Key: [6.4], Role: "placement", + } + }, + { + path: "/repatriation-order", + name: "repatriation-order", + component: RepatriationOrder, + meta: { + Auth: true, + Key: [6.6], + + }, + }, + { + path: "/repatriation-order/add", + name: "repatriation-order-add", + component: RepatriationOrderAdd, + meta: { + Auth: true, + Key: [6.6], + Role: "placement", }, }, ]; diff --git a/src/modules/06_retirement/components/DismissOrder/DismissOrder.vue b/src/modules/06_retirement/components/DismissOrder/DismissOrder.vue index 6838580bc..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(`/dismiss-order/addorder`); + 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) => {