This commit is contained in:
2022-01-23 23:43:04 +00:00
parent b38721f9b4
commit 74cb4207b9

View File

@@ -102,7 +102,7 @@
> >
<v-col <v-col
v-if="form().showMe(this, 'WorkOrderItemScheduledUserStartDate')" v-if="form().showMe(this, 'StartDate')"
cols="12" cols="12"
sm="6" sm="6"
lg="4" lg="4"
@@ -135,7 +135,7 @@
</v-col> </v-col>
<v-col <v-col
v-if="form().showMe(this, 'WorkOrderItemScheduledUserStopDate')" v-if="form().showMe(this, 'StopDate')"
cols="12" cols="12"
sm="6" sm="6"
lg="4" lg="4"
@@ -174,15 +174,7 @@
></gz-date-time-picker> ></gz-date-time-picker>
</v-col> </v-col>
<v-col <v-col cols="12" sm="6" lg="4" xl="3">
v-if="
form().showMe(this, 'WorkOrderItemScheduledUserEstimatedQuantity')
"
cols="12"
sm="6"
lg="4"
xl="3"
>
<gz-decimal <gz-decimal
:ref=" :ref="
`Items[${activeWoItemIndex}].scheduledUsers[${activeItemIndex}].estimatedQuantity` `Items[${activeWoItemIndex}].scheduledUsers[${activeItemIndex}].estimatedQuantity`
@@ -222,7 +214,7 @@
</v-col> </v-col>
<v-col <v-col
v-if="form().showMe(this, 'WorkOrderItemScheduledUserUserID')" v-if="form().showMe(this, 'UserID')"
cols="12" cols="12"
sm="6" sm="6"
lg="4" lg="4"
@@ -261,7 +253,7 @@
</v-col> </v-col>
<v-col <v-col
v-if="form().showMe(this, 'WorkOrderItemScheduledUserServiceRateID')" v-if="form().showMe(this, 'ServiceRateID')"
cols="12" cols="12"
sm="6" sm="6"
lg="4" lg="4"
@@ -351,7 +343,7 @@ export default {
headerList: function() { headerList: function() {
const headers = []; const headers = [];
if (this.form().showMe(this, "WorkOrderItemScheduledUserStartDate")) { if (this.form().showMe(this, "StartDate")) {
headers.push({ headers.push({
text: this.$ay.t("WorkOrderItemScheduledUserStartDate"), text: this.$ay.t("WorkOrderItemScheduledUserStartDate"),
align: "right", align: "right",
@@ -359,7 +351,7 @@ export default {
}); });
} }
if (this.form().showMe(this, "WorkOrderItemScheduledUserStopDate")) { if (this.form().showMe(this, "StopDate")) {
headers.push({ headers.push({
text: this.$ay.t("WorkOrderItemScheduledUserStopDate"), text: this.$ay.t("WorkOrderItemScheduledUserStopDate"),
align: "right", align: "right",
@@ -367,17 +359,14 @@ export default {
}); });
} }
if ( //required, only one
this.form().showMe(this, "WorkOrderItemScheduledUserEstimatedQuantity") headers.push({
) { text: this.$ay.t("WorkOrderItemScheduledUserEstimatedQuantity"),
headers.push({ align: "right",
text: this.$ay.t("WorkOrderItemScheduledUserEstimatedQuantity"), value: "estimatedQuantity"
align: "right", });
value: "estimatedQuantity"
});
}
if (this.form().showMe(this, "WorkOrderItemScheduledUserUserID")) { if (this.form().showMe(this, "UserID")) {
headers.push({ headers.push({
text: this.$ay.t("WorkOrderItemScheduledUserUserID"), text: this.$ay.t("WorkOrderItemScheduledUserUserID"),
align: "left", align: "left",
@@ -385,7 +374,7 @@ export default {
}); });
} }
if (this.form().showMe(this, "WorkOrderItemScheduledUserServiceRateID")) { if (this.form().showMe(this, "ServiceRateID")) {
headers.push({ headers.push({
text: this.$ay.t("WorkOrderItemScheduledUserServiceRateID"), text: this.$ay.t("WorkOrderItemScheduledUserServiceRateID"),
align: "left", align: "left",
@@ -393,13 +382,6 @@ export default {
}); });
} }
if (headers.length == 0) {
headers.push({
text: this.$ay.t("AllFieldsHidden"),
align: "left",
value: "xxxx"
});
}
return headers; return headers;
}, },
itemList: function() { itemList: function() {