|
@ -114,6 +114,8 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => |
|
|
if (type == 'tableForm') { |
|
|
if (type == 'tableForm') { |
|
|
// 明细查询页赋值 |
|
|
// 明细查询页赋值 |
|
|
if(formField === 'itemCode'){ |
|
|
if(formField === 'itemCode'){ |
|
|
|
|
|
val = val.filter(item=>!tableData.value.find(item1=>item1['itemCode']==item['itemCode']&&item1['batch']==item['batch']&&item1['packingNumber']==item['packingNumber']&&item1['fromLocationCode']==item['locationCode']&&item1['inventoryStatus']==item['inventoryStatus'])) |
|
|
|
|
|
if(val.length==0) return |
|
|
val.forEach(item=>{ |
|
|
val.forEach(item=>{ |
|
|
let newRow = JSON.parse(JSON.stringify(tableFormKeys)) |
|
|
let newRow = JSON.parse(JSON.stringify(tableFormKeys)) |
|
|
newRow[formField] =item[searchField] |
|
|
newRow[formField] =item[searchField] |
|
|