yuyou_x
2024-02-04 3ad0ef8e8bdfd94d63d06aedbbc0fe02c1ae476b
HTML/views/ASNSetting/LabelPrint.html
@@ -139,16 +139,11 @@
                        layer.msg(res.msg, {
                            icon: 2,
                            time: 2000 //2秒关闭(如果不配置,默认是3秒)
                        }, function () { });
                        // $("#SkuName").html(res.data.SkuName);
                        // $("#Standard").html(res.data.Standard);
                        // $("#PackageStandard").html(res.data.PackageStandard);
                        // $("#SkuNo").html(res.data.SkuNo);
                        // $("#SupplierLot").html(res.data.SupplierLot);
                        // $("#ExpirationTime").html(expirationTime);
                        // $("#StoreTime").html( storeTime);
                        }, function () {
                            parent.location.reload();
                            parent.layer.close(layer.index);
                        });
                        
                        // $("#imgBar").attr("src", res.data[0].imageStr);
                    } else { //不成功
                        layer.msg(res.msg, {
                            icon: 2,
@@ -162,44 +157,7 @@
                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) {
@@ -227,20 +185,13 @@
                        }, 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,
@@ -355,9 +306,8 @@
                            time: 2000 //2秒关闭(如果不配置,默认是3秒)
                        }, function () { });
                    }
                });
            };
                });
            }
            // 获取传递参数
            function getQueryString(name) {
                var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");