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