Companies are announcing layoffs as restrictions on businesses and stay-at-home orders due to the spread of COVID-19 take a toll on the economy.