One two-stage task allocation strategy is proposed for multi-spacecraft cooperation during the long-range orbit transfer with two impulses. This paper focuses on the task value maximum and cost minimum optimization by assigning spacecraft to different task. At the first stage time and energy cost are considered based on the spacecraft dynamics. The optimization result is together with the target value as the factor for the task allocation model at the second stage. The optimization is processed separately in continuous and discrete time domain with estimation of distribution algorithm (EDA). Different task allocation mode is formulated and the strategy is verified by simulation study.