diff --git a/src/modules/13_salary/components/SalaryLists/Dashboard.vue b/src/modules/13_salary/components/SalaryLists/Dashboard.vue
new file mode 100644
index 000000000..bccf67244
--- /dev/null
+++ b/src/modules/13_salary/components/SalaryLists/Dashboard.vue
@@ -0,0 +1,4 @@
+
+ หน่วยงาน ทั้งหมด
+
+
diff --git a/src/modules/13_salary/components/SalaryLists/TabMain.vue b/src/modules/13_salary/components/SalaryLists/TabMain.vue
index 42028eba8..fd9228e3e 100644
--- a/src/modules/13_salary/components/SalaryLists/TabMain.vue
+++ b/src/modules/13_salary/components/SalaryLists/TabMain.vue
@@ -6,6 +6,7 @@ import config from "@/app.config";
import genReportXLSX from "@/plugins/genreportxlsx";
import DialogInfoCriteria from "@/modules/13_salary/components/SalaryLists/DialogInfoCriteria.vue";
+
/** importType*/
import type { DataOption } from "@/modules/13_salary/interface/index/Main";
import type { DataFilter } from "@/modules/13_salary/interface/index/SalaryList";
@@ -134,13 +135,19 @@ const itemsCard = ref([
color: "indigo-6",
total: 0,
},
-
+ {
+ lable: "สำรอง",
+ name: "group2",
+ color: "red-6",
+ total: 0,
+ },
{
lable: "จำนวนเงินคนครองปัจจุบัน",
name: "group1",
color: "secondary",
total: 0,
},
+
{
lable: "วงเงิน 6%",
name: "group2",
@@ -171,6 +178,12 @@ const itemsCard = ref([
color: "green-6",
total: 0,
},
+ {
+ lable: "สำรอง",
+ name: "group2",
+ color: "red-6",
+ total: 0,
+ },
]);
/** ข้อมูลค้นหารายชื่อคยขึ้นเงินเดือน*/
@@ -196,14 +209,17 @@ function fetchDataQuota(id: string) {
itemsCard.value[0].total = data.total;
itemsCard.value[1].total = data.fifteenPercent;
itemsCard.value[2].total = data.chosen;
- itemsCard.value[3].total = data.remaining;
+ itemsCard.value[3].total = data.remaining;
+ itemsCard.value[4].total = data.totalBackup;
- itemsCard.value[4].total = data.currentAmount;
- itemsCard.value[5].total = data.sixPercentAmount;
- itemsCard.value[6].total = data.spentAmount;
- itemsCard.value[7].total = data.sixPercentSpentAmount;
- itemsCard.value[8].total = data.useAmount;
- itemsCard.value[9].total = data.remainingAmount;
+ itemsCard.value[5].total = data.currentAmount;
+ itemsCard.value[6].total = data.sixPercentAmount;
+ itemsCard.value[7].total = data.spentAmount;
+ itemsCard.value[8].total = data.sixPercentSpentAmount;
+ itemsCard.value[9].total = data.useAmount;
+ itemsCard.value[10].total = data.remainingAmount;
+
+ itemsCard.value[11].total = data.totalBackup;
})
.catch((err) => {
messageError($q, err);
@@ -333,9 +349,9 @@ onMounted(async () => {
-
- เพิ่ม
+
+ เพิ่ม
-
+
{{
- (formFilter.page - 1) * formFilter.pageSize + props.rowIndex + 1
+ store.tabType == "FULL"
+ ? props.row.isReserve == true
+ ? (formFilter.page - 1) * formFilter.pageSize +
+ props.rowIndex +
+ 1 +
+ "(สำรอง)"
+ : (formFilter.page - 1) * formFilter.pageSize +
+ props.rowIndex +
+ 1
+ : (formFilter.page - 1) * formFilter.pageSize +
+ props.rowIndex +
+ 1
}}
@@ -369,8 +385,9 @@ watch(
{{ col.value ? col.value : "-" }}
-
+
-
+
เพิ่ม
@@ -485,6 +485,7 @@ watch(
{
const data = res.data.result;
- agencyOptions.value = await data.map((x: DataAgency) => ({
- id: x.id,
- name: x.orgRootName,
- }));
+ agencyOptions.value = await [
+ {
+ id: "ALL",
+ name: "ทั้งหมด",
+ },
+ ].concat(
+ data.map((x: DataAgency) => ({
+ id: x.id,
+ name: x.orgRootName,
+ }))
+ );
// agencyFilter.value = store.rootId;
})
.catch((err) => {
@@ -264,7 +271,7 @@ async function onChangeSnap() {
async function onChangeAgency() {
store.rootId = agencyFilter.value;
- if (agencyFilter.value && roundFilter.value.id && snapFilter.value) {
+ if (agencyFilter.value !== 'ALL' && roundFilter.value.id && snapFilter.value) {
await fetchSalalyPeriod(
agencyFilter.value,
roundFilter.value.id,
@@ -386,6 +393,9 @@ onMounted(async () => {
-->
+
+
+
@@ -394,9 +404,18 @@ onMounted(async () => {
+
+
-
+