1
cwjbxqmz
2023-11-27 8bf9796934a40aeef7e93779b023ad7f937b468c
WebTM/views/¹«¹²Ò³Ãæ/Kf_ChaoBaoEditDlg.html
@@ -296,14 +296,18 @@
            $('#HBarCode').on('keydown', function (event) {
                if (event.keyCode == 13) {
                    GetBarCode();
                    $("#HQty").select();
                    $("#HQty").focus();     //获取光标
                    layer.closeAll("loading");
                }
            });
            //条码按钮
            form.on('submit(HBarCode-BT)', function (data) {
                GetBarCode();
                $("#HQty").select();
                $("#HQty").focus();     //获取光标
                layer.closeAll("loading");
            });
            //扫条码
@@ -311,7 +315,12 @@
                var sBarCode = $('#HBarCode').val()
                if (sBarCode == '') {
                    playSound();
                    layer.msg("条码为空,请扫描条码!", { icon: 0, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
                    layer.msg("条码为空,请扫描条码!", {
                        icon: 0, time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示", btn: ['确认']
                    }, function () {
                        $("#HBarCode").select();
                        $("#HBarCode").focus();
                    });
                    return;
                }
                layer.load(3)
@@ -332,12 +341,22 @@
                        }
                        else {
                            playSound();
                            layer.msg(result.Message, { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
                            layer.msg(result.Message, {
                                icon: 5, time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示", btn: ['确认']
                            }, function () {
                                $("#HBarCode").select();
                                $("#HBarCode").focus();
                            });
                        }
                    },
                    error: function (err) {
                        playSound();
                        layer.msg("错误!" + err, { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
                        layer.msg("错误!" + err, {
                            icon: 5, time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示", btn: ['确认']
                        }, function () {
                            $("#HBarCode").select();
                            $("#HBarCode").focus();
                        });
                    }
                });
                layer.closeAll("loading");
@@ -358,12 +377,22 @@
                var sBarCode = $('#HBarCode').val()
                if (sBarCode == '') {
                    playSound();
                    layer.msg("条码为空,请扫描条码!", { icon: 0, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
                    layer.msg("条码为空,请扫描条码!", {
                        icon: 0, time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示", btn: ['确认']
                    }, function () {
                        $("#HBarCode").select();
                        $("#HBarCode").focus();
                    });
                    return;
                }
                if (sHQty == "" || sHQty ==0) {
                    playSound();
                    layer.msg("数量不允许小于0,请输入数量!", { icon: 0, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
                    layer.msg("数量不允许小于0,请输入数量!", {
                        icon: 0, time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示", btn: ['确认']
                    }, function () {
                        $("#HQty").select();
                        $("#HQty").focus();
                    });
                    return;
                }
                layer.load(3)
@@ -382,12 +411,22 @@
                        }
                        else {
                            playSound();
                            layer.msg(result.Message, { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
                            layer.msg(result.Message, {
                                icon: 5, time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示", btn: ['确认']
                            }, function () {
                                $("#HBarCode").select();
                                $("#HBarCode").focus();
                            });
                        }
                    },
                    error: function (err) {
                        playSound();
                        layer.msg("错误!" + err, { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
                        layer.msg("错误!" + err, {
                            icon: 5, time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示", btn: ['确认']
                        }, function () {
                            $("#HBarCode").select();
                            $("#HBarCode").focus();
                        });
                    }
                });
                layer.closeAll("loading");