This commit is contained in:
2019-12-17 01:08:57 +00:00
parent 14c94b2242
commit 19f7a3c1f1
3 changed files with 90 additions and 1 deletions

View File

@@ -128,6 +128,91 @@ export default function initialize() {
key++
);
//****************** SERVICE
//clear sublevel arrays
subSub = [];
sub = [];
/**
*
* - WORKORDERS (was "service" in v7, now all "service" workorders are just workorders)
- ALL LEVELS
- NOTE: Either all levels still in menu at left here or somehow at right in separate boxes maybe, I like the idea of the in menu better with single right pane for simplicity
- TEMPLATES
- QUOTES
- See "Workorders" above same layout
- PREVENTIVE MAINTENANCE
- See "Workorders" above same layout
- UNITS
- UNIT MODELS
- CONTRACTS
- CUSTOMER SERVICE REQUESTS
- LOANERS (not 100% certain about this location for this item)
- SCHEDULE (all users not just current one)
*/
//WORKORDERS GROUP SUBITEMS
//WORKORDERS LIST (was service workorders)
subSub.push({
title: window.$gz.locale.get("WorkorderServiceList"),
icon: "tools",
route: "/workorders",
key: key++
});
//WORKORDER TEMPLATES LIST
subSub.push({
title: window.$gz.locale.get("WorkorderServiceTemplate"),
icon: "stamp",
route: "/workordertemplates",
key: key++
});
//WORKORDERS GROUP
sub.push({
title: window.$gz.locale.get("WorkorderServiceList"),
icon: "tools",
route: undefined,
navItems: subSub,
key: key++
});
//QUOTE GROUP SUBITEMS
subsub = [];
//QUOTE LIST
subSub.push({
title: window.$gz.locale.get("WorkorderQuoteList"),
icon: "edit",
route: "/quotes",
key: key++
});
//QUOTE TEMPLATES LIST
subSub.push({
title: window.$gz.locale.get("WorkorderQuoteTemplate"),
icon: "stamp",
route: "/quotetemplates",
key: key++
});
//QUOTE GROUP
sub.push({
title: window.$gz.locale.get("WorkorderQuoteList"),
icon: "edit",
route: undefined,
navItems: subSub,
key: key++
});
//Service (TOP GROUP)
addNavItem(
window.$gz.locale.get("Service"),
"toolbox",
undefined,
sub,
key++
);
//NOTE: If a user has read full record or better then they should have access to that area
// if (

View File

@@ -58,6 +58,10 @@ export default {
"Service",
"ClientList",
"HeadOfficeList",
"WorkorderServiceList",
"WorkorderServiceTemplate",
"WorkorderQuoteList",
"WorkorderQuoteTemplate",
//"Dispatch",
"Inventory",
"Accounting",