Updated

PHOENIX -- The last time the Diamondbacks saw the Philadelphia Phillies, Arizona was coming off a loss to Clayton Kershaw and a 4-5 homestand. That was then.

The Phillies provided a salve, and the D-backs used a four-game sweep at Citizens Bank Park as a springboard to a 7-3 road trip, tying the franchise record for the best 10-game trip in club history.

After both Arizona and Philadelphia endured walk-off losses Sunday, the teams will meet again in a three-game series that begins Monday in Phoenix, where the Diamondbacks have had much more trouble winning.

Arizona is 13-25 at home, and only Atlanta has fewer home victories (11). The Diamondbacks, however, are 23-17 on the road, and only the San Francisco Giants and St. Louis Cardinals have more road wins.

The D-backs got their bats working on the road and finished on a high note at Coors Field over the weekend, setting a franchise record for a four-game set with 56 hits while spitting the series.

It started at the top.

Leadoff man Jean Segura, who started three of the four games at shortstop after spending the rest of the season at second base, was 13-for-35 (.371) with 12 runs, nine walks and six stolen bases on the road trip.

Arizona's No. 2 hitter, center fielder Michael Bourn, was 10-for-39 (.256) with six RBIs and three stolen bases. The No. 3 hitter, first baseman Paul Goldschmidt, was 16-for-37 (.432) with two homers and nine RBIs, and the cleanup hitter, third baseman Jake Lamb, was 15-for-36 (.417) with three homers and 11 RBIs.

Diamondbacks left-hander Robbie Ray (4-6) will face Phillies right-hander Vincent Velasquez (5-2) in the series opener Monday. Ray beat the Phillies with a quality start to open the trip. Velasquez was the only starter Arizona missed.

The Phillies have not had much go right since moving five games above .500 with an 8-5 victory over the Detroit Tigers on May 25. They are 6-25 since and have lost 12 of their past 14.

They ended a nine-game losing streak in the final game of a three-game series at Minnesota on Thursday, but they lost two out of three at San Francisco over the weekend despite roughing up potential All-Star starter Johnny Cueto for six runs in six innings on Sunday.

Center fielder Odubel Herrera, who appears to be the Phillies' top All-Star candidate, hit his eighth homer of the season Sunday before the Giants scored a run in the last of the ninth for an 8-7 victory.

Herrera has seven doubles and 27 RBIs, and opponents know he is the man to avoid. Herrera has 41 walks, almost twice as many as any other teammate. Third baseman Maikel Franco, who has 12 homers and 37 RBIs while batting .240, has walked 23 times.

Franco missed eight weeks after being struck in the left wrist injury on Aug. 11, the last time the Phillies were in Arizona.

Velasquez will be starting against the Diamondbacks for the first time in his career. In two relief outings against Arizona, he has allowed just one run, which was unearned, in 3 2/3 innings.

The June 17 outing at Philadelphia was Ray's first appearance against the Phillies. He allowed two runs on seven hits in six innings, striking out seven and walking one.