The invention discloses a pipeline routing inspection emergency treatment robot. A platform, a walking mechanism, pipe clamping devices, a welding device, a camera, a U-shaped plate and middle springsare included. The upper end portion of the walking mechanism is fixedly arranged on the lower end face of the front end portion of the platform. The walking mechanism comprises a front end frame, a front end frame, a rotation arm drive motor, a rotation arm drive gear, a rotation arm driven gear, a rotation arm, an upper end frame drive motor, an upper end frame, a walking support spring, a lowerend frame, a lower end frame drive motor and the like. Through a clamp ring mechanism arranged on the walking mechanism, rotation of wheels can be driven, rotation of wheel plates can be driven as well, the pipeline routing inspection emergency treatment robot well adapts to the rugged road surface of a mine, and the robot can better finish work. Through the two pipe clamping devices of the pipeline routing inspection emergency treatment robot, a pipe is adjusted to the correct angle, a welding head is utilized for conducting welding treatment on the pipe, the pipeline leakage emergency treatment work can be rapidly done, and convenience and high efficiency are achieved.