This commit is contained in:
@@ -298,6 +298,7 @@ export default {
|
||||
customFields: "{}",
|
||||
tags: [],
|
||||
userId: null,
|
||||
unitId: 0,
|
||||
estimatedQuantity: 0,
|
||||
startDate: null,
|
||||
stopDate: null,
|
||||
@@ -309,10 +310,42 @@ export default {
|
||||
this.$emit("change");
|
||||
this.selectedRow = [{ index: 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
|
||||
this.fieldValueChanged(
|
||||
`Items[${this.activeWoItemIndex}].units[${this.activeItemIndex}].unitId`
|
||||
);
|
||||
// this.value.items[this.activeWoItemIndex].units[
|
||||
// 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() {
|
||||
this.value.items[this.activeWoItemIndex].units[
|
||||
|
||||
Reference in New Issue
Block a user