That would be "a few months'/weeks' salary," just as the salary earned in one week would be "one week's salary." To me "a few salaries" sounds very peculiar, and would probably refer to the salaries earned by "a few" people.No, 'few' wont work here. One month salary /one week salary is one salary. 'A few salaries' means the salaries earned in a few months/weeks.