report-footer use function
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Alex Moreno 2022-03-23 09:27:10 +01:00
parent 4112fe84c0
commit 4a323d2cfb
2 changed files with 5 additions and 1 deletions

View File

@ -281,7 +281,7 @@
<!-- Footer block --> <!-- Footer block -->
<report-footer id="pageFooter" <report-footer id="pageFooter"
v-bind:company-code="ticket.companyCode" v-bind:company-code="ticket.companyCode"
v-bind:left-text="$t(type) + ' ' + ticket.id" v-bind:left-text="footerType()"
v-bind:center-text="client.socialName" v-bind:center-text="client.socialName"
v-bind="$props"> v-bind="$props">
</report-footer> </report-footer>

View File

@ -109,6 +109,10 @@ module.exports = {
return phytosanitary.filter((item, index) => return phytosanitary.filter((item, index) =>
phytosanitary.indexOf(item) == index phytosanitary.indexOf(item) == index
).join(', '); ).join(', ');
},
footerType() {
const translatedType = this.$t(this.type);
return `${translatedType} ${this.ticketId}`;
} }
}, },
components: { components: {