This commit is contained in:
@@ -228,7 +228,7 @@
|
|||||||
<div>
|
<div>
|
||||||
<h3 class="text-lg font-semibold">Detalle de Operación</h3>
|
<h3 class="text-lg font-semibold">Detalle de Operación</h3>
|
||||||
<p class="text-sm text-gray-500" v-if="selectedOperacion">
|
<p class="text-sm text-gray-500" v-if="selectedOperacion">
|
||||||
{{ getTipoLabel(selectedOperacion.tipo) }} · {{ formatDate(selectedOperacion.fecha) }}
|
{{ getOperacionTipoLabel(selectedOperacion.tipo) }} · {{ formatDate(selectedOperacion.fecha) }}
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
<UButton icon="i-heroicons-x-mark" variant="ghost" @click="closeOperacionDetailModal" />
|
<UButton icon="i-heroicons-x-mark" variant="ghost" @click="closeOperacionDetailModal" />
|
||||||
@@ -246,7 +246,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="col-span-2">
|
<div class="col-span-2">
|
||||||
<p class="text-xs uppercase text-gray-500">Tipo</p>
|
<p class="text-xs uppercase text-gray-500">Tipo</p>
|
||||||
<UBadge color="blue" variant="subtle">{{ getTipoLabel(selectedOperacion.tipo) }}</UBadge>
|
<UBadge color="blue" variant="subtle">{{ getOperacionTipoLabel(selectedOperacion.tipo) }}</UBadge>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
@@ -351,6 +351,21 @@ const closeOperacionDetailModal = () => {
|
|||||||
selectedOperacion.value = null
|
selectedOperacion.value = null
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const getOperacionTipoLabel = (tipo: string) => {
|
||||||
|
const found = TIPOS_OPERACION.find((t) => t.value === tipo)
|
||||||
|
return found?.label || tipo
|
||||||
|
}
|
||||||
|
|
||||||
|
const formatDate = (dateString: string) => {
|
||||||
|
return new Date(dateString).toLocaleDateString('es-AR', {
|
||||||
|
day: '2-digit',
|
||||||
|
month: '2-digit',
|
||||||
|
year: 'numeric',
|
||||||
|
hour: '2-digit',
|
||||||
|
minute: '2-digit',
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
// Datos para grafos
|
// Datos para grafos
|
||||||
const graphSelectItems = computed(() =>
|
const graphSelectItems = computed(() =>
|
||||||
graphLotes.value.map((lote) => ({
|
graphLotes.value.map((lote) => ({
|
||||||
|
|||||||
@@ -81,6 +81,18 @@
|
|||||||
class="transition-opacity duration-200"
|
class="transition-opacity duration-200"
|
||||||
:opacity="0.9"
|
:opacity="0.9"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
|
<!-- tramo diagonal suave (opcional) -->
|
||||||
|
<line
|
||||||
|
v-if="edge.toPos.x !== edge.fromPos.x"
|
||||||
|
:x1="edge.fromPos.x"
|
||||||
|
:y1="edge.midPos.y"
|
||||||
|
:x2="edge.toPos.x"
|
||||||
|
:y2="edge.toPos.y"
|
||||||
|
class="transition-opacity duration-200"
|
||||||
|
:opacity="0.4"
|
||||||
|
stroke-dasharray="4 6"
|
||||||
|
/>
|
||||||
</template>
|
</template>
|
||||||
</g>
|
</g>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user