|
|
@@ -53,7 +53,7 @@
|
|
|
:model-value="store.selectedUnit"
|
|
|
:options="userUnits"
|
|
|
option-value="id"
|
|
|
- option-label="fantasy_name"
|
|
|
+ :option-label="getUnitLabel"
|
|
|
label="Unidade"
|
|
|
outlined
|
|
|
style="width: 280px; flex-shrink: 0"
|
|
|
@@ -328,6 +328,8 @@ const userUnits = computed(() => store.user?.units ?? []);
|
|
|
const user = computed(() => store.user);
|
|
|
const unitDetails = ref(null);
|
|
|
const unitInfo = computed(() => unitDetails.value || store.selectedUnit || {});
|
|
|
+const getUnitLabel = (unit) =>
|
|
|
+ unit?.fantasy_name || unit?.social_reason || "Unidade sem nome";
|
|
|
|
|
|
// ------------------- Notificações (sino) -------------------
|
|
|
const notifications = ref([]);
|