修改铝内胆成型线

master
夜笙歌 2 years ago
parent 68dcbef510
commit 5ed2d7b247

@ -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)

Loading…
Cancel
Save