diff --git a/src/modules/06_retirement/views/Main.vue b/src/modules/06_retirement/views/Main.vue index 39f6afdee..7fe3ef386 100644 --- a/src/modules/06_retirement/views/Main.vue +++ b/src/modules/06_retirement/views/Main.vue @@ -76,6 +76,7 @@ const yearOptions = ref([{ id: "", year: "ทั้งหมด" }]); onMounted(async () => { await fetchRetirement(type.value, currentYear); + // fiscalyear.value = currentYear + 543 // await fetchRetirement(type.value, currentYear); }); // หาปีปัจจุบัน @@ -116,7 +117,11 @@ const fetchRetirement = async (type: string, year: any) => { yearOptions.value.push(...option); yearOptionsFilter.value = yearOptions.value; - + if (yearOptionsFilter.value.length == 1) { + fiscalyear.value = yearOptionsFilter.value[0].id; + } else { + fiscalyear.value = year; + } actionOption.value = rows.value; rows.value.sort((a, b) => a.round - b.round); // เรียงรอบมากไปน้อย checkststus(rows.value); diff --git a/src/modules/07_insignia/components/2_Manage/listManage.vue b/src/modules/07_insignia/components/2_Manage/listManage.vue index f4f14ec87..f37b1c58b 100644 --- a/src/modules/07_insignia/components/2_Manage/listManage.vue +++ b/src/modules/07_insignia/components/2_Manage/listManage.vue @@ -599,7 +599,7 @@ const uploadFile = async (event: any) => { @click="directorApproved" /> (); const filesReturn = ref(); const OrganazationId = ref(""); +const OrganazationId2 = ref(""); const OrgList = ref([]); const Datereceive = ref(null); const Datereturn = ref(); @@ -25,7 +26,8 @@ const props = defineProps({ personId: String, close: Function, fecthlistInsignia: Function, - fileCheck:String + fileCheck:String, + fileCheck2:String }); // reset วันที่ประกาศราชกิจจานุเบกษา const clearReceiveDate = () => { @@ -41,7 +43,7 @@ const close = () => { OrganazationId.value = '' Datereturn.value = null filesReturn.value = null - OrganazationId.value = '' + OrganazationId2.value = '' }; const SaveData = async (type:string,id:string) => { @@ -81,7 +83,7 @@ const dataSave = (type:string,id:string) => { OrganazationId.value = '' Datereturn.value = null filesReturn.value = null - OrganazationId.value = '' + OrganazationId2.value = '' props.close?.(); hideLoader(); props.fecthlistInsignia?.() @@ -173,16 +175,16 @@ onMounted(()=>{ :rules="[(val) => !!val || 'กรุณาเลือกหน่วยงานที่รับ']" :disable="fileCheck !== null"/> -
- -
+ +
+
คืนเครื่องราชฯ
+ :enableTimePicker="false" week-start="0" :readonly="fileCheck2 !== null"> @@ -192,7 +194,7 @@ onMounted(()=>{