refs #6745 fix(claimDescriptor= claimRatio label. fix(TicketSummary): state can be null
gitea/salix-front/pipeline/head This commit looks good Details

This commit is contained in:
Alex Moreno 2024-01-25 08:46:51 +01:00
parent b3fc865c18
commit 47fd0b2dfd
2 changed files with 10 additions and 4 deletions

View File

@ -145,7 +145,7 @@ const setData = (entity) => {
/> />
<VnLv :label="t('claim.card.zone')" :value="entity.ticket?.zone?.name" /> <VnLv :label="t('claim.card.zone')" :value="entity.ticket?.zone?.name" />
<VnLv <VnLv
:label="t('claim.card.zone')" :label="t('claimRate')"
:value="toPercentage(entity.client?.claimsRatio?.claimingRate)" :value="toPercentage(entity.client?.claimsRatio?.claimingRate)"
/> />
</template> </template>
@ -176,3 +176,9 @@ const setData = (entity) => {
margin-top: 0; margin-top: 0;
} }
</style> </style>
<i18n>
en:
claimRate: Claming rate
es:
claimRate: Ratio de reclamación
</i18n>

View File

@ -58,7 +58,7 @@ function formattedAddress() {
function isEditable() { function isEditable() {
try { try {
return !ticket.value.ticketState.state.alertLevel; return !ticket.value.ticketState?.state?.alertLevel;
} catch (e) { } catch (e) {
console.error(e); console.error(e);
} }
@ -153,8 +153,8 @@ async function changeState(value) {
</a> </a>
<VnLv :label="t('ticket.summary.state')"> <VnLv :label="t('ticket.summary.state')">
<template #value> <template #value>
<QChip :color="ticket.ticketState.state.classColor ?? 'dark'"> <QChip :color="ticket.ticketState?.state?.classColor ?? 'dark'">
{{ ticket.ticketState.state.name }} {{ ticket.ticketState?.state?.name }}
</QChip> </QChip>
</template> </template>
</VnLv> </VnLv>