Looks like you have a case of round worm Vomiting frothy white fluid is a common symptom. See a Vet and get a de-wormer. This should be a quick fix.
Try offering her very small amounts (a mouthful or two) of water at a a time, and see if she keeps it down. Is she vomiting any food? If it has been hot where you are, your dog may just be getting hot and drinking too much water at once. If none of this helps, please see your vet. Blessings - Blu