A maintainable refueling vehicle is the future development direction of the space system. In the process of fuel filling, capture docking, and configuration transformation, the most significant factor that affects the attitude control of the system is the continuous or sudden change of the angular torque of the system. In this paper, we study the control system of the variable mass body in an on-orbit service in the process of configuration transformation. The large errors of torque of inertia may make the narrow sense TEA (torque equilibrium attitude) of the system deviate greatly from the earth-oriented attitude. In order to avoid the error caused by the partial linearization of the system model, the feedback linearization method of the nonlinear system is used to design the controller to realize the tracking of the narrow sense TEA in the process of configuration transformation. Different from the traditional attitude control method, in order to avoid the high cost of the control system caused by the change of system mass characteristics and the change of system angular torque, CMG (control moment gyroscope) angular torque is introduced into the controller. We design a joint controller of attitude control and angular torque management, which can effectively stabilize the system and reduce the angular torque saturation of the attitude control system during the on-orbit service.