This commit is contained in:
@@ -78,6 +78,7 @@ Coded by importance
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
- 1 Help->About tech support has ??
|
||||||
|
|
||||||
-2 hyperlinks in memos sb clickable to open in new tab or window or whatever
|
-2 hyperlinks in memos sb clickable to open in new tab or window or whatever
|
||||||
this supports help links in migrate and also user links like "take a look at workorder 55" with a link to it in the UI
|
this supports help links in migrate and also user links like "take a look at workorder 55" with a link to it in the UI
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
/* xxxeslint-disable */
|
/* xxxeslint-disable */
|
||||||
|
|
||||||
import { VMain } from "vuetify/lib";
|
// import { VMain } from "vuetify/lib";
|
||||||
|
|
||||||
/////////////////////////////////
|
/////////////////////////////////
|
||||||
// Menu utils and handlers
|
// Menu utils and handlers
|
||||||
|
|||||||
@@ -170,16 +170,14 @@ export default {
|
|||||||
},
|
},
|
||||||
canViewLicenseInfo() {
|
canViewLicenseInfo() {
|
||||||
/*
|
/*
|
||||||
Administrator = 1,
|
Service = 1,
|
||||||
Schedulable = 2,
|
NotService = 2,
|
||||||
NonSchedulable = 3,
|
Customer = 3,
|
||||||
Customer = 4,
|
HeadOffice = 4,
|
||||||
HeadOffice = 5,
|
ServiceContractor = 5 */
|
||||||
Utility = 6, Subcontractor = 7 */
|
|
||||||
return (
|
return (
|
||||||
window.$gz.store.state.userType == 1 ||
|
window.$gz.store.state.userType == 1 ||
|
||||||
window.$gz.store.state.userType == 2 ||
|
window.$gz.store.state.userType == 2
|
||||||
window.$gz.store.state.userType == 3
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,12 +1,12 @@
|
|||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<gz-report-selector ref="reportSelector"></gz-report-selector>
|
<!-- <gz-report-selector ref="reportSelector"></gz-report-selector> -->
|
||||||
<gz-extensions
|
<!-- <gz-extensions
|
||||||
:aya-type="aType"
|
:aya-type="aType"
|
||||||
:selected-items="selectedItems"
|
:selected-items="selectedItems"
|
||||||
ref="extensions"
|
ref="extensions"
|
||||||
>
|
>
|
||||||
</gz-extensions>
|
</gz-extensions> -->
|
||||||
<gz-data-table
|
<gz-data-table
|
||||||
ref="gzdatatable"
|
ref="gzdatatable"
|
||||||
form-key="csr-list"
|
form-key="csr-list"
|
||||||
@@ -59,57 +59,57 @@ async function clickHandler(menuItem) {
|
|||||||
switch (m.key) {
|
switch (m.key) {
|
||||||
case "new":
|
case "new":
|
||||||
m.vm.$router.push({
|
m.vm.$router.push({
|
||||||
name: "csr-edit",
|
name: "customer-csr-edit",
|
||||||
params: { recordid: 0 }
|
params: { recordid: 0 }
|
||||||
});
|
});
|
||||||
break;
|
break;
|
||||||
case "extensions":
|
// case "extensions":
|
||||||
let res = await m.vm.$refs.extensions.open(
|
// let res = await m.vm.$refs.extensions.open(
|
||||||
m.vm.$refs.gzdatatable.getDataListSelection(
|
// m.vm.$refs.gzdatatable.getDataListSelection(
|
||||||
window.$gz.type.CustomerServiceRequest
|
// window.$gz.type.CustomerServiceRequest
|
||||||
)
|
// )
|
||||||
);
|
// );
|
||||||
if (res && res.refresh == true) {
|
// if (res && res.refresh == true) {
|
||||||
m.vm.reload = !m.vm.reload;
|
// m.vm.reload = !m.vm.reload;
|
||||||
}
|
// }
|
||||||
break;
|
// break;
|
||||||
case "report":
|
// case "report":
|
||||||
if (m.id != null) {
|
// if (m.id != null) {
|
||||||
//last report selected is in m.id
|
// //last report selected is in m.id
|
||||||
m.vm.$router.push({
|
// m.vm.$router.push({
|
||||||
name: "ay-report",
|
// name: "ay-report",
|
||||||
params: {
|
// params: {
|
||||||
recordid: m.id,
|
// recordid: m.id,
|
||||||
ayatype: window.$gz.type.CustomerServiceRequest
|
// ayatype: window.$gz.type.CustomerServiceRequest
|
||||||
}
|
// }
|
||||||
});
|
// });
|
||||||
} else {
|
// } else {
|
||||||
//general report selector chosen
|
// //general report selector chosen
|
||||||
|
|
||||||
let res = await m.vm.$refs.reportSelector.open(
|
// let res = await m.vm.$refs.reportSelector.open(
|
||||||
m.vm.$refs.gzdatatable.getDataListSelection(
|
// m.vm.$refs.gzdatatable.getDataListSelection(
|
||||||
window.$gz.type.CustomerServiceRequest
|
// window.$gz.type.CustomerServiceRequest
|
||||||
)
|
// )
|
||||||
);
|
// );
|
||||||
|
|
||||||
//if null for no selection
|
// //if null for no selection
|
||||||
//just bail out
|
// //just bail out
|
||||||
if (res == null) {
|
// if (res == null) {
|
||||||
return;
|
// return;
|
||||||
}
|
// }
|
||||||
//persist last report selected
|
// //persist last report selected
|
||||||
window.$gz.form.setLastReport(FORM_KEY, res);
|
// window.$gz.form.setLastReport(FORM_KEY, res);
|
||||||
|
|
||||||
//Now open the report viewer...
|
// //Now open the report viewer...
|
||||||
m.vm.$router.push({
|
// m.vm.$router.push({
|
||||||
name: "ay-report",
|
// name: "ay-report",
|
||||||
params: {
|
// params: {
|
||||||
recordid: res.id,
|
// recordid: res.id,
|
||||||
ayatype: window.$gz.type.CustomerServiceRequest
|
// ayatype: window.$gz.type.CustomerServiceRequest
|
||||||
}
|
// }
|
||||||
});
|
// });
|
||||||
}
|
// }
|
||||||
break;
|
// break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
window.$gz.eventBus.$emit(
|
window.$gz.eventBus.$emit(
|
||||||
@@ -129,6 +129,7 @@ function generateMenu(vm) {
|
|||||||
icon: "$ayiConciergeBell",
|
icon: "$ayiConciergeBell",
|
||||||
title: "CustomerServiceRequestList",
|
title: "CustomerServiceRequestList",
|
||||||
helpUrl: "customer-csr",
|
helpUrl: "customer-csr",
|
||||||
|
hideSearch: true,
|
||||||
menuItems: [],
|
menuItems: [],
|
||||||
formData: {
|
formData: {
|
||||||
ayaType: window.$gz.type.CustomerServiceRequest
|
ayaType: window.$gz.type.CustomerServiceRequest
|
||||||
@@ -145,32 +146,32 @@ function generateMenu(vm) {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
//REPORTS
|
// //REPORTS
|
||||||
//Report not Print, print is a further option
|
// //Report not Print, print is a further option
|
||||||
menuOptions.menuItems.push({
|
// menuOptions.menuItems.push({
|
||||||
title: "Report",
|
// title: "Report",
|
||||||
icon: "$ayiFileAlt",
|
// icon: "$ayiFileAlt",
|
||||||
key: FORM_KEY + ":report",
|
// key: FORM_KEY + ":report",
|
||||||
vm: vm
|
// vm: vm
|
||||||
});
|
// });
|
||||||
|
|
||||||
//get last report selected
|
// //get last report selected
|
||||||
let lastReport = window.$gz.form.getLastReport(FORM_KEY);
|
// let lastReport = window.$gz.form.getLastReport(FORM_KEY);
|
||||||
if (lastReport != null) {
|
// if (lastReport != null) {
|
||||||
menuOptions.menuItems.push({
|
// menuOptions.menuItems.push({
|
||||||
title: lastReport.name,
|
// title: lastReport.name,
|
||||||
icon: "$ayiFileAlt",
|
// icon: "$ayiFileAlt",
|
||||||
key: FORM_KEY + ":report:" + lastReport.id,
|
// key: FORM_KEY + ":report:" + lastReport.id,
|
||||||
vm: vm
|
// vm: vm
|
||||||
});
|
// });
|
||||||
}
|
// }
|
||||||
|
|
||||||
menuOptions.menuItems.push({
|
// menuOptions.menuItems.push({
|
||||||
title: "Extensions",
|
// title: "Extensions",
|
||||||
icon: "$ayiPuzzlePiece",
|
// icon: "$ayiPuzzlePiece",
|
||||||
key: FORM_KEY + ":extensions",
|
// key: FORM_KEY + ":extensions",
|
||||||
vm: vm
|
// vm: vm
|
||||||
});
|
// });
|
||||||
window.$gz.eventBus.$emit("menu-change", menuOptions);
|
window.$gz.eventBus.$emit("menu-change", menuOptions);
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Reference in New Issue
Block a user