This commit is contained in:
2021-04-09 22:49:39 +00:00
parent 8b474278ee
commit 5cacc87493
2 changed files with 8 additions and 18 deletions

View File

@@ -220,30 +220,17 @@ todo: many biz objects are not using new PUT methodology
CURRENTLY DOING:
BIG PICTURE STUFF
- test full graph partial updating system
- confirm Create, Retrieve, Update, Delete works completely
- try to start with a new workorder if possible
- make minimal front end enough for POC wokorder->
woitem ->
woitemscheduleduser collection
wostate
- test out, confirm can CRUD as planned independantly and all at once
- will need some dirty fields and viz fields likely added to models so go minimal route as possible to POC it
- NEED editable field at every level to test out the updating and partial updating process
- ability to create from nothing implement whatever is minimally necessary to get it to work and do full crud test at all layers
- test out, confirm can CRUD as planned independantly and all at once
- once pass this step then second pass at new features that affect models (not necessarily UI stuff just fields required etc)
shouldn't be too much as already did that when recently fleshed out models but no doubt missed much
- then full in front end and flow out to back end as required, remove any backend that was a defunct evolutionary path so no cruft left around
- Keep working on front and back responds to front needs as I go
- load and stress test on client
- Skip links when it gets big:
https://www.voorhoede.nl/en/blog/why-skip-links-are-important-for-accessibility/
CURRENT ACTIONABLE TODOS
todo: on init:
//If there is a single woitem then select it otherwise keep it clean and empty by not selecting thus not showing
//edit form as per design
todo: can I turn control labels into hyperlinks for getting to feeder records? If not then need to find a way to accomplish it
e.g. can workorder status title be changed to a hyper link to status list
@@ -320,6 +307,9 @@ todo: Viz fields - calculate totals etc
todo: Should workorderitemloan be included in contract discounting system??
i.e. should *anything* that can be charged for on a workorder and which you don't directly enter a price (like outside service) be part of contracting system??
todo: - Skip links when it gets big ??:
https://www.voorhoede.nl/en/blog/why-skip-links-are-important-for-accessibility/
------------------------------------------

View File

@@ -170,7 +170,7 @@ export default {
},
setDefaultView: function() {
//if only one record left then display it otherwise just let the datatable show what the user can click on
if (this.value.items.length == 1) {
if (this.value && this.value.items && this.value.items.length == 1) {
this.selectedRow = [{ index: 0 }];
this.activeItemIndex = 0;
} else {
@@ -307,7 +307,7 @@ and it's probably not a big list to fill anyway
return this.pvm.formCustomTemplateKey;
},
showTable: function() {
return this.value.items.length > 1;
return this.value && this.value.items && this.value.items.length > 1;
},
canAdd: function() {
return (