AU

Size: a a a
AU
VD
AU
AU
VD
VD
VD
AU
VD
AU
VD
AU
AU
VD
DT
D
D
const goodsData = document.querySelectorAll('.goodinp')
let ids = [], counts = 0, total = 0;
for(let {id, value} of goodsData){
ids.push(id.slice(1))
const action = id[0]
if(action === 'x') counts+=value
if(action === 'y') totals+=value
}
console.log(ids,join(','), counts, total)
A
A