| | |
| | | cellMinWidth: 50, |
| | | cols: [[ |
| | | {type: 'checkbox'}, |
| | | // ,{field: 'id', title: 'ID', sort: true,align: 'center', fixed: 'left', width: 80} |
| | | // ,{field: 'typeId', align: 'center',title: '路径ID'} |
| | | // ,{field: 'typeDesc', align: 'center',title: '作业类型'} |
| | | {field: 'orderNo', align: 'center',title: '盘点单编号', style: 'font-weight: bold'}, |
| | | {field: 'anfme', align: 'center',title: '盘点盈亏', style: 'font-weight: bold'}, |
| | | {field: 'createTime$', align: 'center',title: '创建时间', style: 'font-weight: bold'}, |
| | | {field: 'matnr', align: 'center',title: '商品编号', style: 'font-weight: bold'}, |
| | | |
| | | {field: 'maktx', align: 'center',title: '商品名称', style: 'font-weight: bold'}, |
| | | {field: 'specs', align: 'center',title: '规格', style: 'font-weight: bold'}, |
| | | {field: 'batch', align: 'center',title: '批号', style: 'font-weight: bold'} |
| | | |
| | | // ,{field: 'appeUser$', align: 'center',title: '创建者',event: 'appeUser', style: 'cursor:pointer'} |
| | | // ,{field: 'appeTime$', align: 'center',title: '添加时间'} |
| | | ]], |
| | | request: { |
| | | pageName: 'curr', |
| | |
| | | }); |
| | | } |
| | | break; |
| | | case 'uploadData': |
| | | var data = checkStatus.data; |
| | | if (data.length === 0){ |
| | | layer.msg('请选择数据'); |
| | | } else { |
| | | layer.confirm('确定上报'+(data.length===1?'此':data.length)+'条数据吗', function(){ |
| | | $.ajax({ |
| | | url: baseUrl+"/check/upload/auth", |
| | | headers: {'token': localStorage.getItem('token')}, |
| | | data: {param: JSON.stringify(data)}, |
| | | method: 'POST', |
| | | traditional:true, |
| | | success: function (res) { |
| | | if (res.code === 200){ |
| | | layer.closeAll(); |
| | | tableReload(false); |
| | | } else if (res.code === 403){ |
| | | top.location.href = baseUrl+"/"; |
| | | } else { |
| | | layer.msg(res.msg) |
| | | } |
| | | } |
| | | }) |
| | | }); |
| | | } |
| | | break; |
| | | case 'exportData': |
| | | layer.confirm('确定导出Excel吗', {shadeClose: true}, function(){ |
| | | var titles=[]; |