This question already has an answer here:

I need to add quantity box in category page. your help will be greatly appreciated

marked as duplicate by Amit Bera magento2 Feb 12 at 11:56

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.