In this paper, we propose a mixed-integer programming model to select vendors and determine the order quantities. The model considers the stochastic nature of demand, the quality of supplied parts, the cost of purchasing and transportation, the fixed cost for establishing vendors, and the cost of receiving poor quality parts. The model also considers the lead time requirements for the parts.