In the fresh food superstore, due to the variety of vegetable commodities, short shelf life, easy to deteriorate, and different origins and transportation methods, and replenishment time is set in the early morning, so the superstore needs to make replenishment decisions in advance. This paper collects the sales data of a supermarket over the past three years, and carries out relevant research on automatic pricing and replenishment decision-making for vegetable commodities. In this paper, we study the relevant distribution law of vegetable varieties and single products, and analyze which categories have a strong correlation between categories. Secondly, an optimization model is constructed to solve the total daily replenishment and the corresponding pricing to obtain the pricing and replenishment strategy of the superstore.