The flexibly manipulated terahertz wave is currently a hot research topic. To address this challenge, we proposed an all-dielectric coding metasurface for shaping the terahertz wave including beam splitting, beam deflection, vortex beam generators, and a vortex beam and multi-beam splitting combination by combining addition with the convolution theorem. This work represents what we believe to be a new method of combining terahertz wave regulation with digital signal processing and opens up the versatile design ideas of multifunctional metadevices.