This commit is contained in:
2022-01-24 17:47:29 +00:00
parent 89af421aaf
commit 109a12042f

View File

@@ -80,13 +80,7 @@
}}<v-icon right large>$ayiTrashRestoreAlt</v-icon></v-btn
>
<v-col
v-if="form().showMe(this, 'WorkOrderItemLoanUnit')"
cols="12"
sm="6"
lg="4"
xl="3"
>
<v-col cols="12" sm="6" lg="4" xl="3">
<gz-pick-list
:ref="
`Items[${activeWoItemIndex}].loans[${activeItemIndex}].loanUnitId`
@@ -115,7 +109,7 @@
:error-messages="
form().serverErrors(
this,
`Items[${activeWoItemIndex}].loans[${activeItemIndex}].loanUnitId`
`Items[${activeWoItemIndex}].loans[${activeItemIndex}].WorkOrderItemLoanUnit`
)
"
@input="
@@ -128,10 +122,7 @@
</v-col>
<v-col
v-if="
form().showMe(this, 'WorkOrderItemLoanRate') &&
!value.userIsRestrictedType
"
v-if="!value.userIsRestrictedType"
cols="12"
sm="6"
lg="4"
@@ -163,10 +154,7 @@
</v-col>
<v-col
v-if="
form().showMe(this, 'WorkOrderItemLoanQuantity') &&
!value.userIsRestrictedType
"
v-if="!value.userIsRestrictedType"
cols="12"
sm="6"
lg="4"
@@ -228,7 +216,7 @@
:error-messages="
form().serverErrors(
this,
`Items[${activeWoItemIndex}].loans[${activeItemIndex}].outDate`
`Items[${activeWoItemIndex}].loans[${activeItemIndex}].WorkOrderItemLoanOutDate`
)
"
@input="
@@ -260,7 +248,7 @@
:error-messages="
form().serverErrors(
this,
`Items[${activeWoItemIndex}].loans[${activeItemIndex}].dueDate`
`Items[${activeWoItemIndex}].loans[${activeItemIndex}].WorkOrderItemLoanDueDate`
)
"
@input="
@@ -292,7 +280,7 @@
:error-messages="
form().serverErrors(
this,
`Items[${activeWoItemIndex}].loans[${activeItemIndex}].returnDate`
`Items[${activeWoItemIndex}].loans[${activeItemIndex}].WorkOrderItemLoanReturnDate`
)
"
@input="
@@ -329,7 +317,7 @@
:error-messages="
form().serverErrors(
this,
`Items[${activeWoItemIndex}].loans[${activeItemIndex}].taxCodeId`
`Items[${activeWoItemIndex}].loans[${activeItemIndex}].WorkOrderItemLoanTaxCodeID`
)
"
@input="
@@ -367,7 +355,7 @@
:error-messages="
form().serverErrors(
this,
`Items[${activeWoItemIndex}].loans[${activeItemIndex}].priceOverride`
`Items[${activeWoItemIndex}].loans[${activeItemIndex}].LoanPriceOverride`
)
"
:rules="[
@@ -396,7 +384,7 @@
:error-messages="
form().serverErrors(
this,
`Items[${activeWoItemIndex}].loans[${activeItemIndex}].notes`
`Items[${activeWoItemIndex}].loans[${activeItemIndex}].WorkOrderItemLoanNotes`
)
"
data-cy="loans.notes"
@@ -459,18 +447,13 @@ export default {
headerList: function() {
const headers = [];
if (this.form().showMe(this, "WorkOrderItemLoanUnit")) {
headers.push({
text: this.$ay.t("WorkOrderItemLoanUnit"),
align: "left",
value: "loanUnitViz"
});
}
headers.push({
text: this.$ay.t("WorkOrderItemLoanUnit"),
align: "left",
value: "loanUnitViz"
});
if (
this.form().showMe(this, "WorkOrderItemLoanRate") &&
!this.value.userIsRestrictedType
) {
if (!this.value.userIsRestrictedType) {
headers.push({
text: this.$ay.t("WorkOrderItemLoanRate"),
align: "left",
@@ -478,10 +461,7 @@ export default {
});
}
if (
this.form().showMe(this, "WorkOrderItemLoanQuantity") &&
!this.value.userIsRestrictedType
) {
if (!this.value.userIsRestrictedType) {
headers.push({
text: this.$ay.t("WorkOrderItemLoanQuantity"),
align: "right",