They are three separate dates that must all be sound. Your passport must have enough validity left — if it has less than 6 months, you must first renew your passport before you can renew the residence permit. The residence permit governs your stay; the passport governs your travel document.
Nationwide (all cities)
Three separate dates
The three dates serve different purposes and must all be sound, but they interact in one important way.
What each governs
The residence permit governs your legal stay; the visa (if you still rely on one) governs entry; the passport is your travel document. They are not interchangeable.
The passport blocks renewal
The critical interaction is between your passport and the residence permit renewal. The National Immigration Administration's official answer to a question about renewal states that if your passport has less than 6 months of validity left, you must first apply for a new passport at your country's embassy or consulate in China, and only then apply for the renewal of your residence permit.
The takeaway
So the passport is the upstream document. A short passport validity blocks the residence permit renewal, and you must renew the passport first. Once you have a new passport, you also need to update the passport information on your residence permit within the required time.
In short
In short: watch all three, but especially the passport's remaining validity — if it is under 6 months, sort out the passport first.