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

@@ -422,8 +422,6 @@ todo: many biz objects are not using new PUT methodology
CURRENTLY DOING:
todo 2-3: cases 3501 / 3867 both - bulk add units by tag
Do this as a separate popup dialog accessible from woitemunits list menu
It will do a search by tag for units and create a woitemunit record for each one found

View File

@@ -1,4 +1,4 @@
export default {
version: "8.0.0-alpha.112",
version: "8.0.0-alpha.113",
copyright: "© 1999-2021, Ground Zero Tech-Works Inc."
};

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: {

View File

@@ -68,7 +68,7 @@ import chartBarHorizontalControl from "./components/chart-bar-horizontal-control
//DEVELOPMENT MODE
//THIS SHOULD BE FALSE IN RELEASE
//************************************************************
const DEV_MODE = false;
const DEV_MODE = true;
//************************************************************
//**************************************************************
//**************************************************************