This commit is contained in:
@@ -89,11 +89,13 @@
|
||||
>
|
||||
<gz-pick-list
|
||||
:aya-type="$ay.ayt().LoanUnit"
|
||||
:show-edit-icon="true"
|
||||
:show-edit-icon="!value.userIsRestrictedType"
|
||||
v-model="
|
||||
value.items[activeWoItemIndex].loans[activeItemIndex].loanUnitId
|
||||
"
|
||||
:readonly="formState.readOnly || isDeleted"
|
||||
:readonly="
|
||||
formState.readOnly || isDeleted || value.userIsRestrictedType
|
||||
"
|
||||
:disabled="isDeleted"
|
||||
:label="$ay.t('WorkOrderItemLoanUnit')"
|
||||
:ref="
|
||||
@@ -122,7 +124,10 @@
|
||||
</v-col>
|
||||
|
||||
<v-col
|
||||
v-if="form().showMe(this, 'WorkOrderItemLoanRate')"
|
||||
v-if="
|
||||
form().showMe(this, 'WorkOrderItemLoanRate') &&
|
||||
!value.userIsRestrictedType
|
||||
"
|
||||
cols="12"
|
||||
sm="6"
|
||||
lg="4"
|
||||
@@ -154,7 +159,10 @@
|
||||
</v-col>
|
||||
|
||||
<v-col
|
||||
v-if="form().showMe(this, 'WorkOrderItemLoanQuantity')"
|
||||
v-if="
|
||||
form().showMe(this, 'WorkOrderItemLoanQuantity') &&
|
||||
!value.userIsRestrictedType
|
||||
"
|
||||
cols="12"
|
||||
sm="6"
|
||||
lg="4"
|
||||
@@ -207,7 +215,7 @@
|
||||
v-model="
|
||||
value.items[activeWoItemIndex].loans[activeItemIndex].outDate
|
||||
"
|
||||
:readonly="formState.readOnly"
|
||||
:readonly="formState.readOnly || value.userIsRestrictedType"
|
||||
:disabled="isDeleted"
|
||||
:ref="
|
||||
`Items[${activeWoItemIndex}].loans[${activeItemIndex}].outDate`
|
||||
@@ -239,7 +247,7 @@
|
||||
v-model="
|
||||
value.items[activeWoItemIndex].loans[activeItemIndex].dueDate
|
||||
"
|
||||
:readonly="formState.readOnly"
|
||||
:readonly="formState.readOnly || value.userIsRestrictedType"
|
||||
:disabled="isDeleted"
|
||||
:ref="
|
||||
`Items[${activeWoItemIndex}].loans[${activeItemIndex}].dueDate`
|
||||
@@ -271,7 +279,7 @@
|
||||
v-model="
|
||||
value.items[activeWoItemIndex].loans[activeItemIndex].returnDate
|
||||
"
|
||||
:readonly="formState.readOnly"
|
||||
:readonly="formState.readOnly || value.userIsRestrictedType"
|
||||
:disabled="isDeleted"
|
||||
:ref="
|
||||
`Items[${activeWoItemIndex}].loans[${activeItemIndex}].returnDate`
|
||||
@@ -292,7 +300,10 @@
|
||||
</v-col>
|
||||
|
||||
<v-col
|
||||
v-if="form().showMe(this, 'WorkOrderItemLoanTaxCodeID')"
|
||||
v-if="
|
||||
form().showMe(this, 'WorkOrderItemLoanTaxCodeID') &&
|
||||
!value.userIsRestrictedType
|
||||
"
|
||||
cols="12"
|
||||
sm="6"
|
||||
lg="4"
|
||||
@@ -327,7 +338,10 @@
|
||||
</v-col>
|
||||
|
||||
<v-col
|
||||
v-if="form().showMe(this, 'LoanPriceOverride')"
|
||||
v-if="
|
||||
form().showMe(this, 'LoanPriceOverride') &&
|
||||
!value.userIsRestrictedType
|
||||
"
|
||||
cols="12"
|
||||
sm="6"
|
||||
lg="4"
|
||||
@@ -371,7 +385,7 @@
|
||||
v-model="
|
||||
value.items[activeWoItemIndex].loans[activeItemIndex].notes
|
||||
"
|
||||
:readonly="formState.readOnly"
|
||||
:readonly="formState.readOnly || value.userIsRestrictedType"
|
||||
:disabled="isDeleted"
|
||||
:label="$ay.t('WorkOrderItemLoanNotes')"
|
||||
:error-messages="
|
||||
@@ -606,7 +620,10 @@ export default {
|
||||
});
|
||||
}
|
||||
|
||||
if (this.form().showMe(this, "WorkOrderItemLoanRate")) {
|
||||
if (
|
||||
this.form().showMe(this, "WorkOrderItemLoanRate") &&
|
||||
!this.value.userIsRestrictedType
|
||||
) {
|
||||
headers.push({
|
||||
text: this.$ay.t("WorkOrderItemLoanRate"),
|
||||
align: "left",
|
||||
@@ -614,7 +631,10 @@ export default {
|
||||
});
|
||||
}
|
||||
|
||||
if (this.form().showMe(this, "WorkOrderItemLoanQuantity")) {
|
||||
if (
|
||||
this.form().showMe(this, "WorkOrderItemLoanQuantity") &&
|
||||
!this.value.userIsRestrictedType
|
||||
) {
|
||||
headers.push({
|
||||
text: this.$ay.t("WorkOrderItemLoanQuantity"),
|
||||
align: "right",
|
||||
@@ -656,7 +676,8 @@ export default {
|
||||
|
||||
if (
|
||||
this.form().showMe(this, "LoanCost") &&
|
||||
this.value.userCanViewLoanerCosts
|
||||
this.value.userCanViewLoanerCosts &&
|
||||
!this.value.userIsRestrictedType
|
||||
) {
|
||||
headers.push({
|
||||
text: this.$ay.t("Cost"),
|
||||
@@ -665,7 +686,10 @@ export default {
|
||||
});
|
||||
}
|
||||
|
||||
if (this.form().showMe(this, "LoanListPrice")) {
|
||||
if (
|
||||
this.form().showMe(this, "LoanListPrice") &&
|
||||
!this.value.userIsRestrictedType
|
||||
) {
|
||||
headers.push({
|
||||
text: this.$ay.t("ListPrice"),
|
||||
align: "right",
|
||||
@@ -673,7 +697,10 @@ export default {
|
||||
});
|
||||
}
|
||||
|
||||
if (this.form().showMe(this, "LoanPriceOverride")) {
|
||||
if (
|
||||
this.form().showMe(this, "LoanPriceOverride") &&
|
||||
!this.value.userIsRestrictedType
|
||||
) {
|
||||
headers.push({
|
||||
text: this.$ay.t("PriceOverride"),
|
||||
align: "right",
|
||||
@@ -681,7 +708,10 @@ export default {
|
||||
});
|
||||
}
|
||||
|
||||
if (this.form().showMe(this, "LoanPriceViz")) {
|
||||
if (
|
||||
this.form().showMe(this, "LoanPriceViz") &&
|
||||
!this.value.userIsRestrictedType
|
||||
) {
|
||||
headers.push({
|
||||
text: this.$ay.t("Price"),
|
||||
align: "right",
|
||||
@@ -689,7 +719,10 @@ export default {
|
||||
});
|
||||
}
|
||||
|
||||
if (this.form().showMe(this, "WorkOrderItemLoanTaxCodeID")) {
|
||||
if (
|
||||
this.form().showMe(this, "WorkOrderItemLoanTaxCodeID") &&
|
||||
!this.value.userIsRestrictedType
|
||||
) {
|
||||
headers.push({
|
||||
text: this.$ay.t("Tax"),
|
||||
align: "left",
|
||||
@@ -697,7 +730,10 @@ export default {
|
||||
});
|
||||
}
|
||||
|
||||
if (this.form().showMe(this, "LoanNetViz")) {
|
||||
if (
|
||||
this.form().showMe(this, "LoanNetViz") &&
|
||||
!this.value.userIsRestrictedType
|
||||
) {
|
||||
headers.push({
|
||||
text: this.$ay.t("NetPrice"),
|
||||
align: "right",
|
||||
@@ -705,7 +741,10 @@ export default {
|
||||
});
|
||||
}
|
||||
|
||||
if (this.form().showMe(this, "LoanTaxAViz")) {
|
||||
if (
|
||||
this.form().showMe(this, "LoanTaxAViz") &&
|
||||
!this.value.userIsRestrictedType
|
||||
) {
|
||||
headers.push({
|
||||
text: this.$ay.t("TaxAAmt"),
|
||||
align: "right",
|
||||
@@ -713,7 +752,10 @@ export default {
|
||||
});
|
||||
}
|
||||
|
||||
if (this.form().showMe(this, "LoanTaxBViz")) {
|
||||
if (
|
||||
this.form().showMe(this, "LoanTaxBViz") &&
|
||||
!this.value.userIsRestrictedType
|
||||
) {
|
||||
headers.push({
|
||||
text: this.$ay.t("TaxBAmt"),
|
||||
align: "right",
|
||||
@@ -721,7 +763,10 @@ export default {
|
||||
});
|
||||
}
|
||||
|
||||
if (this.form().showMe(this, "LoanLineTotalViz")) {
|
||||
if (
|
||||
this.form().showMe(this, "LoanLineTotalViz") &&
|
||||
!this.value.userIsRestrictedType
|
||||
) {
|
||||
headers.push({
|
||||
text: this.$ay.t("LineTotal"),
|
||||
align: "right",
|
||||
|
||||
Reference in New Issue
Block a user