Verbesserung: Hinzufügen von Protokollausgaben zur Eventverarbeitung in StatusBar.vue und BranchView.vue
Änderungen: - In der StatusBar.vue wurden Protokollausgaben hinzugefügt, um den Event-Typ und den Erfolg oder Fehler des fetchStatus-Aufrufs zu dokumentieren. - In der BranchView.vue wurden Protokollausgaben hinzugefügt, um den Event-Typ und den Status der Aktualisierung aller Sektionen zu protokollieren. Diese Anpassungen verbessern die Nachvollziehbarkeit der Eventverarbeitung und erleichtern die Fehlersuche.
This commit is contained in:
@@ -218,6 +218,8 @@ export default {
|
||||
},
|
||||
|
||||
handleEvent(eventData) {
|
||||
console.log('🔄 BranchView: handleEvent aufgerufen mit:', eventData);
|
||||
console.log('🔄 BranchView: Event-Typ:', eventData.event);
|
||||
switch (eventData.event) {
|
||||
case 'production_ready':
|
||||
this.$refs.productionSection?.loadProductions();
|
||||
@@ -243,10 +245,13 @@ export default {
|
||||
break;
|
||||
case 'falukantUpdateStatus':
|
||||
case 'falukantBranchUpdate':
|
||||
console.log('🔄 BranchView: Lade alle Sektionen für', eventData.event);
|
||||
console.log('🔄 BranchView: StatusBar ref:', this.$refs.statusBar);
|
||||
this.$refs.statusBar?.fetchStatus();
|
||||
this.$refs.productionSection?.loadProductions();
|
||||
this.$refs.storageSection?.loadStorageData();
|
||||
this.$refs.saleSection?.loadInventory();
|
||||
console.log('✅ BranchView: Alle Sektionen aktualisiert');
|
||||
break;
|
||||
case 'knowledge_update':
|
||||
this.loadProducts();
|
||||
|
||||
Reference in New Issue
Block a user