The Completed SDSS-IV extended Baryon Oscillation Spectroscopic Survey: Exploring the halo occupation distribution model for emission line galaxies