first if your wife is here on a visit visa and not RP, check if re-entry is possible at Immigration office near airport. if not one exit will invalidate the visit visa.
if she comes on RP, then wait until finishing medical, fingerprinting and the whole process to finish before going.
to get visa to dubai, you can approach Emirates office or UAE embassy.