Commit ef311d5b by liangjianmin

打印机一个一个打

parent 8948269a
Showing with 7 additions and 7 deletions
......@@ -60,8 +60,8 @@
form: {
erp_order_sn_pre: '',
print_type: 1,
erp_order_sn_number: '',
label_num: '',
erp_order_sn_number: '05093',
label_num: '1',
tray_remark: ''
}
};
......@@ -237,12 +237,12 @@
//发送数据 二进制
let data = "";
if (this.printLabelData.length > 0) {
data = "! 0 200 200 450 1\r\n" +
data = "! 10 200 200 250 1\r\n" +
"T 8 0 10 10 入仓号:" + this.printLabelData[this.print_number].erp_order_sn + "\r\n" +
"T 8 0 10 56 箱号:" + this.printLabelData[this.print_number].label_sort + '/' + this.printLabelData[0].label_num + "\r\n" +
"T 8 0 10 96 时间:" + this.printLabelData[this.print_number].create_time_cn + "\r\n" +
"T 8 0 10 142 仓库代码:" + this.printLabelData[this.print_number].warehouse_code + "\r\n" +
"B QR 290 10 M 2 U 10\r\n" +
"T 8 0 10 50 箱号:" + this.printLabelData[this.print_number].label_sort + '/' + this.printLabelData[0].label_num + "\r\n" +
"T 8 0 10 90 时间:" + this.printLabelData[this.print_number].create_time_cn + "\r\n" +
"T 8 0 10 130 仓库代码:" + this.print_number + "\r\n" +
"B QR 290 0 M 2 U 8\r\n" +
"MA," + this.printLabelData[this.print_number].erp_order_sn + "\r\n" +
"ENDQR\r\n" +
"PRINT\r\n";
......
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 sign in to comment