const Component = require(`vn-print/core/component`); const reportBody = new Component('report-body'); 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-body': reportBody.build(), 'report-header': reportHeader.build(), 'report-footer': reportFooter.build() } }; module.exports = rptCreditRequest;