WebTM/views/WMSɨÂëÄ£¿é/¿Í»§ÌõÂëɨÃè/Gy_getCusBarCodeBill_PDA.html
@@ -158,6 +158,8 @@
            var HStockOrgID = sessionStorage["OrganizationID"]
            var option = [];
            var HLength_BarCode = 0;        //条码长度验证,取扫码的第一个条码的长度作为条码长度
            //条码统一前缀设置标记
            var HBarCode_Pre_Flag = 0;      //统一前缀设置标记[0:未设置,1已设置]
@@ -256,15 +258,25 @@
                    layer.msg("条码不能为空,请扫描条码!", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
                    return false;
                }
                if (HLength_BarCode != 0 && HLength_BarCode != sBarCode.length) {
                    playSound();
                    layer.msg("条码长度不一致,请重新扫描条码!", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
                    $('#HBarCode').val("");
                    return false;
                }
                if (HBarCode_Pre == "" || HBarCode_Pre_Flag != 1) {
                    playSound();
                    layer.msg("统一前缀不能为空,请设置统一前缀并确认!", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
                    $('#HBarCode').val("");
                    return false;
                }
                if (sBarCode.indexOf(HBarCode_Pre) != 0) {
                    playSound();
                    layer.msg("条码前缀不为统一前缀,请检查条码!", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
                    $('#HBarCode').val("");
                    return false;
                }
@@ -368,6 +380,12 @@
                            option.data = data_Temp;
                            table.cache['wl-table'] = null;         //清空表格缓存数据
                            ins = table.render(option);
                            //获取当前单据第一个扫码成功的条码的长度
                            if (data1.data.length > 0) {
                                HLength_BarCode = data1.data[0]["HBarCode"].length;
                            }
                            layer.close(ajaxLoad);
                        } else {
                            layer.close(ajaxLoad);
@@ -439,15 +457,19 @@
                    data: { "HInterID": HInterID, "HBillType": HBillType, "HBillNo": value, "HMaker": HMaker, "HStockOrgID": HStockOrgID },
                    success: function (result) {
                        if (result.count == 1) {
                            var data = result.data;
                            $("#HBarCode_Pre").val(data[0]["HBarCode_Pre"]);
                            if (result.data == null) {
                            HBarCode_Pre_Flag = 1;
                            } else {
                                var data = result.data;
                                $("#HBarCode_Pre").val(data[0]["HBarCode_Pre"]);
                            //禁用确认按钮
                            $('#cmdHBarCode_Pre').addClass("layui-btn-disabled").attr("disabled", true);//按钮变为不可编辑状态
                            //禁用 ç»Ÿä¸€å‰ç¼€ æ–‡æœ¬æ¡†
                            $('#HBarCode_Pre').prop('disabled', true);                     //统一前缀 æ–‡æœ¬æ¡†ä¸å¯ç¼–辑
                                HBarCode_Pre_Flag = 1;
                                //禁用确认按钮
                                $('#cmdHBarCode_Pre').addClass("layui-btn-disabled").attr("disabled", true);//按钮变为不可编辑状态
                                //禁用 ç»Ÿä¸€å‰ç¼€ æ–‡æœ¬æ¡†
                                $('#HBarCode_Pre').prop('disabled', true);                     //统一前缀 æ–‡æœ¬æ¡†ä¸å¯ç¼–辑
                            }
                            judgeFlag = true;
                        }