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

@@ -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[