| | |
| | | <script src="../../../layuiadmin/HideButton.js"></script> |
| | | <script src="../../../layuiadmin/soulTable.slim.js"></script> |
| | | <script src="../../../layuiadmin/PageTitle.js"></script> |
| | | <script src="../../../layuiadmin/SetColumn.js"></script> |
| | | <style type="text/css"> |
| | | input.layui-input.layui-unselect { |
| | | padding-right: 0; |
| | |
| | | //æ¥è¯¢æ¡ä»¶ |
| | | var sWhere = ""; |
| | | var option = []; |
| | | var page = 1;//åé¡µæ°æ® |
| | | var size = 50; |
| | | |
| | | var HModName = "Xs_SeOutStockBill"; |
| | | var HBillType = "1402"; |
| | |
| | | //æ¸
ç©ºè¿æ»¤æ¡ä»¶ |
| | | set_ClearQuery(); |
| | | |
| | | if (page != 1) { |
| | | $("#page a:eq(1)").get(0).click();//ç¹å»å页æ 第ä¸é¡µ |
| | | } else { |
| | | get_FastQuery(table, option); |
| | | } |
| | | optionPage.curr = 1; |
| | | get_FastQuery(table, option); |
| | | |
| | | }); |
| | | //#endregion |
| | | |
| | | //#region æ¥è¯¢æé® |
| | | form.on('submit(btnSearch)', function (data) { |
| | | if (page != 1) { |
| | | $("#page a:eq(1)").get(0).click();//ç¹å»å页æ 第ä¸é¡µ |
| | | } else { |
| | | get_FastQuery(table, option); |
| | | } |
| | | optionPage.curr = 1; |
| | | get_FastQuery(table, option); |
| | | |
| | | }); |
| | | //#endregion |
| | | |
| | |
| | | $("#HEndDate").val(Format(new Date(), "yyyy-MM-dd")); |
| | | //åå§åè¡¨æ ¼ |
| | | set_InitGrid(); |
| | | //åå§åé¡µå¤§å° |
| | | DisPlay_HideColumn_GetPageSize(HModName, sessionStorage["HUserName"], optionPage); |
| | | //æ¥è¯¢ |
| | | get_FastQuery(table, option); |
| | | DisPlay_HideColumn(); |
| | |
| | | if (!first) { |
| | | //do something |
| | | console.log(obj) |
| | | page = obj.curr; |
| | | size = obj.limit; |
| | | get_FastQuery(table, option); |
| | | } |
| | | } |
| | |
| | | url: GetWEBURL() + '/Xs_SeOutStockBill/list_byPage', |
| | | type: "GET", |
| | | async: false, |
| | | data: { "sWhere": sWhere, "user": sessionStorage["HUserName"], "Organization": Organization, "page": page, "size": size }, |
| | | data: { "sWhere": sWhere, "user": sessionStorage["HUserName"], "Organization": Organization, "page": optionPage.curr, "size": optionPage.limit }, |
| | | success: function (data1) { |
| | | option.limit = size;//æ¹åè¡¨æ ¼é¡µå¤§å° |
| | | if (data1.count != 0) { |
| | | option.limit = optionPage.limit;//æ¹åè¡¨æ ¼é¡µå¤§å° |
| | | if (data1.code == 1) { |
| | | optionPage.count = data1.count;//æ¹ååè¡¨æ°æ®æ»æ° |
| | | var data = [];//ååæ®µæ°æ® |
| | | var col = []; |
| | |
| | | } |
| | | } |
| | | } |
| | | //卿æ¾ç¤ºåå |
| | | option = { |
| | | elem: '#mainTable' |
| | | , toolbar: '#toolbarDemo' |
| | | , cols: [col] |
| | | , data: data1.data |
| | | , height: 800 |
| | | //, page: true |
| | | , totalRow: true |
| | | , cellMinWidth: 90 |
| | | , limit: 50 |
| | | //, limits: [50, 500, 5000, 20000] |
| | | , done: function (res, curr, count) { |
| | | soulTable.render(this); |
| | | } |
| | | } |
| | | |
| | | |
| | | option.cols = [col]; |
| | | option.data = data1.data; |
| | | table.render(option); |
| | | |
| | |
| | | } |
| | | |
| | | } else { |
| | | optionPage.count = data1.count;//æ¹ååè¡¨æ°æ®æ»æ° |
| | | laypage.render(optionPage); |
| | | |
| | | option.data = []; |
| | | table.render(option); |
| | | layer.close(ajaxLoad); |
| | | layer.alert(data1.code + data1.Message, { icon: 5 }); |
| | | /*layer.alert(data1.code + data1.Message, { icon: 5 });*/ |
| | | } |
| | | }, error: function (e) { |
| | |
| | | //#region å·æ° |
| | | function get_Refresh() { |
| | | set_ClearQuery(); |
| | | get_Display(sWhere); |
| | | get_DisplayPage(sWhere); |
| | | } |
| | | //#endregion |
| | | |