รายการ แก้ไขทะเบียนประวัติ ตำแหน่ง/เงินเดือน
This commit is contained in:
parent
b74a4fe516
commit
d983e0b89e
8 changed files with 2373 additions and 28 deletions
39
src/modules/04_registryPerson/stores/Edit.ts
Normal file
39
src/modules/04_registryPerson/stores/Edit.ts
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
import { ref } from "vue";
|
||||
import { defineStore } from "pinia";
|
||||
import { useQuasar } from "quasar";
|
||||
|
||||
import { useCounterMixin } from "@/stores/mixin";
|
||||
|
||||
import type { DataOption } from "@/modules/04_registryPerson/interface/index/Main";
|
||||
|
||||
const $q = useQuasar();
|
||||
const mixin = useCounterMixin();
|
||||
const {} = mixin;
|
||||
|
||||
export const useEditPosDataStore = defineStore("EditPos", () => {
|
||||
const commandCodeData = ref<DataOption[]>([]);
|
||||
const posTypeData = ref<DataOption[]>([]); //รายการประเภทตำแหน่ง | กลุ่มงาน
|
||||
const posLevelData = ref<DataOption[]>([]); //รายการระดับตำแหน่ง | ระดับชั้นงาน
|
||||
const posLineData = ref<DataOption[]>([]); //รายการสายงาน
|
||||
const posPathSideData = ref<DataOption[]>([]); //รายการด้าน/สาขา
|
||||
const posExecutiveData = ref<DataOption[]>([]); //รายการตำแหน่งทางการบริหาร
|
||||
|
||||
function convertCommandCodeName(val: string) {
|
||||
return (
|
||||
commandCodeData.value.find((e: DataOption) => e.id === val)?.name ?? "-"
|
||||
);
|
||||
}
|
||||
|
||||
return {
|
||||
// Data
|
||||
commandCodeData,
|
||||
posTypeData,
|
||||
posLevelData,
|
||||
posLineData,
|
||||
posPathSideData,
|
||||
posExecutiveData,
|
||||
|
||||
// Function
|
||||
convertCommandCodeName,
|
||||
};
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue