Abstract This article investigates the method of distributed photovoltaic optimal dispatching method. The goal is to minimize the operating costs of the distribution network system by coordinating electric heating and distributed energy storage when adjusting the demand-side resources of the distribution network. The analysis is conducted on the operating costs of the distribution network system under different penetration rates of photovoltaics to further promote the accommodation capacity of distributed photovoltaics. The research results show that when the penetration rate of photovoltaics is less than or equal to 90%, only electric heating needs to participate in the accommodation capacity of distributed photovoltaics; when the photovoltaic penetration rate exceeds or equals 100%, both distributed energy storage and electric heating need to participate in the accommodation capacity of distributed photovoltaics. As the penetration rate of photovoltaics gradually increases, the total operating costs and purchased electricity costs show a downward trend. When the penetration rate of photovoltaics increases from 70% to 100%, the network loss costs decrease first, but when the penetration rate reaches 110%, photovoltaics cannot be completely integrated, leading to an increase in network loss costs and dispatching costs. This method fully utilizes the flexible adjusting capabilities of electric heating loads and distributed energy storage, promotes the accommodation capacity of distributed photovoltaics, and improves the economic efficiency of distribution network operation.