7658-devToTest_2428 #2663
|
@ -74,7 +74,7 @@
|
|||
<td colspan="2">
|
||||
<div class="cell">
|
||||
<span class="lbl">Control</span>
|
||||
06 / 11
|
||||
{{`${weekNum} / ${dayNum}`}}
|
||||
</div>
|
||||
</td>
|
||||
<td>
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
const vnReport = require('../../../core/mixins/vn-report.js');
|
||||
const {DOMImplementation, XMLSerializer} = require('xmldom');
|
||||
const jsBarcode = require('jsbarcode');
|
||||
const moment = require('moment');
|
||||
|
||||
module.exports = {
|
||||
name: 'entry-label',
|
||||
|
@ -8,6 +9,9 @@ module.exports = {
|
|||
async serverPrefetch() {
|
||||
this.buys = await this.rawSqlFromDef('entry', [this.id]);
|
||||
this.maxLabelNum = Math.max(...this.buys.map(buy => buy.labelNum));
|
||||
const date = new Date();
|
||||
this.weekNum = moment(date).isoWeek();
|
||||
this.dayNum = moment(date).day();
|
||||
},
|
||||
methods: {
|
||||
getBarcode(id) {
|
||||
|
|
Loading…
Reference in New Issue