This commit is contained in:
2021-04-09 22:13:26 +00:00
parent c8e22294dc
commit a955945f9e
4 changed files with 22 additions and 116 deletions

View File

@@ -106,94 +106,4 @@ export default {
}
}
};
/*
data: {
id: 10,
concurrency: 7713074,
serial: 10,
notes:
"Sequi quia est occaecati vel aperiam dicta praesentium velit et.",
wiki: null,
customFields: null,
tags: ["orange", "violet"],
customerId: 14,
projectId: null,
internalReferenceNumber: "irf-4603",
customerReferenceNumber: "crf-4720",
customerContactName: "contact name here",
fromQuoteId: null,
fromPMId: null,
fromCSRId: null,
serviceDate: "2020-09-03T03:06:41.238542Z",
completeByDate: "2020-09-08T03:06:41.238542Z",
invoiceNumber: null,
customerSignature: null,
customerSignatureName: null,
customerSignatureCaptured: "0001-01-01T00:00:00Z",
postAddress: null,
postCity: null,
postRegion: null,
postCountry: null,
postCode: null,
address: null,
city: null,
region: null,
country: null,
latitude: null,
longitude: null,
items: [
{
id: 20,
concurrency: 7713074,
notes: "itemnotes",
wiki: null,
customFields: null,
tags: [],
workOrderId: 10,
techNotes: "technotes",
workorderItemStatusId: null,
workorderItemPriorityId: null,
requestDate: "2020-09-03T03:06:41.238542Z",
warrantyService: false,
isDirty: false,
expenses: [],
labors: [],
loans: [],
parts: [],
partRequests: [],
scheduledUsers: [
{
id: 39,
concurrency: 7713074,
userId: 30,
estimatedQuantity: 1,
startDate: null,
stopDate: null,
serviceRateId: null,
isDirty: false,
workOrderItemId: 20
},
{
id: 40,
concurrency: 7713074,
userId: 10,
estimatedQuantity: 2,
startDate: null,
stopDate: null,
serviceRateId: null,
isDirty: false,
workOrderItemId: 20
}
],
tasks: [],
travels: [],
units: [],
outsideServices: []
}
],
states: [],
isDirty: false
}
}
*/
</script>

View File

@@ -88,12 +88,7 @@
/////////////////////////////////////////////////////////////////////////////////////////////////////////////
/* XXXeslint-disable */
////////////////////////////////////////////////////////////////////////////////////////////////////////////
/*
todo: sometimes grid row is not highlighted when edit form is exposed to match
I think after a new record is added it's not highlighting, needs some id wizardry I think
*/
export default {
data() {
return {

View File

@@ -96,27 +96,7 @@
/* XXXeslint-disable */
////////////////////////////////////////////////////////////////////////////////////////////////////////////
import GzWoItemScheduledUsers from "../components/work-order-item-scheduled-users.vue";
/*
todo: delete at shell must walk graph backwards where save would be forwards so delete break out into separate methods called first
todo: stop using parent vm directly to control state in graph and instead pass down values via props to children and pass up values to parent via events
https://www.smashingmagazine.com/2020/01/data-components-vue-js/
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
e.g. can projects title be turned to a hyper link to projects list
ideally not in menu because it would be a lot on a workorder and need space for wo graph subitem links
todo: need an editable control at every level for proper test of partial update
todo: highlight currently selected row, mobile and full
todo: failed saved on a grandchild item shouldn't preclude the rest saving
e.g. if there is a concurrency error on a child that shouldn't block the rest but a fatal error probably should
todo: do we need a dirty indicator at every level??
todo: "delete selected item" text instead of "Delete" for subitems
*/
export default {
components: {
GzWoItemScheduledUsers