1
llj
2025-08-05 27f636382d2e92773de35b5e22b01636a1d0ca5d
WebTM/views/WMSɨÂëÄ£¿é/²É¹ºÈë¿â/Kf_POStockInBackBill_PDA.html
@@ -423,7 +423,7 @@
                        }
                        else {
                            layer.msg(d.Message, {
                                icon: 0, time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示", btn: ['确认']
                                icon: 0, time: 100000, offset: 'auto', skin: 'layui-layer-lan', title: "温馨提示", btn: ['确认']
                            }, function () { parent.location.href = "../../../views/index_Mobile.html"; });
                        }
                    },
@@ -477,7 +477,7 @@
                $("#HStockOrgName").val(sessionStorage["Organization"]);
                $("#HBillType").val("1239");
                $("#HRedBlueFlag").val("false");
                if (sessionStorage["HWHID"] != 0 && sessionStorage["HWhSPFlag"]) {
                if (sessionStorage["HWHID"] != 0 && sessionStorage["HWhSPFlag"] == 'false') {
                    $("#HStockPlaceID").val("0");
                    $("#HStockPlaceName").val("");
                    $("#HStockPlaceName").attr("disabled", "disabled");
@@ -530,7 +530,7 @@
                    , totalRow: true
                    , height: 'full-60'
                    , cellMinWidth: 90
                    , limit: 50
                    , limit: 200
                };
            }
@@ -573,7 +573,7 @@
                            HBillNo = $('#HBillNo').val()
                        }
                        else {
                            layer.msg(d.Message, { icon: 0, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
                            layer.msg(d.Message, { icon: 0, btn: ['确认'], time: 100000, offset: 'auto', skin: 'layui-layer-lan', title: "温馨提示" });
                        }
                    },
                    complete: function (XHR, TS) { XHR = null }//回收资源
@@ -632,6 +632,7 @@
                        if (d.data[0].HMulSourceBill == 0) {
                            $("#HSourceBillNo").attr("disabled", "disabled");
                            $('#HSourceBillNo-BT').addClass("layui-btn-disabled").attr("disabled", true);//按钮禁用
                            $('#cmdHSourceBillNo').addClass("layui-btn-disabled").attr("disabled", true);//按钮禁用
                        }
                        if (d.data[0].HDeptID != 0) {
                            $("#HDeptID").val(d.data[0].HDeptID);
@@ -663,7 +664,7 @@
                        $("#HStockPlaceName").removeAttr("disabled");
                        $('#HSpID-BT').removeClass("layui-btn-disabled").attr("disabled", false);//按钮恢复正常状态
                        layer.msg("仓库条码为空!", {
                            icon: 0, time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示", btn: ['确认']
                            icon: 0, time: 100000, offset: 'auto', skin: 'layui-layer-lan', title: "温馨提示", btn: ['确认']
                        }, function () {
                            $("#HWHName").select();
                            $("#HWHName").focus();
@@ -704,7 +705,7 @@
                                $("#HStockPlaceName").removeAttr("disabled");
                                $('#HSpID-BT').removeClass("layui-btn-disabled").attr("disabled", false);//按钮恢复正常状态
                                layer.msg(result.Message, {
                                    icon: 0, time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示", btn: ['确认']
                                    icon: 0, time: 100000, offset: 'auto', skin: 'layui-layer-lan', title: "温馨提示", btn: ['确认']
                                }, function () {
                                    $("#HWHName").select();
                                    $("#HWHName").focus();
@@ -753,7 +754,7 @@
                        $("#HStockPlaceID").val("0");
                        $("#HStockPlaceName").val("");
                        layer.msg("仓位条码为空!", {
                            icon: 0, time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示", btn: ['确认']
                            icon: 0, time: 100000, offset: 'auto', skin: 'layui-layer-lan', title: "温馨提示", btn: ['确认']
                        }, function () {
                            $("#HStockPlaceName").select();
                            $("#HStockPlaceName").focus();
@@ -784,7 +785,7 @@
                                $("#HStockPlaceID").val("0");
                                $("#HStockPlaceName").val("");
                                layer.msg(result.Message, {
                                    icon: 0, time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示", btn: ['确认']
                                    icon: 0, time: 100000, offset: 'auto', skin: 'layui-layer-lan', title: "温馨提示", btn: ['确认']
                                }, function () {
                                    $("#HStockPlaceName").select();
                                    $("#HStockPlaceName").focus();
@@ -830,7 +831,7 @@
                        $("#HKeeperID").val("0");
                        $("#HKeeperName").val("");
                        layer.msg("保管员条码为空!", {
                            icon: 0, time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示", btn: ['确认']
                            icon: 0, time: 100000, offset: 'auto', skin: 'layui-layer-lan', title: "温馨提示", btn: ['确认']
                        }, function () {
                            $("#HKeeperName").select();
                            $("#HKeeperName").focus();
@@ -858,7 +859,7 @@
                                $("#HKeeperID").val("0");
                                $("#HKeeperName").val("");
                                layer.msg(result.Message, {
                                    icon: 0, time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示", btn: ['确认']
                                    icon: 0, time: 100000, offset: 'auto', skin: 'layui-layer-lan', title: "温馨提示", btn: ['确认']
                                }, function () {
                                    $("#HKeeperName").select();
                                    $("#HKeeperName").focus();
@@ -900,7 +901,7 @@
                        $("#HSecManagerID").val("0");
                        $("#HSecManagerName").val("");
                        layer.msg("验收员条码为空!", {
                            icon: 0, time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示", btn: ['确认']
                            icon: 0, time: 100000, offset: 'auto', skin: 'layui-layer-lan', title: "温馨提示", btn: ['确认']
                        }, function () {
                            $("#HSecManagerName").select();
                            $("#HSecManagerName").focus();
@@ -928,7 +929,7 @@
                                $("#HSecManagerID").val("0");
                                $("#HSecManagerName").val("");
                                layer.msg(result.Message, {
                                    icon: 0, time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示", btn: ['确认']
                                    icon: 0, time: 100000, offset: 'auto', skin: 'layui-layer-lan', title: "温馨提示", btn: ['确认']
                                }, function () {
                                    $("#HSecManagerName").select();
                                    $("#HSecManagerName").focus();
@@ -970,7 +971,7 @@
                        $("#HDeptID").val("0");
                        $("#HDeptName").val("");
                        layer.msg("部门条码为空!", {
                            icon: 0, time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示", btn: ['确认']
                            icon: 0, time: 100000, offset: 'auto', skin: 'layui-layer-lan', title: "温馨提示", btn: ['确认']
                        }, function () {
                            $("#HDeptName").select();
                            $("#HDeptName").focus();
@@ -998,7 +999,7 @@
                                $("#HDeptID").val("0");
                                $("#HDeptName").val("");
                                layer.msg(result.Message, {
                                    icon: 0, time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示", btn: ['确认']
                                    icon: 0, time: 100000, offset: 'auto', skin: 'layui-layer-lan', title: "温馨提示", btn: ['确认']
                                }, function () {
                                    $("#HDeptName").select();
                                    $("#HDeptName").focus();
@@ -1040,7 +1041,7 @@
                        $("#HSupID").val("0");
                        $("#HSupName").val("");
                        layer.msg("供应商条码为空!", {
                            icon: 0, time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示", btn: ['确认']
                            icon: 0, time: 100000, offset: 'auto', skin: 'layui-layer-lan', title: "温馨提示", btn: ['确认']
                        }, function () {
                            $("#HSupName").select();
                            $("#HSupName").focus();
@@ -1068,7 +1069,7 @@
                                $("#HSupID").val("0");
                                $("#HSupName").val("");
                                layer.msg(result.Message, {
                                    icon: 0, time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示", btn: ['确认']
                                    icon: 0, time: 100000, offset: 'auto', skin: 'layui-layer-lan', title: "温馨提示", btn: ['确认']
                                }, function () {
                                    $("#HSupName").select();
                                    $("#HSupName").focus();
@@ -1163,12 +1164,12 @@
                                        });//新增
                                }
                                else {
                                    layer.msg(data.Message, { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
                                    layer.msg(data.Message, { icon: 5, btn: ['确认'], time: 100000, offset: 'auto', skin: 'layui-layer-lan', title: "温馨提示" });
                                }
                            },
                            complete: function (XHR, TS) { XHR = null },//回收资源
                            error: function (err) {
                                layer.msg("错误:" + err, { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
                                layer.msg("错误:" + err, { icon: 5, btn: ['确认'], time: 100000, offset: 'auto', skin: 'layui-layer-lan', title: "温馨提示" });
                            }
                        });
                    layer.closeAll("loading");
@@ -1240,12 +1241,12 @@
                                    }
                                    else {
                                        playSound();
                                        layer.msg(data.Message, { icon: 2, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
                                        layer.msg(data.Message, { icon: 2, btn: ['确认'], time: 100000, offset: 'auto', skin: 'layui-layer-lan', title: "温馨提示" });
                                    }
                                },
                                complete: function (XHR, TS) { XHR = null },//回收资源
                                error: function (err) {
                                    layer.msg('错误' + err, { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
                                    layer.msg('错误' + err, { icon: 5, btn: ['确认'], time: 100000, offset: 'auto', skin: 'layui-layer-lan', title: "温馨提示" });
                                }
                            });
                        layer.closeAll("loading");
@@ -1355,6 +1356,7 @@
                            if (result.data.hMulSourceFlagField == 0) {
                                $("#HSourceBillNo").attr("disabled", "disabled");
                                $('#HSourceBillNo-BT').addClass("layui-btn-disabled").attr("disabled", true);//按钮禁用
                                $('#cmdHSourceBillNo').addClass("layui-btn-disabled").attr("disabled", true);//按钮禁用
                            }
                            //供应商不可编辑
                            $("#HSupName").attr("disabled", "disabled");
@@ -1368,7 +1370,7 @@
                        else {
                            playSound();
                            layer.msg(result.Message, {
                                icon: 5, time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示", btn: ['确认']
                                icon: 5, time: 100000, offset: 'auto', skin: 'layui-layer-lan', title: "温馨提示", btn: ['确认']
                            }, function () {
                                element.tabChange('tab-Kf_POStockInBackBill_PDA', '1');
                                $("#HSourceBillNo").select();
@@ -1424,7 +1426,7 @@
                    if (sBarCode == "") {
                        playSound();
                        layer.msg("请扫描要删除的条码", {
                            icon: 0, time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示", btn: ['确认']
                            icon: 0, time: 100000, offset: 'auto', skin: 'layui-layer-lan', title: "温馨提示", btn: ['确认']
                        }, function () {
                            $("#HBarCode").select();
                            $("#HBarCode").focus();
@@ -1453,7 +1455,7 @@
                                else {
                                    playSound();
                                    layer.msg(data.Message, {
                                        icon: 5, time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示", btn: ['确认']
                                        icon: 5, time: 100000, offset: 'auto', skin: 'layui-layer-lan', title: "温馨提示", btn: ['确认']
                                    }, function () {
                                        $("#HBarCode").select();
                                        $("#HBarCode").focus();
@@ -1464,7 +1466,7 @@
                            error: function (err) {
                                playSound();
                                layer.msg('错误' + err, {
                                    icon: 2, time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示", btn: ['确认']
                                    icon: 2, time: 100000, offset: 'auto', skin: 'layui-layer-lan', title: "温馨提示", btn: ['确认']
                                }, function () {
                                    $("#HBarCode").select();
                                    $("#HBarCode").focus();
@@ -1478,7 +1480,7 @@
                    if (sBarCode == '') {
                        playSound();
                        layer.msg("条码为空,请扫描条码!", {
                            icon: 0, time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示", btn: ['确认']
                            icon: 0, time: 100000, offset: 'auto', skin: 'layui-layer-lan', title: "温馨提示", btn: ['确认']
                        }, function () {
                            $("#HBarCode").select();
                            $("#HBarCode").focus();
@@ -1565,6 +1567,7 @@
                                    if (result.data.hMulSourceFlagField == 0) {
                                        $("#HSourceBillNo").attr("disabled", "disabled");
                                        $('#HSourceBillNo-BT').addClass("layui-btn-disabled").attr("disabled", true);//按钮禁用
                                        $('#cmdHSourceBillNo').addClass("layui-btn-disabled").attr("disabled", true);//按钮禁用
                                    }
                                    //供应商不可编辑
                                    $("#HSupName").attr("disabled", "disabled");
@@ -1589,6 +1592,7 @@
                                        $("#HSourceBillNo").val("");
                                        $("#HSourceBillNo").attr("disabled", "disabled");
                                        $('#HSourceBillNo-BT').addClass("layui-btn-disabled").attr("disabled", true);//按钮禁用
                                        $('#cmdHSourceBillNo').addClass("layui-btn-disabled").attr("disabled", true);//按钮禁用
                                        element.tabChange('tab-Kf_POStockInBackBill_PDA', '3');
                                    }
                                }
@@ -1600,7 +1604,7 @@
                            else {
                                playSound();
                                layer.msg(result.Message, {
                                    icon: 5, time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示", btn: ['确认']
                                    icon: 5, time: 100000, offset: 'auto', skin: 'layui-layer-lan', title: "温馨提示", btn: ['确认']
                                }, function () {
                                    $("#HBarCode").select();
                                    $("#HBarCode").focus();
@@ -1611,7 +1615,7 @@
                        error: function (err) {
                            playSound();
                            layer.msg("错误!" + err, {
                                icon: 5, time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示", btn: ['确认']
                                icon: 5, time: 100000, offset: 'auto', skin: 'layui-layer-lan', title: "温馨提示", btn: ['确认']
                            }, function () {
                                $("#HBarCode").select();
                                $("#HBarCode").focus();
@@ -1809,15 +1813,15 @@
        //单据上传前判断
        function AllowLoadData(sSubStr) {
            if (HInterID == 0) {
                layer.msg("单据内码获取失败,错误的单据内码!", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
                layer.msg("单据内码获取失败,错误的单据内码!", { icon: 5, btn: ['确认'], time: 100000, offset: 'auto', skin: 'layui-layer-lan', title: "温馨提示" });
                return false;
            }
            if (HBillNo == '') {
                layer.msg("单据号获取失败,错误的单据号!", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
                layer.msg("单据号获取失败,错误的单据号!", { icon: 5, btn: ['确认'], time: 100000, offset: 'auto', skin: 'layui-layer-lan', title: "温馨提示" });
                return false;
            }
            if (sSubStr.length == 0) {
                layer.msg("没有扫码信息,请先扫描条码,确认无误后再提交!", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
                layer.msg("没有扫码信息,请先扫描条码,确认无误后再提交!", { icon: 5, btn: ['确认'], time: 100000, offset: 'auto', skin: 'layui-layer-lan', title: "温馨提示" });
                return false;
            }
            //判断是否已扫描物料条码
@@ -1829,7 +1833,7 @@
                    }
                }
                if (s == 0) {
                    layer.msg("没有扫描物料条码,请先扫描物料条码,确认无误后再提交!", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
                    layer.msg("没有扫描物料条码,请先扫描物料条码,确认无误后再提交!", { icon: 5, btn: ['确认'], time: 100000, offset: 'auto', skin: 'layui-layer-lan', title: "温馨提示" });
                    return false;
                }
            }