This commit is contained in:
2021-06-23 15:29:58 +00:00
parent 2daf1468c2
commit 99cd8c9f62
4 changed files with 9 additions and 8 deletions

View File

@@ -504,7 +504,10 @@ export default {
priceOverride: null,
isDirty: true,
workOrderItemId: this.value.items[this.activeWoItemIndex].id,
uid: Date.now() //used for error tracking / display
uid: Date.now(),
userViz: null,
serviceRateViz: null,
taxCodeViz: null
});
this.$emit("change");
this.selectedRow = [{ index: newIndex }];

View File

@@ -296,7 +296,8 @@ export default {
serviceRateId: null,
isDirty: true,
workOrderItemId: this.value.items[this.activeWoItemIndex].id,
uid: Date.now() //used for error tracking / display
uid: Date.now(), //used for error tracking / display
unitViz: null
});
this.$emit("change");
this.selectedRow = [{ index: newIndex }];

View File

@@ -980,6 +980,8 @@ async function saveScheduledUsers(vm, woItemIndex) {
for (let i = 0; i < vm.obj.items[woItemIndex].scheduledUsers.length; i++) {
if (vm.obj.items[woItemIndex].scheduledUsers[i].isDirty) {
// console.log("BEFORE", vm.obj.items[woItemIndex].scheduledUsers[i].uid);
//clone and skip viz and other fields
const o = window.$gz.util.deepCopySkip(
vm.obj.items[woItemIndex].scheduledUsers[i],
@@ -991,6 +993,7 @@ async function saveScheduledUsers(vm, woItemIndex) {
o
);
if (res.error) {
//console.log("ERROR", vm.obj.items[woItemIndex].scheduledUsers[i].uid);
handleSaveError(vm, {
error: res.error,
itemUid: vm.obj.items[woItemIndex].uid,