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 () => {