| | |
| | | ,{field: 'anfme', align: 'center',title: '盘点前数量'} |
| | | ,{field: 'confirmQty', align: 'center',title: '盘点确认量'} |
| | | ,{field: 'adjQty$', align: 'center',title: '盘点差异量'} |
| | | ,{field: 'createTime$', align: 'center',title: '记录时间'} |
| | | ,{field: 'createTime$', align: 'center',title: '记录时间', width: 180} |
| | | ,{field: 'type', align: 'center',title: '财务审核', templet: '#statusTpl', width: 100} |
| | | ,{fixed: 'right', title:'操作', align: 'center', toolbar: '#operate', width:120} |
| | | ]], |
| | | request: { |
| | |
| | | case "del": |
| | | del([data.locNo]); |
| | | break; |
| | | case "auditing": |
| | | layer.confirm('确定审核通过?', { |
| | | skin: 'layui-layer-admin', |
| | | shade: .1 |
| | | }, function (i) { |
| | | layer.close(i); |
| | | var loadIndex = layer.load(2); |
| | | $.ajax({ |
| | | url: baseUrl+"/checkRecord/auditing/auth", |
| | | headers: {'token': localStorage.getItem('token')}, |
| | | data: {id: data.id}, |
| | | method: 'POST', |
| | | success: function (res) { |
| | | layer.close(loadIndex); |
| | | if (res.code === 200){ |
| | | layer.msg(res.msg, {icon: 1}); |
| | | tableReload(); |
| | | } else if (res.code === 403){ |
| | | top.location.href = baseUrl+"/"; |
| | | } else { |
| | | layer.msg(res.msg, {icon: 2}); |
| | | } |
| | | } |
| | | }) |
| | | }); |
| | | break |
| | | } |
| | | }); |
| | | |