|
|
@ -749,7 +749,7 @@ const inputNumberChange = (field, val,row, index) => { |
|
|
|
console.log('inputNumberChange',formRef.value.formRef) |
|
|
|
if(field=='qty'){ |
|
|
|
if(row['subReturnedQty']<=0){ |
|
|
|
message.error(`发货记录单号${formRef.value.formRef.formModel['deliverRecordNumber']}物料${row['itemCode']}被占用`) |
|
|
|
message.error(`发货记录单号${formRef.value.formRef.formModel['deliverRecordNumber']}物料${row['itemCode']}批次${row['batch']}被占用`) |
|
|
|
} |
|
|
|
if(row['subReturnedQty']!=null&&row['qty']>row['subReturnedQty']){ |
|
|
|
message.error(`物料${row['itemCode']}最大数量为${row['subReturnedQty']}`) |
|
|
@ -768,7 +768,7 @@ const submitForm = async (formType, submitData) => { |
|
|
|
tableData.value.forEach(item=>{ |
|
|
|
if(item['subReturnedQty']<=0){ |
|
|
|
flag = false |
|
|
|
message.error(`发货记录单号${data['deliverRecordNumber']}物料${item['itemCode']}被占用`) |
|
|
|
message.error(`发货记录单号${data['deliverRecordNumber']}物料${item['itemCode']}批次${item['batch']}被占用`) |
|
|
|
} |
|
|
|
if(item['subReturnedQty']!=null&&item['qty']>item['subReturnedQty']){ |
|
|
|
flag = false |
|
|
|