Merge pull request 'remove(barcode): refs #5228 remove barcode from report' (!1847) from 5228-fixPalletReport into dev
gitea/salix/pipeline/head This commit looks good
Details
gitea/salix/pipeline/head This commit looks good
Details
Reviewed-on: #1847 Reviewed-by: Alex Moreno <alexm@verdnatura.es>
This commit is contained in:
commit
bddb787075
|
@ -56,9 +56,6 @@ html {
|
||||||
margin-left: 35px;
|
margin-left: 35px;
|
||||||
float:left;
|
float:left;
|
||||||
}
|
}
|
||||||
#barcode{
|
|
||||||
text-align: center;
|
|
||||||
}
|
|
||||||
#right {
|
#right {
|
||||||
float: right;
|
float: right;
|
||||||
margin-top: 20px;
|
margin-top: 20px;
|
||||||
|
|
|
@ -9,7 +9,6 @@
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
<div v-html="getBarcode(labelData.palletFk)" id="barcode"></div>
|
|
||||||
<table v-for="labelData in labelsData" class="zoneTable">
|
<table v-for="labelData in labelsData" class="zoneTable">
|
||||||
<thead>
|
<thead>
|
||||||
<tr v-if="!labelData.isMatch" id="black">
|
<tr v-if="!labelData.isMatch" id="black">
|
||||||
|
|
|
@ -39,19 +39,5 @@ module.exports = {
|
||||||
const data = String(id);
|
const data = String(id);
|
||||||
return qrcode.toDataURL(data, {margin: 0});
|
return qrcode.toDataURL(data, {margin: 0});
|
||||||
},
|
},
|
||||||
getBarcode(id) {
|
|
||||||
const xmlSerializer = new XMLSerializer();
|
|
||||||
const document = new DOMImplementation().createDocument('http://www.w3.org/1999/xhtml', 'html', null);
|
|
||||||
const svgNode = document.createElementNS('http://www.w3.org/2000/svg', 'svg');
|
|
||||||
|
|
||||||
jsBarcode(svgNode, id, {
|
|
||||||
xmlDocument: document,
|
|
||||||
format: 'code128',
|
|
||||||
displayValue: false,
|
|
||||||
width: 6,
|
|
||||||
height: 90,
|
|
||||||
});
|
|
||||||
return xmlSerializer.serializeToString(svgNode);
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue