| | |
| | | ,{field: 'a', align: 'center',title: 'a值', hide:true,edit:true} |
| | | ,{field: 'b', align: 'center',title: 'b值', hide:true,edit:true} |
| | | ,{field: 'fillIn', align: 'center',title: '填充(%)',hide:true,edit:true} |
| | | ,{field: 'str1', align: 'center',title: '拉伸强度MPa',hide:true,edit:true} |
| | | ,{field: 'str2', align: 'center',title: '断裂伸长率%',hide:true,edit:true} |
| | | ,{field: 'str3', align: 'center',title: '缺口冲击KJ/m2',hide:true,edit:true} |
| | | ,{field: 'str4', align: 'center',title: '维卡℃',hide:true,edit:true} |
| | | ,{field: 'str5', align: 'center',title: '半结晶时间min',hide:true,edit:true} |
| | | ,{field: 'str6', align: 'center',title: '结晶度%',hide:true,edit:true} |
| | | ,{field: 'massState', align: 'center',title: '质量状态',edit:true} |
| | | ,{field: 'problem', align: 'center',title: '备注',edit:true} |
| | | ,{field: 'stash', align: 'center',title: '仓库',edit:true} |
| | |
| | | ,{field: 'qtyAnfme', align: 'center',title: '待出库重量(KG)',hide:true} |
| | | ,{field: 'status', align: 'center',title: '状态', templet: setState ,edit:true} |
| | | ,{align: 'center', title: '流转明细', toolbar: '#tbLook'} |
| | | ,{field: 'orderNo', align: 'center',title: '单号', hide:true} |
| | | ,{field: 'pakoutTime', align: 'center',title: '出库时间', hide:true} |
| | | ,{field: 'orderWeight', align: 'center',title: '重量', hide:true} |
| | | ,{field: 'handlerBy', align: 'center',title: '经办人', hide:true} |
| | | ,{field: 'transfer', align: 'center',title: '流转形式', hide:true} |
| | | ,{field: 'customer', align: 'center',title: '客户名称', hide:true} |
| | | ,{field: 'allocate', align: 'center',title: '调拨到', hide:true} |
| | | ,{field: 'memo', align: 'center',title: '备注', hide:true} |
| | | // ,{field: 'orderNo', align: 'center',title: '单号', hide:true} |
| | | // ,{field: 'pakoutTime', align: 'center',title: '出库时间', hide:true} |
| | | // ,{field: 'orderWeight', align: 'center',title: '重量', hide:true} |
| | | // ,{field: 'handlerBy', align: 'center',title: '经办人', hide:true} |
| | | // ,{field: 'transfer', align: 'center',title: '流转形式', hide:true} |
| | | // ,{field: 'customer', align: 'center',title: '客户名称', hide:true} |
| | | // ,{field: 'allocate', align: 'center',title: '调拨到', hide:true} |
| | | // ,{field: 'memo', align: 'center',title: '备注', hide:true} |
| | | ]; |
| | | return cols; |
| | | } |
| | |
| | | return "<span style='color: black'>部分出库</span>" |
| | | }else if(data.status === "全部出库"){ |
| | | return "<span style='color: gray'>全部出库</span>" |
| | | }else if(data.status === "暂入库"){ |
| | | return "<span style='color: purple'>暂入库</span>" |
| | | } |
| | | } |
| | | |
| | |
| | | }); |
| | | } |
| | | break; |
| | | |
| | | case "deleteData": |
| | | var data = checkStatus.data; |
| | | if (data.length === 0){ |
| | | layer.msg('请选择数据'); |
| | | } else { |
| | | layer.confirm('确定删除'+(data.length===1?'此':data.length)+'条数据吗', function(){ |
| | | $.ajax({ |
| | | url: baseUrl+"/pla/delete/auth", |
| | | headers: {'token': localStorage.getItem('token')}, |
| | | data: JSON.stringify(data), |
| | | contentType:'application/json;charset=UTF-8', |
| | | 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 "viladate": |
| | | var data = checkStatus.data; |
| | | if (data.length === 0){ |
| | | layer.msg('请选择数据'); |
| | | } else { |
| | | layer.confirm('确定校验'+(data.length===1?'此':data.length)+'条数据吗', function(){ |
| | | $.ajax({ |
| | | url: baseUrl+"/pla/viladate/auth", |
| | | headers: {'token': localStorage.getItem('token')}, |
| | | data: JSON.stringify(data), |
| | | contentType:'application/json;charset=UTF-8', |
| | | 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) |
| | | } |
| | | } |
| | | }) |
| | | }); |
| | | } |
| | | } |
| | | }) |
| | | |
| | |
| | | |
| | | for(var i=0; i<data.length; i++){ |
| | | if(data[i].LAY_CHECKED){ |
| | | if(data[i].status === "待入库" || data[i].status === "全部出库"|| data[i].weightAnfme <= data[i].qtyAnfme){ |
| | | if(data[i].status === "暂入库" || data[i].status === "待入库" || data[i].status === "全部出库"|| data[i].weightAnfme <= data[i].qtyAnfme){ |
| | | layer.msg("选中的明细还未入库或者已全部出库或者没有剩余可出重量,请重新选择"); |
| | | return; |
| | | } |
| | |
| | | let dataOld = []; |
| | | for(var i=0; i<data.length; i++){ |
| | | if(data[i].LAY_CHECKED){ |
| | | if(data[i].status === "待入库" || data[i].status === "全部出库"){ |
| | | if(data[i].status === "暂入库" || data[i].status === "待入库" || data[i].status === "全部出库"){ |
| | | layer.msg("选中的明细还未入库或者已全部出库,请重新选择"); |
| | | return; |
| | | } |