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) }}