A pandemic is going to severely hurt the economy, but it won't completely stop it. It will not be the case that nothing will be produced for months on end. People will go to work. Farmers will produce food. There will be shops. But things will also be in short supply. Prices will probably rise. Poor people will be hit harder and there will probably be some famine (or at least more than there is now). But things will still continue.
In an event like an earthquake, entire distribution lines are shut down because you can't physically get somewhere. With a pandemic, things will be in short supply because labour is in short supply.