|
@@ -147,116 +147,121 @@ window.onload = function() {
|
|
|
// if(typeof $("select[name='printer']").length < 1) return;
|
|
|
// setTimeout(function(){ wprinter.printer()},1000);
|
|
|
};
|
|
|
+
|
|
|
$(document).keyup(function(event) {
|
|
|
if (event.keyCode == 13) {
|
|
|
$("#orderinfo").blur();
|
|
|
$(".systemwindow div p:eq(0)").html("<i class='fa fa-2x fa-cog fa-spin'></i> 处理中,请稍后...");
|
|
|
$(".systemwindow div p:eq(1)").html("");
|
|
|
$(".systemwindow").show();
|
|
|
- }
|
|
|
|
|
|
|
|
|
- $.ajax({
|
|
|
- url: "/systemfout/fout/",
|
|
|
- data: "order=" + $("#orderinfo").val() + "&weight=" + $("#weight").val(),
|
|
|
- type: "POST",
|
|
|
- dataType: "json",
|
|
|
- success: function(a) {
|
|
|
- $(".systemwindow").hide();
|
|
|
- if (a && a.success) {
|
|
|
- if (typeof a.yd != "undefined") {
|
|
|
- $("#orderinfo").blur();
|
|
|
- $("#music_c")[0].play();
|
|
|
- $("#music_print")[0].play();
|
|
|
- $(".tyrowsout p:eq(0)").html(
|
|
|
- "<i class='fa fa-2x fa-cog fa-spin'></i> 此运单已过期,系统打印处理中,请勿关闭!"
|
|
|
- );
|
|
|
- $(".tyrowsout p:eq(1)").html("");
|
|
|
- $(".tyrowsout").show();
|
|
|
- alert("该类型未添加 请联系技术添加逻辑")
|
|
|
- // $.ajax({
|
|
|
- // url: "/systemfout/fedexhz/",
|
|
|
- // data: "id=" + a.id + "&name=" + a.name + "&express=" + a
|
|
|
- // .express,
|
|
|
- // type: "POST",
|
|
|
- // dataType: "json",
|
|
|
- // success: function(b) {
|
|
|
- // $(".systemwindow").hide();
|
|
|
- // if (b && b.success) {
|
|
|
- // // wprinter.pdf(b.rows)
|
|
|
- // // site(1, 1, b.rows['text']['number'], 2, 0);
|
|
|
- // } else {
|
|
|
- // $(".tyrows").hide();
|
|
|
- // $("#music_c")[0].play();
|
|
|
- // //wprinter.sound(b.msg);
|
|
|
- // $(".systemwindow div p:eq(0)").html(b.msg);
|
|
|
- // $(".systemwindow div p:eq(1)").html(
|
|
|
- // "<font class='wcsj'>确 定</font>");
|
|
|
- // $(".systemwindow").show();
|
|
|
- // $("#orderinfo").val("");
|
|
|
- // $("#orderinfo").focus();
|
|
|
- // }
|
|
|
- // }
|
|
|
- // });
|
|
|
+ $.ajax({
|
|
|
+ url: "/systemfout/fout/",
|
|
|
+ data: "order=" + $("#orderinfo").val() + "&weight=" + $("#weight").val(),
|
|
|
+ type: "POST",
|
|
|
+ dataType: "json",
|
|
|
+ success: function(a) {
|
|
|
+ $(".systemwindow").hide();
|
|
|
+ if (a && a.success) {
|
|
|
+ if (typeof a.yd != "undefined") {
|
|
|
+ $("#orderinfo").blur();
|
|
|
+ $("#music_c")[0].play();
|
|
|
+ $("#music_print")[0].play();
|
|
|
+ $(".tyrowsout p:eq(0)").html(
|
|
|
+ "<i class='fa fa-2x fa-cog fa-spin'></i> 此运单已过期,系统打印处理中,请勿关闭!"
|
|
|
+ );
|
|
|
+ $(".tyrowsout p:eq(1)").html("");
|
|
|
+ $(".tyrowsout").show();
|
|
|
+ alert("该类型未添加 请联系技术添加逻辑")
|
|
|
+ // $.ajax({
|
|
|
+ // url: "/systemfout/fedexhz/",
|
|
|
+ // data: "id=" + a.id + "&name=" + a.name + "&express=" + a
|
|
|
+ // .express,
|
|
|
+ // type: "POST",
|
|
|
+ // dataType: "json",
|
|
|
+ // success: function(b) {
|
|
|
+ // $(".systemwindow").hide();
|
|
|
+ // if (b && b.success) {
|
|
|
+ // // wprinter.pdf(b.rows)
|
|
|
+ // // site(1, 1, b.rows['text']['number'], 2, 0);
|
|
|
+ // } else {
|
|
|
+ // $(".tyrows").hide();
|
|
|
+ // $("#music_c")[0].play();
|
|
|
+ // //wprinter.sound(b.msg);
|
|
|
+ // $(".systemwindow div p:eq(0)").html(b.msg);
|
|
|
+ // $(".systemwindow div p:eq(1)").html(
|
|
|
+ // "<font class='wcsj'>确 定</font>");
|
|
|
+ // $(".systemwindow").show();
|
|
|
+ // $("#orderinfo").val("");
|
|
|
+ // $("#orderinfo").focus();
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+ // });
|
|
|
+ } else {
|
|
|
+ $("#music_d")[0].play();
|
|
|
+ $("#orderinfo").val("");
|
|
|
+ $("#weight").val("");
|
|
|
+ $(".search span").click();
|
|
|
+ $("#orderinfo").focus();
|
|
|
+ }
|
|
|
} else {
|
|
|
- $("#music_d")[0].play();
|
|
|
- $("#orderinfo").val("");
|
|
|
- $("#weight").val("");
|
|
|
- $(".search span").click();
|
|
|
- $("#orderinfo").focus();
|
|
|
- }
|
|
|
- } else {
|
|
|
- if (typeof a.outnumber != "undefined") {
|
|
|
- $("#music_c")[0].play();
|
|
|
- layx.confirm('警告', a.msg, null, {
|
|
|
- buttons: [{
|
|
|
- label: '确认出库',
|
|
|
- callback: function(id, button, event) {
|
|
|
- $.ajax({
|
|
|
- url: "/systemfout/outnumber/",
|
|
|
- data: "outnumber=" + a
|
|
|
- .outnumber + "&post=" +
|
|
|
- a.post +
|
|
|
- "&fullorder_name=" + a
|
|
|
- .fullorder_name,
|
|
|
- type: "POST",
|
|
|
- dataType: "json",
|
|
|
- success: function(a) {
|
|
|
- $(".systemwindow")
|
|
|
- .hide();
|
|
|
- $("#orderinfo")
|
|
|
- .focus();
|
|
|
- if (a && a
|
|
|
- .success) {}
|
|
|
- }
|
|
|
- });
|
|
|
- $("#orderinfo").val("");
|
|
|
- layx.destroy(id);
|
|
|
+ if (typeof a.outnumber != "undefined") {
|
|
|
+ $("#music_c")[0].play();
|
|
|
+ layx.confirm('警告', a.msg, null, {
|
|
|
+ buttons: [{
|
|
|
+ label: '确认出库',
|
|
|
+ callback: function(id, button, event) {
|
|
|
+ $.ajax({
|
|
|
+ url: "/systemfout/outnumber/",
|
|
|
+ data: "outnumber=" + a
|
|
|
+ .outnumber + "&post=" +
|
|
|
+ a.post +
|
|
|
+ "&fullorder_name=" + a
|
|
|
+ .fullorder_name,
|
|
|
+ type: "POST",
|
|
|
+ dataType: "json",
|
|
|
+ success: function(a) {
|
|
|
+ $(".systemwindow")
|
|
|
+ .hide();
|
|
|
+ $("#orderinfo")
|
|
|
+ .focus();
|
|
|
+ if (a && a
|
|
|
+ .success) {}
|
|
|
+ }
|
|
|
+ });
|
|
|
+ $("#orderinfo").val("");
|
|
|
+ layx.destroy(id);
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: '取消出库',
|
|
|
+ callback: function(id, button, event) {
|
|
|
+ layx.destroy(id);
|
|
|
+ }
|
|
|
}
|
|
|
- },
|
|
|
- {
|
|
|
- label: '取消出库',
|
|
|
- callback: function(id, button, event) {
|
|
|
- layx.destroy(id);
|
|
|
- }
|
|
|
- }
|
|
|
- ]
|
|
|
- });
|
|
|
+ ]
|
|
|
+ });
|
|
|
|
|
|
- } else {
|
|
|
- $("#music_c")[0].play();
|
|
|
- $(".systemwindow div p:eq(0)").html(a.msg);
|
|
|
- $(".systemwindow div p:eq(1)").html("<font class='wcsj'>确 定</font>");
|
|
|
- $(".systemwindow").prepend(
|
|
|
- "<p class='gth' style='font-size: 200px;color: #F00;font-weight: bolder;text-align: center;'>X</p>"
|
|
|
- );
|
|
|
- $(".systemwindow").show();
|
|
|
- $("#orderinfo").val("");
|
|
|
- //$("#orderinfo").focus();
|
|
|
+ } else {
|
|
|
+ $("#music_c")[0].play();
|
|
|
+ $(".systemwindow div p:eq(0)").html(a.msg);
|
|
|
+ $(".systemwindow div p:eq(1)").html("<font class='wcsj'>确 定</font>");
|
|
|
+ $(".systemwindow").prepend(
|
|
|
+ "<p class='gth' style='font-size: 200px;color: #F00;font-weight: bolder;text-align: center;'>X</p>"
|
|
|
+ );
|
|
|
+ $(".systemwindow").show();
|
|
|
+ $("#orderinfo").val("");
|
|
|
+ //$("#orderinfo").focus();
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
- }
|
|
|
- });
|
|
|
+ });
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
|
|
|
|
|
|
|