This commit is contained in:
2021-07-09 19:57:43 +00:00
parent d3738e9548
commit 6da1177692
4 changed files with 47 additions and 18 deletions

View File

@@ -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 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 The tag will contain the description for each
todo: many biz objects are not using new PUT methodology 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 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.... 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:
CURRENTLY DOING: Two items below for Joyce, then do a build and release
todo: add new sample report templates emailed by Joyce
---release----
todo 2: Implement "Show All" feature for related objects todo 2: Implement "Show All" feature for related objects
@@ -1254,7 +1240,8 @@ BUILD 114
- Report list added NOTES field - Report list added NOTES field
- Reports added reports you sent friday July 9th - 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

View File

@@ -1,4 +1,4 @@
export default { export default {
version: "8.0.0-alpha.114", version: "8.0.0-alpha.115",
copyright: "© 1999-2021, Ground Zero Tech-Works Inc." copyright: "© 1999-2021, Ground Zero Tech-Works Inc."
}; };

View File

@@ -1399,6 +1399,16 @@ async function clickHandler(menuItem) {
params: { customerid: m.vm.obj.id, customername: m.vm.obj.name } params: { customerid: m.vm.obj.id, customername: m.vm.obj.name }
}); });
break; 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: default:
window.$gz.eventBus.$emit( window.$gz.eventBus.$emit(
"notify-warning", "notify-warning",

View File

@@ -53,6 +53,9 @@
:reload="reload" :reload="reload"
@selection-change="handleSelected" @selection-change="handleSelected"
data-cy="workordersTable" data-cy="workordersTable"
:client-criteria="clientCriteria"
:pre-filter-mode="preFilterMode"
@clear-pre-filter="clearPreFilter"
> >
</gz-data-table> </gz-data-table>
</div> </div>
@@ -65,6 +68,25 @@ export default {
this.rights = window.$gz.role.getRights(window.$gz.type.WorkOrder); this.rights = window.$gz.role.getRights(window.$gz.type.WorkOrder);
window.$gz.eventBus.$on("menu-click", clickHandler); window.$gz.eventBus.$on("menu-click", clickHandler);
await fetchTranslatedText(); 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); generateMenu(this);
}, },
beforeDestroy() { beforeDestroy() {
@@ -77,13 +99,23 @@ export default {
selectedItems: [], selectedItems: [],
reload: false, reload: false,
openDialog: false, openDialog: false,
openWoNumber: null openWoNumber: null,
clientCriteria: undefined,
preFilterMode: null,
objectId: null,
aForType: null,
name: null
}; };
}, },
methods: { methods: {
handleSelected(selected) { handleSelected(selected) {
this.selectedItems = selected; this.selectedItems = selected;
}, },
clearPreFilter() {
this.clientCriteria = null;
this.preFilterMode = null;
this.reload = !this.reload;
},
async openWo() { async openWo() {
if (!this.openWoNumber) { if (!this.openWoNumber) {