zgq
2021-02-23 c5d31b89210479468708e0eda65c4cb5074c026e
WebTM/views/²Ö´æ¹ÜÀí/²Ö¿âµ÷²¦/Cc_LookingForReturnBill.html
@@ -206,6 +206,13 @@
            $("#HMakerID").val(sessionStorage["Czybm"]);
            $("#HMaker").val(sessionStorage["HUserName"]);
            //判断用户是否绑定班组和生产资源
            if ($("#HGroupID").val() == 0 || $("#HSourceID").val() == 0) {
                layer.confirm("该用户未绑定班组或生产资源!不允许找货!", {
                    icon: 4, skin: 'layui-layer-lan', title: "温馨提示", closeBtn: 0, btn: ['确认退出']
                }, function () { window.location.href = "../../index.html"; });
            }
            //获取最大单据号 new
            $("#HInterID").val("");
            $("#HBillNo").val("");
@@ -235,7 +242,7 @@
                    , { field: 'HSPName', title: '仓位' }
                    , { field: 'HStatus', title: '在库状态', width: 165 }
                    , { field: 'HWhID', title: '仓库ID', hide: true }
                    , { field: 'HWhName', title: '仓库' }
                    , { field: 'HWhName', title: '仓库', width: 130 }
                    , { field: 'HSourceInterID', title: '源单ID', hide: true }
                    , { field: 'HSourceBillNo', title: '源单号', width: 110 }
                    , { field: 'HGroupID', title: '班组ID', hide: true }
@@ -275,7 +282,7 @@
                    , { field: 'HMTONo', title: '批号', width: 180 }
                    , { field: 'HStatus', title: '在库状态', width: 165 }
                    , { field: 'HWhID', title: '仓库ID', hide: true }
                    , { field: 'HWhName', title: '仓库' }
                    , { field: 'HWhName', title: '仓库', width: 130 }
                    , { field: 'HSPID', title: '仓位ID', hide: true }
                    , { field: 'HSPName', title: '仓位' }
                    , { field: 'HGroupID', title: '班组ID', hide: true }
@@ -564,7 +571,7 @@
                {
                    //判断上架库位是否与条码中库位一致
                    var tableData = table.cache['bzd-table2'];
                    if ($("#HWHID").val() != tableData[0].HWhID && $("#HSPID").val() != tableData[0].HSPID) {
                    if ($("#HWHID").val() != tableData[0].HWhID || $("#HSPID").val() != tableData[0].HSPID) {
                        layer.msg("当前库位与实际不符!", { icon: 4, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
                        return;
                    }
@@ -627,7 +634,7 @@
                                    layer.msg("请先扫实物条码!", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
                                    return;
                                }
                                if (result.data[0].HWHID != tableData[0].HWhID && result.data[0].HItemID != tableData[0].HSPID) {
                                if (result.data[0].HWHID != tableData[0].HWhID || result.data[0].HItemID != tableData[0].HSPID) {
                                    layer.msg("此库位与实际不符!", { icon: 4, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
                                } else {
                                    $("#HSPName").val(result.data[0].HName);