The Marlins are also sending right-hander Mat Latos and first baseman Michael Morse to the Dodgers in exchange for three minor-league pitchers--right-handers Jeff Brigham, Victor Araujo and Kevin Guzman.
None of the three teams have officially announced the deal as of yet.
LeMahieu's streak was the longest active in the majors. He had gone 32 for 72 with five doubles, two triples and nine RBI over the streak. He raised his season average up from .300 to .324 over the 18-game stretch.
Panik, who was expected to be out, could return Friday.
Panik has been hitting decently over the last several games, as he is batting .281 over his last 10 contests.
LeMahieu hit his 15th double and fourth triple of the season, finishing a home run shy of the cycle.
LeMahieu extended his hitting streak to 18 straight, the longest current streak in MLB. He's hitting .444 over the streak.
He also scored a run and continues to lead the league in hits with 124, despite missing more than two weeks with a thumb injury. Gordon is batting .294 over his past nine games.
Gordon had been out since July 11 with a thumb injury. He will bat first and play second in Tuesday's game against the Nationals, reports MLB.com.
With Gordon back on the roster, the team placed infielder Donovan Solano on the paternity list.
Gordon started at second base and hit out of the leadoff spot as he continues to work his way back from the thumb injury that landed him on the 15-day disabled list.
Gordon could be ready to return to the team on Tuesday.
"I'm not the training staff -- I'm going to go with whatever the organization wants me to do," Gordon said. "But I feel good and it was good to get back out there today."
Wong hit a grand slam off Raisel Iglesias in the fourth inning for his 11th home run of the season. It was his only hit in three at-bats during the contest.
Prior to Monday's win, Wong was hitting .240 with one home run and one RBI in his last 11 games.