รายการเลื่อนเงินเดือนข้าราชการฯ => ปรับการดาวโหลด แบบ 3 กก

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2024-03-22 09:32:23 +07:00
parent 2c06837e51
commit 13785b5f85
2 changed files with 5 additions and 5 deletions

View file

@ -310,15 +310,15 @@ function fetchDataPeriodNew() {
function onClickDownload(data: DataOption) {
showLoader();
if (data.id === "gov-06") {
if (data.id === "go1" || data.id === "go2") {
const formData = {
type: "HAFT",
startDate:
props?.roundFilter?.shortCode === "APR"
data.id === "go1"
? `${props?.roundFilter?.year - 1}-10-01`
: `${props?.roundFilter?.year}-04-01`,
endDate:
props?.roundFilter?.shortCode === "APR"
data.id === "go1"
? `${props?.roundFilter?.year}-03-31`
: `${props?.roundFilter?.year}-09-30`,
};

View file

@ -82,7 +82,7 @@ export const useSalaryListSDataStore = defineStore("salaryListStore", () => {
name: "แบบ 2 กท รอบเมษายน",
},
{
id: "gov-06",
id: "go1",
name: "แบบ 3 กท บัญชีแสดงวันลาครึ่งปี ขรก.",
},
{
@ -118,7 +118,7 @@ export const useSalaryListSDataStore = defineStore("salaryListStore", () => {
name: "แบบ 2 กท รอบตุลาคม",
},
{
id: "gov-06",
id: "go2",
name: "แบบ 3 กท บัญชีแสดงวันลาครึ่งปี ขรก. ",
},
{