From 9dacfc68359e4b0b95bfe07a0dc4b8b223c63901 Mon Sep 17 00:00:00 2001 From: "DESKTOP-1R2VSQH\\Lenovo ThinkPad E490" Date: Tue, 19 Mar 2024 14:42:50 +0700 Subject: [PATCH] =?UTF-8?q?=E0=B8=A3=E0=B8=B2=E0=B8=A2=E0=B8=81=E0=B8=B2?= =?UTF-8?q?=E0=B8=A3=E0=B9=80=E0=B8=A5=E0=B8=B7=E0=B9=88=E0=B8=AD=E0=B8=99?= =?UTF-8?q?=E0=B9=80=E0=B8=87=E0=B8=B4=E0=B8=99=E0=B9=80=E0=B8=94=E0=B8=B7?= =?UTF-8?q?=E0=B8=AD=E0=B8=99=E0=B8=A5=E0=B8=B9=E0=B8=81=E0=B8=88=E0=B9=89?= =?UTF-8?q?=E0=B8=B2=E0=B8=87=E0=B8=9B=E0=B8=A3=E0=B8=B0=E0=B8=88=E0=B8=B3?= =?UTF-8?q?=20=3D=20>=20=E0=B8=AA=E0=B9=88=E0=B8=87=E0=B8=AD=E0=B8=AD?= =?UTF-8?q?=E0=B8=81=E0=B8=84=E0=B8=B3=E0=B8=AA=E0=B8=B1=E0=B9=88=E0=B8=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../SalaryEmployeeLists/ProcessStep.vue | 25 +++++++++++++------ .../SalaryEmployeeLists/TabMain.vue | 1 + .../store/SalaryEmployeeListsStore.ts | 2 ++ 3 files changed, 21 insertions(+), 7 deletions(-) diff --git a/src/modules/13_salary/components/SalaryEmployeeLists/ProcessStep.vue b/src/modules/13_salary/components/SalaryEmployeeLists/ProcessStep.vue index 4e49670df..346d04a65 100644 --- a/src/modules/13_salary/components/SalaryEmployeeLists/ProcessStep.vue +++ b/src/modules/13_salary/components/SalaryEmployeeLists/ProcessStep.vue @@ -7,9 +7,11 @@ import config from "@/app.config"; import DialogPopupReason from "@/components/Dialogs/PopupReason.vue"; //หมายเหตุ import { useCounterMixin } from "@/stores/mixin"; +import { useSalaryEmployeeListSDataStore } from "@/modules/13_salary/store/SalaryEmployeeListsStore"; const $q = useQuasar(); //ใช้ noti quasar const mixin = useCounterMixin(); +const store = useSalaryEmployeeListSDataStore(); const { messageError, dialogConfirm, showLoader, hideLoader, success } = mixin; const props = defineProps({ @@ -173,7 +175,7 @@ function sendAndRecommend(title: string, typeOrder: string) {
+
diff --git a/src/modules/13_salary/components/SalaryEmployeeLists/TabMain.vue b/src/modules/13_salary/components/SalaryEmployeeLists/TabMain.vue index 17b0470ef..56747c560 100644 --- a/src/modules/13_salary/components/SalaryEmployeeLists/TabMain.vue +++ b/src/modules/13_salary/components/SalaryEmployeeLists/TabMain.vue @@ -221,6 +221,7 @@ function fetchDataQuota(id: string) { .then((res) => { const data = res.data.result; store.remaining = data.remaining; + store.statusQuota = data.status; itemsCard.value[0].total = data.total; itemsCard.value[1].total = data.fifteenPercent; itemsCard.value[2].total = data.chosen; diff --git a/src/modules/13_salary/store/SalaryEmployeeListsStore.ts b/src/modules/13_salary/store/SalaryEmployeeListsStore.ts index 880ae97de..c7a7f6900 100644 --- a/src/modules/13_salary/store/SalaryEmployeeListsStore.ts +++ b/src/modules/13_salary/store/SalaryEmployeeListsStore.ts @@ -26,6 +26,7 @@ export const useSalaryEmployeeListSDataStore = defineStore( const roundYear = ref(0); const roundCode = ref(""); const isClosedRound = ref(false); // การปิดรอบ + const statusQuota = ref(""); /** List Menu*/ const itemMenu = ref([ { @@ -157,6 +158,7 @@ export const useSalaryEmployeeListSDataStore = defineStore( remaining, isClosedRound, roundYear, + statusQuota, }; } );