Hi,
When you want to open a form in the readonly state you need to set an onload Rule to switch to readonly view of the form. So when you submit the form to Sharepoint set the state of the form as completed and when you open the form next time check if the status is completed, if it is completed then switch the view to readonly view.
Other way of doing this is, you can add conditional formatting to the fields to be readonly when the status of the form is completed.