diff --git a/src/modules/04_registryPerson/components/detail/GovernmentInformation/07_Position.vue b/src/modules/04_registryPerson/components/detail/GovernmentInformation/07_Position.vue index 67062edde..e94467676 100644 --- a/src/modules/04_registryPerson/components/detail/GovernmentInformation/07_Position.vue +++ b/src/modules/04_registryPerson/components/detail/GovernmentInformation/07_Position.vue @@ -402,6 +402,7 @@ const modalDialogSalary = ref(false); //แสดง popup ตำแห const isStatusEdit = ref(false); //สถานะแก้ไขข้อมูลตำแหน่งเงินเดือน const salaryId = ref(""); //id ที่ต้องการแก้ไข const dataLevel = ref([]); //รายการ ตำแหน่งเงินเดือน +const idCommandId = ref(false); //เช็คว่ามี commandId หรือไม่ const commandCodeOptions = ref(store.commandCodeData); //รายการปรเภทคำสั่ง const posTypeOptions = ref(store.posTypeData); //รายการประเภทตำแหน่ง | กลุ่มงาน @@ -658,6 +659,7 @@ async function onClickOpenDialog( } else { await fetchOptionGroup(); } + idCommandId.value = statusEdit ? (data.commandId ? true : false) : false; commandCodeOptions.value = store.commandCodeData; posTypeOptions.value = store.posTypeData; posLevelOptions.value = store.posLevelData; @@ -978,6 +980,7 @@ onMounted(async () => { ประวัติแก้ไขตำแหน่ง/เงินเดือน + {
{ autoApply year-picker :enableTimePicker="false" - class="inputgreen" + :class="classInput(!idCommandId)" + :disabled="idCommandId" >