ch
2022-01-23 1b30a42460599a211120af2eeb6c0f074b58d871
WebTM/views/Éú²ú¹ÜÀí/Éú²ú²ðÏäµ¥/Sc_PackSplitBill_Fast.html
@@ -539,12 +539,10 @@
            var HTBarCode = $('#HTBarCode').val()
            var HOrgID = sessionStorage["OrganizationID"]
            var sMaker = sessionStorage["HUserName"]
            if (AllowLoadData(sSubStr) != false)//非空验证
            {
                layer.load(3);
                $.ajax(
                {
                    type: "POST",
                    type: "GET",
                        url: GetWEBURL() + "/PackSplit/set_SavePackSplitBill_Json",
                    async: true,
                        data: { "sInterID": sInterID, "HBillType": '3784', "sBillNo": sBillNo, "HTBarCode": HTBarCode, "sMaker": sMaker, "HOWNERID": HOrgID },
@@ -569,8 +567,6 @@
                        layer.msg("错误:" + err, { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
                    }
                });
                return false;
            }
        });
        //监听提交
@@ -593,16 +589,13 @@
                if (event.keyCode == 13) {
                    var sBarCode = $('#HBarCode').val()
                    //var Flag = sessionStorage["SourceFlag"];
                    if (sQty == "") {
                        sQty = 0;
                    }
                    //判断条码是否为空  new
                    if (sBarCode == '') {
                    if (HBarCode == '') {
                            playSound();
                            layer.msg("条码为空,不能扫描!", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
                            return false;
                        }
                        if (sBarCode != "") {
                        if (HBarCode != "") {
                            $('#HBarCode').val("");
                        }
                        $.ajax({
@@ -696,17 +689,17 @@
                    layer.msg("拖条码为空,不能扫描!", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
                    return false;
                }
                if (HTBarCode != "") {
                    $('#HTBarCode').val("");
                }
                //if (HTBarCode != "") {
                //    $('#HTBarCode').val("");
                //}
                //
                $.ajax({
                    url: GetWEBURL() + "/PackSplitBill/SetPackBarCode_Webs",
                    type: "GET",
                    data: { "sInterID": sInterID, "sBillNo": sBillNo, "sBillType": '3784', "HTBarCode": HTBarCode, "sMaker": sMaker, "HOrgID": HOrgID },
                    data: { "sInterID": sInterID, "sBillNo": sBillNo, "sBillType": '3784', "HTBarCode": HTBarCode, "sMaker": sMaker, "HOWNERID": HOrgID },
                    success: function (result) {
                        if (result.count == 1) { // è¯´æ˜ŽéªŒè¯æˆåŠŸäº†ï¼Œ
                            $('#HTBarCode').val(result.data.HSourceBillNo);
                            //$('#HTBarCode').val(result.data.HSourceBillNo);
                            $("#HTBarCode").attr("disabled", "true");
                            layer.load(3)