This commit is contained in:
2021-07-15 15:38:43 +00:00
parent ffb5df3523
commit e038f07772

View File

@@ -103,7 +103,7 @@
value.items[activeWoItemIndex].scheduledUsers[activeItemIndex] value.items[activeWoItemIndex].scheduledUsers[activeItemIndex]
.startDate .startDate
" "
:readonly="formState.readOnly" :readonly="formState.readOnly || value.userIsRestrictedType"
:disabled="isDeleted" :disabled="isDeleted"
:ref=" :ref="
`Items[${activeWoItemIndex}].scheduledUsers[${activeItemIndex}].startDate` `Items[${activeWoItemIndex}].scheduledUsers[${activeItemIndex}].startDate`
@@ -136,7 +136,7 @@
value.items[activeWoItemIndex].scheduledUsers[activeItemIndex] value.items[activeWoItemIndex].scheduledUsers[activeItemIndex]
.stopDate .stopDate
" "
:readonly="formState.readOnly" :readonly="formState.readOnly || value.userIsRestrictedType"
:disabled="isDeleted" :disabled="isDeleted"
:ref=" :ref="
`Items[${activeWoItemIndex}].scheduledUsers[${activeItemIndex}].stopDate` `Items[${activeWoItemIndex}].scheduledUsers[${activeItemIndex}].stopDate`
@@ -177,7 +177,9 @@
value.items[activeWoItemIndex].scheduledUsers[activeItemIndex] value.items[activeWoItemIndex].scheduledUsers[activeItemIndex]
.estimatedQuantity .estimatedQuantity
" "
:readonly="formState.readOnly || isDeleted" :readonly="
formState.readOnly || isDeleted || value.userIsRestrictedType
"
:disabled="isDeleted" :disabled="isDeleted"
:label="$ay.t('WorkOrderItemScheduledUserEstimatedQuantity')" :label="$ay.t('WorkOrderItemScheduledUserEstimatedQuantity')"
:ref=" :ref="
@@ -218,12 +220,14 @@
<gz-pick-list <gz-pick-list
:aya-type="$ay.ayt().User" :aya-type="$ay.ayt().User"
variant="tech" variant="tech"
:show-edit-icon="true" :show-edit-icon="!value.userIsRestrictedType"
v-model=" v-model="
value.items[activeWoItemIndex].scheduledUsers[activeItemIndex] value.items[activeWoItemIndex].scheduledUsers[activeItemIndex]
.userId .userId
" "
:readonly="formState.readOnly || isDeleted" :readonly="
formState.readOnly || isDeleted || value.userIsRestrictedType
"
:disabled="isDeleted" :disabled="isDeleted"
:label="$ay.t('WorkOrderItemScheduledUserUserID')" :label="$ay.t('WorkOrderItemScheduledUserUserID')"
:ref=" :ref="
@@ -255,12 +259,14 @@
<gz-pick-list <gz-pick-list
:aya-type="$ay.ayt().ServiceRate" :aya-type="$ay.ayt().ServiceRate"
:variant="'contractid:' + value.contractId" :variant="'contractid:' + value.contractId"
:show-edit-icon="true" :show-edit-icon="!value.userIsRestrictedType"
v-model=" v-model="
value.items[activeWoItemIndex].scheduledUsers[activeItemIndex] value.items[activeWoItemIndex].scheduledUsers[activeItemIndex]
.serviceRateId .serviceRateId
" "
:readonly="formState.readOnly || isDeleted" :readonly="
formState.readOnly || isDeleted || value.userIsRestrictedType
"
:disabled="isDeleted" :disabled="isDeleted"
:label="$ay.t('WorkOrderItemScheduledUserServiceRateID')" :label="$ay.t('WorkOrderItemScheduledUserServiceRateID')"
:ref=" :ref="