I'm going to take a (non-rigorous) stab at this. I'm going to try to use logical deduction more than a strictly mathematical proof here...and I'm likely going to be missing something important but oh well!
Let's start by figuring out the maximum area:
Since the square has greater area per perimeter than the rectangle, which has greater area per perimeter than the triangle, in order to maximize area you have to maximize the area of the square; in order to minimize area you have to maximize the area of the triangle.... To max area of the square, you need to take most of the 1M units and use them on the square. The problem is forming the triangle. 1M is even, and so are the perimeters of the square and the rectangle; therefore the triangle perimeter must be small and even. We can't use 1 as a side length, because any scalene triangle with one side length = 1 unit will be degenerate. If we use 2 as a side length, in order for the perimeter to be even, the two larger sides must (a) differ by an even amount and (b) adhere to the inequality $2 + b > c$. That is, $2 > c-b$ and $2\leq c-b$...so 2 is out as well. On to 3, where we take 3 as the smallest side length, and 4 and 5 will work too because they are the next smallest. This removes 12 units. We therefore need to create the smallest rectangle we can where $4|2(d+e)$. Taking $d = 1$ to minimize area of the rectangle, we must have $2|1+e$, where $e\neq 1,3,5$. The next smallest number is 7, and so we have $f = (1000000-12-16)/4 = 249993$. The combined "max area" is therefore $\frac{1}{2}(3)(4) + (1)(7) + (249,993)^2 = 13 + 62,496,500,049 = 62,496,500,062$.
Now let's move on to the minimum area:
We're going to maximize the allocation of the perimeter to the triangle, by creating the flattest scalene triangle we can. The remainder can go to the square and the rectangle. We're going to make one side of the triangle $a=3$. Remember, the widest, flattest triangle will have one really small side and two really long sides. To minimize the square, we take side length $f=1$. Then to minimize the rectangle, take side length $d=2$ and $e=4$. We have left $a+b+c = 1000000-4-12 = 999984$. To make the flattest triangle that we can, we notice that we must have $a+b = c+2$ (since the perimeter remaining is even). By solving we see that $a+b = 999984-c = c+2$, so $c = \frac{1}{2}(999982) = 499991$. Then $b = 999984-499991-3=499990$ by necessity. The combined min area (thanks to Heron's formula) is $707,093 + 1 + 8 = 707,102$.
I'm excited to see the Puzzling.SE community beat this area difference: my difference is currently
$62,495,792,960$
because I think it can be done (I'm not bragging, I just don't think this is optimal, ha-ha!)
When comparing the triangle area differences, we get my final answer of
$707,093 - 6 = 707,087$.
Please let me know if you find any math errors or any issues with the calculations, I think this was a pretty interesting puzzle to work on!