| | |
| | | var pageCurr; |
| | | layui.use(['table','laydate', 'form'], function(){ |
| | | layui.use(['table','laydate', 'form', 'element'], function(){ |
| | | var table = layui.table; |
| | | var $ = layui.jquery; |
| | | var layer = layui.layer; |
| | | var layDate = layui.laydate; |
| | | var form = layui.form; |
| | | var element = layui.element; |
| | | |
| | | // 数据渲染 |
| | | tableIns = table.render({ |
| | |
| | | ,{field: 'nodeId', align: 'center',title: '货位名称'} |
| | | ,{field: 'safeQua', align: 'center',title: '安全库存'} |
| | | ,{field: 'amount', align: 'center',title: '实际库存'} |
| | | ,{field: 'pe', align: 'center',title: '进度'} |
| | | ,{field: 'progress', align: 'center',title: '进度', templet: '#progressTpl'} |
| | | |
| | | ,{fixed: 'right', title:'操作', align: 'center', toolbar: '#operate', width:150} |
| | | ]], |
| | |
| | | if (res.code === 403) { |
| | | top.location.href = baseUrl+"/"; |
| | | } |
| | | element.render('progress') |
| | | pageCurr=curr; |
| | | limit(); |
| | | form.on('checkbox(tableCheckbox)', function (data) { |
| | | var _index = $(data.elem).attr('table-index')||0; |
| | | if(data.elem.checked){ |
| | | res.data[_index][data.value] = 'Y'; |
| | | }else{ |
| | | res.data[_index][data.value] = 'N'; |
| | | } |
| | | }); |
| | | } |
| | | }); |
| | | |