The ship will try to beam up fuel from the planet it is orbiting. It will gather as much as fits in the fuel tank. You can only beam up from friendly planets.
The ship does not need fuel to perform this mission.
Relevant PControl Stage: GatherMission.