yusijie
2022-12-02 75cce3dc8870bceaaf4ec141898fa818db826bee
WebTM/views/Baseset/»ù´¡×ÊÁÏ/Sc_ProcessPlanViewList.html
@@ -29,7 +29,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>
@@ -41,28 +41,36 @@
            , 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')
                //var sMainStr = JSON.stringify(table.cache['mainTable']);
                var checkStatus = table.checkStatus('mainTable')
                 , data = checkStatus.data;
                parent.GetHUnitNameValue(data);
                parent.GetHPlanValue(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: 'HItemID', width: 150, title: '单位ID', hide: true }
                , { field: 'HNumber', width: 150, title: '计量单位代码' }
                , { field: 'HName', width: 150, title: '计量单位', sort: true }
                  , { field: 'hmainid', width: 150, title: 'hmainid', hide: true, sort: true }
                  , { field: 'hsubid', width: 150, title: 'hsubid', hide: true }
                  , { field: '单据号', width: 150, title: '单据号' }
                  , { field: 'HMaterID', width: 150, title: 'HMaterID', hide: true }
                  , { field: '物料代码', width: 150, title: '物料代码' }
                  , { field: '物料名称', width: 150, title: '物料名称' }
                  , { field: 'HCenterID', width: 150, title: 'HCenterID', hide: true }
                  , { field: '工作中心', width: 150, title: '工作中心' }
                  , { field: '规格型号', width: 150, title: '规格型号' }
                  , { field: '计划数量', width: 150, title: '计划数量' }
              ]]
              , page: true
            });
@@ -75,13 +83,13 @@
                $.ajax({
                    type: "get",
                    //url: "http://61.130.49.162:9090/WMSAPI///Web/GetDepartmentList_Json",
                    url: GetWEBURL() + "/Web/GetUnitList_Json",
                    url: GetWEBURL() + "/Web/GetPlanList_Json",
                    async: true,
                    data: { "Unit": Value },
                    data: { "Billno": Value },
                    //data: { "Value": Value },
                    success: function (result) {
                        ajaxReturnData = JSON.parse(JSON.stringify(result)).data;
                        table.reload('ck-table', {
                        table.reload('mainTable', {
                            data: ajaxReturnData
                            , height: 'full-10'
                            , loading: false