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