update logika dan flow anjungan, master, store
This commit is contained in:
No files matched your search
+23
-4
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user