I echo Jaybay. This is not part of being in heat. As Jaybay said, this could be bladder stones that are now blocking her urethra, which is a dire emergency.
I hope you took her to the vet.
This sounds like a possibly serious medical emergency. It's nothing to do with her heat cycle. I'm wondering if bladder stones are the culprit and are blocking the flow of urine. That definitely is a life-threatening emergency, so get her to a vet NOW.
We've had unspayed females for many, many years. They have never vomited. I would call your vet.