How to get iTunes to keep playlist created on iPhone
It sounds like you have 'playlists' ticked in your syncing preferences and that iTunes is overwriting your playlists with no playlists as it syncs from the computer.

First thing to do is to check that Playlists are not being synced under the device in iTunes and Music. Uncheck "sync playlists" and try again.