|
|
|
@ -1178,8 +1178,8 @@ const multipleThreeDimensionalCylindrical = (res, ids) => {
|
|
|
|
|
const data = value.map(e => {
|
|
|
|
|
return {
|
|
|
|
|
materialName:e,
|
|
|
|
|
lineStoreAmount:res.filter( val => val.materialName === e).filter(val => val.locationNumber === 'L001')[0].lineStoreAmount,
|
|
|
|
|
hullStoreAmount:res.filter( val => val.materialName === e).filter(val => val.locationNumber === 'U001')[0].lineStoreAmount
|
|
|
|
|
lineStoreAmount:res.filter( val => val.materialName === e).filter(val => val.hullStoreAmount === 'L001')?.[0]?.lineStoreAmount || 0,
|
|
|
|
|
hullStoreAmount:res.filter( val => val.materialName === e).filter(val => val.hullStoreAmount === 'U001')?.[0]?.lineStoreAmount || 0
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
const xValue = data.map(val => val.materialName)
|
|
|
|
|