lvhao 22 ore fa
parent
commit
751340231f
1 ha cambiato i file con 3 aggiunte e 2 eliminazioni
  1. 3 2
      template/erp/whlabelfz1_scammgxx.html

+ 3 - 2
template/erp/whlabelfz1_scammgxx.html

@@ -136,12 +136,13 @@ $(document).keyup(function(event) {
         }
         $.post("/whlabelfz1/scam_mgxx_post", {scanlabel: scanlabel, type: type, orderinfo: orderinfo, num: num}, function(res) {
             $("#scanlabel").val('');
-            $("#scanlabel").focus();
             if(res.code == 1){
+                $("#scanlabel").focus();
                 $(".search span").click();
             }else{
+                $("#scanlabel").blur();
                 layx.alert('提示',res.msg, function(id, button) {
-                    $("#scanlabel").blur();
+                    $("#scanlabel").focus();
                     
             }, { dialogIcon: 'error' })