A Vietnamese mandarin hat said to be from the Nguyen Dynasty has sold for EUR600,000 (about VND15.6 billion) at an auction in Barcelona, Spain.