แก้ข้อความเงินเดือน

This commit is contained in:
Warunee Tamkoo 2024-11-04 14:52:02 +07:00
parent 88e6f8b44c
commit aa9b04772b
2 changed files with 34 additions and 14 deletions

View file

@ -56,13 +56,27 @@ const modalCommand = ref<boolean>(false);
const isOfficer = ref<boolean>(false);
const isStaff = ref<boolean>(false);
const titleCommand = computed(() => {
return `ปีงบประมาณ ${year.value + 543} รอบการขึ้นเงินเดือน ${
roundFilter.value?.shortCode === "SPECIAL"
? roundFilter.value?.name
? roundFilter.value?.name
: ""
: `1 ${roundFilter.value?.name ? roundFilter.value?.name : ""}`
} `;
let txt = "";
switch (roundFilter.value?.shortCode) {
case "OCT":
txt = "1 ตุลาคม";
break;
case "APR":
txt = "1 เมษายน";
break;
case "SPECIAL":
txt = " รอบพิเศษ";
break;
}
return `ปีงบประมาณ ${year.value + 543} รอบการขึ้นเงินเดือน ${txt}`;
// return ` ${year.value + 543} ${
// roundFilter.value?.shortCode === "SPECIAL"
// ? roundFilter.value?.name
// ? roundFilter.value?.name
// : ""
// : `1 ${roundFilter.value?.name ? roundFilter.value?.name : ""}`
// } `;
});
/**

View file

@ -58,13 +58,19 @@ const modalCommand = ref<boolean>(false);
const isOfficer = ref<boolean>(false);
const isStaff = ref<boolean>(false);
const titleCommand = computed(() => {
return `ปีงบประมาณ ${year.value + 543} รอบการขึ้นเงินเดือน ${
roundFilter.value?.shortCode === "SPECIAL"
? roundFilter.value?.name
? roundFilter.value?.name
: ""
: `1 ${roundFilter.value?.name ? roundFilter.value?.name : ""}`
} `;
let txt = "";
switch (roundFilter.value?.shortCode) {
case "OCT":
txt = " 1 ตุลาคม";
break;
case "APR":
txt = " 1 เมษายน";
break;
case "SPECIAL":
txt = " รอบพิเศษ";
break;
}
return `ปีงบประมาณ ${year.value + 543} รอบการขึ้นค่าจ้าง${txt}`;
});
/**