you have 2 options now:

either send your wife back (before 21st) on the return ticket she came on and recall her back on the new residence entry visa.

2nd option is to let her stay here and convert her visa from visit to residence by paying 500qr. You will avoid the hassle and cost of travel tickets. Once converted you will goto medical for tests, then finger prints, then visa stamping on ppt.