A Japanese electric truck maker is opening its first North American plant in Fontana and moving its headquarters there.