|
|
|
@ -596,7 +596,9 @@ onMounted(async () => {
|
|
|
|
|
//获得库区列表
|
|
|
|
|
const queryParamsRg = reactive({
|
|
|
|
|
pageNo: 1,
|
|
|
|
|
pageSize: 99
|
|
|
|
|
pageSize: 99,
|
|
|
|
|
status:1,
|
|
|
|
|
whId : formData.value.whId
|
|
|
|
|
})
|
|
|
|
|
const dataRg = await RgApi.getRgPage(queryParamsRg)
|
|
|
|
|
|
|
|
|
@ -630,6 +632,7 @@ onMounted(async () => {
|
|
|
|
|
const matVos = await MaterialApi.getMaterialPage(queryParamsMat2)
|
|
|
|
|
|
|
|
|
|
formData.value.productBomItemDOList.forEach(item => {
|
|
|
|
|
item.cid = matCount
|
|
|
|
|
item.matId = matVos.list.find((record) => record.id === item.matId)?.id
|
|
|
|
|
//item.matCode = matVos.list.find( (record) => record.id === item.matId)?.id
|
|
|
|
|
item.matName = matVos.list.find((record) => record.id === item.matId)?.name
|
|
|
|
@ -637,6 +640,7 @@ onMounted(async () => {
|
|
|
|
|
item.matType = matVos.list.find((record) => record.id === item.matId)?.materialType
|
|
|
|
|
item.matUnit = matVos.list.find((record) => record.id === item.matId)?.unit
|
|
|
|
|
item.pnlist = pnList.value.filter((pn) => pn.rgId === item.rgId)
|
|
|
|
|
matCount= matCount+1
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
//物料编码信息初始化
|
|
|
|
|