This commit is contained in:
@@ -385,6 +385,7 @@ todo: many biz objects are not using new PUT methodology
|
|||||||
|
|
||||||
CURRENTLY DOING: Work order notifications - PartRequested
|
CURRENTLY DOING: Work order notifications - PartRequested
|
||||||
|
|
||||||
|
bugbug: new wokrorder adding new item of any kind doesn't trigger dirty
|
||||||
|
|
||||||
bugubg: completely fresh workorder riddled with errors when attempting to create one of each type of record
|
bugubg: completely fresh workorder riddled with errors when attempting to create one of each type of record
|
||||||
expense -> tax code is required in sql but not in UI WTF?
|
expense -> tax code is required in sql but not in UI WTF?
|
||||||
@@ -1303,6 +1304,9 @@ build 110
|
|||||||
ScheduledOnWorkorder
|
ScheduledOnWorkorder
|
||||||
ScheduledOnWorkorderImminent
|
ScheduledOnWorkorderImminent
|
||||||
WorkorderCompletedStatusOverdue
|
WorkorderCompletedStatusOverdue
|
||||||
|
|
||||||
|
- standard object CRUD notifications implemented for all workorder tree objects
|
||||||
|
(note that child items in workorder tree that don't have their own tags [all but items and workorder item units] will use the work order header tags for determining notification)
|
||||||
|
|
||||||
- Removed all visible references to Service Bank feature from all forms and front and back end
|
- Removed all visible references to Service Bank feature from all forms and front and back end
|
||||||
|
|
||||||
|
|||||||
@@ -47,17 +47,9 @@ function isNumber(n) {
|
|||||||
// Get control from ref
|
// Get control from ref
|
||||||
//
|
//
|
||||||
function getControl(vm, ref) {
|
function getControl(vm, ref) {
|
||||||
|
//NOTE: Due to automatic code formatting some refs will come here with newlines in them resulting in no matches
|
||||||
|
ref = ref.replace(/\s/g, "");
|
||||||
let ctrl = vm.$refs[ref];
|
let ctrl = vm.$refs[ref];
|
||||||
|
|
||||||
//I don't think this is required anymore
|
|
||||||
// if (ctrl === undefined) {
|
|
||||||
// //it's either a sub field in custom fields component or it's a coding error
|
|
||||||
// let customFields = vm.$refs["customFields"];
|
|
||||||
// if (customFields !== undefined) {
|
|
||||||
// ctrl = customFields.$refs[ref];
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
|
|
||||||
return ctrl;
|
return ctrl;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -807,6 +799,8 @@ export default {
|
|||||||
if (formReference == undefined) {
|
if (formReference == undefined) {
|
||||||
formControl = vm.$refs.form;
|
formControl = vm.$refs.form;
|
||||||
} else {
|
} else {
|
||||||
|
//NOTE: Due to automatic code formatting some refs will come here with newlines in them resulting in no matches
|
||||||
|
formReference = formReference.replace(/\s/g, "");
|
||||||
formControl = vm.$refs[formReference];
|
formControl = vm.$refs[formReference];
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1006,6 +1000,8 @@ export default {
|
|||||||
// Get validity of referenced control
|
// Get validity of referenced control
|
||||||
//
|
//
|
||||||
controlIsValid(vm, ref) {
|
controlIsValid(vm, ref) {
|
||||||
|
//NOTE: Due to automatic code formatting some refs will come here with newlines in them resulting in no matches
|
||||||
|
ref = ref.replace(/\s/g, "");
|
||||||
if (vm.$refs[ref]) {
|
if (vm.$refs[ref]) {
|
||||||
return vm.$refs[ref].valid;
|
return vm.$refs[ref].valid;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -90,6 +90,14 @@
|
|||||||
`Items[${activeWoItemIndex}].units[${activeItemIndex}].unitId`
|
`Items[${activeWoItemIndex}].units[${activeItemIndex}].unitId`
|
||||||
"
|
"
|
||||||
data-cy="units.unitId"
|
data-cy="units.unitId"
|
||||||
|
:rules="[
|
||||||
|
form().required(
|
||||||
|
this,
|
||||||
|
`Items[${activeWoItemIndex}].units[
|
||||||
|
${activeItemIndex}
|
||||||
|
].unitId`
|
||||||
|
)
|
||||||
|
]"
|
||||||
:error-messages="
|
:error-messages="
|
||||||
form().serverErrors(
|
form().serverErrors(
|
||||||
this,
|
this,
|
||||||
|
|||||||
@@ -789,6 +789,8 @@ export default {
|
|||||||
this.$emit("change");
|
this.$emit("change");
|
||||||
this.selectedRow = [{ index: newIndex }];
|
this.selectedRow = [{ index: newIndex }];
|
||||||
this.activeItemIndex = newIndex;
|
this.activeItemIndex = newIndex;
|
||||||
|
//trigger rule breaking / validation
|
||||||
|
this.fieldValueChanged(`items[${this.activeItemIndex}].notes`);
|
||||||
},
|
},
|
||||||
unDeleteItem() {
|
unDeleteItem() {
|
||||||
this.value.items[this.activeItemIndex].deleted = false;
|
this.value.items[this.activeItemIndex].deleted = false;
|
||||||
|
|||||||
@@ -14,6 +14,7 @@
|
|||||||
data-cy="woHeader"
|
data-cy="woHeader"
|
||||||
@change="setDirty()"
|
@change="setDirty()"
|
||||||
/>
|
/>
|
||||||
|
{{ formState }}
|
||||||
<GzWoItems
|
<GzWoItems
|
||||||
v-model="obj"
|
v-model="obj"
|
||||||
:form-key="formCustomTemplateKey"
|
:form-key="formCustomTemplateKey"
|
||||||
@@ -349,7 +350,12 @@ export default {
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
setDirty: function() {
|
setDirty: function() {
|
||||||
|
//console.log("WO HEADER SET DIRTY!! TRIGGERED");
|
||||||
this.formState.dirty = true;
|
this.formState.dirty = true;
|
||||||
|
// window.$gz.form.setFormState({
|
||||||
|
// vm: this,
|
||||||
|
// dirty: true
|
||||||
|
// });
|
||||||
},
|
},
|
||||||
canSave: function() {
|
canSave: function() {
|
||||||
return this.formState.valid && this.formState.dirty;
|
return this.formState.valid && this.formState.dirty;
|
||||||
|
|||||||
Reference in New Issue
Block a user