This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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."
|
||||
};
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
@@ -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: {
|
||||
|
||||
@@ -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;
|
||||
//************************************************************
|
||||
//**************************************************************
|
||||
//**************************************************************
|
||||
|
||||
Reference in New Issue
Block a user