|
|
@ -878,6 +878,16 @@ const handleSelectedMaterial = (currentIndex: number, newValue: any) => {
|
|
|
|
formData.value.matItemDOList[currentIndex].matSpec = newValue?.spec
|
|
|
|
formData.value.matItemDOList[currentIndex].matSpec = newValue?.spec
|
|
|
|
formData.value.matItemDOList[currentIndex].matType = newValue?.materialType
|
|
|
|
formData.value.matItemDOList[currentIndex].matType = newValue?.materialType
|
|
|
|
formData.value.matItemDOList[currentIndex].matUnit = newValue?.unit
|
|
|
|
formData.value.matItemDOList[currentIndex].matUnit = newValue?.unit
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
formData.value.matItemDOList[currentIndex].rgId = ''
|
|
|
|
|
|
|
|
formData.value.matItemDOList[currentIndex].pnId = ''
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
formData.value.matItemDOList[currentIndex].pnlist = pnList.value.filter(
|
|
|
|
|
|
|
|
(pn) =>
|
|
|
|
|
|
|
|
pn.wh_id == formData.value.whId &&
|
|
|
|
|
|
|
|
matLastData.value.filter((mat) => mat.matId == newValue?.id && mat.pnId == pn.id).length > 0
|
|
|
|
|
|
|
|
)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
</script>
|
|
|
|
<style>
|
|
|
|
<style>
|
|
|
|