|
|
@ -332,7 +332,8 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => |
|
|
|
newRow['fromContainerNumber'] = item['containerNumber'] |
|
|
|
newRow['itemCode'] = item['itemCode'] |
|
|
|
newRow['fromBatch'] = item['batch'] |
|
|
|
|
|
|
|
newRow['inventoryQty'] = item['qty'] |
|
|
|
|
|
|
|
//从批次 |
|
|
|
await ruleApi.getManagementPrecision({ |
|
|
|
itemCodes: [item['itemCode']], |
|
|
@ -704,6 +705,13 @@ const submitForm = async (formType, submitData) => { |
|
|
|
return |
|
|
|
} |
|
|
|
data.subList = tableData.value // 拼接子表数据参数 |
|
|
|
const cmdExists = data.subList.some(filter => |
|
|
|
parseFloat(filter.inventoryQty) < parseFloat(filter.qty) |
|
|
|
); |
|
|
|
if(cmdExists){ |
|
|
|
message.warning("数量不能大于库存数量") |
|
|
|
return |
|
|
|
} |
|
|
|
let isExist = false |
|
|
|
tableData.value.forEach(item => { |
|
|
|
item['toLocationCode'] = toLocationCode |
|
|
|