This commit is contained in:
@@ -132,7 +132,18 @@ export default {
|
|||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
newItem() {
|
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() {
|
async deleteItem() {
|
||||||
if ((await window.$gz.dialog.confirmDelete()) != true) {
|
if ((await window.$gz.dialog.confirmDelete()) != true) {
|
||||||
|
|||||||
@@ -119,7 +119,32 @@ export default {
|
|||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
newItem() {
|
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() {
|
async deleteItem() {
|
||||||
if ((await window.$gz.dialog.confirmDelete()) != true) {
|
if ((await window.$gz.dialog.confirmDelete()) != true) {
|
||||||
|
|||||||
Reference in New Issue
Block a user