document.querySelector('.calc_container').addEventListener('input', e => {
const block = e.target.closest('.calc_block');
const price = +block.querySelector('.price span').innerText;
const count = +e.target.value;
block.querySelector('.summ span').innerText = price * count;
const orderData = Array
.from(e.currentTarget.querySelectorAll('.calc_block'), n => ({
name: n.querySelector('label').innerText,
count: +n.querySelector('.count').value,
sum: +n.querySelector('.summ span').innerText,
}))
.filter(n => n.count);
document.querySelector('.total_block span').innerText = orderData
.reduce((acc, n) => acc + n.sum, 0);
document.querySelector('textarea').value = orderData
.map(n => `Название: ${n.name} | Количество: ${n.count}`)
.join('\n');
});