This commit is contained in:
2021-05-06 20:10:45 +00:00
parent d10cc77732
commit 8ecb11f7d3
8 changed files with 73 additions and 14 deletions

View File

@@ -84,7 +84,10 @@
}}<v-icon right large>$ayiTrashRestoreAlt</v-icon></v-btn
>
<v-col v-if="form().showMe(this, 'WorkOrderItemSummary')" cols="12">
<v-col
v-if="form().showMe(this, 'Items.WorkOrderItemSummary')"
cols="12"
>
<v-textarea
v-model="value.items[activeItemIndex].notes"
:readonly="formState.readOnly"
@@ -93,9 +96,9 @@
:error-messages="
form().serverErrors(this, `items[${activeItemIndex}].notes`)
"
ref="notes"
data-cy="notes"
@input="fieldValueChanged('notes')"
ref="Items.Notes"
data-cy="Items.Notes"
@input="fieldValueChanged(`items[${activeItemIndex}].notes`)"
auto-grow
></v-textarea>
</v-col>
@@ -122,7 +125,10 @@
></v-text-field>
</v-col>
<v-col v-if="form().showMe(this, 'WorkOrderItemTechNotes')" cols="12">
<v-col
v-if="form().showMe(this, 'Items.WorkOrderItemTechNotes')"
cols="12"
>
<v-textarea
v-model="value.items[activeItemIndex].techNotes"
:readonly="formState.readOnly"
@@ -131,9 +137,9 @@
:error-messages="
form().serverErrors(this, `items[${activeItemIndex}].techNotes`)
"
ref="techNotes"
data-cy="techNotes"
@input="fieldValueChanged('techNotes')"
ref="items.techNotes"
data-cy="items.techNotes"
@input="fieldValueChanged(`items[${activeItemIndex}].techNotes`)"
auto-grow
></v-textarea>
</v-col>
@@ -288,6 +294,56 @@
></v-checkbox>
</v-col>
<v-col v-if="form().showMe(this, 'WorkOrderItemTags')" cols="12">
<gz-tag-picker
v-model="value.items[activeItemIndex].tags"
:readonly="formState.readOnly"
ref="tags"
data-cy="tags"
:error-messages="
form().serverErrors(this, `items[${activeItemIndex}].tags`)
"
@input="fieldValueChanged('tags')"
></gz-tag-picker>
</v-col>
<v-col cols="12">
<gz-custom-fields
v-model="value.items[activeItemIndex].customFields"
:form-key="formCustomTemplateKey"
:readonly="formState.readOnly"
:parent-v-m="this"
ref="customFields"
data-cy="customFields"
:error-messages="
form().serverErrors(
this,
`items[${activeItemIndex}].customFields`
)
"
@input="fieldValueChanged('customFields')"
></gz-custom-fields>
</v-col>
<v-col v-if="form().showMe(this, 'WorkOrderItemWiki')" cols="12">
<gz-wiki
:aya-type="$ay.ayt.WorkOrderItem"
:aya-id="value.id"
ref="wiki"
v-model="value.items[activeItemIndex].wiki"
:readonly="formState.readOnly"
@input="fieldValueChanged('wiki')"
></gz-wiki
></v-col>
<v-col v-if="form().showMe(this, 'Attachments') && value.id" cols="12">
<gz-attachments
:readonly="formState.readOnly"
:aya-type="$ay.ayt.WorkOrderItem"
:aya-id="value.items[activeItemIndex].id"
></gz-attachments
></v-col>
<v-col cols="12">
<GzWoItemScheduledUsers
v-if="