| | |
| | | var param = { |
| | | ImportId: id, |
| | | }; |
| | | if ($("#ProductionDate").val() == "" || $("#ProductionDate").val() == undefined || $("#ProductionDate").val() == null) { |
| | | layer.msg("生产日期不能为空", { |
| | | icon: 2, |
| | | time: 2000 //2秒关闭(如果不配置,默认是3秒) |
| | | }, function () { return; }); |
| | | } |
| | | if ($("#SupplierName").val() == "" || $("#SupplierName").val() == undefined || $("#SupplierName").val() == null) { |
| | | layer.msg("生产厂家不能为空", { |
| | | icon: 2, |
| | | time: 2000 //2秒关闭(如果不配置,默认是3秒) |
| | | }, function () { return; }); |
| | | } |
| | | if ($("#SupplierLot").val() == "" || $("#SupplierLot").val() == undefined || $("#SupplierLot").val() == null) { |
| | | console.log($("#SupplierLot").val()) |
| | | layer.msg("厂家批号不能为空", { |
| | | icon: 2, |
| | | time: 2000 //2秒关闭(如果不配置,默认是3秒) |
| | | }, function () { return; }); |
| | | } |
| | | |
| | | if ($('#number').val() > 0) { |
| | | |
| | | if ($('#bQNum').val() > 0) { |
| | | div($('#number').val(), $('input[name="isprint"]:checked').val(), $('#bQNum').val()); |
| | | } else { |
| | | div($('#number').val(), $('input[name="isprint"]:checked').val(), 0); |
| | | } |
| | | |
| | | } |
| | | else { |
| | | |
| | | if ($('#bQNum').val() >= 0) { |
| | | div(0, $('input[name="isprint"]:checked').val(), $('#bQNum').val()); |
| | | } else { |
| | | div(0, $('input[name="isprint"]:checked').val(), 0); |
| | | } |
| | | |
| | | } |
| | | |
| | | }); |
| | | |
| | | if (!id) { |
| | |
| | | }, function () { }); |
| | | } |
| | | }); |
| | | |
| | | // div(-1, 1, 0); |
| | | |
| | | |
| | | } |
| | | |
| | | |
| | | // 循环加载标签 |
| | | function div(number, isprint, bqNum) { |
| | | GetImportId(number, isprint, bqNum); |
| | | } |
| | | |
| | | // 标签变量赋值 |
| | | function GetImportId(i, isprint, bqNum) { |
| | | |
| | | function div(i, isprint, bqNum) { |
| | | |
| | | var param1 = { |
| | | isprint: isprint, |
| | | ImportId: id, |
| | |
| | | time: 2000 //2秒关闭(如果不配置,默认是3秒) |
| | | }, function () { }); |
| | | } |
| | | }); |
| | | }; |
| | | |
| | | }); |
| | | } |
| | | // 获取传递参数 |
| | | function getQueryString(name) { |
| | | var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i"); |