feat: implement queue display system with localized store, composables, and administrative dashboard pages

This commit is contained in:
Fanrouver
2026-06-02 09:14:38 +07:00
parent ffdb88d13c
commit 047b39064d
12 changed files with 2345 additions and 46 deletions

No files matched your search

+6 -4
View File
@@ -186,14 +186,15 @@ export const useQueue = (adminType = "loket", specificId = null) => {
showSnackbar(result.message, result.success ? "success" : "warning");
};
const processPatient = (patient, action) => {
const result = queueStore.processPatient(patient, action, adminType, idValue.value);
const processPatient = async (patient, action) => {
const result = await queueStore.processPatient(patient, action, adminType, idValue.value);
let color = "success";
if (action === "terlambat") color = "warning";
else if (action === "pending") color = "info";
showSnackbar(result.message, color);
return result;
};
// Helper function untuk mendapatkan pasien yang sedang diproses dari store
@@ -293,9 +294,10 @@ export const useQueue = (adminType = "loket", specificId = null) => {
};
const processNextQueue = () => {
const result = queueStore.processNextQueue(adminType, idValue.value);
const processNextQueue = async () => {
const result = await queueStore.processNextQueue(adminType, idValue.value);
showSnackbar(result.message, result.success ? "success" : "warning");
return result;
};
const getRowClass = (item) => {