ch
2022-05-30 4eff3a8e16e844fd1d842a6b790ecb9e1878d4b1
缓存列表样式修改
15个文件已修改
961 ■■■■ 已修改文件
WebTM/views/home/console_Mobile.html 12 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/仓存管理/仓库调拨/Kf_MoveStockBill_CheckList_New.html 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/仓存管理/仓库调拨/Kf_MoveStockBill_Check_New.html 193 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/公共页面/Kf_BarCodeEditDlg.html 333 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/车间管理/工序进站接收单/Cj_StationInBill.html 4 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/领料发货/其他出库/Kf_OtherOutBill_Fast.html 15 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/领料发货/委外出库/Kf_EntrustOutBill_Fast.html 9 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/领料发货/销售出库/Kf_SellOutBill_Fast.html 94 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/领料发货/领料出库/Kf_MateOutBill_CheckList_New.html 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/领料发货/领料出库/Kf_MateOutBill_Check_New.html 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/领料发货/领料出库/Kf_MateOutBill_Fast.html 80 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/验收入库/产品入库/Kf_ProductInBill_Fast.html 61 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/验收入库/产品入库/Kf_ProductInBill_FastList.html 43 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/验收入库/其他入库/Kf_OtherInBill_Fast.html 107 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/验收入库/外购入库/Kf_POStockInBill_Fast.html 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/home/console_Mobile.html
@@ -136,6 +136,18 @@
                                      <cite>领料出库单校验缓存列表</cite>
                                  </a>
                              </li>
                              <li class="layui-col-xs3">
                                  <a href="../仓存管理/仓库调拨/Kf_MoveStockBill_Check_New.html" target="main_self_frame">
                                      <i class="layui-icon layui-icon-find-fill"></i>
                                      <cite>直接调拨单校验</cite>
                                  </a>
                              </li>
                              <li class="layui-col-xs3">
                                  <a href="../仓存管理/仓库调拨/Kf_MoveStockBill_CheckList_New.html" target="main_self_frame">
                                      <i class="layui-icon layui-icon-find-fill"></i>
                                      <cite>直接调拨单校验缓存列表</cite>
                                  </a>
                              </li>
                          </ul>
                      </div>
                  </div>
WebTM/views/²Ö´æ¹ÜÀí/²Ö¿âµ÷²¦/Kf_MoveStockBill_CheckList_New.html
@@ -73,7 +73,7 @@
        //读取单据列表
        //
        form.on('submit(Cancel)', function () {
        form.on('submit(cmdCancel)', function () {
            parent.location.href = "../../../views/index.html"
            //window.close();//关闭当前页
        })
@@ -91,7 +91,7 @@
                , shade: 0.6 //遮罩透明度
                , maxmin: false //允许全屏最小化
                , anim: 0 //0-6的动画形式,-1不开启
                , content: ['../../领料发货/领料出库/Kf_MateOutBill_Check_New.html?linterid=' + data[0].HInterID + '&lBillNo=' + data[0].HBillNo, 'yes']
                , content: ['../../仓存管理/仓库调拨/Kf_MoveStockBill_Check_New.html?linterid=' + data[0].HInterID + '&lBillNo=' + data[0].HBillNo, 'yes']
                , resize: false
                , cancel: function () {
                    $(".layui-btn").removeClass("layui-btn-disabled");
@@ -185,7 +185,7 @@
        
       
        
        var sBillType = '1204'
        var sBillType = '1207'
                table.render({
                    elem: '#dj-table'
                    , url: GetWEBURL() + '/OtherOutBill_Check_New/DisPonderationBillMain_TempList_BillCheck'
WebTM/views/²Ö´æ¹ÜÀí/²Ö¿âµ÷²¦/Kf_MoveStockBill_Check_New.html
@@ -89,7 +89,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>
@@ -117,7 +117,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>
@@ -149,9 +149,10 @@
                                        </div>
                                    </div>
                                </div>
                                <table class="layui-hide" id="wl-table" lay-filter="wl-table"></table>
                            </div>
                            <div class="layui-tab-item">
                                <table class="layui-hide" id="wl-table" lay-filter="wl-table"></table>
                                <table class="layui-hide" id="mx-table" lay-filter="mx-table"></table>
                            </div>
                            <div class="layui-tab-item">
@@ -229,14 +230,30 @@
                        if (result.count == 1) { // è¯´æ˜ŽéªŒè¯æˆåŠŸäº†ï¼Œ
                            //console.log(JSON.stringify(result.data.hItemIDField))
                            //return;
                            //$("#HStockPlaceName").val(result.data.hSPNameField);
                            //$("#HWHID").val(result.data.hWhIDField);
                            //$("#HWHNAME").val(result.data.hWhNameField);
                            // $("#HStockPlaceName").val(result.data.hSPNameField);
                            //$("#HWHID").val(result.data.hWhIDField);
                            //$("#HWHNAME").val(result.data.hWhNameField);
                            //$('#HInterID').val(result.data.hInterIDField)
                            //$('#HBillNo').val(result.data.hBillNoField)
                            $("#HStockPlaceName").val(result.data.hSPNameField);
                            $("#HOutStockPlaceName").val(result.data.hSCSPNameField);
                            $("#HStockPlaceID").val(result.data.hSPIDField);
                            $("#HOutStockPlaceID").val(result.data.hSCSPIDField);
                            $("#HWHID").val(result.data.hWhIDField);
                            $("#HWHNAME").val(result.data.hWhNameField);
                             $("#HStockPlaceName").val(result.data.hSPNameField);
                            $("#HWHID").val(result.data.hWhIDField);
                            $("#HWHNAME").val(result.data.hWhNameField);
                            $("#HSCWHID").val(result.data.hSCWhIDField);
                            $("#HSCWHNAME").val(result.data.hSCWhNameField);
                            $('#HInterID').val(result.data.hInterIDField)
                            $('#HBillNo').val(result.data.hBillNoField)
                            $('#HStockOutOrgName').val(result.data.hStockOutOrgNameField)
                            $('#HStockOutOrgID').val(result.data.hStockOutOrgIDField)
                            $('#HStockInOrgName').val(result.data.hStockInOrgNameField)
                            $('#HStockInOrgID').val(result.data.hStockInOrgIDField)
                            var HBillID = $('#HInterID').val()
                            element.tabChange('tab-Kf_OtherInBill', '2');
                            table.render({
@@ -342,6 +359,7 @@
                pFocus.select();
            }
            //
            function Sub_ClearBill() {
                //表头初始化赋值(根据登录用户获取 é»˜è®¤ä»“库、部门、验收、保管、金蝶用户) new
@@ -394,7 +412,9 @@
            }
            //
            form.on('submit(HWHID-BT)', function () {//选择仓库
            //选择调入仓库
            form.on('submit(HWHID-BT)', function () {//选择调入仓库
                var HStockInOrgID = $("#HStockInOrgID").val();
                layer.open({
                    type: 2
                    , area: ['100%', '100%']
@@ -402,14 +422,50 @@
                    , shade: 0.6 //遮罩透明度
                    , maxmin: true //允许全屏最小化
                    , anim: 0 //0-6的动画形式,-1不开启
                    , content: ['../../../views/Baseset/基础资料/Gy_WarehouseList.html?Type=HWHID', 'yes']
                    , content: ['../../../views/Baseset/基础资料/Gy_WarehouseListNew.html?Type=HWHID&HOrgID=' + HStockInOrgID + '', 'yes']
                    , resize: false
                    , cancel: function () {
                        //$(".layui-btn").removeClass("layui-btn-disabled");
                    }
                })
            });
            form.on('submit(HSpID-BT)', function () {//选择仓位
            //选择调入组织
            form.on('submit(HStockInOrgID-BT)', function () {//选择调入组织
                layer.open({
                    type: 2
                    , area: ['100%', '100%']
                    , title: '组织列表'
                    , shade: 0.6 //遮罩透明度
                    , maxmin: true //允许全屏最小化
                    , anim: 0 //0-6的动画形式,-1不开启
                    , content: ['../../../views/Baseset/基础资料/Gy_OrganizationtList.html?Type=HStockInOrgID', 'yes']
                    , resize: false
                    , cancel: function () {
                    }
                })
            });
            //选择调出组织
            form.on('submit(HStockOutOrgID-BT)', function () {//选择调出组织
                layer.open({
                    type: 2
                    , area: ['100%', '100%']
                    , title: '组织列表'
                    , shade: 0.6 //遮罩透明度
                    , maxmin: true //允许全屏最小化
                    , anim: 0 //0-6的动画形式,-1不开启
                    , content: ['../../../views/Baseset/基础资料/Gy_OrganizationtList.html?Type=HStockOutOrgID', 'yes']
                    , resize: false
                    , cancel: function () {
                    }
                })
            });
            //选择调入仓位
            form.on('submit(HSpID-BT)', function () {//选择调入仓位
                layer.open({
                    type: 2
                    , area: ['100%', '100%']
@@ -417,13 +473,48 @@
                    , shade: 0.6 //遮罩透明度
                    , maxmin: true //允许全屏最小化
                    , anim: 0 //0-6的动画形式,-1不开启
                    , content: ['../../../views/Baseset/基础资料/Gy_StockPlaceList.html?HWhID=' + sessionStorage["HWHID"] + '&Type=HSpID', 'yes']
                    , content: ['../../../views/Baseset/基础资料/Gy_StockPlaceListNew.html?HWhID=' + sessionStorage["HWHID"] + '&Type=HSpID&HOrgID=HStockInOrgID', 'yes']
                    , resize: false
                    , cancel: function () {
                    }
                })
            });
            //选择调出仓库
            form.on('submit(HSCWHID-BT)', function () {//选择调出仓库
                var HStockOutOrgID = $("#HStockOutOrgID").val();
                layer.open({
                    type: 2
                    , area: ['100%', '100%']
                    , title: '仓库列表'
                    , shade: 0.6 //遮罩透明度
                    , maxmin: true //允许全屏最小化
                    , anim: 0 //0-6的动画形式,-1不开启
                    , content: ['../../../views/Baseset/基础资料/Gy_WarehouseListNew.html?Type=HSCWHID&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%']
                    , 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(HSupID-BT)', function () {//选择供应商
            //    layer.open({
            //        type: 2
@@ -634,7 +725,7 @@
                    $.ajax(
                        {
                            type: "POST",
                            url: GetWEBURL() + "/MateOutBill_Check_New/set_SaveMateOutBill_Check_New_Json",
                            url: GetWEBURL() + "/MoveStockBill_Check_New/set_SaveMoveStockBill_Check_Json",
                            async: true,
                            data: { "oMain": sMain },
                            dataType: "json",
@@ -697,12 +788,19 @@
                                //console.log(JSON.stringify(result.data.hItemIDField))
                                //return;
                                $("#HStockPlaceName").val(result.data.hSPNameField);
                                $("#HOutStockPlaceName").val(result.data.hSCSPNameField);
                                $("#HStockPlaceID").val(result.data.hSPIDField);
                                $("#HOutStockPlaceID").val(result.data.hSCSPIDField);
                                $("#HWHID").val(result.data.hWhIDField);
                                $("#HWHNAME").val(result.data.hWhNameField);
                                $("#HSCWHID").val(result.data.hSCWhIDField);
                                $("#HSCWHNAME").val(result.data.hSCWhNameField);
                                $('#HInterID').val(result.data.hInterIDField)
                                $('#HBillNo').val(result.data.hBillNoField)
                                $('#HStockOutOrgName').val(result.data.hStockOutOrgNameField)
                                $('#HStockOutOrgID').val(result.data.hStockOutOrgIDField)
                                $('#HStockInOrgName').val(result.data.hStockInOrgNameField)
                                $('#HStockInOrgID').val(result.data.hStockInOrgIDField)
                                var HBillID = $('#HInterID').val()
                                element.tabChange('tab-Kf_OtherInBill', '2');
                                table.render({
@@ -793,7 +891,7 @@
                var sHWHID = $("#HWHID").val()
                var sHSPID = $("#HStockPlaceID").val()
                var sHSCWHID = $("#HSCWHID").val()
                var sHSCSPID = $("#HSCStockPlaceID").val()
                var sHSCSPID = $("#HOutStockPlaceID").val()
                var HOrgID = $("#HOrgID").val();//组织
                //判断条码是否为空  new
                if (sBarCode == '') {
@@ -809,7 +907,7 @@
                }
                $.ajax({
                    //url: "http://localhost:12761/OtherInStockBill/get_InfoByBarCode_Source_Json", //方法所在页面和方法名
                    url: GetWEBURL() + "/OtherOutBill_Check_New/get_InfoByBarCode_Source_Json",
                    url: GetWEBURL() + "/MoveStockBill_Check_New/get_InfoByBarCode_Source_Json1",
                    type: "GET",
                    data: { "sCode": sBarCode, "sInterID": sInterID, "HBillType": sHBillType, "sBillNo": sBillNo, "sMaker": sessionStorage["HUserName"], "WhID": sHWHID, "SPID": sHSPID, "SCWhID": sHSCWHID, "SCSPID": sHSCSPID, "sQty": sQty, "HOWNERID": sessionStorage["OrganizationID"] },
                    success: function (result) {
@@ -934,15 +1032,36 @@
            }
        });
        //以上为 Layui模块
        function GetHWHValue(obj)  //返回仓库
        function GetHWHValue(obj)  //返回调入仓库
        {
            $("#HWHNAME").val(obj[0].HName);
            //sessionStorage["HWHID"] = obj[0].HItemID;
            $("#HWHID").val(obj[0].HItemID);
        }
        function GetHOrgNameValue(obj)  //返回调入组织
        {
            $("#HStockInOrgName").val(obj[0].HName);
            $("#HStockInOrgID").val(obj[0].HItemID);
        }
        function GetHOutOrgNameValue(obj)  //返回调出组织
        {
            $("#HStockOutOrgName").val(obj[0].HName);
            $("#HStockOutOrgID").val(obj[0].HItemID);
        }
        function GetHSpValue(obj) {  //返回调入仓位
            $("#HStockPlaceName").val(obj[0].HName);
            $("#HStockPlaceID").val(obj[0].HItemID);
        }
        function GetHSCWHNAMEValue(obj)  //返回调出仓库
        {
            $("#HSCWHNAME").val(obj[0].HName);
            $("#HSCWHID").val(obj[0].HItemID);
        }
        function GetHOutStockPlaceIDValue(obj) {  //返回调出仓位
            $("#HOutStockPlaceName").val(obj[0].HName);
            $("#HOutStockPlaceID").val(obj[0].HItemID);
        }
        //function GetHSupValue(obj) {  //返回供应商
        //    $("#HSupName").val(obj[0].HName);
@@ -998,28 +1117,28 @@
                layer.msg("没有物料明细记录!", { icon: 5 });
                return false;
            }
            if (sSubStr != '') {
                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 });
                            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 });
                    return false;
                }
            }
            else {
                return true;
            }
            //if (sSubStr != '') {
            //    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 });
            //                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 });
            //        return false;
            //    }
            //}
            //else {
            //    return true;
            //}
        }
    </script>
WebTM/views/¹«¹²Ò³Ãæ/Kf_BarCodeEditDlg.html
@@ -54,7 +54,7 @@
                                        <input type="text" name="HSupName" id="HSupName" lay-verify="HSupName" autocomplete="off" class="layui-input">
                                        <input type="hidden" name="HSupID" id="HSupID" lay-verify="HSupID" autocomplete="off" class="layui-input">
                                    </div>
                                </div>
                                <div class="layui-form-item">
                                    <label class="layui-form-label" style="width:60px;padding-left:0px;">部门</label>
@@ -87,70 +87,128 @@
            </div>
        </div>
    </div>
        <script src="../../../layuiadmin/layui/layui.js"></script>
        <script src="../../layuiadmin/Scripts/json2.js" type="text/javascript"></script>
        <script src="../../layuiadmin/Scripts/jquery-1.4.1.js" type="text/javascript"></script>
    <script src="../../layuiadmin/layui/layui.js"></script>
    <script src="../../layuiadmin/Scripts/json2.js" type="text/javascript"></script>
    <script src="../../layuiadmin/Scripts/jquery-1.4.1.js" type="text/javascript"></script>
    <script src="../../layuiadmin/Scripts/webConfig.js"></script>
    <script>
        function getUrlVars() {
            var vars = [], hash;
            var hashes = window.location.href.slice(window.location.href.indexOf('?') + 1).split('&');
            for (var i = 0; i < hashes.length; i++) {
                hash = hashes[i].split('=');
                vars.push(hash[0]);
                vars[hash[0]] = hash[1];
            }
            return vars;
        }
        //获取页面跳转参数
        var params = getUrlVars();
        if (typeof (params[params[0]]) == "undefined") {
            var OperationType = 1;//操作类型
        } else {
            var HInterID = params[params[0]];//单据ID
            var HMaterID = params[params[1]];//物料ID
            var HAuxPropID = params[params[2]];//辅助属性
            var HMTONo = params[params[3]];//计划跟踪号
            var HWhID = params[params[4]];//仓库ID
            var HSPID = params[params[5]];//仓位ID
            var HSCWHID = params[params[6]];//调出仓库ID
            var HSCSPID = params[params[7]];//调出仓位ID
            var HBatchNo = params[params[8]];//批次
            var HSourceInterID = params[params[9]];//源单主ID
            var HSourceEntryID = params[params[10]];//源单子ID
            var HBillType = params[params[11]];//单据类型
            var HBarCode = params[params[12]];//条码
        }
        //layui.config({
        //    base: '../../layuiadmin/' //静态资源所在路径
        //}).extend({
        //    index: 'lib/index' //主入口模块
        //}).use(['index', 'form', 'table'], function () {
        //    var $ = layui.$
        //    , admin = layui.admin
        //    , layer = layui.layer
        //    , table = layui.table
        //    , form = layui.form;
        layui.config({
            base: '../../../layuiadmin/' //静态资源所在路径
            base: '../../layuiadmin/' //静态资源所在路径
        }).extend({
            index: 'lib/index' //主入口模块
        }).use(['index', 'form', 'table'], function () {
        }).use(['index', 'form', 'laydate', 'table', 'element'], function () {
            var $ = layui.$
            , admin = layui.admin
            , layer = layui.layer
            , table = layui.table
            , form = layui.form;
                , admin = layui.admin
                , layer = layui.layer
                , table = layui.table
                , form = layui.form
                , element = layui.element;
            table.render({
            elem: '#mx-table'
                //, url: 'http://localhost:8083/Web/GetHBarCodeShowBillSub'
                 ,url: GetWEBURL() + "/Web/GetHBarCodeShowBillSub"
                , where: {
                    "HInterID": HInterID, "HMaterID": HMaterID, "HAuxPropID": HAuxPropID, "HMTONo": HMTONo, "HWhID": HWhID, "HSPID": HSPID, "HSCWHID": HSCWHID
                    , "HSCSPID": HSCSPID, "HBatchNo": HBatchNo, "HSourceInterID": HSourceInterID, "HSourceEntryID": HSourceEntryID, "HBillType": HBillType,sWhere: ''
                },
             cols: [[
             { type: 'radio' }
           , { field: 'HSonNo', title: '序号', width: 100 }
           , { field: 'HBarCode', title: '条形码', width: 200 }
           , { field: 'HQty', title: '数量', width: 100 }
           , { field: 'HBatchNo', title: '批次', width: 150 }
           , { field: 'HMTONo', title: '计划跟踪单号', width: 150 }
         ]]
            // , data: [linterid]
            });
            //获取页面跳转参数
            var HMTONo = ''
            var HSourceInterID = 0
            var HSourceEntryID = 0
            var HQty = 0
            var HAuxPropID = 0
            var HBatchNo = ''
            var params = getUrlVars();
            if (typeof (params[params[0]]) == "undefined") {
                var OperationType = 1;//操作类型
            } else {
                var HInterID = params[params[0]];//单据ID
                var HMaterID = params[params[1]];//物料ID
                //var HAuxPropID = params[params[2]];//辅助属性
                //var HMTONo = params[params[3]];//计划跟踪号
                //var HWhID = params[params[4]];//仓库ID
                //var HSPID = params[params[5]];//仓位ID
                //var HSCWHID = params[params[6]];//调出仓库ID
                //var HSCSPID = params[params[7]];//调出仓位ID
                //var HBatchNo = params[params[8]];//批次
                //var HSourceInterID = params[params[2]];//源单主ID
                //var HSourceEntryID = params[params[3]];//源单子ID
                //var HBillType = params[params[6]];//单据类型
                //var HQty = params[params[6]];//条码
                var sBillType = params[params[2]];//单据类型
                //var HBillType = ''
                //var sBillType = '';//单据类型
                var sWhere = " and HInterID=" + HInterID + " and HMaterID=" + HMaterID + "";
                $.ajax({
                    url: GetWEBURL() + "/Kf_BarCodeEditDlg/Kf_BarCodeEditDlg_Json",
                    type: "GET",
                    data: { "sWhere": sWhere },
                    success: function (d) {
                        HMTONo = d.data[0].HMTONo
                        HSourceInterID = d.data[0].HSourceInterID
                        HSourceEntryID = d.data[0].HSourceEntryID
                        HBatchNo = d.data[0].HBatchNo
                        //HSourceInterID = 11
                        //HSourceEntryID = 11
                        HQty = d.data[0].HQty
                        HAuxPropID = d.data[0].HAuxPropID
                        //sBillType = d.data[0].HBillType
                        tableRender();
                    }
                })
            }
            function tableRender() {
                table.render({
                    elem: '#mx-table'
                    //, url: 'http://localhost:8083/Web/GetHBarCodeShowBillSub'
                    , url: GetWEBURL() + "/Web/GetHBarCodeShowBillSub"
                    , where: {
                        "HInterID": HInterID, "HMaterID": HMaterID, "HAuxPropID": HAuxPropID, "HMTONo": HMTONo, "HWhID": 0, "HSPID": 0, "HSCWhID": 0
                        , "HSCSPID": 0, "HBatchNo": HBatchNo, "HSourceInterID": HSourceInterID, "HSourceEntryID": HSourceEntryID, "sBillType": sBillType, sWhere: ''
                    },
                    cols: [[
                        { type: 'radio' }
                        , { field: 'HSonNo', title: '序号', width: 100 }
                        , { field: 'HBarCode', title: '条形码', width: 200 }
                        , { field: 'HQty', title: '数量', width: 100 }
                        , { field: 'HBatchNo', title: '批次', width: 150 }
                        , { field: 'HMTONo', title: '计划跟踪单号', width: 150 }
                    ]]
                    // , data: [linterid]
                });
            }
            form.on('submit(cmdCancel)', function () {
                var index = parent.layer.getFrameIndex(window.name);
                    parent.layer.close(index);
            })
            //function Pub_Close(closeType) {
            //    if (closeType == 1) {
            //        //关闭弹窗
            //        var index = parent.layer.getFrameIndex(window.name);
            //        parent.layer.close(index);
            //    } else if (closeType == 2) {
            //        //关闭页签
            //        parent.layui.admin.events.closeThisTabs();
            //    }
            //}
            //#region åˆ é™¤
@@ -164,7 +222,7 @@
                        $.ajax({
                            type: "GET",
                            url: GetWEBURL() + "Kf_BarCodeEditDlg/DeltetBill", //方法所在页面和方法名
                            data: { "HInterID": HInterID, "HBarCode": HBarCode, "HBillType": HBillType },
                            data: { "HInterID": HInterID, "HBarCode": HBarCode, "HBillType": sBillType },
                            success: function (result) {
                                if (result.count == 1) {
                                    layer.msg(result.Message, { time: 1 * 1000, icon: 1 }, function () {
@@ -191,74 +249,101 @@
            })
            //编辑
            //form.on('submit(cmdChange)', function () {//编辑
            //    var checkStatus = table.checkStatus('mx-table')
            //        , data = checkStatus.data;
            //    var sQty = data[0].HQty.toString();
            //    var iQty = $('#HQty').val()
            //        $.ajax(
            //            {
            //                type: "Get",
            //                //url: "http://61.130.49.162:9090/WMSAPI///ProductIn/Delete_Json", //方法所在页面和方法名
            //                url: GetWEBURL() + "/Kf_BarCodeEditDlg/GetCheckQtyByBarCodeBill",
            //                async: true,
            //                data: {
            //                    "HInterID": HInterID, "HBillType": HBillType, "sBatchNo": HBatchNo, "sBarCode": HBarCode, "sSCWhID": HSCWHID
            //                    , "sSCSPID": HSCSPID, "sAuxPropID": HAuxPropID, "sMTONo": HMTONo, "iQty": iQty
            //                    , "HMaterID": HMaterID, "sWhID": HWhID, "sSPID": HSPID, "HSourceInterID": HSourceInterID
            //                    , "HSourceEntryID": HSourceEntryID, "EndQty": EndQty, "sQty": sQty
            //                },
            //                dataType: "json",
            //                success: function (data) {
            //                    if (data.count == 1) { // è¯´æ˜ŽéªŒè¯æˆåŠŸäº†
            //                        table.render({
            //                            elem: '#mx-table'
            //                            //, url: 'http://localhost:8083/Web/GetHBarCodeShowBillSub'
            //                            , url: GetWEBURL() + "/Web/GetHBarCodeShowBillSub"
            //                            , where: {
            //                                "HInterID": HInterID, "HMaterID": HMaterID, "HAuxPropID": HAuxPropID, "HMTONo": HMTONo, "HWhID": HWhID, "HSPID": HSPID, "HSCWHID": HSCWHID
            //                                , "HSCSPID": HSCSPID, "HBatchNo": HBatchNo, "HSourceInterID": HSourceInterID, "HSourceEntryID": HSourceEntryID, "HBillType": HBillType
            //                            },
            //                            cols: [[
            //                                { type: 'radio' }
            //                                , { field: 'HSonNo', title: '序号', width: 100 }
            //                                , { field: 'HBarCode', title: '条形码', width: 200 }
            //                                , { field: 'HQty', title: '数量', width: 100 }
            //                                , { field: 'HBatchNo', title: '批次', width: 150 }
            //                                , { field: 'HMTONo', title: '计划跟踪单号', width: 150 }
            //                            ]]
            //                            // , data: [linterid]
            //                        });
            //                        alert("编辑成功!");
            //                    }
            //                    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: "温馨提示" });
            //                }
            //            });
            //调整
            form.on('submit(cmdChange)', function () {//编辑
                var checkStatus = table.checkStatus('mx-table')
                    , data = checkStatus.data;
                var sQty = data[0].HQty.toString();
                var iQty = $('#HQty').val();
                var HBarCode = data[0].HBarCode.toString();
                var sWhID = data[0].HWHID;
                var sSPID = data[0].HStockPlaceID;
                var sBatchNo = data[0].HBatchNo;
                var HMTONo = data[0].HMTONo;
                //if (iQty > sQty)
                //{
                    var EndQty = iQty - sQty;
                //}
            //        layer.open({
            //            type: 2
            //            , area: ['100%', '100%']
            //            , title: '明细列表'
            //            , shade: 0.6 //遮罩透明度
            //            , maxmin: true //允许全屏最小化
            //            , anim: 0 //0-6的动画形式,-1不开启
            //            , content: ['../../../views/公共页面/Kf_BarCodeEditDlg.html?HInterID=' + HInterID + '&HMaterID = ' + HMaterID + '&HAuxPropID = ' + HAuxPropID + '& HMTONo = ' + HMTONo + '&HWhID = ' + HWhID + '&HSPID = ' + HSPID + '&HSCWHID = ' + HSCWHID + '&HSCSPID= ' + HSCSPID + '&HBatchNo= ' + HBatchNo + '&HSourceInterID= ' + HSourceInterID + '&HSourceEntryID= ' + HSourceEntryID + '&HBillType=  ' + HBillType + '&HBarCode=  ' + HBarCode + ''
            //                , 'yes']
            //            , resize: false
            //            , cancel: function () {
            //                //$(".layui-btn").removeClass("layui-btn-disabled");
            //            }
            //        })
            //    } else {
            //        layer.msg('请选择一行数据编辑!');
            //    }
                    $.ajax(
                        {
                            type: "Get",
                            //url: "http://61.130.49.162:9090/WMSAPI///ProductIn/Delete_Json", //方法所在页面和方法名
                            url: GetWEBURL() + "/Kf_BarCodeEditDlg/GetCheckQtyByBarCodeBill",
                            async: true,
                            data: {
                                "HInterID": HInterID, "HBillType": sBillType, "sBatchNo": sBatchNo, "sBarCode": HBarCode, "sSCWhID": 0
                                , "sSCSPID": 0, "sAuxPropID": HAuxPropID, "sMTONo": HMTONo, "iQty": iQty
                                , "HMaterID": HMaterID, "sWhID": sWhID, "sSPID": sSPID, "HSourceInterID": HSourceInterID
                                , "HSourceEntryID": HSourceEntryID, "EndQty": EndQty, "sQty": sQty
                            },
                            dataType: "json",
                            success: function (data) {
                                if (data.count == 1) { // è¯´æ˜ŽéªŒè¯æˆåŠŸäº†
                                    table.render({
                                        elem: '#mx-table'
                                        //, url: 'http://localhost:8083/Web/GetHBarCodeShowBillSub'
                                        , url: GetWEBURL() + "/Web/GetHBarCodeShowBillSub"
                                        , where: {
                                            "HInterID": HInterID, "HMaterID": HMaterID, "HAuxPropID": HAuxPropID, "HMTONo": HMTONo, "HWhID": sWhID, "HSPID": sSPID, "HSCWHID": 0
                                            , "HSCSPID": 0, "HBatchNo": sBatchNo, "HSourceInterID": HSourceInterID, "HSourceEntryID": HSourceEntryID, "sBillType": sBillType, sWhere: ''
                                        },
                                        cols: [[
                                            { type: 'radio' }
                                            , { field: 'HSonNo', title: '序号', width: 100 }
                                            , { field: 'HBarCode', title: '条形码', width: 200 }
                                            , { field: 'HQty', title: '数量', width: 100 }
                                            , { field: 'HBatchNo', title: '批次', width: 150 }
                                            , { field: 'HMTONo', title: '计划跟踪单号', width: 150 }
                                        ]]
                                        // , data: [linterid]
                                    });
                                    alert("编辑成功!");
                                }
                                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: "温馨提示" });
                            }
                        });
                //    layer.open({
                //        type: 2
                //        , area: ['100%', '100%']
                //        , title: '明细列表'
                //        , shade: 0.6 //遮罩透明度
                //        , maxmin: true //允许全屏最小化
                //        , anim: 0 //0-6的动画形式,-1不开启
                //        , content: ['../../../views/公共页面/Kf_BarCodeEditDlg.html?HInterID=' + HInterID + '&HMaterID = ' + HMaterID + '&HAuxPropID = ' + HAuxPropID + '& HMTONo = ' + HMTONo + '&HWhID = ' + HWhID + '&HSPID = ' + HSPID + '&HSCWHID = ' + HSCWHID + '&HSCSPID= ' + HSCSPID + '&HBatchNo= ' + HBatchNo + '&HSourceInterID= ' + HSourceInterID + '&HSourceEntryID= ' + HSourceEntryID + '&HBillType=  ' + HBillType + '&HBarCode=  ' + HBarCode + ''
                //            , 'yes']
                //        , resize: false
                //        , cancel: function () {
                //            //$(".layui-btn").removeClass("layui-btn-disabled");
                //        }
                //    })
                //} else {
                //    layer.msg('请选择一行数据编辑!');
                //}
            })
            function getUrlVars() {
                var vars = [], hash;
                //var hashes = decodeURIComponent(window.location.href.slice(window.location.href.indexOf('?') + 1).split('&'));
                //var hashes1 = decodeURIComponent(window.location.href);
                //var hashes = hashes1.indexOf('?') + 1.split('&');
                var hashes = window.location.href.slice(decodeURIComponent(window.location.href.indexOf('?') + 1)).split('&');
                for (var i = 0; i < hashes.length; i++) {
                    hash = hashes[i].split('=');
                    vars.push(hash[0]);
                    vars[hash[0]] = hash[1];
                }
                return vars;
            }
        })
    </script>
WebTM/views/³µ¼ä¹ÜÀí/¹¤Ðò½øÕ¾½ÓÊÕµ¥/Cj_StationInBill.html
@@ -481,7 +481,9 @@
                    layer.msg("流水号没有选择!请输入流水号后回车!", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
                    return;
                }
                var oMain = data.field + ";" + sessionStorage["HUserName"];
                console.log(data.field);
                //var oMain = data.field + ";" + sessionStorage["HUserName"];
                var oMain = data.field ;
                var index = layer.load();
                $.ajax({
                    type: "POST",
WebTM/views/ÁìÁÏ·¢»õ/ÆäËû³ö¿â/Kf_OtherOutBill_Fast.html
@@ -693,7 +693,8 @@
                var sHWHID = $("#HWHID").val()
                var sHSPID = $("#HStockPlaceID").val()
                var sSourceBillNo = $("#HSourceBillNo").val()
                var sMouldManagerCtl = "N";  //是否启用器具管理
                var sFIFOCtl = "N";          //是否启用先进先出管理
                if (sBarCode == '') {
                    playSound();
                    layer.msg("条码为空,不能扫描!", { icon: 5, btn: ['确定'], time: 100000, offset: 't' });
@@ -781,9 +782,11 @@
                            layer.load(3)
                            table.render({
                                elem: '#wl-table'
                                , url: GetWEBURL() + '/OtherOutBill/DisBillEntryList_Webs_Json'
                                //, url: GetWEBURL() + '/OtherOutBill/DisBillEntryList_Webs_Json'
                                ,url: GetWEBURL() + '/MateOutBill/DisBillEntryList_Webs_New_Json1'
                                , toolbar: '#toolbarDemo'
                                , where: { HBillID: sInterID, HBillType: '1206', sWhere: '' }
                                //, where: { HBillID: sInterID, HBillType: '1206', sWhere: '' }
                                data: { HBillID: sInterID, HBillNo: sBillNo, HBillType: '1206', sMouldManagerCtl: sMouldManagerCtl, sFIFOCtl: sFIFOCtl },
                                , cellMinWidth: 90
                                , cols: [[
                                    { type: 'radio' }
@@ -827,6 +830,8 @@
                var HSourceBillNo = $('#HSourceBillNo').val()
                var sInterID = $("#HInterID").val()
                var sBillNo = $("#HBillNo").val()
                var sMouldManagerCtl = "N";  //是否启用器具管理
                var sFIFOCtl = "N";          //是否启用先进先出管理
                if (HSourceBillNo == "" || sInterID <= 0) {
                    layer.msg("源单号为空,或者内码不存在!", { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
                    return;
@@ -843,9 +848,9 @@
                            table.render({
                                elem: '#wl-table'
                                // , url: 'http://61.130.49.162:9090/WMSAPI///OtherOutBill/DisBillEntryList_Webs_Json'
                                , url: GetWEBURL() + '/OtherOutBill/DisBillEntryList_Webs_Json'
                                , url: GetWEBURL() + '/MateOutBill/DisBillEntryList_Webs_New_Json1'
                                , toolbar: '#toolbarDemo'
                                , where: { HBillID: sInterID, HBillType: '1206', sWhere: '' }
                                , where: { HBillID: sInterID, HBillNo: sBillNo, HBillType: '1206', sMouldManagerCtl: sMouldManagerCtl, sFIFOCtl: sFIFOCtl }
                                , cols: [[
                                    { type: 'radio' }
                                    , { field: 'HQty', title: '数量', width: 150 }
WebTM/views/ÁìÁÏ·¢»õ/ίÍâ³ö¿â/Kf_EntrustOutBill_Fast.html
@@ -741,10 +741,7 @@
            //条形码回车方法
            $('#HBarCode').on('keydown', function (event) {
                var sQty = $("#HQty").val();
                if (sQty == "") {
                    sQty = 0;
                }
                if (event.keyCode == 13) {
                    GetMeesageByBarCode();
                }
@@ -834,6 +831,10 @@
                var Flag = sessionStorage["SourceFlag"];
                var sMouldManagerCtl = "N";  //是否启用器具管理
                var sFIFOCtl = "N";          //是否启用先进先出管理
                var sQty = $("#HQty").val();
                if (sQty == "") {
                    sQty = 0;
                }
                if (sBarCode == '') {
                    playSound();
WebTM/views/ÁìÁÏ·¢»õ/ÏúÊÛ³ö¿â/Kf_SellOutBill_Fast.html
@@ -686,23 +686,47 @@
            })
            //编辑
            //form.on('submit(cmdModify)', function () {//编辑
            //    var checkStatus = table.checkStatus('wl-table')
            //        , data = checkStatus.data;
            //    if (checkStatus.data.length === 1) {
            //        var HInterID = data[0].HInterID.toString();
            //        var HMaterID = data[0].HMaterID.toString();
            //        var HAuxPropID = data[0].HAuxPropID.toString();
            //        var HMTONo = data[0].HMTONo.toString();
            //        var HWhID = data[0].HWhID.toString();
            //        var HSPID = data[0].HSPID.toString();
            //        var HSCWHID = data[0].HSCWHID.toString();
            //        var HSCSPID = data[0].HSCSPID.toString();
            //        var HBatchNo = data[0].HBatchNo.toString();
            //        var HSourceInterID = data[0].HSourceInterID.toString();
            //        var HSourceEntryID = data[0].HSourceEntryID.toString();
            //        var HBillType = '1205';
            //        var HBarCode = data[0].HBarCode.toString();
            //    layer.open({
            //        type: 2
            //        , area: ['100%', '100%']
            //        , title: '明细列表'
            //        , shade: 0.6 //遮罩透明度
            //        , maxmin: true //允许全屏最小化
            //        , anim: 0 //0-6的动画形式,-1不开启
            //        , content: ['../../../views/公共页面/Kf_BarCodeEditDlg.html?HInterID=' + HInterID + '&HMaterID = ' + HMaterID + '&HAuxPropID = ' + HAuxPropID + '& HMTONo = ' + HMTONo + '&HWhID = ' + HWhID + '&HSPID = ' + HSPID + '&HSCWHID = ' + HSCWHID + '&HSCSPID= ' + HSCSPID + '&HBatchNo= ' + HBatchNo + '&HSourceInterID= ' + HSourceInterID + '&HSourceEntryID= ' + HSourceEntryID + '&HBillType=  ' + HBillType + '&HBarCode=  ' + HBarCode + ''
            //            , 'yes']
            //        , resize: false
            //        , cancel: function () {
            //            //$(".layui-btn").removeClass("layui-btn-disabled");
            //        }
            //    })
            //    } else {
            //        layer.msg('请选择一行数据编辑!');
            //    }
            //})
            form.on('submit(cmdModify)', function () {//编辑
                //var sSubStr = table.cache['wl-table'];
                var checkStatus = table.checkStatus('wl-table')
                    , data = checkStatus.data;
                if (checkStatus.data.length === 1) {
                    var HInterID = data[0].HInterID.toString();
                    var HMaterID = data[0].HMaterID.toString();
                    var HAuxPropID = data[0].HAuxPropID.toString();
                    var HMTONo = data[0].HMTONo.toString();
                    var HWhID = data[0].HWhID.toString();
                    var HSPID = data[0].HSPID.toString();
                    var HSCWHID = data[0].HSCWHID.toString();
                    var HSCSPID = data[0].HSCSPID.toString();
                    var HBatchNo = data[0].HBatchNo.toString();
                    var HSourceInterID = data[0].HSourceInterID.toString();
                    var HSourceEntryID = data[0].HSourceEntryID.toString();
                    var HBillType = '1205';
                    var HBarCode = data[0].HBarCode.toString();
                //if (AllowLoadData(sSubStr) != false) {//非空验证
                layer.open({
                    type: 2
                    , area: ['100%', '100%']
@@ -710,17 +734,46 @@
                    , shade: 0.6 //遮罩透明度
                    , maxmin: true //允许全屏最小化
                    , anim: 0 //0-6的动画形式,-1不开启
                    , content: ['../../../views/公共页面/Kf_BarCodeEditDlg.html?HInterID=' + HInterID + '&HMaterID = ' + HMaterID + '&HAuxPropID = ' + HAuxPropID + '& HMTONo = ' + HMTONo + '&HWhID = ' + HWhID + '&HSPID = ' + HSPID + '&HSCWHID = ' + HSCWHID + '&HSCSPID= ' + HSCSPID + '&HBatchNo= ' + HBatchNo + '&HSourceInterID= ' + HSourceInterID + '&HSourceEntryID= ' + HSourceEntryID + '&HBillType=  ' + HBillType + '&HBarCode=  ' + HBarCode + ''
                        , 'yes']
                    , content: ['../../../views/公共页面/Kf_BarCodeEditDlg.html?HInterID=' + data[0].HInterID + '&HMaterID =' + data[0].HMaterID + '&HBillType =' + data[0].HBillType, 'yes']
                    , resize: false
                    , cancel: function () {
                        //$(".layui-btn").removeClass("layui-btn-disabled");
                    }
                    , end: function () {
                        //刷新页面,
                        //location.reload();
                        var sInterID = $("#HInterID").val()
                        table.render({
                            elem: '#wl-table'
                            //, url: 'http://61.130.49.162:9090/WMSAPI///ProductIn/DisBillEntryList_Webs_Json'
                            , url: GetWEBURL() + '/SellOut/DisBillEntryList_Webs_Json'
                            , toolbar: '#toolbarDemo'
                            , defaultToolbar: []
                            , where: { HBillID: sInterID, HBillType: '1205', sWhere: '' }
                            , cols: [[
                                { type: 'radio' }
                                , { field: 'HSNO', title: '序号', width: 60 }
                                , { field: 'HQty', title: '数量', width: 80 }
                                , { field: 'HQtyMust', title: '应发数量', width: 80 }
                                , { field: 'HMaterName', title: '物料名称', width: 90 }
                                , { field: 'HMaterNumber', title: '物料代码', width: 90 }
                                , { field: 'HMaterModel', title: '规格型号', width: 90 }
                                , { field: 'HSourceInterID', title: '源单主内码', width: 90 }
                                , { field: 'HSourceEntryID', title: '源单子内码', width: 90 }
                                , { field: 'HSourceBillNo', title: '源单单号', width: 90 }
                                , { field: 'HBatchNo', title: '批次', width: 90 }
                            ]]
                            // , data: [linterid]
                            // , page: true
                            , height: 500
                            , done: function () {
                                layer.closeAll("loading");
                            }
                        })
                    }
                })
                } else {
                    layer.msg('请选择一行数据编辑!');
                }
            })
                // }
            });
            //删除
            form.on('submit(cmdDelete)', function () {//删除
@@ -1218,6 +1271,7 @@
                                }
                                $("#HSumQtys").val(count);
                                $("#HBarCodeQtys").val(count1);
                                playSound1();
                            }
                            else {
                                // $("#verifycode").click();
WebTM/views/ÁìÁÏ·¢»õ/ÁìÁϳö¿â/Kf_MateOutBill_CheckList_New.html
@@ -73,7 +73,7 @@
        //读取单据列表
        //
        form.on('submit(Cancel)', function () {
        form.on('submit(cmdCancel)', function () {
            parent.location.href = "../../../views/index.html"
            //window.close();//关闭当前页
        })
WebTM/views/ÁìÁÏ·¢»õ/ÁìÁϳö¿â/Kf_MateOutBill_Check_New.html
@@ -180,6 +180,7 @@
                            $("#HWHNAME").val(result.data.hWhNameField);
                            $('#HInterID').val(result.data.hInterIDField)
                            $('#HBillNo').val(result.data.hBillNoField)
                            var HBillID = $('#HInterID').val()
                            element.tabChange('tab-Kf_OtherInBill', '2');
                            table.render({
WebTM/views/ÁìÁÏ·¢»õ/ÁìÁϳö¿â/Kf_MateOutBill_Fast.html
@@ -1137,23 +1137,26 @@
                elem: '#wl-table'
                , toolbar: '#toolbarDemo'
                , cellMinWidth: 90
                , cols: [[
                    { type: 'radio' }
                    , { field: 'HSNO', title: '序号', width: 60 }
                    , { field: 'HQty', title: '数量', width: 80 }
                    , { field: 'HQtyMust', title: '应发数量', width: 80 }
                    , { 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 }
                ]]
                , height: 500
                , done: function () {
                    layer.closeAll("loading");
                }
                , limit: 50
                , limits: [50, 500, 5000, 20000]
                , page: true
                    , cols: [[
                        { type: 'radio' }
                        , { field: 'HSNO', title: '序号', width: 60 }
                        , { field: 'HQty', title: '数量', width: 80 }
                        , { field: 'HQtyMust', title: '应发数量', width: 80 }
                        , { 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 }
                    ]]
                        , height: 500
                            , done: function () {
                                layer.closeAll("loading");
                            }
            }
            function playSound() {
                var audio = document.getElementById("cs");
@@ -1175,6 +1178,8 @@
                if (HPPQty == "") {
                    HPPQty = 0;
                }
                var sMouldManagerCtl = "N";  //是否启用器具管理
                var sFIFOCtl = "N";          //是否启用先进先出管理
                $.ajax({
                    url: GetWEBURL() + "/MateOut/set_SavePonderationBillMain_Temp_Mate_Source_Fast_Json",
                    type: "GET",
@@ -1187,26 +1192,27 @@
                        if (result.count == 1) { // è¯´æ˜ŽéªŒè¯æˆåŠŸäº†ï¼Œ
                            playSound1();
                            layer.load(3)
                            table.render({
                                elem: '#wl-table'
                                , url: GetWEBURL() + '/MateOutBill/DisBillEntryList_Webs_New_Json'
                                , toolbar: '#toolbarDemo'
                                , where: { HBillID: sInterID, HBillType: '1204', sWhere: '' }
                                , cols: [[
                                    { type: 'radio' }
                                    , { field: 'HSNO', title: '序号', width: 60 }
                                    , { field: 'HQty', title: '数量', width: 80 }
                                    , { field: 'HQtyMust', title: '应发数量', width: 80 }
                                    , { field: 'HMaterName', title: '物料名称', width: 90 }
                                    , { field: 'HMaterNumber', title: '物料代码', width: 90 }
                                    , { field: 'HMaterModel', title: '规格型号', width: 90 }
                                    , { field: 'HSourceInterID', title: '源单主内码', width: 90 }
                                    , { field: 'HSourceEntryID', title: '源单子内码', width: 90 }
                                    , { field: 'HSourceBillNo', title: '源单单号', width: 90 }
                                    , { field: 'HBatchNo', title: '批次', width: 90 }
                                ]]
                                , height: 500
                                , done: function () {
                            $.ajax({
                                url: GetWEBURL() + '/MateOutBill/DisBillEntryList_Webs_New_Json1',
                                type: "GET",
                                data: { HBillID: sInterID, HBillNo: sBillNo, HBillType: '1204', sMouldManagerCtl: sMouldManagerCtl, sFIFOCtl: sFIFOCtl },
                                success: function (result) {
                                    if (result.count == 1) { // è¯´æ˜ŽéªŒè¯æˆåŠŸäº†ï¼Œ
                                        listOption.data = result.data.list;
                                        table.render(listOption);
                                        $("#HBarCode_B").val(result.data.list2[0].HBarCode);
                                        $("#HMaterName_B").val(result.data.list2[0].HMaterName);
                                        $("#HMaterModel_B").val(result.data.list2[0].HMaterModel);
                                        $("#HBatchNo_B").val(result.data.list2[0].HBatchNo);
                                        $("#HUnitName_B").val(result.data.list2[0].HUnitName);
                                        $("#HQty_B").val(result.data.list2[0].HQty);
                                        $("#HTMQty_B").val(result.data.list2[0].HTMQty);
                                        $("#HWHName_B").val(result.data.list2[0].HWHName);
                                        $("#HSPName_B").val(result.data.list2[0].HSPName);
                                    }
                                    else {
                                        layer.msg(result.Message);
                                    }
                                    layer.closeAll("loading");
                                }
                            });
WebTM/views/ÑéÊÕÈë¿â/²úÆ·Èë¿â/Kf_ProductInBill_Fast.html
@@ -127,7 +127,7 @@
                                            <input type="hidden" name="HStockPlaceID" id="HStockPlaceID" value="0" autocomplete="off" class="layui-input">
                                        </div>
                                        <div class="layui-col-xs3">
                                            <button type="button" lay-submit="" class="layui-btn" lay-filter="HSpID-BT" style="display:none">...</button>
                                            <button type="button" lay-submit="" class="layui-btn" lay-filter="HSpID-BT" >...</button>
                                        </div>
                                    </div>
                                </div>
@@ -686,8 +686,29 @@
            });
            //编辑
            //form.on('submit(cmdModify)', function () {//编辑
            //    var sSubStr = table.cache['wl-table'];
            //    //if (AllowLoadData(sSubStr) != false) {//非空验证
            //    layer.open({
            //        type: 2
            //        , area: ['100%', '100%']
            //        , title: '明细列表'
            //        , shade: 0.6 //遮罩透明度
            //        , maxmin: true //允许全屏最小化
            //        , anim: 0 //0-6的动画形式,-1不开启
            //        , content: ['../../../views/公共页面/Kf_BarCodeEditDlg.html?table=' + JSON.stringify(sSubStr), 'yes']
            //        , resize: false
            //        , cancel: function () {
            //            //$(".layui-btn").removeClass("layui-btn-disabled");
            //        }
            //    })
            //    // }
            //});
            form.on('submit(cmdModify)', function () {//编辑
                var sSubStr = table.cache['wl-table'];
                //var sSubStr = table.cache['wl-table'];
                var checkStatus = table.checkStatus('wl-table')
                    , data = checkStatus.data;
                //if (AllowLoadData(sSubStr) != false) {//非空验证
                layer.open({
                    type: 2
@@ -696,10 +717,42 @@
                    , shade: 0.6 //遮罩透明度
                    , maxmin: true //允许全屏最小化
                    , anim: 0 //0-6的动画形式,-1不开启
                    , content: ['../../../views/公共页面/Kf_BarCodeEditDlg.html?table=' + JSON.stringify(sSubStr), 'yes']
                    , content: ['../../../views/公共页面/Kf_BarCodeEditDlg.html?HInterID=' + data[0].HInterID + '&HMaterID =' + data[0].HMaterID + '&HBillType =' + data[0].HBillType, 'yes']
                    , resize: false
                    , cancel: function () {
                        //$(".layui-btn").removeClass("layui-btn-disabled");
                    }
                    , end: function () {
                        //刷新页面,
                        //location.reload();
                        var sInterID = $("#HInterID").val()
                        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 }
                                , { field: 'HBarcodeQtys', title: '条码数量', width: 150 }
                            ]]
                            // , data: [linterid]
                            // , page: true
                            , height: 500
                            , done: function () {
                                layer.closeAll("loading");
                            }
                        })
                    }
                })
                // }
@@ -1204,7 +1257,7 @@
                                        }
                                        if (result.data.hSourceBillTypeField == "3710") {
                                            $("#HBillType").empty();
                                            $("#HBillType").val("3711");
                                            $("#HBillType").val("3710");
                                            var optionHtml = '';
                                            optionHtml += "<option value = '" + result.data.hSourceBillTypeField + "' >" + '生产订单' + "</option>";
                                            $("#HBillType").append(optionHtml);
WebTM/views/ÑéÊÕÈë¿â/²úÆ·Èë¿â/Kf_ProductInBill_FastList.html
@@ -44,15 +44,27 @@
                            <div class="layui-tab-item  layui-show">
                                <div class="layui-row">
                                    <div class="layui-col-xs12">
                                        <table class="layui-hide" id="dj-table" lay-filter="dj-table"></table>
                                    </div>
                                </div>
                                        <div class="layui-form layui-border-box layui-table-view" lay-filter=" dj-table" lay-id="dj-table" style=" height:500px;margin-bottom:20px;">
                                            <table class="layui-hide" id="dj-table" lay-filter="dj-table"></table>
                                        </div>
                                                <button type="button" lay-submit="" class="layui-btn" lay-filter="cmdModify">编辑</button>
                                                <button type="button" lay-submit="" class="layui-btn" lay-filter="cmdDelete">删除</button>
                                                <button type="button" lay-submit="" class="layui-btn" lay-filter="cmdRefresh">刷新</button>
                                                <button type="button" lay-submit="" class="layui-btn" lay-filter="cmdCancel">退出</button>
                                     </div>
                                 </div>
                            </div>
                            <div class="layui-tab-item">
                                <div class="layui-row">
                                    <div class="layui-col-xs12">
                                        <table class="layui-hide" id="yd-table" lay-filter="yd-table"></table>
                                    </div>
                                        <div class="layui-form layui-border-box layui-table-view" lay-filter=" yd-table" lay-id="yd-table" style=" height:500px;margin-bottom:20px;">
                                            <table class="layui-hide" id="yd-table" lay-filter="yd-table"></table>
                                        </div>
                                                <button type="button" lay-submit="" class="layui-btn" lay-filter="cmdRescind">撤销</button>
                                                <button type="button" lay-submit="" class="layui-btn" lay-filter="cmdRefresh">刷新</button>
                                                <button type="button" lay-submit="" class="layui-btn" lay-filter="cmdCancel">退出</button>
                                     </div>
                                </div>
                            </div>
                            <div class="layui-tab-item">
@@ -68,19 +80,24 @@
                                        <input type="text" class="layui-input" name="HSourceBillNo" id="HSourceBillNo">
                                    </div>
                                </div>
                                <div class="layui-col-xs2">
                                <!--<div class="layui-col-xs2">
                                    <button type="button" lay-submit="" class="layui-btn" lay-filter="cmdQuery">查询</button>
                                </div>
                                </div>-->
                                <div class="layui-row">
                                    <div class="layui-col-xs12">
                                        <table class="layui-hide" id="sy-table" lay-filter="sy-table"></table>
                                        <div class="layui-form layui-border-box layui-table-view" lay-filter=" sy-table" lay-id="sy-table" style=" height:500px;margin-bottom:20px;">
                                            <table class="layui-hide" id="sy-table" lay-filter="sy-table"></table>
                                        </div>
                                        <button type="button" lay-submit="" class="layui-btn" lay-filter="cmdRescind">撤销</button>
                                        <button type="button" lay-submit="" class="layui-btn" lay-filter="cmdQuery">查询</button>
                                        <button type="button" lay-submit="" class="layui-btn" lay-filter="cmdCancel">退出</button>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="layui-form-item" style="margin-bottom: 20px;">
                            <div class="layui-row">
                                <div class="layui-col-xs2">
                                <!--<div class="layui-col-xs2">
                                    <button type="button" lay-submit="" class="layui-btn" lay-filter="cmdModify">编辑</button>
                                </div>
                                <div class="layui-col-xs2">
@@ -94,10 +111,10 @@
                                </div>
                                <div class="layui-col-xs2">
                                    <button type="button" lay-submit="" class="layui-btn" lay-filter="cmdCancel">退出</button>
                                </div>
                                <div class="layui-col-xs2">
                                    <!--<button type="button" lay-submit="" class="layui-btn" lay-filter="cmdAdd">新增</button>-->
                                </div>
                                </div>-->
                                <!--<div class="layui-col-xs2">
                                    <button type="button" lay-submit="" class="layui-btn" lay-filter="cmdAdd">新增</button>
                                </div>-->
                            </div>
                        </div>
                    </div>
WebTM/views/ÑéÊÕÈë¿â/ÆäËûÈë¿â/Kf_OtherInBill_Fast.html
@@ -210,6 +210,9 @@
                                    <button type="button" lay-submit="" class="layui-btn" lay-filter="cmdModify">编辑</button>
                                </div>
                                <div class="layui-col-xs3">
                                    <button type="button" lay-submit="" class="layui-btn" lay-filter="cmdRefresh">刷新</button>
                                </div>
                                <div class="layui-col-xs3">
                                    <button type="button" lay-submit="" class="layui-btn" lay-filter="cmdDelete">删除</button>
                                </div>
                                <div class="layui-col-xs3">
@@ -424,6 +427,33 @@
            }
            //
            form.on('submit(cmdRefresh)', function () {
                var sInterID = $("#HInterID").val()
                table.render({
                    elem: '#wl-table'
                    , url: GetWEBURL() + '/OtherInStockBill/DisBillEntryList_Webs_Json'
                    , toolbar: '#toolbarDemo'
                    , where: { HBillID: sInterID, HBillType: '1203', 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 }
                    ]]
                    , height: 500
                    , done: function () {
                        layer.closeAll("loading");
                    }
                });
            });
            form.on('submit(HWHID-BT)', function () {//选择仓库
                layer.open({
                    type: 2
@@ -571,8 +601,52 @@
                //window.close();//关闭当前页
            })
            //form.on('submit(cmdModify)', function () {//编辑
            //    var sSubStr = table.cache['wl-table'];
            //    //if (AllowLoadData(sSubStr) != false) {//非空验证
            //    layer.open({
            //        type: 2
            //        , area: ['100%', '100%']
            //        , title: '明细列表'
            //        , shade: 0.6 //遮罩透明度
            //        , maxmin: true //允许全屏最小化
            //        , anim: 0 //0-6的动画形式,-1不开启
            //        , content: ['../../../views/公共页面/Kf_BarCodeEditDlg.html?table=' + JSON.stringify(sSubStr), 'yes']
            //        , resize: false
            //        , cancel: function () {
            //            //$(".layui-btn").removeClass("layui-btn-disabled");
            //        }
            //    })
            //    // }
            //});
            //form.on('submit(cmdModify)', function () {//编辑
            //    //var sSubStr = table.cache['wl-table'];
            //    var checkStatus = table.checkStatus('wl-table')
            //        , data = checkStatus.data;
            //    //if (AllowLoadData(sSubStr) != false) {//非空验证
            //    layer.open({
            //        type: 2
            //        , area: ['100%', '100%']
            //        , title: '明细列表'
            //        , shade: 0.6 //遮罩透明度
            //        , maxmin: true //允许全屏最小化
            //        , anim: 0 //0-6的动画形式,-1不开启
            //        , content: ['../../../views/公共页面/Kf_BarCodeEditDlg.html?HInterID=' + data[0].HInterID + '&HMaterID =' + data[0].HMaterID + '& HAuxPropID = ' + data[0].HAuxPropID + '& HMTONo = ' + data[0].HMTONo + '& HSourceInterID = ' + data[0].HSourceInterID + '& HSourceEntryID = ' + data[0].HSourceEntryID + '& HQty = ' + data[0].HQtyMust + '& HBillType = ' + data[0].HBillType + '', 'yes']
            //        , resize: false
            //        , cancel: function () {
            //            //$(".layui-btn").removeClass("layui-btn-disabled");
            //        }
            //    })
            //    // }
            //});
            form.on('submit(cmdModify)', function () {//编辑
                var sSubStr = table.cache['wl-table'];
                //var sSubStr = table.cache['wl-table'];
                var checkStatus = table.checkStatus('wl-table')
                    , data = checkStatus.data;
                //if (AllowLoadData(sSubStr) != false) {//非空验证
                layer.open({
                    type: 2
@@ -581,10 +655,37 @@
                    , shade: 0.6 //遮罩透明度
                    , maxmin: true //允许全屏最小化
                    , anim: 0 //0-6的动画形式,-1不开启
                    , content: ['../../../views/公共页面/Kf_BarCodeEditDlg.html?table=' + JSON.stringify(sSubStr), 'yes']
                    , content: ['../../../views/公共页面/Kf_BarCodeEditDlg.html?HInterID=' + data[0].HInterID + '&HMaterID =' + data[0].HMaterID + '&HBillType =' + data[0].HBillType, 'yes']
                    , resize: false
                    , cancel: function () {
                        //$(".layui-btn").removeClass("layui-btn-disabled");
                    }
                    , end: function () {
                        //刷新页面,
                        //location.reload();
                        var sInterID = $("#HInterID").val()
                        table.render({
                            elem: '#wl-table'
                            , url: GetWEBURL() + '/OtherInStockBill/DisBillEntryList_Webs_Json'
                            , toolbar: '#toolbarDemo'
                            , where: { HBillID: sInterID, HBillType: '1203', 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 }
                            ]]
                            , height: 500
                            , done: function () {
                                layer.closeAll("loading");
                            }
                        });
                    }
                })
                // }
@@ -895,6 +996,8 @@
                                    , { field: 'HSourceEntryID', title: '源单子内码', width: 150 }
                                    , { field: 'HSourceBillNo', title: '源单单号', width: 150 }
                                    , { field: 'HBatchNo', title: '批次', width: 150 }
                                    , { field: 'HAuxPropID', title: '辅助属性', width: 150 }
                                    , { field: 'HMTONo', title: 'MTO号', width: 150 }
                                ]]
                                , height: 500
                                , done: function () {
WebTM/views/ÑéÊÕÈë¿â/Í⹺Èë¿â/Kf_POStockInBill_Fast.html
@@ -967,6 +967,7 @@
                $.ajax({
                    url: GetWEBURL() + "/POStockInBill/get_CheckTypeByBarCode_Json",
                    type: "GET",
                    async: false,
                    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"] },
                    success: function (result) {
                        if (result.count == 1) {