|
|
@ -42,6 +42,8 @@ |
|
|
|
<!-- 表单弹窗:添加/修改 --> |
|
|
|
<BasicForm |
|
|
|
ref="formRef" |
|
|
|
:isOpenSearchTable="true" |
|
|
|
fieldTableColumn="workStationCode" |
|
|
|
@success="getList" |
|
|
|
:rules="ProductscrapRequestMainRules" |
|
|
|
:formAllSchemas="ProductscrapRequestMain.allSchemas" |
|
|
@ -300,8 +302,13 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => |
|
|
|
if(formField == 'productionLineCode'){ |
|
|
|
row['productionLineCode'] = val[0]['code'] |
|
|
|
}else if(formField == 'workStationCode'){ |
|
|
|
row['workStationCode'] = val[0]['code'] |
|
|
|
row['fromLocationCode'] = val[0]['rawLocationCode'] |
|
|
|
val.forEach(item=>{ |
|
|
|
const newRow = JSON.parse(JSON.stringify({...tableFormKeys,...item})) |
|
|
|
newRow['workStationCode'] = item['code'] |
|
|
|
newRow['fromLocationCode'] = item['rawLocationCode'] |
|
|
|
tableData.value.push(newRow) |
|
|
|
}) |
|
|
|
|
|
|
|
}else if(formField == 'processCode'){ |
|
|
|
row['processCode'] = val[0]['code'] |
|
|
|
}else if(formField == 'itemCode'){ |
|
|
|