console.log('Метод: '+method);
switch (method) {
case "pickup":
console.log('Pickup choosen: ', el);
break;
case "delivery":
console.log('Delivery choosen: ', command[method]);
break;
default:
break;
}