Let $\mathcal{R}$ be an $\textrm{integral domain}$ such that for all $\mathcal{S}\underset{\text{containing $1$}}{\underset{\text{subring}}\subseteq\textrm{Frac}(\mathcal{R}})$
with $$ \mathcal{R}\subsetneq{\mathcal{S}}\subset \textrm{Frac}{(\mathcal{R})}$$ is a PID $(\textrm{principal ideal domain})$.
Conjecture: $\mathcal{R}$ is a PID.
We know the converse is true i.e for a PID $\mathcal{R}$ and any subring $S$ of $\textrm{Frac}(\mathcal{R}) $ containing $1$ and contained in $\mathcal{R}$ is a PID.
A particular case: Any subring $\mathcal{S}$ of $\mathbb{Q}$ containing $1$ is a PID as $\mathbb{Z}\subset S\subset \textrm{Frac}(\Bbb{Z}) =\Bbb{Q}$
This is incorrect. See the comments.
your question is whether every proper localisation of $R$ being a PID means $R$ is a PID.
The localisation of a localisation is a localisation, so we can consider the partial order of all localisations of $R$, with natural homomorphisms between them. The localisation of a PID is a PID, so we know that the subset of this order which are not PIDs is downwards-closed. Your question is then whether this partially ordered subset can have a maximal element (an element that cannot be properly localised into another non-PID, but which is not a PID itself).
Assuming the $R$ we start with is not a PID, this partial order of non-PIDs will be non-empty. And if we have a chain in this partial order, the direct limit that the homomorphisms give us will be another localisation of $R$. So if the localisations of $R$ in this chain being non-PIDs means their direct limit is not a PID, that would give an upper bound on every chain in the partial order of non-PID localisations. So by Zorn's lemma there would be maximal element in this partial order (and you get one for any non-PID integral domain $R$).