Can you jump the truck off and test the alternator first? If the cable slipped off the battery, you may have a bad connection from the alternator to the battery. Check it out again before you go through the trouble of possibly pulling good parts. It may only need a new alternator harness/plug.