|
|
@@ -109,56 +109,7 @@ $(".whlabelczdc").click(function() {
|
|
|
});
|
|
|
window.location.href = dataurl+"/cpbqdc?excel="+$(this).data("id")+"&"+f;
|
|
|
})
|
|
|
-// $(document).keyup(function(event){
|
|
|
-// if(event.keyCode ==13 && $("input[name=outsku]").val()!=""){
|
|
|
-// $("#orderinfo").blur();
|
|
|
-// $(".express p:eq(0)").html("<i class='fa fa-2x fa-cog fa-spin'></i> 处理中,请稍后...");
|
|
|
-// $(".express p:eq(1)").html("");
|
|
|
-// $(".express").show();
|
|
|
-
|
|
|
-// $.ajax({
|
|
|
-// url: dataurl,
|
|
|
-// data: "outsku="+$("#outsku").val()+"&cz="+$("input[name=cz]").val(),
|
|
|
-// type: "POST",
|
|
|
-// dataType: "json",
|
|
|
-// success: function(a) {
|
|
|
-// $(".express").hide();
|
|
|
-// if (a && a.success) {
|
|
|
-// $("#music_d")[0].play();
|
|
|
-// $("#outsku").val("");
|
|
|
-// $("#orderinfo").val("");
|
|
|
-// //$(".search span").click();
|
|
|
-// //$("#orderinfo").focus();
|
|
|
-// window.location.reload()
|
|
|
-// } else {
|
|
|
-// $("#music_c")[0].play();
|
|
|
-// $(".express p:eq(0)").html(a.msg);
|
|
|
-// $(".express p:eq(1)").html("<font class='wcsj'>确 定</font>");
|
|
|
-// $(".express").show();
|
|
|
-// $("#orderinfo").focus();
|
|
|
-// }
|
|
|
-// }
|
|
|
-// });
|
|
|
-// }
|
|
|
-// });
|
|
|
-//禁止手动输入
|
|
|
-var timearr = [0,0];
|
|
|
-$("input[name=outsku]").keyup(function(event){
|
|
|
-
|
|
|
-
|
|
|
- if($(this).val().length%2 != 0 ){
|
|
|
- //求余数不为0是奇数
|
|
|
- timearr[0] = new Date().getTime();
|
|
|
- }else{
|
|
|
- timearr[1] = new Date().getTime();
|
|
|
- }
|
|
|
- //当输入第二位时判断两次输入的间隔,判断是否为手动输入,间隔过长清空值
|
|
|
- if($(this).val().length > 1 && Math.abs(timearr[1] - timearr[0]) > 40){
|
|
|
- $(this).val('')
|
|
|
- }
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
+$(document).keyup(function(event){
|
|
|
if(event.keyCode ==13 && $("input[name=outsku]").val()!=""){
|
|
|
$("#orderinfo").blur();
|
|
|
$(".express p:eq(0)").html("<i class='fa fa-2x fa-cog fa-spin'></i> 处理中,请稍后...");
|
|
|
@@ -190,6 +141,55 @@ $("input[name=outsku]").keyup(function(event){
|
|
|
});
|
|
|
}
|
|
|
});
|
|
|
+//禁止手动输入
|
|
|
+// var timearr = [0,0];
|
|
|
+// $("input[name=outsku]").keyup(function(event){
|
|
|
+
|
|
|
+
|
|
|
+// if($(this).val().length%2 != 0 ){
|
|
|
+// //求余数不为0是奇数
|
|
|
+// timearr[0] = new Date().getTime();
|
|
|
+// }else{
|
|
|
+// timearr[1] = new Date().getTime();
|
|
|
+// }
|
|
|
+// //当输入第二位时判断两次输入的间隔,判断是否为手动输入,间隔过长清空值
|
|
|
+// if($(this).val().length > 1 && Math.abs(timearr[1] - timearr[0]) > 40){
|
|
|
+// $(this).val('')
|
|
|
+// }
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+// if(event.keyCode ==13 && $("input[name=outsku]").val()!=""){
|
|
|
+// $("#orderinfo").blur();
|
|
|
+// $(".express p:eq(0)").html("<i class='fa fa-2x fa-cog fa-spin'></i> 处理中,请稍后...");
|
|
|
+// $(".express p:eq(1)").html("");
|
|
|
+// $(".express").show();
|
|
|
+
|
|
|
+// $.ajax({
|
|
|
+// url: dataurl,
|
|
|
+// data: "outsku="+$("#outsku").val()+"&cz="+$("input[name=cz]").val(),
|
|
|
+// type: "POST",
|
|
|
+// dataType: "json",
|
|
|
+// success: function(a) {
|
|
|
+// $(".express").hide();
|
|
|
+// if (a && a.success) {
|
|
|
+// $("#music_d")[0].play();
|
|
|
+// $("#outsku").val("");
|
|
|
+// $("#orderinfo").val("");
|
|
|
+// //$(".search span").click();
|
|
|
+// //$("#orderinfo").focus();
|
|
|
+// window.location.reload()
|
|
|
+// } else {
|
|
|
+// $("#music_c")[0].play();
|
|
|
+// $(".express p:eq(0)").html(a.msg);
|
|
|
+// $(".express p:eq(1)").html("<font class='wcsj'>确 定</font>");
|
|
|
+// $(".express").show();
|
|
|
+// $("#orderinfo").focus();
|
|
|
+// }
|
|
|
+// }
|
|
|
+// });
|
|
|
+// }
|
|
|
+// });
|
|
|
/* 清空并聚焦出库input */
|
|
|
$(".express").on('click',".wcsj",function() {
|
|
|
$("#outsku").val("");
|