ปรับ รายการเงินเดือน
This commit is contained in:
parent
f806417157
commit
6c936c2b97
5 changed files with 152 additions and 89 deletions
|
|
@ -9,13 +9,13 @@ import type {
|
|||
import type { DataPeriodLatest } from "@/modules/13_salary/interface/response/SalaryList";
|
||||
|
||||
export const useSalaryListSDataStore = defineStore("salaryListStore", () => {
|
||||
const titelPage = ref<string>("");
|
||||
const tabGroup = ref<string>("group1");
|
||||
const tabType = ref<string>("PENDING");
|
||||
const groupOp = ref<DataOption[]>([
|
||||
{ id: "", name: "กลุ่ม1" },
|
||||
{ id: "", name: "กลุ่ม2" },
|
||||
]);
|
||||
|
||||
const groupId = ref<string>("");
|
||||
const rootId = ref<string>("");
|
||||
const roundCode = ref<string>("OCT");
|
||||
|
|
@ -50,17 +50,10 @@ export const useSalaryListSDataStore = defineStore("salaryListStore", () => {
|
|||
function fetchPeriodLatest(data: DataPeriodLatest, type: string) {
|
||||
groupId.value = type === "group1" ? data.group1id : data.group2id;
|
||||
roundCode.value = data.period;
|
||||
titelPage.value =
|
||||
data.period === "SPECIAL"
|
||||
? "รอบพิเศษ"
|
||||
: data.period === "APR"
|
||||
? "รอบเมษายน"
|
||||
: "รอบตุลาคม";
|
||||
groupOp.value[0].id = data.group1id;
|
||||
groupOp.value[1].id = data.group2id;
|
||||
}
|
||||
return {
|
||||
titelPage,
|
||||
tabGroup,
|
||||
tabType,
|
||||
itemMenu,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue