A vehicle-mounted alternating-current-generating hydraulic driving device comprises a chassis power takeoff unit, an alternating-current generator, a closed hydraulic pump, a hydraulic motor, a radiator, a replacement flushing valve, a hydraulic oil tank and a programmable controller. The hydraulic pump is connected with the chassis power takeoff unit, an oil outlet of the closed hydraulic pump is connected with an oil inlet of the hydraulic motor, an oil inlet of the hydraulic pump is connected with an oil outlet of the hydraulic motor, the oil inlet and the oil outlet of the hydraulic motor are connected with a flushing oil port of the replacement flushing valve, an oil outlet of the replacement flushing valve is connected with an oil inlet of the radiator, an oil outlet of the radiator is connected with an inlet of the hydraulic oil tank, an outlet of the hydraulic oil tank is connected with the closed hydraulic pump, a hydraulic pump rotating speed sensor and a motor rotating speed sensor are respectively connected with the programmable controller which connected with a variable servo valve, and the hydraulic motor is connected with the alternating-current generator. By the vehicle-mounted alternating-current-generating hydraulic driving device, rotating speed of the hydraulic motor driving the generator is maintained constant, and the hydraulic motor can be mounted at any position of a vehicle, so that the problem that mounting space of a high-power generator is limited is solved.