|
|
@ -113,8 +113,9 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => |
|
|
|
nextTick(() => { |
|
|
|
if (type == 'tableForm') { |
|
|
|
// 明细查询页赋值 |
|
|
|
let newRow = JSON.parse(JSON.stringify(tableFormKeys)) |
|
|
|
if(formField=='itemCode'){ |
|
|
|
val.forEach(item=>{ |
|
|
|
let newRow = JSON.parse(JSON.stringify(tableFormKeys)) |
|
|
|
newRow['packingNumber'] = item['packingNumber'] |
|
|
|
newRow['containerNumber'] = item['containerNumber'] |
|
|
|
newRow['batch'] = item['batch'] |
|
|
@ -124,6 +125,10 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => |
|
|
|
newRow['uom'] = item['uom'] |
|
|
|
tableData.value.push(newRow) |
|
|
|
}) |
|
|
|
} else { |
|
|
|
row[formField] = val[0][searchField] |
|
|
|
} |
|
|
|
|
|
|
|
} else { |
|
|
|
const setV = {} |
|
|
|
setV[formField] = val[0][searchField] |
|
|
|