This commit is contained in:
@@ -420,7 +420,8 @@ todo: many biz objects are not using new PUT methodology
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
CURRENTLY DOING:
|
CURRENTLY DOING:
|
||||||
|
|
||||||
|
|
||||||
todo 2-3: cases 3501 / 3867 both - bulk add units by tag
|
todo 2-3: cases 3501 / 3867 both - bulk add units by tag
|
||||||
Do this as a separate popup dialog accessible from woitemunits list menu
|
Do this as a separate popup dialog accessible from woitemunits list menu
|
||||||
@@ -1245,10 +1246,10 @@ MID CENTURY MODERN TUNES - https://www.allmusic.com/album/ultra-lounge-vol-14-bo
|
|||||||
|
|
||||||
BUILD CHANGES OF NOTE
|
BUILD CHANGES OF NOTE
|
||||||
|
|
||||||
BUILD 112
|
BUILD 113
|
||||||
|
|
||||||
- All object edit forms new record page is now *not* added to the browser navigation history so creating new record then hitting back will return user to page immediately before new record, not new record itself
|
- WorkorderItemUnits "Add multiple Units" feature implemented. Accessible from context menu in woitemunits list header in workorder
|
||||||
- Fixed regression with report designer where it was failing to set the report type resulting in reports being saved with NOType rather than actual type
|
- Fixed regression with workorderitem descendant report data include all children where it was not populating the woitem properly
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -249,7 +249,7 @@
|
|||||||
v-model="selectedBulkUnits"
|
v-model="selectedBulkUnits"
|
||||||
:headers="bulkUnitTableHeaders"
|
:headers="bulkUnitTableHeaders"
|
||||||
:items="availableBulkUnits"
|
:items="availableBulkUnits"
|
||||||
class="elevation-4"
|
class="my-10"
|
||||||
:disable-filtering="true"
|
:disable-filtering="true"
|
||||||
hide-default-footer
|
hide-default-footer
|
||||||
:no-data-text="$ay.t('NoData')"
|
:no-data-text="$ay.t('NoData')"
|
||||||
@@ -379,33 +379,24 @@ export default {
|
|||||||
this.availableBulkUnits = res.data;
|
this.availableBulkUnits = res.data;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
addSelectedBulkUnits() {
|
addSelectedBulkUnits() {
|
||||||
if (this.selectedBulkUnits.length > 0) {
|
if (this.selectedBulkUnits.length > 0) {
|
||||||
let newIndex = this.value.items[this.activeWoItemIndex].units.length;
|
let newIndex = this.value.items[this.activeWoItemIndex].units.length;
|
||||||
res.data.items.forEach(z => {
|
this.selectedBulkUnits.forEach(z => {
|
||||||
newIndex++;
|
newIndex++;
|
||||||
// this.value.items[this.activeWoItemIndex].parts.push({
|
this.value.items[this.activeWoItemIndex].units.push({
|
||||||
// id: 0,
|
id: 0,
|
||||||
// concurrency: 0,
|
concurrency: 0,
|
||||||
// userId: null,
|
wiki: null,
|
||||||
// description: null,
|
customFields: "{}",
|
||||||
// serials: null,
|
tags: [],
|
||||||
// partId: z.partId,
|
notes: null,
|
||||||
// partWarehouseId: this.selectedPartWarehouse,
|
unitId: z.unitId, //zero to break rule on new
|
||||||
// quantity: z.quantity,
|
isDirty: true,
|
||||||
// taxPartSaleId: null,
|
workOrderItemId: this.value.items[this.activeWoItemIndex].id,
|
||||||
// price: 0,
|
uid: Date.now(),
|
||||||
// priceOverride: null,
|
unitViz: z.unitSerial
|
||||||
// cost: 0,
|
});
|
||||||
// listPrice: 0,
|
|
||||||
// isDirty: true,
|
|
||||||
// workOrderItemId: this.value.items[this.activeWoItemIndex].id,
|
|
||||||
// uid: Date.now(),
|
|
||||||
// partWarehouseViz: null,
|
|
||||||
// partViz: z.partViz,
|
|
||||||
// taxCodeViz: null
|
|
||||||
// });
|
|
||||||
});
|
});
|
||||||
this.$emit("change");
|
this.$emit("change");
|
||||||
this.selectedRow = [{ index: newIndex }];
|
this.selectedRow = [{ index: newIndex }];
|
||||||
@@ -420,6 +411,19 @@ export default {
|
|||||||
},
|
},
|
||||||
newItem() {
|
newItem() {
|
||||||
let newIndex = this.value.items[this.activeWoItemIndex].units.length;
|
let newIndex = this.value.items[this.activeWoItemIndex].units.length;
|
||||||
|
// {
|
||||||
|
// "0": {
|
||||||
|
// "id": 53,
|
||||||
|
// "concurrency": 9586762,
|
||||||
|
// "notes": "Aut modi molestias molestiae ipsa id.",
|
||||||
|
// "wiki": null,
|
||||||
|
// "customFields": null,
|
||||||
|
// "tags": [],
|
||||||
|
// "unitId": 4,
|
||||||
|
// "unitViz": "83429560",
|
||||||
|
// "workOrderItemId": 22
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
|
||||||
this.value.items[this.activeWoItemIndex].units.push({
|
this.value.items[this.activeWoItemIndex].units.push({
|
||||||
id: 0,
|
id: 0,
|
||||||
@@ -427,12 +431,8 @@ export default {
|
|||||||
wiki: null,
|
wiki: null,
|
||||||
customFields: "{}",
|
customFields: "{}",
|
||||||
tags: [],
|
tags: [],
|
||||||
userId: null,
|
notes: null,
|
||||||
unitId: 0, //zero to break rule on new
|
unitId: 0, //zero to break rule on new
|
||||||
estimatedQuantity: 0,
|
|
||||||
startDate: null,
|
|
||||||
stopDate: null,
|
|
||||||
serviceRateId: null,
|
|
||||||
isDirty: true,
|
isDirty: true,
|
||||||
workOrderItemId: this.value.items[this.activeWoItemIndex].id,
|
workOrderItemId: this.value.items[this.activeWoItemIndex].id,
|
||||||
uid: Date.now(),
|
uid: Date.now(),
|
||||||
|
|||||||
Reference in New Issue
Block a user