From e8bd3be363052e4076b427d0ab922f9099ea2876 Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Mon, 12 Jul 2021 13:53:48 +0000 Subject: [PATCH] --- ayanova/devdocs/todo.txt | 29 +++++++++++++--------------- ayanova/src/views/home-dashboard.vue | 21 +++++++++++++++++++- 2 files changed, 33 insertions(+), 17 deletions(-) diff --git a/ayanova/devdocs/todo.txt b/ayanova/devdocs/todo.txt index c9b7a741..b76b7ae5 100644 --- a/ayanova/devdocs/todo.txt +++ b/ayanova/devdocs/todo.txt @@ -420,21 +420,17 @@ todo: many biz objects are not using new PUT methodology CURRENTLY DOING: -todo: show all, for most lists showing Work orders and the work order icon seems ok for things like project, customer etc however, - for a tech user it could show either scheduled or labor records so then would need more detailed clarification - But then that would potentially display in a confusing manner like when I tried to do workorderitemunits and it just shows "Units" and the icon is the same for Unit so it looks like - a link to a Units list not a workorderitemunits list - Need to determine a standard - look for "show all" and see whats available in trans keys - can I put a section header in menu to disambiguate it? - What if I used the work order icon for each but put differing text as needed if more than one sub item? - todo 2: Implement "Show All" feature for workorder lists as follows: - Use the work order icon but use the scheduled user or labor text unless they have unique icons separate from User in which case use them - WorkORderItemScheduledUserDataList - WorkOrderItemLaborDataList - labor and scheduled user records available from several places: Dashboard menu, schedule menu, also under Administration->Users for the benefit of users with rights to that - Shows obvs only if they are capable of being scheduled + Already implemented in admin-user but now need to replicate to personal user areas: + Schedule menu + Dashboard menu + + Copy the code from the admin-user menu but change the if statement to use the store.state.isScheduleableUser flag set on login + To show + WorkORderItemScheduledUserDataList + WorkOrderItemLaborDataList + + @@ -1226,6 +1222,7 @@ BUILD 115 - "WorkOrder" changed to "Work order" in all English translation keys that displayed it - Customer edit form "Work orders" menu item implemented to show all workorders list filtered by customer (replicates the "Show All" workorders feature from v7) - Unit edit form "Work orders" menu item implemented to show all WorkOrderItemUnit list filtered by unit (replicates the "Show All" workorders feature from v7) -- Loan unit edit form "Work orders" menu item implemented to show all WorkOrders list filtered by loan unit (replicates the "Show All" workorders feature from v7) +- Loan unit edit form "Work orders" menu item implemented to show all WorkOrderItemLoan list filtered by loan unit (replicates the "Show All" workorders feature from v7) - Project edit form "Work orders" menu item implemented to show all WorkOrders list filtered by project (new feature) -- Part edit form "Work orders" menu item implemented to show all WorkOrders list filtered by part (new feature) +- Part edit form "Work orders" menu item implemented to show all WorkOrderItemParts list filtered by part (new feature) +- User edit form "Scheduled Users" and "Labors" menu items implemented to show all workorderitem scheduled user and workorderitemlabor lists filtered by User (new feature) diff --git a/ayanova/src/views/home-dashboard.vue b/ayanova/src/views/home-dashboard.vue index 7e1d3d66..400d9ff1 100644 --- a/ayanova/src/views/home-dashboard.vue +++ b/ayanova/src/views/home-dashboard.vue @@ -328,7 +328,26 @@ async function clickHandler(menuItem) { case "add-dash": m.vm.showSelector = true; break; - + case "WorkOrderItemScheduledUserList": + m.vm.$router.push({ + name: "svc-workorder-item-scheduled-users", + params: { + aType: window.$gz.type.User, + objectId: m.vm.$store.state.userId, + name: m.vm.$store.state.userName + } + }); + break; + case "WorkOrderItemLaborList": + m.vm.$router.push({ + name: "svc-workorder-item-labors", + params: { + aType: window.$gz.type.User, + objectId: m.vm.$store.state.userId, + name: m.vm.$store.state.userName + } + }); + break; default: window.$gz.eventBus.$emit( "notify-warning",