zgq
2021-02-26 68ef2632aa52dca92a81250a8d95790d63441303
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("");
@@ -230,12 +237,12 @@
                , cols: [[
                    { type: 'numbers', title: '序号' }
                    , { field: 'HIsStatus', title: '是否扫码', hide: true }
                    , { field: 'HMTONo', title: '批号', width: 180 }
                    , { field: 'HMTONo', title: '批号' }
                    , { field: 'HSPID', title: '仓位ID', hide: true }
                    , { field: 'HSPName', title: '仓位' }
                    , { field: 'HStatus', title: '在库状态', width: 165 }
                    , { field: 'HStatus', title: '在库状态' }
                    , { 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 }
@@ -269,15 +276,15 @@
                , cellMinWidth: 90
                , cols: [[
                    { type: 'numbers', title: '序号' }
                    //, { field: 'HIsStatus', title: '是否扫码' }
                    , { field: 'HSourceInterID', title: '源单ID', hide: true }
                    , { field: 'HSourceBillNo', title: '源单号', hide: true }
                    , { field: 'HMTONo', title: '批号', width: 180 }
                    , { field: 'HStatus', title: '在库状态', width: 165 }
                    , { field: 'HWhID', title: '仓库ID', hide: true }
                    , { field: 'HWhName', title: '仓库' }
                    //, { field: 'HIsStatus', title: '是否扫码', hide: true }
                    , { field: 'HMTONo', title: '批号' }
                    , { field: 'HSPID', title: '仓位ID', hide: true }
                    , { field: 'HSPName', title: '仓位' }
                    , { field: 'HStatus', title: '在库状态' }
                    , { field: 'HWhID', title: '仓库ID', hide: true }
                    , { field: 'HWhName', title: '仓库', width: 130 }
                    , { field: 'HSourceInterID', title: '源单ID', hide: true }
                    , { field: 'HSourceBillNo', title: '源单号', width: 110 }
                    , { field: 'HGroupID', title: '班组ID', hide: true }
                    , { field: 'HGroup', title: '班组' }
                    , { field: 'HSourceID', title: '生产资源ID', hide: true }
@@ -367,6 +374,7 @@
                                $("#HSourceBillNo").attr("readonly", "readonly");//源单号只读
                                $("#HSourceBillNo").css("background-color", "#efefef4d");
                                element.tabChange('tab-LookingForBill', '2');  //跳转页签
                                $("#HSPName").focus();
                            }
                            else {
                                layer.close(index);
@@ -564,7 +572,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 +635,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);