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