This commit is contained in:
@@ -126,9 +126,7 @@
|
||||
)
|
||||
"
|
||||
:ref="
|
||||
`Items[${activeWoItemIndex}].units[
|
||||
${activeItemIndex}
|
||||
].notes`
|
||||
`Items[${activeWoItemIndex}].units[ ${activeItemIndex} ].notes`
|
||||
"
|
||||
data-cy="unitUnitNotes"
|
||||
@input="
|
||||
@@ -148,20 +146,16 @@
|
||||
:error-messages="
|
||||
form().serverErrors(
|
||||
this,
|
||||
`Items[${activeWoItemIndex}].units[
|
||||
${activeItemIndex}
|
||||
].tags`
|
||||
`Items[${activeWoItemIndex}].units[ ${activeItemIndex} ].tags`
|
||||
)
|
||||
"
|
||||
:ref="
|
||||
`Items[${activeWoItemIndex}].units[
|
||||
${activeItemIndex}
|
||||
].tags`
|
||||
`Items[${activeWoItemIndex}].units[ ${activeItemIndex} ].tags`
|
||||
"
|
||||
@input="
|
||||
fieldValueChanged(`Items[${activeWoItemIndex}].units[
|
||||
${activeItemIndex}
|
||||
].tags`)
|
||||
fieldValueChanged(
|
||||
`Items[${activeWoItemIndex}].units[ ${activeItemIndex} ].tags`
|
||||
)
|
||||
"
|
||||
></gz-tag-picker>
|
||||
</v-col>
|
||||
@@ -176,23 +170,19 @@
|
||||
:parent-v-m="this"
|
||||
key-start-with="WorkOrderItemUnitCustom"
|
||||
:ref="
|
||||
`Items[${activeWoItemIndex}].units[
|
||||
${activeItemIndex}
|
||||
].customFields`
|
||||
`Items[${activeWoItemIndex}].units[ ${activeItemIndex} ].customFields`
|
||||
"
|
||||
data-cy="unitCustomFields"
|
||||
:error-messages="
|
||||
form().serverErrors(
|
||||
this,
|
||||
`Items[${activeWoItemIndex}].units[
|
||||
${activeItemIndex}
|
||||
].customFields`
|
||||
`Items[${activeWoItemIndex}].units[ ${activeItemIndex} ].customFields`
|
||||
)
|
||||
"
|
||||
@input="
|
||||
fieldValueChanged(`Items[${activeWoItemIndex}].units[
|
||||
${activeItemIndex}
|
||||
].customFields`)
|
||||
fieldValueChanged(
|
||||
`Items[${activeWoItemIndex}].units[ ${activeItemIndex} ].customFields`
|
||||
)
|
||||
"
|
||||
></gz-custom-fields>
|
||||
</v-col>
|
||||
@@ -202,16 +192,14 @@
|
||||
:aya-type="$ay.ayt().WorkOrderItem"
|
||||
:aya-id="value.id"
|
||||
:ref="
|
||||
`Items[${activeWoItemIndex}].units[
|
||||
${activeItemIndex}
|
||||
].wiki`
|
||||
`Items[${activeWoItemIndex}].units[ ${activeItemIndex} ].wiki`
|
||||
"
|
||||
v-model="value.items[activeWoItemIndex].units[activeItemIndex].wiki"
|
||||
:readonly="formState.readOnly"
|
||||
@input="
|
||||
fieldValueChanged(`Items[${activeWoItemIndex}].units[
|
||||
${activeItemIndex}
|
||||
].wiki`)
|
||||
fieldValueChanged(
|
||||
`Items[${activeWoItemIndex}].units[ ${activeItemIndex} ].wiki`
|
||||
)
|
||||
"
|
||||
></gz-wiki
|
||||
></v-col>
|
||||
@@ -311,14 +299,14 @@ export default {
|
||||
this.selectedRow = [{ index: newIndex }];
|
||||
this.activeItemIndex = newIndex;
|
||||
//trigger rule breaking / validation
|
||||
this.$nextTick(() => {
|
||||
this.value.items[this.activeWoItemIndex].units[
|
||||
this.activeItemIndex
|
||||
].unitId = null;
|
||||
this.fieldValueChanged(
|
||||
`Items[${this.activeWoItemIndex}].units[${this.activeItemIndex}].unitId`
|
||||
);
|
||||
});
|
||||
// this.$nextTick(() => {
|
||||
this.value.items[this.activeWoItemIndex].units[
|
||||
this.activeItemIndex
|
||||
].unitId = null;
|
||||
this.fieldValueChanged(
|
||||
`Items[${this.activeWoItemIndex}].units[${this.activeItemIndex}].unitId`
|
||||
);
|
||||
// });
|
||||
},
|
||||
unDeleteItem() {
|
||||
this.value.items[this.activeWoItemIndex].units[
|
||||
|
||||
Reference in New Issue
Block a user