diff --git a/ayanova/devdocs/todo.txt b/ayanova/devdocs/todo.txt index 7eb92d52..fb2ae86a 100644 --- a/ayanova/devdocs/todo.txt +++ b/ayanova/devdocs/todo.txt @@ -404,9 +404,6 @@ TODO: //MIGRATE_OUTSTANDING comment tag search for this comment tag as it will contain items that could not be done until other items were migrated first The tag will contain the description for each - - - todo: many biz objects are not using new PUT methodology Might be because new methodology assumes complete PUT object as a entire replacement not a partial update some of these objects (User) do partial updates so.... @@ -421,18 +418,7 @@ todo: many biz objects are not using new PUT methodology ######################################################################################################################## - -CURRENTLY DOING: Two items below for Joyce, then do a build and release - - - - -todo: add new sample report templates emailed by Joyce - - ----release---- - - +CURRENTLY DOING: todo 2: Implement "Show All" feature for related objects @@ -1254,7 +1240,8 @@ BUILD 114 - Report list added NOTES field - Reports added reports you sent friday July 9th -- De-Widgetified +- De-Widgetification round 1 + removed from main menu, removed from Seeder, lot's of other places to go diff --git a/ayanova/src/api/ayanova-version.js b/ayanova/src/api/ayanova-version.js index ec7f0017..bcd784a0 100644 --- a/ayanova/src/api/ayanova-version.js +++ b/ayanova/src/api/ayanova-version.js @@ -1,4 +1,4 @@ export default { - version: "8.0.0-alpha.114", + version: "8.0.0-alpha.115", copyright: "© 1999-2021, Ground Zero Tech-Works Inc." }; diff --git a/ayanova/src/views/cust-customer.vue b/ayanova/src/views/cust-customer.vue index 92cd36a4..18c423f6 100644 --- a/ayanova/src/views/cust-customer.vue +++ b/ayanova/src/views/cust-customer.vue @@ -1399,6 +1399,16 @@ async function clickHandler(menuItem) { params: { customerid: m.vm.obj.id, customername: m.vm.obj.name } }); break; + case "WorkOrderList": + m.vm.$router.push({ + name: "svc-workorders", + params: { + aType: m.vm.ayaType, + objectId: m.vm.obj.id, + name: m.vm.obj.name + } + }); + break; default: window.$gz.eventBus.$emit( "notify-warning", diff --git a/ayanova/src/views/svc-workorders.vue b/ayanova/src/views/svc-workorders.vue index b02e0ca4..a9af4699 100644 --- a/ayanova/src/views/svc-workorders.vue +++ b/ayanova/src/views/svc-workorders.vue @@ -53,6 +53,9 @@ :reload="reload" @selection-change="handleSelected" data-cy="workordersTable" + :client-criteria="clientCriteria" + :pre-filter-mode="preFilterMode" + @clear-pre-filter="clearPreFilter" > @@ -65,6 +68,25 @@ export default { this.rights = window.$gz.role.getRights(window.$gz.type.WorkOrder); window.$gz.eventBus.$on("menu-click", clickHandler); await fetchTranslatedText(); + + //OPTIONAL "Show All" FILTER + this.objectId = window.$gz.util.stringToIntOrNull( + this.$route.params.objectId + ); + this.aForType = window.$gz.util.stringToIntOrNull(this.$route.params.aType); + + if (this.objectId && this.objectId != 0 && this.aForType) { + //OBJECTID,AYATYPE + this.clientCriteria = `${this.objectId},${this.aForType}`; + + this.preFilterMode = { + icon: window.$gz.util.iconForType(this.aForType), + id: this.objectId, + ayatype: this.aForType, + viz: this.$route.params.name, + clearable: true + }; + } generateMenu(this); }, beforeDestroy() { @@ -77,13 +99,23 @@ export default { selectedItems: [], reload: false, openDialog: false, - openWoNumber: null + openWoNumber: null, + clientCriteria: undefined, + preFilterMode: null, + objectId: null, + aForType: null, + name: null }; }, methods: { handleSelected(selected) { this.selectedItems = selected; }, + clearPreFilter() { + this.clientCriteria = null; + this.preFilterMode = null; + this.reload = !this.reload; + }, async openWo() { if (!this.openWoNumber) {