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

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

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