|
|
@ -63,6 +63,7 @@ |
|
|
|
@submitForm="submitForm" |
|
|
|
@buttonOperationClick="buttonOperationClick" |
|
|
|
@clearSearchInput="clearSearchInput" |
|
|
|
:updateTypeEdiltSubList="true" |
|
|
|
/> |
|
|
|
|
|
|
|
<!-- 详情 --> |
|
|
@ -790,6 +791,8 @@ const openForm =async (type: string, row?: number) => { |
|
|
|
item.componentProps.isSearchList = true |
|
|
|
} |
|
|
|
}) |
|
|
|
formRef.value.open(type, row) |
|
|
|
|
|
|
|
} |
|
|
|
if(type == 'update'){ |
|
|
|
ProductscrapRequestMain.allSchemas.formSchema.forEach((item) => { |
|
|
@ -807,8 +810,22 @@ const openForm =async (type: string, row?: number) => { |
|
|
|
item.componentProps.isSearchList = false |
|
|
|
} |
|
|
|
}) |
|
|
|
let updateData = await ProductscrapRequestMainApi.editReturnNew({ |
|
|
|
masterId:row.masterId |
|
|
|
}) |
|
|
|
console.log('updateData',updateData) |
|
|
|
updateData['masterId'] = row['masterId'] |
|
|
|
tableData.value = updateData.subList||[] |
|
|
|
tableData.value.forEach(item=>{ |
|
|
|
item['bomVersionInitOptions'] = item['bomList'].map(item1=>({ |
|
|
|
label:item1, |
|
|
|
value:item1 |
|
|
|
})) |
|
|
|
}) |
|
|
|
|
|
|
|
formRef.value.open(type, updateData) |
|
|
|
|
|
|
|
} |
|
|
|
formRef.value.open(type, row) |
|
|
|
if(type == 'create'){ |
|
|
|
nextTick(()=>{ |
|
|
|
defaultReasonCodeRequisition.value = true |
|
|
|