This commit is contained in:
@@ -298,6 +298,7 @@ export default {
|
|||||||
customFields: "{}",
|
customFields: "{}",
|
||||||
tags: [],
|
tags: [],
|
||||||
userId: null,
|
userId: null,
|
||||||
|
unitId: 0,
|
||||||
estimatedQuantity: 0,
|
estimatedQuantity: 0,
|
||||||
startDate: null,
|
startDate: null,
|
||||||
stopDate: null,
|
stopDate: null,
|
||||||
@@ -309,10 +310,42 @@ export default {
|
|||||||
this.$emit("change");
|
this.$emit("change");
|
||||||
this.selectedRow = [{ index: newIndex }];
|
this.selectedRow = [{ index: newIndex }];
|
||||||
this.activeItemIndex = newIndex;
|
this.activeItemIndex = newIndex;
|
||||||
|
this.$nextTick(() => {
|
||||||
|
// console.log(
|
||||||
|
// "CONTROL:",
|
||||||
|
// this.$refs[
|
||||||
|
// `Items[${this.activeWoItemIndex}].units[${this.activeItemIndex}].unitId`
|
||||||
|
// ]
|
||||||
|
// );
|
||||||
|
this.value.items[this.activeWoItemIndex].units[
|
||||||
|
this.activeItemIndex
|
||||||
|
].unitId = null;
|
||||||
|
this.fieldValueChanged(
|
||||||
|
`Items[${this.activeWoItemIndex}].units[${this.activeItemIndex}].unitId`
|
||||||
|
);
|
||||||
|
});
|
||||||
|
|
||||||
|
//
|
||||||
//trigger rule breaking / validation
|
//trigger rule breaking / validation
|
||||||
this.fieldValueChanged(
|
// this.value.items[this.activeWoItemIndex].units[
|
||||||
`Items[${this.activeWoItemIndex}].units[${this.activeItemIndex}].unitId`
|
// this.activeItemIndex
|
||||||
);
|
// ].unitId = 0;
|
||||||
|
// this.fieldValueChanged(
|
||||||
|
// `Items[${this.activeWoItemIndex}].units[${this.activeItemIndex}].unitId`
|
||||||
|
// );
|
||||||
|
// this.value.items[this.activeWoItemIndex].units[
|
||||||
|
// this.activeItemIndex
|
||||||
|
// ].unitId = null;
|
||||||
|
// this.fieldValueChanged(
|
||||||
|
// `Items[${this.activeWoItemIndex}].units[${this.activeItemIndex}].unitId`
|
||||||
|
// );
|
||||||
|
// this.fieldValueChanged(
|
||||||
|
// `Items[${this.activeWoItemIndex}].units[${this.activeItemIndex}].unitId`
|
||||||
|
// );
|
||||||
|
// this.fieldValueChanged(
|
||||||
|
// `Items[${this.activeWoItemIndex}].units[${this.activeItemIndex}].notes`
|
||||||
|
// );
|
||||||
|
// });
|
||||||
},
|
},
|
||||||
unDeleteItem() {
|
unDeleteItem() {
|
||||||
this.value.items[this.activeWoItemIndex].units[
|
this.value.items[this.activeWoItemIndex].units[
|
||||||
|
|||||||
Reference in New Issue
Block a user