I don't believe you can repair hull damage during a patrol (by choosing refit) but maybe!
The patrol objective, the yellow icon, is optional really. The main mission, the black cross icon, is designed to be active across multiple patrols.
So feel free to return to base at any time if your boat is in danger, even if objectives aren't completed yet.
__________________

|