chengwl hace 4 años
padre
commit
0febabf158
Se han modificado 1 ficheros con 31 adiciones y 26 borrados
  1. 31 26
      public/script/common_wigsout.js

+ 31 - 26
public/script/common_wigsout.js

@@ -255,17 +255,17 @@ $(document).ready(function(){
 			LODOP.ADD_PRINT_TEXT(47, "0mm",400,"45mm", str1);
 			LODOP.SET_PRINT_STYLEA(0, "FontSize", 13);
 			LODOP.SET_PRINT_STYLEA(0, "Bold", 1);
-			LODOP.SET_PRINT_STYLEA(0,"FontName","体")
+			LODOP.SET_PRINT_STYLEA(0,"FontName","体")
 			LODOP.NewPageA();
 			LODOP.ADD_PRINT_TEXT(3, "0mm",400,"45mm", str2);
 			LODOP.SET_PRINT_STYLEA(0, "FontSize", 13);
 			LODOP.SET_PRINT_STYLEA(0, "Bold", 1);
-			LODOP.SET_PRINT_STYLEA(0,"FontName","体")
+			LODOP.SET_PRINT_STYLEA(0,"FontName","体")
 		}else{
 			LODOP.ADD_PRINT_TEXT(47, "0mm",400,"45mm", str);
 			LODOP.SET_PRINT_STYLEA(0, "FontSize", 13);
 			LODOP.SET_PRINT_STYLEA(0, "Bold", 1);
-			LODOP.SET_PRINT_STYLEA(0,"FontName","体")
+			LODOP.SET_PRINT_STYLEA(0,"FontName","体")
 		}
 
 
@@ -293,29 +293,34 @@ $(document).ready(function(){
 					var LODOP;
 					LODOP=getLodop();
 					LODOP.PRINT_INIT("");
-					for(x in arr){
-						LODOP.ADD_PRINT_BARCODE(3, 2, 400, 35, "128Auto", arr[x].barcode);
-						LODOP.SET_PRINT_STYLEA(0, "showBarText", 0)
-						str=arr[x].str;
-						if(str.length>=130){
-							str1=str.slice(0,130);
-							str2=str.slice(130);
-							LODOP.ADD_PRINT_TEXT(47, "0mm",400,"45mm", str1);
-							LODOP.SET_PRINT_STYLEA(0, "FontSize", 13);
-							LODOP.SET_PRINT_STYLEA(0, "Bold", 1);
-							LODOP.NewPageA();
-							LODOP.ADD_PRINT_TEXT(3, "0mm",400,"45mm", str2);
-							LODOP.SET_PRINT_STYLEA(0, "FontSize", 13);
-							LODOP.SET_PRINT_STYLEA(0, "Bold", 1);
-						}else{
-							LODOP.ADD_PRINT_TEXT(47, "0mm",400,"45mm", str);
-							LODOP.SET_PRINT_STYLEA(0, "FontSize", 13);
-							LODOP.SET_PRINT_STYLEA(0, "Bold", 1);
-						}
-						// LODOP.SET_PRINT_PAGESIZE(3,450,70,"")//设置默认纸张
-						// LODOP.PRINTA();
-						LODOP.PRINT();
-					}
+						for(x in arr){
+							setTimeout(function() {
+									LODOP.ADD_PRINT_BARCODE(3, 2, 400, 35, "128Auto", arr[x].barcode);
+									LODOP.SET_PRINT_STYLEA(0, "showBarText", 0)
+									str=arr[x].str;
+									if(str.length>=130){
+									str1=str.slice(0,130);
+									str2=str.slice(130);
+									LODOP.ADD_PRINT_TEXT(47, "0mm",400,"45mm", str1);
+									LODOP.SET_PRINT_STYLEA(0, "FontSize", 13);
+									LODOP.SET_PRINT_STYLEA(0, "Bold", 1);
+									LODOP.SET_PRINT_STYLEA(0,"FontName","黑体")
+									LODOP.NewPageA();
+									LODOP.ADD_PRINT_TEXT(3, "0mm",400,"45mm", str2);
+									LODOP.SET_PRINT_STYLEA(0, "FontSize", 13);
+									LODOP.SET_PRINT_STYLEA(0, "Bold", 1);
+									LODOP.SET_PRINT_STYLEA(0,"FontName","黑体")
+									}else{
+									LODOP.ADD_PRINT_TEXT(47, "0mm",400,"45mm", str);
+									LODOP.SET_PRINT_STYLEA(0, "FontSize", 13);
+									LODOP.SET_PRINT_STYLEA(0, "Bold", 1);
+									LODOP.SET_PRINT_STYLEA(0,"FontName","黑体")
+									}
+									// LODOP.SET_PRINT_PAGESIZE(3,450,70,"")//设置默认纸张
+									// LODOP.PRINTA();
+									LODOP.PRINT();
+									}, 2000);
+								}
 					$('.barcode>.box').html('');
 					$('.yp').html('').hide();
 					$('.np').show();