This commit is contained in:
2021-06-12 00:21:07 +00:00
parent f4832c261e
commit 81570e2cda
2 changed files with 12 additions and 8 deletions

View File

@@ -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[