refs #4204 Added param URL labelCount and
gitea/salix/pipeline/head There was a failure building this commit Details

changes in the css
This commit is contained in:
Guillermo Bonet 2022-12-13 18:05:29 +01:00
parent 1f0f5adcd8
commit b7a369a41c
5 changed files with 16 additions and 6 deletions

View File

@ -11,7 +11,12 @@ module.exports = Self => {
required: true,
description: 'The ticket id',
http: {source: 'path'}
},
}, {
arg: 'labelCount',
type: 'number',
required: true,
description: 'The number of labels'
}
],
returns: [
{

View File

@ -13,11 +13,12 @@ html {
font-size: 29px;
margin-left: -13px;
}
.outline {
#outline {
border: 1px solid black;
padding: 5px;
height: 37px;
width: 100px;
max-width: 100px;
}
#nickname {
font-size: 22px;

View File

@ -12,13 +12,13 @@
</tr>
<tr>
<td rowspan="3"><div v-html="getBarcode(labelData.ticketFk)" id="barcode"></div></td>
<td class="outline">{{labelData.workerCode || '---'}}</td>
<td id="outline" class="ellipsize">{{labelData.workerCode || '---'}}</td>
</tr>
<tr>
<td class="outline">{{labelData.labelCount || 0}}</td>
<td id="outline" class="ellipsize">{{labelCount || 0}}</td>
</tr>
<tr>
<td class="outline">{{labelData.code == 'V' ? (labelData.size || 0) + 'cm' : (labelData.volume || 0) + 'm³'}}</td>
<td id="outline" class="ellipsize">{{labelData.code == 'V' ? (labelData.size || 0) + 'cm' : (labelData.volume || 0) + 'm³'}}</td>
</tr>
<tr>
<td><div id="agencyDescripton" class="ellipsize">{{labelData.agencyDescription ? labelData.agencyDescription.toUpperCase() : '---'}}</div></td>

View File

@ -11,6 +11,11 @@ module.exports = {
type: Number,
required: true,
description: 'The ticket or collection id'
},
labelCount: {
type: Number,
required: true,
description: 'The number of labels'
}
},
async serverPrefetch() {

View File

@ -13,7 +13,6 @@ SELECT c.itemPackingTypeFk code,
TIME_FORMAT(zo.`hour`, '%H:%i') zoneHour,
DATE_FORMAT(t.shipped, '%d/%m/%y') shipped,
t.nickName,
tt.labelCount,
COUNT(*) lineCount
FROM vn.ticket t
JOIN vn.ticketCollection tc ON tc.ticketFk = t.id