This commit is contained in:
2021-07-09 22:14:39 +00:00
parent 4c09edee2a
commit ad36de371a
4 changed files with 56 additions and 6 deletions

View File

@@ -1282,6 +1282,16 @@ async function clickHandler(menuItem) {
postCode: m.vm.obj.postCode
});
break;
case "WorkOrderItemUnitList":
m.vm.$router.push({
name: "svc-workorder-item-units",
params: {
aType: m.vm.ayaType,
objectId: m.vm.obj.id,
name: m.vm.obj.serial
}
});
break;
default:
window.$gz.eventBus.$emit(
"notify-warning",
@@ -1378,14 +1388,16 @@ function generateMenu(vm) {
});
//---- SHOW ALL ---
//MIGRATE_OUTSTANDING show all: workorderlist, unitlist, quotelist, pmlist
menuOptions.menuItems.push({
title: "WorkOrderList",
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 + ":WorkOrderList",
key: FORM_KEY + ":WorkOrderItemUnitList",
vm: vm
});
//MIGRATE_OUTSTANDING show all: workorderlist, unitlist, quotelist, pmlist
menuOptions.menuItems.push({
title: "QuoteList",
icon: "$ayiPencilAlt",