Format code.
This commit is contained in:
parent
132db34c59
commit
a51a8e358b
2 changed files with 20 additions and 21 deletions
|
|
@ -45,7 +45,7 @@ export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
selectedAccountName: "",
|
selectedAccountName: "",
|
||||||
}
|
};
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
selectedAccountNumber: {
|
selectedAccountNumber: {
|
||||||
|
|
@ -61,24 +61,22 @@ export default {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
searchableInsuranceCompanyList() {
|
searchableInsuranceCompanyList() {
|
||||||
return this.originalList.map(
|
return this.originalList.map((insuranceCompany) => {
|
||||||
(insuranceCompany) => {
|
insuranceCompany.altTerms = "";
|
||||||
insuranceCompany.altTerms = "";
|
|
||||||
|
|
||||||
termMapping.forEach((matchingTerm) => {
|
termMapping.forEach((matchingTerm) => {
|
||||||
if (
|
if (
|
||||||
insuranceCompany.accountName
|
insuranceCompany.accountName
|
||||||
.toUpperCase()
|
.toUpperCase()
|
||||||
.includes(matchingTerm.term.toUpperCase())
|
.includes(matchingTerm.term.toUpperCase())
|
||||||
) {
|
) {
|
||||||
insuranceCompany.altTerms =
|
insuranceCompany.altTerms =
|
||||||
insuranceCompany.altTerms + matchingTerm.altTerm?.toUpperCase() + " ";
|
insuranceCompany.altTerms + matchingTerm.altTerm?.toUpperCase() + " ";
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
return insuranceCompany;
|
return insuranceCompany;
|
||||||
}
|
});
|
||||||
);
|
},
|
||||||
}
|
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
findMatches(request, response) {
|
findMatches(request, response) {
|
||||||
|
|
@ -105,8 +103,8 @@ export default {
|
||||||
});
|
});
|
||||||
|
|
||||||
if (selectedItem) {
|
if (selectedItem) {
|
||||||
this.selectedAccountName = parentAccountName;
|
this.selectedAccountName = parentAccountName;
|
||||||
this.selectedAccountNumber = selectedItem[0].parentAccountNumber;
|
this.selectedAccountNumber = selectedItem[0].parentAccountNumber;
|
||||||
} else {
|
} else {
|
||||||
console.error("Error locating " + parentAccountName);
|
console.error("Error locating " + parentAccountName);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -80,6 +80,7 @@ export default {
|
||||||
return {
|
return {
|
||||||
parentAccountNumber: this.parentAccountNumberFromStore(),
|
parentAccountNumber: this.parentAccountNumberFromStore(),
|
||||||
originalList: [],
|
originalList: [],
|
||||||
|
};
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
parentAccountNumberFromStore() {
|
parentAccountNumberFromStore() {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue