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) { if (m.owner == FORM_KEY && !m.disabled) {
switch (m.key) { switch (m.key) {
case "report": case "report":
alert("STUB:PRINT REPORT"); const res = await m.vm.$refs.reportSelector.open(
// const res = await m.vm.$refs.reportSelector.open( {
// { AType: window.$gz.type.Customer,
// AType: window.$gz.type.Customer, selectedRowIds: [m.vm.obj.id]
// selectedRowIds: [m.vm.obj.id] },
// }, -100 //special code meaning customer workorder report which will be looked up at server
// m.id );
// ); if (res == null) {
// if (res == null) { return;
// return; }
// }
// window.$gz.form.setLastReport(FORM_KEY, res);
// generateMenu(m.vm);
break; break;
default: default:
window.$gz.eventBus.$emit( window.$gz.eventBus.$emit(