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