|
@@ -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' })
|
|
|
|