lvhao 11 часов назад
Родитель
Сommit
3c3053f3a2
1 измененных файлов с 7 добавлено и 1 удалено
  1. 7 1
      template/erp/whlabel_print.html

+ 7 - 1
template/erp/whlabel_print.html

@@ -587,7 +587,13 @@ $(document).keyup(function(event){
 	for(i=1;i<data.length+1;i++)
 	{
 		$(".setting .select").each(function() {
-		$(this).find("option[value='"+data[i]+"']").prop("selected","selected");
+            if($(this).hasClass("select_two")){
+                if($(this).find("option[value='"+data[i]+"']").length > 0){
+                    $(this).val(data[i]).trigger('change');
+                }
+            }else{
+                $(this).find("option[value='"+data[i]+"']").prop("selected","selected");
+            }
         });
 		$("input:radio[value='"+data[i]+"']").attr('checked','true');
 	}