| | |
| | | <script src="../../../layuiadmin/Scripts/jquery-1.4.1.js"></script> |
| | | <script src="../../../layuiadmin/Scripts/webConfig.js"></script> |
| | | <script src="../../../layuiadmin/PubCustom.js"></script> |
| | | <script src="../../../layuiadmin/HideButton.js"></script> |
| | | <script src="../../../layuiadmin/soulTable.slim.js"></script> |
| | | </head> |
| | | <body> |
| | | <div class="layui-fluid"> |
| | |
| | | <table class="" id="mainTable" lay-filter="mainTable"></table> |
| | | <script type="text/html" id="toolbarDemo"> |
| | | <div class="layui-btn-container"> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="set_AddNew"><i class="layui-icon layui-icon-file-b"></i>æ°å¢</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="set_Edit"><i class="layui-icon layui-icon-form"></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_Edit" lay-event="set_Edit"><i class="layui-icon layui-icon-form"></i>ç¼è¾</button> |
| | | |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="set_DeleteBill"><i class="layui-icon layui-icon-delete"></i>å é¤</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="get_Refresh"><i class="layui-icon layui-icon-refresh-3"></i>å·æ°</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="get_Exit"><i class="layui-icon layui-icon-logout"></i>éåº</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" lay-event="set_HideColumn"><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> |
| | | <button type="button" class="layui-btn layui-btn-sm" style="display:none;" id="get_Refresh" lay-event="get_Refresh"><i class="layui-icon layui-icon-refresh-3"></i>å·æ°</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" style="display:none;" id="get_Exit" lay-event="get_Exit"><i class="layui-icon layui-icon-logout"></i>éåº</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" style="display:none;" id="set_HideColumn" lay-event="set_HideColumn"><i class="layui-icon layui-icon-form"></i>å设置</button> |
| | | <button type="button" class="layui-btn layui-btn-sm" style="display:none;" lay-event="set_HideButton" id="HideButton"><i class="layui-icon layui-icon-form"></i>æé®è®¾ç½®</button> |
| | | </div> |
| | | </script> |
| | | </form> |
| | |
| | | base: '../../../layuiadmin/' //éæèµæºæå¨è·¯å¾ |
| | | }).extend({ |
| | | index: 'lib/index', //主å
¥å£æ¨¡å |
| | | }).use(['index', 'form', 'table', 'element', 'laypage', 'laydate'], function () { |
| | | }).use(['index', 'form', 'table', 'element', 'laypage', 'laydate','soulTable'], function () { |
| | | var $ = layui.$ |
| | | , admin = layui.admin |
| | | , layer = layui.layer |
| | |
| | | , element = layui.element |
| | | , laypage = layui.laypage |
| | | , laydate = layui.laydate |
| | | , soulTable = layui.soulTable |
| | | |
| | | var sWhere = ""; |
| | | var HModName = "Gy_BarCodeBill_OutList"; |
| | |
| | | //å设置 |
| | | case 'set_HideColumn': get_HideColumn(); |
| | | break; |
| | | //æé®è®¾ç½® |
| | | case 'set_HideButton': |
| | | var btns = document.getElementsByTagName("button"); //è·åæ¬é¡µæææé®å¯¹è±¡ |
| | | var HBillType = "æ¡ç 彿¡£"; |
| | | get_HideButton(btns, HBillType, HModName, sessionStorage["HUserName"]); |
| | | break; |
| | | }; |
| | | }); |
| | | |
| | |
| | | , cellMinWidth: 90 |
| | | , limit: 50 |
| | | , limits: [50, 500, 5000, 20000] |
| | | , done: function (res, curr, count) { |
| | | soulTable.render(this); |
| | | } |
| | | , cols: [[ |
| | | { type: 'checkbox', fixed: 'left' } |
| | | , { field: 'hmainid', title: '忮ID', hide: true } |
| | | , { field: 'æ¡å½¢ç ', title: 'æ¡å½¢ç ', width: 160 } |
| | | , { field: 'HProcID', title: 'HProcID', width: 160, hide: true } |
| | | , { field: 'å·¥åº', title: 'å·¥åº', width: 160 } |
| | | , { field: 'HMaterID', title: 'HMaterID', width: 200, hide: true} |
| | | , { field: 'ç©æ', title: 'ç©æ', width: 250 } |
| | | , { field: 'ç©æä»£ç ', title: 'ç©æä»£ç ', width: 250 } |
| | | , { field: 'è§æ ¼åå·', title: 'è§æ ¼åå·', width: 200 } |
| | | , { field: 'HUnitID', title: 'HUnitID', hide: true } |
| | | , { field: '计éåä½', title: '计éåä½', width: 200 } |
| | | , { field: 'ä»¶æ°', title: 'ä»¶æ°', width: 200 } |
| | | , { field: 'æ°é', title: 'æ°é', width: 160 } |
| | | , { field: 'æ¹æ¬¡å·', title: 'æ¹æ¬¡å·', width: 160 } |
| | | , { field: 'HSupID', title: 'HSupID', width: 160, hide: true } |
| | | , { field: '徿¥åä½', title: '徿¥åä½', width: 200 } |
| | | , { field: 'HGroupID', title: 'HGroupID', width: 200, hide: true } |
| | | , { field: 'ç产çç»', title: 'ç产çç»', width: 200 } |
| | | , { field: 'HDeptID', title: 'HDeptID', width: 200, hide: true } |
| | | , { field: 'é¨é¨', title: 'é¨é¨', width: 200 } |
| | | , { field: 'HEmpID', title: 'HEmpID', width: 200, hide: true } |
| | | , { field: 'ä¸å¡å', title: 'ä¸å¡å', width: 200 } |
| | | , { field: '夿³¨', title: '夿³¨', width: 115 } |
| | | , { field: 'HWhID', title: 'HWhID', width: 115, hide: true } |
| | | , { field: 'é»è®¤ä»åº', title: 'é»è®¤ä»åº', width: 200 } |
| | | , { field: 'HSPID', title: 'HSPID', width: 200, hide: true } |
| | | , { field: 'é»è®¤ä»ä½', title: 'é»è®¤ä»ä½', width: 115 } |
| | | , { field: 'HAuxPropID', title: 'HAuxPropID', width: 200, hide: true } |
| | | , { field: 'ç©æè¾
å©å±æ§', title: 'ç©æè¾
å©å±æ§', width: 200 } |
| | | , { field: 'HCusID', title: 'HCusID', width: 200, hide: true } |
| | | , { field: '客æ·', title: '客æ·', width: 200 } |
| | | , { field: 'HSTOCKORGID', title: 'HSTOCKORGID', width: 115, hide: true } |
| | | , { field: 'åºåç»ç»', title: 'åºåç»ç»', width: 200, } |
| | | , { field: 'æå°æ¬¡æ°', title: 'æå°æ¬¡æ°', width: 200 } |
| | | , { field: 'ä½åºæ è®°', title: 'ä½åºæ è®°', width: 200 } |
| | | , { field: 'ä½åºäºº', title: 'ä½åºäºº', width: 115 } |
| | | , { field: 'ç产å
¥åºæ¥æ', title: 'ç产å
¥åºæ¥æ', width: 200, templet: "<div>{{d.ç产å
¥åºæ¥æ ==null ?'':layui.util.toDateString(d.ç产å
¥åºæ¥æ, 'yyyy-MM-dd HH:mm:ss')}}</div>" } |
| | | , { field: 'éå®åºåºæ¥æ', title: 'éå®åºåºæ¥æ', width: 200, templet: "<div>{{d.éå®åºåºæ¥æ ==null ?'':layui.util.toDateString(d.éå®åºåºæ¥æ, 'yyyy-MM-dd HH:mm:ss')}}</div>" } |
| | | , { field: 'hmainid', title: '忮ID', hide: true, sort: true } |
| | | , { field: 'æ¡å½¢ç ', title: 'æ¡å½¢ç ', width: 160, sort: true } |
| | | , { field: 'HProcID', title: 'HProcID', width: 160, hide: true, sort: true } |
| | | , { field: 'å·¥åº', title: 'å·¥åº', width: 160, sort: true } |
| | | , { field: 'HMaterID', title: 'HMaterID', width: 200, hide: true, sort: true } |
| | | , { field: 'ç©æ', title: 'ç©æ', width: 250, sort: true } |
| | | , { field: 'ç©æä»£ç ', title: 'ç©æä»£ç ', width: 250, sort: true } |
| | | , { field: 'è§æ ¼åå·', title: 'è§æ ¼åå·', width: 200, sort: true } |
| | | , { field: 'HUnitID', title: 'HUnitID', hide: true, sort: true } |
| | | , { field: '计éåä½', title: '计éåä½', width: 200, sort: true } |
| | | , { field: 'ä»¶æ°', title: 'ä»¶æ°', width: 200, sort: true } |
| | | , { field: 'æ°é', title: 'æ°é', width: 160, sort: true } |
| | | , { field: 'æ¹æ¬¡å·', title: 'æ¹æ¬¡å·', width: 160, sort: true } |
| | | , { field: 'HSupID', title: 'HSupID', width: 160, hide: true, sort: true } |
| | | , { field: '徿¥åä½', title: '徿¥åä½', width: 200, sort: true } |
| | | , { field: 'HGroupID', title: 'HGroupID', width: 200, hide: true, sort: true } |
| | | , { field: 'ç产çç»', title: 'ç产çç»', width: 200, sort: true } |
| | | , { field: 'HDeptID', title: 'HDeptID', width: 200, hide: true, sort: true } |
| | | , { field: 'é¨é¨', title: 'é¨é¨', width: 200, sort: true } |
| | | , { field: 'HEmpID', title: 'HEmpID', width: 200, hide: true, sort: true } |
| | | , { field: 'ä¸å¡å', title: 'ä¸å¡å', width: 200, sort: true } |
| | | , { field: '夿³¨', title: '夿³¨', width: 115, sort: true } |
| | | , { field: 'HWhID', title: 'HWhID', width: 115, hide: true, sort: true } |
| | | , { field: 'é»è®¤ä»åº', title: 'é»è®¤ä»åº', width: 200, sort: true } |
| | | , { field: 'HSPID', title: 'HSPID', width: 200, hide: true, sort: true } |
| | | , { field: 'é»è®¤ä»ä½', title: 'é»è®¤ä»ä½', width: 115, sort: true } |
| | | , { field: 'HAuxPropID', title: 'HAuxPropID', width: 200, hide: true, sort: true } |
| | | , { field: 'ç©æè¾
å©å±æ§', title: 'ç©æè¾
å©å±æ§', width: 200, sort: true } |
| | | , { field: 'HCusID', title: 'HCusID', width: 200, hide: true, sort: true } |
| | | , { field: '客æ·', title: '客æ·', width: 200, sort: true } |
| | | , { field: 'HSTOCKORGID', title: 'HSTOCKORGID', width: 115, hide: true, sort: true } |
| | | , { field: 'åºåç»ç»', title: 'åºåç»ç»', width: 200, sort: true} |
| | | , { field: 'æå°æ¬¡æ°', title: 'æå°æ¬¡æ°', width: 200, sort: true } |
| | | , { field: 'ä½åºæ è®°', title: 'ä½åºæ è®°', width: 200, sort: true } |
| | | , { field: 'ä½åºäºº', title: 'ä½åºäºº', width: 115, sort: true } |
| | | , { field: 'ç产å
¥åºæ¥æ', title: 'ç产å
¥åºæ¥æ', width: 200, templet: "<div>{{d.ç产å
¥åºæ¥æ ==null ?'':layui.util.toDateString(d.ç产å
¥åºæ¥æ, 'yyyy-MM-dd HH:mm:ss')}}</div>", sort: true } |
| | | , { field: 'éå®åºåºæ¥æ', title: 'éå®åºåºæ¥æ', width: 200, templet: "<div>{{d.éå®åºåºæ¥æ ==null ?'':layui.util.toDateString(d.éå®åºåºæ¥æ, 'yyyy-MM-dd HH:mm:ss')}}</div>", sort: true } |
| | | ]] |
| | | }; |
| | | } |
| | |
| | | if ($("#Comparator").val() == 0 && $("#ColContent").val() == "") { |
| | | ColFilter(); |
| | | } |
| | | |
| | | //å·æ°æé®æ¾ç¤º |
| | | var btns = document.getElementsByTagName("button"); //è·åæ¬é¡µæææé®å¯¹è±¡ |
| | | var HBillType = "æ¡ç 彿¡£"; |
| | | Display_HideButton(btns, HBillType, HModName, sessionStorage["HUserName"]); |
| | | //layer.alert("æ¥è¯¢æå", { icon: 1 }); |
| | | } else { |
| | | layer.close(ajaxLoad); |
| | |
| | | } else { |
| | | table.render(option); |
| | | } |
| | | |
| | | //å·æ°æé®æ¾ç¤º |
| | | var btns = document.getElementsByTagName("button"); //è·åæ¬é¡µæææé®å¯¹è±¡ |
| | | var HBillType = "æ¡ç 彿¡£"; |
| | | Display_HideButton(btns, HBillType, HModName, sessionStorage["HUserName"]); |
| | | }, error: function () { |
| | | layer.alert("æ¥å£è¯·æ±å¤±è´¥!", { icon: 5 }); |
| | | } |