I don't have experience myself. But one of my friend filed I-140 prior to her OPT application. And later both of them were approved. OPT came earlier than I-140. Also I checked with ISSS in my school previously. I was told that I-140 shouldn't affect my OPT application.