This commit is contained in:
2021-02-17 17:08:06 +00:00
parent c6e84fe619
commit f01af89109

View File

@@ -286,6 +286,9 @@ export default {
data() {
return {
formCustomTemplateKey: FORM_CUSTOM_TEMPLATE_KEY,
selectLists: {
status: []
},
obj:
//IMPORTANT NOTE: Fields that are NON NULLABLE in the schema for the table but *are* hideable **MUST** have a default value set here or else there will be no way to save the record
//I.E. Serial, usertype fields, ACTIVE
@@ -719,6 +722,18 @@ let JUST_DELETED = false;
async function initForm(vm) {
await fetchTranslatedText(vm);
await window.$gz.formCustomTemplate.get(FORM_CUSTOM_TEMPLATE_KEY);
await populateSelectionLists(vm);
}
//////////////////////
//
//
async function populateSelectionLists(vm) {
//ensure the pick lists required are pre-fetched
await window.$gz.enums.fetchEnumList("purchaseorderstatus");
vm.selectLists.status = window.$gz.enums.getSelectionList(
"purchaseorderstatus"
);
}
//////////////////////////////////////////////////////////