Measuring the quality of a company's operations is the key to judging its existence. Based on the flexibility of the quality contract of the enterprise, this study studies its mechanism that affects the quality performance of the organization. This study starts from the flexibility of quality contract, and studies its impact path on organizational quality performance. It takes quality contract flexibility as independent variable, organizational quality performance as dependent variable, paradox cognition and control accidental quality knowledge leakage as intermediate variable and quality knowledge distance as Moderator. The empirical results show that the flexibility of the quality contract will affect the quality performance of the organization, the paradox cognition and the control of accidental knowledge leakage play a positive intermediary role, and the quality knowledge distance plays a moderating role. That is to say, when signing a flexible contract, an enterprise can improve its quality performance by improving the awareness of paradox and strengthening the control of accidental knowledge leakage.