This commit is contained in:
@@ -95,11 +95,13 @@
|
||||
>
|
||||
<gz-pick-list
|
||||
:aya-type="$ay.ayt().Unit"
|
||||
:show-edit-icon="true"
|
||||
:show-edit-icon="!value.userIsRestrictedType"
|
||||
v-model="
|
||||
value.items[activeWoItemIndex].units[activeItemIndex].unitId
|
||||
"
|
||||
:readonly="formState.readOnly || isDeleted"
|
||||
:readonly="
|
||||
formState.readOnly || isDeleted || value.userIsRestrictedType
|
||||
"
|
||||
:disabled="isDeleted"
|
||||
:label="$ay.t('Unit')"
|
||||
:ref="
|
||||
@@ -128,7 +130,10 @@
|
||||
</v-col>
|
||||
|
||||
<v-col
|
||||
v-if="form().showMe(this, 'UnitWarrantyInfo')"
|
||||
v-if="
|
||||
form().showMe(this, 'UnitWarrantyInfo') &&
|
||||
!value.userIsRestrictedType
|
||||
"
|
||||
cols="12"
|
||||
sm="6"
|
||||
lg="4"
|
||||
@@ -152,7 +157,13 @@
|
||||
</v-card>
|
||||
</v-col>
|
||||
|
||||
<v-col v-if="form().showMe(this, 'WorkOrderItemUnitNotes')" cols="12">
|
||||
<v-col
|
||||
v-if="
|
||||
form().showMe(this, 'WorkOrderItemUnitNotes') &&
|
||||
!value.userIsRestrictedType
|
||||
"
|
||||
cols="12"
|
||||
>
|
||||
<v-textarea
|
||||
v-model="
|
||||
value.items[activeWoItemIndex].units[activeItemIndex].notes
|
||||
@@ -177,7 +188,13 @@
|
||||
></v-textarea>
|
||||
</v-col>
|
||||
|
||||
<v-col v-if="form().showMe(this, 'WorkOrderItemUnitTags')" cols="12">
|
||||
<v-col
|
||||
v-if="
|
||||
form().showMe(this, 'WorkOrderItemUnitTags') &&
|
||||
!value.userIsRestrictedType
|
||||
"
|
||||
cols="12"
|
||||
>
|
||||
<gz-tag-picker
|
||||
v-model="value.items[activeWoItemIndex].units[activeItemIndex].tags"
|
||||
:readonly="formState.readOnly"
|
||||
@@ -197,7 +214,7 @@
|
||||
></gz-tag-picker>
|
||||
</v-col>
|
||||
|
||||
<v-col cols="12">
|
||||
<v-col v-if="!value.userIsRestrictedType" cols="12">
|
||||
<gz-custom-fields
|
||||
v-model="
|
||||
value.items[activeWoItemIndex].units[activeItemIndex].customFields
|
||||
@@ -224,7 +241,13 @@
|
||||
></gz-custom-fields>
|
||||
</v-col>
|
||||
|
||||
<v-col v-if="form().showMe(this, 'WorkOrderItemUnitWiki')" cols="12">
|
||||
<v-col
|
||||
v-if="
|
||||
form().showMe(this, 'WorkOrderItemUnitWiki') &&
|
||||
!value.userIsRestrictedType
|
||||
"
|
||||
cols="12"
|
||||
>
|
||||
<gz-wiki
|
||||
:aya-type="$ay.ayt().WorkOrderItem"
|
||||
:aya-id="value.id"
|
||||
@@ -240,7 +263,11 @@
|
||||
></v-col>
|
||||
|
||||
<v-col
|
||||
v-if="form().showMe(this, 'WorkOrderItemUnitAttachments') && value.id"
|
||||
v-if="
|
||||
form().showMe(this, 'WorkOrderItemUnitAttachments') &&
|
||||
value.id &&
|
||||
!value.userIsRestrictedType
|
||||
"
|
||||
cols="12"
|
||||
>
|
||||
<gz-attachments
|
||||
@@ -718,7 +745,10 @@ export default {
|
||||
});
|
||||
}
|
||||
|
||||
if (this.form().showMe(this, "WorkOrderItemUnitNotes")) {
|
||||
if (
|
||||
this.form().showMe(this, "WorkOrderItemUnitNotes") &&
|
||||
!this.value.userIsRestrictedType
|
||||
) {
|
||||
headers.push({
|
||||
text: this.$ay.t("WorkOrderItemUnitNotes"),
|
||||
align: "left",
|
||||
|
||||
Reference in New Issue
Block a user