chengwl 4 years ago
parent
commit
dfe10951ec
1 changed files with 6 additions and 6 deletions
  1. 6 6
      public/script/common_wigsout.js

+ 6 - 6
public/script/common_wigsout.js

@@ -218,9 +218,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>=160){
-			str1=str.slice(0,160);
-			str2=str.slice(160);
+		if(str.length>=150){
+			str1=str.slice(0,150);
+			str2=str.slice(150);
 			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);
@@ -261,9 +261,9 @@ $(document).ready(function(){
 						LODOP.ADD_PRINT_BARCODE(3, 2, 400, 35, "128Auto", arr[x].barcode);
 						LODOP.ADD_PRINT_BARCODE(3, 2, 400, 35, "128Auto", arr[x].barcode);
 						LODOP.SET_PRINT_STYLEA(0, "showBarText", 0)
 						LODOP.SET_PRINT_STYLEA(0, "showBarText", 0)
 						str=arr[x].str;
 						str=arr[x].str;
-						if(str.length>=160){
-							str1=str.slice(0,160);
-							str2=str.slice(160);
+						if(str.length>=150){
+							str1=str.slice(0,150);
+							str2=str.slice(150);
 							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);