He has a phaser; Batman won't even use a gun. Plus, he's got a tricorder that can detect somebody's location from miles away. No way in Hell Batman wins.
Although do keep in mind that Spock is an explorer, Batman is a crime fighter.
Plus Batman has defeated every superhero he's ever fought against including Superman.
Spock only has one decent fighting move, and it targets the back of the neck. Batman's neck is so heavily armoured that he can't even turn his head.
When milliseconds matter, though, training and experience beat logic. And Batman has years of martial arts training followed by quite a few more years of practical ass-kicking experience in the streets of Gotham. This is why Batman could whup Sherlock Holmes and Mr Spock. (Sequentially, at least. Put them together and they'd outwit him with some brilliant plan.)