Commit 59bcf28e authored by dragondean@qq.com's avatar dragondean@qq.com Committed by houjn@hikoon.cn

修复合包标签打印不显示网址

parent 8db3465f
<template> <template>
<div> <div>
<div class="tag"> <div class="tag">
<div style="display: flex;height: 180px;"> <div style="display: flex;height: 160px;">
<div style="border-right: 1px solid #999; width: 140px"> <div style="border-right: 1px solid #999; width: 140px">
<div> <div>
<p style="margin-top: 1mm; text-align: center"> <p style="margin-top: 1mm; text-align: center">
<span style="text-align: center; font-weight: 600; font-size: 3mm">{{ $t('扫码查看产品数量') }}</span> <span style="text-align: center; font-weight: 600; font-size: 3mm">{{ $t('扫码查看产品数量1') }}</span>
</p> </p>
<img :src="tagData.qrCodeUrl" :alt="tagData.qrCodeUrl" style="width: 26mm" /> <img :src="tagData.qrCodeUrl" :alt="tagData.qrCodeUrl" style="width: 26mm"/>
<p style="margin-top: -1mm; text-align: center"> <p style="margin-top: -1mm; text-align: center">
<span style="text-align: center; font-weight: 600; font-size: 4mm">{{ tagData.mergePkgNo }}</span> <span style="text-align: center; font-weight: 600; font-size: 4mm">{{ tagData.mergePkgNo }}</span>
</p> </p>
...@@ -17,15 +17,17 @@ ...@@ -17,15 +17,17 @@
<p style="margin-top: 1mm; text-align: center"> <p style="margin-top: 1mm; text-align: center">
<span style="text-align: center; font-weight: 600; font-size: 4mm">{{ tagData.mergePkgNo }}</span> <span style="text-align: center; font-weight: 600; font-size: 4mm">{{ tagData.mergePkgNo }}</span>
</p> </p>
<div style="border-top: 1px solid #999;margin-left: 10px;" /> <div style="border-top: 1px solid #999;margin-left: 10px;"/>
<p style="margin-top: 1mm; text-align: center"> <p style="margin-top: 1mm; text-align: center">
<span style="text-align: center; font-weight: 600; font-size: 4mm">{{ tagData.company }}</span> <span style="text-align: center; font-weight: 600; font-size: 4mm">{{ tagData.company }}</span>
</p> </p>
<div style="border-top: 1px solid #999;margin-left: 10px;" /> <div style="border-top: 1px solid #999;margin-left: 10px;"/>
<p style="margin-top: 1mm; text-align: center"> <p style="margin-top: 1mm; text-align: center">
<span style="text-align: center; font-weight: 600; font-size: 4mm">{{ tagData.startWarehouse }} -> {{ tagData.endWarehouse }}</span> <span style="text-align: center; font-weight: 600; font-size: 4mm">{{
tagData.startWarehouse
}} -> {{ tagData.endWarehouse }}</span>
</p> </p>
<div style="border-top: 1px solid #999;margin-left: 10px;" /> <div style="border-top: 1px solid #999;margin-left: 10px;"/>
<div style="display: flex;margin-top: 10px;"> <div style="display: flex;margin-top: 10px;">
<div style="border-right: 1px solid #999;width: 45px;"> <div style="border-right: 1px solid #999;width: 45px;">
<p style="margin-top: 1mm; text-align: center"> <p style="margin-top: 1mm; text-align: center">
...@@ -40,18 +42,13 @@ ...@@ -40,18 +42,13 @@
</div> </div>
</div> </div>
</div> </div>
<div style="border-top: 1px solid #999;margin: 10px;" /> <div style="border-top: 1px solid #999;margin: 10px;"/>
<!--<div> <div style="padding: 10px; width: 250px; height: 20px; text-align: center; font-size: 12px; color:#000;">
<img :src="tagData.barcodeUrl" style="width:250px;height: 50px;" /> E&C Logistics: www.groupage.com
</div>-->
<div style="height: 50px;">
<p style="margin-top: 1mm; text-align: center">
<span style="text-align: center; font-weight: 600; font-size: 3mm">E&C Logistics: www.groupage.com</span>
</p>
</div> </div>
</div> </div>
<div style="text-align:center;margin-top: 20px;"> <div style="text-align:center;margin-top: 20px;">
<el-button type="primary" @click="print">{{$t('确定打印')}}</el-button> <el-button type="primary" @click="print">{{ $t('确定打印') }}</el-button>
</div> </div>
</div> </div>
</template> </template>
...@@ -79,7 +76,7 @@ export default { ...@@ -79,7 +76,7 @@ export default {
LODOP.SET_PRINT_PAGESIZE(0, 800, 600, "TAG"); LODOP.SET_PRINT_PAGESIZE(0, 800, 600, "TAG");
for(let i in items){ for(let i in items){
LODOP.ADD_PRINT_HTM("2mm",0,800,600, items[i].innerHTML); LODOP.ADD_PRINT_HTM(0,0,800,600, items[i].outerHTML);
if(i < items.length){ if(i < items.length){
LODOP.NewPage() LODOP.NewPage()
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment