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;