It depends on whether your permit is still in force. Within the validity period of your work-type residence permit, you can exit and re-enter China without applying for a new visa. But once your work permit is cancelled (because you resigned), the work-type residence permit's basis is gone — it does not keep you lawful on its own.
Nationwide (all cities)
Within the validity period
There are two different questions here, and the answer splits on whether your permit is still in force. Within the validity period. The Hefei Public Security Bureau's official answer is direct: within the validity period of the work-type residence permit, exiting and re-entering China does not require applying for a new visa. So if you leave while the permit is still valid and before it is cancelled, you can return on the same permit.
After cancellation
After cancellation. Once you have resigned and the work permit is cancelled, the work-type residence permit's legal basis disappears. The employment regulations require the employer to return the residence permit and handle exit procedures when the employment ends, and the exit-entry authority can revoke the residence permit. So the permit does not remain a valid basis for staying or re-entering on its own.
Practical timing
Practical point: if you plan to exit during the gap, do it while the permit is still valid and un-cancelled, and finish the cancellation paperwork on return — or before you leave.