This commit is contained in:
2021-05-07 19:48:36 +00:00
parent 6a306ce01d
commit 53766af9e4

View File

@@ -83,7 +83,9 @@
:readonly="formState.readOnly || isDeleted" :readonly="formState.readOnly || isDeleted"
:disabled="isDeleted" :disabled="isDeleted"
:label="$ay.t('WorkOrderItemScheduledUserEstimatedQuantity')" :label="$ay.t('WorkOrderItemScheduledUserEstimatedQuantity')"
ref="scheduledUsers.EstimatedQuantity" :ref="
`Items[${activeWoItemIndex}].scheduledUsers[${activeItemIndex}].estimatedQuantity`
"
data-cy="scheduledUsers.EstimatedQuantity" data-cy="scheduledUsers.EstimatedQuantity"
:error-messages=" :error-messages="
form().serverErrors( form().serverErrors(
@@ -92,8 +94,14 @@
) )
" "
:rules="[ :rules="[
form().decimalValid(this, 'scheduledUsers.EstimatedQuantity'), form().decimalValid(
form().required(this, 'scheduledUsers.EstimatedQuantity') this,
`Items[${activeWoItemIndex}].scheduledUsers[${activeItemIndex}].estimatedQuantity`
),
form().required(
this,
`Items[${activeWoItemIndex}].scheduledUsers[${activeItemIndex}].estimatedQuantity`
)
]" ]"
@input=" @input="
fieldValueChanged(`Items[${activeWoItemIndex}].scheduledUsers[ fieldValueChanged(`Items[${activeWoItemIndex}].scheduledUsers[