This commit is contained in:
2021-05-04 19:31:16 +00:00
parent a320d2bd75
commit 24aab50068
2 changed files with 19 additions and 4 deletions

View File

@@ -300,8 +300,6 @@ todo: many biz objects are not using new PUT methodology
CURRENTLY DOING: woitempriority, woitemstatus edit forms first so have something to test the control on
TODO: Edit and list forms for priority and woitemstatus, can copy wostatus edit form and list form
note that priority has no customizable fields so figure that one out
TODO: Need control for selection.
it's just a select list but needs to show the color, background is sketchy as might conflict with text color so keep in mind

View File

@@ -178,7 +178,9 @@ export default {
// resetSelections: false,
selectLists: {
wostatus: [],
allowedwostatus: []
allowedwostatus: [],
woItemPriorities: [],
woItemStatus: []
},
subRights: {
items: {
@@ -1146,12 +1148,27 @@ async function populateSelectionLists(vm) {
if (res.error) {
vm.formState.serverError = res.error;
window.$gz.form.setErrorBoxErrors(vm);
//window.$gz.errorHandler.handleFormError(res.error, vm);
} else {
vm.selectLists.wostatus = res.data.all;
vm.selectLists.allowedwostatus = res.data.allowed;
}
res = await window.$gz.api.get("work-order-item-status/list");
if (res.error) {
vm.formState.serverError = res.error;
window.$gz.form.setErrorBoxErrors(vm);
} else {
vm.selectLists.woItemStatus = res.data;
}
res = await window.$gz.api.get("work-order-item-priority/list");
if (res.error) {
vm.formState.serverError = res.error;
window.$gz.form.setErrorBoxErrors(vm);
} else {
vm.selectLists.woItemPriorities = res.data;
}
//---------
}
</script>