This commit is contained in:
@@ -59,6 +59,7 @@
|
|||||||
.estimatedQuantity
|
.estimatedQuantity
|
||||||
"
|
"
|
||||||
:readonly="formState.readOnly"
|
:readonly="formState.readOnly"
|
||||||
|
:disabled="isDeleted"
|
||||||
:label="$ay.t('WorkOrderItemScheduledUserEstimatedQuantity')"
|
:label="$ay.t('WorkOrderItemScheduledUserEstimatedQuantity')"
|
||||||
ref="scheduledUsers.EstimatedQuantity"
|
ref="scheduledUsers.EstimatedQuantity"
|
||||||
data-cy="scheduledUsers.EstimatedQuantity"
|
data-cy="scheduledUsers.EstimatedQuantity"
|
||||||
@@ -216,18 +217,14 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
itemRowClasses: function(item) {
|
itemRowClasses: function(item) {
|
||||||
if (this.activeItemIndex == null) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
let ret = "";
|
let ret = "";
|
||||||
console.log("scheduseritemrowclass:", {
|
// console.log("scheduseritemrowclass:", {
|
||||||
activewoitemindex: this.activeWoItemIndex,
|
// activewoitemindex: this.activeWoItemIndex,
|
||||||
activeItem: this.activeItemIndex
|
// activeItem: this.activeItemIndex
|
||||||
});
|
// });
|
||||||
const isDeleted =
|
const isDeleted =
|
||||||
this.value.items[this.activeWoItemIndex].scheduledUsers[
|
this.value.items[this.activeWoItemIndex].scheduledUsers[item.index]
|
||||||
this.activeItemIndex
|
.deleted === true;
|
||||||
].deleted === true;
|
|
||||||
|
|
||||||
const hasError = this.form().childRowHasError(
|
const hasError = this.form().childRowHasError(
|
||||||
this,
|
this,
|
||||||
@@ -244,6 +241,14 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
|
isDeleted: function() {
|
||||||
|
return (
|
||||||
|
this.value.items[this.activeWoItemIndex].scheduledUsers[
|
||||||
|
this.activeItemIndex
|
||||||
|
].deleted === true
|
||||||
|
);
|
||||||
|
},
|
||||||
|
|
||||||
headerList: function() {
|
headerList: function() {
|
||||||
/*
|
/*
|
||||||
If the column is a text, left-align it
|
If the column is a text, left-align it
|
||||||
|
|||||||
Reference in New Issue
Block a user