registy ==> ข้อมูลราชการ ตำแหน่งเงินเดือน
This commit is contained in:
parent
27a8fb4102
commit
27105c7bca
6 changed files with 926 additions and 715 deletions
43
src/modules/04_registryPerson/stores/Position.ts
Normal file
43
src/modules/04_registryPerson/stores/Position.ts
Normal file
|
|
@ -0,0 +1,43 @@
|
|||
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 useGovernmentPosDataStore = defineStore("GovernmentPos", () => {
|
||||
// commandCode ขอตำแหน่ง
|
||||
const positionCode = ref<number[]>([
|
||||
0, 1, 2, 3, 4, 8, 9, 10, 11, 12, 13, 14, 15, 16,
|
||||
]);
|
||||
|
||||
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,
|
||||
positionCode,
|
||||
|
||||
// Function
|
||||
convertCommandCodeName,
|
||||
};
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue