|
@@ -218,16 +218,17 @@ $(document).ready(function(){
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- LODOP.ADD_PRINT_BARCODE(3, 10, 50, 500, "128Auto", order_barcode);
|
|
|
|
|
|
+ LODOP.ADD_PRINT_BARCODE(3, 10, 32, 400, "128Auto", order_barcode);
|
|
|
|
+ LODOP.SET_PRINT_STYLEA(0, "showBarText", 0)
|
|
LODOP.SET_PRINT_STYLEA(0, "Angle", 90)
|
|
LODOP.SET_PRINT_STYLEA(0, "Angle", 90)
|
|
- var str=goods_info + '*' + transport + '*' + print_time;
|
|
|
|
- LODOP.ADD_PRINT_TEXT(500, 85, 500, 35, str);
|
|
|
|
- LODOP.SET_PRINT_STYLEA(0, "FontSize", 14);
|
|
|
|
|
|
+ var str=order_barcode+'*'+goods_info + '*' + transport + '*' + print_time;
|
|
|
|
+ LODOP.ADD_PRINT_TEXT(450, 40, 500, 45, str);
|
|
|
|
+ LODOP.SET_PRINT_STYLEA(0, "FontSize", 12);
|
|
LODOP.SET_PRINT_STYLEA(0, "Bold", 1);
|
|
LODOP.SET_PRINT_STYLEA(0, "Bold", 1);
|
|
LODOP.SET_PRINT_STYLEA(0, "Angle", 90)
|
|
LODOP.SET_PRINT_STYLEA(0, "Angle", 90)
|
|
// LODOP.SET_PRINT_PAGESIZE(3,450,70,"")//设置默认纸张
|
|
// LODOP.SET_PRINT_PAGESIZE(3,450,70,"")//设置默认纸张
|
|
- LODOP.PREVIEW();
|
|
|
|
- // LODOP.PRINT();
|
|
|
|
|
|
+ // LODOP.PREVIEW();
|
|
|
|
+ LODOP.PRINT();
|
|
});
|
|
});
|
|
$('.print_all').click(function(){
|
|
$('.print_all').click(function(){
|
|
$.ajax({
|
|
$.ajax({
|
|
@@ -241,11 +242,11 @@ $(document).ready(function(){
|
|
var arr = JSON.parse(rs);
|
|
var arr = JSON.parse(rs);
|
|
LODOP.PRINT_INIT("");
|
|
LODOP.PRINT_INIT("");
|
|
for(x in arr){
|
|
for(x in arr){
|
|
- LODOP.ADD_PRINT_BARCODE(3, 10, 50, 400, "128Auto", arr[x].barcode);
|
|
|
|
|
|
+ LODOP.ADD_PRINT_BARCODE(3, 10, 32, 400, "128Auto", arr[x].barcode);
|
|
|
|
+ LODOP.SET_PRINT_STYLEA(0, "showBarText", 0)
|
|
LODOP.SET_PRINT_STYLEA(0, "Angle", 90)
|
|
LODOP.SET_PRINT_STYLEA(0, "Angle", 90)
|
|
-
|
|
|
|
- LODOP.ADD_PRINT_TEXT(400, 85, 400, 35, arr[x].str);
|
|
|
|
- LODOP.SET_PRINT_STYLEA(0, "FontSize", 14);
|
|
|
|
|
|
+ LODOP.ADD_PRINT_TEXT(400, 40, 500, 45, arr[x].str);
|
|
|
|
+ LODOP.SET_PRINT_STYLEA(0, "FontSize", 12);
|
|
LODOP.SET_PRINT_STYLEA(0, "Bold", 1);
|
|
LODOP.SET_PRINT_STYLEA(0, "Bold", 1);
|
|
LODOP.SET_PRINT_STYLEA(0, "Angle", 90)
|
|
LODOP.SET_PRINT_STYLEA(0, "Angle", 90)
|
|
// LODOP.SET_PRINT_PAGESIZE(3,450,70,"")//设置默认纸张
|
|
// LODOP.SET_PRINT_PAGESIZE(3,450,70,"")//设置默认纸张
|