From 8eb8b026fa8289ee5a847c325736239537598c6e Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Thu, 27 May 2021 00:30:39 +0000 Subject: [PATCH] --- ayanova/devdocs/todo.txt | 2 +- .../src/components/work-order-item-loans.vue | 200 ++++++++++++------ ayanova/src/components/work-order-items.vue | 21 +- ayanova/src/views/svc-workorder.vue | 7 +- 4 files changed, 166 insertions(+), 64 deletions(-) diff --git a/ayanova/devdocs/todo.txt b/ayanova/devdocs/todo.txt index b510bde9..74849543 100644 --- a/ayanova/devdocs/todo.txt +++ b/ayanova/devdocs/todo.txt @@ -369,7 +369,7 @@ todo: strip all *viz fields from object before sending over the wire from client todo: mark for deletion with ONE record and no table?? how does that work? TODO: test new from scratch wo regularly - +todo: subrights test todo: Need a preset default for the workorder customization, right now it's just barfing up all fields diff --git a/ayanova/src/components/work-order-item-loans.vue b/ayanova/src/components/work-order-item-loans.vue index b049d976..08c222e4 100644 --- a/ayanova/src/components/work-order-item-loans.vue +++ b/ayanova/src/components/work-order-item-loans.vue @@ -5,7 +5,7 @@ @@ -489,6 +504,7 @@ import GzWoItemExpenses from "../components/work-order-item-expenses.vue"; import GzWoItemTasks from "../components/work-order-item-tasks.vue"; import GzWoItemParts from "../components/work-order-item-parts.vue"; import GzWoItemPartRequests from "../components/work-order-item-part-requests.vue"; +import GzWoItemLoans from "../components/work-order-item-loans.vue"; export default { components: { @@ -498,7 +514,8 @@ export default { GzWoItemTravels, GzWoItemTasks, GzWoItemParts, - GzWoItemPartRequests + GzWoItemPartRequests, + GzWoItemLoans }, created() { this.setDefaultView(); diff --git a/ayanova/src/views/svc-workorder.vue b/ayanova/src/views/svc-workorder.vue index a7bd268f..c8f47fe9 100644 --- a/ayanova/src/views/svc-workorder.vue +++ b/ayanova/src/views/svc-workorder.vue @@ -183,7 +183,8 @@ export default { allowedwostatus: [], woItemPriorities: [], woItemStatus: [], - woItemTaskCompletionTypes: [] + woItemTaskCompletionTypes: [], + loanUnitRateUnits: [] }, subRights: { items: { @@ -1908,6 +1909,10 @@ async function populateSelectionLists(vm) { "WorkorderItemTaskCompletionType" ); + await window.$gz.enums.fetchEnumList("LoanUnitRateUnit"); //prefetch + vm.selectLists.loanUnitRateUnits = window.$gz.enums.getSelectionList( + "LoanUnitRateUnit" + ); //--------- }