This commit is contained in:
2021-05-06 00:41:40 +00:00
parent 61ff2d5acf
commit 13ebb0d640
7 changed files with 77 additions and 14 deletions

View File

@@ -301,13 +301,11 @@ 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: Componentize the priority and woitem status controls from working examples in form now
also it needs to auto filter out the inactive ones unless it's the current selection
TOOD: Grid is showing id for status / priority and not the actual items
will need something funky with colors etc I guess
CURRENTLY DOING:
todo: how and where to locate the link to grid lists for priorities and statuses?
could put in the single item edit form as a menu item
could also put in the workorder menu
or both??!!
TODO: help docs for woitemstatus and woitempriority edit and list forms

View File

@@ -298,7 +298,6 @@ export default {
align: "left",
value: "rateViz"
});
// headers.push({ text: "", value: "actions" });
return headers;
},

View File

@@ -484,7 +484,6 @@ and it's probably not a big list to fill anyway
return headers;
},
itemList: function() {
const vm = this;
return this.value.items
.map((x, i) => {
const stat = statusViz(x.workorderItemStatusId, this);

View File

@@ -375,7 +375,11 @@ async function clickHandler(menuItem) {
case "delete":
m.vm.remove();
break;
case "list":
m.vm.$router.push({
name: "svc-work-order-item-priorities"
});
break;
default:
window.$gz.eventBus.$emit(
"notify-warning",
@@ -429,7 +433,14 @@ function generateMenu(vm) {
}
menuOptions.menuItems.push({ divider: true, inset: false });
menuOptions.menuItems.push({
title: "WorkOrderItemPriorityList",
icon: "$ayiFireAlt",
key: FORM_KEY + ":list",
vm: vm
});
menuOptions.menuItems.push({ divider: true, inset: false });
window.$gz.eventBus.$emit("menu-change", menuOptions);
}

View File

@@ -388,7 +388,11 @@ async function clickHandler(menuItem) {
case "delete":
m.vm.remove();
break;
case "list":
m.vm.$router.push({
name: "svc-work-order-item-status"
});
break;
default:
window.$gz.eventBus.$emit(
"notify-warning",
@@ -443,6 +447,15 @@ function generateMenu(vm) {
menuOptions.menuItems.push({ divider: true, inset: false });
menuOptions.menuItems.push({
title: "WorkOrderItemStatusList",
icon: "$ayiCircle",
key: FORM_KEY + ":list",
vm: vm
});
menuOptions.menuItems.push({ divider: true, inset: false });
window.$gz.eventBus.$emit("menu-change", menuOptions);
}

View File

@@ -436,7 +436,11 @@ async function clickHandler(menuItem) {
case "delete":
m.vm.remove();
break;
case "list":
m.vm.$router.push({
name: "svc-work-order-status"
});
break;
default:
window.$gz.eventBus.$emit(
"notify-warning",
@@ -490,7 +494,13 @@ function generateMenu(vm) {
}
menuOptions.menuItems.push({ divider: true, inset: false });
menuOptions.menuItems.push({
title: "WorkOrderStatusList",
icon: "$ayiFlag",
key: FORM_KEY + ":statuslist",
vm: vm
});
menuOptions.menuItems.push({ divider: true, inset: false });
window.$gz.eventBus.$emit("menu-change", menuOptions);
}

View File

@@ -961,7 +961,21 @@ async function clickHandler(menuItem) {
});
}
break;
case "statuslist":
m.vm.$router.push({
name: "svc-work-order-status"
});
break;
case "itemstatuslist":
m.vm.$router.push({
name: "svc-work-order-item-status"
});
break;
case "prioritylist":
m.vm.$router.push({
name: "svc-work-order-item-priorities"
});
break;
default:
window.$gz.eventBus.$emit(
"notify-warning",
@@ -1050,6 +1064,25 @@ function generateMenu(vm) {
//--- /show all ---
menuOptions.menuItems.push({ divider: true, inset: false });
menuOptions.menuItems.push({
title: "WorkOrderStatusList",
icon: "$ayiFlag",
key: FORM_KEY + ":statuslist",
vm: vm
});
menuOptions.menuItems.push({
title: "WorkOrderItemStatusList",
icon: "$ayiCircle",
key: FORM_KEY + ":itemstatuslist",
vm: vm
});
menuOptions.menuItems.push({
title: "WorkOrderItemPriorityList",
icon: "$ayiFireAlt",
key: FORM_KEY + ":prioritylist",
vm: vm
});
menuOptions.menuItems.push({ divider: true, inset: false });
window.$gz.eventBus.$emit("menu-change", menuOptions);