var pageCurr; var wrkNo; var wmsWrkNo; var ioTime; layui.config({ base: baseUrl + "/static/wms/layui/lay/modules/" }).extend({ dropdown: 'dropdown/dropdown', }).use(['table', 'laydate', 'form', 'dropdown'], function () { var table = layui.table; var $ = layui.jquery; var layer = layui.layer; var layDate = layui.laydate; var form = layui.form; $('#wrkNo').val(parent.wrkNo); $('#wmsWrkNo').val(parent.wmsWrkNo); // 数据渲染 tableIns = table.render({ elem: '#wrkMast', headers: {token: localStorage.getItem('token')}, url: baseUrl + '/wrkMast/list/auth', where: {wrk_no: parent.wrkNo, wms_wrk_no: parent.wmsWrkNo}, page: true, limit: 16, limits: [16, 30, 50, 100, 200, 500], even: true, toolbar: '#toolbar', cellMinWidth: 50, cols: [[ {type: 'checkbox'} , {field: 'wmsWrkNo', align: 'center', title: 'WMS任务号', sort: true, width: 120} , {field: 'wrkNo', align: 'center', title: '任务号', sort: true, width: 120} , {field: 'ioTime$', align: 'center', title: '任务时间', sort: true, width: 160} , {field: 'durationTime', align: 'center', title: '持续时长', width: 160} , {field: 'wrkSts$', align: 'center', title: '任务状态'} , {field: 'ioType$', align: 'center', title: '任务类型'} , {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: 'barcode', align: 'center', title: '条码'} , {field: 'preHave', align: 'center', title: '先入品', hide: true} , {field: 'takeNone', align: 'center', title: '空操作', hide: true} // ,{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(); } });