From 3e6b0be32176f9cfb20ece9f66cab40e679749de Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Fri, 14 May 2021 23:52:23 +0000 Subject: [PATCH] --- ayanova/src/views/svc-workorder.vue | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/ayanova/src/views/svc-workorder.vue b/ayanova/src/views/svc-workorder.vue index 62c299f5..8690efdf 100644 --- a/ayanova/src/views/svc-workorder.vue +++ b/ayanova/src/views/svc-workorder.vue @@ -410,7 +410,7 @@ export default { async submitNewContract() { //save new contract route, this only ever gets called from a clean wo with no dirty edits so just save the contract and reset the wo from the result let res = await window.$gz.api.post( - `${API_BASE_URL}contract`, + `${API_BASE_URL}contract/${this.obj.id}`, this.obj.contractId ); if (res.error) { @@ -418,6 +418,11 @@ export default { window.$gz.form.setErrorBoxErrors(this); } else { this.obj = res.data; + window.$gz.form.setFormState({ + vm: this, + dirty: false, + valid: true + }); } }, async submit() {