layui.define(['form', 'table'], function (exports) { form = layui.form , table = layui.table; var where = ""; ///加载显示数据 RoadHBillNo = function (sqlWhere) { where = sqlWhere; $.ajax({ type: "get", url: "http://localhost:8083/Web/GetSup_PODemandPlanBilList", async: true, data: "{'msg':'',{'NowPage':'1',{'OnePage':'10',{'sqlWhere':'" + sqlWhere + "'}", success: function (result) { ajaxReturnData = JSON.parse(JSON.stringify(result)).data; table.reload('test-table-reload', { data: ajaxReturnData , height: 'full-10' , loading: false , done: function (index, res) { } }); }, error: function (result) { console.log(result); //layer.msg('获取采购订单出现异常', { icon: 2, time: 2000 }); } }); } ///加载标签记录 RoadLabelPrint = function (sqlWhere) { where = sqlWhere; $.ajax({ type: "get", url: "http://127.0.0.1:8081/LCFlatForm/GetLabelPrintDetail", async: true, data: { "sqlWhere": sqlWhere }, success: function (result) { ajaxReturnData = JSON.parse(JSON.stringify(result)).data; table.reload('LabelPrintList', { data: ajaxReturnData , height: 'full-10' , loading: false , done: function (index, res) { } }); }, error: function (result) { console.log(result); //layer.msg('获取采购订单出现异常', { icon: 2, time: 2000 }); } }); } });