|
|
@ -120,12 +120,17 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => |
|
|
|
row['itemCode'] = val[0]['componentItemCode'] |
|
|
|
row['uom'] = val[0]['componentUom'] |
|
|
|
} else if(formField == 'workStation'){ |
|
|
|
if(isShowButton.value){ |
|
|
|
val.forEach(item=>{ |
|
|
|
const newRow = JSON.parse(JSON.stringify({...tableFormKeys,...item})) |
|
|
|
newRow[formField] = item[searchField] |
|
|
|
newRow['toLocationCode'] = item['rawLocationCode'] |
|
|
|
tableData.value.push(newRow) |
|
|
|
}) |
|
|
|
}else{ |
|
|
|
row[formField] = val[0][searchField] |
|
|
|
} |
|
|
|
|
|
|
|
console.log(77,formField) |
|
|
|
console.log(66,searchField) |
|
|
|
console.log(88,tableData.value) |
|
|
@ -142,6 +147,12 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => |
|
|
|
setV['shift'] = val[0]['shift'] |
|
|
|
setV['team'] = val[0]['team'] |
|
|
|
isShowButton.value = false |
|
|
|
PreparetoissueDetail.allSchemas.tableFormColumns.map(item => { |
|
|
|
if (item.field == 'workStation') { |
|
|
|
item.tableForm.isInpuFocusShow = true |
|
|
|
} |
|
|
|
}) |
|
|
|
|
|
|
|
// 获取子表数据 getBomDisassemble |
|
|
|
PreparetoissueMainApi.getBomDisassemble(val[0]['id']) |
|
|
|
.then(res => { |
|
|
|