updated & fix bug
This commit is contained in:
parent
704fce71ed
commit
84bb5b20a0
4 changed files with 92 additions and 38 deletions
|
|
@ -35,7 +35,7 @@ export const useSalaryListSDataStore = defineStore("salaryListStore", () => {
|
|||
},
|
||||
{
|
||||
label: "ย้ายขั้น",
|
||||
icon: "mdi-account-arrow-left-outline",
|
||||
icon: "mdi-swap-vertical-bold",
|
||||
color: "green-6",
|
||||
type: "moveLevel",
|
||||
},
|
||||
|
|
@ -47,6 +47,21 @@ 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;
|
||||
|
|
@ -62,5 +77,6 @@ export const useSalaryListSDataStore = defineStore("salaryListStore", () => {
|
|||
rootId,
|
||||
roundCode,
|
||||
groupOp,
|
||||
typeRangeOps,
|
||||
};
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue