| | |
| | | <script type="text/javascript"> |
| | | var pageCur; |
| | | function getCol() { |
| | | var cols = [ |
| | | let cols = [ |
| | | {field: 'wrkNo', align: 'center',title: '工作号'} |
| | | ,{field: 'ioTime$', align: 'center',title: '工作时间',width:160} |
| | | ]; |
| | | cols.push.apply(cols, detlCols); |
| | | cols.push({field: 'billNo', title:'单据编号', align: 'center', hide:true} |
| | | ,{field: 'seqNo', title:'序号', align: 'center', width:80, hide:true}); |
| | | return cols; |
| | | } |
| | | layui.use(['table','laydate', 'form'], function() { |
| | |
| | | var form = layui.form; |
| | | |
| | | $('#wrkNo').val(parent.wrkNo); |
| | | $('#ioTime').val(top.dateToStrM(parent.ioTime)); |
| | | $('#ioTime').val(top.dateToStr(parent.ioTime, true)); |
| | | // 数据渲染 |
| | | tableIns1 = table.render({ |
| | | elem: '#wrkDetlLogByMast', |
| | | headers: {token: localStorage.getItem('token')}, |
| | | url: baseUrl+'/wrkDetlLogByMast/list/auth', |
| | | where: {wrk_no: parent.wrkNo,ioTime: top.dateToStrM(parent.ioTime)}, |
| | | where: {wrk_no: parent.wrkNo,ioTime: top.dateToStr(parent.ioTime, true)}, |
| | | page: true, |
| | | limit: 16, |
| | | limits: [16, 30, 50, 100, 200, 500], |