Commit 6a2085fc authored by 黄卓's avatar 黄卓

打印标签,唛头字体由6mm改为4mm

parent 86f6cc52
......@@ -36,7 +36,7 @@
<p style=" padding-top: 0px; border-bottom: 0.2mm solid #333; text-align: center; line-height: 6mm; padding: 0px; padding-bottom: 2.5mm; margin: 0px; font-weight: 600; font-size: 6mm; " >
{{item.orderNo}}
</p>
<p style=" padding: 0px; border-bottom: 0.2mm solid #333; text-align: center; line-height: 6mm; padding: 0px; padding-top: 2.6mm; padding-bottom: 2.6mm; margin: 0px; font-weight: 600; font-size: 6mm; " >
<p style=" padding: 0px; border-bottom: 0.2mm solid #333; text-align: center; line-height: 6mm; padding: 0px; padding-top: 2.6mm; padding-bottom: 2.6mm; margin: 0px; font-weight: 600; font-size: 4mm; " >
{{item.marks}}
</p>
......@@ -126,14 +126,14 @@ export default {
}
this.currentNo = this.form.start
this.step = 'preview'
})
})
},
print(){
let items = document.getElementsByClassName('order-print-tag-item')
if(!items.length){
return this.$message.error(this.$t('没有可打印的内容'))
}
lodop().then(LODOP => {
LODOP.PRINT_INIT(this.title);
LODOP.SET_PRINT_STYLE("FontSize",18);
......@@ -148,7 +148,7 @@ export default {
}
}
LODOP.PREVIEW();
// // 预览
/* LODOP.PRINTA(); // 选择打印机
// 直接打印 */
......@@ -157,8 +157,8 @@ export default {
console.error('lodop异常', err)
// alert('请检查LODOP打印控件是否安装并启动');
})
}
}
}
</script>
\ No newline at end of file
</script>
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