updated เงินเดือน

This commit is contained in:
Warunee Tamkoo 2024-02-28 15:52:08 +07:00
parent 16a6a4255b
commit 44d22a9b13
4 changed files with 32 additions and 56 deletions

View file

@ -18,7 +18,8 @@ export const useSalaryListSDataStore = defineStore("salaryListStore", () => {
const groupId = ref<string>("");
const rootId = ref<string>("");
const roundCode = ref<string>("OCT");
const roundMainCode = ref<string>("");
const roundCode = ref<string>("");
/** List Menu*/
const itemMenu = ref<ItemsMenu[]>([
{
@ -47,21 +48,6 @@ export const useSalaryListSDataStore = defineStore("salaryListStore", () => {
},
]);
const typeRangeOps = ref<DataOption[]>(
roundCode.value === "OCT"
? [
{ id: "NONE", name: "ไม่ได้เลื่อน" },
{ id: "HAFT", name: "0.5 ขั้น" },
{ id: "FULL", name: "1 ขั้น" },
{ id: "FULLHAFT", name: "1.5 ขั้น" },
]
: [
{ id: "NONE", name: "ไม่ได้เลื่อน" },
{ id: "HAFT", name: "0.5 ขั้น" },
{ id: "FULL", name: "1 ขั้น" },
]
);
function fetchPeriodLatest(data: DataPeriodLatest, type: string) {
groupId.value = type === "group1" ? data.group1id : data.group2id;
roundCode.value = data.period;
@ -77,6 +63,6 @@ export const useSalaryListSDataStore = defineStore("salaryListStore", () => {
rootId,
roundCode,
groupOp,
typeRangeOps,
roundMainCode
};
});