This commit is contained in:
2021-06-11 19:38:30 +00:00
parent 1fe84b3088
commit e8611a0361
5 changed files with 26 additions and 10 deletions

View File

@@ -90,6 +90,14 @@
`Items[${activeWoItemIndex}].units[${activeItemIndex}].unitId`
"
data-cy="units.unitId"
:rules="[
form().required(
this,
`Items[${activeWoItemIndex}].units[
${activeItemIndex}
].unitId`
)
]"
:error-messages="
form().serverErrors(
this,

View File

@@ -789,6 +789,8 @@ export default {
this.$emit("change");
this.selectedRow = [{ index: newIndex }];
this.activeItemIndex = newIndex;
//trigger rule breaking / validation
this.fieldValueChanged(`items[${this.activeItemIndex}].notes`);
},
unDeleteItem() {
this.value.items[this.activeItemIndex].deleted = false;