This commit is contained in:
2022-01-24 00:11:08 +00:00
parent ea44d5aebe
commit dc558e75bf

View File

@@ -145,11 +145,7 @@
</v-col> </v-col>
<v-col <v-col
v-if=" v-if="pvm.useInventory && !value.userIsRestrictedType"
pvm.useInventory &&
form().showMe(this, 'WorkOrderItemPartPartWarehouseID') &&
!value.userIsRestrictedType
"
cols="12" cols="12"
sm="6" sm="6"
lg="4" lg="4"
@@ -183,13 +179,7 @@
@update:name="warehouseChange" @update:name="warehouseChange"
></gz-pick-list> ></gz-pick-list>
</v-col> </v-col>
<v-col <v-col cols="12" sm="6" lg="4" xl="3">
v-if="form().showMe(this, 'WorkOrderItemPartQuantity')"
cols="12"
sm="6"
lg="4"
xl="3"
>
<gz-decimal <gz-decimal
:ref=" :ref="
`Items[${activeWoItemIndex}].parts[${activeItemIndex}].quantity` `Items[${activeWoItemIndex}].parts[${activeItemIndex}].quantity`
@@ -580,11 +570,7 @@ export default {
value: "partNameViz" value: "partNameViz"
}); });
if ( if (this.pvm.useInventory && !this.value.userIsRestrictedType) {
this.pvm.useInventory &&
this.form().showMe(this, "WorkOrderItemPartPartWarehouseID") &&
!this.value.userIsRestrictedType
) {
headers.push({ headers.push({
text: this.$ay.t("WorkOrderItemPartPartWarehouseID"), text: this.$ay.t("WorkOrderItemPartPartWarehouseID"),
align: "left", align: "left",
@@ -592,13 +578,12 @@ export default {
}); });
} }
if (this.form().showMe(this, "WorkOrderItemPartQuantity")) { //always required
headers.push({ headers.push({
text: this.$ay.t("WorkOrderItemPartQuantity"), text: this.$ay.t("WorkOrderItemPartQuantity"),
align: "right", align: "right",
value: "quantity" value: "quantity"
}); });
}
if (this.form().showMe(this, "WorkOrderItemPartSuggestedQuantity")) { if (this.form().showMe(this, "WorkOrderItemPartSuggestedQuantity")) {
headers.push({ headers.push({