This commit is contained in:
@@ -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[
|
||||
|
||||
Reference in New Issue
Block a user