diff --git a/ayanova/devdocs/todo.txt b/ayanova/devdocs/todo.txt index 3df5a8db..fb1b69e2 100644 --- a/ayanova/devdocs/todo.txt +++ b/ayanova/devdocs/todo.txt @@ -51,36 +51,6 @@ https://www.ayanova.com/AyaNova7webHelp/index.html?dashboard.htm - Widgets to make for beta in order of priority **MUST HAVE*** - * LIST not scheduled work orders list for service manager [wo#], [date?best one],[customer],[summary] - criteria? - tags, currentstatus? - description: - "Not assigned provides links to service workorders that have not yet been assigned to any schedulable resources." - wo that is not a closed status, has no techs assigned to it in woitemscheduledusers (null or not extant) - oldest to newest in list, maybe just a limited number like most recent 50 or something - more button opens grid query for it if possible -Query stuff: - -SELECT AWORKORDER.SERIAL, - AWORKORDER.SERVICEDATE, - ACUSTOMER.NAME, - AWORKORDER.NOTES -FROM AWORKORDER -LEFT JOIN AWORKORDERITEM ON AWORKORDER.ID = AWORKORDERITEM.WORKORDERID -LEFT JOIN AWORKORDERITEMSCHEDULEDUSER ON AWORKORDERITEM.ID = AWORKORDERITEMSCHEDULEDUSER.WORKORDERITEMID -LEFT JOIN AWORKORDERSTATUS ON (AWORKORDER.LASTSTATUSID = AWORKORDERSTATUS.ID) -LEFT JOIN ACUSTOMER ON (AWORKORDER.CUSTOMERID = ACUSTOMER.ID) -WHERE (LASTSTATUSID IS NULL OR AWORKORDERSTATUS.COMPLETED = FALSE) - AND AWORKORDERITEMSCHEDULEDUSER.ID IS NULL - AND LASTSTATUSID = 2 -ORDER BY AWORKORDER.ID ASC - -SELECT count(*) -FROM aworkorder -LEFT JOIN AWORKORDERSTATUS ON (aworkorder.LASTSTATUSID = AWORKORDERSTATUS.ID) -WHERE (laststatusid is null or AWORKORDERSTATUS.completed = false) - - * LIST CSR's with OPEN status only in reverse chronological order for service manager * BAR/LINE Billed hours for all users available to service manager roles diff --git a/ayanova/src/api/dash-registry.js b/ayanova/src/api/dash-registry.js index c0d5205f..625946c0 100644 --- a/ayanova/src/api/dash-registry.js +++ b/ayanova/src/api/dash-registry.js @@ -1,10 +1,30 @@ import authorizationroles from "./authorizationroles"; const role = authorizationroles.AUTHORIZATION_ROLES; /* - + */ export default { registry: [ + { + roles: [ + role.BizAdmin, + role.BizAdminRestricted, + role.ServiceRestricted, + role.Service, + role.Tech, + role.TechRestricted + ], + title: "DashboardOpenCSR", + icon: "$ayiListAlt", + type: "GzDashCSROpenList", + singleOnly: false, + settings: { + customTitle: null, + wotags: [], + woitemtags: [], + wostatus: null + } + }, { roles: [ role.BizAdmin, diff --git a/ayanova/src/components/dash-csr-open-list.vue b/ayanova/src/components/dash-csr-open-list.vue new file mode 100644 index 00000000..1ca5a381 --- /dev/null +++ b/ayanova/src/components/dash-csr-open-list.vue @@ -0,0 +1,226 @@ + + diff --git a/ayanova/src/components/dash-workorder-unscheduled-open-list.vue b/ayanova/src/components/dash-workorder-unscheduled-open-list.vue index b5d34b74..1ca5a381 100644 --- a/ayanova/src/components/dash-workorder-unscheduled-open-list.vue +++ b/ayanova/src/components/dash-workorder-unscheduled-open-list.vue @@ -147,7 +147,6 @@ export default { }, async mounted() { //must be called from mounted to have refs available - //console.log("reminders-mounted"); await this.getDataFromApi(); }, methods: { diff --git a/ayanova/src/views/home-dashboard.vue b/ayanova/src/views/home-dashboard.vue index b5d31935..30876c95 100644 --- a/ayanova/src/views/home-dashboard.vue +++ b/ayanova/src/views/home-dashboard.vue @@ -89,6 +89,7 @@ import GzDashTodayReviews from "../components/dash-today-reviews.vue"; import GzDashLaborHoursPersonalLine from "../components/dash-labor-hours-personal-line.vue"; import GzDashLaborHoursPersonalBar from "../components/dash-labor-hours-personal-bar.vue"; import GzDashWorkorderUnscheduledOpenList from "../components/dash-workorder-unscheduled-open-list.vue"; +import GzDashCSROpenList from "../components/dash-csr-open-list"; export default { components: { @@ -97,7 +98,8 @@ export default { GzDashTodayScheduledWo, GzDashTodayReminders, GzDashTodayReviews, - GzDashWorkorderUnscheduledOpenList + GzDashWorkorderUnscheduledOpenList, + GzDashCSROpenList }, data() { return {