salix/print/templates/reports/buy-label/buy-label.html

90 lines
2.6 KiB
HTML
Raw Normal View History

2024-06-28 10:57:27 +00:00
<!DOCTYPE html>
<html>
<table v-for="buy in buys" style="break-before: page">
<tbody>
<tr>
<td colspan="2">
2024-06-28 12:52:19 +00:00
<div id="variant" class="cell">
<span class="lbl">{{$t('variety')}}</span>
2024-06-28 10:57:27 +00:00
{{buy.name}}
</div>
</td>
<td>
<div class="cell">
<span class="lbl">{{$t('size')}}</span>
2024-06-28 10:57:27 +00:00
{{buy.size}}
</div>
</td>
</tr>
<tr>
<td>
<div class="cell">
<span class="lbl">{{$t('category')}}</span>
2024-06-28 10:57:27 +00:00
{{buy.category}}
</div>
</td>
<td>
<div class="cell">
<span class="lbl">{{$t('color')}}</span>
2024-06-28 10:57:27 +00:00
{{buy.color}}
</div>
</td>
<td>
<div class="cell">
<span class="lbl">{{$t('origin')}}</span>
2024-06-28 12:52:19 +00:00
{{buy.code}}
2024-06-28 10:57:27 +00:00
</div>
</td>
</tr>
<tr>
<td>
<div class="cell">
<span class="lbl">{{$t('packing')}}</span>
2024-06-28 10:57:27 +00:00
{{buy.packing}}
</div>
</td>
<td>
<div class="cell">
<span class="lbl">{{$t('grouping')}}</span>
2024-06-28 10:57:27 +00:00
{{buy.grouping}}
</div>
</td>
<td>
<div class="cell">
<span class="lbl">{{$t('saleUnit')}}</span>
2024-06-28 10:57:27 +00:00
{{buy.stems}}
</div>
</td>
</tr>
<tr>
2024-06-28 12:52:19 +00:00
<td colspan="3" class="barcode">
2024-06-28 10:57:27 +00:00
<div v-html="getBarcode(buy.id)"></div>
<span>{{buy.id}}</span>
</td>
</tr>
<tr>
<td colspan="3">
2024-06-28 12:52:19 +00:00
<div id="producer" class="cell">
<span class="lbl">{{$t('producer')}}</span>
2024-06-28 10:57:27 +00:00
{{buy.producer}}
</div>
</td>
</tr>
<tr>
2024-06-28 12:52:19 +00:00
<td colspan="2">
<div class="cell">
<span class="lbl">{{$t('control')}}</span>
2024-07-01 06:00:27 +00:00
{{`${weekNum} / ${dayNum}`}}
2024-06-28 12:52:19 +00:00
</div>
</td>
<td>
<div class="cell">
<span class="lbl">{{$t('boxNum')}}</span>
2024-06-28 12:52:19 +00:00
{{`${buy.labelNum} / ${maxLabelNum}`}}
2024-06-28 10:57:27 +00:00
</div>
</td>
</tr>
</tbody>
</table>
</html>