From 1c0f30b73fa7116457f0a034d557fa2a2277c5f4 Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Tue, 6 Jul 2021 18:55:52 +0000 Subject: [PATCH] --- .../src/components/work-order-item-units.vue | 73 +++++++++++++------ 1 file changed, 49 insertions(+), 24 deletions(-) diff --git a/ayanova/src/components/work-order-item-units.vue b/ayanova/src/components/work-order-item-units.vue index 4a570d5b..6b794ec7 100644 --- a/ayanova/src/components/work-order-item-units.vue +++ b/ayanova/src/components/work-order-item-units.vue @@ -21,7 +21,7 @@ {{ $ay.t("New") }} - + $ayiFan @@ -233,7 +233,40 @@ - + + + + + + + + + + {{ $ay.t("Cancel") }} @@ -252,27 +285,7 @@ @click="addSelectedBulkUnits()" >{{ $ay.t("Add") }} - - - - - - - + @@ -296,7 +309,8 @@ export default { selectedBulkUnitCustomer: this.value.customerId, availableBulkUnits: [], selectedBulkUnits: [], - selectedBulkUnitTags: [] + selectedBulkUnitTags: [], + bulkUnitTableHeaders: [] }; }, props: { @@ -346,6 +360,16 @@ export default { } }, methods: { + showBulkUnitsDialog() { + if (this.bulkUnitTableHeaders.length == 0) { + //init bulk table headers + this.bulkUnitTableHeaders = [ + { text: this.$ay.t("Customer"), value: "customerName" }, + { text: this.$ay.t("Unit"), value: "unitSerial" } + ]; + } + this.bulkUnitsDialog = true; + }, async bulkUnitsSearch() { this.selectedBulkUnits.splice(0); this.availableBulkUnits.splice(0); @@ -363,6 +387,7 @@ export default { this.availableBulkUnits = res.data; } }, + addSelectedBulkUnits() { if (res.data && res.data.items) { let newIndex = this.value.items[this.activeWoItemIndex].parts.length;