This commit is contained in:
@@ -732,7 +732,16 @@ async function clickHandler(menuItem) {
|
||||
}
|
||||
});
|
||||
break;
|
||||
|
||||
case "WorkOrderItemPartList":
|
||||
m.vm.$router.push({
|
||||
name: "svc-workorder-item-parts",
|
||||
params: {
|
||||
aType: m.vm.ayaType,
|
||||
objectId: m.vm.obj.id,
|
||||
name: m.vm.obj.partNumber
|
||||
}
|
||||
});
|
||||
break;
|
||||
default:
|
||||
window.$gz.eventBus.$emit(
|
||||
"notify-warning",
|
||||
@@ -857,6 +866,32 @@ function generateMenu(vm) {
|
||||
});
|
||||
}
|
||||
|
||||
//---- SHOW ALL ---
|
||||
menuOptions.menuItems.push({ divider: true, inset: false });
|
||||
|
||||
menuOptions.menuItems.push({
|
||||
title: "WorkOrderList", //note: technically it opens teh woitemunitlist not workorders but it's confusing in the UI otherwise and this is how people would think about it
|
||||
icon: "$ayiTools",
|
||||
key: FORM_KEY + ":WorkOrderItemPartList",
|
||||
vm: vm
|
||||
});
|
||||
|
||||
//MIGRATE_OUTSTANDING show all: workorderlist, unitlist, quotelist, pmlist
|
||||
|
||||
menuOptions.menuItems.push({
|
||||
title: "QuoteList",
|
||||
icon: "$ayiPencilAlt",
|
||||
key: FORM_KEY + ":QuoteList",
|
||||
vm: vm
|
||||
});
|
||||
|
||||
menuOptions.menuItems.push({
|
||||
title: "PMList",
|
||||
icon: "$ayiBusinessTime",
|
||||
key: FORM_KEY + ":PMList",
|
||||
vm: vm
|
||||
});
|
||||
|
||||
menuOptions.menuItems.push({ divider: true, inset: false });
|
||||
|
||||
window.$gz.eventBus.$emit("menu-change", menuOptions);
|
||||
|
||||
Reference in New Issue
Block a user