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