|
@@ -249,9 +249,9 @@ $(document).ready(function(){
|
|
LODOP.ADD_PRINT_BARCODE(3, 2, 400, 35, "128Auto", order_barcode);
|
|
LODOP.ADD_PRINT_BARCODE(3, 2, 400, 35, "128Auto", order_barcode);
|
|
LODOP.SET_PRINT_STYLEA(0, "showBarText", 0)
|
|
LODOP.SET_PRINT_STYLEA(0, "showBarText", 0)
|
|
var str=order_barcode+'*'+goods_info + '*' + transport + '*' + print_time;
|
|
var str=order_barcode+'*'+goods_info + '*' + transport + '*' + print_time;
|
|
- if(str.length>=130){
|
|
|
|
- str1=str.slice(0,130);
|
|
|
|
- str2=str.slice(130);
|
|
|
|
|
|
+ if(str.length>=120){
|
|
|
|
+ str1=str.slice(0,120);
|
|
|
|
+ str2=str.slice(120);
|
|
LODOP.ADD_PRINT_TEXT(47, "0mm",400,"45mm", str1);
|
|
LODOP.ADD_PRINT_TEXT(47, "0mm",400,"45mm", str1);
|
|
LODOP.SET_PRINT_STYLEA(0, "FontSize", 13);
|
|
LODOP.SET_PRINT_STYLEA(0, "FontSize", 13);
|
|
LODOP.SET_PRINT_STYLEA(0, "Bold", 1);
|
|
LODOP.SET_PRINT_STYLEA(0, "Bold", 1);
|
|
@@ -304,9 +304,9 @@ $(document).ready(function(){
|
|
LODOP.ADD_PRINT_BARCODE(3, 2, 400, 35, "128Auto", arr[i].barcode);
|
|
LODOP.ADD_PRINT_BARCODE(3, 2, 400, 35, "128Auto", arr[i].barcode);
|
|
LODOP.SET_PRINT_STYLEA(0, "showBarText", 0)
|
|
LODOP.SET_PRINT_STYLEA(0, "showBarText", 0)
|
|
str=arr[i].str;
|
|
str=arr[i].str;
|
|
- if(str.length>=130){
|
|
|
|
- str1=str.slice(0,130);
|
|
|
|
- str2=str.slice(130);
|
|
|
|
|
|
+ if(str.length>=120){
|
|
|
|
+ str1=str.slice(0,120);
|
|
|
|
+ str2=str.slice(120);
|
|
LODOP.ADD_PRINT_TEXT(47, "0mm",400,"45mm", str1);
|
|
LODOP.ADD_PRINT_TEXT(47, "0mm",400,"45mm", str1);
|
|
LODOP.SET_PRINT_STYLEA(0, "FontSize", 13);
|
|
LODOP.SET_PRINT_STYLEA(0, "FontSize", 13);
|
|
LODOP.SET_PRINT_STYLEA(0, "Bold", 1);
|
|
LODOP.SET_PRINT_STYLEA(0, "Bold", 1);
|