This commit is contained in:
2022-01-26 00:00:41 +00:00
parent 617e13b5ff
commit 8c15b5c610
6 changed files with 47 additions and 6 deletions

View File

@@ -1059,6 +1059,7 @@ async function saveUnits(vm, woItemIndex) {
//Server will update fields on put or post for most graph objecs so need to update entire object here
res.data.isDirty = false; //prime isDirty to detect future edits
res.data.warrantyViz = null; //Add local key so it's reactive in vue
res.data.uid = i; //set uid again as it's lost in the save
vm.obj.items[woItemIndex].units.splice(i, 1, res.data);
}
}
@@ -1100,6 +1101,7 @@ async function saveScheduledUsers(vm, woItemIndex) {
} else {
//Server will update fields on put or post for most graph objecs so need to update entire object here
res.data.isDirty = false; //prime isDirty to detect future edits
res.data.uid = i; //set uid again as it's lost in the save
vm.obj.items[woItemIndex].scheduledUsers.splice(i, 1, res.data);
}
}
@@ -1166,6 +1168,7 @@ async function saveTasks(vm, woItemIndex) {
} else {
//Server will update fields on put or post for most graph objecs so need to update entire object here
res.data.isDirty = false; //prime isDirty to detect future edits
res.data.uid = i; //set uid again as it's lost in the save
vm.obj.items[woItemIndex].tasks.splice(i, 1, res.data);
}
}
@@ -1270,6 +1273,7 @@ async function saveParts(vm, woItemIndex) {
} else {
//Server will update fields on put or post for most quote graph objecs so need to update entire object here
res.data.isDirty = false; //prime isDirty to detect future edits
res.data.uid = i; //set uid again as it's lost in the save
vm.obj.items[woItemIndex].parts.splice(i, 1, res.data);
}
}
@@ -1306,6 +1310,7 @@ async function saveLabors(vm, woItemIndex) {
} else {
//Server will update fields on put or post for most quote graph objecs so need to update entire object here
res.data.isDirty = false; //prime isDirty to detect future edits
res.data.uid = i; //set uid again as it's lost in the save
vm.obj.items[woItemIndex].labors.splice(i, 1, res.data);
}
}
@@ -1373,6 +1378,7 @@ async function saveTravels(vm, woItemIndex) {
} else {
//Server will update fields on put or post for most quote graph objecs so need to update entire object here
res.data.isDirty = false; //prime isDirty to detect future edits
res.data.uid = i; //set uid again as it's lost in the save
vm.obj.items[woItemIndex].travels.splice(i, 1, res.data);
}
}
@@ -1469,6 +1475,7 @@ async function saveExpenses(vm, woItemIndex) {
} else {
//Server will update fields on put or post for most quote graph objecs so need to update entire object here
res.data.isDirty = false; //prime isDirty to detect future edits
res.data.uid = i; //set uid again as it's lost in the save
vm.obj.items[woItemIndex].expenses.splice(i, 1, res.data);
}
}
@@ -1533,6 +1540,7 @@ async function saveLoans(vm, woItemIndex) {
} else {
//Server will update fields on put or post for most quote graph objecs so need to update entire object here
res.data.isDirty = false; //prime isDirty to detect future edits
res.data.uid = i; //set uid again as it's lost in the save
vm.obj.items[woItemIndex].loans.splice(i, 1, res.data);
}
}
@@ -1604,6 +1612,7 @@ async function saveOutsideServices(vm, woItemIndex) {
} else {
//Server will update fields on put or post for most quote graph objecs so need to update entire object here
res.data.isDirty = false; //prime isDirty to detect future edits
res.data.uid = i; //set uid again as it's lost in the save
vm.obj.items[woItemIndex].outsideServices.splice(i, 1, res.data);
}
}