From 609a2a99f2bea51114bffd4bda1abe50a3b568ef Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Thu, 27 May 2021 17:22:15 +0000 Subject: [PATCH] --- .../src/components/work-order-item-units.vue | 13 ++----- ayanova/src/components/work-order-items.vue | 21 ++++++++++- ayanova/src/views/svc-workorder.vue | 37 ++++++++++++++++++- 3 files changed, 59 insertions(+), 12 deletions(-) diff --git a/ayanova/src/components/work-order-item-units.vue b/ayanova/src/components/work-order-item-units.vue index c2cf9f09..b4c0e87f 100644 --- a/ayanova/src/components/work-order-item-units.vue +++ b/ayanova/src/components/work-order-item-units.vue @@ -167,7 +167,7 @@ :form-key="formCustomTemplateKey" :readonly="formState.readOnly" :parent-v-m="this" - key-start-with="Items.WorkOrderItemUnitCustom" + key-start-with="WorkOrderItemUnitCustom" :ref=" `Items[${activeWoItemIndex}].units[ ${activeItemIndex} @@ -300,15 +300,10 @@ export default { } }, methods: { - userChange(newName) { + unitChange(newName) { this.value.items[this.activeWoItemIndex].units[ this.activeItemIndex - ].userViz = newName; - }, - rateChange(newName) { - this.value.items[this.activeWoItemIndex].units[ - this.activeItemIndex - ].serviceRateViz = newName; + ].unitViz = newName; }, newItem() { let newIndex = this.value.items[this.activeWoItemIndex].units.length; @@ -420,7 +415,7 @@ export default { if (this.form().showMe(this, "WorkOrderItemUnit")) { headers.push({ - text: this.$ay.t("WorkOrderItemUnit"), + text: this.$ay.t("Unit"), align: "left", value: "unitViz" }); diff --git a/ayanova/src/components/work-order-items.vue b/ayanova/src/components/work-order-items.vue index 4215beb7..6f007b02 100644 --- a/ayanova/src/components/work-order-items.vue +++ b/ayanova/src/components/work-order-items.vue @@ -321,7 +321,7 @@ :form-key="formCustomTemplateKey" :readonly="formState.readOnly" :parent-v-m="this" - key-start-with="Items.WorkOrderItemCustom" + key-start-with="WorkOrderItemCustom" :ref="`items[${activeItemIndex}].customFields`" data-cy="customFields" :error-messages=" @@ -360,7 +360,21 @@ GRANDCHILDREN ############################################################################ --> - + + +