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