王 垚
2022-09-08 1feacc736b13c48125e41367de11ce4b0e6dab4c
WebTM/views/²Ö´æ¹ÜÀí/²Ö¿âµ÷²¦/Kf_MoveStockBill_Fast.html
@@ -42,7 +42,7 @@
                            <li lay-id="2" style="padding:1px;">表头信息</li>
                            <li lay-id="3" style="padding:1px;">明细信息</li>
                            <li lay-id="4" style="padding:1px;">库存信息</li>
                            <li lay-id="5" style="padding:1px;min-width: 35px;" ">汇总</li>
                            <li lay-id="5" style="padding:1px;min-width: 35px;">汇总</li>
                        </ul>
                        <div class="layui-tab-content">
                            <!--选择源单-->
@@ -160,7 +160,7 @@
                                            <input type="hidden" name="HStockPlaceID" id="HStockPlaceID" lay-verify="HStockPlaceID" value="0" autocomplete="off" class="layui-input">
                                        </div>
                                        <div class="layui-col-xs3">
                                            <button type="button" id="HSpID-BT" lay-submit="" class="layui-btn" lay-filter="HSpID-BT" style="display:none">...</button>
                                            <button type="button" id="HSpID-BT" lay-submit="" class="layui-btn" lay-filter="HSpID-BT">...</button>
                                        </div>
                                    </div>
                                </div>
@@ -188,7 +188,7 @@
                                            <input type="hidden" name="HOutStockPlaceID" id="HOutStockPlaceID" lay-verify="HOutStockPlaceID" value="0" autocomplete="off" class="layui-input">
                                        </div>
                                        <div class="layui-col-xs3">
                                            <button type="button" id="HOSpID-BT" lay-submit="" class="layui-btn" lay-filter="HOSpID-BT" style="display:none">...</button>
                                            <button type="button" id="HOSpID-BT" lay-submit="" class="layui-btn" lay-filter="HOSpID-BT">...</button>
                                        </div>
                                    </div>
                                </div>
@@ -382,10 +382,13 @@
            $("#HBarCode").focus();
            //表头初始化赋值(根据登录用户获取 é»˜è®¤ä»“库、部门、验收、保管、金蝶用户) new
            $("#HSCWHID").val(sessionStorage["HWHID"]);
            $("#HSCWHNAME").val(sessionStorage["HWHName"]);
            $("#HOutStockPlaceID").val(sessionStorage["HSPID"]);
            $("#HOutStockPlaceName").val(sessionStorage["HSPName"]);
            //$("#HSCWHID").val(sessionStorage["HWHID"]);
           // $("#HSCWHNAME").val(sessionStorage["HWHName"]);
            //$("#HOutStockPlaceID").val(sessionStorage["HSPID"]);
            //$("#HOutStockPlaceName").val(sessionStorage["HSPName"]);
            $("#HDeptID").val(sessionStorage["HDeptID"]);
            $("#HDeptName").val(sessionStorage["HDept"]);
            $("#HSecManagerID").val(sessionStorage["HSecManagerID"]);
@@ -404,6 +407,8 @@
            $("#HStockInOrgID").val(sessionStorage["OrganizationID"]);
            $("#HStockInOrgName").val(sessionStorage["Organization"]);
            var HSourceFlag = sessionStorage["SourceFlag"];
            //判断是否登录 æœªç™»å½•则跳到登录页
            //if (sessionStorage.login != "login") {
@@ -490,7 +495,7 @@
                $("#HInterID").val("");
                $("#HBillNo").val("");
                $.ajax({
                    url: GetWEBURL() + "/Web/GetMAXNum",
                    url: GetWEBURL() + "/Web/GetMAXNumPDA",
                    type: "GET",
                    data: { "HBillType": '1207' },
                    success: function (d) {
@@ -558,8 +563,23 @@
            });
            //选择调入仓位
            form.on('submit(HSpID-BT)', function () {//选择调入仓位
            //form.on('submit(HSpID-BT)', function () {//选择调入仓位
            //    layer.open({
            //        type: 2
            //        , area: ['100%', '100%']
            //        , title: '仓位列表'
            //        , shade: 0.6 //遮罩透明度
            //        , maxmin: true //允许全屏最小化
            //        , anim: 0 //0-6的动画形式,-1不开启
            //        , content: ['../../../views/Baseset/基础资料/Gy_StockPlaceListNew.html?HWhID=' + sessionStorage["HWHID"] + '&Type=HSpID&HOrgID=HStockInOrgID', 'yes']
            //        , resize: false
            //        , cancel: function () {
            //        }
            //    })
            //});
            form.on('submit(HSpID-BT)', function () {//选择仓位
                layer.open({
                    type: 2
                    , area: ['100%', '100%']
@@ -567,9 +587,10 @@
                    , shade: 0.6 //遮罩透明度
                    , maxmin: true //允许全屏最小化
                    , anim: 0 //0-6的动画形式,-1不开启
                    , content: ['../../../views/Baseset/基础资料/Gy_StockPlaceListNew.html?HWhID=' + sessionStorage["HWHID"] + '&Type=HSpID&HOrgID=HStockInOrgID', 'yes']
                    , content: ['../../../views/Baseset/基础资料/Gy_StockPlaceList.html?HWhID=' + sessionStorage["HWHID"] + '&Type=HSpID', 'yes']
                    , resize: false
                    , cancel: function () {
                        //$(".layui-btn").removeClass("layui-btn-disabled");
                    }
                })
            });
@@ -593,7 +614,23 @@
            });
            //选择调出仓位
            form.on('submit(HOSpID-BT)', function () {//选择调出仓位
            //form.on('submit(HOSpID-BT)', function () {//选择调出仓位
            //    layer.open({
            //        type: 2
            //        , area: ['100%', '100%']
            //        , title: '仓位列表'
            //        , shade: 0.6 //遮罩透明度
            //        , maxmin: true //允许全屏最小化
            //        , anim: 0 //0-6的动画形式,-1不开启
            //        , content: ['../../../views/Baseset/基础资料/Gy_StockPlaceListNew.html?HWhID=' + sessionStorage["HWHID"] + '&Type=HOSpID&HOrgID=HStockOutOrgID', 'yes']
            //        , resize: false
            //        , cancel: function () {
            //            //$(".layui-btn").removeClass("layui-btn-disabled");
            //        }
            //    })
            //});
            form.on('submit(HOSpID-BT)', function () {//选择仓位
                layer.open({
                    type: 2
                    , area: ['100%', '100%']
@@ -601,7 +638,7 @@
                    , shade: 0.6 //遮罩透明度
                    , maxmin: true //允许全屏最小化
                    , anim: 0 //0-6的动画形式,-1不开启
                    , content: ['../../../views/Baseset/基础资料/Gy_StockPlaceListNew.html?HWhID=' + sessionStorage["HWHID"] + '&Type=HOSpID&HOrgID=HStockOutOrgID', 'yes']
                    , content: ['../../../views/Baseset/基础资料/Gy_StockPlaceList.html?HWhID=' + sessionStorage["HWHID"] + '&Type=HOSpID', 'yes']
                    , resize: false
                    , cancel: function () {
                        //$(".layui-btn").removeClass("layui-btn-disabled");
@@ -809,7 +846,6 @@
            //退出按钮
            form.on('submit(Cancel)', function () {
                parent.location.href = "../../../views/index.html"
                //window.close();//关闭当前页
            })
            //提交
@@ -984,26 +1020,31 @@
                var sBillNo = $("#HBillNo").val()
                var sQty = $("#HQty").val()
                var sHBillType = $("#HBillType").val()
                var SCWhID = $("#HSCWHID").val()//调出仓库
                var HSPID = $("#HStockPlaceID").val()//调入仓位
                var HWHID = $("#HWHID").val()//调入仓库
                var SCSPID = $("#HOutStockPlaceID").val()//调出仓位
                var HMaker = $("#HMaker").val();//制单人
                var HSCWhID = $("#HSCWHID").val()//调出仓库
                var HSCSPID = $("#HOutStockPlaceID").val()//调出仓位
                var SPID = $("#HStockPlaceID").val()//调入仓位
                var WhID = $("#HWHID").val()//调入仓库
                var sMaker = $("#HMaker").val();//制单人
                var HOrgID = $("#HOrgID").val();//组织
                var sBillType = '1207';
                var HBillType = '1207';
                var sMouldManagerCtl = 'N'
                var sFIFOCtl = 'N'
                var sSourceBillNo = $("#HSourceBillNo").val();//源单号
                if (sSourceBillNo == null) {
                    sSourceBillNo = "";
                }
                var HScanStyle = "";
                var HStockOutOrgID = $("#HStockOutOrgID").val()//调出组织
                var HStockInOrgID = $("#HStockInOrgID").val()//调入组织
                if (sQty == "") {
                    sQty = 0;
                }
                if (HWHID == SCWhID)
                {
                    layer.msg("调入仓库跟调出仓库一致,请重新选择调入仓库或者调出仓库!", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
                    return false;
                }
                //if (WhID == HSCWhID)
                //{
                //    layer.msg("调入仓库跟调出仓库一致,请重新选择调入仓库或者调出仓库!", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
                //    return false;
                //}
                if (HDeleteFlag == "*") {
                    if (sBarCode != "") {
@@ -1014,7 +1055,7 @@
                            type: "Get",
                            url: GetWEBURL() + "/ProductIn/Delete_Json",
                            async: true,
                            data: { "HInterID": sInterID, "HBillNo": sBillNo, "HBillType": sBillType, "HBarCode": sBarCode },
                            data: { "HInterID": sInterID, "HBillNo": sBillNo, "HBillType": '1207', "HBarCode": sBarCode },
                            dataType: "json",
                            success: function (data) {
                                if (data.count == 1) { // è¯´æ˜ŽéªŒè¯æˆåŠŸäº†
@@ -1023,12 +1064,13 @@
                                        elem: '#wl-table'
                                        , url: GetWEBURL() + '/MoveStockBill/DisBillEntryList_Webs_Json'
                                        , toolbar: '#toolbarDemo'
                                        , totalRow: true
                                        , defaultToolbar: []
                                        , where: { HBillID: sInterID, HBillType: '1207', sWhere: '' }
                                        , cols: [[
                                            { type: 'radio' }
                                            , { field: 'HQty', title: '数量', width: 150 }
                                            , { field: 'HQtyMust', title: '应收数量', width: 150 }
                                            , { field: 'HQty', title: '数量', width: 150, totalRow: true}
                                            , { field: 'HQtyMust', title: '应收数量', width: 150, totalRow: true}
                                            , { field: 'HMaterNumber', title: '物料代码', width: 150 }
                                            , { field: 'HMaterName', title: '物料名称', width: 150 }
                                            , { field: 'HMaterModel', title: '规格型号', width: 150 }
@@ -1089,11 +1131,12 @@
                        return false;
                    }
                    $.ajax({
                        url: GetWEBURL() + "/MoveStockBill/get_InfoByBarCode_Source_Json",
                        url: GetWEBURL() + "/MoveStockBill/get_InfoByBarCode_Source_Json",//37181
                        type: "GET",
                        data: { "sCode": sBarCode, "sInterID": sInterID, "sBillNo": sBillNo, "sQty": sQty, "HWHID": HWHID, "HSPID": HSPID, "SCWhID": SCWhID, "SCSPID": SCSPID, "HMaker": HMaker, "HOrgID": HOrgID, "HSourceBillNo": sSourceBillNo, "HSourceBillType": sHBillType },
                        data: { "sCode": sBarCode, "sInterID": sInterID, "HBillType": HBillType, "sBillNo": sBillNo, "sMaker": sMaker, "WhID": WhID, "SPID": SPID, "HSCWhID": HSCWhID, "HSCSPID": HSCSPID, "sQty": sQty, "SourceFlag": HSourceFlag, "sSourceBillNo": sSourceBillNo, "sHSourceBillType": sHBillType, "HStockInOrgID": HStockInOrgID, "HStockOutOrgID": HStockOutOrgID, "HScanStyle": HScanStyle},
                        success: function (result) {
                            if (result.count == 1) {
                                sessionStorage["SourceFlag"] = true;
                                element.tabChange('tab-MoveStockBill', '3');
                                //$("#HWHNAME").attr("readOnly", "true");//调入仓库不可变
                                //$("#HWHID-BT").attr("disabled", "true");
@@ -1104,37 +1147,68 @@
                                //$("#HOutStockPlaceName").attr("readOnly", "true");//调入仓位不可变
                                //$("#HOSpID-BT").attr("disabled", "true");
                                layer.load(3)
                                table.render({
                                    elem: '#wl-table'
                                    , url: GetWEBURL() + '/MoveStockBill/DisBillEntryList_Webs_Json'
                                    , toolbar: '#toolbarDemo'
                                    , defaultToolbar: []
                                    , totalRow: true
                                    , where: { HBillID: sInterID, HBillType: '1207', sWhere: '' }
                                    , cols: [[
                                        { type: 'radio', totalRowText: '合计' }
                                        , { field: 'HQty', title: '数量', width: 150, totalRow: true }
                                        , { field: '件数', title: '件数', width: 150, totalRow: true }
                                        , { field: 'HQtyMust', title: '应收数量', width: 150 }
                                        , { field: 'HMaterNumber', title: '物料代码', width: 150 }
                                        , { field: 'HMaterName', title: '物料名称', width: 150 }
                                        , { field: 'HMaterModel', title: '规格型号', width: 150 }
                                        , { field: 'HSourceInterID', title: '源单主内码', width: 150 }
                                        , { field: 'HSourceEntryID', title: '源单子内码', width: 150 }
                                        , { field: 'HSourceBillNo', title: '源单单号', width: 150 }
                                        , { field: 'HBatchNo', title: '批次', width: 150 }
                                        , { field: 'HMaterID', title: '物料内码', width: 150, hide: true }
                                        , { field: 'HAuxPropID', title: '', width: 150, hide: true }
                                        , { field: 'HMTONo', title: '计划跟踪号', width: 150, hide: true }
                                        , { fixed: 'right', title: '操作', toolbar: '#barDemo', width: 70 }
                                    ]]
                                    // , data: [linterid]
                                    // , page: true
                                    //, height: 500
                                    , done: function () {
                                //table.render({
                                //    elem: '#wl-table'
                                //    , url: GetWEBURL() + '/MoveStockBill/DisBillEntryList_Webs_Json'
                                //    , toolbar: '#toolbarDemo'
                                //    , defaultToolbar: []
                                //    , totalRow: true
                                //    , where: { HBillID: sInterID, HBillType: '1207', sWhere: '' }
                                //    , cols: [[
                                //        { type: 'radio', totalRowText: '合计' }
                                //        , { field: 'HQty', title: '数量', width: 150, totalRow: true }
                                //        , { field: '件数', title: '件数', width: 150, totalRow: true }
                                //        , { field: 'HQtyMust', title: '应收数量', width: 150 }
                                //        , { field: 'HMaterNumber', title: '物料代码', width: 150 }
                                //        , { field: 'HMaterName', title: '物料名称', width: 150 }
                                //        , { field: 'HMaterModel', title: '规格型号', width: 150 }
                                //        , { field: 'HSourceInterID', title: '源单主内码', width: 150 }
                                //        , { field: 'HSourceEntryID', title: '源单子内码', width: 150 }
                                //        , { field: 'HSourceBillNo', title: '源单单号', width: 150 }
                                //        , { field: 'HBatchNo', title: '批次', width: 150 }
                                //        , { field: 'HMaterID', title: '物料内码', width: 150, hide: true }
                                //        , { field: 'HAuxPropID', title: '', width: 150, hide: true }
                                //        , { field: 'HMTONo', title: '计划跟踪号', width: 150, hide: true }
                                //        , { fixed: 'right', title: '操作', toolbar: '#barDemo', width: 70 }
                                //    ]]
                                //    // , data: [linterid]
                                //    // , page: true
                                //    //, height: 500
                                //    , done: function () {
                                //        layer.closeAll("loading");
                                //    }
                                //});
                                $.ajax({
                                    url: GetWEBURL() + '/OtherInStockBill/DisBillEntryList_Webs_New_Json1',
                                    type: "GET",
                                    data: { HBillID: sInterID, HBillNo: sBillNo, HBillType: HBillType, sMouldManagerCtl: sMouldManagerCtl, sFIFOCtl: sFIFOCtl },
                                    success: function (result) {
                                        if (result.count == 1) { // è¯´æ˜ŽéªŒè¯æˆåŠŸäº†ï¼Œ
                                            listOption.data = result.data.list;
                                            table.render(listOption);
                                            listOption1.data = result.data.list2;
                                            table.render(listOption1);
                                            //console.log(result.data.list2);
                                            var count = 0;
                                            var count1 = 0;
                                            for (var i = 0; i < result.data.list.length; i++) {
                                                count += result.data.list[i].HQty;
                                                count1 += result.data.list[i].HPieceQty;
                                            }
                                            $("#HSumQtys").val(count);
                                            $("#HBarCodeQtys").val(count1);
                                            //return;
                                        }
                                        else {
                                            layer.msg(result.Message);
                                        }
                                        layer.closeAll("loading");
                                    }
                                });
                                playSound1();
                                var sSubStr = table.cache['wl-table'];
                            }
@@ -1179,6 +1253,9 @@
                var sInterID = $("#HInterID").val()
                var sBillNo = $("#HBillNo").val()
                var HSourceBillType = $("#HBillType").val()
                var sMouldManagerCtl = 'N'
                var sFIFOCtl = 'N'
                var HBillType = '1207'
                $.ajax({
                    url: GetWEBURL() + "/MoveStockBill/set_SavePonderationBillMain_Temp_Source_Fast_Json",
                    type: "GET",
@@ -1195,8 +1272,8 @@
                                $("#HStockOutOrgName").val(result.data[0].HSTOCKOUTORGName);
                            }
                            $("#HDeptID").val(result.data[0].HDeptID);
                            $("#HDeptName").val(result.data[0].HDeptName);
                            //$("#HDeptID").val(result.data[0].HDeptID);
                            //$("#HDeptName").val(result.data[0].HDeptName);
                            $("#HWHID").val(result.data[0].HWhID);
@@ -1212,32 +1289,63 @@
                            //}
                            layer.load(3);
                            element.tabChange('tab-MoveStockBill', '2');
                            table.render({
                                elem: '#wl-table'
                                , url: GetWEBURL() + '/MoveStockBill/DisBillEntryList_Webs_Json'
                                , toolbar: '#toolbarDemo'
                                , defaultToolbar: []
                                , where: { HBillID: sInterID, HBillType: '1207', sWhere: '' }
                                , cols: [[
                                    { type: 'radio' }
                                    , { field: 'HQty', title: '数量', width: 150 }
                                    , { field: 'HQtyMust', title: '应收数量', width: 150 }
                                    , { field: 'HMaterNumber', title: '物料代码', width: 150 }
                                    , { field: 'HMaterName', title: '物料名称', width: 150 }
                                    , { field: 'HMaterModel', title: '规格型号', width: 150 }
                                    , { field: 'HSourceInterID', title: '源单主内码', width: 150 }
                                    , { field: 'HSourceEntryID', title: '源单子内码', width: 150 }
                                    , { field: 'HSourceBillNo', title: '源单单号', width: 150 }
                                    , { field: 'HBatchNo', title: '批次', width: 150 }
                                    , { fixed: 'right', title: '操作', toolbar: '#barDemo', width: 70 }
                                ]]
                                // , data: [linterid]
                                // , page: true
                                , height: 500
                                , done: function () {
                            //table.render({
                            //    elem: '#wl-table'
                            //    , url: GetWEBURL() + '/MoveStockBill/DisBillEntryList_Webs_Json'
                            //    , toolbar: '#toolbarDemo'
                            //    , totalRow: true
                            //    , defaultToolbar: []
                            //    , where: { HBillID: sInterID, HBillType: '1207', sWhere: '' }
                            //    , cols: [[
                            //        { type: 'radio' }
                            //        , { field: 'HQty', title: '数量', width: 150, totalRow: true }
                            //        , { field: 'HQtyMust', title: '应收数量', width: 150, totalRow: true}
                            //        , { field: 'HMaterNumber', title: '物料代码', width: 150 }
                            //        , { field: 'HMaterName', title: '物料名称', width: 150 }
                            //        , { field: 'HMaterModel', title: '规格型号', width: 150 }
                            //        , { field: 'HSourceInterID', title: '源单主内码', width: 150 }
                            //        , { field: 'HSourceEntryID', title: '源单子内码', width: 150 }
                            //        , { field: 'HSourceBillNo', title: '源单单号', width: 150 }
                            //        , { field: 'HBatchNo', title: '批次', width: 150 }
                            //        , { fixed: 'right', title: '操作', toolbar: '#barDemo', width: 70 }
                            //    ]]
                            //    // , data: [linterid]
                            //    // , page: true
                            //    , height: 500
                            //    , done: function () {
                            //        layer.closeAll("loading");
                            //    }
                            //});
                            $.ajax({
                                url: GetWEBURL() + '/OtherInStockBill/DisBillEntryList_Webs_New_Json1',
                                type: "GET",
                                data: { HBillID: sInterID, HBillNo: sBillNo, HBillType: HBillType, sMouldManagerCtl: sMouldManagerCtl, sFIFOCtl: sFIFOCtl },
                                success: function (result) {
                                    if (result.count == 1) { // è¯´æ˜ŽéªŒè¯æˆåŠŸäº†ï¼Œ
                                        listOption.data = result.data.list;
                                        table.render(listOption);
                                        listOption1.data = result.data.list2;
                                        table.render(listOption1);
                                        //console.log(result.data.list2);
                                        var count = 0;
                                        var count1 = 0;
                                        for (var i = 0; i < result.data.list.length; i++) {
                                            count += result.data.list[i].HQty;
                                            count1 += result.data.list[i].HPieceQty;
                                        }
                                        $("#HSumQtys").val(count);
                                        $("#HBarCodeQtys").val(count1);
                                        //return;
                                    }
                                    else {
                                        layer.msg(result.Message);
                                    }
                                    layer.closeAll("loading");
                                }
                            });
                            $("#HSourceBillNo").attr("disabled", "true");
                        }
                        else {
@@ -1250,6 +1358,54 @@
            }
            
        });
        var listOption = {
            elem: '#wl-table'
            , toolbar: '#toolbarDemo'
            , cellMinWidth: 90
            , limit: 3000
            , totalRow: true
            , cols: [[
                { type: 'radio' }
            , { field: 'HQty', title: '数量', width: 150, totalRow: true }
            , { field: 'HQtyMust', title: '应收数量', width: 150, totalRow: true}
            , { field: 'HMaterNumber', title: '物料代码', width: 150 }
            , { field: 'HMaterName', title: '物料名称', width: 150 }
            , { field: 'HMaterModel', title: '规格型号', width: 150 }
            , { field: 'HSourceInterID', title: '源单主内码', width: 150 }
            , { field: 'HSourceEntryID', title: '源单子内码', width: 150 }
            , { field: 'HSourceBillNo', title: '源单单号', width: 150 }
            , { field: 'HBatchNo', title: '批次', width: 150 }
            , { fixed: 'right', title: '操作', toolbar: '#barDemo', width: 70 }
            ]]
            , height: 500
            , done: function () {
                layer.closeAll("loading");
            }
        }
        var listOption1 = {
            elem: '#mx-table'
            , toolbar: '#toolbarDemo'
            , cellMinWidth: 90
            , cols: [[
                { type: 'radio' }
                , { field: 'HQty', title: '数量', width: 150, totalRow: true }
                , { field: 'HQtyMust', title: '应收数量', width: 150, totalRow: true }
                , { field: 'HMaterNumber', title: '物料代码', width: 150 }
                , { field: 'HMaterName', title: '物料名称', width: 150 }
                , { field: 'HMaterModel', title: '规格型号', width: 150 }
                , { field: 'HSourceInterID', title: '源单主内码', width: 150 }
                , { field: 'HSourceEntryID', title: '源单子内码', width: 150 }
                , { field: 'HSourceBillNo', title: '源单单号', width: 150 }
                , { field: 'HBatchNo', title: '批次', width: 150 }
                , { fixed: 'right', title: '操作', toolbar: '#barDemo', width: 70 }
            ]]
            , height: 500
            , done: function () {
                layer.closeAll("loading");
            }
        }
        //以上为layui模块
        function GetHWHValue(obj)  //返回调入仓库
@@ -1273,6 +1429,8 @@
        function GetHSpValue(obj) {  //返回调入仓位
            $("#HStockPlaceName").val(obj[0].HName);
            $("#HStockPlaceID").val(obj[0].HItemID);
            $("#HWHNAME").val(obj[0].HWhName);
            $("#HWHID").val(obj[0].HWHID);
        }
        function GetHSCWHNAMEValue(obj)  //返回调出仓库
        {
@@ -1282,6 +1440,8 @@
        function GetHOutStockPlaceIDValue(obj) {  //返回调出仓位
            $("#HOutStockPlaceName").val(obj[0].HName);
            $("#HOutStockPlaceID").val(obj[0].HItemID);
            $("#HSCWHNAME").val(obj[0].HWhName);
            $("#HSCWHID").val(obj[0].HWHID);
        }
        function GetHSupValue(obj) {  //返回供应商
            $("#HSupName").val(obj[0].HName);
@@ -1310,6 +1470,12 @@
        }
        function AllowLoadData(sSubStr, bnt) {  //非空验证
            //数字正则(包含小数)
            var reg = /^\d+(\.\d+)?$/;
            //if (reg.test($("#HQty").val()) == false || $("#HQty").val() == '') {
            //    layer.msg("数量必须为数量或小数", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
            //    return false;
            //}
            //if ($("#HSourceBillNo").val() == '') {
            //    layer.msg("请先扫源单!", { icon: 5 });
            //    return false;