diff --git a/ayanova/src/components/work-order-items.vue b/ayanova/src/components/work-order-items.vue index 062e9aa2..0d89bddb 100644 --- a/ayanova/src/components/work-order-items.vue +++ b/ayanova/src/components/work-order-items.vue @@ -52,9 +52,12 @@ so if you forgot if you entered a particular user or not in the midst of entry you can see it just above + todo: need to implement layered (ordered) save now so can test todo: need an editable control at every level for proper test of partical update todo: need the state control at least enough to test as it's a critical part todo: need dirty tracking stuff for each level to set / check so top level save can know what to update + do I need "IsNew" as well?? or can I infer that somehow (no concurrency) + USAGE NOTES: v-if should always be as high up as possible for performance, so don't let a component decide to render, make the parent do the v-if!! diff --git a/ayanova/src/views/svc-workorder.vue b/ayanova/src/views/svc-workorder.vue index d3b34726..e4b0f981 100644 --- a/ayanova/src/views/svc-workorder.vue +++ b/ayanova/src/views/svc-workorder.vue @@ -397,6 +397,12 @@ export default { //clear any errors vm might be around from previous submit window.$gz.form.deleteAllErrorBoxErrors(vm); + //############################### + //walk the tree and save dirty + //items in order starting with + //state here + //############################### + let res = await window.$gz.api.upsert(url, vm.obj); if (res.error) {