| | |
| | | <div id="page" style="position: relative; bottom: 0;"></div> |
| | | <script type="text/html" id="toolbarDemo"> |
| | | <div class="layui-btn-container"> |
| | | <button type="button" class="layui-btn layui-btn-sm" style="display:none;" lay-event="btn_Export" id="btn_Export"><i class="layui-icon layui-icon-export"></i>导åº</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" style="display:none;" id="set_AddNew" lay-event="set_AddNew"><i class="layui-icon layui-icon-file-b"></i>æ°å¢</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" style="display:none;" id="set_ShowBill" lay-event="set_ShowBill"><i class="layui-icon layui-icon-form"></i>ç¼è¾</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" style="display:none;" id="set_DeleteBill" lay-event="set_DeleteBill"><i class="layui-icon layui-icon-delete"></i>å é¤</button> |
| | |
| | | |
| | | var option = []; |
| | | var sWhere = ""; |
| | | var ins; //ç¨äºå¯¼åºexcel |
| | | var page = 1;//åé¡µæ°æ® |
| | | var size = 50; |
| | | var HModName = "QC_ProcessCheckBillList"; |
| | |
| | | |
| | | table.on('toolbar(mainTable)', function (obj) { |
| | | switch (obj.event) { |
| | | //å¯¼åºæé® |
| | | case 'btn_Export': btn_Export(); |
| | | break; |
| | | //æ°å¢ |
| | | case 'set_AddNew': set_AddNew(); |
| | | break; |
| | |
| | | //åå§åè¡¨æ ¼ |
| | | DisPlay_HideColumn(); |
| | | table.render(option); |
| | | ins = table.render(option); |
| | | |
| | | ColFilter(); |
| | | |
| | |
| | | option.data = data1.data; |
| | | option.totalRow = true; |
| | | laypage.render(optionPage); |
| | | ins = table.render(option); |
| | | //å·æ°è¡¨æ ¼æ°æ® |
| | | DisPlay_HideColumn(); |
| | | |
| | |
| | | } |
| | | //#endregion |
| | | |
| | | |
| | | //#region 导åºExecel |
| | | function btn_Export() { |
| | | table.exportFile(ins.config.id, option.data, "xls"); |
| | | } |
| | | //#endregion |
| | | |
| | | |
| | | //#region æ°å¢ |
| | | function set_AddNew() { |
| | | layer.open({ |