This commit is contained in:
2022-05-27 00:42:53 +00:00
parent f9771b7c5e
commit 0029093f82
3 changed files with 14 additions and 12 deletions

View File

@@ -967,7 +967,7 @@ export default {
pmItemId: this.value.items[this.activeWoItemIndex].id, pmItemId: this.value.items[this.activeWoItemIndex].id,
uid: Date.now(), uid: Date.now(),
partWarehouseViz: null, partWarehouseViz: null,
partViz: z.partViz, partNameViz: z.partNameViz,
taxCodeViz: null taxCodeViz: null
}); });
}); });
@@ -1015,7 +1015,7 @@ export default {
partId: this.value.items[this.activeWoItemIndex].parts[ partId: this.value.items[this.activeWoItemIndex].parts[
this.activeItemIndex this.activeItemIndex
].partId, ].partId,
partViz: selectedPart, partNameViz: selectedPart,
partWarehouseId: this.value.items[this.activeWoItemIndex].parts[ partWarehouseId: this.value.items[this.activeWoItemIndex].parts[
this.activeItemIndex this.activeItemIndex
].partWarehouseId, ].partWarehouseId,
@@ -1048,7 +1048,7 @@ export default {
partChange(newName) { partChange(newName) {
this.value.items[this.activeWoItemIndex].parts[ this.value.items[this.activeWoItemIndex].parts[
this.activeItemIndex this.activeItemIndex
].partViz = newName; ].partNameViz = newName;
}, },
taxCodeChange(newName) { taxCodeChange(newName) {
this.value.items[this.activeWoItemIndex].parts[ this.value.items[this.activeWoItemIndex].parts[
@@ -1078,7 +1078,7 @@ export default {
pmItemId: this.value.items[this.activeWoItemIndex].id, pmItemId: this.value.items[this.activeWoItemIndex].id,
uid: Date.now(), uid: Date.now(),
partWarehouseViz: null, partWarehouseViz: null,
partViz: null, partNameViz: null,
taxCodeViz: null taxCodeViz: null
}); });
this.$emit("change"); this.$emit("change");

View File

@@ -886,7 +886,7 @@ export default {
quoteItemId: this.value.items[this.activeWoItemIndex].id, quoteItemId: this.value.items[this.activeWoItemIndex].id,
uid: Date.now(), uid: Date.now(),
partWarehouseViz: null, partWarehouseViz: null,
partViz: z.partViz, partNameViz: z.partNameViz,
taxCodeViz: null taxCodeViz: null
}); });
}); });
@@ -934,7 +934,7 @@ export default {
partId: this.value.items[this.activeWoItemIndex].parts[ partId: this.value.items[this.activeWoItemIndex].parts[
this.activeItemIndex this.activeItemIndex
].partId, ].partId,
partViz: selectedPart, partNameViz: selectedPart,
partWarehouseId: this.value.items[this.activeWoItemIndex].parts[ partWarehouseId: this.value.items[this.activeWoItemIndex].parts[
this.activeItemIndex this.activeItemIndex
].partWarehouseId, ].partWarehouseId,
@@ -967,7 +967,7 @@ export default {
partChange(newName) { partChange(newName) {
this.value.items[this.activeWoItemIndex].parts[ this.value.items[this.activeWoItemIndex].parts[
this.activeItemIndex this.activeItemIndex
].partViz = newName; ].partNameViz = newName;
}, },
taxCodeChange(newName) { taxCodeChange(newName) {
this.value.items[this.activeWoItemIndex].parts[ this.value.items[this.activeWoItemIndex].parts[
@@ -996,7 +996,7 @@ export default {
quoteItemId: this.value.items[this.activeWoItemIndex].id, quoteItemId: this.value.items[this.activeWoItemIndex].id,
uid: Date.now(), uid: Date.now(),
partWarehouseViz: null, partWarehouseViz: null,
partViz: null, partNameViz: null,
taxCodeViz: null taxCodeViz: null
}); });
this.$emit("change"); this.$emit("change");

View File

@@ -847,6 +847,8 @@ export default {
this.activeItemIndex != null && this.activeItemIndex != null &&
this.hasData && this.hasData &&
this.canAdd && this.canAdd &&
this.value.items[this.activeWoItemIndex].parts[this.activeItemIndex] !=
null &&
this.value.items[this.activeWoItemIndex].parts[this.activeItemIndex] this.value.items[this.activeWoItemIndex].parts[this.activeItemIndex]
.suggestedQuantity > 0 .suggestedQuantity > 0
); );
@@ -989,7 +991,7 @@ export default {
workOrderItemId: this.value.items[this.activeWoItemIndex].id, workOrderItemId: this.value.items[this.activeWoItemIndex].id,
uid: Date.now(), uid: Date.now(),
partWarehouseViz: null, partWarehouseViz: null,
partViz: z.partViz, partNameViz: z.partNameViz,
taxCodeViz: null taxCodeViz: null
}); });
}); });
@@ -1037,7 +1039,7 @@ export default {
partId: this.value.items[this.activeWoItemIndex].parts[ partId: this.value.items[this.activeWoItemIndex].parts[
this.activeItemIndex this.activeItemIndex
].partId, ].partId,
partViz: selectedPart, partNameViz: selectedPart,
partWarehouseId: this.value.items[this.activeWoItemIndex].parts[ partWarehouseId: this.value.items[this.activeWoItemIndex].parts[
this.activeItemIndex this.activeItemIndex
].partWarehouseId, ].partWarehouseId,
@@ -1069,7 +1071,7 @@ export default {
partChange(newName) { partChange(newName) {
this.value.items[this.activeWoItemIndex].parts[ this.value.items[this.activeWoItemIndex].parts[
this.activeItemIndex this.activeItemIndex
].partViz = newName; ].partNameViz = newName;
}, },
taxCodeChange(newName) { taxCodeChange(newName) {
this.value.items[this.activeWoItemIndex].parts[ this.value.items[this.activeWoItemIndex].parts[
@@ -1098,7 +1100,7 @@ export default {
workOrderItemId: this.value.items[this.activeWoItemIndex].id, workOrderItemId: this.value.items[this.activeWoItemIndex].id,
uid: Date.now(), uid: Date.now(),
partWarehouseViz: null, partWarehouseViz: null,
partViz: null, partNameViz: null,
taxCodeViz: null taxCodeViz: null
}); });
this.$emit("change"); this.$emit("change");