To make sure this is super duper clear …
The rule on bonus action spells has nothing to do with Action Surge. You could, for example, use Action Surge and then cast fireball twice.
The rule on bonus action spells applies only if you cast a bonus action spell, period. #DnD