Thanks for your query.
Your baby is having acute gastritis
which could be due to viral infection or indigestion
due to change in feeding pattern.
Crying is due to colic.
Most important is to maintain hydration.
I suggest you to get her evaluated by pediatrician
as she needs antiemetic like domperidone
and some antispasmodic.
In the meantime give oral rehydration solution sip by sip,give coconut water,lemon water in small amount.Do not force her to eat.
Wishing your baby speedy recovery.