forked from verdnatura/salix-front
Merge branch 'dev' into 7154-ItemDescriptor
This commit is contained in:
commit
4045a3a631
|
@ -472,6 +472,7 @@ ticket:
|
||||||
agency: Agency
|
agency: Agency
|
||||||
zone: Zone
|
zone: Zone
|
||||||
warehouse: Warehouse
|
warehouse: Warehouse
|
||||||
|
collection: Collection
|
||||||
route: Route
|
route: Route
|
||||||
invoice: Invoice
|
invoice: Invoice
|
||||||
shipped: Shipped
|
shipped: Shipped
|
||||||
|
|
|
@ -470,6 +470,7 @@ ticket:
|
||||||
agency: Agencia
|
agency: Agencia
|
||||||
zone: Zona
|
zone: Zona
|
||||||
warehouse: Almacén
|
warehouse: Almacén
|
||||||
|
collection: Colección
|
||||||
route: Ruta
|
route: Ruta
|
||||||
invoice: Factura
|
invoice: Factura
|
||||||
shipped: Enviado
|
shipped: Enviado
|
||||||
|
|
|
@ -35,6 +35,7 @@ const ticket = ref();
|
||||||
const salesLines = ref(null);
|
const salesLines = ref(null);
|
||||||
const editableStates = ref([]);
|
const editableStates = ref([]);
|
||||||
const ticketUrl = ref();
|
const ticketUrl = ref();
|
||||||
|
const grafanaUrl = 'https://grafana.verdnatura.es';
|
||||||
|
|
||||||
onMounted(async () => {
|
onMounted(async () => {
|
||||||
ticketUrl.value = (await getUrl('ticket/')) + entityId.value + '/';
|
ticketUrl.value = (await getUrl('ticket/')) + entityId.value + '/';
|
||||||
|
@ -159,6 +160,20 @@ async function changeState(value) {
|
||||||
:label="t('ticket.summary.warehouse')"
|
:label="t('ticket.summary.warehouse')"
|
||||||
:value="ticket.warehouse?.name"
|
:value="ticket.warehouse?.name"
|
||||||
/>
|
/>
|
||||||
|
<VnLv
|
||||||
|
:label="t('ticket.summary.collection')"
|
||||||
|
:value="ticket.ticketCollections[0]?.collectionFk"
|
||||||
|
>
|
||||||
|
<template #value>
|
||||||
|
<a
|
||||||
|
:href="`${grafanaUrl}/d/d552ab74-85b4-4e7f-a279-fab7cd9c6124/control-de-expediciones?orgId=1&var-collectionFk=${ticket.ticketCollections[0]?.collectionFk}`"
|
||||||
|
target="_blank"
|
||||||
|
class="grafana"
|
||||||
|
>
|
||||||
|
{{ ticket.ticketCollections[0]?.collectionFk }}
|
||||||
|
</a>
|
||||||
|
</template>
|
||||||
|
</VnLv>
|
||||||
<VnLv :label="t('ticket.summary.route')" :value="ticket.routeFk" />
|
<VnLv :label="t('ticket.summary.route')" :value="ticket.routeFk" />
|
||||||
<VnLv :label="t('ticket.summary.invoice')">
|
<VnLv :label="t('ticket.summary.invoice')">
|
||||||
<template #value>
|
<template #value>
|
||||||
|
@ -487,4 +502,7 @@ async function changeState(value) {
|
||||||
.fetched-tags {
|
.fetched-tags {
|
||||||
max-width: 70%;
|
max-width: 70%;
|
||||||
}
|
}
|
||||||
|
.grafana {
|
||||||
|
color: $primary-light;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
Loading…
Reference in New Issue