salix/print/templates/reports/credit-request/credit-request.js

21 lines
542 B
JavaScript
Executable File

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;