This commit is contained in:
@@ -412,26 +412,37 @@
|
|||||||
<!-- ################################################################################-->
|
<!-- ################################################################################-->
|
||||||
<template>
|
<template>
|
||||||
<v-row justify="center">
|
<v-row justify="center">
|
||||||
<v-dialog max-width="600px" v-model="serialDialog">
|
<v-dialog persistent max-width="600px" v-model="serialDialog">
|
||||||
<v-card>
|
<v-card>
|
||||||
<v-card-title> </v-card-title>
|
<v-card-title>
|
||||||
<v-card-text>
|
|
||||||
serial picker / entry
|
|
||||||
</v-card-text>
|
|
||||||
<v-card-actions>
|
|
||||||
<v-btn text @click="serialDialog = false" color="primary">{{
|
<v-btn text @click="serialDialog = false" color="primary">{{
|
||||||
$ay.t("Cancel")
|
$ay.t("Cancel")
|
||||||
}}</v-btn>
|
}}</v-btn>
|
||||||
<v-spacer></v-spacer>
|
<v-spacer></v-spacer>
|
||||||
<!-- :disabled="selectedPartAssembly == null" -->
|
<!-- :disabled="selectedPartAssembly == null" -->
|
||||||
<v-btn
|
<v-btn color="primary" text @click="addSelectedSerials()">{{
|
||||||
color="primary"
|
$ay.t("Add")
|
||||||
text
|
}}</v-btn>
|
||||||
@click="addSelectedSerials()"
|
</v-card-title>
|
||||||
class="ml-4"
|
<v-card-text>
|
||||||
>{{ $ay.t("Add") }}</v-btn
|
<v-select
|
||||||
>
|
v-model="selectedSerials"
|
||||||
</v-card-actions>
|
:items="availableSerials"
|
||||||
|
:label="$ay.t('PartSerialNumbersAvailable')"
|
||||||
|
multiple
|
||||||
|
|
||||||
|
></v-select>
|
||||||
|
</v-card-text>
|
||||||
|
<!-- <v-card-actions>
|
||||||
|
<v-btn text @click="serialDialog = false" color="primary">{{
|
||||||
|
$ay.t("Cancel")
|
||||||
|
}}</v-btn>
|
||||||
|
<v-spacer></v-spacer>
|
||||||
|
|
||||||
|
<v-btn color="primary" text @click="addSelectedSerials()">{{
|
||||||
|
$ay.t("Add")
|
||||||
|
}}</v-btn>
|
||||||
|
</v-card-actions> -->
|
||||||
</v-card>
|
</v-card>
|
||||||
</v-dialog>
|
</v-dialog>
|
||||||
</v-row>
|
</v-row>
|
||||||
@@ -455,7 +466,8 @@ export default {
|
|||||||
selectedPartAssembly: null,
|
selectedPartAssembly: null,
|
||||||
selectedPartWarehouse: 1,
|
selectedPartWarehouse: 1,
|
||||||
serialDialog: false,
|
serialDialog: false,
|
||||||
availableSerials: []
|
availableSerials: [],
|
||||||
|
selectedSerials: []
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
props: {
|
props: {
|
||||||
@@ -529,11 +541,17 @@ export default {
|
|||||||
window.$gz.errorHandler.errorToString(res, this)
|
window.$gz.errorHandler.errorToString(res, this)
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
|
this.availableSerials = res.data;
|
||||||
|
|
||||||
|
for (let a = 0; a < 1000; a++) {
|
||||||
|
this.availableSerials.push(`serial-${a}`);
|
||||||
|
}
|
||||||
|
|
||||||
this.serialDialog = true;
|
this.serialDialog = true;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
addSelectedSerials() {
|
addSelectedSerials() {
|
||||||
|
console.log(this.selectedSerials);
|
||||||
},
|
},
|
||||||
async addPartAssembly() {
|
async addPartAssembly() {
|
||||||
let res = await window.$gz.api.get(
|
let res = await window.$gz.api.get(
|
||||||
|
|||||||
@@ -2136,7 +2136,8 @@ async function fetchTranslatedText(vm) {
|
|||||||
"TechSignature",
|
"TechSignature",
|
||||||
"Name",
|
"Name",
|
||||||
"PartAssemblyList",
|
"PartAssemblyList",
|
||||||
"PartAssembly"
|
"PartAssembly",
|
||||||
|
"PartSerialNumbersAvailable"
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user