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