From 328dd6e1a3075b014bc808458ab9723001c6da66 Mon Sep 17 00:00:00 2001 From: "DESKTOP-1R2VSQH\\Lenovo ThinkPad E490" Date: Wed, 30 Aug 2023 13:04:45 +0700 Subject: [PATCH] =?UTF-8?q?=E0=B8=9B=E0=B8=A3=E0=B8=B1=E0=B8=9A=20?= =?UTF-8?q?=E0=B8=97=E0=B8=94=E0=B8=A5=E0=B8=AD=E0=B8=87=E0=B8=87=E0=B8=B2?= =?UTF-8?q?=E0=B8=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/05_placement/api.probation.ts | 12 +- .../probation/FormEvaluation/FormReport.vue | 336 ++++++++++++++---- .../components/probation/MainProbation.vue | 176 +++++---- .../components/probation/ProbationDetail.vue | 143 ++++++-- .../components/probation/SummarySurvey.vue | 6 +- src/modules/05_placement/store.ts | 3 - 6 files changed, 492 insertions(+), 184 deletions(-) diff --git a/src/api/05_placement/api.probation.ts b/src/api/05_placement/api.probation.ts index ac67914a9..dd71c181c 100644 --- a/src/api/05_placement/api.probation.ts +++ b/src/api/05_placement/api.probation.ts @@ -27,9 +27,11 @@ export default { saveEditAssign: (personalId: string) => `${finish}/probation-assign?id=${personalId}`, personalAdd: () => `${personal}/add`, - probationGetAssignList: (personalId:string) => - `${finish}/probation-assign-list?personal_id=${personalId}`, - probationsGetAssign: (assignId:string) =>`${finish}/probation-assign?assign_id=${assignId}`, + probationGetAssignList: (personalId: string) => + `${finish}/probation-assign-list?personal_id=${personalId}`, + probationsGetAssign: (assignId: string) => `${finish}/probation-assign?assign_id=${assignId}`, + changestatusProbations: (personalId: string) => `${evaluate}/probation/change-status?personal_id=${personalId}`, + // probationGetAssignList: (personalId: string) => // `${finish}/probation-assign-list?personal_id=${personalId}`, // clearPosition: (personalId:string) => `${placement}/position/clear/${personalId}` @@ -60,8 +62,8 @@ export default { - summarySurveyDetail:(id:string) => `${evaluate}/survey?assign_id=${id}`, - summaryReportDetail:(id:string) => `${evaluate}/report?assign_id=${id}` + summarySurveyDetail: (id: string) => `${evaluate}/survey?assign_id=${id}`, + summaryReportDetail: (id: string) => `${evaluate}/report?assign_id=${id}` diff --git a/src/modules/05_placement/components/probation/FormEvaluation/FormReport.vue b/src/modules/05_placement/components/probation/FormEvaluation/FormReport.vue index 518c7ef97..b0dd406eb 100644 --- a/src/modules/05_placement/components/probation/FormEvaluation/FormReport.vue +++ b/src/modules/05_placement/components/probation/FormEvaluation/FormReport.vue @@ -70,11 +70,13 @@ const date_start = ref(new Date()); const date_finish = ref(); const develop = ref(); const result = ref(); +const expand_month = ref(); const reson = ref(""); const chairman_dated = ref(); const director1_dated = ref(""); const director2_dated = ref(""); -const fullname = ref("") +const fullname = ref(""); + const fecthResult = async (id: string) => { await http .get(config.API.createformReport(id)) @@ -92,8 +94,7 @@ const fecthResult = async (id: string) => { status.value = false; action.value = "edit"; }) - .catch((e) => { - }); + .catch((e) => {}); }; // part new @@ -105,6 +106,10 @@ const options = [ const optionsResult = [ { value: 1, label: "ไม่ต่ำกว่ามาตรฐานที่กำหนด เห็นควรให้รับราชการต่อ" }, { value: 2, label: "ต่ำกว่ามาตรฐานที่กำหนด เห็นควรให้ออกจากราชการ" }, + { + value: 3, + label: "เห็นควรให้ขยายระยะเวลาทดลองปฏิบัติหน้าที่ราชการต่อไปอีก", + }, ]; const director_id = ref(null); @@ -137,7 +142,7 @@ const clickdownloadFile = async (type: string) => { responseType: "blob", }) .then((res) => { - downloadFile(res,`แบบรายงานการประเมินฯ_${fullname.value}.${type}`); + downloadFile(res, `แบบรายงานการประเมินฯ_${fullname.value}.${type}`); }) .catch((e) => { messageError($q, e); @@ -156,6 +161,7 @@ const postData = async () => { chairman_dated: chairman_dated.value, director1_dated: director1_dated.value, director2_dated: director2_dated.value, + expand_month: expand_month.value, }; await http .post(config.API.createformReport(assignId.value), data) @@ -167,24 +173,39 @@ const postData = async () => { messageError($q, e); }); }; +const selectRuslt = () => { + if (result.value !== 3) { + expand_month.value = ""; + } +};