ch
2022-01-19 70d4b8bd7a6ccdd1edb2c1e89cd04884a63ba7dc
新增了拆箱单
3个文件已修改
372 ■■■■ 已修改文件
WebTM/WebTM.csproj 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/home/console.html 16 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/生产管理/生产拆箱单/Sc_PackSplitBill_Fast.html 354 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/WebTM.csproj
@@ -790,6 +790,7 @@
    <Content Include="views\生产管理\生产开工单\Sc_Add_MESBeginWorkBillList - å¤åˆ¶.html" />
    <Content Include="views\生产管理\生产开工单\Sc_Add_MESBeginWorkBillList.html" />
    <Content Include="views\生产管理\生产开工单\Sc_MESBeginWorkBillList.html" />
    <Content Include="views\生产管理\生产拆箱单\Sc_PackSplitBill_Fast.html" />
    <Content Include="views\生产管理\生产汇报单\Sc_ICMOReportBill_FastNew.html" />
    <Content Include="views\生产管理\生产汇报单\Sc_Add_ICMOReportBillList.html" />
    <Content Include="views\生产管理\生产组装追溯单\Sc_AssemblyBillList.html" />
@@ -1176,7 +1177,6 @@
  <ItemGroup>
    <Folder Include="views\仓存管理\调拨单核对\" />
    <Folder Include="views\仓存管理\调拨单稽核\" />
    <Folder Include="views\生产管理\生产拆箱单\" />
  </ItemGroup>
  <PropertyGroup>
    <VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">10.0</VisualStudioVersion>
WebTM/views/home/console.html
@@ -99,12 +99,18 @@
                                                    <cite>委外工序发出单</cite>
                                                </a>
                                            </li>
                                            <!--<li class="layui-col-xs3">
                                                <a lay-href="set/user/info.html">
                                                    <i class="layui-icon layui-icon-set"></i>
                                                    <cite>我的资料</cite>
                                            <li class="layui-col-xs3">
                                                <a href="../生产管理/生产拆箱单/Sc_PackSplitBill_Fast.html" target="main_self_frame">
                                                    <i class="layui-icon layui-icon-find-fill"></i>
                                                    <cite>生产拆箱单</cite>
                                                </a>
                                            </li>-->
                                            </li>
                                            <!--<li class="layui-col-xs3">
        <a lay-href="set/user/info.html">
            <i class="layui-icon layui-icon-set"></i>
            <cite>我的资料</cite>
        </a>
    </li>-->
                                        </ul>
                                    </div>
                                    <div class="layui-carousel-ind"><ul><li class="layui-this"></li><li class=""></li></ul></div><button class="layui-icon layui-carousel-arrow" lay-type="sub"></button><button class="layui-icon layui-carousel-arrow" lay-type="add"></button>
WebTM/views/Éú²ú¹ÜÀí/Éú²ú²ðÏäµ¥/Sc_PackSplitBill_Fast.html
@@ -503,76 +503,24 @@
            var checkStatus = table.checkStatus('wl-table')
            , data = checkStatus.data;
            var sInterID = $('#HInterID').val()
            var sMaterID = data[0].HMaterID
            var sBillType = '1202'
            var sAuxPropID = data[0].HAuxPropID
            //var sMTONo = data[0].HMTONo
            var sMTONo = ''
            var sSourceInterID = data[0].HSourceInterID
            var sSourceEntryID = data[0].HSourceEntryID
            var HBillNo = $("#HBillNo").val()
            var sMouldManagerCtl = 'N'
            var sFIFOCtl = 'N'
            var HBarCode = data[0].HBarCode
            $.ajax(
               {
                   type: "Get",
                   //url: "http://61.130.49.162:9090/WMSAPI///ProductIn/Delete_Json", //方法所在页面和方法名
                    url: GetWEBURL() + "/ProductIn/Delete_Json_AN",
                    url: GetWEBURL() + "/PackSplit/Delete",
                   async: true,
                   data: { "HInterID": sInterID, "HMaterID": sMaterID, "HAuxPropID": sAuxPropID, "HMTONo": sMTONo, "HSourceInterID": sSourceInterID, "HSourceEntryID": sSourceEntryID, "sHBillType": sBillType, },
                    data: { "HInterID": sInterID, "HBarCode": HBarCode, "HBillType": '3784'},
                   dataType: "json",
                   success: function (data) {
                       if (data.count == 1) { // è¯´æ˜ŽéªŒè¯æˆåŠŸäº†
                         //  table.render({
                         //      elem: '#wl-table'
                         //      //, url: 'http://61.130.49.162:9090/WMSAPI///ProductIn/DisBillEntryList_Mate_Webs_Json'
                         //      , url: GetWEBURL() + '/ProductIn/DisPlayBarCodeList_Json'
                         //, cellMinWidth: 80
                         //, toolbar: '#toolbarDemo'
                         //      , where: { HBillID: sInterID, HBillNo: HBillNo, HBillType: '1202', sMouldManagerCtl: sMouldManagerCtl, sFIFOCtl: sFIFOCtl}
                         //, cols: [[
                         //       { type: 'radio' }
                         //       , { field: 'HQty', title: '数量', width: 80 }
                         //       , { field: 'HQtyMust', title: '应收数量', width: 80 }
                         //       , { field: 'HMaterNumber', title: '物料代码', width: 100 }
                         //       , { field: 'HMaterName', title: '物料名称', width: 150 }
                         //       , { field: 'HMaterModel', title: '规格型号', width: 100 }
                         //       , { field: 'HSourceInterID', title: '源单主内码', width: 100 }
                         //       , { field: 'HSourceEntryID', title: '源单子内码', width: 100 }
                         //       , { field: 'HSourceBillNo', title: '源单单号', width: 100 }
                         //       , { field: 'HBatchNo', title: '批次', width: 100 }
                         //       , { field: 'HAuxPropID', title: '辅助属性', width: 100 }
                         //       , { field: 'HMTONo', title: '计划跟踪号', width: 100 }
                         //       , { field: 'HMaterID', title: '物料ID', width: 100 }
                         //]]
                         //, height: 500
                         //  })
                           table.render({
                               elem: '#wl-table'
                               //, url: 'http://61.130.49.162:9090/WMSAPI///ProductIn/DisBillEntryList_Webs_Json'
                               , url: GetWEBURL() + '/ProductIn/DisBillEntryList_Webs_Json'
                               , toolbar: '#toolbarDemo'
                               , defaultToolbar: []
                               , where: { HBillID: sInterID, HBillType: '1202', 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 }
                               ]]
                               // , data: [linterid]
                               // , page: true
                               , height: 500
                               , done: function () {
                                   layer.closeAll("loading");
                               }
                           })
                           layer.msg(data.Message, { time: 1 * 1000, icon: 1 }, function () {
                               // å¾—到frame索引
                               var index = layer.getFrameIndex(window.name);
                               //关闭当前frame
                               layer.close(index);
                               //修改为功后刷新界面
                               window.location.reload();
                           });
                       }
                       else {
                           layer.msg(data.Message, { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
@@ -586,37 +534,24 @@
        //提交
        form.on('submit(Saver)', function (data) {//提交
            //debugger;
            if ($("#HExplanation").val() == "") {
                if ($("#HWHNAME").val() == "宽幅成品仓NEW" || $("#HWHNAME").val() == "样本仓NEW") {
                    $("#HWHNAME").val("");
                    $("#HWHID").val("");
                    layer.msg("请扫MES库位码!", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
                    return;
                }
                else
                {
                    $("#HExplanation").val($("#HWHNAME").val());
                }
            }
            var sMainStr = JSON.stringify(data.field);
            var sSubStr = table.cache['wl-table'];
            //var sSourceType = $("#HBillType").val();
            var sSourceType = "3711";
            var sInterID = $('#HInterID').val()
            var sBillNo = $("#HBillNo").val()
            var HTBarCode = $('#HTBarCode').val()
            var HOrgID = sessionStorage["OrganizationID"]
            var sMaker = sessionStorage["HUserName"]
            if (AllowLoadData(sSubStr) != false)//非空验证
            {
                layer.load(3);
                $.ajax(
                {
                    type: "POST",
                    //url: "http://61.130.49.162:9090/WMSAPI///ProductIn/set_SaveProductInBill_Json", //方法所在页面和方法名
                    url: GetWEBURL() + "/ProductIn/set_SaveProductInBill_Json",
                        url: GetWEBURL() + "/PackSplit/set_SavePackSplitBill_Json",
                    async: true,
                    data: { "oMain": sMainStr  },
                    dataType: "json",
                        data: { "sInterID": sInterID, "HBillType": '3784', "sBillNo": sBillNo, "HTBarCode": HTBarCode, "sMaker": sMaker, "HOWNERID": HOrgID },
                    //dataType: "json",
                    success: function (data) {
                        if (data.count == 1) { // è¯´æ˜ŽéªŒè¯æˆåŠŸäº†
                            layer.confirm("生成产品入库单" + data.Message + $("#HBillNo").val(), {
                            layer.confirm("生成拆箱单" + data.Message + $("#HBillNo").val(), {
                                icon: 1, skin: 'layui-layer-lan', title: "温馨提示", closeBtn: 0, btn: ['新增'],
                                btn2: function () {
                                    //parent.layui.admin.events.closeThisTabs();关闭页签
@@ -649,73 +584,13 @@
            }
        });
        //扫条码
            $('#HBarCode').on('keydown', function (event) {  //扫条码
                var sOldBarCode = $('#HBarCode').val()
                var HDeleteFlag = sOldBarCode.substring(0, 1);
                var sBarCode = sOldBarCode.slice(1);
                var sSubStr = table.cache['wl-table'];
        //扫描拆箱条码
            $('#HBarCode').on('keydown', function (event) {  //扫描拆箱条码
                var sInterID = $("#HInterID").val()
                var sBillNo = $("#HBillNo").val()
                var sQty = $("#HQty").val()
                var sHBillType = $("#HBillType").val()  //源单类型
                var sBillType = '1202'
                var sHWHID = $("#HWHID").val()
                var sHSPID = $("#HStockPlaceID").val()
                var sSourceBillNo = $("#HSourceBillNo").val()
                var HBarCode = $('#HBarCode').val()
                var HTBarCode = $('#HTBarCode').val()
                if (event.keyCode == 13) {
                if (HDeleteFlag == "*")
                {
                    if (sBarCode != "") {
                        $('#HBarCode').val("");
                    }
                    var sBarCode = sOldBarCode.slice(1);
                    $.ajax(
                        {
                            type: "Get",
                            url: GetWEBURL() + "/ProductIn/Delete_Json",
                            async: true,
                            data: { "HInterID": sInterID, "HBillNo": sBillNo, "HBillType": sBillType, "HBarCode": sBarCode},
                            dataType: "json",
                            success: function (data) {
                                if (data.count == 1) { // è¯´æ˜ŽéªŒè¯æˆåŠŸäº†
                                    table.render({
                                        elem: '#wl-table'
                                        //, url: 'http://61.130.49.162:9090/WMSAPI///ProductIn/DisBillEntryList_Webs_Json'
                                        , url: GetWEBURL() + '/ProductIn/DisBillEntryList_Webs_Json'
                                        , toolbar: '#toolbarDemo'
                                        , defaultToolbar: []
                                        , where: { HBillID: sInterID, HBillType: '1202', 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 }
                                        ]]
                                        // , data: [linterid]
                                        // , page: true
                                        , height: 500
                                        , done: function () {
                                            layer.closeAll("loading");
                                        }
                                    })
                                }
                                else {
                                    layer.msg(data.Message, { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
                                }
                            },
                            error: function (err) {
                                layer.msg('错误' + err, { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
                            }
                        });
                }
                else {
                    var sBarCode = $('#HBarCode').val()
                    //var Flag = sessionStorage["SourceFlag"];
                    if (sQty == "") {
@@ -730,110 +605,41 @@
                        if (sBarCode != "") {
                            $('#HBarCode').val("");
                        }
                        if (sQty != "") {
                            $('#HQty').val("");
                        }
                        if (sHWHID == "184154") {
                            if (sHSPID == "0") {
                                layer.msg("仓位为空,请选择仓位!", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
                                return false;
                            }
                        }
                        //if (AllowLoadData(sSubStr, 'HBarCode') != false) {//非空验证
                        $.ajax({
                            //url: "http://61.130.49.162:9090/WMSAPI///ProductIn/get_CheckTypeByBarCode_Json",
                            url: GetWEBURL() + "/ProductIn/get_CheckTypeByBarCode_Json",
                            url: GetWEBURL() + "/PackSplit/get_CheckTypeByBarCode_Json",
                            type: "GET",
                            data: { "sCode": sBarCode, "sInterID": sInterID, "sBillNo": sBillNo, "sBillType": sBillType, "sMaker": sessionStorage["HUserName"], "WhID": sHWHID, "SPID": sHSPID, "sQty": sQty, "sRedBlue": false, "SourceFlag": HSourceFlag, "sSourceBillNo": sSourceBillNo, "sSourceType": sHBillType, "HOWNERID": sessionStorage["OrganizationID"] },
                            data: { "HBarCode": HBarCode, "sInterID": sInterID, "HBillType": '3784', "sBillNo": sBillNo, "HTBarCode": HTBarCode, "sMaker": sessionStorage["HUserName"], "HOWNERID": sessionStorage["OrganizationID"] },
                            success: function (result) {
                                //debugger;
                                playSound1();
                                if (result.count == 1) {
                                    if (result.data.HBarType == '仓库条码') {
                                        $("#HWHNAME").val(result.data.HWhName);
                                        $("#HWHID").val(result.data.HWhID);
                                        $("#HStockPlaceName").val("");
                                        $("#HNote").val(";一键扫码仓库条码");
                                        element.tabChange('tab-ProductlnBill', '2');  //跳转页签
                                    }
                                    else if (result.data.HBarType == '仓位条码') {
                                        $("#HStockPlaceName").val(result.data.HSPName);
                                        $("#HStockPlaceID").val(result.data.HSPID);
                                        $("#HWHNAME").val(result.data.HWhName);
                                        $("#HWHID").val(result.data.HWhID);
                                        $("#HNote").val(";一键扫码仓位条码");
                                        element.tabChange('tab-ProductlnBill', '2');//跳转页签
                                    }
                                    else if (result.data.HBarType == '部门条码') {
                                        $("#HDeptName").val(result.data.HDeptName);
                                        $("#HDeptID").val(result.data.HDeptID);
                                        $("#HNote").val(";一键扫码部门条码");
                                        element.tabChange('tab-ProductlnBill', '2');//跳转页签
                                    }
                                    else if (result.data.HBarType == '源单条码') {
                                        $("#HSupName").val(result.data.HSupName);
                                        $("#HSupID").val(result.data.HSupID);
                                        $("#HDeptName").val(result.data.HDeptName);
                                        $("#HDeptID").val(result.data.HDeptID);
                                        $("#HSourceBillNo").val(result.data.HSourceBillNo);
                                        HSourceFlag = true;
                                        //获取源单类型、源单单号
                                        //if (result.data.HSourceBillType == "3711") {
                                        //    $("#HBillType").val("3711");
                                        //}
                                        //else {
                                        //    $("#HBillType").val("-1");
                                        //}
                                        $("#HNote").val(";一键扫码源单条码");
                                        element.tabChange('tab-ProductlnBill', '3');
                                    }
                                    else {
                                        if (HSourceFlag == "true") {
                                            element.tabChange('tab-ProductlnBill', '3');
                                        }
                                        else {
                                            $("#HSupName").val(result.data.HSupName);
                                            $("#HSupID").val(result.data.HSupID);
                                            //$("#HDeptName").val(result.data.HDept);
                                            //$("#HDeptID").val(result.data.HDeptID);
                                            $("#HSourceBillNo").val(result.data.HSourceBillNo);
                                            HSourceFlag = true;
                                            //获取源单类型、源单单号
                                            //if (result.data.HSourceBillType == "3711") {
                                            //    $("#HBillType").val("3711");
                                            //}
                                            //else {
                                            //    $("#HBillType").val("-1");
                                            //}
                                            $("#HNote").val(";物料条码");
                                            element.tabChange('tab-ProductlnBill', '3');
                                        }
                                        //}
                                    }
                                    //$("#HSupID").val(result.data.HSupID);
                                    //$("#HSupName").val(result.data.HSupName);
                                    //$("#HDeptID").val(result.data.HDeptID);
                                    //$("#HDeptName").val(result.data.HDeptName);
                                    layer.load(3)
                                    table.render({
                                        elem: '#wl-table'
                                        //, url: 'http://61.130.49.162:9090/WMSAPI///ProductIn/DisBillEntryList_Webs_Json'
                                        , url: GetWEBURL() + '/ProductIn/DisBillEntryList_Webs_Json'
                                        , url: GetWEBURL() + '/PackSplitBill/GetBillEntry_TmpList_Pack'
                                        , toolbar: '#toolbarDemo'
                                        , defaultToolbar: []
                                        , where: { HBillID: sInterID, HBillType: '1202', sWhere: '' }
                                        , where: { HBillID: sInterID, HBillNo: sBillNo, HBillType: '3784', sWhere: '' }
                                        , cols: [[
                                            { type: 'radio' }
                                            , { field: 'HQty', title: '数量', width: 150 }
                                            , { field: 'HQtyMust', title: '应收数量', width: 150 }
                                            , { field: 'HPieceQty', title: '件数', width: 150 }
                                            , { field: 'HBarCode', title: '子条码编号', width: 150 }
                                            , { field: 'HMaterNumber', title: '物料代码', width: 150 }
                                            , { field: 'HMaterName', title: '物料名称', width: 150 }
                                            , { field: 'HMaterModel', title: '规格型号', width: 150 }
                                            , { field: 'HMaterID', title: '物料ID', width: 150 }
                                            , { field: 'HSourceBillNo', title: '源单单号', width: 150 }
                                            , { field: 'HSourceInterID', title: '源单主内码', width: 150 }
                                            , { field: 'HSourceEntryID', title: '源单子内码', width: 150 }
                                            , { field: 'HSourceBillNo', title: '源单单号', width: 150 }
                                            , { field: 'HBatchNo', title: '批次', width: 150 }
                                            , { field: 'HQtyMust', title: '应收数量', width: 150 }
                                        ]]
                                        // , data: [linterid]
                                        // , page: true
@@ -842,11 +648,6 @@
                                            layer.closeAll("loading");
                                        }
                                    });
                                }
                                else {
                                    playSound();
                                    layer.msg(result.Message, { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
                                }
                                layer.closeAll("loading");
                            },
                            error: function (err) {
@@ -855,7 +656,6 @@
                                console.log(err);
                            }
                        });
                    }
                }
            });
@@ -882,8 +682,8 @@
                audio.play();
            }
        //扫源单
            $('#HTBarCode').on('keydown', function (event) {   //扫源单
        //扫拖条码
            $('#HTBarCode').on('keydown', function (event) {
            var HTBarCode = $('#HTBarCode').val()
            var sInterID = $("#HInterID").val()
            var sBillNo = $("#HBillNo").val()
@@ -917,10 +717,10 @@
                                , url: GetWEBURL() + '/PackSplitBill/GetBillEntry_TmpList_Pack'
                                , toolbar: '#toolbarDemo'
                                , defaultToolbar: []
                              , where: { HBillID: sInterID, HBillType: '3784', sWhere: '' }
                                , where: { HBillID: sInterID, HBillNo: sBillNo, HBillType: '3784', sWhere: '' }
                              , cols: [[
                                  { type: 'radio' }
                                , { field: 'HQty', title: '数量', width: 150 }
                                , { field: 'HPieceQty', title: '件数', width: 150 }
                                , { field: 'HBarCode', title: '子条码编号', width: 150 }
                                , { field: 'HMaterNumber', title: '物料代码', width: 150 }
                                , { field: 'HMaterName', title: '物料名称', width: 150 }
@@ -929,7 +729,7 @@
                                , { field: 'HSourceBillNo', title: '源单单号', width: 150 }
                                , { field: 'HSourceInterID', title: '源单主内码', width: 150 }
                                , { field: 'HSourceEntryID', title: '源单子内码', width: 150 }
                                , { field: 'HBarCodeQty', title: '条码数量', width: 150 }
                                , { field: 'HQtyMust', title: '应收数量', width: 150 }
                              ]]
                                // , data: [linterid]
                                // , page: true
@@ -1059,19 +859,19 @@
        //    layer.msg("请先扫源单!", { icon: 5 });
        //    return false;
        //}
        if($("#HDeptName").val()=='')
        {
            layer.msg("部门没有选择", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
            return false;
        }
        if ($("#HSecManager").val() == '') {
            layer.msg("验收人没有选择", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
            return false;
        }
        if ($("#HKeeper").val() == '') {
            layer.msg("保管人没有选择", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
            return false;
        }
        //if($("#HDeptName").val()=='')
        //{
        //    layer.msg("部门没有选择", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
        //    return false;
        //}
        //if ($("#HSecManager").val() == '') {
        //    layer.msg("验收人没有选择", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
        //    return false;
        //}
        //if ($("#HKeeper").val() == '') {
        //    layer.msg("保管人没有选择", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
        //    return false;
        //}
        //if ($("#HWHNAME").val() == '') {
        //    layer.msg("仓库没有选择!", { icon: 5 });
        //    return false;
@@ -1084,31 +884,31 @@
            layer.msg("错误的内码", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
            return false;
        }
        if (typeof (sSubStr) == "undefined")
        {
            layer.msg("没有物料明细记录", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
            return false;
        }
        if (!typeof (sSubStr) == "undefined") {
            //for (var i = 0; i <= sSubStr.length - 1; i++) {  //判断扫码数量不能大于应收数量
            //    if (parseFloat(sSubStr[i].HQtyMust) > 0) {
            //        if (parseFloat(sSubStr[i].HQty) > parseFloat(sSubStr[i].HQtyMust))
            //        {
            //            layer.msg("数量不能大于应收数量", { icon: 5, btn: ['确定'], time: 100000, offset: 't' });
            //            return false;
            //        }
            //    }
            //}
            for (var i = 0; i <= sSubStr.length - 1; i++) {   //判断扫码数量不能为0
                if (parseFloat(sSubStr[i].HQty) > 0) {
                    s = 1;
                }
            }
            if (s == 0) {
                layer.msg("产品入库记录未扫码", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
                return false;
            }
        }
        //if (typeof (sSubStr) == "undefined")
        //{
        //    layer.msg("没有物料明细记录", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
        //    return false;
        //}
        //if (!typeof (sSubStr) == "undefined") {
        //    //for (var i = 0; i <= sSubStr.length - 1; i++) {  //判断扫码数量不能大于应收数量
        //    //    if (parseFloat(sSubStr[i].HQtyMust) > 0) {
        //    //        if (parseFloat(sSubStr[i].HQty) > parseFloat(sSubStr[i].HQtyMust))
        //    //        {
        //    //            layer.msg("数量不能大于应收数量", { icon: 5, btn: ['确定'], time: 100000, offset: 't' });
        //    //            return false;
        //    //        }
        //    //    }
        //    //}
        //    for (var i = 0; i <= sSubStr.length - 1; i++) {   //判断扫码数量不能为0
        //        if (parseFloat(sSubStr[i].HQty) > 0) {
        //            s = 1;
        //        }
        //    }
        //    if (s == 0) {
        //        layer.msg("产品入库记录未扫码", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
        //        return false;
        //    }
        //}
        else
        {
            return true;