This commit is contained in:
2021-04-19 14:31:24 +00:00
parent e8de1f5409
commit 3ac2fff6d0
4 changed files with 25 additions and 13 deletions

View File

@@ -1029,5 +1029,17 @@ export default {
setTimeout(function() {
vm.$router.go(-1);
}, 2000);
},
////////////////////////////////////////
// Standard data table row error class
//
tableRowErrorClass() {
return "font-weight-black font-italic error--text ";
},
////////////////////////////////////////
// Standard data table deleted class
//
tableRowDeletedClass() {
return "text-decoration-line-through ";
}
};

View File

@@ -65,7 +65,7 @@
value.items[activeWoItemIndex].scheduledUsers[activeItemIndex]
.estimatedQuantity
"
:readonly="formState.readOnly"
:readonly="formState.readOnly || isDeleted"
:disabled="isDeleted"
:label="$ay.t('WorkOrderItemScheduledUserEstimatedQuantity')"
ref="scheduledUsers.EstimatedQuantity"
@@ -197,11 +197,11 @@ export default {
`Items[${this.activeWoItemIndex}].ScheduledUsers[${item.index}].`
);
if (hasError) {
ret = "font-weight-black font-italic error--text ";
}
if (isDeleted) {
ret += "text-decoration-line-through text--disabled";
ret += this.form().tableRowDeletedClass();
}
if (hasError) {
ret += this.form().tableRowErrorClass();
}
return ret;
}

View File

@@ -237,11 +237,11 @@ export default {
`Items[${item.index}].`
);
if (hasError) {
ret = "font-weight-black font-italic error--text ";
}
if (isDeleted) {
ret += "text-decoration-line-through text--disabled";
ret += this.form().tableRowDeletedClass();
}
if (hasError) {
ret += this.form().tableRowErrorClass();
}
return ret;
}