|
|
@ -119,8 +119,22 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => |
|
|
|
message.warning(`物料${val[0]['componentItemCode']}已经存在`) |
|
|
|
return |
|
|
|
} |
|
|
|
row['itemCode'] = val[0]['componentItemCode'] |
|
|
|
row['uom'] = val[0]['componentUom'] |
|
|
|
val.forEach((item, index)=>{ |
|
|
|
let tableForm = JSON.parse(JSON.stringify(tableFormKeys)) |
|
|
|
if(index == 0){ |
|
|
|
row['itemCode'] = item['componentItemCode'] |
|
|
|
row['uom'] = item['componentUom'] |
|
|
|
}else{ |
|
|
|
const newRow = JSON.parse(JSON.stringify({...tableForm,...item})) |
|
|
|
newRow['itemCode'] = item['componentItemCode'] |
|
|
|
newRow['uom'] = item['componentUom'] |
|
|
|
newRow['workStation'] = row['workStation'] |
|
|
|
newRow['toLocationCode'] = row['toLocationCode'] |
|
|
|
newRow['remark'] = '' |
|
|
|
tableData.value.push(newRow) |
|
|
|
} |
|
|
|
}) |
|
|
|
|
|
|
|
} else if(formField == 'workStation'){ |
|
|
|
if(isShowButton.value){ |
|
|
|
val.forEach(item=>{ |
|
|
|