The "built in EU, designed in China" situation is more hypothetical. I don't think anyone would seriously say that Europeans have forgotten how to design cars (and designing an electrical car is, besides the battery, easier than designing a gasoline car), it's just that they can't sell them nearly as cheap as the (subsidized) Chinese models.