This commit is contained in:
2023-02-16 00:04:03 +00:00
parent 796c4c7650
commit 25d772e733
2 changed files with 8 additions and 5 deletions

View File

@@ -1270,6 +1270,7 @@ export default {
this.obj.active = false; this.obj.active = false;
this.obj.fetchedOn = null; this.obj.fetchedOn = null;
this.obj.fetchCode = null; this.obj.fetchCode = null;
this.obj.licenseExpire = null;
this.obj.created = window.$gz.locale.nowUTC8601String(); this.obj.created = window.$gz.locale.nowUTC8601String();
this.obj.notificationSent = false; this.obj.notificationSent = false;
// this.obj.name = `${this.obj.name} - ${window.$gz.translation.get( // this.obj.name = `${this.obj.name} - ${window.$gz.translation.get(

View File

@@ -95,7 +95,6 @@
ref="fetchedOn" ref="fetchedOn"
v-model="obj.fetchedOn" v-model="obj.fetchedOn"
:label="$sock.t('TrialLicenseRequestFetchedOn')" :label="$sock.t('TrialLicenseRequestFetchedOn')"
:rules="[form().required(this, 'fetchedOn')]"
:readonly="formState.readOnly" :readonly="formState.readOnly"
:error-messages="form().serverErrors(this, 'fetchedOn')" :error-messages="form().serverErrors(this, 'fetchedOn')"
data-cy="fetchedOn" data-cy="fetchedOn"
@@ -108,12 +107,15 @@
ref="status" ref="status"
v-model="obj.status" v-model="obj.status"
dense dense
:items="selectLists.trailRequestStatus" :items="selectLists.trialRequestStatus"
item-text="name" item-text="name"
item-value="id" item-value="id"
readonly :readonly="formState.readOnly"
:label="$sock.t('TrialLicenseRequestStatus')" :label="$sock.t('TrialLicenseRequestStatus')"
:rules="[form().integerValid(this, 'status')]"
:error-messages="form().serverErrors(this, 'status')"
data-cy="status" data-cy="status"
@input="fieldValueChanged('status')"
></v-select> ></v-select>
</v-col> </v-col>
@@ -196,7 +198,7 @@ export default {
tags: [] tags: []
}, },
selectLists: { selectLists: {
trailRequestStatus: [] trialRequestStatus: []
}, },
formState: { formState: {
ready: false, ready: false,
@@ -605,7 +607,7 @@ async function fetchTranslatedText() {
async function populateSelectionLists(vm) { async function populateSelectionLists(vm) {
//ensure the pick lists required are pre-fetched //ensure the pick lists required are pre-fetched
await window.$gz.enums.fetchEnumList("trialrequeststatus"); await window.$gz.enums.fetchEnumList("trialrequeststatus");
vm.selectLists.trailRequestStatus = window.$gz.enums.getSelectionList( vm.selectLists.trialRequestStatus = window.$gz.enums.getSelectionList(
"trialrequeststatus" "trialrequeststatus"
); );
} }