其他入库单缓存列表;   网格 改为动态加载;
采购入库单缓存列表; 网格 改为动态加载;
委外入库单缓存列表; 网格 改为动态加载;
生产领料单缓存列表; 网格 改为动态加载;
生产入库单缓存列表; 网格 改为动态加载;
销售出库单缓存列表; 网格 改为动态加载;
10个文件已修改
3621 ■■■■ 已修改文件
WebTM/Properties/PublishProfiles/JFTM.pubxml.user 2802 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/WebTM.csproj.user 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/layuiadmin/Scripts/webConfig.js 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/领料发货/其他出库/Kf_OtherOutBill_FastList.html 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/领料发货/销售出库/Kf_SellOutBill_FastList.html 142 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/领料发货/领料出库/Kf_MateOutBill_FastList.html 147 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/验收入库/产品入库/Kf_ProductInBill_FastList.html 192 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/验收入库/其他入库/Kf_OtherInBill_FastList.html 37 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/验收入库/外购入库/Kf_POStockInBill_FastList.html 143 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/views/验收入库/委外入库/Kf_EntrustInBill_FastList.html 143 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
WebTM/Properties/PublishProfiles/JFTM.pubxml.user
Diff too large
WebTM/WebTM.csproj.user
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="12.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  <PropertyGroup>
    <NameOfLastUsedPublishProfile>JFTM</NameOfLastUsedPublishProfile>
    <NameOfLastUsedPublishProfile>D:\网站发布\后端代码\MES-WEB-TM\MESWMS-LayUI\WebTM\Properties\PublishProfiles\JFTM.pubxml</NameOfLastUsedPublishProfile>
    <ProjectView>ProjectFiles</ProjectView>
    <LastActiveSolutionConfig>Debug|Any CPU</LastActiveSolutionConfig>
    <UseIISExpress>true</UseIISExpress>
WebTM/layuiadmin/Scripts/webConfig.js
@@ -3,10 +3,11 @@
    //var WEBURL = "http://192.168.16.80:8011/";          //办公室服务器
    //var WEBURL = "http://localhost:8081/SWEAPI/";       //ch本地*/
    //var WEBURL = "http://61.164.86.218:8099/ABAPI/";
    var WEBURL = "http://localhost:8080/API/";   //颜晓军本地配置
    //var WEBURL = "http://localhost:8080/API/";   //颜晓军本地配置
    //var WEBURL = "http://localhost/WEBAPI/";   //颜家台式机本地配置
    //var WEBURL = "http://localhost:8082/lubao";   //颜晓军本地配置
    //var WEBURL = "http://localhost:8082/LuBaoAPI/";    //杨乐本地配置
    //var WEBURL = "http://localhost:8082/LuBao/API/";    //杨乐本地配置
    var WEBURL = "http://localhost:8082/API/";    //杜贺本地配置
    //var WEBURL = "http://localhost:8082/LuBaoAPI/";    //余思杰本地配置
    //var WEBURL = "http://10.1.4.155/API/";   //江丰客户NEW
    //var WEBURL = "http://47.96.97.237/API/";   //智云服务器
WebTM/views/ÁìÁÏ·¢»õ/ÆäËû³ö¿â/Kf_OtherOutBill_FastList.html
@@ -426,6 +426,14 @@
                    };
                    table.render(option);
                }
            },
            error: function (err) {
                layer.msg('错误' + err, {
                    icon: 5,
                    time: 20000
                }, function () {
                    //do something
                });
            }
        })
        
WebTM/views/ÁìÁÏ·¢»õ/ÏúÊÛ³ö¿â/Kf_SellOutBill_FastList.html
@@ -120,7 +120,8 @@
        , layer = layui.layer
        , table = layui.table
        , form = layui.form
        , element = layui.element;
            , element = layui.element;
        var option = {};
        //清空界面  new
        var sBillType = '1205'
        //动态加载源单类型列表 new
@@ -158,27 +159,7 @@
        });
        form.on('submit(cmdRefresh)', function () {//刷新
            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: 120 }
                    , { field: 'HBillNo', title: '单据号', width: 150 }
                    , { field: 'HMaker', title: '制单人', width: 120 }
                    , { field: 'HMakeDate', title: '制单日期', width: 150 }
                    , { field: 'HQty', title: '数量', width: 100 }
                    , { field: 'HSourceBillNo', title: '源单单号', width: 150 }
                    , { field: 'HRedBlueFlag', title: '红蓝字', width: 120 }
                    , { field: 'HSourceBillType', title: '源单类型', width: 100 }
                ]]
                , height: 500
                , done: function () {
                    layer.closeAll("loading");
                }
            }),
            table.render(option);
                table.render({
                    elem: '#yd-table'
                    , url: GetWEBURL() + '/Web/DisBillUpdateLoad_Json'
@@ -357,28 +338,107 @@
        });
        
        
        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: 120 }
                , { field: 'HBillNo', title: '单据号', width: 150 }
                , { field: 'HMaker', title: '制单人', width: 120 }
                , { field: 'HMakeDate', title: '制单日期', width: 150 }
                , { field: 'HQty', title: '数量', width: 100 }
                , { field: 'HSourceBillNo', title: '源单单号', width: 150 }
                , { field: 'HRedBlueFlag', title: '红蓝字', width: 120 }
                , { field: 'HSourceBillType', title: '源单类型', width: 100 }
            ]]
            , height: 500
            , done: function () {
                layer.closeAll("loading");
        //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: 120 }
        //        , { field: 'HBillNo', title: '单据号', width: 150 }
        //        , { field: 'HMaker', title: '制单人', width: 120 }
        //        , { field: 'HMakeDate', title: '制单日期', width: 150 }
        //        , { field: 'HQty', title: '数量', width: 100 }
        //        , { field: 'HSourceBillNo', title: '源单单号', width: 150 }
        //        , { field: 'HRedBlueFlag', title: '红蓝字', width: 120 }
        //        , { field: 'HSourceBillType', title: '源单类型', width: 100 }
        //    ]]
        //    , height: 500
        //    , done: function () {
        //        layer.closeAll("loading");
        //    }
        //})
        //动态列
        $.ajax({
            url: GetWEBURL() + "/Web/chanpinruk1",
            type: "GET",
            async: false,
            data: { HBillType: sBillType, sHMaker: sessionStorage["HUserName"], HOrgID: sessionStorage["OrganizationID"] },
            //async: false,
            success: function (data1) {
                if (data1.count == 1) {
                    var data = [];
                    var col = [];
                    //给空的数组赋值
                    for (var key in data1.list) {
                        data.push({ "id": data1.list[key].ColmCols, "name": data1.list[key].ColmCols, "Type": data1.list[key].ColmType });
                    }
                    //在列表左边添加勾选框
                    col.push({ type: 'radio', fixed: 'left' });
                    for (var i = 0; i < data.length; i++) {
                        if ($.inArray(data[i].name, "") > -1) {
                            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 HH:mm:ss')}}</div>", width: 200 });
                                    break;
                                default:
                                    col.push({ field: data[i].id, title: data[i].name, align: 'center', sort: true, width: 200 });
                            }
                        }
                    }
                    option = {
                        elem: '#dj-table'
                        , toolbar: '#toolbarDemo'
                        , height: 500
                        , page: true //开启分页
                        , limit: 50
                        , limits: [50, 500, 5000, 20000]
                        , cols: [col]
                        , data: data1.data
                    };
                    table.render(option);
                } else {
                    option = {
                        elem: '#dj-table'
                        , toolbar: '#toolbarDemo'
                        , height: 500
                        , page: true //开启分页
                        , limit: 50
                        , limits: [50, 500, 5000, 20000]
                        , cols: [[
                            { type: 'radio' }
                            , { field: 'HMakeDate', title: '制单日期', width: 150 }
                            , { field: 'HBillNo', title: '单据号', width: 150 }
                            , { field: 'HMaterName', title: '物料名称', width: 150 }
                            , { field: 'HQty', title: '数量', width: 100 }
                        ]]
                        , data: []
                    };
                    table.render(option);
                }
            },
            error: function (err) {
                layer.msg('错误' + err, {
                    icon: 5,
                    time: 20000
                }, function () {
                    //do something
                });
            }
        })
        //已上传列表
            table.render({
                elem: '#yd-table'
WebTM/views/ÁìÁÏ·¢»õ/ÁìÁϳö¿â/Kf_MateOutBill_FastList.html
@@ -120,7 +120,8 @@
        , layer = layui.layer
        , table = layui.table
        , form = layui.form
        , element = layui.element;
            , element = layui.element;
        var option = {};
        //清空界面  new
@@ -160,27 +161,9 @@
        });
        //刷新
        form.on('submit(cmdRefresh)', function () {
            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: 120 }
                    , { field: 'HBillNo', title: '单据号', width: 150 }
                    , { field: 'HMaker', title: '制单人', width: 120 }
                    , { field: 'HMakeDate', title: '制单日期', width: 150 }
                    , { field: 'HQty', title: '数量', width: 100 }
                    , { field: 'HSourceBillNo', title: '源单单号', width: 150 }
                    , { field: 'HRedBlueFlag', title: '红蓝字', width: 120 }
                    , { field: 'HSourceBillType', title: '源单类型', width: 100 }
                ]]
                , height: 500
                , done: function () {
                    layer.closeAll("loading");
                }
            }),
            //动态列-刷新缓存列表
            table.render(option),
                //刷新已上传列表
                table.render({
                    elem: '#yd-table'
                    , url: GetWEBURL() + '/Web/DisBillUpdateLoad_Json'
@@ -328,29 +311,109 @@
            }
        });
        
        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: 120 }
                , { field: 'HBillNo', title: '单据号', width: 150 }
                , { field: 'HMaker', title: '制单人', width: 120 }
                , { field: 'HMakeDate', title: '制单日期', width: 150 }
                , { field: 'HQty', title: '数量', width: 100 }
                , { field: 'HSourceBillNo', title: '源单单号', width: 150 }
                , { field: 'HRedBlueFlag', title: '红蓝字', width: 120 }
                , { field: 'HSourceBillType', title: '源单类型', width: 100 }
            ]]
            , height: 500
            , done: function () {
                layer.closeAll("loading");
        ////缓存列表
        //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: 120 }
        //        , { field: 'HBillNo', title: '单据号', width: 150 }
        //        , { field: 'HMaker', title: '制单人', width: 120 }
        //        , { field: 'HMakeDate', title: '制单日期', width: 150 }
        //        , { field: 'HQty', title: '数量', width: 100 }
        //        , { field: 'HSourceBillNo', title: '源单单号', width: 150 }
        //        , { field: 'HRedBlueFlag', title: '红蓝字', width: 120 }
        //        , { field: 'HSourceBillType', title: '源单类型', width: 100 }
        //    ]]
        //    , height: 500
        //    , done: function () {
        //        layer.closeAll("loading");
        //    }
        //})
        //动态列
        $.ajax({
            url: GetWEBURL() + "/Web/chanpinruk1",
            type: "GET",
            async: false,
            data: { HBillType: sBillType, sHMaker: sessionStorage["HUserName"], HOrgID: sessionStorage["OrganizationID"] },
            //async: false,
            success: function (data1) {
                if (data1.count == 1) {
                    var data = [];
                    var col = [];
                    layer.msg(data1.list[0].ColmCols);
                    //给空的数组赋值
                    for (var key in data1.list) {
                        data.push({ "id": data1.list[key].ColmCols, "name": data1.list[key].ColmCols, "Type": data1.list[key].ColmType });
                    }
                    //在列表左边添加勾选框
                    col.push({ type: 'radio', fixed: 'left' });
                    for (var i = 0; i < data.length; i++) {
                        if ($.inArray(data[i].name, "") > -1) {
                            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 HH:mm:ss')}}</div>", width: 200 });
                                    break;
                                default:
                                    col.push({ field: data[i].id, title: data[i].name, align: 'center', sort: true, width: 200 });
                            }
                        }
                    }
                    option = {
                        elem: '#dj-table'
                        , toolbar: '#toolbarDemo'
                        , height: 500
                        , page: true //开启分页
                        , limit: 50
                        , limits: [50, 500, 5000, 20000]
                        , cols: [col]
                        , data: data1.data
                    };
                    table.render(option);
                } else {
                    option = {
                        elem: '#dj-table'
                        , toolbar: '#toolbarDemo'
                        , height: 500
                        , page: true //开启分页
                        , limit: 50
                        , limits: [50, 500, 5000, 20000]
                        , cols: [[
                            { type: 'radio' }
                            , { field: 'HMakeDate', title: '制单日期', width: 150 }
                            , { field: 'HBillNo', title: '单据号', width: 150 }
                            , { field: 'HMaterName', title: '物料名称', width: 150 }
                            , { field: 'HQty', title: '数量', width: 100 }
                        ]]
                        , data: []
                    };
                    table.render(option);
                }
            },
            error: function (err) {
                layer.msg('错误' + err, {
                    icon: 5,
                    time: 2000
                }, function () {
                    //do something
                });
            }
        })
        //已上传列表
        table.render({
            elem: '#yd-table'
WebTM/views/ÑéÊÕÈë¿â/²úÆ·Èë¿â/Kf_ProductInBill_FastList.html
@@ -138,6 +138,8 @@
                , table = layui.table
                , form = layui.form
                , element = layui.element;
            var option = {}
            //清空界面  new
            var sBillType = '1202'
@@ -214,27 +216,7 @@
                    }
                })
            });
            var option = {
                elem: '#dj-table'
                //, url: GetWEBURL() + '/ProductIn/DisBillEntryList_Json'
                , toolbar: '#toolbarDemo'
                , where: { HBillType: sBillType, sHMaker: sessionStorage["HUserName"], HOrgID: sessionStorage["OrganizationID"] }
                , cols: [[
                    { type: 'radio' }
                    , { field: 'HInterID', title: '单据内码', width: 120 }
                    , { field: 'HBillNo', title: '单据号', width: 150 }
                    , { field: 'HMaker', title: '制单人', width: 120 }
                    , { field: 'HMakeDate', title: '制单日期', width: 150 }
                    , { field: 'HQty', title: '数量', width: 100 }
                    , { field: 'HSourceBillNo', title: '源单单号', width: 150 }
                    , { field: 'HRedBlueFlag', title: '红蓝字', width: 120 }
                    , { field: 'HSourceBillType', title: '源单类型', width: 100 }
                ]]
                , height: 500
                , done: function () {
                    layer.closeAll("loading");
                }
            }
            table.render({
                elem: '#sy-table'
@@ -258,28 +240,34 @@
           
            // url: GetWEBURL() + '/Web/chanpinruk',
            form.on('submit(cmdRefresh)', function () {//刷新
                table.render({
                    elem: '#dj-table'
                    , url: GetWEBURL() + '/Web/chanpinruk'
                    , toolbar: '#toolbarDemo'
                    , defaultToolbar: []
                    , where: { HBillType: sBillType, sHMaker: sessionStorage["HUserName"], HOrgID: sessionStorage["OrganizationID"] }
                    , cols: [[
                        { type: 'radio' }
                        , { field: 'HInterID', title: '单据内码', width: 120 }
                        , { field: 'HBillNo', title: '单据号', width: 150 }
                        , { field: 'HMaker', title: '制单人', width: 120 }
                        , { field: 'HMakeDate', title: '制单日期', width: 150 }
                        , { field: 'HQty', title: '数量', width: 100 }
                        , { field: 'HSourceBillNo', title: '源单单号', width: 150 }
                        , { field: 'HRedBlueFlag', title: '红蓝字', width: 120 }
                        , { field: 'HSourceBillType', title: '源单类型', width: 100 }
                    ]]
                    , height: 500
                    , done: function () {
                        layer.closeAll("loading");
                    }
                }),
                ////刷新缓存列表的渲染
                //table.render({
                //    elem: '#dj-table'
                //    , url: GetWEBURL() + '/Web/chanpinruk'
                //    , toolbar: '#toolbarDemo'
                //    , defaultToolbar: []
                //    , where: { HBillType: sBillType, sHMaker: sessionStorage["HUserName"], HOrgID: sessionStorage["OrganizationID"] }
                //    , cols: [[
                //        { type: 'radio' }
                //        , { field: 'HInterID', title: '单据内码', width: 120 }
                //        , { field: 'HBillNo', title: '单据号', width: 150 }
                //        , { field: 'HMaker', title: '制单人', width: 120 }
                //        , { field: 'HMakeDate', title: '制单日期', width: 150 }
                //        , { field: 'HQty', title: '数量', width: 100 }
                //        , { field: 'HSourceBillNo', title: '源单单号', width: 150 }
                //        , { field: 'HRedBlueFlag', title: '红蓝字', width: 120 }
                //        , { field: 'HSourceBillType', title: '源单类型', width: 100 }
                //    ]]
                //    , height: 500
                //    , done: function () {
                //        layer.closeAll("loading");
                //    }
                //}),
                //动态列表-刷新缓存列表
                table.render(option);
                //刷新已上传列表
                    table.render({
                        elem: '#yd-table'
                        , url: GetWEBURL() + '/Web/DisBillUpdateLoad_Json'
@@ -475,30 +463,106 @@
                })
            });
            ////缓存列表
            //table.render({
            //    elem: '#dj-table'
            //    , url: GetWEBURL() + '/Web/chanpinruk'
            //    , toolbar: '#toolbarDemo'
            //    , defaultToolbar: []
            //    , where: { HBillType: sBillType, sHMaker: sessionStorage["HUserName"], HOrgID: sessionStorage["OrganizationID"] }
            //    , cols: [[
            //        { type: 'radio' }
            //        , { field: 'HInterID', title: '单据内码', width: 120 }
            //        , { field: 'HBillNo', title: '单据号', width: 150 }
            //        , { field: 'HMaker', title: '制单人', width: 120 }
            //        , { field: 'HMakeDate', title: '制单日期', width: 150 }
            //        , { field: 'HQty', title: '数量', width: 100 }
            //        , { field: 'HSourceBillNo', title: '源单单号', width: 150 }
            //        , { field: 'HRedBlueFlag', title: '红蓝字', width: 120 }
            //        , { field: 'HSourceBillType', title: '源单类型', width: 100 }
            //    ]]
            //    , height: 500
            //    , done: function () {
            //        layer.closeAll("loading");
            //    }
            //})
            table.render({
                elem: '#dj-table'
                , url: GetWEBURL() + '/Web/chanpinruk'
                , toolbar: '#toolbarDemo'
                , defaultToolbar: []
                , where: { HBillType: sBillType, sHMaker: sessionStorage["HUserName"], HOrgID: sessionStorage["OrganizationID"] }
                , cols: [[
                    { type: 'radio' }
                    , { field: 'HInterID', title: '单据内码', width: 120 }
                    , { field: 'HBillNo', title: '单据号', width: 150 }
                    , { field: 'HMaker', title: '制单人', width: 120 }
                    , { field: 'HMakeDate', title: '制单日期', width: 150 }
                    , { field: 'HQty', title: '数量', width: 100 }
                    , { field: 'HSourceBillNo', title: '源单单号', width: 150 }
                    , { field: 'HRedBlueFlag', title: '红蓝字', width: 120 }
                    , { field: 'HSourceBillType', title: '源单类型', width: 100 }
                ]]
                , height: 500
                , done: function () {
                    layer.closeAll("loading");
            //动态列-缓存列表
            $.ajax({
                url: GetWEBURL() + "/Web/chanpinruk1",
                type: "GET",
                async: false,
                data: { HBillType: sBillType, sHMaker: sessionStorage["HUserName"], HOrgID: sessionStorage["OrganizationID"] },
                //async: false,
                success: function (data1) {
                    if (data1.count == 1) {
                        var data = [];
                        var col = [];
                        //给空的数组赋值
                        for (var key in data1.list) {
                            data.push({ "id": data1.list[key].ColmCols, "name": data1.list[key].ColmCols, "Type": data1.list[key].ColmType });
                        }
                        //在列表左边添加勾选框
                        col.push({ type: 'radio', fixed: 'left' });
                        for (var i = 0; i < data.length; i++) {
                            if ($.inArray(data[i].name, "") > -1) {
                                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 HH:mm:ss')}}</div>", width: 200 });
                                        break;
                                    default:
                                        col.push({ field: data[i].id, title: data[i].name, align: 'center', sort: true, width: 200 });
                                }
                            }
                        }
                        option = {
                            elem: '#dj-table'
                            , toolbar: '#toolbarDemo'
                            , height: 500
                            , page: true //开启分页
                            , limit: 50
                            , limits: [50, 500, 5000, 20000]
                            , cols: [col]
                            , data: data1.data
                        };
                        table.render(option);
                    } else {
                        option = {
                            elem: '#dj-table'
                            , toolbar: '#toolbarDemo'
                            , height: 500
                            , page: true //开启分页
                            , limit: 50
                            , limits: [50, 500, 5000, 20000]
                            , cols: [[
                                { type: 'radio' }
                                , { field: 'HMakeDate', title: '制单日期', width: 150 }
                                , { field: 'HBillNo', title: '单据号', width: 150 }
                                , { field: 'HMaterName', title: '物料名称', width: 150 }
                                , { field: 'HQty', title: '数量', width: 100 }
                            ]]
                            , data: []
                        };
                        table.render(option);
                    }
                },
                error: function (err) {
                    layer.msg('错误' + err, {
                        icon: 5,
                        time: 20000
                    }, function () {
                        //do something
                    });
                }
            })
            //已上传列表
            table.render({
WebTM/views/ÑéÊÕÈë¿â/ÆäËûÈë¿â/Kf_OtherInBill_FastList.html
@@ -125,6 +125,7 @@
        var sBillType = '1203';
        var col = [];
        var option = {}
        //动态加载源单类型列表 new
        //加载源单类型
@@ -132,29 +133,7 @@
        //初始化界面
        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(option);
            //已上传列表
            table.render({
                elem: '#yd-table'
@@ -276,7 +255,7 @@
                    error: function (err) {
                        layer.msg('错误' + err, {
                            icon: 5,
                            time: 20000
                            time: 2000
                        }, function () {
                            //do something
                        });
@@ -414,8 +393,7 @@
                            }
                        }
                        //动态显示列名
                        table.render({
                        option = {
                            elem: '#dj-table'
                            , cols: [col]
                            , data: data1.data
@@ -424,7 +402,10 @@
                            , cellMinWidth: 90
                            , limit: 50
                            , limits: [50, 500, 5000, 20000]
                        });
                        };
                        //动态显示列名
                        table.render(option);
                        layer.close(ajaxLoad);
                        //layer.alert("查询成功", { icon: 1 });
@@ -438,7 +419,7 @@
                }
            });
        }
        //刷新明细页签
        table.render({
            elem: '#mx-table'
WebTM/views/ÑéÊÕÈë¿â/Í⹺Èë¿â/Kf_POStockInBill_FastList.html
@@ -123,6 +123,7 @@
                , form = layui.form
                , element = layui.element;
            var sBillType = '1201'
            var option = {};
            //清空界面  new
            //动态加载源单类型列表 new
@@ -162,27 +163,8 @@
            //刷新
            form.on('submit(cmdRefresh)', function () {//
                var sBillType = '1201'
                table.render({
                    elem: '#dj-table'
                    , url: GetWEBURL() + '/Web/DisBillEntryList_Mate_Webs_Json'
                    , toolbar: '#toolbarDemo'
                    , where: { HBillType: sBillType, sWhere: '' }
                    , cols: [[
                        { type: 'radio' }
                        , { field: 'HInterID', title: '单据内码', width: 120 }
                        , { field: 'HBillNo', title: '单据号', width: 150 }
                        , { field: 'HMaker', title: '制单人', width: 120 }
                        , { field: 'HMakeDate', title: '制单日期', width: 150 }
                        , { field: 'HQty', title: '数量', width: 100 }
                        , { field: 'HSourceBillNo', title: '源单单号', width: 150 }
                        , { field: 'HRedBlueFlag', title: '红蓝字', width: 120 }
                        , { field: 'HSourceBillType', title: '源单类型', width: 100 }
                    ]]
                    , height: 500
                    , done: function () {
                        layer.closeAll("loading");
                    }
                });
                //动态列-刷新缓存列表
                table.render(option);
                table.render({
                    elem: '#yd-table'
                    , url: GetWEBURL() + '/Web/DisBillUpdateLoad_Json'
@@ -329,29 +311,108 @@
                });
            });
            ////缓存列表
            //table.render({
            //    elem: '#dj-table'
            //    , url: GetWEBURL() + '/Web/DisBillEntryList_Mate_Webs_Json'
            //    , toolbar: '#toolbarDemo'
            //    , where: { HBillType: sBillType, sHMaker: sessionStorage["HUserName"], HOrgID: sessionStorage["OrganizationID"] }
            //    , cols: [[
            //        { type: 'radio' }
            //        , { field: 'HInterID', title: '单据内码', width: 120 }
            //        , { field: 'HBillNo', title: '单据号', width: 150 }
            //        , { field: 'HMaker', title: '制单人', width: 120 }
            //        , { field: 'HMakeDate', title: '制单日期', width: 150 }
            //        , { field: 'HQty', title: '数量', width: 100 }
            //        , { field: 'HSourceBillNo', title: '源单单号', width: 150 }
            //        , { field: 'HRedBlueFlag', title: '红蓝字', width: 120 }
            //        , { field: 'HSourceBillType', title: '源单类型', width: 100 }
            //    ]]
            //    , height: 500
            //    , done: function () {
            //        layer.closeAll("loading");
            //    }
            //})
            //缓存列表
            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: 120 }
                    , { field: 'HBillNo', title: '单据号', width: 150 }
                    , { field: 'HMaker', title: '制单人', width: 120 }
                    , { field: 'HMakeDate', title: '制单日期', width: 150 }
                    , { field: 'HQty', title: '数量', width: 100 }
                    , { field: 'HSourceBillNo', title: '源单单号', width: 150 }
                    , { field: 'HRedBlueFlag', title: '红蓝字', width: 120 }
                    , { field: 'HSourceBillType', title: '源单类型', width: 100 }
                ]]
                , height: 500
                , done: function () {
                    layer.closeAll("loading");
            //动态列-缓存列表
            $.ajax({
                url: GetWEBURL() + "/Web/DisBillEntryList_Mate_Webs_Json",
                type: "GET",
                async: false,
                data: { HBillType: sBillType, sWhere: '' },
                //async: false,
                success: function (data1) {
                    if (data1.count == 1) {
                        var data = [];
                        var col = [];
                        //给空的数组赋值
                        for (var key in data1.list) {
                            data.push({ "id": data1.list[key].ColmCols, "name": data1.list[key].ColmCols, "Type": data1.list[key].ColmType });
                        }
                        //在列表左边添加勾选框
                        col.push({ type: 'radio', fixed: 'left' });
                        for (var i = 0; i < data.length; i++) {
                            if ($.inArray(data[i].name, "") > -1) {
                                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 HH:mm:ss')}}</div>", width: 200 });
                                        break;
                                    default:
                                        col.push({ field: data[i].id, title: data[i].name, align: 'center', sort: true, width: 200 });
                                }
                            }
                        }
                        option = {
                            elem: '#dj-table'
                            , toolbar: '#toolbarDemo'
                            , height: 500
                            , page: true //开启分页
                            , limit: 50
                            , limits: [50, 500, 5000, 20000]
                            , cols: [col]
                            , data: data1.data
                        };
                        table.render(option);
                    } else {
                        option = {
                            elem: '#dj-table'
                            , toolbar: '#toolbarDemo'
                            , height: 500
                            , page: true //开启分页
                            , limit: 50
                            , limits: [50, 500, 5000, 20000]
                            , cols: [[
                                { type: 'radio' }
                                , { field: 'HMakeDate', title: '制单日期', width: 150 }
                                , { field: 'HBillNo', title: '单据号', width: 150 }
                                , { field: 'HMaterName', title: '物料名称', width: 150 }
                                , { field: 'HQty', title: '数量', width: 100 }
                            ]]
                            , data: []
                        };
                        table.render(option);
                    }
                },
                error: function (err) {
                    layer.msg('错误' + err, {
                        icon: 5,
                        time: 20000
                    }, function () {
                        //do something
                    });
                }
            })
            //已上传列表
            table.render({
                elem: '#yd-table'
WebTM/views/ÑéÊÕÈë¿â/ίÍâÈë¿â/Kf_EntrustInBill_FastList.html
@@ -120,7 +120,8 @@
        , layer = layui.layer
        , table = layui.table
        , form = layui.form
        , element = layui.element;
            , element = layui.element;
        var option = {};
        //清空界面  new
        var sBillType = '1210'
        //动态加载源单类型列表 new
@@ -160,27 +161,7 @@
        });
         //刷新
        form.on('submit(cmdRefresh)', function () {//
            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: 120 }
                    , { field: 'HBillNo', title: '单据号', width: 150 }
                    , { field: 'HMaker', title: '制单人', width: 120 }
                    , { field: 'HMakeDate', title: '制单日期', width: 150 }
                    , { field: 'HQty', title: '数量', width: 100 }
                    , { field: 'HSourceBillNo', title: '源单单号', width: 150 }
                    , { field: 'HRedBlueFlag', title: '红蓝字', width: 120 }
                    , { field: 'HSourceBillType', title: '源单类型', width: 100 }
                ]]
                , height: 500
                , done: function () {
                    layer.closeAll("loading");
                }
            }),
            table.render(option);
                table.render({
                    elem: '#yd-table'
                    , url: GetWEBURL() + '/Web/DisBillUpdateLoad_Json'
@@ -322,29 +303,109 @@
        
        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: 120 }
                , { field: 'HBillNo', title: '单据号', width: 150 }
                , { field: 'HMaker', title: '制单人', width: 120 }
                , { field: 'HMakeDate', title: '制单日期', width: 150 }
                , { field: 'HQty', title: '数量', width: 100 }
                , { field: 'HSourceBillNo', title: '源单单号', width: 150 }
                , { field: 'HRedBlueFlag', title: '红蓝字', width: 120 }
                , { field: 'HSourceBillType', title: '源单类型', width: 100 }
            ]]
            , height: 500
            , done: function () {
                layer.closeAll("loading");
        //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: 120 }
        //        , { field: 'HBillNo', title: '单据号', width: 150 }
        //        , { field: 'HMaker', title: '制单人', width: 120 }
        //        , { field: 'HMakeDate', title: '制单日期', width: 150 }
        //        , { field: 'HQty', title: '数量', width: 100 }
        //        , { field: 'HSourceBillNo', title: '源单单号', width: 150 }
        //        , { field: 'HRedBlueFlag', title: '红蓝字', width: 120 }
        //        , { field: 'HSourceBillType', title: '源单类型', width: 100 }
        //    ]]
        //    , height: 500
        //    , done: function () {
        //        layer.closeAll("loading");
        //    }
        //})
        //动态列
        $.ajax({
            url: GetWEBURL() + "/Web/chanpinruk1",
            type: "GET",
            async: false,
            data: { HBillType: sBillType, sHMaker: sessionStorage["HUserName"], HOrgID: sessionStorage["OrganizationID"] },
            //async: false,
            success: function (data1) {
                if (data1.count == 1) {
                    var data = [];
                    var col = [];
                    //给空的数组赋值
                    for (var key in data1.list) {
                        data.push({ "id": data1.list[key].ColmCols, "name": data1.list[key].ColmCols, "Type": data1.list[key].ColmType });
                    }
                    //在列表左边添加勾选框
                    col.push({ type: 'radio', fixed: 'left' });
                    for (var i = 0; i < data.length; i++) {
                        if ($.inArray(data[i].name, "") > -1) {
                            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 HH:mm:ss')}}</div>", width: 200 });
                                    break;
                                default:
                                    col.push({ field: data[i].id, title: data[i].name, align: 'center', sort: true, width: 200 });
                            }
                        }
                    }
                    option = {
                        elem: '#dj-table'
                        , toolbar: '#toolbarDemo'
                        , height: 500
                        , page: true //开启分页
                        , limit: 50
                        , limits: [50, 500, 5000, 20000]
                        , cols: [col]
                        , data: data1.data
                    };
                    table.render(option);
                } else {
                    option = {
                        elem: '#dj-table'
                        , toolbar: '#toolbarDemo'
                        , height: 500
                        , page: true //开启分页
                        , limit: 50
                        , limits: [50, 500, 5000, 20000]
                        , cols: [[
                            { type: 'radio' }
                            , { field: 'HMakeDate', title: '制单日期', width: 150 }
                            , { field: 'HBillNo', title: '单据号', width: 150 }
                            , { field: 'HMaterName', title: '物料名称', width: 150 }
                            , { field: 'HQty', title: '数量', width: 100 }
                        ]]
                        , data: []
                    };
                    table.render(option);
                }
            },
            error: function (err) {
                layer.msg('错误' + err, {
                    icon: 5,
                    time: 20000
                }, function () {
                    //do something
                });
            }
        })
        //已上传列表
        table.render({
            elem: '#yd-table'