This commit is contained in:
@@ -201,19 +201,16 @@ async function clickHandler(menuItem) {
|
||||
if (m.owner == FORM_KEY && !m.disabled) {
|
||||
switch (m.key) {
|
||||
case "report":
|
||||
alert("STUB:PRINT REPORT");
|
||||
// const res = await m.vm.$refs.reportSelector.open(
|
||||
// {
|
||||
// AType: window.$gz.type.Customer,
|
||||
// selectedRowIds: [m.vm.obj.id]
|
||||
// },
|
||||
// m.id
|
||||
// );
|
||||
// if (res == null) {
|
||||
// return;
|
||||
// }
|
||||
// window.$gz.form.setLastReport(FORM_KEY, res);
|
||||
// generateMenu(m.vm);
|
||||
const res = await m.vm.$refs.reportSelector.open(
|
||||
{
|
||||
AType: window.$gz.type.Customer,
|
||||
selectedRowIds: [m.vm.obj.id]
|
||||
},
|
||||
-100 //special code meaning customer workorder report which will be looked up at server
|
||||
);
|
||||
if (res == null) {
|
||||
return;
|
||||
}
|
||||
break;
|
||||
default:
|
||||
window.$gz.eventBus.$emit(
|
||||
|
||||
Reference in New Issue
Block a user