diff --git a/src/modules/13_salary/components/SalaryEmployeeLists/TabMain.vue b/src/modules/13_salary/components/SalaryEmployeeLists/TabMain.vue index 1eba9574e..e67c304a0 100644 --- a/src/modules/13_salary/components/SalaryEmployeeLists/TabMain.vue +++ b/src/modules/13_salary/components/SalaryEmployeeLists/TabMain.vue @@ -60,11 +60,11 @@ const itemsTabType = computed(() => { name: "tab1", type: "PENDING", }, - { - lable: "รายชื่อผู้เกษียณอายุราชการ", - name: "tab5", - type: "RETIRE", - }, + // { + // lable: "รายชื่อผู้เกษียณอายุราชการ", + // name: "tab5", + // type: "RETIRE", + // }, { lable: "1 ขั้น", name: "tab2", @@ -251,12 +251,12 @@ function fetchDataQuota(id: string) { */ function fetchDataPeriod(id: string) { rows.value = []; - const formData = { + let formData = { page: formFilter.page.toString(), pageSize: formFilter.pageSize.toString(), keyword: formFilter.keyword, - type: store.tabType === "RETIRE" ? "" : store.tabType, - isRetire: store.tabType === "RETIRE" ? "1" : null, + type: store.tabType, + isRetire: isRetire.value === true ? "1" : "0", }; http @@ -354,6 +354,12 @@ onMounted(() => { fetchDataPeriod(store.groupId); splitterModel.value = store.roundMainCode === "APR" ? 13 : 16; }); + +const isRetire = ref(false); +const updateIsShowRetire = async () => { + isRetire.value = await !isRetire.value; + fetchDataPeriodNew(); +};