Well being a Navy vet and working the flight deck I can give you some good input here.
I would realistically wait about
8 weeks before returning to the ship. I was working as a maintenance mechanic and auto mechanic when I had mine done. The squatting and lifting/twisting will be tough for a while and I had to take 8 weeks before I was able to be 100% doing these things.
Even with a lap surgery the core muscles will need time to heal and just keeping your sea legs will put a strain on them. At the very least I would wait 6 weeks.
Even though your body may be healed enough at 4 to 6 weeks you will be low on strength and stamina from the lack of calories and the healing process itself.
Take care,
Bill