This commit is contained in:
2021-08-25 19:20:25 +00:00
parent b9f850c597
commit fabd69c0d8
4 changed files with 23 additions and 41 deletions

View File

@@ -64,7 +64,7 @@ export default {
data() {
return {
rights: window.$gz.role.defaultRightsObject(),
aType: window.$gz.type.PartInventory,
aType: window.$gz.type.PartInventoryDataList,
selectedItems: [],
clientCriteria: undefined,
preFilterMode: null,
@@ -102,7 +102,7 @@ async function clickHandler(menuItem) {
case "extensions":
let res = await m.vm.$refs.extensions.open(
m.vm.$refs.gzdatatable.getDataListSelection(
window.$gz.type.PartInventory
window.$gz.type.PartInventoryDataList
)
);
if (res && res.refresh == true) {
@@ -114,14 +114,17 @@ async function clickHandler(menuItem) {
//last report selected is in m.id
m.vm.$router.push({
name: "ay-report",
params: { recordid: m.id, ayatype: window.$gz.type.PartInventory }
params: {
recordid: m.id,
ayatype: window.$gz.type.PartInventoryDataList
}
});
} else {
//general report selector chosen
let res = await m.vm.$refs.reportSelector.open(
m.vm.$refs.gzdatatable.getDataListSelection(
window.$gz.type.PartInventory
window.$gz.type.PartInventoryDataList
)
);
@@ -136,7 +139,10 @@ async function clickHandler(menuItem) {
//Now open the report viewer...
m.vm.$router.push({
name: "ay-report",
params: { recordid: res.id, ayatype: window.$gz.type.PartInventory }
params: {
recordid: res.id,
ayatype: window.$gz.type.PartInventoryDataList
}
});
}
break;
@@ -161,7 +167,7 @@ function generateMenu(vm) {
helpUrl: "inv-part-inventory",
menuItems: [],
formData: {
ayaType: window.$gz.type.PartInventory
ayaType: window.$gz.type.PartInventoryDataList
}
};