fix: modified front to show new field
gitea/salix-front/pipeline/pr-dev This commit looks good
Details
gitea/salix-front/pipeline/pr-dev This commit looks good
Details
This commit is contained in:
parent
c465286718
commit
d4d03c160b
|
@ -453,6 +453,7 @@ ticket:
|
||||||
service: Service
|
service: Service
|
||||||
attender: Attender
|
attender: Attender
|
||||||
ok: Ok
|
ok: Ok
|
||||||
|
consigneeStreet: Street
|
||||||
create:
|
create:
|
||||||
address: Address
|
address: Address
|
||||||
invoiceOut:
|
invoiceOut:
|
||||||
|
|
|
@ -448,6 +448,7 @@ ticket:
|
||||||
purchaseRequest: Petición de compra
|
purchaseRequest: Petición de compra
|
||||||
service: Servicio
|
service: Servicio
|
||||||
attender: Consignatario
|
attender: Consignatario
|
||||||
|
consigneeStreet: Dirección
|
||||||
create:
|
create:
|
||||||
address: Dirección
|
address: Dirección
|
||||||
order:
|
order:
|
||||||
|
|
|
@ -48,16 +48,6 @@ onMounted(async () => {
|
||||||
ticketUrl.value = (await getUrl('ticket/')) + entityId.value + '/';
|
ticketUrl.value = (await getUrl('ticket/')) + entityId.value + '/';
|
||||||
});
|
});
|
||||||
|
|
||||||
function formattedAddress() {
|
|
||||||
if (!ticket.value) return '';
|
|
||||||
|
|
||||||
const address = ticket.value.address;
|
|
||||||
const postcode = address.postalCode;
|
|
||||||
const province = address.province ? `(${address.province.name})` : '';
|
|
||||||
|
|
||||||
return `${address.street} - ${postcode} - ${address.city} ${province}`;
|
|
||||||
}
|
|
||||||
|
|
||||||
function isEditable() {
|
function isEditable() {
|
||||||
try {
|
try {
|
||||||
return !ticket.value.ticketState?.state?.alertLevel;
|
return !ticket.value.ticketState?.state?.alertLevel;
|
||||||
|
@ -244,7 +234,11 @@ function toTicketUrl(section) {
|
||||||
</VnLv>
|
</VnLv>
|
||||||
<VnLv
|
<VnLv
|
||||||
:label="t('ticket.summary.consignee')"
|
:label="t('ticket.summary.consignee')"
|
||||||
:value="formattedAddress()"
|
:value="`${entity.address?.nickname} #${entity.address?.id}`"
|
||||||
|
/>
|
||||||
|
<VnLv
|
||||||
|
:label="t('ticket.summary.consigneeStreet')"
|
||||||
|
:value="entity.address?.street"
|
||||||
/>
|
/>
|
||||||
</QCard>
|
</QCard>
|
||||||
<QCard class="vn-one" v-if="entity.notes.length">
|
<QCard class="vn-one" v-if="entity.notes.length">
|
||||||
|
@ -454,7 +448,7 @@ function toTicketUrl(section) {
|
||||||
toCurrency(
|
toCurrency(
|
||||||
props.row.quantity *
|
props.row.quantity *
|
||||||
props.row.price *
|
props.row.price *
|
||||||
((100 - props.row.discount) / 100)
|
((100 - props.row.discount) / 100),
|
||||||
)
|
)
|
||||||
}}
|
}}
|
||||||
</QTd>
|
</QTd>
|
||||||
|
|
Loading…
Reference in New Issue