This commit is contained in:
2021-07-07 19:14:01 +00:00
parent 09812f3803
commit 8e6ae77ceb
3 changed files with 5 additions and 20 deletions

View File

@@ -1228,7 +1228,7 @@ BUILD CHANGES OF NOTE
BUILD 114
- Copy work order item implemented to recreate functionality of v7
- Copy work order item implemented (was v7 feature)
Can now Copy woitem to *any* work order
Completely new functionality not in v7
Can also copy to the *same* workorder which is handy to duplicate a bunch of woitems that are the same
@@ -1238,6 +1238,8 @@ BUILD 114
Note: v7 "move" woitem feature is intentionally not implemented
user can replicate by copy and then delete source woitem
- WorkOrderItemScheduledUser convert to labor implemented (was v7 feature)
- workorderitemlabor "Append tasks" implemented (new feature requested)

View File

@@ -489,36 +489,18 @@ export default {
},
methods: {
appendTasks() {
//if no tasks then nothing to do
const tasks = this.value.items[this.activeWoItemIndex].tasks;
if (tasks.length == 0) {
return;
}
const l = this.value.items[this.activeWoItemIndex].labors[
this.activeItemIndex
];
let at = "";
tasks.forEach(z => {
at += `${z.task} - ${z.statusViz}\n`;
});
l.serviceDetails += `\n${at}`;
// this.value.items[this.activeWoItemIndex].tasks.push({
// id: 0,
// concurrency: 0,
// sequence: newIndex + 1, //indexes are zero based but sequences are visible to user so 1 based
// task: undefined, //to trigger validation on new
// status: 1, //incomplete==1
// completedByUserId: null,
// completedDate: null,
// isDirty: true,
// workOrderItemId: this.value.items[this.activeWoItemIndex].id,
// uid: Date.now(),
// completedByUserViz: null,
// statusViz: null
// });
},
userChange(newName) {
this.value.items[this.activeWoItemIndex].labors[

View File

@@ -2173,7 +2173,8 @@ async function fetchTranslatedText(vm) {
"PartSerialNumbersAvailable",
"AddMultipleUnits",
"CopyToWorkOrder",
"WorkOrderConvertScheduledUserToLabor"
"WorkOrderConvertScheduledUserToLabor",
"AppendTasks"
]);
}