In this paper, we propose and investigate the SIQR epidemic model with a generalized incidence rate function, a general treatment function and vaccination term. We firstly consider the existence and uniqueness of the global nonnegative solution to the deterministic model. Further, we show the locally asymptotic stability of the disease-free equilibrium and endemic equilibrium of the deterministic model, and obtain the basic reproduction number R0. Then we study the existence and uniqueness of the global positive solution to the stochastic model with any positive initial value. Meanwhile, we obtain sufficient conditions for the extinction of the disease in the stochastic epidemic model, and find that the large noise can make the disease die out exponentially. Finally, we make an empirical analysis by the COVID-19 data of Russia and Serbia. By the performance comparison of different models, it shows that the model with vaccination and treatment we proposed is better for the real situation, which is also verified by different estimation methods. Especially, that shows the recovery rate of the infected increases by 0.042 and the death rate of the recovered is 1.525 times that of normal human in Russia. Through statistical analysis, the short-term trend of epidemic transmission is predicted: under the condition of unchanged prevention and control policies, it may reach a stable endemic equilibrium state in Russia and the epidemic will eventually extinct in Serbia.