Terahertz coded-aperture imaging relies on sequential coding and sampling. Its capturing speed is limited by the switching rate of the coded-aperture antenna; therefore, it is not suitable for capturing moving targets. In this paper, we focus on imaging for moving targets using the terahertz coded-aperture imaging technique. An incoherent detection array is adopted to replace sequential sampling by spatial sampling, therefore improving the capturing speed significantly. Then, a signal processing method based on phase retrieval and image enhancement is proposed to reconstruct targets with improved quality. Numerical experimental results verify the effectiveness of the method.