diff --git a/src/api/07_insignia/api.insignia.ts b/src/api/07_insignia/api.insignia.ts index ae391cfb6..e92d38fbb 100644 --- a/src/api/07_insignia/api.insignia.ts +++ b/src/api/07_insignia/api.insignia.ts @@ -26,6 +26,11 @@ export default { insigniaDashboard: (insigniaPeriodId: string) => `${insignia}/request/dashboard/${insigniaPeriodId}`, // record noteround: () => `${insignia}/request/note`, + requestDocNote: (id:string) => `${insignia}/request/note/doc/${id}`, + noteSearch: () => `${insignia}/request/note/search`, + noteAdd: (insigniaId: string) => `${insignia}/request/note/${insigniaId}`, + noteByid: (id: string) => `${insignia}/request/note/${id}`, + }; diff --git a/src/modules/05_placement/components/Transfer/transferRegistry.vue b/src/modules/05_placement/components/Transfer/transferRegistry.vue index 50fce27a9..bc6ea2a1d 100644 --- a/src/modules/05_placement/components/Transfer/transferRegistry.vue +++ b/src/modules/05_placement/components/Transfer/transferRegistry.vue @@ -135,7 +135,7 @@ {{ props.row.fileName }} - + ไฟล์ PDF diff --git a/src/modules/05_placement/components/probation/FormAssign.vue b/src/modules/05_placement/components/probation/FormAssign.vue index 03d6400e1..f24c4dfbe 100644 --- a/src/modules/05_placement/components/probation/FormAssign.vue +++ b/src/modules/05_placement/components/probation/FormAssign.vue @@ -55,6 +55,8 @@ const { showLoader, hideLoader, dialogConfirm, + dialogMessageNotify, + modalWarning } = mixin; const filterData = (options: any[], excludedGroups: any[]) => { return options.filter( @@ -545,11 +547,6 @@ const putData = (id: string) => { role: "mentor", dated: date2.value instanceof Date ? dateToISO(date2.value) : dateToISO(new Date(date2.value)), }, - { - personal_id: caretaker2.value.id, - role: "mentor", - dated: date3.value instanceof Date ? dateToISO(date3.value) : dateToISO(new Date(date3.value)), - }, { personal_id: commander.value.id, role: "commander", @@ -560,6 +557,13 @@ const putData = (id: string) => { role: "chairman", }, ]; + if (caretaker2.value) { + assign_director.push({ + personal_id: caretaker2.value.id, + role: "mentor", + dated: date3.value instanceof Date ? dateToISO(date3.value) : dateToISO(new Date(date3.value)), + }); +} const data = { personalId: GUID, fullname: fullname.value, @@ -621,7 +625,7 @@ const DataSave = async (id: string) => { hideLoader(); }); } else { - notifyError($q, "กรุณากรอกข้อมูลให้ครบ"); + dialogMessageNotify($q, "กรุณากรอกข้อมูลให้ครบ"); } }); }; @@ -860,7 +864,7 @@ watch(knowledge.value, () => { :options="filtermantor(OPcaretaker, [caretaker2])" class="col-xs-12 col-sm-6" :readonly="status != true" dense hide-bottom-space borderless :outlined="status == true" v-model="caretaker1" :label="`ผู้ดูแลคนที่ 1`" option-label="name" /> - @@ -870,7 +874,7 @@ watch(knowledge.value, () => { :options="filtermantor(OPcaretaker, [caretaker2])" class="col-xs-12 col-sm-6" :readonly="status != true" dense hide-bottom-space borderless :outlined="status == true" v-model="caretaker1" :label="`ผู้ดูแลคนที่ 1`" option-label="name" /> - @@ -1593,15 +1597,15 @@ watch(knowledge.value, () => { - -
+ :enableTimePicker="false" week-start="0" :readonly="status != true | !caretaker2"> @@ -1609,7 +1613,9 @@ watch(knowledge.value, () => { {{ parseInt(value + 543) }}