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: '#wrkMastLog', headers: {token: localStorage.getItem('token')}, url: baseUrl+'/wrkMastLog/list/auth', page: true, limit: 16, limits: [16, 30, 50, 100, 200, 500], even: true, toolbar: '#toolbar', cellMinWidth: 50, cols: [[ // {type: 'checkbox'} // ,{field: 'id', title: 'ID', sort: true,align: 'center', fixed: 'left', width: 80} // ,{field: 'id', align: 'center',title: '编号'} {field: 'wrkNo', align: 'center',title: '工作号',event: 'wrkNo', sort: true} ,{field: 'ioTime$', align: 'center',title: '工作时间', width:160, sort: true} ,{field: 'wrkSts$', align: 'center',title: '工作状态', width:160} ,{field: 'ioType$', align: 'center',title: '入出库类型', width:160} ,{field: 'ioPri', align: 'center',title: '优先级'} ,{field: 'crnNo$', align: 'center',title: '堆垛机号'} ,{field: 'sourceStaNo$', align: 'center',title: '源站'} ,{field: 'staNo$', align: 'center',title: '目标站'} ,{field: 'sourceLocNo$', align: 'center',title: '源库位'} ,{field: 'locNo$', align: 'center',title: '目标库位'} // ,{field: 'picking', 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(); } });