This commit is contained in:
@@ -135,33 +135,33 @@ export default {
|
|||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
newItem() {
|
newItem() {
|
||||||
this.pvm.selectItem(
|
let newIndex = this.value.items.length;
|
||||||
this.value.items.push({
|
this.value.items.push({
|
||||||
id: 0,
|
id: 0,
|
||||||
concurrency: 0,
|
concurrency: 0,
|
||||||
notes: null,
|
notes: null,
|
||||||
wiki: null,
|
wiki: null,
|
||||||
customFields: "{}",
|
customFields: "{}",
|
||||||
tags: [],
|
tags: [],
|
||||||
workOrderId: this.value.id,
|
workOrderId: this.value.id,
|
||||||
techNotes: null,
|
techNotes: null,
|
||||||
workorderItemStatusId: null,
|
workorderItemStatusId: null,
|
||||||
workorderItemPriorityId: null,
|
workorderItemPriorityId: null,
|
||||||
requestDate: null,
|
requestDate: null,
|
||||||
warrantyService: false,
|
warrantyService: false,
|
||||||
isDirty: true,
|
isDirty: true,
|
||||||
expenses: [],
|
expenses: [],
|
||||||
labors: [],
|
labors: [],
|
||||||
loans: [],
|
loans: [],
|
||||||
parts: [],
|
parts: [],
|
||||||
partRequests: [],
|
partRequests: [],
|
||||||
scheduledUsers: [],
|
scheduledUsers: [],
|
||||||
tasks: [],
|
tasks: [],
|
||||||
travels: [],
|
travels: [],
|
||||||
units: [],
|
units: [],
|
||||||
outsideServices: []
|
outsideServices: []
|
||||||
}) - 1
|
});
|
||||||
);
|
this.pvm.selectItem(newIndex);
|
||||||
},
|
},
|
||||||
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