王 垚
2022-07-27 3e0b4dc5792d7a8ffb738bc49f298e6ce3262689
Merge branch 'master' of http://101.37.171.70:10101/r/MESWMS-LayUI into master
10个文件已修改
3429 ■■■■■ 已修改文件
WebTM/Properties/PublishProfiles/JFTM.pubxml.user 2208 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/layuiadmin/Scripts/webConfig.js 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/仓存管理/仓库调拨/Kf_MoveStockBill_Fast.html 221 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/仓存管理/仓库调拨/Kf_MoveStockBill_FastList.html 68 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/基础资料/生产基础资料/Add_Edit_Gy_Process.html 16 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/计划管理/工艺路线/Gy_RoutingBillimport.html 9 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/领料发货/销售出库/Kf_SellOutBill_Fast.html 409 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/领料发货/销售出库/Kf_SellOutBill_FastList.html 71 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/验收入库/其他入库/Kf_OtherInBill_Fast.html 223 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/验收入库/其他入库/Kf_OtherInBill_FastList.html 201 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/Properties/PublishProfiles/JFTM.pubxml.user
Diff too large
WebTM/layuiadmin/Scripts/webConfig.js
@@ -7,7 +7,7 @@
    //var WEBURL = "http://localhost:8080/API/";   //颜晓军本地配置
    //var WEBURL = "http://localhost:8082/lubao";   //颜晓军本地配置
    //var WEBURL = "http://localhost:8082/LuBaoAPI/";    //杨露本地配置
    var WEBURL = "http://localhost:8082/LuBaoAPI/";    //章紫柔本地配置
    //var WEBURL = "http://localhost:8082/LuBaoAPI/";    //章紫柔本地配置
    //var WEBURL = "http://localhost:8082/LuBaoAPI/";    //杨乐本地配置
    //var WEBURL = "http://10.1.4.155/API/";   //江丰客户NEW
    //var WEBURL = "http://47.96.97.237/API/";   //智云服务器
@@ -17,6 +17,7 @@
    //var WEBURL = "http://192.168.0.214/API/";   //瑞与祺服务器
    //var WEBURL = "http://192.168.10.66/API/";   //森楷服务器
    //var WEBURL = "http://localhost/API/";
    var WEBURL = "http://60.191.27.141:8090/API/";
    return WEBURL
}
WebTM/views/²Ö´æ¹ÜÀí/²Ö¿âµ÷²¦/Kf_MoveStockBill_Fast.html
@@ -870,7 +870,7 @@
                            dataType: "json",
                            success: function (data) {
                                if (data.count == 1) { // è¯´æ˜ŽéªŒè¯æˆåŠŸäº†
                                    layer.confirm(data.Message , {
                                    layer.confirm("生成调拨单" + data.Message + $("#HBillNo").val(), {
                                        icon: 1, skin: 'layui-layer-lan', title: "温馨提示", closeBtn: 0, btn: ['新增'],
                                        btn2: function () {
                                            //parent.layui.admin.events.closeThisTabs();关闭页签
@@ -1031,6 +1031,8 @@
                var sMaker = $("#HMaker").val();//制单人
                var HOrgID = $("#HOrgID").val();//组织
                var HBillType = '1207';
                var sMouldManagerCtl = 'N'
                var sFIFOCtl = 'N'
                var sSourceBillNo = $("#HSourceBillNo").val();//源单号
                if (sSourceBillNo == null) {
                    sSourceBillNo = "";
@@ -1138,6 +1140,7 @@
                        data: { "sCode": sBarCode, "sInterID": sInterID, "HBillType": HBillType, "sBillNo": sBillNo, "sMaker": sMaker, "WhID": WhID, "SPID": SPID, "HSCWhID": HSCWhID, "HSCSPID": HSCSPID, "sQty": sQty, "SourceFlag": sessionStorage["SourceFlag"], "sSourceBillNo": sSourceBillNo, "sHSourceBillType": sHBillType, "HStockInOrgID": HStockInOrgID, "HStockOutOrgID": HStockOutOrgID, "HScanStyle": HScanStyle},
                        success: function (result) {
                            if (result.count == 1) {
                                sessionStorage["SourceFlag"] = true;
                                element.tabChange('tab-MoveStockBill', '3');
                                //$("#HWHNAME").attr("readOnly", "true");//调入仓库不可变
                                //$("#HWHID-BT").attr("disabled", "true");
@@ -1148,37 +1151,68 @@
                                //$("#HOutStockPlaceName").attr("readOnly", "true");//调入仓位不可变
                                //$("#HOSpID-BT").attr("disabled", "true");
                                layer.load(3)
                                table.render({
                                    elem: '#wl-table'
                                    , url: GetWEBURL() + '/MoveStockBill/DisBillEntryList_Webs_Json'
                                    , toolbar: '#toolbarDemo'
                                    , defaultToolbar: []
                                    , totalRow: true
                                    , where: { HBillID: sInterID, HBillType: '1207', sWhere: '' }
                                    , cols: [[
                                        { type: 'radio', totalRowText: '合计' }
                                        , { field: 'HQty', title: '数量', width: 150, totalRow: true }
                                        , { field: '件数', title: '件数', width: 150, totalRow: true }
                                        , { field: 'HQtyMust', title: '应收数量', width: 150 }
                                        , { field: 'HMaterNumber', title: '物料代码', width: 150 }
                                        , { field: 'HMaterName', title: '物料名称', width: 150 }
                                        , { field: 'HMaterModel', title: '规格型号', width: 150 }
                                        , { field: 'HSourceInterID', title: '源单主内码', width: 150 }
                                        , { field: 'HSourceEntryID', title: '源单子内码', width: 150 }
                                        , { field: 'HSourceBillNo', title: '源单单号', width: 150 }
                                        , { field: 'HBatchNo', title: '批次', width: 150 }
                                        , { field: 'HMaterID', title: '物料内码', width: 150, hide: true }
                                        , { field: 'HAuxPropID', title: '', width: 150, hide: true }
                                        , { field: 'HMTONo', title: '计划跟踪号', width: 150, hide: true }
                                        , { fixed: 'right', title: '操作', toolbar: '#barDemo', width: 70 }
                                    ]]
                                    // , data: [linterid]
                                    // , page: true
                                    //, height: 500
                                    , done: function () {
                                //table.render({
                                //    elem: '#wl-table'
                                //    , url: GetWEBURL() + '/MoveStockBill/DisBillEntryList_Webs_Json'
                                //    , toolbar: '#toolbarDemo'
                                //    , defaultToolbar: []
                                //    , totalRow: true
                                //    , where: { HBillID: sInterID, HBillType: '1207', sWhere: '' }
                                //    , cols: [[
                                //        { type: 'radio', totalRowText: '合计' }
                                //        , { field: 'HQty', title: '数量', width: 150, totalRow: true }
                                //        , { field: '件数', title: '件数', width: 150, totalRow: true }
                                //        , { field: 'HQtyMust', title: '应收数量', width: 150 }
                                //        , { field: 'HMaterNumber', title: '物料代码', width: 150 }
                                //        , { field: 'HMaterName', title: '物料名称', width: 150 }
                                //        , { field: 'HMaterModel', title: '规格型号', width: 150 }
                                //        , { field: 'HSourceInterID', title: '源单主内码', width: 150 }
                                //        , { field: 'HSourceEntryID', title: '源单子内码', width: 150 }
                                //        , { field: 'HSourceBillNo', title: '源单单号', width: 150 }
                                //        , { field: 'HBatchNo', title: '批次', width: 150 }
                                //        , { field: 'HMaterID', title: '物料内码', width: 150, hide: true }
                                //        , { field: 'HAuxPropID', title: '', width: 150, hide: true }
                                //        , { field: 'HMTONo', title: '计划跟踪号', width: 150, hide: true }
                                //        , { fixed: 'right', title: '操作', toolbar: '#barDemo', width: 70 }
                                //    ]]
                                //    // , data: [linterid]
                                //    // , page: true
                                //    //, height: 500
                                //    , done: function () {
                                //        layer.closeAll("loading");
                                //    }
                                //});
                                $.ajax({
                                    url: GetWEBURL() + '/OtherInStockBill/DisBillEntryList_Webs_New_Json1',
                                    type: "GET",
                                    data: { HBillID: sInterID, HBillNo: sBillNo, HBillType: HBillType, sMouldManagerCtl: sMouldManagerCtl, sFIFOCtl: sFIFOCtl },
                                    success: function (result) {
                                        if (result.count == 1) { // è¯´æ˜ŽéªŒè¯æˆåŠŸäº†ï¼Œ
                                            listOption.data = result.data.list;
                                            table.render(listOption);
                                            listOption1.data = result.data.list2;
                                            table.render(listOption1);
                                            //console.log(result.data.list2);
                                            var count = 0;
                                            var count1 = 0;
                                            for (var i = 0; i < result.data.list.length; i++) {
                                                count += result.data.list[i].HQty;
                                                count1 += result.data.list[i].HPieceQty;
                                            }
                                            $("#HSumQtys").val(count);
                                            $("#HBarCodeQtys").val(count1);
                                            //return;
                                        }
                                        else {
                                            layer.msg(result.Message);
                                        }
                                        layer.closeAll("loading");
                                    }
                                });
                                playSound1();
                                var sSubStr = table.cache['wl-table'];
                            }
@@ -1223,6 +1257,9 @@
                var sInterID = $("#HInterID").val()
                var sBillNo = $("#HBillNo").val()
                var HSourceBillType = $("#HBillType").val()
                var sMouldManagerCtl = 'N'
                var sFIFOCtl = 'N'
                var HBillType = '1207'
                $.ajax({
                    url: GetWEBURL() + "/MoveStockBill/set_SavePonderationBillMain_Temp_Source_Fast_Json",
                    type: "GET",
@@ -1256,33 +1293,63 @@
                            //}
                            layer.load(3);
                            element.tabChange('tab-MoveStockBill', '2');
                            table.render({
                                elem: '#wl-table'
                                , url: GetWEBURL() + '/MoveStockBill/DisBillEntryList_Webs_Json'
                                , toolbar: '#toolbarDemo'
                                , totalRow: true
                                , defaultToolbar: []
                                , where: { HBillID: sInterID, HBillType: '1207', sWhere: '' }
                                , cols: [[
                                    { type: 'radio' }
                                    , { field: 'HQty', title: '数量', width: 150, totalRow: true }
                                    , { field: 'HQtyMust', title: '应收数量', width: 150, totalRow: true}
                                    , { field: 'HMaterNumber', title: '物料代码', width: 150 }
                                    , { field: 'HMaterName', title: '物料名称', width: 150 }
                                    , { field: 'HMaterModel', title: '规格型号', width: 150 }
                                    , { field: 'HSourceInterID', title: '源单主内码', width: 150 }
                                    , { field: 'HSourceEntryID', title: '源单子内码', width: 150 }
                                    , { field: 'HSourceBillNo', title: '源单单号', width: 150 }
                                    , { field: 'HBatchNo', title: '批次', width: 150 }
                                    , { fixed: 'right', title: '操作', toolbar: '#barDemo', width: 70 }
                                ]]
                                // , data: [linterid]
                                // , page: true
                                , height: 500
                                , done: function () {
                            //table.render({
                            //    elem: '#wl-table'
                            //    , url: GetWEBURL() + '/MoveStockBill/DisBillEntryList_Webs_Json'
                            //    , toolbar: '#toolbarDemo'
                            //    , totalRow: true
                            //    , defaultToolbar: []
                            //    , where: { HBillID: sInterID, HBillType: '1207', sWhere: '' }
                            //    , cols: [[
                            //        { type: 'radio' }
                            //        , { field: 'HQty', title: '数量', width: 150, totalRow: true }
                            //        , { field: 'HQtyMust', title: '应收数量', width: 150, totalRow: true}
                            //        , { field: 'HMaterNumber', title: '物料代码', width: 150 }
                            //        , { field: 'HMaterName', title: '物料名称', width: 150 }
                            //        , { field: 'HMaterModel', title: '规格型号', width: 150 }
                            //        , { field: 'HSourceInterID', title: '源单主内码', width: 150 }
                            //        , { field: 'HSourceEntryID', title: '源单子内码', width: 150 }
                            //        , { field: 'HSourceBillNo', title: '源单单号', width: 150 }
                            //        , { field: 'HBatchNo', title: '批次', width: 150 }
                            //        , { fixed: 'right', title: '操作', toolbar: '#barDemo', width: 70 }
                            //    ]]
                            //    // , data: [linterid]
                            //    // , page: true
                            //    , height: 500
                            //    , done: function () {
                            //        layer.closeAll("loading");
                            //    }
                            //});
                            $.ajax({
                                url: GetWEBURL() + '/OtherInStockBill/DisBillEntryList_Webs_New_Json1',
                                type: "GET",
                                data: { HBillID: sInterID, HBillNo: sBillNo, HBillType: HBillType, sMouldManagerCtl: sMouldManagerCtl, sFIFOCtl: sFIFOCtl },
                                success: function (result) {
                                    if (result.count == 1) { // è¯´æ˜ŽéªŒè¯æˆåŠŸäº†ï¼Œ
                                        listOption.data = result.data.list;
                                        table.render(listOption);
                                        listOption1.data = result.data.list2;
                                        table.render(listOption1);
                                        //console.log(result.data.list2);
                                        var count = 0;
                                        var count1 = 0;
                                        for (var i = 0; i < result.data.list.length; i++) {
                                            count += result.data.list[i].HQty;
                                            count1 += result.data.list[i].HPieceQty;
                                        }
                                        $("#HSumQtys").val(count);
                                        $("#HBarCodeQtys").val(count1);
                                        //return;
                                    }
                                    else {
                                        layer.msg(result.Message);
                                    }
                                    layer.closeAll("loading");
                                }
                            });
                            $("#HSourceBillNo").attr("disabled", "true");
                        }
                        else {
@@ -1296,6 +1363,54 @@
            
        });
        var listOption = {
            elem: '#wl-table'
            , toolbar: '#toolbarDemo'
            , cellMinWidth: 90
            , limit: 3000
            , totalRow: true
            , cols: [[
                { type: 'radio' }
            , { field: 'HQty', title: '数量', width: 150, totalRow: true }
            , { field: 'HQtyMust', title: '应收数量', width: 150, totalRow: true}
            , { field: 'HMaterNumber', title: '物料代码', width: 150 }
            , { field: 'HMaterName', title: '物料名称', width: 150 }
            , { field: 'HMaterModel', title: '规格型号', width: 150 }
            , { field: 'HSourceInterID', title: '源单主内码', width: 150 }
            , { field: 'HSourceEntryID', title: '源单子内码', width: 150 }
            , { field: 'HSourceBillNo', title: '源单单号', width: 150 }
            , { field: 'HBatchNo', title: '批次', width: 150 }
            , { fixed: 'right', title: '操作', toolbar: '#barDemo', width: 70 }
            ]]
            , height: 500
            , done: function () {
                layer.closeAll("loading");
            }
        }
        var listOption1 = {
            elem: '#mx-table'
            , toolbar: '#toolbarDemo'
            , cellMinWidth: 90
            , cols: [[
                { type: 'radio' }
                , { field: 'HQty', title: '数量', width: 150, totalRow: true }
                , { field: 'HQtyMust', title: '应收数量', width: 150, totalRow: true }
                , { field: 'HMaterNumber', title: '物料代码', width: 150 }
                , { field: 'HMaterName', title: '物料名称', width: 150 }
                , { field: 'HMaterModel', title: '规格型号', width: 150 }
                , { field: 'HSourceInterID', title: '源单主内码', width: 150 }
                , { field: 'HSourceEntryID', title: '源单子内码', width: 150 }
                , { field: 'HSourceBillNo', title: '源单单号', width: 150 }
                , { field: 'HBatchNo', title: '批次', width: 150 }
                , { fixed: 'right', title: '操作', toolbar: '#barDemo', width: 70 }
            ]]
            , height: 500
            , done: function () {
                layer.closeAll("loading");
            }
        }
        //以上为layui模块
        function GetHWHValue(obj)  //返回调入仓库
        {
WebTM/views/²Ö´æ¹ÜÀí/²Ö¿âµ÷²¦/Kf_MoveStockBill_FastList.html
@@ -323,28 +323,58 @@
            
        });
        //查询
        //form.on('submit(cmdQuery)', function () {
        //    var HBillNo = $("#HBillNo").val();
        //    var HSourceBillNo = $("#HSourceBillNo").val();
        //    //进入页面显示的缓存列表
        //    $.ajax({
        //        url: GetWEBURL() + '/Gy_Mould/list1',
        //        type: "GET",
        //        data: { "BillType": sBillType, "HBillNo": HBillNo, "HSourceBillNo": HSourceBillNo },
        //        success: function (data1) {
        //            if (data1.count == 1) {
        //                option.data = data1.data;
        //                table.render(option);
        //                layer.close(index);
        //            } else {
        //                layer.close(index);
        //                layer.alert(data1.code + data1.Message, { icon: 5 });
        //            }
        //        }, error: function () {
        //            layer.close(index);
        //            layer.alert("接口请求失败!", { icon: 5 });
        //        }
        //    });
        //});
        form.on('submit(cmdQuery)', function () {
            var HBillNo = $("#HBillNo").val();
            var HSourceBillNo = $("#HSourceBillNo").val();
            //进入页面显示的缓存列表
            $.ajax({
                url: GetWEBURL() + '/Gy_Mould/list1',
                type: "GET",
                data: { "BillType": sBillType, "HBillNo": HBillNo, "HSourceBillNo": HSourceBillNo },
                success: function (data1) {
                    if (data1.count == 1) {
                        option.data = data1.data;
                        table.render(option);
                        layer.close(index);
                    } else {
                        layer.close(index);
                        layer.alert(data1.code + data1.Message, { icon: 5 });
                    }
                }, error: function () {
                    layer.close(index);
                    layer.alert("接口请求失败!", { icon: 5 });
            var HSourceBillNo = $("#HSourceBillNo").val();;
            table.render({
                elem: '#sy-table'
                , url: GetWEBURL() + '/ProductInBillList/list1'
                , toolbar: '#toolbarDemo'
                , defaultToolbar: []
                , where: { "BillType": sBillType, "HBillNo": HBillNo, "HSourceBillNo": HSourceBillNo }
                , cols: [[
                    { type: 'radio' }
                    , { field: 'HInterID', title: '单据内码', width: 120 }
                    , { field: 'HBillNo', title: '单据号', width: 150 }
                    , { field: 'HMaker', title: '制单人', width: 120 }
                    , { field: 'HMakeDate', title: '制单日期', width: 150 }
                    , { field: 'HMaterNumber', title: '物料代码', width: 150 }
                    , { field: 'HMaterName', title: '物料名称', width: 150 }
                    , { field: 'HMaterModel', title: '规格型号', width: 150 }
                    , { field: 'HQty', title: '数量', width: 100 }
                    , { field: 'HSourceBillNo', title: '源单单号', width: 150 }
                    , { field: 'HOrgID', title: '组织', width: 120 }
                ]]
                , height: 500
                , done: function () {
                    layer.closeAll("loading");
                }
            });
            })
        });
       
        
WebTM/views/»ù´¡×ÊÁÏ/Éú²ú»ù´¡×ÊÁÏ/Add_Edit_Gy_Process.html
@@ -185,6 +185,16 @@
                                        <input type="hidden" value="false" name="HAutoTrunFlag" id="HAutoTrunFlag">
                                    </div>
                                </div>
                                <div class="layui-col-xs4 layui-inline">
                                    <label class="layui-form-label">工作中心</label>
                                    <div class="layui-input-inline">
                                        <input type="text" name="HWorkCenterName" id="HDeptName" class="layui-input" value="" style="float: left; width: 150px; background-color: #efefef4d;" readonly>
                                        <input type="hidden" name="HWorkCenterID" id="HDeptID" value="0">
                                        <button type="button" lay-submit="" class="layui-btn" lay-filter="HWorkCenterID-BT" style="width:40px;">
                                            <i class="layui-icon layui-icon-search layuiadmin-button-btn" style="margin-left:-9px;"></i>
                                        </button>
                                    </div>
                                </div>
                            </div>
                            <div class="layui-row">
                                <div class="layui-col-xs8 layui-inline">
@@ -310,7 +320,7 @@
            });
            //选择工作中心按钮
            form.on('submit(HWorkingProcedure-BT)', function () {
            form.on('submit(HWorkCenterID-BT)', function () {
                get_checkWorkCenter();
            });
@@ -542,8 +552,8 @@
                        if (checkStatus.data.length === 0) {
                            return layer.msg('请选择数据');
                        }
                        $("#HCenter").val(checkStatus.data[0].工作中心);
                        $("#HCenterID").val(checkStatus.data[0].HItemID);
                        $("#HWorkCenterName").val(checkStatus.data[0].工作中心);
                        $("#HWorkCenterID").val(checkStatus.data[0].HItemID);
                        layer.close(index); //它获取的始终是最新弹出的某个层,值是由layer内部动态递增计算的
                    }
                    , btn2: function (index, layero) { }
WebTM/views/¼Æ»®¹ÜÀí/¹¤ÒÕ·Ïß/Gy_RoutingBillimport.html
@@ -53,6 +53,15 @@
                                        <input type="hidden" name="HOrgID" id="HOrgID" lay-verify="HOrgID">
                                    </div>
                                </div>
                                <div class="layui-inline">
                                    <label class="layui-form-label" style="width: 85px;">是否转工序</label>
                                    <div class="layui-input-block" style="margin-left: 120px; width: 85px;">
                                        <select name=" HTProcessFlag" id="HTProcessFlag">
                                            <option value="0">否</option>
                                            <option value="1">是</option>
                                        </select>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <table class="" id="mainTable" lay-filter="mainTable"></table>
WebTM/views/ÁìÁÏ·¢»õ/ÏúÊÛ³ö¿â/Kf_SellOutBill_Fast.html
@@ -87,6 +87,20 @@
                                        </div>
                                    </div>
                                </div>
                                <div class="layui-form-item" style="padding:0px;margin:0px">
                                    <div class="layui-row">
                                        <div class="layui-col-xs3">
                                            <label class="layui-form-label" style="width:30px;padding-left:0px;">先进先出仓库</label>
                                        </div>
                                        <div class="layui-col-xs6">
                                            <input type="text" name="HWHNAME_FIFO" id="HWHNAME_FIFO" lay-verify="HWHNAME_FIFO" autocomplete="off" class="layui-input">
                                            <input type="hidden" name="HWHID_FIFO" id="HWHID_FIFO" lay-verify="HWHID_FIFO" value="0" autocomplete="off" class="layui-input">
                                        </div>
                                        <div class="layui-col-xs3">
                                            <button type="button" lay-submit="" class="layui-btn" lay-filter="HWHID_FIFO-BT">...</button>
                                        </div>
                                    </div>
                                </div>
                                <div class="layui-form-item">
                                    <div class="layui-row">
                                        <div class="layui-col-xs3">
@@ -127,7 +141,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" lay-submit="" class="layui-btn" lay-filter="HSpID-BT" >...</button>
                                            <button type="button" lay-submit="" class="layui-btn" lay-filter="HSpID-BT">...</button>
                                        </div>
                                    </div>
                                </div>
@@ -216,7 +230,7 @@
                            <!--物料清单-->
                            <div class="layui-tab-item">
                                <!--<div class="layui-form-item" style="padding:0px;margin:0px">
                                <div class="layui-form-item" style="padding:0px;margin:0px">
            <div class="layui-row">
                <div class="layui-col-xs4">
                    <label class="layui-form-label" style="width:40px;padding-left:0px;">条码</label>
@@ -225,11 +239,12 @@
                    <input type="text" name="HBarCode" id="HBarCode" lay-verify="HBarCode" autocomplete="off" class="layui-input">
                </div>
            </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="mx-table" lay-filter="mx-table"></table>
                            </div>
@@ -317,7 +332,7 @@
            , layer = layui.layer
            , table = layui.table
            , form = layui.form
                , element = layui.element;
            , element = layui.element;
@@ -443,10 +458,11 @@
                        $("#HBillNo").val(d.data[0].HBillNo);
                        $("#HBillType").val(d.data[0].HSourceBillType);
                        $("#HSourceBillNo").val(d.data[0].HSourceBillNo);
                        $("#HDeptID").val(result.data[0].HDeptID);
                        $("#HDeptName").val(result.data[0].HDeptName);
                        $("#HSourceBillNo").attr("disabled", "true");
                        HSourceFlag = true;
                        $("#HDeptID").val(result.data[0].HDeptID);
                        $("#HDeptName").val(result.data[0].HDeptName);
                        //$("#HWHID").val(d.data[0].HWhID);
                        //$("#HStockPlaceID").val(d.data[0].HSPID);
                        //$("#HKeeperID").val(d.data[0].HKeeperID);
@@ -524,6 +540,35 @@
                        layer.closeAll("loading");
                    }
                });
                //$.ajax({
                //    url: GetWEBURL() + '/OtherInStockBill/DisBillEntryList_Webs_New_Json1',
                //    type: "GET",
                //    data: { HBillID: sInterID, HBillNo: sBillNo, HBillType: HBillType, sMouldManagerCtl: sMouldManagerCtl, sFIFOCtl: sFIFOCtl },
                //    success: function (result) {
                //        if (result.count == 1) { // è¯´æ˜ŽéªŒè¯æˆåŠŸäº†ï¼Œ
                //            listOption.data = result.data.list;
                //            table.render(listOption);
                //            listOption1.data = result.data.list2;
                //            table.render(listOption1);
                //            //console.log(result.data.list2);
                //            var count = 0;
                //            var count1 = 0;
                //            for (var i = 0; i < result.data.list.length; i++) {
                //                count += result.data.list[i].HQty;
                //                count1 += result.data.list[i].HPieceQty;
                //            }
                //            $("#HSumQtys").val(count);
                //            $("#HBarCodeQtys").val(count1);
                //            //return;
                //        }
                //        else {
                //            layer.msg(result.Message);
                //        }
                //        layer.closeAll("loading");
                //    }
                //});
            }
             
            //动态加载源单类型列表 new
@@ -568,6 +613,21 @@
                    , maxmin: true //允许全屏最小化
                    , anim: 0 //0-6的动画形式,-1不开启
                    , content: ['../../../views/Baseset/基础资料/Gy_WarehouseList.html?Type=HWHID', 'yes']
                    , resize: false
                    , cancel: function () {
                        //$(".layui-btn").removeClass("layui-btn-disabled");
                    }
                })
            });
            form.on('submit(HWHID_FIFO-BT)', function () {//选择先进先出仓库
                layer.open({
                    type: 2
                    , area: ['100%', '100%']
                    , title: '仓库列表'
                    , shade: 0.6 //遮罩透明度
                    , maxmin: true //允许全屏最小化
                    , anim: 0 //0-6的动画形式,-1不开启
                    , content: ['../../../views/Baseset/基础资料/Gy_WarehouseList.html?Type=HFIFOWHID', 'yes']
                    , resize: false
                    , cancel: function () {
                        //$(".layui-btn").removeClass("layui-btn-disabled");
@@ -800,61 +860,61 @@
            //删除
            form.on('submit(cmdDelete)', function () {//删除
                var checkStatus = table.checkStatus('wl-table')
                , data = checkStatus.data;
                // console.log(data);
                var sInterID = $('#HInterID').val()
                var sMaterID = data[0].HMaterID
                var sBillType = '1205'
                var sAuxPropID = data[0].HAuxPropID
                //var sMTONo = data[0].HMTONo
                var sMTONo = ''
                var sSourceInterID = data[0].HSourceInterID
                var sSourceEntryID = data[0].HSourceEntryID
                $.ajax(
                   {
                       type: "Get",
                       //url: "http://61.130.49.162:9090/WMSAPI///POStockInBill/Delete_Json", //方法所在页面和方法名
                       url: GetWEBURL() + "/SellOut/Delete_Json",
                       async: true,
                       data: { "HInterID": sInterID, "HMaterID": sMaterID, "HAuxPropID": sAuxPropID, "HMTONo": sMTONo, "HSourceInterID": sSourceInterID, "HSourceEntryID": sSourceEntryID, "sHBillType": sBillType, },
                       dataType: "json",
                       success: function (data) {
                           if (data.count == 1) { // è¯´æ˜ŽéªŒè¯æˆåŠŸäº†
                               table.render({
                                   elem: '#wl-table'
                                   , url: GetWEBURL() + '/SellOut/DisBillEntryList_Webs_Json'
                                   , cellMinWidth: 80
                                   , toolbar: '#toolbarDemo'
                                   , defaultToolbar: []
                                   , where: { HBillID: sInterID, HBillType: '1205', sWhere: '' }
                                   , cols: [[
                                      { type: 'radio' }
                                       , { field: 'HQty', title: '数量', width: 80 }
                                       , { field: 'HAuxQty', 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: 'HWHID', title: 'ck', width: 100 }
                                   ]]
                                    //, height: 500
                               })
                           }
                           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: "温馨提示" });
                       }
                   });
                //var checkStatus = table.checkStatus('wl-table')
                //, data = checkStatus.data;
                //// console.log(data);
                //var sInterID = $('#HInterID').val()
                //var sMaterID = data[0].HMaterID
                //var sBillType = '1205'
                //var sAuxPropID = data[0].HAuxPropID
                ////var sMTONo = data[0].HMTONo
                //var sMTONo = ''
                //var sSourceInterID = data[0].HSourceInterID
                //var sSourceEntryID = data[0].HSourceEntryID
                //$.ajax(
                //   {
                //       type: "Get",
                //       //url: "http://61.130.49.162:9090/WMSAPI///POStockInBill/Delete_Json", //方法所在页面和方法名
                //       url: GetWEBURL() + "/SellOut/Delete_Json",
                //       async: true,
                //       data: { "HInterID": sInterID, "HMaterID": sMaterID, "HAuxPropID": sAuxPropID, "HMTONo": sMTONo, "HSourceInterID": sSourceInterID, "HSourceEntryID": sSourceEntryID, "sHBillType": sBillType, },
                //       dataType: "json",
                //       success: function (data) {
                //           if (data.count == 1) { // è¯´æ˜ŽéªŒè¯æˆåŠŸäº†
                //               table.render({
                //                   elem: '#wl-table'
                //                   , url: GetWEBURL() + '/SellOut/DisBillEntryList_Webs_Json'
                //                   , cellMinWidth: 80
                //                   , toolbar: '#toolbarDemo'
                //                   , defaultToolbar: []
                //                   , where: { HBillID: sInterID, HBillType: '1205', sWhere: '' }
                //                   , cols: [[
                //                      { type: 'radio' }
                //                       , { field: 'HQty', title: '数量', width: 80 }
                //                       , { field: 'HAuxQty', 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: 'HWHID', title: 'ck', width: 100 }
                //                   ]]
                //                    //, height: 500
                //               })
                //           }
                //           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: "温馨提示" });
                //       }
                //   });
            });
@@ -1135,6 +1195,8 @@
                var sHWHID = $("#HWHID").val();//仓库ID
                var sHSPID = $("#HStockPlaceID").val();//仓位ID
                var sQty = $("#HQty").val()//数量
                var sMouldManagerCtl = 'N'
                var sFIFOCtl = 'N'
                if (sQty == "") {
                    sQty = 0;
                }
@@ -1319,39 +1381,70 @@
                                //$("#HSupName").val(result.data.HSupName);
                                //$("#HDeptID").val(result.data.HDeptID);
                                //$("#HDeptName").val(result.data.HDeptName);
                                table.render({
                                    elem: '#wl-table'
                                    , url: GetWEBURL() + '/SellOut/DisBillEntryList_Webs_Json'
                                    , toolbar: '#toolbarDemo'
                                    , where: { HBillID: sInterID, HBillType: '1205', sWhere: '' }
                                    , cols: [[
                                        { type: 'radio' }
                                        , { field: 'HSNO', title: '序号', width: 60 }
                                        , { field: 'HQty', title: '数量', width: 80 }
                                        , { field: 'HAuxQty', 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 () {
                                //table.render({
                                //    elem: '#wl-table'
                                //    , url: GetWEBURL() + '/SellOut/DisBillEntryList_Webs_Json'
                                //    , toolbar: '#toolbarDemo'
                                //    , where: { HBillID: sInterID, HBillType: '1205', sWhere: '' }
                                //    , cols: [[
                                //        { type: 'radio' }
                                //        , { field: 'HSNO', title: '序号', width: 60 }
                                //        , { field: 'HQty', title: '数量', width: 80 }
                                //        , { field: 'HAuxQty', 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 () {
                                //        layer.closeAll("loading");
                                //    }
                                //});
                                $.ajax({
                                    url: GetWEBURL() + '/OtherInStockBill/DisBillEntryList_Webs_New_Json1',
                                    type: "GET",
                                    data: { HBillID: sInterID, HBillNo: sBillNo, HBillType: HBillType, sMouldManagerCtl: sMouldManagerCtl, sFIFOCtl: sFIFOCtl },
                                    success: function (result) {
                                        if (result.count == 1) { // è¯´æ˜ŽéªŒè¯æˆåŠŸäº†ï¼Œ
                                            listOption.data = result.data.list;
                                            table.render(listOption);
                                            listOption1.data = result.data.list2;
                                            table.render(listOption1);
                                            //console.log(result.data.list2);
                                            var count = 0;
                                            var count1 = 0;
                                            for (var i = 0; i < result.data.list.length; i++) {
                                                count += result.data.list[i].HQty;
                                                count1 += result.data.list[i].HPieceQty;
                                            }
                                            $("#HSumQtys").val(count);
                                            $("#HBarCodeQtys").val(count1);
                                            //return;
                                        }
                                        else {
                                            layer.msg(result.Message);
                                        }
                                        layer.closeAll("loading");
                                    }
                                });
                                var count = 0;
                                var count1 = 0;
                                for (var i = 0; i < result.data.length; i++) {
                                    count += result.data.HQty;
                                    count1 += result.data.HPieceQty;
                                }
                                $("#HSumQtys").val(count);
                                $("#HBarCodeQtys").val(count1);
                                //var count = 0;
                                //var count1 = 0;
                                //for (var i = 0; i < result.data.length; i++) {
                                //    count += result.data.HQty;
                                //    count1 += result.data.HPieceQty;
                                //}
                                //$("#HSumQtys").val(count);
                                //$("#HBarCodeQtys").val(count1);
                                playSound1();
                            }
                            else {
@@ -1370,6 +1463,57 @@
                            //11
                        }
                    });
                }
            }
            var listOption = {
                elem: '#wl-table'
                , toolbar: '#toolbarDemo'
                , cellMinWidth: 90
                , limit: 3000
                , totalRow: true
                , cols: [[
                    { type: 'radio' }
                  , { field: 'HSNO', title: '序号', width: 60 }
                  , { field: 'HQty', title: '数量', width: 80, totalRow: true }
                  , { field: 'HAuxQty', title: '辅助数量', width: 80, totalRow: true }
                  , { 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 () {
                    layer.closeAll("loading");
                }
            }
            var listOption1 = {
                elem: '#mx-table'
                , toolbar: '#toolbarDemo'
                , cellMinWidth: 90
                , cols: [[
                    { type: 'radio' }
                    , { field: 'HQty', title: '数量', width: 150, totalRow: true }
                    , { field: 'HQtyMust', title: '应发数量', width: 150 }
                    , { field: 'HBarCode', title: '条码编号', width: 150 }
                    , { field: 'HMaterNumber', title: '物料代码', width: 150 }
                    , { field: 'HMaterName', title: '物料名称', width: 150 }
                    , { field: 'HMaterModel', title: '规格型号', width: 150 }
                    , { field: 'HBatchNo', title: '批号', width: 150 }
                    //, { field: 'HSourceInterID', title: '源单主内码', width: 150 }
                    //, { field: 'HSourceEntryID', title: '源单子内码', width: 150 }
                    , { field: 'HSourceBillNo', title: '源单单号', width: 150 }
                ]]
                , height: 500
                , done: function () {
                    layer.closeAll("loading");
                }
            }
            function playSound() {
@@ -1393,11 +1537,15 @@
                audio.play();
            }
            //扫源单
            function GetMeesageBySourceBillNo(obj) {
            function GetMeesageBySourceBillNo(obj) {
                var HSourceBillNo = $('#HSourceBillNo').val()
                var sInterID = $("#HInterID").val()
                var sBillNo = $("#HBillNo").val()
                var HSourceBillType = $("#HBillType").val()
                var HBillType = '1205'
                var HWHID_FIFO = $("#HWHID_FIFO").val();//先进先出仓库ID
                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;
@@ -1405,7 +1553,7 @@
                $.ajax({
                    url: GetWEBURL() + "/SellOut/set_SavePonderationBillMain_Temp_Source_Fast_Json",
                    type: "GET",
                    data: { "HSourceBillType": HSourceBillType, "HSourceBillNo": HSourceBillNo, "sInterID": sInterID, "sBillNo": sBillNo },
                    data: { sInterID: sInterID, sBillNo: sBillNo, HBillType: '1205',"HSourceBillType": HSourceBillType, "HSourceBillNo": HSourceBillNo, "sInterID": sInterID, "sBillNo": sBillNo },
                    success: function (result) {
                        if (result.count == 1) { // è¯´æ˜ŽéªŒè¯æˆåŠŸäº†ï¼Œ
                            //GetSellOutFindSP();
@@ -1419,27 +1567,56 @@
                            //    where: { HBillID: sInterID, HBillType: '1205', sWhere: '' }
                            //});
                            table.render({
                                elem: '#wl-table'
                                , url: GetWEBURL() + '/SellOut/DisBillEntryList_Webs_Json'
                                , toolbar: '#toolbarDemo'
                                , where: { HBillID: sInterID, HBillType: '1205', sWhere: '' }
                                , cols: [[
                                    { type: 'radio' }
                                    , { field: 'HSNO', title: '序号', width: 60 }
                                    , { field: 'HQty', title: '数量', width: 80 }
                                    , { field: 'HAuxQty', 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 () {
                            //table.render({
                            //    elem: '#wl-table'
                            //    , url: GetWEBURL() + '/SellOut/DisBillEntryList_Webs_Json'
                            //    , toolbar: '#toolbarDemo'
                            //    , where: { HBillID: sInterID, HBillType: '1205', sWhere: '' }
                            //    , cols: [[
                            //        { type: 'radio' }
                            //        , { field: 'HSNO', title: '序号', width: 60 }
                            //        , { field: 'HQty', title: '数量', width: 80 }
                            //        , { field: 'HAuxQty', 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 () {
                            //        layer.closeAll("loading");
                            //    }
                            //});
                            $.ajax({
                                url: GetWEBURL() + '/OtherInStockBill/DisBillEntryList_Webs_New_Json1',
                                type: "GET",
                                data: { HBillID: sInterID, HBillNo: sBillNo, HBillType: HBillType, sMouldManagerCtl: sMouldManagerCtl, sFIFOCtl: sFIFOCtl },
                                success: function (result) {
                                    if (result.count == 1) { // è¯´æ˜ŽéªŒè¯æˆåŠŸäº†ï¼Œ
                                        listOption.data = result.data.list;
                                        table.render(listOption);
                                        listOption1.data = result.data.list2;
                                        table.render(listOption1);
                                        //console.log(result.data.list2);
                                        var count = 0;
                                        var count1 = 0;
                                        for (var i = 0; i < result.data.list.length; i++) {
                                            count += result.data.list[i].HQty;
                                            count1 += result.data.list[i].HPieceQty;
                                        }
                                        $("#HSumQtys").val(count);
                                        $("#HBarCodeQtys").val(count1);
                                        //return;
                                    }
                                    else {
                                        layer.msg(result.Message);
                                    }
                                    layer.closeAll("loading");
                                }
                            });
@@ -1454,6 +1631,7 @@
        
        });
        //以上为layui模块
        function GetHWHValue(obj)  //返回仓库
@@ -1462,6 +1640,11 @@
            //sessionStorage["HWHID"] = obj[0].HItemID;
            $("#HWHID").val(obj[0].HItemID);
        }
        function GetHFIFOWHNAMEValue(obj)  //返回先进先出仓库
        {
            $("#HWHNAME_FIFO").val(obj[0].HName);
            $("#HWHID_FIFO").val(obj[0].HItemID);
        }
        function GetHSpValue(obj) {  //返回调入仓位
            $("#HStockPlaceName").val(obj[0].HName);
            $("#HStockPlaceID").val(obj[0].HItemID);
WebTM/views/ÁìÁÏ·¢»õ/ÏúÊÛ³ö¿â/Kf_SellOutBill_FastList.html
@@ -291,31 +291,60 @@
            
        });
        //查询
        //form.on('submit(cmdQuery)', function () {
        //    var HBillNo = $("#HBillNo").val();
        //    var HSourceBillNo = $("#HSourceBillNo").val();
        //    //进入页面显示的缓存列表
        //    $.ajax({
        //        url: GetWEBURL() + '/Gy_Mould/list1',
        //        type: "GET",
        //        data: { "BillType": sBillType, "HBillNo": HBillNo, "HSourceBillNo": HSourceBillNo },
        //        success: function (data1) {
        //            if (data1.count == 1) {
        //                option.data = data1.data;
        //                table.render(option);
        //                layer.close(index);
        //            } else {
        //                layer.close(index);
        //                layer.alert(data1.code + data1.Message, { icon: 5 });
        //            }
        //        }, error: function () {
        //            layer.close(index);
        //            layer.alert("接口请求失败!", { icon: 5 });
        //        }
        //    });
        //});
        form.on('submit(cmdQuery)', function () {
            var HBillNo = $("#HBillNo").val();
            var HSourceBillNo = $("#HSourceBillNo").val();
            //进入页面显示的缓存列表
            $.ajax({
                url: GetWEBURL() + '/Gy_Mould/list1',
                type: "GET",
                data: { "BillType": sBillType, "HBillNo": HBillNo, "HSourceBillNo": HSourceBillNo },
                success: function (data1) {
                    if (data1.count == 1) {
                        option.data = data1.data;
                        table.render(option);
                        layer.close(index);
                    } else {
                        layer.close(index);
                        layer.alert(data1.code + data1.Message, { icon: 5 });
                    }
                }, error: function () {
                    layer.close(index);
                    layer.alert("接口请求失败!", { icon: 5 });
            var HSourceBillNo = $("#HSourceBillNo").val();;
            table.render({
                elem: '#sy-table'
                , url: GetWEBURL() + '/ProductInBillList/list1'
                , toolbar: '#toolbarDemo'
                , defaultToolbar: []
                , where: { "BillType": sBillType, "HBillNo": HBillNo, "HSourceBillNo": HSourceBillNo }
                , cols: [[
                    { type: 'radio' }
                    , { field: 'HInterID', title: '单据内码', width: 120 }
                    , { field: 'HBillNo', title: '单据号', width: 150 }
                    , { field: 'HMaker', title: '制单人', width: 120 }
                    , { field: 'HMakeDate', title: '制单日期', width: 150 }
                    , { field: 'HMaterNumber', title: '物料代码', width: 150 }
                    , { field: 'HMaterName', title: '物料名称', width: 150 }
                    , { field: 'HMaterModel', title: '规格型号', width: 150 }
                    , { field: 'HQty', title: '数量', width: 100 }
                    , { field: 'HSourceBillNo', title: '源单单号', width: 150 }
                    , { field: 'HOrgID', title: '组织', width: 120 }
                ]]
                , height: 500
                , done: function () {
                    layer.closeAll("loading");
                }
            });
            })
        });
        
        
        table.render({
WebTM/views/ÑéÊÕÈë¿â/ÆäËûÈë¿â/Kf_OtherInBill_Fast.html
@@ -688,64 +688,106 @@
            });
            form.on('submit(cmdDelete)', function () {//删除
                var checkStatus = table.checkStatus('wl-table')
                    , data = checkStatus.data;
                // console.log(data);
                var sInterID = $('#HInterID').val()
                var sMaterID = data[0].HMaterID
                var sBillType = '1203'
                var sAuxPropID = data[0].HAuxPropID
                //var sMTONo = data[0].HMTONo
                var sMTONo = ''
                var sSourceInterID = data[0].HSourceInterID
                var sSourceEntryID = data[0].HSourceEntryID
                $.ajax(
                    {
                        type: "Get",
                        //url: "http://61.130.49.162:9090/WMSAPI///POStockInBill/Delete_Json", //方法所在页面和方法名
                        url: GetWEBURL() + "/OtherInBill/Delete_Json",
                        async: true,
                        data: { "HInterID": sInterID, "HMaterID": sMaterID, "HAuxPropID": sAuxPropID, "HMTONo": sMTONo, "HSourceInterID": sSourceInterID, "HSourceEntryID": sSourceEntryID, "sHBillType": sBillType, },
                        dataType: "json",
                        success: function (data) {
                            if (data.count == 1) { // è¯´æ˜ŽéªŒè¯æˆåŠŸäº†ï¼Œ
                                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");
                                    }
                                });
                            }
                            else {
                                layer.msg(data.Message, { icon: 2 });
                            }
                        },
                        error: function (err) {
                            layer.msg('错误' + err, {
                                icon: 5,
                                time: 20000
                            }, function () {
                                //do something
                            });
                        }
                    });
                //var checkStatus = table.checkStatus('wl-table')
                //    , data = checkStatus.data;
                //// console.log(data);
                //var sInterID = $('#HInterID').val()
                //var sMaterID = data[0].HMaterID
                //var sBillType = '1203'
                //var sAuxPropID = data[0].HAuxPropID
                ////var sMTONo = data[0].HMTONo
                //var sMTONo = ''
                //var sSourceInterID = data[0].HSourceInterID
                //var sSourceEntryID = data[0].HSourceEntryID
                //$.ajax(
                //    {
                //        type: "Get",
                //        //url: "http://61.130.49.162:9090/WMSAPI///POStockInBill/Delete_Json", //方法所在页面和方法名
                //        url: GetWEBURL() + "/OtherInBill/Delete_Json",
                //        async: true,
                //        data: { "HInterID": sInterID, "HMaterID": sMaterID, "HAuxPropID": sAuxPropID, "HMTONo": sMTONo, "HSourceInterID": sSourceInterID, "HSourceEntryID": sSourceEntryID, "sHBillType": sBillType, },
                //        dataType: "json",
                //        success: function (data) {
                //            if (data.count == 1) { // è¯´æ˜ŽéªŒè¯æˆåŠŸäº†ï¼Œ
                //                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");
                //                    }
                //                });
                //            }
                //            else {
                //                layer.msg(data.Message, { icon: 2 });
                //            }
                //        },
                //        error: function (err) {
                //            layer.msg('错误' + err, {
                //                icon: 5,
                //                time: 20000
                //            }, function () {
                //                //do something
                //            });
                //        }
                //    });
            });
            //form.on('submit(Saver)', function (data) {//提交
            //    //灰度提交按钮Saver
            //    document.getElementById("Saver").disabled = true;
            //    //debugger;
            //    data.field.HSTOCKORGID = sessionStorage["OrganizationID"];//组织
            //    var sMainStr = JSON.stringify(data.field);
            //    //var hOrgID = sessionStorage["OrganizationID"];
            //    var sMain = sMainStr;
            //    var sSubStr = table.cache['wl-table'];
            //    var sSourceType = $("#HBillType").val();
            //    $.ajax(
            //        {
            //            type: "POST",
            //            url: GetWEBURL() + "/OtherInStockBill/set_SaveOtherInStockBill_Json",
            //            //url: "http://localhost:12761/OtherInStockBill/set_SaveOtherInStockBill_Json", //方法所在页面和方法名
            //            async: true,
            //            data: { "oMain": sMain },
            //            dataType: "json",
            //            success: function (data) {
            //                if (data.count == 1) { // è¯´æ˜ŽéªŒè¯æˆåŠŸäº†ï¼Œ
            //                    layer.msg(data.Message , { icon: 1 });
            //                    //
            //                    //Sub_ClearBill();
            //                    //
            //                    //灰度提交按钮Saver
            //                    document.getElementById("Saver").disabled = false;
            //                }
            //                else {
            //                    layer.msg(data.Message, { icon: 5 });
            //                    //灰度提交按钮Saver
            //                    document.getElementById("Saver").disabled = false;
            //                }
            //                layer.closeAll("loading");
            //            },
            //            error: function (err) {
            //                layer.msg("错误:" + err, { icon: 5 });
            //                //灰度提交按钮Saver
            //                document.getElementById("Saver").disabled = false;
            //            }
            //        });
            //});
            form.on('submit(Saver)', function (data) {//提交
                //灰度提交按钮Saver
@@ -757,36 +799,47 @@
                var sMain = sMainStr;
                var sSubStr = table.cache['wl-table'];
                var sSourceType = $("#HBillType").val();
                $.ajax(
                    {
                        type: "POST",
                        url: GetWEBURL() + "/OtherInStockBill/set_SaveOtherInStockBill_Json",
                        //url: "http://localhost:12761/OtherInStockBill/set_SaveOtherInStockBill_Json", //方法所在页面和方法名
                        async: true,
                        data: { "oMain": sMain },
                        dataType: "json",
                        success: function (data) {
                            if (data.count == 1) { // è¯´æ˜ŽéªŒè¯æˆåŠŸäº†ï¼Œ
                                layer.msg(data.Message , { icon: 1 });
                                //
                                //Sub_ClearBill();
                                //
                if (AllowLoadData(sSubStr) != false)//非空验证
                {
                    layer.load(3);
                    $.ajax(
                        {
                            type: "POST",
                            url: GetWEBURL() + "/OtherInStockBill/set_SaveOtherInStockBill_Json",
                            //url: "http://localhost:12761/OtherInStockBill/set_SaveOtherInStockBill_Json", //方法所在页面和方法名
                            async: true,
                            data: { "oMain": sMain },
                            dataType: "json",
                            success: function (data) {
                                if (data.count == 1) { // è¯´æ˜ŽéªŒè¯æˆåŠŸäº†ï¼Œ
                                    layer.confirm("生成其他入库单" + data.Message + $("#HBillNo").val(), {
                                        icon: 1, skin: 'layui-layer-lan', title: "温馨提示", closeBtn: 0, btn: ['新增'],
                                        btn2: function () {
                                            //parent.layui.admin.events.closeThisTabs();关闭页签
                                            //window.close();//关闭页面,浏览器有效,PDA无效
                                            parent.location.href = "../../../views/index.html"
                                        }//关闭
                                    }, function () { window.location.reload(); });//新增
                                }
                                else {
                                    layer.msg(data.Message, { icon: 5 });
                                    //灰度提交按钮Saver
                                    document.getElementById("Saver").disabled = false;
                                }
                                layer.closeAll("loading");
                            },
                            error: function (err) {
                                layer.msg("错误:" + err, { icon: 5 });
                                //灰度提交按钮Saver
                                document.getElementById("Saver").disabled = false;
                            }
                            else {
                                layer.msg(data.Message, { icon: 5 });
                                //灰度提交按钮Saver
                                document.getElementById("Saver").disabled = false;
                            }
                            layer.closeAll("loading");
                        },
                        error: function (err) {
                            layer.msg("错误:" + err, { icon: 5 });
                            //灰度提交按钮Saver
                            document.getElementById("Saver").disabled = false;
                        }
                    });
                        });
                }
                else {
                    layer.msg("数据不完整,不允许提交:", { icon: 5 });
                    //灰度提交按钮Saver
                    document.getElementById("Saver").disabled = false;
                }
            });
@@ -1052,7 +1105,7 @@
                , totalRow: true
                , cols: [[
                    { type: 'radio' }
                    , { field: 'HQty', title: '数量', width: 150, totalRow: true }
                    , { field: 'HQty', title: '重量', width: 150, totalRow: true }
                    , { field: 'HAuxQty', title: '箱数', width: 150, totalRow: true }
                    , { field: 'HQtyMust', title: '应收数量', width: 150 }
                    , { field: 'HMaterNumber', title: '物料代码', width: 150 }
WebTM/views/ÑéÊÕÈë¿â/ÆäËûÈë¿â/Kf_OtherInBill_FastList.html
@@ -132,6 +132,29 @@
        //初始化界面
        function set_ClearBill() {
            get_Display();
            table.render({
                elem: '#dj-table'
                , url: GetWEBURL() + '/Web/chanpinruk'
                , toolbar: '#toolbarDemo'
                , where: { HBillType: sBillType, sHMaker: sessionStorage["HUserName"], HOrgID: sessionStorage["OrganizationID"] }
                , cols: [[
                    { type: 'radio' }
                    , { field: 'HInterID', title: '单据内码', width: 80 }
                    , { field: 'HBillNo', title: '单据号', width: 80 }
                    , { field: 'HMaker', title: '制单人', width: 100 }
                    , { field: 'HMakeDate', title: '制单日期', width: 100 }
                    , { field: 'HQty', title: '数量', width: 100 }
                    , { field: 'HSourceBillNo', title: '源单单号', width: 100 }
                    , { field: 'HRedBlueFlag', title: '红蓝字', width: 100 }
                    , { field: 'HSourceBillType', title: '源单类型', width: 100 }
                ]]
                , height: 500
                , done: function () {
                    layer.closeAll("loading");
                }
            })
            //已上传列表
            table.render({
                elem: '#yd-table'
@@ -318,86 +341,118 @@
            }
        });
        //查询
        //form.on('submit(cmdQuery)', function () {
        //    var HBillNo = $("#HBillNo").val();
        //    var HSourceBillNo = $("#HSourceBillNo").val();
        //    //进入页面显示的缓存列表
        //    $.ajax({
        //        url: GetWEBURL() + '/Gy_Mould/list1',
        //        type: "GET",
        //        data: { "BillType": sBillType, "HBillNo": HBillNo, "HSourceBillNo": HSourceBillNo},
        //        success: function (data1) {
        //            if (data1.count == 1) {
        //                option.data = data1.data;
        //                table.render(option);
        //                layer.close(index);
        //            } else {
        //                layer.close(index);
        //                layer.alert(data1.code + data1.Message, { icon: 5 });
        //            }
        //        }, error: function () {
        //            layer.close(index);
        //            layer.alert("接口请求失败!", { icon: 5 });
        //        }
        //    });
        //});
        form.on('submit(cmdQuery)', function () {
            var HBillNo = $("#HBillNo").val();
            var HSourceBillNo = $("#HSourceBillNo").val();
            //进入页面显示的缓存列表
            $.ajax({
                url: GetWEBURL() + '/Gy_Mould/list1',
                type: "GET",
                data: { "BillType": sBillType, "HBillNo": HBillNo, "HSourceBillNo": HSourceBillNo},
                success: function (data1) {
                    if (data1.count == 1) {
                        option.data = data1.data;
                        table.render(option);
                        layer.close(index);
                    } else {
                        layer.close(index);
                        layer.alert(data1.code + data1.Message, { icon: 5 });
                    }
                }, error: function () {
                    layer.close(index);
                    layer.alert("接口请求失败!", { icon: 5 });
            var HSourceBillNo = $("#HSourceBillNo").val();;
            table.render({
                elem: '#sy-table'
                , url: GetWEBURL() + '/ProductInBillList/list1'
                , toolbar: '#toolbarDemo'
                , defaultToolbar: []
                , where: { "BillType": sBillType, "HBillNo": HBillNo, "HSourceBillNo": HSourceBillNo }
                , cols: [[
                    { type: 'radio' }
                    , { field: 'HInterID', title: '单据内码', width: 120 }
                    , { field: 'HBillNo', title: '单据号', width: 150 }
                    , { field: 'HMaker', title: '制单人', width: 120 }
                    , { field: 'HMakeDate', title: '制单日期', width: 150 }
                    , { field: 'HMaterNumber', title: '物料代码', width: 150 }
                    , { field: 'HMaterName', title: '物料名称', width: 150 }
                    , { field: 'HMaterModel', title: '规格型号', width: 150 }
                    , { field: 'HQty', title: '数量', width: 100 }
                    , { field: 'HSourceBillNo', title: '源单单号', width: 150 }
                    , { field: 'HOrgID', title: '组织', width: 120 }
                ]]
                , height: 500
                , done: function () {
                    layer.closeAll("loading");
                }
            });
        });
            })
          });
        //加载缓存列表数据
        function get_Display() {
            var ajaxLoad = layer.load();
            $.ajax({
                url: GetWEBURL() + '/Web/GetOtherInBillMain_TempList_New',
                type: "GET",
                data: { "HBillType": sBillType, "sHMaker": sessionStorage["HUserName"], "HOrgID": sessionStorage["OrganizationID"]},
                success: function (data1) {
                    if (data1.count == 1) {
                        var data = [];
                        //给空的数组赋值
                        for (var key in data1.list) {
                            data.push({ "id": data1.list[key].ColmCols, "name": data1.list[key].ColmCols, "Type": data1.list[key].ColmType });
                        }
        //function get_Display() {
        //    var ajaxLoad = layer.load();
        //    $.ajax({
        //        url: GetWEBURL() + '/Web/GetOtherInBillMain_TempList_New',
        //        type: "GET",
        //        data: { "HBillType": sBillType, "sHMaker": sessionStorage["HUserName"], "HOrgID": sessionStorage["OrganizationID"]},
        //        success: function (data1) {
        //            if (data1.count == 1) {
        //                var data = [];
        //                //给空的数组赋值
        //                for (var key in data1.list) {
        //                    data.push({ "id": data1.list[key].ColmCols, "name": data1.list[key].ColmCols, "Type": data1.list[key].ColmType });
        //                }
                        for (var i = 0; i < data.length; i++) {
                            if (data[i].name == '单据内码' || data[i].name == 'HBillType' || data[i].name == 'hmainid') {
                                col.push({ field: data[i].id, title: data[i].name, align: 'center', hide: true }); //隐藏id列
                            }
                            else {
                                switch (data[i].Type) {
                                    //int
                                    case 'DateTime':
                                        col.push({ field: data[i].id, title: data[i].name, align: 'center', sort: true, templet: "<div>{{d." + data[i].name + " ==null ?'':layui.util.toDateString(d." + data[i].name + ", 'yyyy-MM-dd')}}</div>", width: 200 });
                                        break;
                                    default:
                                        col.push({ field: data[i].id, title: data[i].name, align: 'center', sort: true, width: 200 });
                                }
                            }
                        }
        //                for (var i = 0; i < data.length; i++) {
        //                    if (data[i].name == '单据内码' || data[i].name == 'HBillType' || data[i].name == 'hmainid') {
        //                        col.push({ field: data[i].id, title: data[i].name, align: 'center', hide: true }); //隐藏id列
        //                    }
        //                    else {
        //                        switch (data[i].Type) {
        //                            //int
        //                            case 'DateTime':
        //                                col.push({ field: data[i].id, title: data[i].name, align: 'center', sort: true, templet: "<div>{{d." + data[i].name + " ==null ?'':layui.util.toDateString(d." + data[i].name + ", 'yyyy-MM-dd')}}</div>", width: 200 });
        //                                break;
        //                            default:
        //                                col.push({ field: data[i].id, title: data[i].name, align: 'center', sort: true, width: 200 });
        //                        }
        //                    }
        //                }
                        //动态显示列名
                        table.render({
                            elem: '#dj-table'
                            , cols: [col]
                            , data: data1.data
                            , height: 550
                            , page: true
                            , cellMinWidth: 90
                            , limit: 50
                            , limits: [50, 500, 5000, 20000]
                        });
        //                //动态显示列名
        //                table.render({
        //                    elem: '#dj-table'
        //                    , cols: [col]
        //                    , data: data1.data
        //                    , height: 550
        //                    , page: true
        //                    , cellMinWidth: 90
        //                    , limit: 50
        //                    , limits: [50, 500, 5000, 20000]
        //                });
                        layer.close(ajaxLoad);
                        //layer.alert("查询成功", { icon: 1 });
                    } else {
                        layer.close(ajaxLoad);
                        layer.alert(data1.code + data1.Message, { icon: 5 });
                    }
                }, error: function () {
                    layer.close(ajaxLoad);
                    layer.alert("接口请求失败!", { icon: 5 });
                }
            });
        }
        //                layer.close(ajaxLoad);
        //                //layer.alert("查询成功", { icon: 1 });
        //            } else {
        //                layer.close(ajaxLoad);
        //                layer.alert(data1.code + data1.Message, { icon: 5 });
        //            }
        //        }, error: function () {
        //            layer.close(ajaxLoad);
        //            layer.alert("接口请求失败!", { icon: 5 });
        //        }
        //    });
        //}
        //刷新明细页签
        table.render({