|
|
@ -210,7 +210,7 @@ const searchTableSuccessLabel = (formField, searchField, val, formRef, type, row |
|
|
|
const searchTableSuccess = async(formField, searchField, val, formRef, type, row) => { |
|
|
|
|
|
|
|
console.log('searchTableSuccess',formField, searchField, val, formRef, type, row) |
|
|
|
|
|
|
|
console.log('searchTableSuccess123',val) |
|
|
|
nextTick( async () => { |
|
|
|
|
|
|
|
if (type == 'tableForm') { |
|
|
@ -263,7 +263,7 @@ const searchTableSuccess = async(formField, searchField, val, formRef, type, row |
|
|
|
let params = { |
|
|
|
itemCode: row.itemCode, |
|
|
|
batch: row.batch, |
|
|
|
locationCode:val.code |
|
|
|
locationCode:val[0]['code'] |
|
|
|
} |
|
|
|
let aa = await BalanceApi.getSumByConditions(params); |
|
|
|
console.log('23423423',aa); |
|
|
@ -826,8 +826,13 @@ const tableSelectionDelete = (selection) => { |
|
|
|
|
|
|
|
// 主子数据 提交 |
|
|
|
const submitForm = async (formType, data) => { |
|
|
|
if(tableData.value.find(item=>Number(item.returnedQty)>Number(item.receiptQty))){ |
|
|
|
message.warning("退货数量不能大于收获数量") |
|
|
|
console.log('submitForm',tableData.value) |
|
|
|
// if(tableData.value.find(item=>Number(item.returnedQty)>Number(item.receiptQty))){ |
|
|
|
// message.warning("退货数量不能大于收获数量") |
|
|
|
// return; |
|
|
|
// } |
|
|
|
if(tableData.value.find(item=>Number(item.qty)>Number(item.inventoryBalance))){ |
|
|
|
message.warning("退货数量不能大于库存余额") |
|
|
|
return; |
|
|
|
} |
|
|
|
data.subList = tableData.value // 拼接子表数据参数 |
|
|
|