This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user