This commit is contained in:
@@ -18,7 +18,7 @@
|
|||||||
<template v-if="!item.route">
|
<template v-if="!item.route">
|
||||||
<v-list-group
|
<v-list-group
|
||||||
:prepend-icon="'fa-' + item.icon"
|
:prepend-icon="'fa-' + item.icon"
|
||||||
value="true"
|
value="false"
|
||||||
:key="item.key"
|
:key="item.key"
|
||||||
>
|
>
|
||||||
<template v-slot:activator>
|
<template v-slot:activator>
|
||||||
|
|||||||
@@ -128,6 +128,91 @@ export default function initialize() {
|
|||||||
key++
|
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
|
//NOTE: If a user has read full record or better then they should have access to that area
|
||||||
|
|
||||||
// if (
|
// if (
|
||||||
|
|||||||
@@ -58,6 +58,10 @@ export default {
|
|||||||
"Service",
|
"Service",
|
||||||
"ClientList",
|
"ClientList",
|
||||||
"HeadOfficeList",
|
"HeadOfficeList",
|
||||||
|
"WorkorderServiceList",
|
||||||
|
"WorkorderServiceTemplate",
|
||||||
|
"WorkorderQuoteList",
|
||||||
|
"WorkorderQuoteTemplate",
|
||||||
//"Dispatch",
|
//"Dispatch",
|
||||||
"Inventory",
|
"Inventory",
|
||||||
"Accounting",
|
"Accounting",
|
||||||
|
|||||||
Reference in New Issue
Block a user