From 45fce1e58a0add8f60d17f8a20131b86224152ac Mon Sep 17 00:00:00 2001 From: waruneeta Date: Fri, 11 Aug 2023 17:24:42 +0700 Subject: [PATCH 1/4] =?UTF-8?q?=E0=B9=81=E0=B8=81=E0=B9=89=20api=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/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/api/index.ts b/src/api/index.ts index 244b63653..51f162272 100644 --- a/src/api/index.ts +++ b/src/api/index.ts @@ -26,8 +26,8 @@ const config = ref({ "https://s3cluster.frappet.com/bma-ehr-fpt/organization/strueture/tree_20230712_172702.json", MEET_URI: "meet.frappet.com", API_RETIREMENT_URI: "https://bma-ehr.frappet.synology.me/api/v1", - // API_PROBATION_URI: "https://ehr.joolsoft.com/v1", - API_PROBATION_URI: "http://192.168.1.151:7776/v1", + API_PROBATION_URI: "https://bmaehr.joolsoft.com/nodeapi/v1", + // API_PROBATION_URI: "http://192.168.1.151:7776/v1", }, test: { API_URI: "http://localhost:5010/api/v1", From d09dbda153468d2a925323d29655aca778c2e910 Mon Sep 17 00:00:00 2001 From: "DESKTOP-1R2VSQH\\Lenovo ThinkPad E490" Date: Fri, 11 Aug 2023 17:56:01 +0700 Subject: [PATCH 2/4] =?UTF-8?q?=E0=B9=80=E0=B8=9E=E0=B8=B4=E0=B9=88?= =?UTF-8?q?=E0=B8=A1=20push.router?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../probation/FormEvaluation/FormReport.vue | 25 +- .../10_order/components/step/step01.vue | 307 ++++++++++++++---- 2 files changed, 260 insertions(+), 72 deletions(-) diff --git a/src/modules/05_placement/components/probation/FormEvaluation/FormReport.vue b/src/modules/05_placement/components/probation/FormEvaluation/FormReport.vue index 7fa0612c2..440d88e8d 100644 --- a/src/modules/05_placement/components/probation/FormEvaluation/FormReport.vue +++ b/src/modules/05_placement/components/probation/FormEvaluation/FormReport.vue @@ -19,12 +19,12 @@ const { hideLoader, } = mixin; const route = useRoute(); -const router = useRouter(); const assignId = ref(route.params.form.toString()); const assign = ref([]); const mentors = ref([]); const commander = ref([]); +const status = ref(true); const evaluate = ref([]); onMounted(() => { @@ -39,6 +39,8 @@ const fecthAssign = async (id: string) => { console.log(res); assign.value = res.data.data.assign; mentors.value = res.data.data.mentors; + date_start.value = assign.value.date_start; + date_finish.value = assign.value.date_finish; director_id.value = res.data.data.commander.name; director_id2.value = mentors.value[0].name; @@ -55,14 +57,14 @@ const fecthAssign = async (id: string) => { hideLoader(); }); }; -const date_start = ref(new Date("10-10-2023")); +const date_start = ref(new Date()); const date_finish = ref(); const develop = ref(); const result = ref(); const reson = ref(""); const chairman_dated = ref(""); -const director1_dated = ref(""); -const director2_dated = ref(""); +const director1_dated = ref(""); +const director2_dated = ref(""); const fecthResult = async (id: string) => { await http .get(config.API.evaluateReport(id)) @@ -77,6 +79,7 @@ const fecthResult = async (id: string) => { chairman_dated.value = data.chairman_dated; director1_dated.value = data.director1_dated; director2_dated.value = data.director2_dated; + status.value = false; }) .catch((e) => { console.log(e); @@ -87,11 +90,11 @@ const fecthResult = async (id: string) => { const options = [ { value: 1, label: "พัฒนาครบ 3 ส่วน" }, - { value: 0, label: "พัฒนาไม่ครบ 3 ส่วน" }, + { value: 2, label: "พัฒนาไม่ครบ 3 ส่วน" }, ]; const optionsResult = [ { value: 1, label: "ไม่ต่ำกว่ามาตรฐานที่กำหนด เห็นควรให้รับราชการต่อ" }, - { value: 0, label: "ต่ำกว่ามาตรฐานที่กำหนด เห็นควรให้ออกจากราชการ" }, + { value: 2, label: "ต่ำกว่ามาตรฐานที่กำหนด เห็นควรให้ออกจากราชการ" }, ]; const director_id = ref(null); @@ -272,6 +275,7 @@ const postData = async () => { emit-value map-options option-label="label" + option-value="value" outlined v-model="result" label="ผลการประเมินการทดลองปฏิบัติหน้าที่ราชการ" @@ -371,7 +375,6 @@ const postData = async () => { :options="optionDirector" label="" option-label="name" - />
{ :options="optionDirector" label="" option-label="name" - />
{ - +
diff --git a/src/modules/10_order/components/step/step01.vue b/src/modules/10_order/components/step/step01.vue index 9ba307395..1eef3cc73 100644 --- a/src/modules/10_order/components/step/step01.vue +++ b/src/modules/10_order/components/step/step01.vue @@ -3,10 +3,24 @@
- + @@ -15,36 +29,73 @@
- +
- +
- +
- +
- + @@ -52,12 +103,24 @@ {{ parseInt(value + 543) }} - + - +
- + บันทึก
@@ -532,71 +353,34 @@ - ประเภทการพ้นราชการ + ประเภทการพ้นราชการ - + -
+
- +
- +