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