case 4237
This commit is contained in:
@@ -1353,6 +1353,19 @@ async function clickHandler(menuItem) {
|
||||
}
|
||||
});
|
||||
break;
|
||||
|
||||
case "newwo":
|
||||
m.vm.$router.push({
|
||||
name: "workorder-edit",
|
||||
params: {
|
||||
recordid: 0,
|
||||
customerId: m.vm.obj.id,
|
||||
add: {
|
||||
type: 0
|
||||
}
|
||||
}
|
||||
});
|
||||
break;
|
||||
//v.next
|
||||
// case "Schedule":
|
||||
// m.vm.$router.push({
|
||||
@@ -1449,6 +1462,18 @@ function generateMenu(vm) {
|
||||
|
||||
menuOptions.menuItems.push({ divider: true, inset: false });
|
||||
|
||||
if (
|
||||
vm.$route.params.recordid != 0 &&
|
||||
window.$gz.role.canChange(window.$gz.type.WorkOrder)
|
||||
) {
|
||||
menuOptions.menuItems.push({
|
||||
title: "NewWorkOrder",
|
||||
icon: "$ayiTools",
|
||||
key: FORM_KEY + ":newwo",
|
||||
vm: vm
|
||||
});
|
||||
}
|
||||
|
||||
menuOptions.menuItems.push({
|
||||
title: "CustomerNoteList",
|
||||
icon: "$ayiClipboard",
|
||||
@@ -1571,7 +1596,8 @@ async function fetchTranslatedText() {
|
||||
"LastLogin",
|
||||
"CustomerNoteList",
|
||||
"CustomerNoteNotes",
|
||||
"CustomerNoteNoteDate"
|
||||
"CustomerNoteNoteDate",
|
||||
"NewWorkOrder"
|
||||
]);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user