|
@ -133,6 +133,8 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => |
|
|
//到货主代码 |
|
|
//到货主代码 |
|
|
row['toOwnerCode'] = val[0]['code'] |
|
|
row['toOwnerCode'] = val[0]['code'] |
|
|
}else if(formField == 'fromPackingNumber'){ |
|
|
}else if(formField == 'fromPackingNumber'){ |
|
|
|
|
|
val = val.filter(item=>!tableData.value.find(item1=>item1['itemCode']==item['itemCode']&&item1['fromBatch']==item['batch']&&item1['fromPackingNumber']==item['packingNumber']&&item1['locationCode']==item['locationCode']&&item1['fromInventoryStatus']==item['inventoryStatus'])) |
|
|
|
|
|
if(val.length==0) return |
|
|
val.forEach(item=>{ |
|
|
val.forEach(item=>{ |
|
|
const newRow = JSON.parse(JSON.stringify({...tableFormKeys,...item})) |
|
|
const newRow = JSON.parse(JSON.stringify({...tableFormKeys,...item})) |
|
|
newRow[formField] = item[searchField] |
|
|
newRow[formField] = item[searchField] |
|
|