U.S. Navy vessels all have their own store, where the crew can purchase goods. In Trek, there's mention of a "ship's store" in the original series episode "Charlie X."
EVERY vessel? Somehow I think submarines and littoral combat ships would be sorely lacking in that department.