Several authors with different affiliations can be entered as
A.B. One<sup>1</sup>, C.D. Two<sup>2</sup>, and D.E. Three<sup>3</sup>
This will appear as
A.B. One1, C.D. Two2, and D.E. Three3