diff --git a/src/modules/05_placement/components/probation/FormAssign.vue b/src/modules/05_placement/components/probation/FormAssign.vue index f18e1b69c..7077f3c97 100644 --- a/src/modules/05_placement/components/probation/FormAssign.vue +++ b/src/modules/05_placement/components/probation/FormAssign.vue @@ -84,7 +84,7 @@ const fullname = ref(); const knowledge_skill_map_no = ref([]); const round_no = ref(); const date_start = ref(); -const date_finish = ref(); +const date_finish = ref(); const behavior_desc = ref(); const other_desc = ref({}); const other4_desc = ref(); @@ -104,13 +104,13 @@ const main4 = ref(); const main5 = ref(); const assignId = ref(route.params.form as string); const Other = ref(""); -const commander = ref(""); -const chairman = ref(""); +const commander = ref(""); +const chairman = ref(""); -const date1 = ref(); -const date2 = ref(); -const date3 = ref(); -const date4 = ref(); +const date1 = ref(); +const date2 = ref(); +const date3 = ref(); +const date4 = ref(); const OPmain = ref< Array<{ @@ -142,10 +142,10 @@ const routeName = router.currentRoute.value.name; const name = ref(""); const position = ref(""); -const monthSelect = ref(); +const monthSelect = ref(); -const caretaker1 = ref(""); -const caretaker2 = ref(""); +const caretaker1 = ref(""); +const caretaker2 = ref(""); const OPcaretaker = ref< Array<{ id: string; @@ -595,8 +595,7 @@ const putData = (id: string) => { date_finish.value instanceof Date ? dateToISO(date_finish.value) : dateToISO(new Date(date_finish.value)), - // caretaker_1: caretaker1.value, - // caretaker_2: caretaker2.value, + assign_knowledges: know_ledge, assign_jobs: assign_job.filter((item) => item !== null), other_desc: OtherLaw.value, @@ -606,15 +605,11 @@ const putData = (id: string) => { other4_desc: Other.value, other5_no1_desc: Other5.value, assign_outputs: Productivity_assign.filter((item) => item !== null), - // commander: commander.value, + assign_director: assign_director, experimenter_dated: date1.value instanceof Date ? dateToISO(date1.value) : new Date(), - // date_2: date2.value instanceof Date ? dateToISO(date2.value) : new Date(), - // date_3: date3.value instanceof Date ? dateToISO(date3.value) : new Date(), - // date_4: date4.value instanceof Date ? dateToISO(date4.value) : new Date(), - // caretaker_foot: caretakerFoot.value, - // caretaker_foot2: caretakerFoot2.value, + assign_law: checkRule.value .filter((item) => item.checked === 1) .map((item) => ({ @@ -741,10 +736,6 @@ const getAssign = async () => { description: law.description, status_select: law.status_select, })); - // console.log( - // "🚀 ~ file: FormAssign.vue:2009 ~ awaithttp.get ~ checkRule:", - // checkRule.value - // ); }); }; const downloadFile = (response: any, filename: string) => { @@ -764,7 +755,10 @@ const clickdownloadFile = async (type: string) => { responseType: "blob", }) .then((res) => { - downloadFile(res,`แบบมอบหมายงานการทดลองปฏิบัติหน้าที่ราชการ-${fullname.value}.${type}`); + downloadFile( + res, + `แบบมอบหมายงานการทดลองปฏิบัติหน้าที่ราชการ-${fullname.value}.${type}` + ); }) .catch((e) => { messageError($q, e); @@ -774,7 +768,6 @@ const clickdownloadFile = async (type: string) => { }); }; onMounted(async () => { - getAssign(); await getUser(); await getLaw(personalId); await getcompetency(personalId); @@ -782,6 +775,7 @@ onMounted(async () => { await getSkill(personalId); await getKnowledge(personalId); await getAssignNew(personalId); + await getAssign(); }); watch( () => [monthSelect.value, date_start.value], @@ -818,8 +812,6 @@ watch(knowledge.value, () => {
แบบมอบหมายงานการทดลองปฏิบัติหน้าที่ราชการ
- - { @click="clickdownloadFile('pdf')" > + > + ไฟล์ .PDF { option-value="id" :options="filtermantor(OPcaretaker, [caretaker2])" class="col-xs-12 col-sm-6" - :readonly="status != true" + :readonly="!status" dense hide-bottom-space borderless - :outlined="status == true" + :outlined="status" v-model="caretaker1" :label="`ผู้ดูแลคนที่ 1`" option-label="name" @@ -1088,10 +1080,10 @@ watch(knowledge.value, () => { option-label="name" hide-bottom-space class="col-xs-12 col-sm-6" - :readonly="status != true" + :readonly="!status" dense borderless - :outlined="status == true" + :outlined="status" v-model="caretaker2" :label="`ผู้ดูแลคนที่ 2`" /> @@ -1250,15 +1242,6 @@ watch(knowledge.value, () => {
ความรู้เรื่องกฎหมายและกฎระเบียบ (ไม่เกิน 20 หัวข้อ) -
{
- @@ -2229,10 +2192,10 @@ watch(knowledge.value, () => { option-value="id" option-label="name" class="col-xs-12 col-sm-8" - :readonly="status != true" + :readonly="!status" dense borderless - :outlined="status == true" + :outlined="status" v-model="caretaker1" label="ผู้ดูแลคนที่ 1" /> @@ -2298,10 +2261,10 @@ watch(knowledge.value, () => { option-value="id" option-label="name" class="col-xs-12 col-sm-8" - :readonly="status != true" + :readonly="!status" dense borderless - :outlined="status == true" + :outlined="status" v-model="caretaker2" label="ผู้ดูแลคนที่ 2" /> @@ -2314,7 +2277,7 @@ watch(knowledge.value, () => { borderless :enableTimePicker="false" week-start="0" - :readonly="(status != true) | !caretaker2" + :readonly="status != true || !caretaker2" >