Converting a customer to a vendor is unavailable. You'll want to edit the customer's name to a different one. This is to avoid getting a duplicate error.
Here are the steps:
Go to Sales > Customers.
Select the customer's name, and click the Edit button.
In the Customer Information window, modify the customer's name.
Click Save.
Once done, create the vendor by following these steps:
On the left panel, click Expenses > Vendors.
Click the New vendor button located in the upper right.
In the Vendor Information window, add the vendor details.
Click Save.
To know how to transfer the transactions made going to the vendor account, you need to delete that transaction and create them under the vendor.
Let me show you how to a transaction under the vendor:
Choose Expenses at the left navigation pane.
Select Vendors.
Choose the vendor you need to create the transaction.
In the Action dropdown, choose the transaction you need to create.
You can also refer to this article on how to enter and pay bills in QuickBooks Online: Enter and pay bills.