If you crit while crafting a purple item (but not a mod) you shall get an augment slot.
If you crit while crafting a mod you shall get 2 of those mods or armor mods.
If you find a dropped purple item with slots in it, it is now virtually the same as an orange item. Slotted purple armor used to not have a removable armor slot, but now they do, making them fully upgradeable like orange armor.
I do not think it is possible to craft a slotted purple item (except for a single augment slot if you crit). The purple items you craft have fixed stats and are not really upgradeable. The purple items that are found in the world can have slots containing mods already in them, that can be replaced with better mods, but I believe you cannot craft a moddable purple item.
Similarly the orange items that drop in the world can have mods already in place in them. But many of these orange items are currently uncraftable.