Vietnam declared a public health emergency over the coronavirus epidemic on Saturday and said it would halt all flights to and from China.