wtt
2026-02-03 7cb06e1b369e7d79b314a8a3573b215aa078c4c5
WebTM/views/Baseset/»ù´¡×ÊÁÏ/Sc_ICMOBillListView.html
@@ -28,7 +28,7 @@
            </div>
        </div>
    </div>
    <table class="layui-hide" id="ck-table"></table>
    <table class="layui-hide" id="mainTable"></table>
    <script src="../../../layuiadmin/layui/layui.js"></script>
    <script src="../../../layuiadmin/Scripts/json2.js" type="text/javascript"></script>
    <script src="../../../layuiadmin/Scripts/jquery-1.4.1.js" type="text/javascript"></script>
@@ -37,94 +37,96 @@
        //引用的单据及模块:工序流转卡。
        layui.use(['table', 'form', 'layer'], function () {
            var table = layui.table
            , form = layui.form
            , layer = layui.layer;
                , form = layui.form
                , layer = layui.layer;
            form.on('submit(HQuery)', function () {//选择单位
                //var sMainStr = JSON.stringify(table.cache['ck-table']);
                //var sMainStr = JSON.stringify(table.cache['mainTable']);
                RoadQuery($('#Value').val());
            });
            form.on('submit(FH)', function () {//选择单位
                //var sMainStr = JSON.stringify(table.cache['ck-table']);
                var checkStatus = table.checkStatus('ck-table')
                 , data = checkStatus.data;
                //var sMainStr = JSON.stringify(table.cache['mainTable']);
                var checkStatus = table.checkStatus('mainTable')
                    , data = checkStatus.data;
                parent.GetICMOBillValue(data);
                var index = parent.layer.getFrameIndex(window.name);
                parent.layer.close(index);
            });
            RoadQuery($('#Value').val());
            table.render({
                elem: '#ck-table'
                elem: '#mainTable'
                // , url: '/demo/table/user/'
               , data: []
              , cellMinWidth: 80 //全局定义常规单元格的最小宽度,layui 2.2.1 æ–°å¢ž
              , cols: [[
                  { type: 'radio' }
                  , { field: 'hmainid', width: 150, title: 'hmainid', hide: true }
                  , { field: 'HEntryID', width: 150, title: 'HEntryID', hide: true }
                  , { field: 'HEmpID', width: 150, title: 'HEmpID', hide: true }
                  , { field: 'HBomID', width: 150, title: 'HBomID', hide: true }
                  , { field: 'HRoutingInterID', width: 150, title: 'HRoutingInterID', hide: true }
                  , { field: 'hsubid', width: 150, title: 'hsubid', hide: true }
                  , { field: 'HMaterID', width: 150, title: 'HMaterID', hide: true }
                  , { field: 'HUnitID', width: 150, title: 'HUnitID', hide: true }
                  , { field: 'HAuxPropID', width: 150, title: 'HAuxPropID', hide: true }
                  , { field: 'HDeptID', width: 150, title: 'HDeptID', hide: true }
                  , { field: 'HEntryCusID', width: 150, title: 'HEntryCusID', hide: true }
                  , { field: 'HCenterID', width: 150, title: 'HCenterID', hide: true }
                  , { field: '日期', width: 150, title: '日期' }
                  , { field: '单据号', width: 150, title: '单据号' }
                  , { field: '订单跟踪号', width: 150, title: '订单跟踪号' }
                  , { field: '单据类型', width: 150, title: '单据类型' }
                  , { field: '状态', width: 150, title: '状态' }
                  , { field: '业务员代码', width: 150, title: '业务员代码' }
                  , { field: '业务员', width: 150, title: '业务员' }
                  , { field: 'BOM单编码', width: 150, title: 'BOM单编码' }
                  , { field: '工艺路线代码', width: 150, title: '工艺路线代码' }
                  , { field: '工艺路线', width: 150, title: '工艺路线' }
                  , { field: '齐套数量', width: 150, title: '齐套数量' }
                  , { field: '计划生产数量', width: 150, title: '计划生产数量' }
                  , { field: '表头备注', width: 150, title: '表头备注' }
                  , { field: '产品代码', width: 150, title: '产品代码' }
                  , { field: '产品名称', width: 150, title: '产品名称' }
                  , { field: '规格型号', width: 150, title: '规格型号' }
                  , { field: '计量单位代码', width: 150, title: '计量单位代码' }
                  , { field: '计量单位', width: 150, title: '计量单位' }
                  , { field: '辅助属性', width: 150, title: '辅助属性' }
                  , { field: '批号', width: 150, title: '批号' }
                  , { field: '生产任务单数量', width: 150, title: '生产任务单数量' }
                  , { field: '入库数量', width: 150, title: '入库数量' }
                  , { field: '生产车间代码', width: 150, title: '生产车间代码' }
                  , { field: '生产车间', width: 150, title: '生产车间' }
                  , { field: '客户代码', width: 150, title: '客户代码' }
                  , { field: '客户', width: 150, title: '客户' }
                  , { field: '客户型号', width: 150, title: '客户型号' }
                  , { field: '工作中心代码', width: 150, title: '工作中心代码' }
                  , { field: '工作中心', width: 150, title: '工作中心' }
                  , { field: '计划跟踪号', width: 150, title: '计划跟踪号' }
                  , { field: '计划开工日期', width: 150, title: '计划开工日期' }
                  , { field: '计划完工日期', width: 150, title: '计划完工日期' }
                  , { field: '最迟开工日期', width: 150, title: '最迟开工日期' }
                  , { field: '最迟完工日期', width: 150, title: '最迟完工日期' }
                  , { field: '关联数量', width: 150, title: '关联数量' }
                  , { field: '源单单号', width: 150, title: '源单单号' }
                  , { field: '源单主内码', width: 150, title: '源单主内码' }
                  , { field: '源单子内码', width: 150, title: '源单子内码' }
                  , { field: '未关联数量', width: 150, title: '未关联数量' }
                  , { field: '制单人', width: 150, title: '制单人' }
                  , { field: '制单日期', width: 150, title: '制单日期' }
                  , { field: '审核人', width: 150, title: '审核人' }
                  , { field: '审核日期', width: 150, title: '审核日期' }
                  , { field: '修改人', width: 150, title: '修改人' }
                  , { field: '修改日期', width: 150, title: '修改日期' }
                  , { field: '关闭人', width: 150, title: '关闭人' }
                  , { field: '关闭日期', width: 150, title: '关闭日期' }
                  , { field: '作废人', width: 150, title: '作废人' }
                  , { field: '作废日期', width: 150, title: '作废日期' }
                  , { field: '行关闭人', width: 150, title: '行关闭人' }
                  , { field: '关闭类型', width: 150, title: '关闭类型' }
              ]]
              , page: true
                , data: []
                , cellMinWidth: 80 //全局定义常规单元格的最小宽度,layui 2.2.1 æ–°å¢ž
                , cols: [[
                    { type: 'radio' }
                    , { field: 'hmainid', width: 150, title: 'hmainid', hide: true }
                    , { field: 'HEntryID', width: 150, title: 'HEntryID', hide: true }
                    , { field: 'HEmpID', width: 150, title: 'HEmpID', hide: true }
                    , { field: 'HBomID', width: 150, title: 'HBomID', hide: true }
                    , { field: 'HRoutingInterID', width: 150, title: 'HRoutingInterID', hide: true }
                    , { field: 'hsubid', width: 150, title: 'hsubid', hide: true }
                    , { field: 'HMaterID', width: 150, title: 'HMaterID', hide: true }
                    , { field: 'HUnitID', width: 150, title: 'HUnitID', hide: true }
                    , { field: 'HAuxPropID', width: 150, title: 'HAuxPropID', hide: true }
                    , { field: 'HDeptID', width: 150, title: 'HDeptID', hide: true }
                    , { field: 'HEntryCusID', width: 150, title: 'HEntryCusID', hide: true }
                    , { field: 'HCenterID', width: 150, title: 'HCenterID', hide: true }
                    , { field: '日期', width: 150, title: '日期' }
                    , { field: '单据号', width: 150, title: '单据号' }
                    , { field: '订单跟踪号', width: 150, title: '订单跟踪号' }
                    , { field: '单据类型', width: 150, title: '单据类型' }
                    , { field: '状态', width: 150, title: '状态' }
                    , { field: '业务员代码', width: 150, title: '业务员代码' }
                    , { field: '业务员', width: 150, title: '业务员' }
                    , { field: 'BOM单编码', width: 150, title: 'BOM单编码' }
                    , { field: '工艺路线代码', width: 150, title: '工艺路线代码' }
                    , { field: '工艺路线', width: 150, title: '工艺路线' }
                    , { field: '齐套数量', width: 150, title: '齐套数量' }
                    , { field: '计划生产数量', width: 150, title: '计划生产数量' }
                    , { field: '表头备注', width: 150, title: '表头备注' }
                    , { field: '产品代码', width: 150, title: '产品代码' }
                    , { field: '产品名称', width: 150, title: '产品名称' }
                    , { field: '规格型号', width: 150, title: '规格型号' }
                    , { field: '计量单位代码', width: 150, title: '计量单位代码' }
                    , { field: '计量单位', width: 150, title: '计量单位' }
                    , { field: '辅助属性', width: 150, title: '辅助属性' }
                    , { field: '批号', width: 150, title: '批号' }
                    , { field: '生产任务单数量', width: 150, title: '生产任务单数量' }
                    , { field: '入库数量', width: 150, title: '入库数量' }
                    , { field: '生产车间代码', width: 150, title: '生产车间代码' }
                    , { field: '生产车间', width: 150, title: '生产车间' }
                    , { field: '客户代码', width: 150, title: '客户代码' }
                    , { field: '客户', width: 150, title: '客户' }
                    , { field: '客户型号', width: 150, title: '客户型号' }
                    , { field: '工作中心代码', width: 150, title: '工作中心代码' }
                    , { field: '工作中心', width: 150, title: '工作中心' }
                    , { field: '计划跟踪号', width: 150, title: '计划跟踪号' }
                    , { field: '计划开工日期', width: 150, title: '计划开工日期' }
                    , { field: '计划完工日期', width: 150, title: '计划完工日期' }
                    , { field: '最迟开工日期', width: 150, title: '最迟开工日期' }
                    , { field: '最迟完工日期', width: 150, title: '最迟完工日期' }
                    , { field: '关联数量', width: 150, title: '关联数量' }
                    , { field: '源单单号', width: 150, title: '源单单号' }
                    , { field: '源单主内码', width: 150, title: '源单主内码' }
                    , { field: '源单子内码', width: 150, title: '源单子内码' }
                    , { field: '未关联数量', width: 150, title: '未关联数量' }
                    , { field: '制单人', width: 150, title: '制单人' }
                    , { field: '制单日期', width: 150, title: '制单日期' }
                    , { field: '审核人', width: 150, title: '审核人' }
                    , { field: '审核日期', width: 150, title: '审核日期' }
                    , { field: '修改人', width: 150, title: '修改人' }
                    , { field: '修改日期', width: 150, title: '修改日期' }
                    , { field: '关闭人', width: 150, title: '关闭人' }
                    , { field: '关闭日期', width: 150, title: '关闭日期' }
                    , { field: '作废人', width: 150, title: '作废人' }
                    , { field: '作废日期', width: 150, title: '作废日期' }
                    , { field: '行关闭人', width: 150, title: '行关闭人' }
                    , { field: '关闭类型', width: 150, title: '关闭类型' }
                ]]
                , page: true
                , limits: [50, 500, 5000, 50000]
                , limit: 50
            });
            ///加载显示数据
            function RoadQuery(Where) {
@@ -142,7 +144,7 @@
                    success: function (result) {
                        if (result.count == 1) {
                            ajaxReturnData = JSON.parse(JSON.stringify(result)).data;
                            table.reload('ck-table', {
                            table.reload('mainTable', {
                                data: ajaxReturnData
                                , height: 'full-10'
                                , loading: false