The decision was announced during the Spanish prime minister's official trip to China, where he is accompanied by his wife.