This commit is contained in:
2019-12-27 20:19:04 +00:00
parent a5fc23c55d
commit 4016df08bb
5 changed files with 61 additions and 74 deletions

View File

@@ -49,8 +49,7 @@ SHELL / NAV / MENUS / LAYOUT
TODO: After testing on phone found following issues: TODO: After testing on phone found following issues:
- Customize form showing form field data types with ?? as not localized
- FormFieldDataTypesDateTime
- Service menu: - Service menu:
- Realized Workorders quotes etc are pushed down into a sub menu only because of the templates yet they will be super commonly accessed - Realized Workorders quotes etc are pushed down into a sub menu only because of the templates yet they will be super commonly accessed
- Maybe put all templates in their own submenu and keep the workorders quotes etc as top level under Service - Maybe put all templates in their own submenu and keep the workorders quotes etc as top level under Service
@@ -208,6 +207,8 @@ TODO: Trial route ui support in client
TODO: TIME ZONE MISMATCH MESSAGE TODO: TIME ZONE MISMATCH MESSAGE
- Time zone mismatch message sb localized and far shorter with an actionable link to that area of the client - Time zone mismatch message sb localized and far shorter with an actionable link to that area of the client
TODO: Workorder/quote/pm templates
- Put the link to access them into their own type, i.e. Workorder templates are accessed from either the grid listing workorders or inside an individual or perhaps BEST IDEA in the NEW menu where you pick a template !!!!!
TODO: Hover / hint text on copy log and log buttons (and possibly others?) TODO: Hover / hint text on copy log and log buttons (and possibly others?)

View File

@@ -150,87 +150,87 @@ export default function initialize() {
key: key++ key: key++
}); });
//WORKORDERS GROUP SUBITEMS
//WORKORDERS LIST (was service workorders) //WORKORDERS LIST (was service workorders)
subSub.push({ sub.push({
title: window.$gz.locale.get("WorkorderServiceList"), title: window.$gz.locale.get("WorkorderServiceList"),
icon: "tools", icon: "tools",
route: "/svc-workorders", route: "/svc-workorders",
key: key++ key: key++
}); });
//WORKORDER TEMPLATES LIST // //WORKORDER TEMPLATES LIST
subSub.push({ //this will be an item inside the workorders NEW menu or grid or wherever but it's not top level worthy
title: window.$gz.locale.get("WorkorderServiceTemplate"), // subSub.push({
icon: "stamp", // title: window.$gz.locale.get("WorkorderServiceTemplate"),
route: "/svc-workorder-templates", // icon: "stamp",
key: key++ // route: "/svc-workorder-templates",
}); // key: key++
// });
//WORKORDERS GROUP // //WORKORDERS GROUP
sub.push({ // sub.push({
title: window.$gz.locale.get("WorkorderServiceList"), // title: window.$gz.locale.get("WorkorderServiceList"),
icon: "tools", // icon: "tools",
route: undefined, // route: undefined,
navItems: subSub, // navItems: subSub,
key: key++ // key: key++
}); // });
//QUOTE GROUP SUBITEMS
subSub = [];
//QUOTE LIST //QUOTE LIST
subSub.push({ sub.push({
title: window.$gz.locale.get("WorkorderQuoteList"), title: window.$gz.locale.get("WorkorderQuoteList"),
icon: "edit", icon: "edit",
route: "/svc-quotes", route: "/svc-quotes",
key: key++ key: key++
}); });
//QUOTE TEMPLATES LIST // //QUOTE TEMPLATES LIST
subSub.push({ // subSub.push({
title: window.$gz.locale.get("WorkorderQuoteTemplate"), // title: window.$gz.locale.get("WorkorderQuoteTemplate"),
icon: "stamp", // icon: "stamp",
route: "/svc-quote-templates", // route: "/svc-quote-templates",
key: key++ // key: key++
}); // });
//QUOTE GROUP // //QUOTE GROUP
sub.push({ // sub.push({
title: window.$gz.locale.get("WorkorderQuoteList"), // title: window.$gz.locale.get("WorkorderQuoteList"),
icon: "edit", // icon: "edit",
route: undefined, // route: undefined,
navItems: subSub, // navItems: subSub,
key: key++ // key: key++
}); // });
//PM GROUP SUBITEMS //PM GROUP SUBITEMS
subSub = []; //subSub = [];
//PM LIST //PM LIST
subSub.push({ sub.push({
title: window.$gz.locale.get("WorkorderPreventiveMaintenanceList"), title: window.$gz.locale.get("WorkorderPreventiveMaintenanceList"),
icon: "business-time", icon: "business-time",
route: "/svc-pm-list", route: "/svc-pm-list",
key: key++ key: key++
}); });
//PM TEMPLATES LIST // //PM TEMPLATES LIST
subSub.push({ // subSub.push({
title: window.$gz.locale.get( // title: window.$gz.locale.get(
"WorkorderPreventiveMaintenanceTemplate" // "WorkorderPreventiveMaintenanceTemplate"
), // ),
icon: "stamp", // icon: "stamp",
route: "/svc-pm-templates", // route: "/svc-pm-templates",
key: key++ // key: key++
}); // });
//PM GROUP // //PM GROUP
sub.push({ // sub.push({
title: window.$gz.locale.get("WorkorderPreventiveMaintenanceList"), // title: window.$gz.locale.get("WorkorderPreventiveMaintenanceList"),
icon: "business-time", // icon: "business-time",
route: undefined, // route: undefined,
navItems: subSub, // navItems: subSub,
key: key++ // key: key++
}); // });
//UNITS subitem //UNITS subitem
sub.push({ sub.push({

View File

@@ -76,7 +76,7 @@ export default new Router({
component: () => component: () =>
import(/* webpackChunkName: "home" */ "./views/home-dashboard.vue") import(/* webpackChunkName: "home" */ "./views/home-dashboard.vue")
}, },
{ path: "/", redirect: "/login" }, { path: "/", redirect: "/login" }, //If someone goes blindly to the root of the app, then it should go to login
{ {
path: "/home-schedule", path: "/home-schedule",
name: "home-schedule", name: "home-schedule",

View File

@@ -105,7 +105,7 @@ export default {
"FormFieldDataTypesTrueFalse" "FormFieldDataTypesTrueFalse"
]; ];
window.$gz.locale.fetch(ltKeysRequired).then(next()); window.$gz.locale.fetch(ltKeysRequired).then(next);
}, },
beforeCreate() { beforeCreate() {
var vm = this; var vm = this;

View File

@@ -258,15 +258,8 @@ export default {
window.$gz.locale.fetch(ltKeysRequired).then( window.$gz.locale.fetch(ltKeysRequired).then(
//ensure cached any form customizations for this particular form //ensure cached any form customizations for this particular form
window.$gz.formCustomTemplate.get(FORM_CUSTOM_TEMPLATE_KEY).then(next()) window.$gz.formCustomTemplate.get(FORM_CUSTOM_TEMPLATE_KEY).then(next)
); );
// //very important as this in conjunction with the menu options means
// //navigation guards work properly by just sending people here
// next(() => {
// auth.logout();
// next();
// });
}, },
beforeCreate() { beforeCreate() {
var vm = this; var vm = this;
@@ -707,14 +700,7 @@ var JUST_DELETED = false;
////////////////////// //////////////////////
// //
// //
// function initForm(vm) { //
// return fetchLocaleText(vm).then(
// populatePickLists(vm).then(
// window.$gz.formcustomtemplate.get(FORM_CUSTOM_TEMPLATE_KEY)
// )
// );
// }
function initForm(vm) { function initForm(vm) {
return populatePickLists(vm); return populatePickLists(vm);
} }