This commit is contained in:
@@ -662,7 +662,7 @@ export default {
|
||||
this.value.items[this.activeWoItemIndex].outsideServices.push({
|
||||
id: 0,
|
||||
concurrency: 0,
|
||||
unitId: 0,
|
||||
unitId: 0, //zero to break rule on new
|
||||
notes: null,
|
||||
vendorSentToId: null,
|
||||
vendorSentViaId: null,
|
||||
@@ -683,6 +683,15 @@ export default {
|
||||
this.$emit("change");
|
||||
this.selectedRow = [{ index: newIndex }];
|
||||
this.activeItemIndex = newIndex;
|
||||
//trigger rule breaking / validation
|
||||
this.$nextTick(() => {
|
||||
this.value.items[this.activeWoItemIndex].outsideServices[
|
||||
this.activeItemIndex
|
||||
].unitId = null;
|
||||
this.fieldValueChanged(
|
||||
`Items[${this.activeWoItemIndex}].outsideServices[${this.activeItemIndex}].unitId`
|
||||
);
|
||||
});
|
||||
},
|
||||
unDeleteItem() {
|
||||
this.value.items[this.activeWoItemIndex].outsideServices[
|
||||
|
||||
Reference in New Issue
Block a user