|
|
@ -234,15 +234,7 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => |
|
|
|
tableData.value = [...res.list] |
|
|
|
originTableData.value = [...res.list] |
|
|
|
} |
|
|
|
let messageItemCode = [] |
|
|
|
tableData.value.forEach(item=>{ |
|
|
|
if(item['subReturnedQty']<=0){ |
|
|
|
messageItemCode.push(item['itemCode']) |
|
|
|
} |
|
|
|
}) |
|
|
|
if(messageItemCode.length>0){ |
|
|
|
message.error(`发货记录单号${val[0]['number']}物料${messageItemCode.join(',')}被占用`) |
|
|
|
} |
|
|
|
|
|
|
|
}).catch(err => { |
|
|
|
console.log(err) |
|
|
|
message.error('错误') |
|
|
|