Browse Source

提交数据

lvhao 22 hours ago
parent
commit
c61a2dd3b7
1 changed files with 3 additions and 2 deletions
  1. 3 2
      template/erp/whlabelfz1_scammgxx.html

+ 3 - 2
template/erp/whlabelfz1_scammgxx.html

@@ -104,6 +104,7 @@ $(document).ready(function() {
 
 $(document).keyup(function(event) {
     if (event.keyCode == 13) {
+        $("#scanlabel").blur();
         let scanlabel = $("#scanlabel").val();
         let type = $("input[name='type']").val();
         let orderinfo = $("input[name='orderinfo']").val();
@@ -136,11 +137,11 @@ $(document).keyup(function(event) {
         $.post("/whlabelfz1/scam_mgxx_post", {scanlabel: scanlabel, type: type, orderinfo: orderinfo, num: num}, function(res) {
             $("#scanlabel").focus();
             if(res.code == 1){
-                $("#scanlabel").blur()
+                $("#scanlabel").focus();
                 $(".search span").click();
             }else{
                 layx.alert('提示',res.msg, function(id, button) {
-                    $("#scanlabel").blur()
+                    $("#scanlabel").focus();
                     
             }, { dialogIcon: 'error' })