A man was stabbed twice in the back and once in the arm by his partner after he “winked” at another woman, a court has heard.