เพิ่มเงื่อนไข เพิ่มและแก้ไข เครื่องราชฯ

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2023-09-01 16:22:34 +07:00
parent 1a294be701
commit 8c13173bbb
3 changed files with 47 additions and 7 deletions

View file

@ -7,7 +7,9 @@ const { date2Thai } = mixin;
export const useInsigniaDataStore = defineStore("insignia", () => {
const isLock = ref<boolean>(false)
const roleUser = ref<string>("")
const requestId = ref<string>("")
const requestStatus = ref<string>("")
let optionsTypeOc = ref<any>([]);
let typeOc = ref<string>("");
const agency = ref<string>("");
@ -49,6 +51,11 @@ export const useInsigniaDataStore = defineStore("insignia", () => {
filtertypeInsignia();
} else rows.value = [];
};
const fetchDataInsignia = async (data: any) => {
isLock.value = data.isLock;
requestId.value = data.requestId;
requestStatus.value = data.requestStatus;
}
const fetchOption = (op: any) => {
if (agency.value !== null) {
typeOc.value = agency.value;
@ -128,7 +135,10 @@ export const useInsigniaDataStore = defineStore("insignia", () => {
selectEmployeeClass,
employeeClass,
employeeClassOps,
fetchDataInsignia,
isLock,
requestId
requestId,
roleUser,
requestStatus,
};
});