case 3979

This commit is contained in:
2021-09-25 00:07:45 +00:00
parent 0b4c9e3ea8
commit fc9b136196
2 changed files with 23 additions and 20 deletions

View File

@@ -245,6 +245,7 @@
}}<v-icon right large>$ayiTrashRestoreAlt</v-icon></v-btn
>
<div ref="topform"></div>
<v-col
v-if="value.items[activeItemIndex].fromCSRId != null"
cols="12"

View File

@@ -155,7 +155,6 @@ export default {
customFields: "{}",
tags: [],
workOrderId: null,
fromCSRId: null,
techNotes: null,
workOrderItemStatusId: null,
workOrderItemPriorityId: null,
@@ -835,7 +834,10 @@ export default {
wi.concurrency = 0;
wi.uid = Date.now();
wi.isDirty = true;
wi.fromCSRId = null;
if (!wi.keepCSR) {
//workaround so when sent from CSR it doesn't erase it
wi.fromCSRId = null;
}
if (wi.partRequests) {
wi.partRequests.splice(0);
}
@@ -1990,12 +1992,12 @@ async function clickHandler(menuItem) {
id: m.vm.obj.fromPMId
});
break;
case "csr":
window.$gz.eventBus.$emit("openobject", {
type: window.$gz.type.CustomerServiceRequest,
id: m.vm.obj.fromCSRId
});
break;
// case "csr":
// window.$gz.eventBus.$emit("openobject", {
// type: window.$gz.type.CustomerServiceRequest,
// id: m.vm.obj.fromCSRId
// });
// break;
default:
window.$gz.eventBus.$emit(
"notify-warning",
@@ -2175,18 +2177,18 @@ function generateMenu(vm) {
});
hasFromInsertDivider = true;
}
if (
vm.obj.fromCSRId != null &&
window.$gz.role.canOpen(window.$gz.type.CustomerServiceRequest)
) {
menuOptions.menuItems.push({
title: "CustomerServiceRequest",
icon: "$ayiConciergeBell",
key: FORM_KEY + ":csr",
vm: vm
});
hasFromInsertDivider = true;
}
// if (
// vm.obj.fromCSRId != null &&
// window.$gz.role.canOpen(window.$gz.type.CustomerServiceRequest)
// ) {
// menuOptions.menuItems.push({
// title: "CustomerServiceRequest",
// icon: "$ayiConciergeBell",
// key: FORM_KEY + ":csr",
// vm: vm
// });
// hasFromInsertDivider = true;
// }
if (hasFromInsertDivider) {
menuOptions.menuItems.push({ divider: true, inset: false });