If you fill all of the required slots, you click 'Close' and the weapon is crafted.
In Alpha 13, you no longer have a recipe for mechanical weapons (pistols, rifles, etc.) but instead, you click on a found part, and you have an 'Assemble' option, where you can remove/replace parts on that weapon.