From 0c4aa5a92d037c897351d3b19935179e3a7c6739 Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Wed, 14 Jul 2021 22:46:48 +0000 Subject: [PATCH] --- ayanova/devdocs/todo.txt | 32 ++- ayanova/src/components/work-order-address.vue | 26 +-- ayanova/src/components/work-order-header.vue | 214 +++++++++++++----- .../src/components/work-order-signature.vue | 1 + 4 files changed, 197 insertions(+), 76 deletions(-) diff --git a/ayanova/devdocs/todo.txt b/ayanova/devdocs/todo.txt index b7c82204..e43c8ef3 100644 --- a/ayanova/devdocs/todo.txt +++ b/ayanova/devdocs/todo.txt @@ -426,22 +426,23 @@ CURRENTLY DOING: tasks: - Modify client to now show and / or prevent restricted actions - Maybe just mirror the UserIs* flags from server at client (or bring them with the work order for reporting dual usage as well??) - that way can consult the same basic fields and it's easier to remember and grok down the road + Modify client to not show and / or prevent restricted actions Hide sections / fields as required Test again and ensure it looks correct and works correct for each role Test each of the three restricted roles and one full role - UserIsRestrictedType - UserIsTechRestricted - UserIsSubContractorFull - UserIsSubContractorRestricted - UserCanViewPartCosts - UserCanViewLaborOrTravelRateCosts - UserCanViewLoanerCosts + value.userIsRestrictedType + value.userIsTechRestricted + value.userIsSubContractorFull + value.userIsSubContractorRestricted + value.userCanViewPartCosts + value.userCanViewLaborOrTravelRateCosts + value.userCanViewLoanerCosts + + value.userIsSubContractorFull || + value.userIsSubContractorRestricted @@ -461,6 +462,17 @@ Subcontractor / tech limited modifications todo: units on work order are not limited to customer on work order?? +todo: Status on work order doesn't seem to be preventing "Who can select" by role properly + Make it not present status that are not supposed to be available + put a back end rule in validation to prevent it as well + + Also, the seeded data roles are really fucked up and include some dubious roles and needs to also have some for tech - restricted specfically + i.e. they need to be logically correct as to what roles can select + + + + + TODO 1: Test address / units select alternate when have units working TODO 2: //MIGRATE_OUTSTANDING comment tag diff --git a/ayanova/src/components/work-order-address.vue b/ayanova/src/components/work-order-address.vue index 820cfdc5..c182ef2c 100644 --- a/ayanova/src/components/work-order-address.vue +++ b/ayanova/src/components/work-order-address.vue @@ -20,7 +20,7 @@ - +