fix labels not working on test data refs #4732 @2h
This commit is contained in:
parent
52630f0a25
commit
884286015f
|
@ -41,7 +41,7 @@
|
|||
color: #FFF
|
||||
}
|
||||
|
||||
.data .color,
|
||||
.data .sector,
|
||||
.data .producer {
|
||||
text-transform: uppercase;
|
||||
text-align: right;
|
||||
|
@ -51,6 +51,15 @@
|
|||
overflow: hidden;
|
||||
}
|
||||
|
||||
.data .sector-sm {
|
||||
text-transform: uppercase;
|
||||
text-align: right;
|
||||
font-size: 1.2em;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.data .producer {
|
||||
text-justify: inter-character;
|
||||
}
|
||||
|
|
|
@ -11,7 +11,10 @@
|
|||
</div>
|
||||
<div class="data">
|
||||
<div class="header">PREVIA</div>
|
||||
<div class="color">{{sector.description}}</div>
|
||||
<div v-if="sector.description.length > 16" class="sector-sm">
|
||||
{{sector.description}}
|
||||
</div>
|
||||
<div v-else class="sector">{{sector.description}}</div>
|
||||
<div class="producer">Ticket #{{previa.ticketFk}}</div>
|
||||
<div class="details">
|
||||
<div class="package">
|
||||
|
|
|
@ -11,14 +11,10 @@ module.exports = {
|
|||
this.barcode = await this.getBarcodeBase64(this.id);
|
||||
|
||||
if (!this.previa)
|
||||
throw new Error('Something went wrong');
|
||||
throw new Error('Something went wrong - previa');
|
||||
|
||||
if (!this.sector)
|
||||
throw new Error('Something went wrong');
|
||||
},
|
||||
|
||||
computed: {
|
||||
|
||||
throw new Error('Something went wrong - sector');
|
||||
},
|
||||
methods: {
|
||||
fetchPrevia(id) {
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
select
|
||||
s.description
|
||||
`s`.`description`
|
||||
from
|
||||
vn.collection c
|
||||
`vn`.`saleGroup` sg
|
||||
join
|
||||
vn.sector s
|
||||
`vn`.`sector` s
|
||||
on
|
||||
s.id = c.sectorFk
|
||||
where c.id = ?
|
||||
`sg`.`sectorFk` = `s`.`id`
|
||||
where `sg`.`id` = ?
|
Loading…
Reference in New Issue