From 8de0df4898944488849966757faecd3f21092ad1 Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Fri, 11 Jun 2021 21:27:00 +0000 Subject: [PATCH] --- .../src/components/work-order-item-labors.vue | 26 ++++---- .../src/components/work-order-item-loans.vue | 46 +++++-------- .../work-order-item-outside-services.vue | 66 ++++++++----------- .../src/components/work-order-item-parts.vue | 32 ++++----- .../work-order-item-scheduled-users.vue | 6 +- .../src/components/work-order-item-tasks.vue | 50 +++++--------- .../components/work-order-item-travels.vue | 32 ++++----- .../src/components/work-order-item-units.vue | 58 +++++++--------- 8 files changed, 126 insertions(+), 190 deletions(-) diff --git a/ayanova/src/components/work-order-item-labors.vue b/ayanova/src/components/work-order-item-labors.vue index c09b63da..70136eb6 100644 --- a/ayanova/src/components/work-order-item-labors.vue +++ b/ayanova/src/components/work-order-item-labors.vue @@ -180,9 +180,9 @@ ) ]" @input=" - fieldValueChanged(`Items[${activeWoItemIndex}].labors[ - ${activeItemIndex} - ].serviceRateQuantity`) + fieldValueChanged( + `Items[${activeWoItemIndex}].labors[${activeItemIndex}].serviceRateQuantity` + ) " > @@ -372,9 +372,9 @@ ) ]" @input=" - fieldValueChanged(`Items[${activeWoItemIndex}].labors[ - ${activeItemIndex} - ].priceOverride`) + fieldValueChanged( + `Items[${activeWoItemIndex}].labors[${activeItemIndex}].priceOverride` + ) " > @@ -394,21 +394,17 @@ :error-messages=" form().serverErrors( this, - `Items[${activeWoItemIndex}].labors[ - ${activeItemIndex} - ].serviceDetails` + `Items[${activeWoItemIndex}].labors[${activeItemIndex}].serviceDetails` ) " :ref=" - `Items[${activeWoItemIndex}].labors[ - ${activeItemIndex} - ].serviceDetails` + `Items[${activeWoItemIndex}].labors[${activeItemIndex}].serviceDetails` " data-cy="laborserviceDetails" @input=" - fieldValueChanged(`Items[${activeWoItemIndex}].labors[ - ${activeItemIndex} - ].serviceDetails`) + fieldValueChanged( + `Items[${activeWoItemIndex}].labors[${activeItemIndex}].serviceDetails` + ) " auto-grow > diff --git a/ayanova/src/components/work-order-item-loans.vue b/ayanova/src/components/work-order-item-loans.vue index c0f147d9..ba26364f 100644 --- a/ayanova/src/components/work-order-item-loans.vue +++ b/ayanova/src/components/work-order-item-loans.vue @@ -121,32 +121,24 @@ :readonly="formState.readOnly || isDeleted" :disabled="isDeleted" :label="$ay.t('WorkOrderItemLoanRate')" - :ref=" - `Items[${activeWoItemIndex}].loans[ - ${activeItemIndex} - ].rate` - " + :ref="`Items[${activeWoItemIndex}].loans[${activeItemIndex}].rate`" data-cy="loanUnitRateUnit" :rules="[ form().integerValid( this, - `Items[${activeWoItemIndex}].loans[ - ${activeItemIndex} - ].rate` + `Items[${activeWoItemIndex}].loans[${activeItemIndex}].rate` ) ]" :error-messages=" form().serverErrors( this, - `Items[${activeWoItemIndex}].loans[ - ${activeItemIndex} - ].rate` + `Items[${activeWoItemIndex}].loans[${activeItemIndex}].rate` ) " @input=" - fieldValueChanged(`Items[${activeWoItemIndex}].loans[ - ${activeItemIndex} - ].rate`) + fieldValueChanged( + `Items[${activeWoItemIndex}].loans[${activeItemIndex}].rate` + ) " @change="loanUnitRateUnitChange" > @@ -187,9 +179,9 @@ ) ]" @input=" - fieldValueChanged(`Items[${activeWoItemIndex}].loans[ - ${activeItemIndex} - ].quantity`) + fieldValueChanged( + `Items[${activeWoItemIndex}].loans[ ${activeItemIndex} ].quantity` + ) " > @@ -358,9 +350,9 @@ ) ]" @input=" - fieldValueChanged(`Items[${activeWoItemIndex}].loans[ - ${activeItemIndex} - ].priceOverride`) + fieldValueChanged( + `Items[${activeWoItemIndex}].loans[ ${activeItemIndex} ].priceOverride` + ) " > @@ -376,21 +368,17 @@ :error-messages=" form().serverErrors( this, - `Items[${activeWoItemIndex}].loans[ - ${activeItemIndex} - ].notes` + `Items[${activeWoItemIndex}].loans[ ${activeItemIndex} ].notes` ) " :ref=" - `Items[${activeWoItemIndex}].loans[ - ${activeItemIndex} - ].notes` + `Items[${activeWoItemIndex}].loans[ ${activeItemIndex} ].notes` " data-cy="loanUnitNotes" @input=" - fieldValueChanged(`Items[${activeWoItemIndex}].loans[ - ${activeItemIndex} - ].notes`) + fieldValueChanged( + `Items[${activeWoItemIndex}].loans[ ${activeItemIndex} ].notes` + ) " auto-grow > diff --git a/ayanova/src/components/work-order-item-outside-services.vue b/ayanova/src/components/work-order-item-outside-services.vue index a7bcca4c..caaee9fe 100644 --- a/ayanova/src/components/work-order-item-outside-services.vue +++ b/ayanova/src/components/work-order-item-outside-services.vue @@ -161,22 +161,18 @@ :disabled="isDeleted" :label="$ay.t('WorkOrderItemOutsideServiceRMANumber')" :ref=" - `Items[${activeWoItemIndex}].outsideServices[ - ${activeItemIndex} - ].rmaNumber` + `Items[${activeWoItemIndex}].outsideServices[ ${activeItemIndex} ].rmaNumber` " :error-messages=" form().serverErrors( this, - `Items[${activeWoItemIndex}].outsideServices[ - ${activeItemIndex} - ].rmaNumber` + `Items[${activeWoItemIndex}].outsideServices[ ${activeItemIndex} ].rmaNumber` ) " @input=" - fieldValueChanged(`Items[${activeWoItemIndex}].outsideServices[ - ${activeItemIndex} - ].rmaNumber`) + fieldValueChanged( + `Items[${activeWoItemIndex}].outsideServices[ ${activeItemIndex} ].rmaNumber` + ) " > @@ -213,9 +209,9 @@ ) ]" @input=" - fieldValueChanged(`Items[${activeWoItemIndex}].outsideServices[ - ${activeItemIndex} - ].repairCost`) + fieldValueChanged( + `Items[${activeWoItemIndex}].outsideServices[ ${activeItemIndex} ].repairCost` + ) " > @@ -253,9 +249,9 @@ ) ]" @input=" - fieldValueChanged(`Items[${activeWoItemIndex}].outsideServices[ - ${activeItemIndex} - ].repairPrice`) + fieldValueChanged( + `Items[${activeWoItemIndex}].outsideServices[ ${activeItemIndex} ].repairPrice` + ) " > @@ -316,22 +312,18 @@ :disabled="isDeleted" :label="$ay.t('WorkOrderItemOutsideServiceTrackingNumber')" :ref=" - `Items[${activeWoItemIndex}].outsideServices[ - ${activeItemIndex} - ].trackingNumber` + `Items[${activeWoItemIndex}].outsideServices[ ${activeItemIndex} ].trackingNumber` " :error-messages=" form().serverErrors( this, - `Items[${activeWoItemIndex}].outsideServices[ - ${activeItemIndex} - ].trackingNumber` + `Items[${activeWoItemIndex}].outsideServices[ ${activeItemIndex} ].trackingNumber` ) " @input=" - fieldValueChanged(`Items[${activeWoItemIndex}].outsideServices[ - ${activeItemIndex} - ].trackingNumber`) + fieldValueChanged( + `Items[${activeWoItemIndex}].outsideServices[ ${activeItemIndex} ].trackingNumber` + ) " > @@ -368,9 +360,9 @@ ) ]" @input=" - fieldValueChanged(`Items[${activeWoItemIndex}].outsideServices[ - ${activeItemIndex} - ].shippingCost`) + fieldValueChanged( + `Items[${activeWoItemIndex}].outsideServices[ ${activeItemIndex} ].shippingCost` + ) " > @@ -408,9 +400,9 @@ ) ]" @input=" - fieldValueChanged(`Items[${activeWoItemIndex}].outsideServices[ - ${activeItemIndex} - ].shippingPrice`) + fieldValueChanged( + `Items[${activeWoItemIndex}].outsideServices[ ${activeItemIndex} ].shippingPrice` + ) " > @@ -565,21 +557,17 @@ :error-messages=" form().serverErrors( this, - `Items[${activeWoItemIndex}].outsideServices[ - ${activeItemIndex} - ].notes` + `Items[${activeWoItemIndex}].outsideServices[ ${activeItemIndex} ].notes` ) " :ref=" - `Items[${activeWoItemIndex}].outsideServices[ - ${activeItemIndex} - ].notes` + `Items[${activeWoItemIndex}].outsideServices[ ${activeItemIndex} ].notes` " data-cy="outsideServiceNotes" @input=" - fieldValueChanged(`Items[${activeWoItemIndex}].outsideServices[ - ${activeItemIndex} - ].notes`) + fieldValueChanged( + `Items[${activeWoItemIndex}].outsideServices[ ${activeItemIndex} ].notes` + ) " auto-grow > diff --git a/ayanova/src/components/work-order-item-parts.vue b/ayanova/src/components/work-order-item-parts.vue index 7a234edf..22095889 100644 --- a/ayanova/src/components/work-order-item-parts.vue +++ b/ayanova/src/components/work-order-item-parts.vue @@ -106,9 +106,9 @@ ) ]" @input=" - fieldValueChanged(`Items[${activeWoItemIndex}].parts[ - ${activeItemIndex} - ].quantity`) + fieldValueChanged( + `Items[${activeWoItemIndex}].parts[ ${activeItemIndex} ].quantity` + ) " >