This commit is contained in:
@@ -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
|
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
|
||||||
TODO: Componentize the priority and woitem status controls from working examples in form now
|
could also put in the workorder menu
|
||||||
also it needs to auto filter out the inactive ones unless it's the current selection
|
or both??!!
|
||||||
TOOD: Grid is showing id for status / priority and not the actual items
|
|
||||||
will need something funky with colors etc I guess
|
|
||||||
|
|
||||||
TODO: help docs for woitemstatus and woitempriority edit and list forms
|
TODO: help docs for woitemstatus and woitempriority edit and list forms
|
||||||
|
|
||||||
|
|||||||
@@ -298,7 +298,6 @@ export default {
|
|||||||
align: "left",
|
align: "left",
|
||||||
value: "rateViz"
|
value: "rateViz"
|
||||||
});
|
});
|
||||||
// headers.push({ text: "", value: "actions" });
|
|
||||||
|
|
||||||
return headers;
|
return headers;
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -484,7 +484,6 @@ and it's probably not a big list to fill anyway
|
|||||||
return headers;
|
return headers;
|
||||||
},
|
},
|
||||||
itemList: function() {
|
itemList: function() {
|
||||||
const vm = this;
|
|
||||||
return this.value.items
|
return this.value.items
|
||||||
.map((x, i) => {
|
.map((x, i) => {
|
||||||
const stat = statusViz(x.workorderItemStatusId, this);
|
const stat = statusViz(x.workorderItemStatusId, this);
|
||||||
|
|||||||
@@ -375,7 +375,11 @@ async function clickHandler(menuItem) {
|
|||||||
case "delete":
|
case "delete":
|
||||||
m.vm.remove();
|
m.vm.remove();
|
||||||
break;
|
break;
|
||||||
|
case "list":
|
||||||
|
m.vm.$router.push({
|
||||||
|
name: "svc-work-order-item-priorities"
|
||||||
|
});
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
window.$gz.eventBus.$emit(
|
window.$gz.eventBus.$emit(
|
||||||
"notify-warning",
|
"notify-warning",
|
||||||
@@ -429,7 +433,14 @@ function generateMenu(vm) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
menuOptions.menuItems.push({ divider: true, inset: false });
|
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);
|
window.$gz.eventBus.$emit("menu-change", menuOptions);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -388,7 +388,11 @@ async function clickHandler(menuItem) {
|
|||||||
case "delete":
|
case "delete":
|
||||||
m.vm.remove();
|
m.vm.remove();
|
||||||
break;
|
break;
|
||||||
|
case "list":
|
||||||
|
m.vm.$router.push({
|
||||||
|
name: "svc-work-order-item-status"
|
||||||
|
});
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
window.$gz.eventBus.$emit(
|
window.$gz.eventBus.$emit(
|
||||||
"notify-warning",
|
"notify-warning",
|
||||||
@@ -443,6 +447,15 @@ function generateMenu(vm) {
|
|||||||
|
|
||||||
menuOptions.menuItems.push({ divider: true, inset: false });
|
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);
|
window.$gz.eventBus.$emit("menu-change", menuOptions);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -436,7 +436,11 @@ async function clickHandler(menuItem) {
|
|||||||
case "delete":
|
case "delete":
|
||||||
m.vm.remove();
|
m.vm.remove();
|
||||||
break;
|
break;
|
||||||
|
case "list":
|
||||||
|
m.vm.$router.push({
|
||||||
|
name: "svc-work-order-status"
|
||||||
|
});
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
window.$gz.eventBus.$emit(
|
window.$gz.eventBus.$emit(
|
||||||
"notify-warning",
|
"notify-warning",
|
||||||
@@ -490,7 +494,13 @@ function generateMenu(vm) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
menuOptions.menuItems.push({ divider: true, inset: false });
|
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);
|
window.$gz.eventBus.$emit("menu-change", menuOptions);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -961,7 +961,21 @@ async function clickHandler(menuItem) {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
break;
|
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:
|
default:
|
||||||
window.$gz.eventBus.$emit(
|
window.$gz.eventBus.$emit(
|
||||||
"notify-warning",
|
"notify-warning",
|
||||||
@@ -1050,6 +1064,25 @@ function generateMenu(vm) {
|
|||||||
|
|
||||||
//--- /show all ---
|
//--- /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 });
|
menuOptions.menuItems.push({ divider: true, inset: false });
|
||||||
|
|
||||||
window.$gz.eventBus.$emit("menu-change", menuOptions);
|
window.$gz.eventBus.$emit("menu-change", menuOptions);
|
||||||
|
|||||||
Reference in New Issue
Block a user