This commit is contained in:
2022-01-26 18:31:29 +00:00
parent ac9e2e28e7
commit 0d2a8b445f
4 changed files with 14 additions and 93 deletions

View File

@@ -20,8 +20,9 @@ export default {
// NOTE: FORM KEY **MUST** BE THE AYATYPE NAME WHERE POSSIBLE, IF NO TYPE THEN AN EXCEPTION NEEDS TO BE CODED IN
//SERVER FormFieldReference.cs -> public static List<string> FormFieldKeys
//
async get(formKey, vm) {
async get(formKey, vm, forceRefresh) {
if (
forceRefresh ||
!window.$gz.util.has(window.$gz.store.state.formCustomTemplate, formKey)
) {
//fetch and populate the store

View File

@@ -122,7 +122,10 @@
</v-col>
<v-col
v-if="!value.userIsRestrictedType"
v-if="
form().showMe(this, 'WorkOrderItemLoanRate') &&
!value.userIsRestrictedType
"
cols="12"
sm="6"
lg="4"
@@ -453,7 +456,10 @@ export default {
value: "loanUnitViz"
});
if (!this.value.userIsRestrictedType) {
if (
!this.value.userIsRestrictedType &&
this.form().showMe(this, "WorkOrderItemLoanRate")
) {
headers.push({
text: this.$ay.t("WorkOrderItemLoanRate"),
align: "left",

View File

@@ -372,7 +372,9 @@ function populateSelectionLists(vm) {
function ensureTemplateIsInStore(vm) {
//Pre-cache if necessary the form customization settings that have been set before now
return window.$gz.formCustomTemplate.get(
vm.$route.params.formCustomTemplateKey
vm.$route.params.formCustomTemplateKey,
vm,
true
);
}