It looks like a normal 11mm mechanical encoder with push switch. Typically with a 6mm shaft of some length and end finish.
You can buy one and try it, however there are a number of variations, both mechanical and elecrical, that could cause it to work improperly.
The number of pulses per revolution, which sides are stable at the detent (if any) and the A/B phase are some, plus the shaft and bushing dimensions and shape.
If a replacement works perfectly, but in reverse, you can swap the two pins on eithers side of the center pin in the group of 3.
The link is to a similar Alps part. LJV appears to be a Chinese factory based in Dongguan. You can find parts from the latter on Aliexpress etc.
Why are these not marked with some kind of identifier?... one of the pictures shows an identifier \$\endgroup\$