This commit is contained in:
@@ -96,13 +96,7 @@
|
||||
}}<v-icon right large>$ayiTrashRestoreAlt</v-icon></v-btn
|
||||
>
|
||||
|
||||
<v-col
|
||||
v-if="form().showMe(this, 'WorkOrderItemPartPartID')"
|
||||
cols="12"
|
||||
sm="6"
|
||||
lg="4"
|
||||
xl="3"
|
||||
>
|
||||
<v-col cols="12" sm="6" lg="4" xl="3">
|
||||
<gz-pick-list
|
||||
:ref="
|
||||
`Items[${activeWoItemIndex}].parts[${activeItemIndex}].partId`
|
||||
@@ -140,11 +134,7 @@
|
||||
</v-col>
|
||||
|
||||
<v-col
|
||||
v-if="
|
||||
pvm.useInventory &&
|
||||
form().showMe(this, 'WorkOrderItemPartPartWarehouseID') &&
|
||||
!value.userIsRestrictedType
|
||||
"
|
||||
v-if="pvm.useInventory && !value.userIsRestrictedType"
|
||||
cols="12"
|
||||
sm="6"
|
||||
lg="4"
|
||||
@@ -178,13 +168,7 @@
|
||||
@update:name="warehouseChange"
|
||||
></gz-pick-list>
|
||||
</v-col>
|
||||
<v-col
|
||||
v-if="form().showMe(this, 'WorkOrderItemPartQuantity')"
|
||||
cols="12"
|
||||
sm="6"
|
||||
lg="4"
|
||||
xl="3"
|
||||
>
|
||||
<v-col cols="12" sm="6" lg="4" xl="3">
|
||||
<gz-decimal
|
||||
:ref="
|
||||
`Items[${activeWoItemIndex}].parts[${activeItemIndex}].quantity`
|
||||
@@ -258,7 +242,7 @@
|
||||
:error-messages="
|
||||
form().serverErrors(
|
||||
this,
|
||||
`Items[${activeWoItemIndex}].parts[${activeItemIndex}].description`
|
||||
`Items[${activeWoItemIndex}].parts[${activeItemIndex}].WorkOrderItemPartDescription`
|
||||
)
|
||||
"
|
||||
@input="
|
||||
@@ -296,7 +280,7 @@
|
||||
:error-messages="
|
||||
form().serverErrors(
|
||||
this,
|
||||
`Items[${activeWoItemIndex}].parts[${activeItemIndex}].taxPartSaleId`
|
||||
`Items[${activeWoItemIndex}].parts[${activeItemIndex}].WorkOrderItemPartTaxPartSaleID`
|
||||
)
|
||||
"
|
||||
@input="
|
||||
@@ -334,7 +318,7 @@
|
||||
:error-messages="
|
||||
form().serverErrors(
|
||||
this,
|
||||
`Items[${activeWoItemIndex}].parts[${activeItemIndex}].priceOverride`
|
||||
`Items[${activeWoItemIndex}].parts[${activeItemIndex}].PartPriceOverride`
|
||||
)
|
||||
"
|
||||
:rules="[
|
||||
@@ -365,7 +349,7 @@
|
||||
:error-messages="
|
||||
form().serverErrors(
|
||||
this,
|
||||
`Items[${activeWoItemIndex}].parts[${activeItemIndex}].serials`
|
||||
`Items[${activeWoItemIndex}].parts[${activeItemIndex}].WorkOrderItemPartSerials`
|
||||
)
|
||||
"
|
||||
data-cy="partSerials"
|
||||
@@ -526,19 +510,13 @@ export default {
|
||||
headerList: function() {
|
||||
const headers = [];
|
||||
|
||||
if (this.form().showMe(this, "WorkOrderItemPartPartID")) {
|
||||
headers.push({
|
||||
text: this.$ay.t("WorkOrderItemPartPartID"),
|
||||
align: "left",
|
||||
value: "partNameViz"
|
||||
});
|
||||
}
|
||||
headers.push({
|
||||
text: this.$ay.t("WorkOrderItemPartPartID"),
|
||||
align: "left",
|
||||
value: "partNameViz"
|
||||
});
|
||||
|
||||
if (
|
||||
this.pvm.useInventory &&
|
||||
this.form().showMe(this, "WorkOrderItemPartPartWarehouseID") &&
|
||||
!this.value.userIsRestrictedType
|
||||
) {
|
||||
if (this.pvm.useInventory && !this.value.userIsRestrictedType) {
|
||||
headers.push({
|
||||
text: this.$ay.t("WorkOrderItemPartPartWarehouseID"),
|
||||
align: "left",
|
||||
@@ -546,13 +524,11 @@ export default {
|
||||
});
|
||||
}
|
||||
|
||||
if (this.form().showMe(this, "WorkOrderItemPartQuantity")) {
|
||||
headers.push({
|
||||
text: this.$ay.t("WorkOrderItemPartQuantity"),
|
||||
align: "right",
|
||||
value: "quantity"
|
||||
});
|
||||
}
|
||||
headers.push({
|
||||
text: this.$ay.t("WorkOrderItemPartQuantity"),
|
||||
align: "right",
|
||||
value: "quantity"
|
||||
});
|
||||
|
||||
if (this.form().showMe(this, "PartDescription")) {
|
||||
headers.push({
|
||||
|
||||
Reference in New Issue
Block a user