Add feature print format setup action (#163)
* add feature for go to print format setup window from report viewer * change translation * add const to static routespull/3759/head
parent
96a9d7aa47
commit
97c13e23a5
|
@ -35,6 +35,9 @@
|
||||||
{{ $t('components.contextMenuDownload') }}
|
{{ $t('components.contextMenuDownload') }}
|
||||||
</a>
|
</a>
|
||||||
</el-menu-item>
|
</el-menu-item>
|
||||||
|
<el-menu-item v-show="$route.name === 'Report Viewer'" index="9" @click="$router.push({ name: ROUTES.PRINT_FORMAT_SETUP_WINDOW.uuid })">
|
||||||
|
{{ $t('components.contextMenuPrintFormatSetup') }}
|
||||||
|
</el-menu-item>
|
||||||
<el-menu-item v-if="getDataSelection.length > 0 && panelType === 'browser'" index="6" @click="exporBrowser">
|
<el-menu-item v-if="getDataSelection.length > 0 && panelType === 'browser'" index="6" @click="exporBrowser">
|
||||||
{{ $t('components.contextMennuExport') }}
|
{{ $t('components.contextMennuExport') }}
|
||||||
</el-menu-item>
|
</el-menu-item>
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
import { showNotification } from '@/utils/ADempiere/notification'
|
import { showNotification } from '@/utils/ADempiere/notification'
|
||||||
import Item from './items'
|
import Item from './items'
|
||||||
import { convertFieldListToShareLink } from '@/utils/ADempiere/valueUtil'
|
import { convertFieldListToShareLink } from '@/utils/ADempiere/valueUtil'
|
||||||
|
import ROUTES from '@/utils/ADempiere/zoomWindow'
|
||||||
|
|
||||||
export const contextMixin = {
|
export const contextMixin = {
|
||||||
components: {
|
components: {
|
||||||
|
@ -56,7 +57,8 @@ export const contextMixin = {
|
||||||
metadataMenu: {},
|
metadataMenu: {},
|
||||||
recordUuid: this.$route.query.action,
|
recordUuid: this.$route.query.action,
|
||||||
isReferencesLoaded: false,
|
isReferencesLoaded: false,
|
||||||
exportDefault: 'xls'
|
exportDefault: 'xls',
|
||||||
|
ROUTES
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
|
|
|
@ -42,6 +42,7 @@ export default {
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
handleClick(item) {
|
handleClick(item) {
|
||||||
|
console.log(item)
|
||||||
this.$router.push({ name: item.name, query: { tabParent: 0 }})
|
this.$router.push({ name: item.name, query: { tabParent: 0 }})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -124,6 +124,7 @@ export default {
|
||||||
contextMenuRefresh: 'Refresh',
|
contextMenuRefresh: 'Refresh',
|
||||||
contextMennuExport: 'Export Smart Browser',
|
contextMennuExport: 'Export Smart Browser',
|
||||||
contextMennuWindowReport: 'Window Report ',
|
contextMennuWindowReport: 'Window Report ',
|
||||||
|
contextMenuPrintFormatSetup: 'Print Format Setup',
|
||||||
dateStartPlaceholder: 'Start date',
|
dateStartPlaceholder: 'Start date',
|
||||||
dateEndPlaceholder: 'End date',
|
dateEndPlaceholder: 'End date',
|
||||||
timePlaceholder: 'Select time',
|
timePlaceholder: 'Select time',
|
||||||
|
|
|
@ -120,6 +120,7 @@ export default {
|
||||||
contextMenuRefresh: 'Actualizar',
|
contextMenuRefresh: 'Actualizar',
|
||||||
contextMennuExport: 'Exportar Smart Browser',
|
contextMennuExport: 'Exportar Smart Browser',
|
||||||
contextMennuWindowReport: 'Informe de Ventana',
|
contextMennuWindowReport: 'Informe de Ventana',
|
||||||
|
contextMenuPrintFormatSetup: 'Configurar Formato de Impresión',
|
||||||
RunProcess: 'Ejecutar',
|
RunProcess: 'Ejecutar',
|
||||||
ChangeParameters: 'Cambiar Parametros',
|
ChangeParameters: 'Cambiar Parametros',
|
||||||
RunProcessAs: 'Ejecutar como',
|
RunProcessAs: 'Ejecutar como',
|
||||||
|
|
|
@ -0,0 +1,22 @@
|
||||||
|
const ROUTES = {
|
||||||
|
PRINT_FORMAT_SETUP_WINDOW: {
|
||||||
|
uuid: '8e5131dc-fb40-11e8-a479-7a0060f0aa01',
|
||||||
|
action: undefined,
|
||||||
|
tabParent: '0',
|
||||||
|
tabChild: undefined
|
||||||
|
},
|
||||||
|
REQUEST_WINDOW: {
|
||||||
|
uuid: '8e510176-fb40-11e8-a479-7a0060f0aa01',
|
||||||
|
action: undefined,
|
||||||
|
tabParent: '0',
|
||||||
|
tabChild: undefined
|
||||||
|
},
|
||||||
|
WORKFLOW_WINDOW: {
|
||||||
|
uuid: '8e5168e6-fb40-11e8-a479-7a0060f0aa01',
|
||||||
|
action: undefined,
|
||||||
|
tabParent: '0',
|
||||||
|
tabChild: undefined
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
export default ROUTES
|
Loading…
Reference in New Issue