update logika dan flow anjungan, master, store

This commit is contained in:
bagus-arie05
2025-12-16 09:58:25 +07:00
parent 4c2c68d993
commit 78de0418e1
23 changed files with 4169 additions and 2973 deletions

No files matched your search

+23 -4
View File
@@ -31,12 +31,28 @@ export const useQueue = (adminType = "loket") => {
return queueStore.currentProcessingPatient[adminType];
});
// Derive from stagePatients
const diLoketPatients = computed(() => stagePatients.value.diLoket || []);
// Derive from stagePatients - ADD DEBUG LOGS
const diLoketPatients = computed(() => {
const patients = stagePatients.value.diLoket || [];
console.log('🔍 useQueue - diLoketPatients:', patients.length);
if (patients.length > 0) {
console.log('🔍 First diLoket patient:', patients[0]);
console.log('🔍 First diLoket patient fastTrack:', patients[0].fastTrack);
}
return patients;
});
const terlambatPatients = computed(() => stagePatients.value.terlambat || []);
const terlambatPatients = computed(() => {
const patients = stagePatients.value.terlambat || [];
console.log('🔍 useQueue - terlambatPatients:', patients.length);
return patients;
});
const pendingPatients = computed(() => stagePatients.value.pending || []);
const pendingPatients = computed(() => {
const patients = stagePatients.value.pending || [];
console.log('🔍 useQueue - pendingPatients:', patients.length);
return patients;
});
const waitingPatients = computed(() => stagePatients.value.waiting || []);
@@ -52,6 +68,9 @@ export const useQueue = (adminType = "loket") => {
const quotaUsed = computed(() => queueStore.quotaUsed);
// Expose dev helper to refresh seed data
const resetPatients = () => queueStore.resetPatients();
// Filtered lists
const filteredKliniks = computed(() => {
if (!klinikSearch.value) return queueStore.kliniks;