|
|
@ -114,7 +114,12 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => |
|
|
|
nextTick(() => { |
|
|
|
if (type == 'tableForm') { |
|
|
|
if(formField === 'productionLine'){ |
|
|
|
row['productionLine']=val[0]['productionLineCode'] |
|
|
|
val.forEach(item=>{ |
|
|
|
// if(tableData.value.find(item1=>item1['productionLine'] == item['productionLineCode'])) return |
|
|
|
const newRow = JSON.parse(JSON.stringify(tableFormKeys)) |
|
|
|
newRow['productionLine'] = item['productionLineCode'] |
|
|
|
tableData.value.push(newRow) |
|
|
|
}) |
|
|
|
} |
|
|
|
if(formField === 'processCode'){ |
|
|
|
row['processCode']=val[0]['code'] |
|
|
|