| | |
| | | </style> |
| | | </head> |
| | | <body> |
| | | <div class="layui-inline" style="width:31%;margin-top: 20px"> |
| | | <div class="layui-inline" style="width:20%;margin-top: 20px"> |
| | | <label class="layui-form-label">工 作 号:</label> |
| | | <div class="layui-input-inline"> |
| | | <input id="wrkNo" class="layui-input" type="text" disabled="disabled"> |
| | | </div> |
| | | </div> |
| | | <table class="layui-hide" id="wrkDetlByMast" lay-filter="wrkDetlByMast"></table> |
| | | <div class="layui-inline" style="width:20%;margin-top: 20px"> |
| | | <label class="layui-form-label">工作时间:</label> |
| | | <div class="layui-input-inline"> |
| | | <input id="ioTime" class="layui-input" type="text" disabled="disabled"> |
| | | </div> |
| | | </div> |
| | | |
| | | <table class="layui-hide" id="wrkDetlLogByMast" lay-filter="wrkDetlLogByMast"></table> |
| | | </body> |
| | | <script type="text/javascript" src="../../static/js/jquery/jquery-3.3.1.min.js"></script> |
| | | <script type="text/javascript" src="../../static/layui/layui.js" charset="utf-8"></script> |
| | |
| | | function getCol() { |
| | | var cols = [ |
| | | {field: 'wrkNo', align: 'center',title: '工作号'} |
| | | ,{field: 'ioTime$', 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)); |
| | | // 数据渲染 |
| | | tableIns1 = table.render({ |
| | | elem: '#wrkDetlByMast', |
| | | elem: '#wrkDetlLogByMast', |
| | | headers: {token: localStorage.getItem('token')}, |
| | | url: baseUrl+'/wrkDetl/list/auth', |
| | | where: {wrk_no: parent.wrkNo}, |
| | | url: baseUrl+'/wrkDetlLogByMast/list/auth', |
| | | where: {wrk_no: parent.wrkNo,ioTime: top.dateToStrM(parent.ioTime)}, |
| | | page: true, |
| | | limit: 16, |
| | | limits: [16, 30, 50, 100, 200, 500], |