The utility model provides a wire harness support with a locking function, and relates to the technical field of wire harness supports, the wire harness support comprises a support frame, a circular placing hole is fixedly arranged in the support frame, a spring is arranged in the circular placing hole, a circular lifting block is arranged on the surface of one end of the spring, and the circular lifting block is arranged on the surface of the other end of the spring. A lifting block is fixedly installed at one end of the circular lifting block, and a penetrating groove is formed in the lifting block in a penetrating mode. Through the arrangement of the supporting frame, the circular placing hole, the spring, the circular lifting block, the lifting block, the penetrating groove, the first inserting groove, the second inserting groove, the limiting groove, the circular inserting plate, the arc-shaped inserting plate and other structures, in the using process of a worker, the size of equipment can be changed through the circular lifting block and the circular inserting plate; the wiring harness inserting plate is simple in structure and suitable for wiring harnesses of various sizes, and can be smoothly installed and used by replacing an oval wiring harness with the arc-shaped inserting plate, and economic consumption is reduced.