diff --git a/src/modules/13_salary/components/SalaryEmployeeLists/Dashboard.vue b/src/modules/13_salary/components/SalaryEmployeeLists/Dashboard.vue new file mode 100644 index 000000000..eb3aae344 --- /dev/null +++ b/src/modules/13_salary/components/SalaryEmployeeLists/Dashboard.vue @@ -0,0 +1,3 @@ + diff --git a/src/modules/13_salary/components/SalaryEmployeeLists/DialogAddPerson.vue b/src/modules/13_salary/components/SalaryEmployeeLists/DialogAddPerson.vue new file mode 100644 index 000000000..b178d0430 --- /dev/null +++ b/src/modules/13_salary/components/SalaryEmployeeLists/DialogAddPerson.vue @@ -0,0 +1,316 @@ + + + + diff --git a/src/modules/13_salary/components/SalaryEmployeeLists/DialogFormEdit.vue b/src/modules/13_salary/components/SalaryEmployeeLists/DialogFormEdit.vue new file mode 100644 index 000000000..832096723 --- /dev/null +++ b/src/modules/13_salary/components/SalaryEmployeeLists/DialogFormEdit.vue @@ -0,0 +1,112 @@ + + + + + diff --git a/src/modules/13_salary/components/SalaryEmployeeLists/DialogInfoCriteria.vue b/src/modules/13_salary/components/SalaryEmployeeLists/DialogInfoCriteria.vue new file mode 100644 index 000000000..7eeb283a2 --- /dev/null +++ b/src/modules/13_salary/components/SalaryEmployeeLists/DialogInfoCriteria.vue @@ -0,0 +1,160 @@ + + + + + diff --git a/src/modules/13_salary/components/SalaryEmployeeLists/DialogMoveGroup.vue b/src/modules/13_salary/components/SalaryEmployeeLists/DialogMoveGroup.vue new file mode 100644 index 000000000..409210efc --- /dev/null +++ b/src/modules/13_salary/components/SalaryEmployeeLists/DialogMoveGroup.vue @@ -0,0 +1,135 @@ + + + + + diff --git a/src/modules/13_salary/components/SalaryEmployeeLists/DialogMoveLevel.vue b/src/modules/13_salary/components/SalaryEmployeeLists/DialogMoveLevel.vue new file mode 100644 index 000000000..75e6a2f7d --- /dev/null +++ b/src/modules/13_salary/components/SalaryEmployeeLists/DialogMoveLevel.vue @@ -0,0 +1,178 @@ + + + + + diff --git a/src/modules/13_salary/components/SalaryEmployeeLists/DialogProperties.vue b/src/modules/13_salary/components/SalaryEmployeeLists/DialogProperties.vue new file mode 100644 index 000000000..0bad57794 --- /dev/null +++ b/src/modules/13_salary/components/SalaryEmployeeLists/DialogProperties.vue @@ -0,0 +1,176 @@ + + + + + diff --git a/src/modules/13_salary/components/SalaryEmployeeLists/ProcessStep.vue b/src/modules/13_salary/components/SalaryEmployeeLists/ProcessStep.vue new file mode 100644 index 000000000..b48a39e29 --- /dev/null +++ b/src/modules/13_salary/components/SalaryEmployeeLists/ProcessStep.vue @@ -0,0 +1,189 @@ + + + + + diff --git a/src/modules/13_salary/components/SalaryEmployeeLists/TabMain.vue b/src/modules/13_salary/components/SalaryEmployeeLists/TabMain.vue new file mode 100644 index 000000000..7652d8b19 --- /dev/null +++ b/src/modules/13_salary/components/SalaryEmployeeLists/TabMain.vue @@ -0,0 +1,492 @@ + + + + + diff --git a/src/modules/13_salary/components/SalaryEmployeeLists/TableTypeOther.vue b/src/modules/13_salary/components/SalaryEmployeeLists/TableTypeOther.vue new file mode 100644 index 000000000..734a5ad74 --- /dev/null +++ b/src/modules/13_salary/components/SalaryEmployeeLists/TableTypeOther.vue @@ -0,0 +1,493 @@ + + + + diff --git a/src/modules/13_salary/components/SalaryEmployeeLists/TableTypePending.vue b/src/modules/13_salary/components/SalaryEmployeeLists/TableTypePending.vue new file mode 100644 index 000000000..bc2db8d56 --- /dev/null +++ b/src/modules/13_salary/components/SalaryEmployeeLists/TableTypePending.vue @@ -0,0 +1,589 @@ + + + + + diff --git a/src/modules/13_salary/store/SalaryEmployeeListsStore.ts b/src/modules/13_salary/store/SalaryEmployeeListsStore.ts new file mode 100644 index 000000000..538bc58e8 --- /dev/null +++ b/src/modules/13_salary/store/SalaryEmployeeListsStore.ts @@ -0,0 +1,162 @@ +import { defineStore } from "pinia"; +import { ref } from "vue"; + +/** importType*/ +import type { + ItemsMenu, + DataOption, +} from "@/modules/13_salary/interface/index/Main"; +import type { DataPeriodLatest } from "@/modules/13_salary/interface/response/SalaryList"; + +export const useSalaryEmployeeListSDataStore = defineStore( + "salaryEmployeeListStore", + () => { + const tabGroup = ref("group1"); + const tabType = ref("PENDING"); + const groupOp = ref([ + { id: "", name: "กลุ่ม1" }, + { id: "", name: "กลุ่ม2" }, + ]); + + const remaining = ref(0); + + const groupId = ref(""); + const rootId = ref(""); + const roundMainCode = ref(""); + const roundYear = ref(0); + const roundCode = ref(""); + const isClosedRound = ref(false); // การปิดรอบ + /** List Menu*/ + const itemMenu = ref([ + { + label: "แก้ไขเงินเดือน", + icon: "edit", + color: "edit", + type: "edit", + }, + { + label: "ย้ายกลุ่ม", + icon: "mdi-account-arrow-right-outline", + color: "indigo-6", + type: "moveGroup", + }, + { + label: "ย้ายขั้น", + icon: "mdi-swap-vertical-bold", + color: "green-6", + type: "moveLevel", + }, + { + label: "แก้ไขคุณสมบัติ", + icon: "mdi-format-list-checks", + color: "blue-6", + type: "properties", + }, + { + label: "ลบ", + icon: "delete", + color: "red", + type: "delete", + }, + ]); + + /** List Download รายงานของรอบเมษายน*/ + const itemDownloadApr = ref([ + { + id: "gov1-01", + name: "รายชื่อข้าราชการผู้ที่ครองตำแหน่ง ณ วันที่ 1 มีนาคม", + }, + { + id: "gov1-02", + name: "บัญชีการคำนวณโควตาเลื่อนเงินเดือน รอบเมษายน", + }, + { + id: "gov1-03", + name: "รายชื่อข้าราชการที่ได้รับการเสนอขอเลื่อนหนึ่งขั้น", + }, + { + id: "gov1-04", + name: "แบบ 1 กท รอบเมษายน", + }, + { + id: "gov1-05", + name: "แบบ 2 กท รอบเมษายน", + }, + { + id: "gov1-06", + name: "แบบ 3 กท บัญชีแสดงวันลาครึ่งปี ขรก.", + }, + { + id: "gov1-07", + name: "คำสั่งเลื่อนเงินเดือน รอบเมษายน", + }, + { + id: "gov1-08", + name: "คำสั่งค่าตอบแทนพิเศษ และผู้ไม่ได้เลื่อน รอบเมษายน", + }, + ]); + + /** List Download รายงานของรอบตุลาคม*/ + const itemDownloadOct = ref([ + { + id: "gov2-01", + name: "รายชื่อข้าราชการผู้ที่ครองตำแหน่ง ณ วันที่ 1 กันยายน", + }, + { + id: "gov2-02", + name: "บัญชีการคำนวณวงเงินเลื่อนเงินเดือน รอบตุลาคม", + }, + { + id: "gov2-03", + name: "รายชื่อข้าราชการผู้ที่ได้รับการเสนอขอเลื่อนเงินเดือนทั้งปีสองขั้น", + }, + { + id: "gov2-04", + name: "แบบ 1 กท รอบตุลาคม", + }, + { + id: "gov2-05", + name: "แบบ 2 กท รอบตุลาคม", + }, + { + id: "gov2-06", + name: "แบบ 3 กท บัญชีแสดงวันลาครึ่งปี ขรก. ", + }, + { + id: "gov2-07", + name: "คำสั่งเลื่อนเงินเดือนข้าราชการเกษียณ", + }, + { + id: "gov2-08", + name: "คำสั่งเลื่อนเงินเดือน รอบตุลาคม", + }, + { + id: "gov2-09", + name: "คำสั่งค่าตอบแทนพิเศษ และผู้ไม่ได้เลื่อนเงินเดือน รอบตุลาคม", + }, + ]); + + function fetchPeriodLatest(data: DataPeriodLatest, type: string) { + groupId.value = type === "group1" ? data.group1id : data.group2id; + roundCode.value = data.period; + groupOp.value[0].id = data.group1id; + groupOp.value[1].id = data.group2id; + } + return { + tabGroup, + tabType, + itemMenu, + itemDownloadOct, + itemDownloadApr, + groupId, + fetchPeriodLatest, + rootId, + roundCode, + groupOp, + roundMainCode, + remaining, + isClosedRound, + roundYear, + }; + } +); diff --git a/src/modules/13_salary/views/salaryEmployeeLists.vue b/src/modules/13_salary/views/salaryEmployeeLists.vue index c9b5c17fc..81283d7b2 100644 --- a/src/modules/13_salary/views/salaryEmployeeLists.vue +++ b/src/modules/13_salary/views/salaryEmployeeLists.vue @@ -17,14 +17,14 @@ import type { } from "@/modules/13_salary/interface/response/SalaryList"; /** importComponents*/ -import TabGroup from "@/modules/13_salary/components/SalaryLists/TabMain.vue"; +import TabGroup from "@/modules/13_salary/components/SalaryEmployeeLists/TabMain.vue"; /** importStore*/ -import { useSalaryListSDataStore } from "@/modules/13_salary/store/SalaryListsStore"; +import { useSalaryEmployeeListSDataStore } from "@/modules/13_salary/store/SalaryEmployeeListsStore"; import { useCounterMixin } from "@/stores/mixin"; /** use*/ -const store = useSalaryListSDataStore(); +const store = useSalaryEmployeeListSDataStore(); const $q = useQuasar(); const { messageError, showLoader, hideLoader } = useCounterMixin();