I reckon for the 'road warrior' (love it) market diesel will continue to be attractive for a fair time.
If you're the sort of driver who regularly puts in 2 or 300 miles a day then the problem with using BEVs is in charging them at home overnight where the max rate is 7kW unless you have a domestic 3-phase supply. Leaving aside any cheap rate issues, at 7kW you're only going to be able to put around 20-25 miles range into your car per hour overnight, and if you're doing those kinds of mileages you're probably leaving home early and getting back late.
The alternative, of finding a high-power DC charging station when you're out on the road, is both expensive and life limiting on your battery if you do it all the time.
On the other hand, the rate at which battery technology is evolving means this is likely only to be the case for the next 5 years or so, but I believe it'll be a very long time indeed before we see a workable alternative for HGVs.