var pageCurr; layui.use(['table','laydate', 'form'], function(){ var table = layui.table; var $ = layui.jquery; var layer = layui.layer; var layDate = layui.laydate; var form = layui.form; // 数据渲染 tableIns = table.render({ elem: '#locMast', headers: {token: localStorage.getItem('token')}, url: baseUrl+'/locMast/list/auth', page: true, limit: 16, limits: [16, 30, 50, 100, 200, 500], even: true, // size: 'sm', toolbar: '#toolbar', cellMinWidth: 50, cols: [[ {type: 'checkbox', fixed: 'left'} // ,{field: 'id', title: 'ID', sort: true,align: 'center', fixed: 'left', width: 80} ,{field: 'locNo', align: 'center',title: '库位号',sort:true} ,{field: 'locSts$', align: 'center',title: '库位状态',width:200} // ,{field: 'whsType$', align: 'center',title: '库位类型'} // ,{field: 'pltType', align: 'center',title: ''} // ,{field: 'ctnType', align: 'center',title: ''} // ,{field: 'locSts', align: 'center',title: ''} // ,{field: 'sheetNo', align: 'center',title: ''} ,{field: 'crnNo', align: 'center',title: '堆垛机号'} ,{field: 'row1', align: 'center',title: '排', sort:true} ,{field: 'bay1', align: 'center',title: '列', sort:true} ,{field: 'lev1', align: 'center',title: '层', sort:true} ,{field: 'barcode', align: 'center',title: '托盘码', sort:true} // ,{field: 'fullPlt', align: 'center',title: '满板', templet:function(row){ // var html = " ($(window).height()*0.9)) { height = ($(window).height()*0.8); } layer.style(index, { // top: (($(window).height()-height)/3)+"px", height: height+'px' }); } $('body').keydown(function () { if (event.keyCode === 13) { $("#search").click(); } });