A method for fabricating an optical module, comprising: growing an epitaxial material of a laser on a substrate; etching the epitaxial material of the laser to acquire the laser (63,101) and an electro-absorption modulator window; growing an epitaxial material of an electro-absorption modulator in the electro-absorption modulator window on the substrate; etching the epitaxial material of the electro-absorption modulator to acquire an electro-absorption modulator (64,102) and a semiconductor optical amplifier window, wherein the electro-absorption modulator is located between the laser and the semiconductor optical amplifier window; growing an epitaxial material of a semiconductor optical amplifier in the semiconductor optical amplifier window on the substrate; etching the epitaxial material of the semiconductor optical amplifier to acquire a semiconductor optical amplifier (65,103), wherein the electro-absorption modulator is located between the laser and the semiconductor optical amplifier; and assembling an optical component on one side of the semiconductor optical amplifier, and ensuring that the semiconductor optical amplifier is located between the electro-absorption modulator and the optical component; wherein: the laser outputs an optical signal after power-on; the electro-absorption modulator performs signal modulation on the optical signal output by the laser; the semiconductor optical amplifier amplifies the optical signal modulated by the electro-absorption modulator; the optical component performs deflection and convergence for the optical signal amplified by the semiconductor optical amplifier and outputs the optical signal. growing an epitaxial material of a laser on a substrate; etching the epitaxial material of the laser to acquire the laser (63,101) and an electro-absorption modulator window; growing an epitaxial material of an electro-absorption modulator in the electro-absorption modulator window on the substrate; etching the epitaxial material of the electro-absorption modulator to acquire an electro-absorption modulator (64,102) and a semiconductor optical amplifier window, wherein the electro-absorption modulator is located between the laser and the semiconductor optical amplifier window; growing an epitaxial material of a semiconductor optical amplifier in the semiconductor optical amplifier window on the substrate; etching the epitaxial material of the semiconductor optical amplifier to acquire a semiconductor optical amplifier (65,103), wherein the electro-absorption modulator is located between the laser and the semiconductor optical amplifier; and assembling an optical component on one side of the semiconductor optical amplifier, and ensuring that the semiconductor optical amplifier is located between the electro-absorption modulator and the optical component; wherein: the laser outputs an optical signal after power-on; the electro-absorption modulator performs signal modulation on the optical signal output by the laser; the semiconductor optical amplifier amplifies the optical signal modulated by the electro-absorption modulator; the optical component performs deflection and convergence for the optical signal amplified by the semiconductor optical amplifier and outputs the optical signal.