This commit is contained in:
2021-07-05 21:05:14 +00:00
parent fc2fb1a7de
commit b52add10d2
5 changed files with 43 additions and 19 deletions

View File

@@ -505,20 +505,6 @@ export default {
},
methods: {
async selectSerials() {
/*
TODO:
fetch current list of serials
remove already selected serials from that list
put into availableSerials
create selection dialog by adding datatable can select from checkboxes and ADD button
dialog is strictly for adding
when done sb able to view current available serials not selected, quickly pick them off and then add en-masse
*/
this.availableSerials.splice(0);
this.selectedSerials.splice(0);

View File

@@ -218,6 +218,43 @@
></v-col>
</template>
</v-row>
<!-- ################################################################################-->
<!-- ########################## BULK ADD UNITS FORM ###############################-->
<!-- ################################################################################-->
<template>
<v-row justify="center">
<v-dialog persistent max-width="600px" v-model="bulkUnitsDialog">
<v-card>
<v-card-title>
<v-btn text @click="bulkUnitsDialog = false" color="primary">{{
$ay.t("Cancel")
}}</v-btn>
<v-spacer></v-spacer>
<v-btn
:disabled="selectedBulkUnits.length == 0"
color="primary"
text
@click="addSelectedBulkUnits()"
>{{ $ay.t("Add") }}</v-btn
>
</v-card-title>
<v-card-text>
<gz-tag-picker
v-model="obj.tags"
@input="bulkUnitsSearch()"
></gz-tag-picker>
<v-select
v-model="selectedBulkUnits"
:items="availableBulkUnits"
:label="$ay.t('UnitList')"
multiple
></v-select>
</v-card-text>
</v-card>
</v-dialog>
</v-row>
</template>
</div>
</template>
<script>
@@ -232,7 +269,10 @@ export default {
data() {
return {
activeItemIndex: null,
selectedRow: []
selectedRow: [],
bulkUnitsDialog: false,
availableBulkUnits: [],
selectedBulkUnits: []
};
},
props: {