const Component = require(`vn-print/core/component`); const reportHeader = new Component('report-header'); const reportFooter = new Component('report-footer'); const rptCreditRequest = { name: 'credit-request', computed: { dated: function() { const filters = this.$options.filters; return filters.date(new Date(), '%d-%m-%Y'); } }, components: { 'report-header': reportHeader.build(), 'report-footer': reportFooter.build() } }; module.exports = rptCreditRequest;