From 811d0f2eda6937e781f518680f5c1e4387b990a6 Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Thu, 29 Jul 2021 23:49:16 +0000 Subject: [PATCH] --- ayanova/devdocs/todo.txt | 7 ++++--- ayanova/src/components/days-of-week-control.vue | 4 ++-- ayanova/src/views/svc-pm.vue | 5 ++--- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/ayanova/devdocs/todo.txt b/ayanova/devdocs/todo.txt index b2ca472b..9254ba63 100644 --- a/ayanova/devdocs/todo.txt +++ b/ayanova/devdocs/todo.txt @@ -508,8 +508,7 @@ todo:2 many biz objects are not using new PUT methodology CURRENTLY DOING: PM stuff: - - back end biz job to actually do the generation + Clean up notification for PM's and Quotes as they are filled with service wo shit Pore over quote and PM and look for workorder remnants, particularly biz actions and rules Add back end rules as necessary for quotes and PM's @@ -609,12 +608,14 @@ todo MISC: shouldn't it skip this one like the others do?? shouldn't it not prompt if it's a not filled in new wo anyway?? during Save of workorder it should not be available for entry as it can take some time to process and user could fuck off in the middle of it + maybe a "Saving..." toast / popup and overlay to prevent fuckery?? Duplicate to self menu option in pm/wo/quote should prompt for attachments and wiki just like it does for the other types I know this means another dialog, maybe need a single "Universal" type dialog instead on each of them and just push in the TO object type name needed though for consistency and to give the option Confirm all duped types can save when created, think I saw an error when I saved one of them test dupe from all three for all types and confirm - + PM repeat interval chooser has units in alpha order so days before minutes etc, sb in incremental natural order + maybe can sort by ID instead?? diff --git a/ayanova/src/components/days-of-week-control.vue b/ayanova/src/components/days-of-week-control.vue index 529e7224..340d0335 100644 --- a/ayanova/src/components/days-of-week-control.vue +++ b/ayanova/src/components/days-of-week-control.vue @@ -23,8 +23,8 @@ export default { async created() { - await window.$gz.enums.fetchEnumList("DaysOfWeek"); - this.daysOfWeek = window.$gz.enums.getSelectionList("DaysOfWeek"); + await window.$gz.enums.fetchEnumList("AyaDaysOfWeek"); + this.daysOfWeek = window.$gz.enums.getSelectionList("AyaDaysOfWeek"); }, data() { return { diff --git a/ayanova/src/views/svc-pm.vue b/ayanova/src/views/svc-pm.vue index 3f4d8fcc..cc1b24ce 100644 --- a/ayanova/src/views/svc-pm.vue +++ b/ayanova/src/views/svc-pm.vue @@ -266,7 +266,6 @@ export default { latitude: null, longitude: null, items: [], - states: [], isDirty: true, isLockedAtServer: false, alertViz: null @@ -800,7 +799,7 @@ async function saveHeader(vm) { //the purpose of this is to remove the child collections so only the header itself is submitted //this was the cleanest way I could find to accomplish this //https://stackoverflow.com/a/58206483/8939 - const { items: removedKey1, states: removedKey2, ...headerOnly } = vm.obj; + const { items: removedKey1, ...headerOnly } = vm.obj; //remove *Viz keys so they don't generate traffic headerOnly.alertViz = undefined; @@ -829,7 +828,7 @@ async function saveHeader(vm) { vm.obj.id = res.data.id; vm.obj.serial = res.data.serial; //walk all unsaved direct children and set the id so they can save - vm.obj.states.forEach(z => (z.pmId = vm.obj.id)); + vm.obj.items.forEach(z => (z.pmId = vm.obj.id)); } }