diff --git a/ayanova/src/components/quote-header.vue b/ayanova/src/components/quote-header.vue index 779b1deb..6e8f74c1 100644 --- a/ayanova/src/components/quote-header.vue +++ b/ayanova/src/components/quote-header.vue @@ -37,28 +37,7 @@ @input="fieldValueChanged('customerId')" > - - - + - @@ -101,29 +80,6 @@ /> - - - - +
+ + + + + + + + $ayiPlus + + {{ $ay.t("New") }} + + + + $ayiTrashRestoreAlt + + {{ $ay.t("Undelete") }} + + + + $ayiTrashAlt + + {{ $ay.t("SoftDelete") }} + + + + $ayiDumpster + + {{ + $ay.t("SoftDeleteAll") + }} + + + + + + + + +
+ + diff --git a/ayanova/src/components/quote-item-labors.vue b/ayanova/src/components/quote-item-labors.vue new file mode 100644 index 00000000..4e2973fd --- /dev/null +++ b/ayanova/src/components/quote-item-labors.vue @@ -0,0 +1,997 @@ + + diff --git a/ayanova/src/components/quote-item-loans.vue b/ayanova/src/components/quote-item-loans.vue new file mode 100644 index 00000000..aa162701 --- /dev/null +++ b/ayanova/src/components/quote-item-loans.vue @@ -0,0 +1,885 @@ + + diff --git a/ayanova/src/components/quote-item-outside-services.vue b/ayanova/src/components/quote-item-outside-services.vue new file mode 100644 index 00000000..f5e5c3fc --- /dev/null +++ b/ayanova/src/components/quote-item-outside-services.vue @@ -0,0 +1,1098 @@ + + diff --git a/ayanova/src/components/quote-item-parts.vue b/ayanova/src/components/quote-item-parts.vue new file mode 100644 index 00000000..35826a3d --- /dev/null +++ b/ayanova/src/components/quote-item-parts.vue @@ -0,0 +1,1129 @@ + + diff --git a/ayanova/src/components/quote-item-scheduled-users.vue b/ayanova/src/components/quote-item-scheduled-users.vue new file mode 100644 index 00000000..480d3f6b --- /dev/null +++ b/ayanova/src/components/quote-item-scheduled-users.vue @@ -0,0 +1,710 @@ + + diff --git a/ayanova/src/components/quote-item-tasks.vue b/ayanova/src/components/quote-item-tasks.vue new file mode 100644 index 00000000..2731ff86 --- /dev/null +++ b/ayanova/src/components/quote-item-tasks.vue @@ -0,0 +1,644 @@ + + diff --git a/ayanova/src/components/quote-item-travels.vue b/ayanova/src/components/quote-item-travels.vue new file mode 100644 index 00000000..4cbbbecc --- /dev/null +++ b/ayanova/src/components/quote-item-travels.vue @@ -0,0 +1,976 @@ + + diff --git a/ayanova/src/components/quote-item-units.vue b/ayanova/src/components/quote-item-units.vue new file mode 100644 index 00000000..6b02f995 --- /dev/null +++ b/ayanova/src/components/quote-item-units.vue @@ -0,0 +1,850 @@ + + diff --git a/ayanova/src/components/quote-items.vue b/ayanova/src/components/quote-items.vue index 6f06ff08..ed3ca9cb 100644 --- a/ayanova/src/components/quote-items.vue +++ b/ayanova/src/components/quote-items.vue @@ -888,7 +888,7 @@ export default { ); this.pvm.washWorkOrderItem(wi); - wi.workOrderId = this.value.id; + wi.quoteId = this.value.id; wi.sequence = newIndex + 1; this.value.items.push(wi); this.$emit("change"); @@ -931,7 +931,7 @@ export default { wiki: null, customFields: "{}", tags: [], - workOrderId: this.value.id, + quoteId: this.value.id, techNotes: null, workorderItemStatusId: null, workorderItemPriorityId: null, diff --git a/ayanova/src/components/quote-state.vue b/ayanova/src/components/quote-state.vue new file mode 100644 index 00000000..b65e0a7a --- /dev/null +++ b/ayanova/src/components/quote-state.vue @@ -0,0 +1,299 @@ + + diff --git a/ayanova/src/views/svc-quote.vue b/ayanova/src/views/svc-quote.vue index 1b805f7e..44a06ed0 100644 --- a/ayanova/src/views/svc-quote.vue +++ b/ayanova/src/views/svc-quote.vue @@ -88,7 +88,7 @@ export default { let wi = this.$route.params.copyItem; if (wi) { this.washWorkOrderItem(wi); - wi.workOrderId = vm.obj.id; + wi.quoteId = vm.obj.id; wi.sequence = vm.obj.items.length + 1; vm.obj.items.push(wi); setDirty = true; @@ -104,7 +104,7 @@ export default { this.obj.serial = 0; this.obj.isDirty = true; vm.obj.items.forEach(z => { - z.workOrderId = 0; + z.quoteId = 0; this.washWorkOrderItem(z); }); setDirty = true; @@ -228,8 +228,8 @@ export default { hour12: window.$gz.locale.getHour12(), // resetSelections: false, selectLists: { - wostatus: [], - allowedwostatus: [], + quotestatus: [], + allowedquotestatus: [], woItemPriorities: [], woItemStatus: [], woItemTaskCompletionTypes: [], @@ -288,8 +288,8 @@ export default { //find it in the status collection //and return here const laststate = this.obj.states[this.obj.states.length - 1]; - const found = this.selectLists.wostatus.find( - z => z.id == laststate.workOrderStatusId + const found = this.selectLists.quotestatus.find( + z => z.id == laststate.quoteStatusId ); if (found) { return found; @@ -625,19 +625,19 @@ export default { wi.expenses.forEach(x => { x.id = 0; - x.workOrderItemId = 0; + x.quoteItemId = 0; x.concurrency = undefined; x.isDirty = true; }); wi.labors.forEach(x => { x.id = 0; - x.workOrderItemId = 0; + x.quoteItemId = 0; x.concurrency = undefined; x.isDirty = true; }); wi.loans.forEach(x => { x.id = 0; - x.workOrderItemId = 0; + x.quoteItemId = 0; x.concurrency = undefined; x.isDirty = true; x.cost = 0; @@ -645,7 +645,7 @@ export default { }); wi.parts.forEach(x => { x.id = 0; - x.workOrderItemId = 0; + x.quoteItemId = 0; x.concurrency = undefined; x.isDirty = true; x.cost = 0; @@ -654,31 +654,31 @@ export default { wi.scheduledUsers.forEach(x => { x.id = 0; - x.workOrderItemId = 0; + x.quoteItemId = 0; x.concurrency = undefined; x.isDirty = true; }); wi.tasks.forEach(x => { x.id = 0; - x.workOrderItemId = 0; + x.quoteItemId = 0; x.concurrency = undefined; x.isDirty = true; }); wi.travels.forEach(x => { x.id = 0; - x.workOrderItemId = 0; + x.quoteItemId = 0; x.concurrency = undefined; x.isDirty = true; }); wi.units.forEach(x => { x.id = 0; - x.workOrderItemId = 0; + x.quoteItemId = 0; x.concurrency = undefined; x.isDirty = true; }); wi.outsideServices.forEach(x => { x.id = 0; - x.workOrderItemId = 0; + x.quoteItemId = 0; x.concurrency = undefined; x.isDirty = true; }); @@ -732,8 +732,8 @@ async function saveHeader(vm) { vm.obj.id = res.data.id; vm.obj.serial = res.data.serial; //walk all unsaved direct children and set the workorder id so they can save - vm.obj.states.forEach(z => (z.workOrderId = vm.obj.id)); - vm.obj.items.forEach(z => (z.workOrderId = vm.obj.id)); + vm.obj.states.forEach(z => (z.quoteId = vm.obj.id)); + vm.obj.items.forEach(z => (z.quoteId = vm.obj.id)); } } } @@ -1870,7 +1870,7 @@ async function fetchTranslatedText(vm) { "WorkOrderInternalReferenceNumber", "WorkOrderOnsite", "NewStatus", - "WorkOrderStatus", + "QuoteQuoteStatusType", "WorkOrderCustom1", "WorkOrderCustom2", "WorkOrderCustom3", @@ -2087,8 +2087,8 @@ async function populateSelectionLists(vm) { vm.formState.serverError = res.error; window.$gz.form.setErrorBoxErrors(vm); } else { - vm.selectLists.wostatus = res.data.all; - vm.selectLists.allowedwostatus = res.data.allowed; + vm.selectLists.quotestatus = res.data.all; + vm.selectLists.allowedquotestatus = res.data.allowed; } res = await window.$gz.api.get("work-order-item-status/list");