This commit is contained in:
2021-11-19 00:59:32 +00:00
parent 5092801dd2
commit d78fedb0fa

View File

@@ -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(