chenhaozhe
2025-05-21 e50265de5ae4e5e4c8b8852e777216adab7c4ce4
WebTM/views/¹«¹²Ò³Ãæ/Kf_SourceBillEditDlg_PDA.html
@@ -229,15 +229,16 @@
            //#region æ˜¾ç¤ºç‰©æ–™åˆ—表信息
            function DisBillEntryList() {
                layer.load(3)
                $.ajax({
                    type: "GET",
                    url: GetWEBURL() + '/WEBSController/GetSourceBillList_Json',
                    async: true,    //async用于控制(false)同步和(true)异步,默认的是true,即请求默认的是异步请求
                    data: { "HBillType": HBillType, "HSourceBillType": HSourceBillType, "HStockOrgID": HStockOrgID, "HSourceBillNo": HSourceBillNo, "HMater": HMater, "HCustom": HCustom },
                    success: function (result) {
                        var data = [];
                        var col = [];
                        if (result.count == 1) { // è¯´æ˜ŽéªŒè¯æˆåŠŸäº†ï¼Œ
                            var data = [];
                            var col = [];
                            //给空的数组赋值
                            for (var key in result.list) {
                                //动态获取列表所有列名
@@ -273,9 +274,15 @@
                            table.render(listOption);
                        }
                        else {
                            listOption.cols = [columns];
                            listOption.data = result.data;
                            table.cache['dj-table'] = null;         //清空表格缓存数据
                            listOption.cols = [[
                                { field: '日期', title: '日期', width: 100 }
                                , { field: '单据号', title: '单据号', width: 100 }
                                , { field: '物料代码', title: '物料代码', width: 100 }
                                , { field: '物料名称', title: '物料名称', width: 100 }
                                , { field: '规格型号', title: '规格型号', width: 100 }
                                , { field: '数量', title: '数量', width: 100 }
                            ]];
                            listOption.data = data;
                            table.render(listOption);
                            //layer.msg(result.Message);
                            //layer.msg(result.Message, { icon: 5, btn: ['确认'], time: 100000, offset: 't', skin: 'layui-layer-lan', title: "温馨提示" });
@@ -283,6 +290,7 @@
                    },
                    complete: function (XHR, TS) { XHR = null }//回收资源
                });
                layer.closeAll("loading");
            }
            //#endregion