This commit is contained in:
2021-06-11 19:38:30 +00:00
parent 1fe84b3088
commit e8611a0361
5 changed files with 26 additions and 10 deletions

View File

@@ -14,6 +14,7 @@
data-cy="woHeader"
@change="setDirty()"
/>
{{ formState }}
<GzWoItems
v-model="obj"
:form-key="formCustomTemplateKey"
@@ -349,7 +350,12 @@ export default {
},
methods: {
setDirty: function() {
//console.log("WO HEADER SET DIRTY!! TRIGGERED");
this.formState.dirty = true;
// window.$gz.form.setFormState({
// vm: this,
// dirty: true
// });
},
canSave: function() {
return this.formState.valid && this.formState.dirty;