PurposeProduction and transportation of precast components, as two continuous service stages of a precast plant, play an important role in meeting customer needs and controlling costs. However, there is still a lack of production and transportation scheduling methods that comprehensively consider delivery timeliness and transportation economy. This article aims to study the integrated scheduling optimization problem of in-plant flowshop production and off-plant transportation under the consideration of practical constraints of customer order delivery time window, and seek an optimal scheduling method that balances delivery timeliness and transportation economy.Design/methodology/approachIn this study, an integrated scheduling optimization model of flowshop production and transportation for precast components with delivery time windows is established, which describes the relationship between production and transportation and handles transportation constraints under the premise of balancing delivery timeliness and transportation economy. Then a genetic algorithm is designed to solve this model. It realizes the integrated scheduling of production and transportation through double-layer chromosome coding. A program is designed to realize the solution process. Finally, the validity of the model is proved by the calculation of actual enterprise data.FindingsThe optimized scheduling scheme can not only meet the on-time delivery, but also improve the truck loading rate and reduce the total cost, composed of early cost in plant, delivery penalty cost and transportation cost. In the model validation, the optimal scheduling scheme uses one less truck than the traditional EDD scheme (saving 20% of the transportation cost), and the total cost can be saved by 17.22%.Originality/valueThis study clarifies the relationship between the production and transportation of precast components and establishes the integrated scheduling optimization model and its solution algorithm. Different from previous studies, the proposed optimization model can balance the timeliness and economy of production and transportation for precast components.