This commit is contained in:
2021-04-06 23:56:07 +00:00
parent cb93e3ef28
commit 38820ccb5b
2 changed files with 34 additions and 23 deletions

View File

@@ -67,6 +67,7 @@
<div v-if="pvm.hasSelectedWoItem">
{{ value.items[pvm.selectedItemIndex].scheduledUsers }}
</div> -->
{{ value.items[pvm.selectedItemIndex].scheduledUsers }}
</div>
</template>
<script>
@@ -166,7 +167,7 @@ IN ORDER: start, stop, quantity, user, rate
headers.push({
text: this.$ay.t("WorkOrderItemScheduledUserEstimatedQuantity"),
align: "right",
value: "quantity"
value: "estimatedQuantity"
});
}
@@ -186,27 +187,32 @@ IN ORDER: start, stop, quantity, user, rate
return headers;
},
itemList: function() {
return this.value.items.map((x, i) => {
return {
index: i,
id: x.id,
startDate: window.$gz.locale.utcDateToShortDateAndTimeLocalized(
x.startDate,
this.pvm.timeZoneName,
this.pvm.languageName,
this.pvm.hour12
),
stopDate: window.$gz.locale.utcDateToShortDateAndTimeLocalized(
x.stopDate,
this.pvm.timeZoneName,
this.pvm.languageName,
this.pvm.hour12
),
userViz: x.userViz,
rateViz: x.rateViz
};
});
return this.value.items[this.pvm.selectedItemIndex].scheduledUsers.map(
(x, i) => {
return {
index: i,
id: x.id,
startDate: window.$gz.locale.utcDateToShortDateAndTimeLocalized(
x.startDate,
this.pvm.timeZoneName,
this.pvm.languageName,
this.pvm.hour12
),
stopDate: window.$gz.locale.utcDateToShortDateAndTimeLocalized(
x.stopDate,
this.pvm.timeZoneName,
this.pvm.languageName,
this.pvm.hour12
),
estimatedQuantity: window.$gz.locale.decimalLocalized(
x.estimatedQuantity,
this.pvm.languageName
),
userViz: x.userViz,
rateViz: x.rateViz
};
}
);
},
formState: function() {
return this.pvm.formState;

View File

@@ -847,7 +847,12 @@ async function fetchTranslatedText(vm) {
"WorkOrderItemWorkOrderStatusID",
"WorkOrderItemRequestDate",
"WorkOrderItemPriorityID",
"WorkOrderItemWarrantyService"
"WorkOrderItemWarrantyService",
"WorkOrderItemScheduledUserStartDate",
"WorkOrderItemScheduledUserStopDate",
"WorkOrderItemScheduledUserEstimatedQuantity",
"WorkOrderItemScheduledUserUserID",
"WorkOrderItemScheduledUserServiceRateID"
]);
}