This commit is contained in:
@@ -1,6 +1,14 @@
|
||||
<template>
|
||||
<div>
|
||||
<h2>WorkOrder items here</h2>
|
||||
<template v-if="value.items.count > 1">
|
||||
table of woitems here
|
||||
</template>
|
||||
<template v-if="pvm.selectedItemIndex">
|
||||
woitem is selected
|
||||
</template>
|
||||
|
||||
woitemfields
|
||||
<GzWoItemScheduledUsers data-cy="woItemScheduledUsers" />
|
||||
</div>
|
||||
</template>
|
||||
@@ -17,16 +25,12 @@ export default {
|
||||
data() {
|
||||
return {};
|
||||
},
|
||||
|
||||
props: {
|
||||
value: {
|
||||
default: "{}",
|
||||
type: String
|
||||
default: null,
|
||||
type: Object
|
||||
},
|
||||
formKey: { type: String, default: "" }, //used to grab template from store
|
||||
readonly: Boolean,
|
||||
disabled: Boolean,
|
||||
parentVM: {
|
||||
pvm: {
|
||||
default: null,
|
||||
type: Object
|
||||
}
|
||||
@@ -37,14 +41,18 @@ export default {
|
||||
return window.$gz.form;
|
||||
},
|
||||
fieldValueChanged(ref) {
|
||||
if (
|
||||
!this.parentVM.formState.loading &&
|
||||
!this.parentVM.formState.readonly
|
||||
) {
|
||||
window.$gz.form.fieldValueChanged(this.parentVM, ref);
|
||||
if (!this.formState.loading && !this.formState.readonly) {
|
||||
window.$gz.form.fieldValueChanged(this.pvm, ref);
|
||||
}
|
||||
}
|
||||
},
|
||||
computed: {}
|
||||
computed: {
|
||||
formState: function() {
|
||||
return this.pvm.formState;
|
||||
},
|
||||
formCustomTemplateKey: function() {
|
||||
return this.pvm.formCustomTemplateKey;
|
||||
}
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user