This commit is contained in:
2021-04-07 23:52:41 +00:00
parent 0b9e154484
commit f72b6b3c30
2 changed files with 38 additions and 2 deletions

View File

@@ -132,7 +132,18 @@ export default {
methods: {
newItem() {
console.log("STUB: NEW scheduserITEM");
this.pvm.selectedScheduledUserItemIndex =
this.value.items[this.pvm.selectedItemIndex].scheduledUsers.push({
id: 0,
concurrency: 0,
userId: null,
estimatedQuantity: 0,
startDate: null,
stopDate: null,
serviceRateId: null,
isDirty: true,
workOrderItemId: this.value.items[this.pvm.selectedItemIndex].id
}) - 1;
},
async deleteItem() {
if ((await window.$gz.dialog.confirmDelete()) != true) {

View File

@@ -119,7 +119,32 @@ export default {
methods: {
newItem() {
console.log("STUB: NEW ITEM");
this.pvm.selectedItemIndex =
this.value.items.push({
id: 0,
concurrency: 0,
notes: null,
wiki: null,
customFields: "{}",
tags: [],
workOrderId: this.value.id,
techNotes: null,
workorderItemStatusId: null,
workorderItemPriorityId: null,
requestDate: null,
warrantyService: false,
isDirty: true,
expenses: [],
labors: [],
loans: [],
parts: [],
partRequests: [],
scheduledUsers: [],
tasks: [],
travels: [],
units: [],
outsideServices: []
}) - 1;
},
async deleteItem() {
if ((await window.$gz.dialog.confirmDelete()) != true) {