Merge branch 'dev' into 6454-dbDump
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Alex Moreno 2023-11-21 10:58:21 +00:00
commit 95a55f612d
3 changed files with 0 additions and 18 deletions

View File

@ -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;

View File

@ -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">

View File

@ -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);
},
}, },
}; };