This commit is contained in:
2021-07-28 19:37:52 +00:00
parent ed0e7dc77c
commit b251ad6cce
4 changed files with 45 additions and 1 deletions

View File

@@ -509,6 +509,7 @@ CURRENTLY DOING: PM stuff:
pmdatalist
front end
front end default data objects in quote and pm and properly set defaults for new record
report fields coming over properly
back end biz job to actually do the generation
Clean up notification for PM's and Quotes as they are filled with service wo shit

View File

@@ -296,6 +296,8 @@ export default {
"MaintenanceExpiredNote",
"Import",
"Export",
"TimeSpanYears",
"TimeSpanMonths",
"TimeSpanDays",
"TimeSpanHours",
"TimeSpanMinutes",

View File

@@ -55,6 +55,8 @@
data-cy="woAddress"
/>
</v-col>
<!-- ##################################################################################### -->
<v-col cols="12" sm="6" lg="4" xl="3">
<v-checkbox
v-model="value.active"
@@ -66,6 +68,41 @@
@change="fieldValueChanged('active')"
></v-checkbox>
</v-col>
<v-col cols="12" sm="6" lg="4" xl="3">
<v-row>
<v-col cols="5">
<v-text-field
v-model="value.repeatInterval"
:readonly="formState.readOnly"
:label="$ay.t('RepeatInterval')"
ref="repeatInterval"
data-cy="repeatInterval"
:rules="[form().integerValid(this, 'repeatInterval')]"
:error-messages="form().serverErrors(this, 'repeatInterval')"
@input="fieldValueChanged('repeatInterval')"
type="number"
></v-text-field>
</v-col>
<v-col cols="5">
<v-select
class="ml-1"
v-model="value.repeatUnit"
:items="pvm.selectLists.pmTimeUnits"
item-text="name"
item-value="id"
:readonly="formState.readOnly"
:ref="`repeatUnit`"
data-cy="usertype"
:rules="[form().integerValid(this, `repeatUnit`)]"
:error-messages="form().serverErrors(this, `repeatUnit`)"
@input="fieldValueChanged(`repeatUnit`)"
></v-select>
</v-col>
</v-row>
</v-col>
<!-- ##################################################################################### -->
<v-col
v-if="
form().showMe(this, 'WorkOrderSummary') &&

View File

@@ -263,7 +263,8 @@ export default {
woItemPriorities: [],
woItemStatus: [],
woItemTaskCompletionTypes: [],
loanUnitRateUnits: []
loanUnitRateUnits: [],
pmTimeUnits: []
},
maxTableNotesLength: 50, //value to cut off notes in tables
saveResult: {
@@ -2093,6 +2094,9 @@ async function populateSelectionLists(vm) {
"WorkorderItemTaskCompletionType"
);
await window.$gz.enums.fetchEnumList("PMTimeUnit"); //prefetch
vm.selectLists.pmTimeUnits = window.$gz.enums.getSelectionList("PMTimeUnit");
await window.$gz.enums.fetchEnumList("LoanUnitRateUnit"); //prefetch
vm.selectLists.loanUnitRateUnits = window.$gz.enums.getSelectionList(
"LoanUnitRateUnit"