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