Automakers and parts suppliers have had to shut factories in China, in line with government guidelines, or have flagged a hit to profits.