Merge branches 'develop' and 'develop' of github.com:Frappet/bma-ehr-frontend into develop
# Conflicts: # src/modules/13_salary/store/SalaryListsStore.ts
This commit is contained in:
commit
5d48e2e388
6 changed files with 201 additions and 72 deletions
|
|
@ -2,13 +2,20 @@ import { defineStore } from "pinia";
|
|||
import { ref } from "vue";
|
||||
|
||||
/** importType*/
|
||||
import type { ItemsMenu } from "@/modules/13_salary/interface/index/Main";
|
||||
import type {
|
||||
ItemsMenu,
|
||||
DataOption,
|
||||
} from "@/modules/13_salary/interface/index/Main";
|
||||
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");
|
||||
|
|
@ -30,7 +37,7 @@ export const useSalaryListSDataStore = defineStore("salaryListStore", () => {
|
|||
label: "ย้ายขั้น",
|
||||
icon: "mdi-account-arrow-left-outline",
|
||||
color: "green-6",
|
||||
type: "moveStep",
|
||||
type: "moveLevel",
|
||||
},
|
||||
{
|
||||
label: "ลบ",
|
||||
|
|
@ -49,6 +56,8 @@ export const useSalaryListSDataStore = defineStore("salaryListStore", () => {
|
|||
: data.period === "APR"
|
||||
? "รอบเมษายน"
|
||||
: "รอบตุลาคม";
|
||||
groupOp.value[0].id = data.group1id;
|
||||
groupOp.value[1].id = data.group2id;
|
||||
}
|
||||
return {
|
||||
titelPage,
|
||||
|
|
@ -59,5 +68,6 @@ export const useSalaryListSDataStore = defineStore("salaryListStore", () => {
|
|||
fetchPeriodLatest,
|
||||
rootId,
|
||||
roundCode,
|
||||
groupOp,
|
||||
};
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue